1 2002-05-29 David S. Miller <davem@redhat.com>
3 * rtl.h (clear_emit_caches): Delete.
4 * integrate.c (output_inline_function): Don't call it.
5 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
6 (clear_emit_caches): Delete definition.
7 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
9 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
11 * config/mmix/mmix.c: Include real.h.
12 (mmix_constant_address_p): Remove redundant test before switch.
14 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
16 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
17 only if not already defined.
19 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
21 * config/h8300/h8300-protos.h: Remove prototypes for
22 ok_for_bclr and small_power_of_two.
23 * config/h8300/h8300.c (small_power_of_two): Remove.
24 (ok_for_blcr): Likewise.
25 (fix_bit_operand): Make WHAT deal with an integer instead of a
27 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
28 (CONST_OK_FOR_P): Likewise.
29 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
30 CONST_OK_FOR_P any more.
31 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
36 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
38 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
39 (CPP_PREDEFINES): Make sure this is undefined.
40 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
41 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
42 or -U__MIPSEB__ before defining one or the other. Instead,
43 use %(subtarget_endian_default) if neither -EB nor -EL are
45 (SUBTARGET_EXTRA_SPECS): Define.
46 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
49 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
51 * doc/md.texi (Patterns): Note pattern condition pitfall
54 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
56 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
57 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
58 ternary operations from here...
59 (rs6000_expand_builtin): ...to here.
60 New argument expandedp.
61 Change all instances of altivec_expand_binop_builtin to
62 rs6000_expand_binop_builtin.
63 (altivec_expand_unop_builtin): Rename to
64 rs6000_expand_unop_builtin.
65 (altivec_expand_binop_builtin): Rename to
66 rs6000_expand_binop_builtin.
67 (altivec_expand_ternop_builtin): Rename to
68 rs6000_expand_ternop_builtin.
70 2002-05-29 Richard Henderson <rth@redhat.com>
72 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
73 (TARGET_BI_ARCH): Likewise.
74 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
75 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
76 (TARGET_64BIT_DEFAULT): Default to 0.
77 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
79 2002-05-29 Richard Henderson <rth@redhat.com>
81 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
82 (get_pc_thunk_name): New.
83 (output_set_got): Use it.
84 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
85 into linkonce sections.
87 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
89 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
90 (CPP_PREDEFINES): Make sure this is undefined.
91 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
92 (CPP_SUBTARGET_SPEC): Don't provide different versions for
93 default-32 and default-64. Just always use %(netbsd_cpp_spec).
94 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
95 cpp_subtarget_spec64. Add netbsd_cpp_spec.
96 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
97 (CPP_PREDEFINES): Make sure this is undefined.
98 (SUBTARGET_EXTRA_SPECS): Define.
99 (CPP_SPEC): Use %(netbsd_cpp_spec).
101 2002-05-29 Jeff Law <law@redhat.com>
103 * flow.c (propagate_one_insn): Do not remove a dead insn if it
104 contains a REG_RETVAL note.
106 * haifa-sched (sched_analyze): Remove another useless clearing
107 of SCHED_GROUP_P I missed yesterday.
109 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
110 * pa.c (pa_asm_output_mi_thunk): New function.
111 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
113 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
114 Marek Michalkiewicz <marekm@amelek.gda.pl>
116 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
117 (avr_asm_only_p): Make non-static.
118 (enum avr_arch): Remove.
119 (avr_arch_types): New.
120 (avr_mcu_types): Update.
121 (avr_override_options): Use avr_arch_types table instead of switch.
122 * avr.h (CPP_PREDEFINES): Die.
123 (avr_base_arch_macro, avr_extra_arch_macro): New.
124 (TARGET_CPU_CPP_BUILTINS): New.
125 (CPP_SPEC, EXTRA_SPECS): Simplify.
126 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
129 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
131 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
132 NETBSD_OS_CPP_BUILTINS_AOUT.
133 (SUBTARGET_EXTRA_SPECS): Define.
134 (CPP_SPEC): Use %(netbsd_cpp_spec).
136 2002-05-29 Richard Henderson <rth@redhat.com>
138 * config/i386/i386.c (ix86_output_function_epilogue): New.
139 (TARGET_ASM_FUNCTION_EPILOGUE): New.
140 (pic_label_name): Remove.
141 (pic_labels_used): New.
142 (ix86_asm_file_end): Emit one pc load stub for each register used.
143 (output_set_got): Generate deep pc load to any register.
144 (ix86_select_alt_pic_regnum): New.
145 (ix86_save_reg): Don't save pic register if we can find a valid
146 call-clobbered replacement.
147 (ix86_expand_prologue): If we found a valid replacement, renumber
148 pic_offset_table_rtx.
149 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
150 pic_offset_table_rtx after reload.
151 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
152 * config/i386/i386.md (set_got): Make insn, not expander.
153 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
155 2002-05-29 Richard Henderson <rth@redhat.com>
157 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
158 alignment for alloca.
160 2002-05-29 Richard Henderson <rth@redhat.com>
162 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
163 (print_operand_address): Only add rip for symbolic addresses
164 for which we do not have another relocation type.
166 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
168 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
169 (EXTRA_SPECS): Add netbsd_cpp_spec.
170 (CPP_SPEC): Use %(netbsd_cpp_spec).
171 (CPP_PREDEFINES): Remove.
172 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
173 (EXTRA_SPECS): Define.
174 (CPP_SPEC): Use %(netbsd_cpp_spec).
175 (CPP_PREDEFINES): Remove.
177 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
180 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
183 2002-05-29 Eric Christopher <echristo@redhat.com>
185 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
186 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
188 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
190 * config/fr30/fr30.md: Remove previous restriction on splits.
191 Enforce conformance through gen_lowpart and cont_int_operand.
192 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
193 as the assembler does not support ".bss".
195 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
197 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
198 (CPP_PREDEFINES): Remove.
199 (SUBTARGET_EXTRA_SPECS): Define.
200 (CPP_SPEC): Use %(netbsd_cpp_spec).
201 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
202 (CPP_PREDEFINES): Remove.
203 (SUBTARGET_EXTRA_SPECS): Define.
204 (CPP_SPEC): Use %(netbsd_cpp_spec).
205 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
206 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
207 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
209 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
211 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
212 Zack Weinberg <zack@codesourcery.com>
214 * cppexp.c (cpp_num): Move to cpplib.h.
216 (interpret_float_suffix, interpret_int_suffix): New.
217 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
218 (cpp_classify_number, cpp_interpret_integer): New.
219 (interpret_number): Remove.
220 (eval_token): Update to use new routines.
221 * cpphash.h (cpp_num_part): Move to cpplib.h.
222 * cppinit.c (cpp_post_options): Set warn_long_long.
223 * cpplib.h (struct cpp_options): Add warn_long_long.
224 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
225 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
226 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
227 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
228 cpp_interpret_integer): New.
230 2002-05-29 Joel Sherrill <joel@OARcorp.com>
232 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
234 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
236 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
237 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
238 (CPP_SUBTARGET_SPEC): Define.
239 (SUBTARGET_EXTRA_SPECS): Define.
242 2002-05-29 Chris Lattner <sabre@nondot.org>
244 * ssa.c (rename_insn_1): Rename uses of undefined registers to
245 prevent confusion if/when the register is defined.
247 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
250 * config/cris/cris.md: Fix typos and thinkos in comments.
251 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
253 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
254 ("*mov_sideqi_mem"): Similar, but for operand 3.
255 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
256 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
257 Remove spurious mode specifier on operand 2.
259 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
261 * config/h8300/h8300-protos.h: Remove the prototype for
263 Add prototypes for single_one_operand and single_zero_operand.
264 * config/h8300/h8300.c (o_operand): Remove.
265 (single_one_operand): New.
266 (single_zero_operand): Likewise.
267 (print_operand): For 'V' operand, and the operand with 0xff.
268 For 'V' and 'W' operands, do not and the bit position with 7.
269 * config/h8300/h8300.md (various anonymous patterns): Replace
270 use of exact_log2 with single_one_operand/single_zero_operand.
272 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
274 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
276 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
278 * config/s390/s390.c (legitimate_pic_operand_p): Do not
279 accept symbolic LARL operands.
280 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
283 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
285 * config/s390/s390.md (cmpstr_64/31): Mark whole
286 input registers as used.
288 2002-05-28 Richard Henderson <rth@redhat.com>
290 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
291 not current_function_uses_pic_offset_table and
292 current_function_uses_const_pool; examine current_function_profile.
293 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
294 input to blockage if needed.
295 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
296 (legitimize_pic_address): Likewise. Set regs_ever_live for
297 pic_offset_table_rtx when invoked during reload.
298 * config/i386/i386.h (FINALIZE_PIC): Remove.
299 * config/i386/i386.md (tablejump): Reformat. Do not set
300 current_function_uses_pic_offset_table.
301 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
302 (blockage): Accept anything as operand 0.
304 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
306 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
307 common CPP built-ins for all NetBSD a.out targets.
308 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
309 common CPP built-ins for all NetBSD ELF targets.
310 * config/netbsd.h: Add missing notice.
311 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
312 for all NetBSD targets.
313 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
314 for all NetBSD targets using an LP64 code model.
315 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
318 2002-05-28 Richard Henderson <rth@redhat.com>
320 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
321 update if UPDATE_LIFE_LOCAL.
323 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
325 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
327 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
328 Jason R. Thorpe <thorpej@wasabisystems.com>
330 config/sh reorganization to factor out endianness and coff:
332 * config/sh/little.h: New file.
333 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
334 defined, define to 0 to select big-endian.
335 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
336 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
337 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
338 * config/sh/t-be: New file.
339 * config/sh/t-le: New file.
341 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
342 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
343 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
344 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
345 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
346 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
347 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
348 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
349 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
350 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
351 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
352 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
353 (LINK_SPEC): Define to SH_LINK_SPEC.
354 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
355 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
356 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
357 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
358 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
359 * config/sh/coff.h: New file.
360 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
361 (TARGET_OBJFMT_CPP_BUILTINS): Define.
362 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
363 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
364 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
365 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
366 (PTRDIFF_TYPE): Likewise.
367 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
368 (CPP_PREDEFINES): Don't define.
369 (TARGET_OBJFMT_CPP_BUILTINS): Define.
370 (LINK_SPEC): Define to SH_LINK_SPEC.
371 (LINK_EMUL_PREFIX): Redefine.
372 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
373 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
374 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
375 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
376 (TARGET_OS_CPP_BUILTINS): Define.
377 (TARGET_DEFAULT): Redefine.
378 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
379 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
380 (LINK_SPEC): Don't redefine.
381 (LINK_DEFAULT_CPU_EMUL): Redefine.
382 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
383 * sh.c (sh_asm_named_section): Don't declare / define.
384 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
385 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
386 (sh64-*-elf* tm_file): Likewise.
387 (sh-*-rtemself* tm_file): Likewise.
388 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
389 (sh-*-linux* tmake_file): Add sh/t-le.
390 (sh-*-rtems* tm_file): Add sh/coff.h
391 (sh-*-* tm_file): Likewise.
393 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
395 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
396 CONSTANT_POOL_ADDRESS_P.
398 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
400 2002-05-28 David Edelsohn <edelsohn@gnu.org>
401 Jeff Law <law@redhat.com>
403 * optabs.c (expand_binop): Fix nwords sign warnings.
404 generate pseudo for add_optab.
406 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
407 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
409 2002-05-28 Marc Espie <espie@openbsd.org>
411 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
412 inherited from gas.h.
413 (ASM_QUAD): Undef. OpenBSD does not support it.
415 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
417 * doc/install.texi (binaries): Change mingw binaries
418 link to www.mingw.org.
420 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
422 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
424 2002-05-28 Richard Henderson <rth@redhat.com>
426 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
427 bottom alignment for leaf functions.
429 2002-05-28 Zack Weinberg <zack@codesourcery.com>
431 * config/pa/milli32.S, config/pa/lib1funcs.asm,
432 config/sparc/sol2-g1.asm: Delete unused files.
434 2002-05-28 Richard Henderson <rth@redhat.com>
436 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
438 * flow.c (calculate_global_regs_live): Rename call_used to
439 invalidated_by_call. Initialize from regs_invalidated_by_call
440 instead of call_used_regs.
442 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
445 2002-05-28 Zack Weinberg <zack@codesourcery.com>
447 * tree.h: Forward-declare struct realvaluetype.
448 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
450 (TREE_REAL_CST_PTR): New accessor.
451 (TREE_REAL_CST): Update.
452 * real.h: Include machmode.h.
453 (realvaluetype): Make it struct realvaluetype, not a typedef.
454 (build_real): Prototype here.
456 * tree.c: Include real.h.
457 (build_real): Allocate the REAL_VALUE_TYPE as a separate
458 object in GC memory, set TREE_REAL_CST_PTR to point to it.
459 (build_real_from_int_cst): Use build_real.
460 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
463 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
464 fold-const.c, print-tree.c, real.c: Include real.h.
465 * Makefile.in: Update dependency lists.
467 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
469 * basic-block.h (last_basic_block): Declare.
470 (expunge_block_nocompact): Declaration removed.
471 (compact_blocks): Declare.
472 * cfg.c (last_basic_block): New variable.
473 (expunge_block_nocompact): Removed.
474 (expunge_block): Do not compact basic blocks.
475 (compact_blocks): New.
476 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
478 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
480 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
481 real positions of blocks.
482 (delete_unreachable_blocks): Simplified -- quadratic behavior now
484 (cleanup_cfg): Compact blocks.
485 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
486 basic_block_info varray.
487 (flow_delete_block): Comment update.
488 (back_edge_of_syntactic_loop_p): Modify position check code.
489 (verify_flow_info): Update checking.
490 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
491 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
492 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
493 indices no longer change.
494 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
496 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
497 * profile.c (branch_prob): Compact blocks.
498 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
501 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
503 * config/h8300/h8300.md (two anonymous patterns): New.
505 2002-05-28 David S. Miller <davem@redhat.com>
507 * config/sparc/sparc.md (cpu): Tidy.
508 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
510 (in_call_delay): Delete reference to 'return' type.
511 (eligible_for_return_delay, in_return_delay, define_delay
512 referencing those): Delete.
513 (rest of file): Use new type attributes as appropriate.
514 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
515 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
516 * config/sparc/ultra1_2.md (us1_single): New reservation.
517 (us1_ialuX): Likewise.
518 * config/sparc/ultra3.md (us3_single): Likewise.
519 (us3_ialuX): Likewise.
520 (us3_imul, us3_idiv): Tweak.
522 2002-05-28 Richard Henderson <rth@redhat.com>
524 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
527 2002-05-28 Richard Henderson <rth@redhat.com>
529 * config.gcc: Obsolete mn10200.
531 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
533 * cppexp.c (interpret_number): Optimize for single-digit
534 and less-than-half-precision cases.
535 (num_trim, num_positive, num_div_op): Cast constants.
537 2002-05-27 Bo Thorsen <bo@suse.de>
539 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
540 3.1 branch. The file was made by Jakub Jelinek.
541 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
542 support so multilib doesn't break. And don't define this at all
543 when -Dinhibit_libc is used.
544 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
545 * config/i386/t-linux64: Implement full multilib support. Patch
546 originally done by Andreas Jaeger and Jakub Jelinek.
548 2002-05-27 Roger Sayle <roger@eyesopen.com>
550 * c-common.c: Add support for __attribute__((nothrow)) to specify
551 that a function cannot throw an exception (using TREE_NOTHROW).
552 (handle_nothrow_attribute): New function to process this attribute.
554 * doc/extend.texi: Document the new nothrow function attribute.
556 2002-05-27 H.J. Lu (hjl@gnu.org)
558 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
559 (num_positive): Likewise.
560 (num_div_op): Likewise.
562 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
564 * c-common.c (c_common_init): Always use intmax_t.
566 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
568 * c-common.c (c_common_init): Use intmax_t for now.
570 2002-05-24 Andrew Haley <aph@redhat.com>
572 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
573 if T is a boolean type.
575 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
577 * basic-block.h (last_basic_block): Defined as synonym for
579 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
580 flow_depth_first_order_compute, flow_preorder_transversal_compute,
581 flow_dfs_compute_reverse_init): Replaced relevant occurences of
582 n_basic_blocks with last_basic_block.
583 * cfgbuild.c (make_edges): Likewise.
584 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
585 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
586 * combine.c (combine_instructions): Likewise.
587 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
588 iterative_dataflow_bitmap): Likewise.
589 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
590 calc_idoms, idoms_to_doms): Likewise.
591 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
593 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
594 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
595 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
596 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
597 delete_null_pointer_checks, compute_code_hoist_vbeinout,
598 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
599 compute_store_table, build_store_vectors): Likewise.
600 * haifa-sched.c (sched_init): Likewise.
601 * ifcvt.c (if_convert): Likewise.
602 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
603 pre_edge_lcm, compute_available, compute_nearerout,
604 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
606 * predict.c (estimate_probability, process_note_prediction,
607 note_prediction_to_br_prob): Likewise.
608 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
609 * recog.c (split_all_insns, peephole2_optimize): Likewise.
610 * regrename.c (copyprop_hardreg_forward): Likewise.
611 * resource.c (init_resource_info): Likewise.
612 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
613 init_regions, schedule_insns): Likewise.
614 * ssa-ccp.c (ssa_const_prop): Likewise.
615 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
616 * ssa.c (compute_dominance_frontiers,
617 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
619 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
620 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
623 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
625 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
627 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
628 hoist_insn_after, hoist_insn_to_edge): New.
630 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
632 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
633 (PROP_FINAL): Include.
634 * flow.c (life_analysis, update_life_info,
635 init_propagate_block_info, mark_set_1, mark_used_rgs):
636 Support SCAN_DEAD_STORE.
638 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
640 * c-common.c (c_common_init): Set CPP arithmetic precision.
641 * cppexp.c (cpp_num_part): Move typedef ...
642 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
643 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
644 (sanity_checks): Update.
646 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
648 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
649 (mkheaders): New rule.
650 (install-mkheaders): New rule.
651 * configure.in (all_outputs): Add mkheaders.
652 * configure: Regenerate.
653 * mkheaders.in: New file.
655 2002-05-26 Jakub Jelinek <jakub@redhat.com>
657 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
659 2002-05-26 Andreas Jaeger <aj@suse.de>
661 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
663 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
665 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
666 right_shift): Remove.
667 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
669 (struct op): Use cpp_num.
670 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
671 num_part_mul, num_unary_op, num_binary_op, num_negate,
672 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
673 num_div_op, num_lshift, num_rshift, append_digit): New.
674 (interpret_number, parse_defined, eval_token, reduce): Update
675 for two-integer arithmetic.
676 (binary_handler): New typedef.
678 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
679 (_cpp_parse_expr, reduce): Update to handle two-integers.
680 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
682 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
684 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
685 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
686 branch insn into account, do not assume 1.
687 (avr_out_sbxx_branch): New function. Optimize cases of skipping
688 over single word insn. Handle upper half of I/O space too.
689 * config/avr/avr.md (*sbrx_branch): Use it.
690 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
691 (*sbix_branch, *sbix_branch_bit7): Likewise.
692 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
693 Use RTL peepholes to optimize register operand sign tests.
695 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
697 * config/avr/avr.c (avr_asm_only_p): New variable.
698 (avr_override_options): Set it here if AVR1.
699 (asm_file_start): Test it here, report an error if set.
701 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
703 * alias.c: Fix formatting.
704 * attribs.c: Likewise.
705 * bb-reorder.c: Likewise.
706 * bitmap.c: Likewise.
707 * bitmap.h: Likewise.
708 * builtins.c: Likewise.
710 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
712 * reload.c (find_valid_class): Accept new argument DEST,
713 choose class accordingly.
714 (push_reload): Update callers.
716 2002-05-26 Andreas Jaeger <aj@suse.de>
718 * combine.c (combine_instructions): Do not indent #if for
721 2002-05-25 Richard Henderson <rth@redhat.com>
723 * c-pragma.c (apply_pragma_weak): Convert value identifier to
724 string for decl_attributes.
725 (handle_pragma_weak): Call assemble_alias if we're modifying
728 2002-05-25 Richard Henderson <rth@redhat.com>
731 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
732 using rtl instead of fprintf.
733 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
734 * config/sparc/sparc-protos.h: Update.
736 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
738 * Makefile.in (C_COMMON_H): Fix.
739 Update other targets.
740 * c-common.c: Don't include c-lex.h.
741 (builtin_define_with_value): Make static and prototype.
742 (builtin_define_std): Move from c-lex.h.
743 * c-common.h (init_c_lex): Move from c-lex.h.
744 * c-decl.c: Don't include c-lex.h.
745 (make_pointer_declarator): Move from c-parse.in.
746 * c-lex.c: Don't include c-lex.h.
748 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
749 (make_pointer_declarator): Move to c-decl.c.
750 * c-pragma.c: Don't include c-lex.h.
751 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
752 * c-tree.h (make_pointer_declarator): New.
754 * passes.texi, tm.texi: Update.
756 * Make-lang.in: Update and correct.
757 * objc-act.c: Don't include c-lex.h or cpplib.h.
759 * treetree.c: Don't include c-lex.h.
761 * darwin-c.c: Don't include c-lex.h.
762 * c4x/c4x-c.c: Don't include c-lex.h.
764 * i370/i370-c.c: Don't include c-lex.h.
765 * i370/t-i370: Update.
766 * i960/i960-c.c: Don't include c-lex.h.
767 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
768 * i960/t-960bare: Update.
769 * i960/t-vxworks: Update.
770 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
771 * rs6000/t-darwin: Update.
772 * rs6000/t-rs6000-c-rule: Update.
773 * v850/v850-c.c: Don't include c-lex.h.
774 * v850/v850.c: Don't include c-lex.h or cpplib.h.
777 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
779 * tree.def: Fix typos.
780 * doc/install.texi: Likewise.
782 2002-05-25 Richard Henderson <rth@redhat.com>
784 * configure.in (HAVE_AS_TLS): Add ia64 test.
785 * configure: Rebuild.
786 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
787 (override_options): Set it.
788 (TARGET_HAVE_TLS): New.
789 (sdata_symbolic_operand): Look for 's'.
790 (tls_symbolic_operand): New.
791 (ia64_expand_load_address): Abort for tls symbols.
792 (gen_tls_get_addr): New.
793 (gen_thread_pointer): New.
794 (ia64_expand_move): Split out from movdi. Handle tls symbols.
795 (rtx_needs_barrier): Add new unspecs.
796 (ia64_encode_section_info): Handle tls symbols.
797 (ia64_strip_name_encoding): Strip two encoding chars.
798 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
799 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
800 (TARGET_OPTIONS): Add tls-size.
801 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
802 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
803 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
804 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
805 (movsf, movdf): Likewise.
806 (movdi_symbolic): Use match_scratch. Don't split if we won't
807 have a scratch availiable.
808 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
809 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
810 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
811 * config/ia64/ia64-protos.h: Update.
812 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
813 sdata_symbolic_operand.
814 (ASM_OUTPUT_LABELREF): Strip two characters.
816 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
818 * combine.c (simplify_set): Remove an unnecessary subreg.
820 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
822 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
824 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
826 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
828 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
830 2002-05-25 Roger Sayle <roger@eyesopen.com>
832 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
833 (cond (compare x y) 0) into the equivalent (cond x y).
835 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
837 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
839 2002-05-24 Zack Weinberg <zack@codesourcery.com>
841 * config.gcc: Remove all stanzas for previously obsoleted
842 systems. Where necessary, add explicit error stanzas to
843 prevent removed systems from being misidentified as something
844 else. Begin a fresh obsoletions list, with the systems that
845 were reprieved last round.
846 * doc/install.texi: Remove all mention of dead targets.
847 * fixinc/mkfixinc.sh: Likewise.
849 * config/arm/arm.h: Bit 31 of target_flags is no longer
852 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
853 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
854 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
855 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
856 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
857 config/alpha/osf12.h, config/alpha/osf2or3.h,
858 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
859 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
860 config/clipper/clipper-protos.h, config/clipper/clipper.c,
861 config/clipper/clipper.h, config/clipper/clipper.md,
862 config/clipper/clix.h, config/convex/convex-protos.h,
863 config/convex/convex.c, config/convex/convex.h,
864 config/convex/convex.md, config/convex/fixinc.convex,
865 config/convex/proto.h, config/elxsi/elxsi-protos.h,
866 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
867 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
868 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
869 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
870 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
871 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
872 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
873 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
874 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
875 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
876 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
877 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
878 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
879 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
880 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
881 config/m68k/altos3068.h, config/m68k/apollo68.h,
882 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
883 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
884 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
885 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
886 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
887 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
888 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
889 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
890 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
891 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
892 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
893 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
894 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
895 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
896 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
897 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
898 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
899 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
900 config/mips/dec-osf1.h, config/mips/elflorion.h,
901 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
902 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
903 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
904 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
905 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
906 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
907 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
908 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
909 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
910 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
911 config/ns32k/sequent.h, config/ns32k/tek6000.h,
912 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
913 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
914 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
915 config/sparc/rtems.h, config/we32k/we32k-protos.h,
916 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
919 2002-05-24 Richard Henderson <rth@redhat.com>
921 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
922 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
923 * config/i386/i386.c (tls_model_chars): Add leading space.
924 (tls_symbolic_operand): Don't bias by 1.
925 (legitimize_address): Don't unbias by 1.
927 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
929 * lcm.c (optimize_mode_switching): Change bb used as indices
932 2002-05-24 Richard Henderson <rth@redhat.com>
934 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
935 of update_life_info_in_dirty_blocks.
937 2002-05-24 Jakub Jelinek <jakub@redhat.com>
940 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
942 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
945 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
947 2002-05-24 Jim Blandy <jimb@redhat.com>
949 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
950 entry with a type code of zero, marking the end of the compilation
953 2002-05-24 Richard Henderson <rth@redhat.com>
955 * varasm.c (asm_output_bss): Always output one byte.
956 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
958 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
960 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
963 2002-05-24 Andreas Jaeger <aj@suse.de>
965 * ggc-page.c (alloc_page): Cast variables of type size_t to
966 unsigned long, adjust printf format string.
967 (ggc_alloc): Likewise.
968 (ggc_print_statistics): Likewise.
969 (ggc_print_statistics): Correct printf format string for SCALE to
972 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
974 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
976 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
977 Zack Weinberg <zack@codesourcery.com>
979 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
981 * dwarf2out.c (lookup_filename): Properly quote filename in .file
982 directive in assembly file.
983 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
984 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
985 * config/pj/pj.h (ASM_FILE_START): Likewise.
986 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
987 * config/avr/avr.c (asm_file_end): Likewise.
988 * toplev.c (output_quoted_string): Handle possibly signed plain
990 * toplev.h (output_clean_symbol_name): Declare
991 * toplev.c (output_clean_symbol_name): Define.
992 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
993 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
995 2002-05-24 Alan Modra <amodra@bigpond.net.au>
997 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
999 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
1001 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1002 of size of unsigned.
1004 2002-05-23 Richard Henderson <rth@redhat.com>
1006 * configure.in (HAVE_AS_TLS): New test.
1007 * config.in, configure: Rebuild.
1008 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1009 (ix86_tls_dialect_string, ix86_tls_dialect): New.
1010 (override_options): Set it.
1011 (tls_model_chars, tls_symbolic_operand): New.
1012 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1013 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1014 (local_exec_symbolic_operand): New.
1015 (get_pic_label_name): Merge into output_set_got.
1016 (ix86_asm_file_end): Emit pic_label_name if defined.
1017 (legitimate_constant_p, constant_address_p): New.
1018 (legitimate_pic_operand_p): New.
1019 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1020 (legitimate_address_p): Likewise.
1021 (ix86_encode_section_info): Rename from i386_; handle tls decls.
1022 (ix86_strip_name_encoding): New.
1023 (get_thread_pointer): New.
1024 (legitimize_address): Handle tls symbols.
1025 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1027 (struct machine_function): Add some_ld_name.
1028 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1029 (print_operand) [&]: Use it. Handle UNSPEC_TP.
1030 (output_addr_const_extra): New.
1031 (maybe_get_pool_constant): New.
1032 (ix86_split_to_parts): Use it.
1033 (ix86_expand_move): Handle tls symbols.
1034 (ix86_tls_get_addr): New.
1035 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1036 (TARGET_OPTIONS): Add tls-dialect.
1037 (CONSTANT_ADDRESS_P): Use new out-of-line function.
1038 (LEGITIMATE_CONSTANT_P): Likewise.
1039 (LEGITIMATE_PIC_OPERAND_P): Likewise.
1040 (TARGET_STRIP_NAME_ENCODING): New.
1041 (ASM_OUTPUT_LABELREF): New.
1042 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1043 (OUTPUT_ADDR_CONST_EXTRA): New.
1044 (PREDICATE_CODES): Update.
1045 (ix86_tls_dialect, ix86_tls_dialect_string): New.
1046 * config/i386/i386.md: Regroup and renumber unspec constants.
1047 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1048 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1049 (tls_global_dynamic, tls_local_dynamic_base): New.
1050 (tls_local_dynamic_once): New.
1051 * config/i386/i386-protos.h: Update.
1053 2002-05-23 Richard Henderson <rth@redhat.com>
1055 * genemit.c (gen_insn): Print file:lineno comment before function.
1057 * gensupport.c (struct queue_elem): Add filename member.
1058 (queue_pattern): Initialize it; update all callers.
1059 (process_include): Don't free filename.
1060 (read_md_rtx): Set read_rtx_filename.
1062 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
1064 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1066 2002-05-23 Richard Henderson <rth@redhat.com>
1068 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1070 2002-05-23 Richard Henderson <rth@redhat.com>
1072 * doc/extend.texi (C++98 Thread-Local Edits): Update with
1073 commentary from Mark.
1075 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1077 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1078 Use FOR_EACH_BB macros to iterate over basic block chain.
1079 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1080 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1082 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1083 find_unreachable_blocks, create_edge_list, verify_edge_list,
1084 remove_fake_edges, add_noreturn_fake_exit_edges,
1085 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1087 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1088 find_sub_basic_blocks): Likewise.
1089 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1091 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1093 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1095 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1096 commit_edge_insertions, commit_edge_insertions_watch_calls,
1097 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1098 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1099 * conflict.c (conflict_graph_compute): Likewise.
1100 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1101 df_modified_p, df_refs_unlink, df_dump): Likewise.
1102 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1103 * final.c (compute_alignments): Likewise.
1104 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1105 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1106 count_or_remove_death_notes): Likewise.
1107 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1108 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1109 classic_gcse, compute_transp, cprop, compute_pre_data,
1110 compute_transpout, invalidate_nonnull_info,
1111 delete_null_pointer_checks_1, delete_null_pointer_checks,
1112 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1113 compute_store_table, build_store_vectors, store_motion): Likewise.
1114 * global.c (global_conflicts, mark_elimination): Likewise.
1115 * graph.c (print_rtl_graph_with_bb): Likewise.
1116 * haifa-sched.c (sched_init): Likewise.
1117 * ifcvt.c (if_convert): Likewise.
1118 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1119 compute_available, compute_nearerout, compute_rev_insert_delete,
1120 optimize_mode_switching): Likewise.
1121 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1122 * predict.c (estimate_probability, note_prediction_to_br_prob,
1123 propagate_freq, counts_to_freqs, expensive_function_p,
1124 estimate_bb_frequencies): Likewise.
1125 * profile.c (instrument_edges, get_exec_counts,
1126 compute_branch_probabilities, compute_checksum, branch_prob,
1127 find_spanning_tree): Likewise.
1128 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1129 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1131 * regclass.c (scan_one_insn, regclass): Likewise.
1132 * regmove.c (mark_flags_life_zones, regmove_optimize,
1133 record_stack_memrefs): Likewise.
1134 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1135 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1136 * resource.c (find_basic_block): Likewise.
1137 * sched-ebb.c (schedule_ebbs): Likewise.
1138 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1139 find_single_block_region, find_rgns, schedule_insns)
1140 * sibcall.c (optimize_sibling_and_tail_recursive_call)
1141 * ssa-ccp.c (optimize_unexecutable_edges,
1142 ssa_ccp_df_delete_unreachable_insns): Likewise.
1143 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1144 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1145 rename_block, convert_to_ssa, compute_conservative_reg_partition,
1146 compute_coalesced_reg_partition, rename_equivalent_regs,
1147 convert_from_ssa): Likewise.
1148 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1149 process_for_unwind_directive): Likewise.
1151 * df.c (FOR_ALL_BBS): Removed.
1152 * gcse.c (struct null_pointer_info): Type of current_block field
1154 (struct reg_avail_info): Type of last_bb field changed.
1155 * config/ia64/ia64.c (block_num): Removed.
1156 (need_copy_state): Type changed.
1159 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1161 * cppinit.c (mark_named_operators): Split out from init_builtins.
1162 (cpp_finish_options): Call it from here instead.
1164 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1166 * builtin-attrs.def: Update copyright years.
1167 (ATTR_NONNULL): New attribute identifier.
1168 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1169 attribute tree lists.
1170 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1172 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1173 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1174 attribute lists. Chain the appropriate nonnull attribute.
1175 * c-format.c (check_format_arg): Remove null format string
1177 * testsuite/gcc.dg/format/null-1.c: New test.
1179 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1181 * Makefile.in (ADAC): Define.
1183 (.SUFFIXES): Move before language makefile fragments.
1184 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1186 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1188 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1191 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1193 * cfg.c (dump_flow_info): Print results of
1194 maybe_hot/probably_never_executed predicates.
1195 * toplev.c (open_dump_file): Print function frequency.
1197 2002-05-23 David S. Miller <davem@redhat.com>
1199 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1202 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1204 * c-common.c (warn_nonnull): Declare.
1205 (c_common_attribute_table): Add "nonnull" attribute.
1206 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1207 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1208 check_function_arguments_recurse): New functions.
1209 * c-common.h (warn_nonnull): Declare extern.
1210 (check_function_arguments, check_function_arguments_recurse): New
1212 * c-decl.c (c_decode_option): Add -Wnonnull option.
1213 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1215 (format_check_context): New structure.
1216 (check_format_info_recurse): Remove recursion and rename to...
1217 (check_format_arg): ...this. Update comment.
1218 (check_format_info): Use check_function_arguments_recurse.
1219 * c-typeck.c (build_function_call): Call check_function_arguments
1220 instead of check_function_format.
1221 * doc/extend.texi: Document "nonnull" attribute.
1222 * doc/invoke.texi: Docuemnt -Wnonnull option.
1223 * testsuite/gcc.dg/nonnull-1.c: New test.
1224 * testsuite/gcc.dg/nonnull-2.c: New test.
1226 2002-05-23 David S. Miller <davem@redhat.com>
1228 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1229 * cfgcleanup.c (cleanup_cfg): If it is set do not
1230 attempt to delete trivially dead insns.
1231 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1232 * toplev.c (rest_of_compilation): Document non-trivial aspect
1233 the RTL before optimize_save_area_alloca is run.
1235 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1237 * c-lex.c (indent_level): Remove.
1238 (cb_file_change, c_lex): Remove indent level handling.
1239 * c-lex.h (indent_level): Remove.
1240 * input.h (struct file_stack): Remove indent_level.
1241 * toplev.c (push_srcloc): Remove indent_level handling.
1243 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1246 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1247 of x in constraints for clarity.
1248 (sse_mov?fcc split): abort if op2 == op3.
1249 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1250 sse_movsfcc_const0_4): Add earlyclobber.
1251 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1252 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1253 Use Y instead of x in constraints.
1255 2002-05-23 Richard Henderson <rth@redhat.com>
1257 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1258 (C++98 Thread-Local Edits): New subsection.
1260 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1261 (ix86_arch): Set type to enum processor_type.
1263 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1264 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1266 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1268 * configure.in: Fix as version test for binutils 2.12.1 releases
1270 * configure: Rebuilt.
1272 2002-05-23 Richard Henderson <rth@redhat.com>
1274 * config/i386/i386.c (get_pic_label_name): New.
1275 (load_pic_register): Remove.
1276 (output_set_got): New.
1277 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1278 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1279 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1280 (prologue_set_got, prologue_get_pc): Remove.
1281 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1282 (builtin_setjmp_receiver): Use gen_set_got.
1283 * config/i386/i386-protos.h: Update.
1285 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1287 * gcse.c (hash_expr): Do not use alias set for hashing.
1289 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1291 * dbxout.c (dbxout_class_name_qualifiers): New function.
1292 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1294 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1296 * cpperror.c (_cpp_begin_message): No special casing
1298 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1299 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1300 * cpplib.c (do_include_common): Use DL_ERROR.
1301 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1303 * fix-header.c (read_scan_file): Update.
1305 2002-05-22 Richard Henderson <rth@redhat.com>
1307 * config/i386/i386.c (ix86_expand_call): New function, extracted
1308 from md call patterns. Add pic_offset_table_rtx to
1309 CALL_INSN_FUNCTION_USAGE when needed.
1310 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1311 (call_value_pop, call_value, untyped_call): Likewise.
1312 (call_exp, call_value_exp): Remove.
1313 * config/i386/i386-protos.h: Update.
1315 2002-05-22 Richard Henderson <rth@redhat.com>
1317 * varasm.c (default_section_type_flags): Check for VAR_DECL
1318 before using DECL_THREAD_LOCAL.
1320 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1322 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1323 (STARTFILE_SPEC): Delete PE crt0.o.
1324 * config/rs6000/aix51.h: Same.
1325 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1326 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1327 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1328 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1329 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1331 2002-05-22 Richard Henderson <rth@redhat.com>
1333 * varasm.c (default_section_type_flags): Handle tls data and
1335 (default_unique_section): Handle tls sections.
1337 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1339 * configure.in (CROSS): Define NATIVE_CROSS.
1340 * configure: Regenerate.
1341 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1342 (startfile_prefix_spec): New var.
1343 (static_specs): Add startfile_prefix_spec.
1344 (do_spec_2): Split out from..
1346 (main): Process startfile_prefix_spec.
1347 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1349 (STARTFILE_PREFIX_SPEC): Define.
1350 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1353 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1355 * cpperror.c: Fix formatting.
1356 * cppexp.c: Likewise.
1357 * cppfiles.c: Likewise.
1358 * cpphash.c: Likewise.
1359 * cpphash.h: Likewise.
1360 * cppinit.c: Likewise.
1361 * cpplex.c: Likewise.
1362 * cpplib.c: Likewise.
1363 * cppmacro.c: Likewise.
1364 * cppmain.c: Likewise.
1365 * cppspec.c: Likewise.
1367 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1369 * combine.c (force_to_mode): Use gen_int_mode.
1370 Don't clear CONST_INT bits outside of mode.
1372 2002-05-22 Richard Henderson <rth@redhat.com>
1374 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1375 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1377 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1380 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1381 if DECL_SIZE_UNIT is INTEGER_CST.
1383 2002-05-22 Richard Henderson <rth@redhat.com>
1385 * flow.c (life_analysis): Delete broken reg_label check.
1387 2002-05-22 Richard Henderson <rth@redhat.com>
1389 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1390 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1392 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1394 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1395 (embed-bb.c): New rule.
1396 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1397 * config/sh/embed_bb.c: Delete.
1399 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1401 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1403 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1405 * config/h8300/h8300.md (*andorqi3): New.
1407 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
1409 PR preprocessor/6517
1410 * Makefile.in: Update.
1411 * c-common.c (c_common_post_options): Add preprocessor
1412 errors to the error count.
1413 * c-lang.c (c_post_options): Kill.
1414 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1415 * hooks.h: Add header guards.
1416 * langhooks-def.h: Include hooks.h.
1417 (LANG_HOOKS_POST_OPTIONS): Update.
1418 * langhooks.h (struct lang_hooks): Update post_options.
1419 * toplev.c (parse_options_and_default_flags): Update.
1421 * objc-lang.c (objc_post_options): Kill.
1422 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1424 2002-05-21 Bruce Korb <bkorb@gnu.org>
1426 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1427 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1428 * fixinc/fixincl.x: regen.
1430 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
1432 * cfgbuild.c: Fix formatting.
1434 * cfgcleanup.c: Likewise.
1435 * cfglayout.c: Likewise.
1436 * cfgloop.c: Likewise.
1437 * cfgrtl.c: Likewise.
1439 2002-05-21 Richard Henderson <rth@redhat.com>
1441 * c-common.h (enum rid): Add RID_THREAD.
1442 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1443 (grokdeclarator): Grok __thread.
1444 * c-parse.in (reswords): Add __thread.
1445 (rid_to_yy): Add RID_THREAD.
1447 * tree.h (DECL_THREAD_LOCAL): New.
1448 (struct tree_decl): Add thread_local_flag.
1449 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1450 * tree.c (staticp): TLS variables are not static.
1452 * target-def.h (TARGET_HAVE_TLS): New.
1453 * target.h (have_tls): New.
1454 * output.h (SECTION_TLS): New.
1455 * varasm.c (assemble_variable): TLS variables can't be common for now.
1456 (default_section_type_flags): Handle .tdata and .tbss.
1457 (default_elf_asm_named_section): Handle SECTION_TLS.
1458 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1460 * flags.h (flag_tls_default): Declare.
1461 * toplev.c (flag_tls_default): Define.
1462 (display_help): Display help for it.
1463 (decode_f_option): Set it.
1465 * doc/extend.texi (Thread-Local): New node describing language-level
1466 thread-local storage.
1467 * doc/invoke.texi (-ftls-model): Document.
1469 * fixinc/inclhack.def (thread_keyword): New.
1470 * fixinc/fixincl.x: Rebuild.
1472 2002-05-21 Jeffrey A Law <law@redhat.com>
1474 * optabs.c (expand_binop): For double-word integer multiplies,
1475 do not compute intermediate results into something that is
1476 not a register (such as a SUBREG or MEM).
1478 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1479 (ix86_sched_reorder): Make sure to initialize scheduling
1480 data even when there's only one insn in the ready queue.
1482 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1484 * genautomata.c (reserv_sets_hash_value): Fix a typo.
1486 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1488 * genautomata.c (reserv_sets_hash_value): Define hash_value as
1489 set_el_t. Transform the hash value into unsigned.
1490 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1491 (transform_3): Add code to process `(A,B)+(D,E)'.
1493 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
1495 * reload1.c (do_output_reload): Run delete_output_reload
1498 2002-05-21 Roger Sayle <roger@eyesopen.com>
1501 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1502 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
1503 (can_store_by_pieces): ... and here to limit the largest mode used.
1504 Add a comment to document this function.
1506 2002-05-21 Richard Henderson <rth@redhat.com>
1508 * flow.c (life_analysis): Fix test for deleted label.
1510 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
1512 * doc/tm.texi: Fix typo.
1514 2002-05-21 Zack Weinberg <zack@codesourcery.com>
1516 * c-common.c (c_common_init): Set options->unsigned_char from
1518 (cb_register_builtins): Define __STRICT_ANSI__ and
1519 __CHAR_UNSIGNED__ here...
1520 * cppinit.c (init_builtins): Not here.
1521 (cpp_create_reader): unsigned_char option defaults to 0, not
1522 !DEFAULT_SIGNED_CHAR.
1523 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1524 and -funsigned-char.
1526 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1527 * cpphash.c (_cpp_init_hashtable): Don't set it.
1528 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1529 directly. Clarify comment.
1531 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1533 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1534 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
1535 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
1536 BASIC_BLOCK (n_basic_blocks - 1).
1537 * cfganal.c (can_fallthru, flow_call_edges_add,
1538 flow_preorder_transversal_compute): Too.
1539 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1540 find_sub_basic_blocks): Too.
1541 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1542 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1543 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1544 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1545 * combine.c (this_basic_block): Type changed to basic_block.
1546 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1547 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1548 get_last_value, distribute_notes, distribute_links): Too.
1549 * final.c (compute_alignments): Too.
1550 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1551 * function.c (thread_prologue_and_epilogue_insns): Too.
1552 * gcse.c (compute_code_hoist_vbeinout): Too.
1553 * global.c (build_insn_chain): Too.
1554 * ifcvt.c (find_if_block, find_cond_trap): Too.
1555 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1556 * regmove.c (regmove_optimize): Too.
1557 * resource.c (find_basic_block): Too.
1558 * sched-ebb.c (schedule_ebbs): Too.
1559 * ssa-dce.c (find_control_dependence, find_pdom): Too.
1561 2002-05-21 Andreas Jaeger <aj@suse.de>
1563 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1565 2002-05-21 Richard Henderson <rth@redhat.com>
1567 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1568 unspec names, not numbers.
1570 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
1572 * doc/sourcebuild.texi: Mention snapshot-README and
1573 snapshot-index.html as needing updating for new front ends.
1575 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1577 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1578 disabling checking, and avoid multiple evaluation of RTX.
1580 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
1582 * bitmap.c (bitmap_find_bit): Return early if we have the correct
1585 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1587 * profile.c (gen_edge_profiler): Set alias set before the memory is
1590 2002-05-20 David S. Miller <davem@redhat.com>
1592 * cselib.c (max_value_regs): New.
1593 (cselib_lookup, cselib_invalidate_regno): Initialize it when
1594 adding new entries to the REG_VALUES table and we are dealing with
1596 (clear_table): Initialize it.
1597 (cselib_invalidate_regno): Use it to determine which hard
1598 registers to scan when mode is not VOIDmode.
1600 2002-05-20 Duraid Madina <duraid@fl.net.au>
1602 * tradcpp.c (fixup_newlines): Use old-style function header.
1604 2002-05-20 Krister Walfridsson <cato@df.lth.se>
1606 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1608 2002-05-20 H.J. Lu (hjl@gnu.org)
1610 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1612 * config/mips/mips.h (DFMODE_NAN): Defined.
1613 (SFMODE_NAN): Likewise.
1615 2002-05-20 Dale Johannesen <dalej@apple.com>
1617 * combine.c (cant_combine_insn_p): Back out my
1620 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1622 * params.c: Fix formatting.
1623 * params.h: Likewise.
1624 * predict.c: Likewise.
1625 * prefix.c: Likewise.
1626 * print-rtl.c: Likewise.
1627 * print-tree.c: Likewise.
1628 * profile.c: Likewise.
1630 2002-05-20 H.J. Lu (hjl@gnu.org)
1632 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1634 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
1636 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1637 switches straight on to the assembler, do not abbreviate them.
1638 * config/arm/elf.h (ASM_SPEC): As above.
1639 * config/arm/semi.h (ASM_SPEC): As above.
1640 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1641 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1642 -mcpu=xscale on to the assembler by default.
1643 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1645 2002-05-20 Richard Henderson <rth@redhat.com>
1647 * cse.c (canon_hash): Reorder do_not_record test. Always
1648 allow pic_offset_table_rtx.
1650 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
1652 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1653 (expand_binop): Ditto (3 times).
1655 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
1657 * Makefile.in (distclean): Remove QMTest stuff.
1658 (QMTEST_PATH): New variable.
1659 (QMTESTFLAGS): Likewise.
1660 (QMTESTRUNFLAGS): Likewise.
1662 (QMTEST_GPP_TESTS): Likewise.
1663 (QMTEST_DIR): Likewise.
1664 (QMTEST_DIR/context): New target.
1665 (qmtest-g++): Likeise.
1666 (qmtest-gui): Likewise.
1667 (QMTEST_DIR/gpp-expected.qmr): Likewise.
1669 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
1671 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1672 an altivec register if TARGET_ALTIVEC.
1674 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1675 to ALTIVEC_VECTOR_MODE.
1676 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1677 (rs6000_va_arg): Vectors may go in registers if they are not
1680 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
1682 * protoize.c: Fix formatting.
1684 2002-05-19 Richard Henderson <rth@redhat.com>
1686 * gensupport.c (init_include_reader): Merge into ...
1687 (process_include): ... here. Simplify composite path creation.
1688 Plug memory leaks. Fix file/line number tracking. Do not
1689 process_define_cond_exec. Return void.
1690 (process_rtx): Don't check process_include return value.
1692 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1694 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1696 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1697 traversing basic block chain.
1698 (create_basic_block_structure, create_basic_block): Declaration changed.
1699 (link_block, unlink_block): Declare.
1700 * cfg.c (entry_exit_blocks): Initialize new fields.
1701 (link_block, unlink_block): New.
1702 (expunge_block_nocompact): Unlink basic block.
1703 (dump_flow_info): Print prev_bb/next_bb fields.
1704 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1705 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1706 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1707 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1708 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1709 (verify_flow_info): Check that list agrees with numbering.
1711 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
1713 * c-common.c (preprocessing_asm): New macro.
1714 * c-lex.h (builtin_define, builtin_assert): Use pfile.
1718 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1719 (CPP_SPEC): Simplify.
1720 (TARGET_CPU_CPP_BUILTINS): Update.
1721 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1722 (CPP_SPEC): Simplify.
1723 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1724 (TARGET_OS_CPP_BUILTINS): Update.
1725 * osf.h (CPP_XFLOAT_SPEC): Kill.
1726 (TARGET_OS_CPP_BUILTINS): Update.
1727 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1728 * osf5.h (CPP_XFLOAT_SPEC): Kill.
1729 * vms.h (CPP_SUBTARGET_SPEC): Kill.
1730 (TARGET_OS_CPP_BUILTINS): Update.
1732 2002-05-19 Richard Henderson <rth@redhat.com>
1734 * varasm.c (default_binds_local_p): Fix typo.
1736 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1738 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1739 CONST_INT operand to the correct mode after adding 1 to it.
1741 2002-05-19 Mark Mitchell <mark@codesourcery.com>
1743 * config.gcc (powerpc-wrs-windiss*): New target.
1745 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1747 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1750 2002-05-18 Mark Mitchell <mark@codesourcery.com>
1752 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1754 * config.in: Regenerated.
1755 * configure: Regenerated.
1757 2002-05-19 Richard Henderson <rth@redhat.com>
1759 * target-def.h (TARGET_BINDS_LOCAL_P): New.
1760 * target.h (struct gcc_target): Move boolean fields to the end.
1762 * varasm.c (default_binds_local_p): New.
1763 * output.h: Declare it.
1765 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1766 * config/cris/cris.c (cris_encode_section_info): Likewise.
1767 * config/i386/i386.c (i386_encode_section_info): Likewise.
1768 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1769 * config/sh/sh.c (sh_encode_section_info): Likewise.
1771 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1772 (TARGET_BINDS_LOCAL_P): New.
1774 2002-05-19 Richard Henderson <rth@redhat.com>
1776 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1777 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1778 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1780 * toplev.c (display_help): Kill -a -ax help.
1782 * config/1750a/1750a.h, config/alpha/alpha.h,
1783 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1784 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1785 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1786 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1788 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1789 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1791 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1792 (ix86_output_function_block_profiler): Kill.
1793 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1794 (m68hc11_function_block_profiler): Kill.
1795 * config/m68hc11/m68hc11-protos.h: Update.
1796 * config/m88k/m88k.c (output_block_profiler): Kill.
1797 (output_function_block_profiler): Kill.
1798 * config/m88k/m88k-protos.h: Update.
1800 2002-05-19 Richard Henderson <rth@redhat.com>
1802 * system.h (STRIP_NAME_ENCODING): Poison it.
1803 * output.h (STRIP_NAME_ENCODING): Remove.
1804 (default_strip_name_encoding): Declare.
1805 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1806 * target.h (strip_name_encoding): New.
1807 * varasm.c (default_strip_name_encoding): New.
1809 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1810 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1811 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1812 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1813 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1814 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1815 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1816 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1817 config/v850/v850.h: Use the hook, not the macro.
1819 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1820 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1821 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1822 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1823 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1824 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1825 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1826 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1827 config/v850/v850.c, config/v850/v850.h:
1828 Move STRIP_NAME_ENCODING to out-of-line function and add
1829 TARGET_STRIP_NAME_ENCODING.
1831 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1832 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1833 with TARGET_STRIP_NAME_ENCODING referencing existing function;
1834 make function static.
1836 * xcoffout.c: Include target.h
1837 * Makefile.in (xcoffout.o): Update.
1839 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1840 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1841 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1842 reloc argument unused.
1843 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1845 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
1846 STRIP_NAME_ENCODING docs.
1848 2002-05-19 Andreas Jaeger <aj@suse.de>
1850 * gengenrtl.c: Add prototype for excluded_rtx.
1852 * real.h: Add prototype for exact_real_truncate.
1854 2002-05-18 Richard Henderson <rth@redhat.com>
1856 * system.h (ENCODE_SECTION_INFO): Poison it.
1857 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
1858 * target.h (encode_section_info): New.
1859 * varasm.c (make_decl_rtl, output_constant_def): Use it.
1860 * hooks.c (hook_tree_int_void): New.
1861 * hooks.h: Declare it.
1863 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1864 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
1865 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
1866 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
1867 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
1868 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
1869 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1870 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
1871 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1872 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1873 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
1874 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
1875 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
1876 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
1877 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
1878 referencing existing function. Make function static.
1880 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
1881 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
1882 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
1883 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
1884 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
1885 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
1886 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
1887 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
1888 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
1889 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
1890 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
1891 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
1892 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
1893 Move ENCODE_SECTION_INFO to out-of-line function and add
1894 TARGET_ENCODE_SECTION_INFO.
1896 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
1897 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1899 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
1901 (switch_to_section): Replace in_rdata case with in_readonly_data.
1903 * config/h8300/h8300.c (h8300_encode_label): Make static.
1904 * config/h8300/h8300-protos.h: Update.
1906 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
1907 from rs6000_encode_section_info; make static.
1908 (rs6000_xcoff_encode_section_info): New.
1910 * config/v850/v850.c (v850_encode_data_area): Make static.
1911 * config/v850/v850-protos.h: Update.
1913 * config/vax/vax.c: Include flags.h.
1914 (vms_select_section): Fix typo.
1916 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
1917 ENCODE_SECTION_INFO docs.
1919 2002-05-18 Richard Henderson <rth@redhat.com>
1921 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
1922 REGISTER_TARGET_PRAGMAS.
1923 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
1925 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
1927 2002-05-18 Richard Henderson <rth@redhat.com>
1929 * system.h (SELECT_RTX_SECTION): Poison.
1930 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
1931 * target.h (select_rtx_section): New.
1932 * varasm.c (output_constant_pool): Use it.
1933 (default_select_rtx_section, default_elf_select_rtx_section): New.
1934 * output.h: Declare them.
1936 * config/darwin.h (SELECT_RTX_SECTION): Move ...
1937 * config/darwin.c (machopic_select_rtx_section): ... here.
1938 * config/darwin-protos.h: Update.
1940 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
1941 * config/nextstep.c (machopic_select_rtx_section): ... here.
1942 (nextstep_select_section): Rename variable to avoid macro clash.
1943 * config/nextstep-protos.h: Update.
1945 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
1946 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
1947 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
1948 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
1949 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
1950 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
1951 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
1952 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
1953 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
1954 (SELECT_RTX_SECTION): Remove.
1956 * config/darwin.h, config/elfos.h, config/nextstep.h,
1957 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
1958 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
1959 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
1960 config/sparc/lynx.h, config/xtensa/xtensa.c
1961 (TARGET_ASM_SELECT_RTX_SECTION): New.
1963 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
1964 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
1965 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
1966 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
1967 (ia64_aix_select_rtx_section): New.
1968 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
1970 * config/mips/mips.c (mips_select_rtx_section): Make static.
1971 Support ELF SHF_MERGE features.
1972 * config/mips/mips-protos.h: Update.
1973 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
1974 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
1975 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
1976 make static, fall back to default_elf_select_rtx_section.
1977 * config/rs6000/rs6000-protos.h: Update.
1978 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
1979 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
1980 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
1981 * config/romp/romp.c (romp_select_rtx_section): New.
1982 * config/s390/s390.c (s390_select_rtx_section): New.
1983 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
1984 declarations before target macro definition.
1985 (xtensa_emit_call): Use static buffer.
1986 (xtensa_select_rtx_section): New.
1987 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
1988 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
1989 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
1991 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
1992 SELECT_RTX_SECTION docs.
1994 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1996 * i386.md (movsi/movdi): Fix template.
1997 (sse2 patterns): Set attributes consistently.
1999 * i386.md (pushqi2, ashrqi_*): Fix constraint.
2001 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
2003 * optabs.c (complex_part_zero_p): New.
2004 * (expand_cmplxdiv_straight): Use it.
2005 * (expand_cmplxdiv_wide): Ditto.
2006 * (expand_binop): Ditto.
2008 2002-05-18 Richard Henderson <rth@redhat.com>
2010 * final.c (HAVE_READONLY_DATA_SECTION): New.
2011 (shorten_branches): Use it instead of ifdefs.
2012 * varasm.c (enum in_section): Add in_readonly_data.
2013 (text_section, data_section): Tidy.
2014 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2016 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2017 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2018 (READONLY_DATA_SECTION): Don't undef.
2020 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2021 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2022 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2024 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2025 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2026 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2027 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2029 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2030 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2031 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2032 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2033 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2034 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2035 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2036 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2037 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2039 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2040 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2041 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2042 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2043 config/pa/pa64-hpux.h, config/sparc/litecoff.h
2044 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2046 * config/elfos.h, config/netware.h, config/svr3.h,
2047 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2048 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2049 config/h8300/h8300.h, config/i386/i386-interix.h,
2050 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2051 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2053 * config/elfos.h, config/netware.h, config/svr3.h,
2054 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2055 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2056 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2057 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2059 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2060 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2061 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2062 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2063 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2064 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2065 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2066 config/rs6000/sysv4.h, config/v850/v850.h
2067 (EXTRA_SECTIONS): Remove in_const/in_rdata.
2068 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2070 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2071 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2072 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2073 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2074 * config/alpha/alpha.c (alpha_start_function): Likewise.
2075 (alpha_write_linkage): Likewise.
2076 * config/m32r/m32r.c (m32r_select_section): Likewise.
2077 * config/m88k/m88k.c (m88k_select_section): Likewise.
2078 * config/mips/mips.c (mips_select_rtx_section): Likewise.
2079 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2080 (rs6000_elf_select_section): Likewise.
2081 * config/v850/v850.c (v850_select_section): Likewise.
2083 * config/1750a/1750a.h, config/i860/sysv3.h
2084 (READONLY_DATA_SECTION_ASM_OP): New.
2085 READONLY_DATA_SECTION_ASM_OP.
2086 * config/i386/interix.c, config/i386/winnt.c
2087 (i386_pe_unique_section): Always use .rdata prefix.
2088 * config/pa/som.h (readonly_data): Always switch to read-only section.
2089 (READONLY_DATA_SECTION): Predicate on flag_pic.
2090 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2091 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2092 (READONLY_DATA_SECTION): Update.
2094 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
2096 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2097 is used without -Wformat.
2098 * c-common.h (warn_format_zero_length): Declare extern.
2099 * c-decl.c (warn_options): Add "format-zero-length".
2100 * c-format.c (warn_format_zero_length): Declare.
2101 (set_Wformat): Set warn_format_zero_length for -Wformat.
2102 (check_format_info): Only warn about zero-length formats if
2103 warn_format_zero_length is true. Include the format type
2104 name in the warning message.
2105 * doc/invoke.texi: Document -Wformat-zero-length.
2106 * testsuite/gcc.dg/format/zero-length-1.c: New test.
2108 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2110 * timevar.c: Fix formatting.
2111 * tlink.c: Likewise.
2112 * toplev.c: Likewise.
2113 * tree-dump.c: Likewise.
2114 * tree-inline.c: Likewise.
2116 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2118 * cppinit.c (cpp_post_options): If preprocessed, turn off
2119 traditional. If traditional, turn off column numbers.
2120 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2121 * cpptrad.c (handle_newline): Update line_base.
2122 (skip_comment): Handle -Wcomment.
2124 2002-05-17 Zack Weinberg <zack@codesourcery.com>
2126 * cppinit.c (struct builtin): Remove unused fields.
2127 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2128 (operator_array): New - was second half of builtin_array.
2129 (init_builtins): Simplify loop over builtin_array/operator_array.
2131 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2133 * defaults.h (UNIQUE_SECTION): Remove.
2134 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2136 2002-05-17 Richard Henderson <rth@redhat.com>
2138 * expr.c (init_expr_once): Don't use start/end_sequence.
2139 Use rtx_alloc instead of emit_insn.
2140 * toplev.c (lang_dependent_init): Run init_expr_once here ...
2141 (lang_independent_init): ... not here.
2143 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2145 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2147 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2149 * config/avr/avr.c (avr_regs_to_save): New function. Also check
2150 for fixed registers, possibly used for global register variables.
2151 (initial_elimination_offset, avr_output_function_prologue,
2152 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2154 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2156 * Makefile.in: Update for cpptrad.c.
2157 * cpphash.h (struct cpp_buffer): New members for buffer
2159 (struct cpp_reader): New members for traditional output.
2160 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2161 * cppinit.c (cpp_create_reader): Set trad_line.
2162 (cpp_destroy): Free trad_out_base if used.
2163 (cpp_read_main_file): Overlay an empty buffer if traditional.
2164 (cpp_finish_options): Don't do builtins.
2165 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2166 (cpp_handle_option): Handle it.
2167 * cpplex.c (continue_after_nul): New.
2168 (_cpp_lex_direct): Use handle_nul.
2169 * cpplib.h (struct cpp_options): New traditional option.
2170 * cpptrad.c: New file.
2172 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2174 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2175 and set the options flag.
2176 * cppinit.c (lang_flags): Remove objc.
2177 (lang_defaults): Remove OBJC and OBJCXX.
2179 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2180 (cpp_handle_option): Remove -+ and -lang-objc++.
2181 For ObjC, just set a flag.
2182 (print_help): Update.
2183 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2185 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2187 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2188 bootstrap with -mips3.
2190 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2192 * final.c: Fix formatting.
2193 * fix-header.c: Likewise.
2195 * fold-const.c: Likewise.
2196 * function.c: Likewise.
2198 2002-05-17 David S. Miller <davem@redhat.com>
2200 PR c/6689, PR optimization/6615
2201 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2202 and make it a pointer to rtx. Update comments.
2203 (update_equiv_regs): When scanning for equivalences, record
2204 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2205 it while making the equiv replacements.
2207 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2209 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2211 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2213 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2214 when encoding visibility into SYMBOL_REF_FLAG.
2216 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2218 * expr.c (force_operand): Fix reversed move.
2220 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2222 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2223 that can be ignored.
2225 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2227 * doc/install.texi (Final install): Recommend to install into a
2228 "clean" target directory.
2230 2002-05-17 Richard Henderson <rth@redhat.com>
2232 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2233 for code blocks. Tidy whitespace.
2235 2002-05-17 Richard Henderson <rth@redhat.com>
2237 * hooks.c (hook_tree_bool_false): New.
2238 * hooks.h: Declare it.
2239 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2240 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2241 * target.h (select_section, unique_section): New.
2242 (in_small_data_p): New.
2243 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2244 (variable_section, output_constant_def_contents): Likewise.
2245 (default_select_section, default_unique_section): New.
2246 (categorize_decl_for_section, default_elf_select_section): New.
2247 * output.h: Declare them.
2249 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2250 (TARGET_ASM_SELECT_SECTION): New.
2251 (SELECT_SECTION): Move ...
2252 * config/darwin.c (machopic_select_section): ... here.
2253 * config/darwin-protos.h: Update.
2255 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2256 (SELECT_SECTION): Move ...
2257 * config/nextstep.c (nextstep_select_section): ... here.
2258 * config/nextstep-protos.h: Update.
2260 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2261 (TARGET_ASM_SELECT_SECTION): New.
2262 * config/svr3.h (SELECT_SECTION): Remove.
2264 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2265 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2266 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2267 (alpha_encode_section_info): Use it.
2268 * config/alpha/alpha-protos.h: Update.
2269 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2270 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2271 (TARGET_ASM_SELECT_SECTION): New.
2272 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2274 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2275 (TARGET_ASM_UNIQUE_SECTION): New.
2277 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2278 (avr_unique_section): Rename from unique_section; make static.
2279 * config/avr/avr-protos.h: Update.
2280 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2282 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2284 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2285 (TARGET_ASM_UNIQUE_SECTION): New.
2286 * config/i386/i386-interix.h: Likewise.
2287 * config/i386/win32.h: Likewise.
2288 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2289 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2290 * config/i386/sco5.h (SELECT_SECTION): Remove.
2291 (TARGET_ASM_SELECT_SECTION): New.
2292 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2294 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2295 instead of SELECT_SECTION.
2296 * config/m68k/dpx2.h: Likewise.
2297 * config/rs6000/lynx.h: Likewise.
2299 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2300 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2301 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2302 (ia64_in_small_data_p): New.
2303 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2304 (ia64_aix_select_section, ia64_aix_unique_section): New.
2305 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2306 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2308 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2309 (TARGET_ASM_SELECT_SECTION): New.
2310 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2311 * config/m32r/m32r-protos.h: Update.
2313 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2314 (SELECT_SECTION): Move ...
2315 * config/m88k/m88k.c (m88k_select_section): ... here.
2317 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2318 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2319 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2320 (mcore_unique_section): Make static.
2321 * config/mcore/mcore-protos.h: Update.
2323 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2324 (TARGET_ASM_UNIQUE_SECTION): New.
2325 * config/mips/elf64.h: Likewise.
2326 * config/mips/iris6gld.h: Likewise.
2327 * config/mips/linux.h: Likewise.
2328 * config/mips/mips-protos.h: Update.
2329 * config/mips/mips.c (mips_select_section): Add align argument.
2330 * config/mips/mips.h (SELECT_SECTION): Remove.
2331 (TARGET_ASM_SELECT_SECTION): New.
2333 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2334 * config/mmix/mmix.c (mmix_select_section): Remove.
2335 (mmix_unique_section): Remove.
2336 * config/mmix/mmix-protos.h: Update.
2338 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2339 (SELECT_SECTION): Move ...
2340 * config/pa/pa.c (pa_select_section): ... here.
2341 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2343 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2344 from rs6000_select_section and make static.
2345 (rs6000_elf_unique_section): Similarly.
2346 (rs6000_xcoff_select_section): From xcoff.h.
2347 (rs6000_xcoff_unique_section): Likewise.
2348 * config/rs6000/rs6000-protos.h: Update.
2349 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2350 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2351 * config/rs6000/xcoff.h: Likewise.
2353 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2354 (SELECT_SECTION): Move ...
2355 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2357 * config/v850/v850.h (SELECT_SECTION): Move ...
2358 * config/v850/v850.c (v850_select_section): ... here.
2359 (TARGET_ASM_SELECT_SECTION): New.
2361 * config/vax/vms.h (SELECT_SECTION): Move ...
2362 * config/vax/vax.c (vms_select_section): ... here.
2363 (TARGET_ASM_SELECT_SECTION): New.
2365 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2366 for the target hooks.
2368 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2370 * config/arm/arm.c (emit_multi_reg_push): Do not set
2371 RTX_FRAME_RELATED_P on the SEQUENCE.
2373 2002-05-16 Richard Henderson <rth@redhat.com>
2375 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2376 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2378 2002-05-16 Richard Henderson <rth@redhat.com>
2380 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2382 * config/ia64/ia64.c (saveable_obstack): Do not declare.
2384 2002-05-16 Richard Henderson <rth@redhat.com>
2386 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2387 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2388 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2389 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2390 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2391 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2392 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2393 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2394 Revert "Basic block renumbering removal", and two followup patches.
2396 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2398 * lcm.c (optimize_mode_switching): Revert previous change.
2400 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2402 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2403 with only extant block numbers.
2405 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2407 * lcm.c (optimize_mode_switching): Fix typo.
2409 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2411 * flow.c (calculate_global_regs_live): Queue blocks in program order.
2413 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2415 * doc/install.texi (Configuration): Document PWDCMD.
2417 2002-05-16 Dale Johannesen <dalej@apple.com>
2419 * combine.c (cant_combine_insn_p): Reenable combinations
2420 involving hard regs unless CLASS_LIKELY_SPILLED_P.
2422 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2424 * c-common.c (cb_register_builtins): Handle more built-ins
2425 here rather than in gcc.c specs.
2426 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2427 (cpp_options): Pass -O flags even when only preprocessing.
2428 * toplev.c (set_fast_math_flags): New prototype.
2429 (fast_math_flags_set_p): New.
2430 (set_no_fast_math_flags): Remove.
2431 (decode_f_option): Update.
2432 * toplev.h (set_fast_math_flags): Update.
2433 (fast_math_flags_set_p): New.
2434 (set_no_fast_math_flags): Remove.
2436 * c4x/c4x.c (c4x_override_options): Update.
2438 2002-05-16 Zack Weinberg <zack@codesourcery.com>
2440 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2441 Default-define here.
2442 (builtin_define_with_value): Can now wrap the expansion in
2443 quotation marks if such is wanted.
2444 (cb_register_builtins): Update calls to builtin_define_with_value.
2445 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2447 (c_common_init): Set options->stdc_0_in_system_headers.
2448 * c-lex.h: Update prototype of builtin_define_with_value.
2449 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2450 and REGISTER_PREFIX.
2452 * cppinit.c (VERS, ULP, C, X): Kill.
2453 (builtin_array): Remove entries for __VERSION__,
2454 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2455 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
2457 (init_builtins): Kill off a bunch of now-dead code.
2458 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2459 -fno-leading-underscore.
2460 (cpp_handle_option): Remove code to set user_label_prefix.
2461 (cpp_post_options): Likewise.
2463 * cpplib.h (struct cpp_options): Remove user_label_prefix.
2464 (stdc_0_in_system_headers): New.
2465 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2466 stdc_0_in_system_headers) too to decide the value of __STDC__.
2468 * tradcpp.c (user_label_prefix): Kill.
2469 (main): Remove code handling -f(no-)leading-underscore.
2470 (initialize_builtins): Don't define __REGISTER_PREFIX__
2471 or __USER_LABEL_PREFIX__.
2472 (install_value): Wrap compound statement in dummy loop so the
2473 macro works properly in an if statement.
2476 2002-05-16 Janis Johnson <janis187@us.ibm.com>
2478 * loop.h (struct loop_info): Add member has_prefetch.
2479 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2480 (prescan_loop): Initialize has_prefetch.
2481 (struct prefetch_info): Change prefetch_in_loop and
2482 prefetch_before_loop from bit fields to ints.
2483 (emit_prefetch_instructions): Several small fixes.
2484 (check_dbra_loop): Don't reverse loop that uses prefetch.
2486 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2488 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2489 * configure.in: Likewise.
2490 * fixinc/check.tpl: Likewise.
2491 * fixinc/fixinc.dgux: Likewise.
2492 * fixinc/fixinc.svr4: Likewise.
2493 * fixinc/fixinc.winnt: Likewise.
2494 * fixinc/fixincl.sh: Likewise.
2495 * fixproto: Likewise.
2496 * configure: Regenerate.
2498 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2500 Basic block renumbering removal:
2501 * basic_block.h (struct basic_block_def): Renamed index to sindex,
2502 added prev_bb and next_bb fields.
2503 (n_basic_blocks): Renamed to num_basic_blocks.
2504 (last_basic_block): New, index of last basic block.
2505 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2506 traversing basic block chain.
2507 (BLOCK_NUM): index -> sindex.
2508 (create_basic_block_structure, create_basic_block): Declaration changed.
2509 (debug_num2bb): Declare.
2510 (expunge_block_nocompact): Declaration removed.
2511 (link_block, unlink_block, compact_blocks): Declare.
2512 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2513 * cfg.c (entry_exit_blocks): Initialize new fields.
2514 (clear_edges, alloc_block, expunge_block, cached_make_edge,
2515 redirect_edge_pred, dump_flow_info, dump_edge_info,
2516 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2517 free_aux_for_edges): Modified.
2518 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2519 (expunge_block_nocompact): Removed.
2520 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2521 find_unreachable_blocks, create_edge_list, print_edge_list,
2522 verify_edge_list, flow_edge_list_print, remove_fake_successors,
2523 remove_fake_edges, flow_reverse_top_sort_order_compute,
2524 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2525 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2526 flow_dfs_compute_reverse_execute): Modified.
2527 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2528 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2530 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2531 merge_blocks_move_predecessor_nojumps,
2532 merge_blocks_move_successor_nojumps, merge_blocks,
2533 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2534 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2535 * cfglayout.c (skip_insns_after_block, label_for_bb,
2536 record_effective_endpoints, scope_to_insns_finalize,
2537 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2538 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2539 cfg_layout_duplicate_bb): Modified.
2540 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2541 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2542 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2543 flow_loops_find, flow_loop_outside_edge_p): Modified.
2544 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2545 flow_delete_block, compute_bb_for_insn, split_block,
2546 try_redirect_by_replacing_jump, redirect_edge_and_branch,
2547 force_nonfallthru_and_redirect, tidy_fallthru_edge,
2548 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2549 commit_edge_insertions, commit_edge_insertions_watch_calls,
2550 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2551 purge_all_dead_edges): Modified.
2552 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2553 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2554 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2556 * conflict.c (conflict_graph_compute): Modified.
2557 * df.c (FOR_ALL_BBS): Removed.
2558 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2559 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2560 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2561 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2562 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2563 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2564 * final.c (compute_alignments, final_scan_insn): Modified.
2565 * flow.c (verify_local_live_at_start, update_life_info,
2566 update_life_info_in_dirty_blocks, free_basic_block_vars,
2567 delete_noop_moves, calculate_global_regs_live,
2568 initialize_uninitialized_subregs, allocate_bb_life_data,
2569 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2570 mark_used_reg, count_or_remove_death_notes): Modified.
2571 * function.c (thread_prologue_and_epilogue_insns): Modified.
2572 * gcse.c (struct null_pointer_info): Change typo of current_block
2574 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2575 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2576 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2577 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2578 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2579 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2580 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2581 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2582 pre_delete, one_pre_gcse_pass, compute_transpout,
2583 invalidate_nonnull_info, delete_null_pointer_checks_1,
2584 free_code_hoist_mem, compute_code_hoist_vbeinout,
2585 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2586 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2587 compute_store_table, build_store_vectors, insert_insn_start_bb,
2588 insert_store, replace_store_insn, free_store_memory, store_motion):
2590 * global.c (global_alloc, global_conflicts, mark_elimination,
2591 build_insn_chain): Modified.
2592 * graph.c (print_rtl_graph_with_bb): Modified.
2593 * haifa-sched.c (sched_init): Modified.
2594 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2595 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2596 if_convert): Modified.
2597 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2598 compute_insert_delete, pre_edge_lcm, compute_available,
2599 compute_farthest, compute_nearerout, compute_rev_insert_delete,
2600 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2602 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2603 * loop.c (loop_dump_aux): Modified.
2604 * predict.c (combine_predictions_for_insn, estimate_probability,
2605 last_basic_block_p, process_note_prediction, process_note_predictions,
2606 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2607 expensive_function_p, estimate_bb_frequencies,
2608 compute_function_frequency): Modified.
2609 * print-rtl.c (print_rtx): Modified.
2610 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2611 get_exec_counts, compute_branch_probabilities, compute_checksum,
2612 branch_prob, find_spanning_tree): Modified.
2613 * recog.c (split_all_insns, peephole2_optimize): Modified.
2614 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2615 convert_regs_1, convert_regs_2, convert_regs): Modified.
2616 * regclass.c (scan_one_insn, regclass): Modified.
2617 * regmove.c (mark_flags_life_zones, regmove_optimize,
2618 combine_stack_adjustments): Modified.
2619 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2620 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2621 * reorg.c (dbr_schedule): Modified.
2622 * resource.c (find_basic_block, init_resource_info): Modified.
2623 * sbitmap.c (sbitmap_intersection_of_succs,
2624 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2625 sbitmap_union_of_preds): Modified.
2626 * sched-deps.c (init_dependency_caches): Modified.
2627 * sched-ebb.c (schedule_ebbs): Modified.
2628 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2629 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2630 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2631 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2632 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2633 ssa_const_prop): Modified.
2634 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2635 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2636 * ssa.c (remove_phi_alternative, find_evaluations,
2637 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2638 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2639 make_regs_equivalent_over_bad_edges,
2640 make_equivalent_phi_alternatives_equival,
2641 compute_conservative_reg_partition,
2642 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2643 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2646 2002-05-16 Mark Mitchell <mark@codesourcery.com>
2648 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2650 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2652 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2653 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2654 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2655 calling CONSTANT_POOL_ADDRESS_P.
2656 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2657 to decide whether to define __arm__ or __thumb.
2658 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2659 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2661 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2663 * config/arc/arc.h (CPP_PREDEFINES): Remove.
2665 (TARGET_CPU_CPP_BUILTINS): New.
2667 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2669 * cpphash.h (cpp_macro): Move here, and make expansion a union.
2670 * cppmacro.c (cpp_macro): Remove.
2671 (enter_macro_context, replace_args, warn_of_redefinition,
2672 _cpp_create_definition, cpp_macro_definition): Update.
2674 2002-05-16 Jason Merrill <jason@redhat.com>
2676 * config/mips/mips.c (mips_output_external): Don't do sdata
2677 optimization for a variable with DECL_COMDAT set.
2679 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2681 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2682 Cleanups for accepting modifiers on pointers.
2683 Fix predicate typos.
2684 Allow long pointers as well as int pointers.
2686 2002-05-15 Richard Henderson <rth@redhat.com>
2688 * varasm.c (merge_weak): Remove special case for extern and common.
2690 2002-05-15 Matt Hiller <hiller@redhat.com>
2692 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2694 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2695 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2696 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2697 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2698 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2699 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2701 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2703 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2705 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2707 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2708 ("altivec_mfvscr"): Read from VSCR.
2710 Add vscr sets for the following insns: altivec_vctuxs,
2711 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2712 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2713 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2714 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2715 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2716 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2717 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2718 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2719 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2720 altivec_vsum2sws, altivec_vsumsws.
2722 * config/rs6000/rs6000.h: Add VSCR fixed register.
2723 (CALL_REALLY_USED_REGISTERS): Add vscr.
2724 (CALL_USED_REGISTERS): Same.
2725 (FIXED_REGISTERS): Same.
2726 (REG_ALLOC_ORDER): Same.
2727 (reg_class): Add VSCR_REGS.
2728 (REG_CLASS_NAMES): Same.
2729 (REG_CLASS_CONTENTS): Same.
2731 (REGISTER_NAMES): Add vscr.
2732 (DEBUG_REGISTER_NAMES): Same.
2733 (ADDITIONAL_REGISTER_NAMES): Same.
2734 (FIRST_PSEUDO_REGISTER): Increment.
2735 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2737 2002-05-15 Jakub Jelinek <jakub@redhat.com>
2739 * fold-const.c (fold): Fix a typo.
2741 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
2743 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2744 comparison against the highest or lowest integer value before
2745 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2746 transformation and that of an unsigned comparison against 0
2749 2002-05-15 Richard Henderson <rth@redhat.com>
2751 * varasm.c (merge_weak): Error for any weakening after definition.
2752 Adjust weakening after use warning to catch more cases.
2753 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2754 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2756 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2758 * invoke.texi (-malign-double): Re-add lost warning.
2760 * i386-protos.h (x86_output_mi_thunk): Declare.
2761 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2762 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2764 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2765 when flag_asynchronous_unwind_tables is set.
2767 * flags.h (flag_reorder_functions): Declare.
2768 * function.c (prepare_function_start): Initialize frequnecy.
2769 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2770 * Makefile.in (predict.o): Add dependency on target.h and params.h
2771 * defaults.h (HOT_TEXT_SECTION_NAME,
2772 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2773 * predict.c (choose_function_section): New function.
2774 (estimate_bb_frequencies): Use it.
2775 * toplev.c (flag_reorder_functions): New global variable.
2776 (lang_independent_options): New.
2777 (parse_options_and_default_flags): Set.
2778 * varasm.c (assemble_start_function): Bypass functdion alignment
2779 for never executed functions.
2780 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2781 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2782 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2785 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
2787 * predict.c: Inlude profile.h
2788 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2789 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2790 Use the information about maximal counter in the program.
2792 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
2794 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2795 probably_never_executed_bb_p): New functions.
2796 * cfgcleanup.c (outgoing_edges_match): Use them.
2797 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2798 (maybe_hot_bb_p, probably_cold_bb_p,
2799 probably_never_executed_bb_p): New functions.
2801 * function.h (function): Add new field function_frequency.
2802 * predict.c (compute_function_frequency): New function.
2803 (estimate_probability): Call it.
2805 2002-03-09 Jakub Jelinek <jakub@redhat.com>
2807 PR optimization/5172, optimization/5200
2808 * gcse.c (gcse_main): Disable store_motion.
2810 2002-05-14 Zack Weinberg <zack@codesourcery.com>
2812 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2813 (c_common_nodes_and_builtins): Use it.
2814 (builtin_define_with_value): New function.
2815 (cb_register_builtins): Define __SIZE_TYPE__,
2816 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2817 using builtin_define_with_value. Use consistent notation when
2818 defining __GXX_WEAK__.
2819 (WCHAR_TYPE_SIZE): Don't redefine.
2820 (combine_strings): Don't use WCHAR_TYPE_SIZE.
2822 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2823 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2824 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2825 * tradcpp.c (initialize_builtins): Likewise.
2826 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2828 * c-lex.h (builtin_define_with_value): Prototype.
2829 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2830 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2831 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2833 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2834 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2835 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2836 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2837 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2838 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2839 config/sparc/sol2-bi.h, config/sparc/sparc.h:
2840 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
2841 to __SIZE_TYPE__ etc from all spec strings. When this makes
2842 extra specs empty, delete them.
2844 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
2846 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
2847 for PA8000 or generating dwarf2 call frame information.
2848 (output_call): Remove DO_FRAME_NOTES check from return pointer
2850 (following_call): Return 0 when scheduling for PA8000 or generating
2851 dwarf2 call frame information. Revise comment.
2853 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2856 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
2857 and __IEEE_FP_INEXACT as appropriate.
2858 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
2859 (CPP_SPEC): Remove ieee defines.
2860 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
2862 2002-05-14 Richard Henderson <rth@redhat.com>
2864 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
2865 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
2867 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2869 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
2871 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
2872 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
2873 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
2874 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
2875 (EXTRA_SPECS): Update.
2876 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2877 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
2878 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
2879 define TARGET_OS_CPP_BUILTINS if necessary.
2881 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2883 * gcc.c (cpp_options): Must pass -m* and -f* options
2884 to the front end even when only preprocessing.
2885 (cc1_options): Remove redundant -lang-c.
2886 * tradcpp.c (main): Ignore -m options.
2888 * lang-specs.h: Similarly.
2890 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
2892 * genautomata.c (transform_3): Add code for transformation
2893 `(A,B,...)+C -> A+C,B,...'.
2895 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
2897 * final.c (end_final): Do not output profile_arcs constructor, when
2898 no functions are instrumented.
2900 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
2902 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
2904 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2906 * doc/install.texi: Remove special markup originally required for
2907 HTML generation with texi2html.
2909 2002-05-14 Andreas Schwab <schwab@suse.de>
2911 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
2913 (UNIQUE_SECTION): Define to get small data correctly.
2915 * varasm.c (resolve_unique_section): Add third parameter
2916 flag_function_or_data_sections and use it instead of
2917 flag_function_sections.
2918 (assemble_start_function): Pass flag_function_sections.
2919 (asm_emit_uninitialised): Pass flag_data_sections.
2920 (assemble_variable): Likewise.
2922 2002-05-14 Richard Henderson <rth@redhat.com>
2924 * config/i386/i386.md: Use define_constants for unspec numbers.
2925 * config/i386/i386.c: Likewise.
2927 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2929 * doc/contrib.texi: Update my entry.
2931 2002-05-13 Mark Mitchell <mark@codesourcery.com>
2933 * fixinc/inclhack.def (winidss_valist): Limit applicability.
2934 * fixinc/fixincl.x: Regenerated.
2935 * fixinc/tests/base/math.h: Update.
2936 * fixinc/tests/base/testing.h: Likewise.
2938 2002-05-13 Zack Weinberg <zack@codesourcery.com>
2940 * genattr.c (gen_attr): Don't emit a comma after the last
2943 2002-05-13 Richard Henderson <rth@redhat.com>
2945 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
2947 * recog.c (peephole2_optimize): Likewise.
2949 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
2951 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
2954 2002-05-13 Jeffrey A Law (law@redhat.com)
2956 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
2957 Update prototype and callers.
2958 (propagate_one_insn): Stack pointer adjustments kill MEMs on
2959 the mem_set_list which reference the stack pointer, as do
2960 calls to constant functions as they may clobber outgoing
2963 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
2965 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2966 (ia32_multipass_dfa_lookahead): New function.
2968 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2970 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
2971 (translate_options): Remove 'V'.
2972 (process_command): Similarly.
2974 * invoke.texi: Remove documentation of 'V'.
2976 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2978 * config/s390/linux.h: Revert 2002-04-22 changes.
2980 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
2982 * config/fr30/fr30.md: Only allow splits of immediate loads
2983 if the destination is a register.
2985 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2987 * Makefile.in (c-common.o, cppinit.o): Update.
2988 * c-common.c: Include except.h.
2989 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
2990 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
2991 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
2992 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
2993 CPP_PREDEFINES): Handle here.
2995 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
2996 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
2997 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
2998 TARGET_OS_CPP_BUILTINS.
2999 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3000 (CPP_SPEC, EXTRA_SPECS): Update.
3001 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3002 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3003 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3004 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3005 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3007 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3008 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3010 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3012 * emit-rtl.c (global_rtl): Update comment.
3013 (const_double_htab, const_double_htab_hash,
3014 const_double_htab_hash, lookup_const_double): New.
3015 (const_int_htab_hash, const_int_htab_eq): Remove const
3016 qualifiers, which cause tons of warnings with RTL checking on.
3017 (gen_rtx_CONST_DOUBLE): Deleted.
3018 (const_double_from_real_value): New function - bears some
3019 resemblance to the former immed_real_const_1.
3020 (immed_double_const): Moved here from varasm.c and
3022 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3023 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3024 (gen_rtx): Use immed_double_const.
3025 (init_emit_once): Initialize the const_double_htab. Use
3026 REAL_VALUE_FROM_INT where possible. Can now use
3027 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3028 * varasm.c (struct varasm_status): Remove x_const_double_chain.
3029 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3030 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3031 (init_varasm_status, mark_varasm_status): Don't touch
3032 x_const_double_chain.
3034 * output.h: Delete prototype for clear_const_double_mem.
3035 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
3036 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
3037 const_double_from_real_value, not immed_real_const_1, and use
3038 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
3040 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3041 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3042 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3043 (gen_rtx_REG): Second arg is unsigned.
3045 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3046 (excluded_rtx): New, return true for CONST_DOUBLE.
3047 (genmacro): Write nothing for excluded codes.
3048 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3049 * expr.c (expand_expr): Likewise.
3050 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3052 * toplev.c (rest_of_compilation): Don't call
3053 clear_const_double_mem.
3055 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3056 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3057 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3058 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3059 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3060 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3061 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3062 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3064 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3066 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3068 2002-05-12 Tom Tromey <tromey@redhat.com>
3070 * tree.h (copy_node): Don't mention TREE_PERMANENT.
3072 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3074 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3075 (scan_comma_elt): New function. Accepts whitespace in comma lists.
3076 * gensupport.h: Prototype new routines.
3077 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
3079 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3080 (next_comma_elt): Use scan_comma_elt.
3082 * config/i386/i386.md: Use new attribute notation to break up
3083 long lines in define_attr forms.
3085 2002-05-12 Richard Henderson <rth@redhat.com>
3087 * expr.c (compress_float_constant): New.
3088 (emit_move_insn): Use it.
3089 (float_extend_from_mem): New.
3090 (init_expr_once): Initialize it.
3091 * real.c (exact_real_truncate): New.
3093 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3094 dropped into memory; penalize for size.
3095 (RTX_COSTS): FLOAT_EXTEND is free.
3096 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3097 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3099 2002-05-12 Richard Henderson <rth@redhat.com>
3101 * profile.h (profile_info): Add missing extern to declaration.
3102 * profile.c (profile_info): Define it.
3104 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3106 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3107 used for DImode and TImode.
3109 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3111 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3114 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3116 * config/rs6000/rs6000.c (rs6000_default_long_calls,
3117 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3118 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3119 (rs6000_override_options): Handle -m(no-)longcall.
3120 (init_cumulative_args, output_mi_thunk): Check for both
3121 longcall and shortcall attributes on the function.
3122 (rs6000_attribute_table): Add "shortcall".
3123 (rs6000_handle_longcall_attribute): Update comment.
3124 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3125 altivec_expand_ternop_builtin): Add default clauses to switches
3126 to silence warnings.
3128 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3129 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
3130 (TARGET_OPTIONS): Add longcall and no-longcall.
3132 * config/rs6000/rs6000.md (call_nonlocal_sysv,
3133 call_value_nonlocal_sysv): Split by alternatives. One pair
3134 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3135 the call cookie. The other pair accepts only LR/CTR and has
3138 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3139 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3141 * config/rs6000/rs6000-c.c: New file.
3142 * config/rs6000/t-rs6000-c-rule: New file.
3143 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3144 Prototype rs6000_pragma_longcall.
3146 * doc/extend.texi: Document shortcall attribute.
3147 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3149 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3151 * reorg.c (dbr_schedule): Remove unnecessary test.
3153 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3155 * i386.md (testsi to testqi spliters): New.
3157 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3159 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3161 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3163 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3164 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3165 that can be made fallthru.
3167 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3169 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3170 (cfg_layout_initialize): Use it.
3172 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3174 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3175 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3176 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3178 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3180 * dbxout.c: Fix formatting.
3181 * dependence.c: Likewise.
3183 * diagnostic.c: Likewise.
3184 * doloop.c: Likewise.
3185 * dominance.c: Likewise.
3186 * doschk.c: Likewise.
3187 * dwarf2asm.c: Likewise.
3188 * dwarf2out.c: Likewise.
3189 * dwarfout.c: Likewise.
3191 2002-05-10 Richard Henderson <rth@redhat.com>
3193 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3194 Convert integers constants as needed. Replace "nwords" field with
3196 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3197 * function.h: Fix typo in comment.
3198 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3200 2002-05-10 Roger Sayle <roger@eyesopen.com>
3202 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3203 into the equivalent (signed char)c > 0.
3205 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3207 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3208 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3209 (struct prefetch_info): Fix spelling of member bytes_accessed.
3210 (emit_prefetch_instructions): Make dump messages more regular;
3211 restructure code to add more dump messages; use new macros for
3212 heuristics. (There are no code generation changes in any of this).
3214 2002-05-10 David S. Miller <davem@redhat.com>
3216 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3217 (struct rtx_def): Update unchanging flag comment.
3218 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3219 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3220 to be handled to INSN too.
3221 (dbr_schedule): Likewise.
3222 * resource.c (next_insn_no_annul): Likewise.
3224 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3227 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3229 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3230 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3231 (possibly) work around broken /bin/sh.
3233 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3235 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3236 . as N64/N32 libgcc_s.so subdirs.
3238 2002-05-10 David S. Miller <davem@redhat.com>
3240 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3242 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3244 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3246 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3247 * doc/rtl.texi: Document these macros more accurately.
3248 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3249 JUMP_INSNs and CALL_INSNs.
3250 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3251 or INSN_FROM_TARGET_P if the code is appropriate.
3253 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3255 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3256 before using SYMBOL_REF_FLAG (addr).
3258 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3259 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3260 Make non-static. Update all callers.
3261 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3262 New insns to clear/set/test a single bit in I/O address space.
3264 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3266 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3268 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3270 * Makefile.in: Update.
3271 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3272 builtin_define_std): New.
3273 (c_common_init): Register CPP builtins callback.
3274 * c-common.h (flag_iso, flag_undef): New.
3275 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3276 * c-lex.c: Don't include target.h.
3277 (cb_register_builtins): Move to c-common.c.
3278 (init_c_lex): Don't register hook here.
3279 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3280 (cpp_define, cpp_assert): Remove.
3281 * gcc.c (cc1_options): Pass -undef to front end.
3282 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3283 (TARGET_INITIALIZER): Update.
3284 * target.h (struct cpp_reader): Don't predeclare.
3285 (struct gcc_target): Remove cpp builtin hook.
3286 * tree.c (default_register_cpp_builtins): Remove.
3290 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3292 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3294 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3296 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3297 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3299 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3301 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3302 * config/sparc/libgcc-sparc-glibc.ver: New file.
3303 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3304 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3306 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3309 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3310 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3311 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3313 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3314 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3315 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3316 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3318 2002-05-09 Richard Henderson <rth@redhat.com>
3320 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3321 * config/ia64/ia64.c: Likewise.
3323 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3325 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3326 (save_restore_insns): Likewise.
3327 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3328 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3330 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3332 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3333 * i386.md: Move scheduling information into new files.
3335 * i386.md (type attribute): Add "rotate" for rotate insns.
3336 (rotate insns): Set type to "rotate".
3337 (various attributes and function units): Treat rotate like shift.
3338 (pent_pair attribute): Only rotates by one bit position are
3340 (sbb insns): Explicitly set pent_pair attribute on a couple
3341 that were missing it.
3343 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3345 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3346 make sure that buffer starts on odd word address.
3347 (sh_va_arg): Skip odd fp registers when reading a double precision
3350 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3352 * tree.h (preserve_data, object_permanent_p, type_precision):
3355 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3357 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3358 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3360 * cpp.texi: Update for removal of obsolete features.
3362 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3363 Jeffrey A Law (law@redhat.com)
3365 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3366 the DFA interface for Pentium processors.
3367 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3368 (attr_pent_pair, ix86_pent_find_pair): Remove.
3369 (ix86_sched_reorder_pentium): Remove.
3370 (ix86_sched_reorder): Remove reordering for Pentium.
3371 * i386.md (Pentium scheduling): Rewrite using DFA description.
3373 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3375 * cfganal.c (can_fallthru): Fix fast path.
3376 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3377 with edges to the next block.
3379 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3380 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3382 * final.c (end_final): Use C trees to output data structures for profiling.
3384 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3385 (profile.o): New dependency profile.h
3386 (final.o): New dependency profile.h
3387 * profile.h: New file. New global structure profile_info.
3388 * final.h (count_edges_instrumented_now): Declare.
3389 (current_function_cfg_checksum): Declare.
3390 (function_list): New structure.
3391 (functions_head, functions_tail): New static variables.
3392 (end_final): Emits more data, removed some -ax stuff.
3393 (final): Stores function names and chcksums.
3394 * gcov-io.h (__write_gcov_string): New function.
3395 (__read_gcov_string): New function.
3396 * gcov.c (read_profile): New function.
3397 (create_program_flow_graph): Uses read_profile instead of reading
3399 (read_files): Removed da_file checking, it's done by read_profile now.
3400 * libgcc2.c (bb_function_info): New structure.
3401 (bb): New field in structure, removed some -ax stuff.
3402 (__bb_exit_func): Changed structure of da_file.
3403 * profile.c (count_edges_instrumented_now): New global variable.
3404 (current_function_cfg_checksum): New global variable.
3405 (max_counter_in_program): New global variable.
3406 (get_exec_counts): New function.
3407 (compute_checksum): New function.
3408 (instrument_edges): Sets count_edges_instrumented_now.
3409 (compute_branch_probabilities): Uses get_exec_counts instead of
3411 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3412 (init_branch_prob): Removed da_file checking, done in get_exec_counts
3414 (end_branch_prob): Removed da_file checking, done in get_exec_counts
3416 * gcov.texi: Updated information about gcov file format.
3418 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3420 * sbitmap.c: Fix formatting.
3422 * scan-decls.c: Likewise.
3423 * sched-deps.c: Likewise.
3424 * sched-ebb.c: Likewise.
3425 * sched-rgn.c: Likewise.
3426 * sched-vis.c: Likewise.
3427 * sdbout.c: Likewise.
3428 * sibcall.c: Likewise.
3429 * simplify-rtx.c: Likewise.
3431 * ssa-ccp.c: Likewise.
3432 * ssa-dce.c: Likewise.
3434 * stor-layout.c: Likewise.
3435 * stringpool.c: Likewise.
3437 2002-05-09 David S. Miller <davem@redhat.com>
3439 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3441 2002-05-07 David S. Miller <davem@redhat.com>
3443 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3444 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3445 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3446 library implementation clobbers the output before the inputs
3447 are fully consumed, use stack temporary for the output.
3449 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
3451 * config/netbsd.h (CPP_SPEC): Remove.
3452 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3453 * config/i386/netbsd.h (CPP_SPEC): Define.
3454 * config/ns32k/netbsd.h (CPP_SPEC): Define.
3455 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3456 * config/sparc/netbsd.h (CPP_SPEC): Define.
3457 * config/vax/netbsd.h (CPP_SPEC): Define.
3459 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3461 * read-rtl.c: Fix formatting.
3463 * recog.c: Likewise.
3464 * regclass.c: Likewise.
3465 * regmove.c: Likewise.
3466 * reg-stack.c: Likewise.
3467 * reload1.c: Likewise.
3468 * reload.c: Likewise.
3469 * resource.c: Likewise.
3470 * rtlanal.c: Likewise.
3472 * rtl-error.c: Likewise.
3474 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3476 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3477 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3479 2002-05-08 Bernd Schmidt <bernds@redhat.com>
3481 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3482 use __SSE2__ macro instead.
3483 * config/i386/xmmintrin.h: Likewise.
3485 2002-05-08 Janis Johnson <janis187@us.ibm.com>
3487 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3488 and use it in all invocations of these macros. Clean up comments.
3489 * rtl.c (rtl_check_failed_flag): Add an argument for the name
3490 of the flag access macro whose check failed.
3491 * doc/rtl.texi (Flags): Document additional flag uses.
3493 2002-05-08 Robert Spier <rspier@pobox.com>
3494 Neil Booth <neil@daikokuya.demon.co.uk>
3496 PR preprocessor/6521
3497 * cppfiles.c (handle_missing_header): Don't do anything
3498 different for <> includes.
3500 * cppopts.texi: Update documentation for -MG.
3502 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
3504 * cpplex.c (cpp_interpret_charconst): Truncate as well as
3507 * cpp.texi: Clarify multichar charconst valuation.
3509 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3511 * doc/invoke.texi: Document -mwindiss option.
3513 2002-05-08 Jason Merrill <jason@redhat.com>
3515 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3517 * dwarf2out.c (gen_type_die): Abort on broken recursion.
3520 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3523 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
3525 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3526 little-endian multilibs to override arm/thumb multilibs.
3527 Do not build hardware floating point multilibs, nor apcs-26
3528 multilibs for the Thumb.
3530 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3533 * varasm.c (mark_weak): New function.
3534 (merge_weak): Use it. Do not call declare_weak.
3535 (declare_weak): Use merge_weak.
3537 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3539 * cse.c (dead_libcall_p): Update counts.
3540 (delete_trivially_dead_insns): Update call of dead_libcall_p.
3542 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3544 * cfglayout.c (function_tail_eff_head): Rename to ...
3545 (function_footer): ... this one.
3546 (unlink_insn_chain): New functions.
3547 (label_for_bb): Only call block_label and emit debug message.
3548 (record_effective_endpoints): Actually unlink the headers and footers.
3549 (fixup_reorder_cahin): Re-insert the unlinked sequences.
3550 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3551 * cfglayout.h (struct reorder_block_def): New fields footer/header;
3552 remove eff_head/eff_end.
3553 * rtl.h (set_first_insn): Declare.
3554 * emit-rtl.c (set_first_insn): New function.
3556 * cfglayout.c (fixup_reorder_chain): Dump duplicated
3557 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3558 cfg_layout_duplicate_bb): New global function.
3559 (duplicate_insn_chain): New static function.
3560 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3561 cfg_layout_duplicate_bb): Declare.
3562 (struct reorder_block_def): Add "original" field.
3563 * emit-rtl.c (emit_copy_of_insn_after): New function.
3564 * rtl.h (emit_copy_of_insn_after): Declare.
3566 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3567 (fixup_reorder_chain): properly handle edges to exit block.
3569 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3570 Jan Hubicka <jh@suse.cz>
3572 * basic-block.h (note_prediction_to_br_prob): declare.
3573 * c-semantics.c: Inlucde predit.h
3574 (expand_stmt): predict GOTO_STMT as not taken.
3575 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3576 (cleanup_cfg): Do not free tail_recursion_list.
3577 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3578 (flow_delete_block): Kill predictions past end of basic block.
3579 * output.h (delete_unreachable_blocks): Declare.
3580 * predict.c (predicted_by_p, process_note_predictions,
3581 process_note_prediction, last_block_p): New function.
3582 (estimate_probability): Bypass loop on PRED_CONTINUE;
3583 do not handle noreturn heuristics; kill PRED_RETURN; add
3585 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3586 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3587 * predict.h (IS_TAKEN): New constant.
3588 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3589 * rtl.c (NOTE_INSN_PREDICTION): New.
3590 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3592 (insn_note): add NOTE_INSN_PREDICTION.
3593 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3594 CFG; free tail_recursion_label_list.
3595 * stmt.c: Include predict.h;
3596 (return_prediction): New.
3597 (expand_value_return): Use it.
3598 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3600 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
3602 * config/mips/mips.md: Name the unspecs with define_constant.
3603 (*HILO_delay): Rename to 'hilo_delay' (no star).
3604 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3605 (reload_outdi, reload_outsi): Likewise.
3607 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3609 * toplev.c: Fix formatting.
3611 2002-05-07 Janis Johnson <janis187@us.ibm.com>
3613 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3614 * configure.in (ac_rtlflag_checking): New.
3615 * doc/install.texi (--enable-checking): Document RTL flag checking.
3617 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3619 * c-common.c (c_common_init): Set options->unsigned_wchar.
3620 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3621 group target dependencies.
3622 (init_builtins, cpp_handle_option): Update.
3623 * cpplex.c (cpp_interpret_charconst): Update.
3624 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3625 signed_char to unsigned_char, group target dependencies.
3626 * defaults.h (WCHAR_UNSIGNED): Remove.
3627 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3629 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3630 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3631 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3632 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3633 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3635 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3637 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3639 * fixinc/inclhack.def (windiss_math1): New fix.
3640 (windiss_math2): Likewise.
3641 (windiss_valist): Likewise.
3642 * fixinc/fixincl.x: Regenerated.
3644 2002-05-07 Andreas Jaeger <aj@suse.de>
3646 * genautomata.c (output_internal_min_issue_delay_func): Add
3647 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3648 (output_internal_trans_func): Likewise.
3650 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
3652 * pa.c (hppa_profile_hook): Use force_reg to get the address
3653 of the profile hook into an appropriate pseudo register.
3655 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3657 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3658 (LINK_START_SPEC): Handle it.
3659 (LINK_OS_SPEC): Likewise.
3660 (CPP_SPEC): Likewise.
3661 (STARTFILE_SPEC): Likewise.
3662 (LIB_SPEC): Likewise.
3663 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
3665 (CRTSAVRES_DEFAULT_SPEC): New macro.
3666 (LIB_WINDISS_SPEC): New macro.
3667 (CPP_OS_WINDISS_SPEC): Likewise.
3668 (STARTFILE_WINDISS_SPEC): Likewise.
3669 (ENDFILE_WINDISS_SPEC): Likewise.
3670 (LINK_START_WINDISS_SPEC): Likewise.
3671 (LINK_OS_WINDISS_SPEC): Likewise.
3672 * config/rs6000/windiss.h: New file.
3674 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
3676 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3678 2002-05-06 David S. Miller <davem@redhat.com>
3680 * config/sparc/sparc.md (shift insns): Do not mask off
3681 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3684 2002-05-06 Richard Henderson <rth@redhat.com>
3687 * expr.c (highest_pow2_factor_for_type): New.
3688 (expand_assignment): Use it.
3690 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
3692 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3694 ("altivec_mfvscr"): Same.
3696 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3698 * rtl.h (struct rtx_def): Update comments.
3699 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
3700 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
3701 RTL_FLAG_CHECK macros with list of expected RTL codes.
3702 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3703 (rtl_check_failed_flag): New.
3704 * reload1.c (reload): Use REG macro before changing rtx to MEM.
3705 (reload_cse_noop_set_p): Check rtx code before using access macro.
3706 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3707 before using access macro.
3709 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3711 * doc/rtl.texi (Flags): Update to reflect current usage.
3713 2002-05-06 Roger Sayle <roger@eyesopen.com>
3716 * fold-const.c (sign_bit_p): New function.
3717 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3718 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3719 Reapply fold when converting (A & C) == C into (A & C) != 0.
3720 (fold_binary_op_with_conditional_arg): Fix typo in comment.
3722 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3724 * c-common.c (warn_multichar): New.
3725 (c_common_init): Set CPP's warn_multichar.
3726 * c-common.h (warn_multichar): New.
3727 * c-decl.c (warn_multichar): Remove.
3728 * c-lex.c (lex_charconst): Update.
3729 * c-tree.h (warn_multichar): Remove.
3730 * cppexp.c (eval_token): Sign-extend charconst value.
3731 * cppinit.c (cpp_create_reader): Set warn_multichar.
3732 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3733 each character. Update prototype. Sign-extend the result.
3734 * cpplib.h: Fix conditions.
3735 (struct cpp_options): Add new warning flag.
3736 (cpp_interpret_charconst): Update prototype.
3738 * cpp.texi: Update documentation.
3740 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
3742 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3743 Fix typo in usage of allof instead of unit.
3745 2002-05-06 Richard Henderson <rth@redhat.com>
3747 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3748 and any jump or call for IN.
3750 2002-05-06 Bernd Schmidt <bernds@redhat.com>
3752 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3754 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3756 2002-05-06 Roger Sayle <roger@eyesopen.com>
3758 * fold-const.c (lshift-double): Cast the high word to an unsigned
3759 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3760 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3761 avoid compiler warning. (fold): Remove redundant code from
3762 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3764 2002-05-06 Jeff Law <law@redhat.com>
3766 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3767 * pa.c (pa_adjust_cost): Remove all true dependency cost
3768 adjustments. Also remove support for non-DFA scheduling.
3769 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3770 to adjust true dependency costs. Update various comments.
3771 (7100lc, 7200, 7300 scheduling): Simplify by combining the
3772 FP ALU & MPY units into a single unit.
3774 2002-05-06 Catherine Moore <clm@redhat.com>
3776 * config/v850/v850.c (compute_register_save_size): Make sure
3777 to count all of the registers that will be saved.
3779 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3781 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3783 2002-05-06 David S. Miller <davem@redhat.com>
3785 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3786 allow result to overlap input operands in memory.
3788 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3791 * cpp.texi: Update multichar charconst docs.
3793 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3795 * cpplex.c (cpp_interpret_charconst): Sign-extend each
3796 character. Don't ignore excess characters. Treat
3797 multicharacter character constants as signed.
3798 (cpp_parse_escape): Clarify diagnostic.
3800 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3802 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3803 use add instead of shift.
3804 (ashldi3_sp64): Likewise.
3805 (ashlsi3_const1, ashldi3_const1): Remove.
3806 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3807 * config/sparc/sparc.c (const1_operand): New.
3809 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3811 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3813 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3816 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3818 2002-05-05 Richard Henderson <rth@redhat.com>
3820 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3821 memory latency adjustments.
3822 (alpha_variable_issue): Remove.
3823 (alpha_use_dfa_pipeline_interface): New.
3824 (alpha_multipass_dfa_lookahead): New.
3825 * config/alpha/alpha.md: Remove define_function_unit scheduling;
3826 include new dfa scheduling.
3827 (attr type): Add none.
3829 * config/alpha/ev4.md: New.
3830 * config/alpha/ev5.md: New.
3831 * config/alpha/ev6.md: New.
3833 2002-05-05 David S. Miller <davem@redhat.com>
3835 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3837 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
3839 * cse.c: Fix formatting.
3840 * emit-rtl.c: Likewise.
3842 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3844 * genautomata.c (initiate_states): Add additional guard to
3845 initialize `units_array'.
3847 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3849 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
3850 process_unit_to_form_the_same_automaton_unit_lists,
3851 form_the_same_automaton_unit_lists
3852 check_unit_distributions_to_automata): New prototypes and
3854 (check_automata): Rename it into `check_automata_insn_issues'.
3855 (unit_decl): New fields `the_same_automaton_unit' and
3856 `the_same_automaton_message_reported_p'.
3857 (unit_decl_t): New typedef.
3858 (the_same_automaton_lists): New gloval variable.
3859 (unit_regexp, unit_set_el, units_array, units_cmp,
3860 output_get_cpu_unit_code_func): Use the typedef.
3861 (evaluate_max_reserv_cycles): Increment
3862 `description->max_insn_reserv_cycles'.
3863 (initiate_states): Don't increment `max_cycles_num'.
3864 (transform_insn_regexps): Move code around transformation of
3865 regexps from `generate'.
3866 (generate): Remove call of `transform_insn_regexps'.
3867 (expand_automata): Call `transform_insn_regexps' and
3868 `check_unit_distributions_to_automata'. Check errors before
3871 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
3872 automaton `ultrasparc3_1'.
3874 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
3876 * c-common.c (c_common_init): Set up CPP arithmetic.
3877 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
3878 something reasonable for the host.
3879 (sanity_checks): Add checks.
3880 (cpp_read_main_file): Call sanity_checks() from here...
3881 (cpp_post_options): ... not here.
3882 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
3883 * cpplib.h (struct cpp_options): New member int_precision.
3885 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3887 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
3889 2002-05-04 David S. Miller <davem@redhat.com>
3891 * config/sparc/linux.h, config/sparc/linux64.h
3892 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
3894 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
3896 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
3898 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
3901 2002-05-05 Tim Josling <tej@melbpc.org.au>
3903 * treelang; New directory for new sample language treelang.
3905 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3907 * Makefile.in (c-lex.o): Update.
3908 * c-lex.c: Include target.h.
3909 (cb_register_builtins): New.
3910 (init_c_lex): Set builtins callback.
3911 * c-lex.h (cpp_define, cpp_assert): New prototypes.
3912 * cppinit.c (init_builtins): Use callback, including for
3914 * cpplib.h (struct cpp_callbacks): New member.
3915 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
3916 (TARGET_INITIALIZER): Update.
3917 * target.h (struct gcc_target): New hook.
3918 * tree.c (default_register_cpp_builtins): New.
3919 * tree.h (default_register_cpp_builtins): New.
3921 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
3923 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3925 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
3926 (cpp_post_options): Move sanity checks to...
3927 (sanity_checks): New.
3928 * cpplex.c (maybe_read_ucs): Fix prototype.
3929 (parse_string, cpp_parse_escape): Cast for %c format specifier.
3930 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
3933 2002-05-04 Bernd Schmidt <bernds@redhat.com>
3935 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
3936 builtins. Use V2DI patterns instead of TI for logical operations.
3937 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
3938 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
3939 (ix86_expand_builtins): Change the pattern used for movntdq.
3940 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
3941 sse2_nandv2di3): New patterns.
3942 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
3944 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
3945 (cvtdq2pd): Correct mode on operand 1.
3946 (sse2_umulsidi3): Describe without unspec.
3947 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
3949 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
3950 (ashlv2di3): Likewise, from sse2_ashlv2di3.
3951 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
3952 ashlv4si3, ashlv2di3): Use SImode for shift count.
3953 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
3954 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
3956 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
3958 (__m128i, __m128d): New macros.
3959 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
3960 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
3961 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
3962 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
3963 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
3964 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
3965 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
3966 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
3967 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
3968 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
3969 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
3970 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
3971 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
3972 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
3973 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
3974 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
3975 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
3976 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
3977 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
3978 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
3979 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
3980 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
3981 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
3982 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
3983 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
3984 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
3985 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
3986 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
3987 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
3988 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
3989 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
3990 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
3991 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
3992 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
3993 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
3994 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
3995 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
3997 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
3998 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4000 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4002 * dwarf2out.c: Fix formatting.
4003 * varasm.c: Likewise.
4005 2002-05-04 David Edelsohn <edelsohn@gnu.org>
4008 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4009 clobber and use result as temporary value.
4011 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4013 * expr.c (force_operand): Use expand_simple_* to handle more
4016 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4018 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4020 (lex_charconst): Update for change in prototype of
4021 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
4023 * cpphash.h (BITS_PER_CPPCHAR_T): New.
4024 * cppinit.c (cpp_create_reader): Initialize them for no
4025 change in semantics.
4026 (cpp_post_options): Add sanity checks.
4027 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4028 and truncation issues. Calculate in type cppchar_t.
4029 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4030 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
4031 run-time dependent precision correctly. Return whether the
4032 result is signed or not.
4033 * cpplib.c (dequote_string): Use cppchar_t; update.
4034 * cpplib.h (cppchar_signed_t): New.
4035 struct cpp_options): New precision members.
4036 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4037 * cppexp.c (eval_token): Update.
4039 2002-05-03 David S. Miller <davem@redhat.com>
4041 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4042 * config/sparc/sparc.c (sparc_rtx_costs): New function
4043 implementing RTX_COSTS and CONST_COSTS.
4044 * config/sparc/sparc.h (CONST_COSTS): Delete.
4045 (RTX_COSTS_CASES): Define.
4046 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4049 * config/sparc/sparc.md (DFA schedulers): Split out...
4050 * config/sparc/cypress.md, config/sparc/hypersparc.md,
4051 config/sparc/sparclet.md, config/sparc/supersparc.md,
4052 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4054 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4055 checks on it, always defined for Sparc.
4057 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4058 Tweak, and add more detailed comments.
4060 2002-05-03 Zack Weinberg <zack@codesourcery.com>
4062 * Re-apply patch accidentally reverted with
4063 DFA scheduler merge: remove all rules and variables to slurp
4064 source files out of libiberty and rebuild them with HOST_CC.
4065 ($(HOST_PREFIX_1)varray.o): New rule.
4066 (genattrtab rule): Word wrap.
4068 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4070 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4071 (CPP_SUBTARGET_SPEC): Define.
4072 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4073 cpp_subtarget specs.
4074 (CPP_SPEC): Redefine to include %(cpp_subtarget).
4076 2002-05-03 David S. Miller <davem@redhat.com>
4078 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4079 * target.h (struct gcc_target): Delete cycle_display member.
4081 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4082 (rtx_needs_barrier): Delete reference to cycle_display unspec.
4083 (ia64_sched_reorder2): Mention need for cycle display handling
4084 once such notes exist.
4086 2002-05-03 Richard Henderson <rth@redhat.com>
4088 * real.c (etoasc): Strip most trailing zeros for clarity.
4089 * sched-vis.c: Include real.h.
4090 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4091 * Makefile.in (sched-vis.o): Add real.h.
4093 2002-05-03 David S. Miller <davem@redhat.com>
4095 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4098 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
4100 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4101 when we get an out of range literal.
4102 (altivec_expand_ternop_builtin): Same.
4103 (altivec_expand_unop_builtin): Same.
4104 (altivec_expand_builtin): Same, for dss.
4105 (altivec_expand_builtin): Use trees instead of rtl when
4106 determining literal argument validity.
4108 2002-05-03 David S. Miller <davem@redhat.com>
4110 Delete cycle display scheduling hook.
4111 * config/ia64/ia64.c (ia64_cycle_display,
4112 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4113 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4114 and use emit_insn_before instead of ia64_emit_insn_before.
4115 * config/ia64/ia64.md (unspec usage): Delete cycle display.
4116 (cycle_display): Delete insn pattern.
4117 * config/sparc/sparc.md (unspec usage): Delete cycle display.
4118 (cycle_display): Delete insn pattern.
4119 * config/sparc/sparc.c (sparc_cycle_display,
4120 TARGET_SCHED_CYCLE_DISPLAY): Delete.
4121 * doc/md.texi (cycle_display): Don't mention.
4122 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4124 2002-05-03 Richard Henderson <rth@redhat.com>
4126 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4127 * recog.h: Declare them.
4129 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4130 * config/sparc/sparc.md: Use store_data_bypass_p instead.
4131 * config/sparc/sparc-protos.h: Update.
4133 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4135 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4136 -D__arch64__. Add -D_LP64.
4137 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4139 (CPP_ARCH64_SPEC): Likewise.
4140 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4141 (NO_BUILTIN_SIZE_TYPE): Undef.
4143 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
4145 * genautomata.c (min_issue_delay_pass_states): Change return type
4147 (min_issue_delay_pass_states): Change the algorithm.
4148 (min_issue_delay): Set up min_insn_issue_delay for the state.
4149 (output_min_issue_delay_table): Interchange the nested loops and
4150 and initiate min_insn_issue_delay for states.
4152 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4154 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4157 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4159 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4162 2002-05-03 Richard Henderson <rth@redhat.com>
4165 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4166 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4167 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4168 code before JUMP, not EARLIEST.
4170 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4172 * c-format.c (check_format_info_main): Don't check for presence of
4173 parameter for * width until after operand number has been read,
4174 and only check for it if format parameters are available.
4177 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4179 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4180 (LINK_SPEC): Undef before defining.
4182 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4184 PR preprocessor/6489
4185 * tradcpp.c (fixup_newlines): New.
4186 (main, finclude): Use it.
4188 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4190 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4191 * config/mips/mips.c (mips_unique_section): Strip encoding from
4194 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4196 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4199 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4201 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4202 (Specific): Removed buildstats references.
4203 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4204 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4205 Accomodate Solaris versions beyond 8.
4206 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4207 (Specific, *-*-solaris2.8): Removed, obsolete.
4209 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4212 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4213 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4214 fill leaf_reg_remap with identity.
4215 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4217 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4219 * config/h8300/crti.asm: Remove trailing spaces.
4220 * config/h8300/h8300.c: Likewise.
4221 * config/h8300/lib1funcs.asm: Likewise.
4223 2002-05-02 Jason Merrill <jason@redhat.com>
4225 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4226 * c-decl.c (c_init_decl_processing): Use it.
4227 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4228 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4229 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4231 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4233 * regrename.c: Fix formatting.
4236 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4238 * i386.md (attribute memory): Handle compares properly.
4240 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4242 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4245 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4247 * function.c: Fix formatting.
4249 2002-05-02 Jan Hubicka <jh@suse.cz>
4251 * haifa-sched.c (schedule_insn): Print table of instructions and
4253 (sched_block): Do not print ready list at verbosity level 1.
4254 * sched-vis.c (print_insn): Make global.
4255 * sched-ebb.c (ebb_print_insn): Rename from...
4256 (print_insn): ... this one.
4257 * sched-int.h (print_insn): Declare
4259 2002-05-02 Richard Henderson <rth@redhat.com>
4261 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4262 emitted by cycle_display.
4264 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4266 * doc/install.texi (*-*-freebsd*): Update to latest status.
4268 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4271 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4272 * config/float-sparc.h: Assume 128-bit long double if
4273 __LONG_DOUBLE_128__ is defined.
4275 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4277 * genattrtab.c (write_function_unit_info): Add a dummy element
4278 when num_units == 0.
4280 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4282 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4283 TYPE_MODE (double_type_node) instead of DFmode.
4285 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4287 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4289 * toplev.c (rest_of_compilation): Revert Richard's patch.
4291 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4293 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4295 2002-05-02 Catherine Moore <clm@redhat.com>
4297 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4299 2002-05-02 Kazu Hirata <kazu@hxi.com>
4301 * combine.c: Fix comment typos.
4303 * genautomata.c: Likewise.
4307 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4309 * doc/install.texi: State GNAT version requirements.
4311 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4313 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4314 of the frame pointer or arg pointer register which strict register
4315 checking is not enabled.
4317 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4319 * gcc.dg/altivec-8.c: New.
4321 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4322 PRE_INC and PRE_DEC for altivec modes.
4324 2002-05-01 Bruce Korb <bkorb@gnu.org>
4326 * fixinc/check.tpl(set-writable): make sure the function exists first
4327 * fixinc/inclhack.def(alpha_assert): fix test_text
4328 * fixinc/tests/base/assert.h: add in missing result
4330 2002-05-01 Jeff Law <law@redhat.com>
4332 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4335 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4337 * dbxout.c (dbxout_type): Emit size information for range types,
4338 as well, but only when using GDB extensions.
4340 2002-05-01 Richard Henderson <rth@redhat.com>
4342 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4343 target-independent gnu binutils date test.
4345 2002-05-01 Richard Henderson <rth@redhat.com>
4347 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4348 info before expunging the block.
4350 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4352 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4353 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4354 -M -or -MM is in effect.
4356 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4358 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4359 A29k configurations.
4360 * doc/install.texi: Update to match.
4362 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4365 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4366 for duplicates. Always loop over whole list.
4368 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4370 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4372 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4374 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4377 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4379 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4381 2002-05-01 David Edelsohn <edelsohn@gnu.org>
4383 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4384 (nabs_nopower): Same.
4385 (floatdisf2): New pattern.
4386 (absdi2): Convert to define_insn_and_split.
4391 (fix_trunctfdi2): Same.
4392 (fix_trunctfsi2): Same.
4394 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
4396 * doc/install.texi: Update Texinfo version requirement
4399 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4401 PR target/6512, PR target/5628
4402 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4403 when memory is not aligned.
4404 (movdf_insn_v9only_vis): Likewise.
4405 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4406 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4407 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4409 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
4411 * gcc.dg/altivec-7.c: New.
4413 * config/rs6000/altivec.h: Cleanup.
4415 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
4417 * doc/invoke.texi (Option Summary): Add -mvrsave=.
4418 (RS/6000 and PowerPC Options): Document -mvrsave=.
4420 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4421 (rs6000_altivec_vrsave_string): Same.
4422 (rs6000_override_options): Call rs6000_parse_vrsave_option.
4423 (rs6000_parse_vrsave_option): New.
4424 (rs6000_stack_info): Only generate vrsave instructions when
4425 TARGET_ALTIVEC_VRSAVE.
4427 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4428 (rs6000_altivec_vrsave_string): Define extern.
4429 (rs6000_altivec_vrsave): Same.
4430 (TARGET_ALTIVEC_VRSAVE): New.
4432 2002-04-30 Richard Henderson <rth@redhat.com>
4435 * toplev.c (rest_of_compilation): Don't run cross-jump before
4438 2002-04-30 Tom Rix <trix@redhat.com>
4440 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4441 check which_alternative.
4443 2002-04-30 Kazu Hirata <kazu@hxi.com>
4445 * cpplex.c: Fix comment formatting.
4446 * function.c: Likewise.
4447 * integrate.c: Likewise.
4448 * regrename.c: Likewise.
4449 * sibcall.c: Likewise.
4450 * simplify-rtx.c: Likewise.
4451 * tree-inline.c: Likewise.
4453 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4455 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4456 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4457 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4458 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4459 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4460 * pa/x-ada: New file. Define ADA_CFLAGS.
4462 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
4464 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4465 from MMIX_LAST_REGISTER_FILE_REGNUM.
4466 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4467 (struct machine_function): New member highest_saved_stack_register
4468 previously static variable in mmix.c.
4469 (MACHINE_DEPENDENT_REORG): Define.
4470 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4471 (MMIX_OUTPUT_REGNO): New.
4472 (mmix_target_asm_function_prologue): Move calculation of last used
4473 saved-stack-register into...
4474 (mmix_machine_dependent_reorg): New function. Update to also handle
4476 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4477 register names, simplify somewhat by new variable regno.
4478 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
4480 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4481 emitting register names.
4482 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4483 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4485 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4488 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4490 2002-04-30 Richard Henderson <rth@redhat.com>
4492 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4493 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4494 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4495 emit_tfmode_cvt): New.
4496 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4497 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4498 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4499 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4500 * config/sparc/sparc-protos.h: Update.
4502 2002-04-30 Janis Johnson <janis187@us.ibm.com>
4504 * install.texi (Final install): Add to the list of info to include
4505 in a report of a successful bootstrap, and add link to 3.1 list.
4507 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
4509 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4510 (mode): Add vector modes
4511 (i387): Kill attribute.
4512 (unit): New attribute.
4513 (length_immediate): Grok new types.
4514 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4515 (modrm): Use "unit".
4516 (memory): Handle MMX/SSE properly.
4517 (scheduling descriptions): Kill uses of fop1.
4518 (sse, mmx, fp patterns): Set type and mode properly.
4520 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
4522 * pa.c (override_options): Default to PA8000 scheduling.
4523 * doc/invoke.texi (HP-PA options): Mention newly added 7300
4524 scheduling parameter.
4526 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4527 handling of double precision multiplies.
4529 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4530 fpdiv and fpsqrt instructions.
4531 (7200 & 7300 scheduling): Fix typo in handling of
4532 store-load and store-store penalties.
4534 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4536 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4537 mips. Add two missing commas.
4539 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
4541 * doc/contrib.texi (Contributors): Update Paolo Carlini's
4542 and Benjamin Kosnik's entries.
4544 2002-04-29 David S. Miller <davem@redhat.com>
4546 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4547 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4548 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4549 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4551 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4553 * combine.c (find_split_point): Use gen_int_mode.
4555 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
4557 Merging code from dfa-branch:
4559 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
4561 * genautomata.c (output_reserv_sets): Fix typo.
4563 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
4565 * genautomata.c (output_reserv_sets): Remove
4566 next_cycle_output_flag.
4568 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
4570 * sched-rgn.c (init_ready_list): Make the DFA code handle
4571 USE/CLOBBER insns in the same way as the traditional
4573 (new_ready): Similarly..
4575 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
4577 * haifa-sched.c (schedule_block): Change the DFA state only after
4580 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
4582 * pa.c (hppa_use_dfa_pipeline_interface): New function.
4583 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4584 (override_options): Add PA7300 scheduling support.
4585 (pa_adjust_cost): Update various comments. Properly
4586 handle anti and output dependencies when using the
4588 (pa_issue_rate): Add PA7300 scheduling support.
4589 (pa_can_combine_p): Call extract_insn before calling
4590 constrain_operands (taken from mainline tree).
4591 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4592 * pa.md (cpu attr): Add 7300. Rewrite pipeline
4593 descriptions using DFA descriptions. Add PA7300
4596 2002-03-30 David S. Miller <davem@redhat.com>
4598 Add UltraSPARC-III DFA scheduling support.
4599 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4600 Update FP conditional move on register insn patterns to use it, as
4602 (define_attr cpu): Add ultrasparc3.
4603 (define_attr us3load_type): New, update integer load patterns to
4604 set it, as appropriate.
4605 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4606 (rest): Add UltraSPARC3 scheduling description.
4607 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4608 (PROCESSOR_ULTRASPARC3): New.
4609 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4610 ({ASM,CPP}_CPU_SPEC): Likewise.
4611 (REGISTER_MOVE_COST): Likewise.
4612 (RTX_COSTS): Likewise.
4613 * config/sparc/sparc.c (sparc_override_options,
4614 sparc_initialize_trampoline, sparc64_initialize_trampoline,
4615 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4616 sparc_issue_rate): Likewise.
4617 * config/sparc/sol2.h: Likewise.
4618 * config/sparc/sol2-sld-64.h: Likewise.
4619 * config/sparc/linux64.h: Likewise.
4621 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
4623 * doc/md.texi: Add comments about usage the latency time for the
4624 different dependencies and about case when two or more conditions
4625 in different define_insn_reservations returns TRUE for an insn.
4627 * doc/md.texi: Add reference for automaton based pipeline
4630 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
4632 * doc/passes.texi: Add missed information about genattrtab.
4634 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
4636 * genautomata.c (output_automata_list_transition_code): Check
4637 automata_list on NULL.
4639 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
4641 * genautomata.c (output_insn_code_cases,
4642 output_automata_list_min_issue_delay_code,
4643 output_automata_list_transition_code,
4644 output_automata_list_state_alts_code): Comment the functions.
4646 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
4648 * genautomata.c (automata_list_el_t): New typedef.
4649 (get_free_automata_list_el,free_automata_list_el,
4650 free_automata_list, automata_list_hash, automata_list_eq_p,
4651 initiate_automata_lists, automata_list_start, automata_list_add,
4652 automata_list_finish, finish_automata_lists,
4653 output_insn_code_cases, output_automata_list_min_issue_delay_code,
4654 output_automata_list_transition_code,
4655 output_automata_list_state_alts_code, add_automaton_state,
4656 form_important_insn_automata_lists): New functions and prototypes.
4657 (insn_reserv_decl): Add members important_automata_list and
4659 (ainsn): Add members important_p.
4660 (automata_list_el): New structure.
4661 (first_free_automata_list_el, current_automata_list,
4662 automata_list_table): New global variables.
4663 (create_ainsns): Initiate member important_p.
4664 (output_internal_min_issue_delay_func): Generate the switch and
4665 call output_insn_code_cases.
4666 (output_internal_trans_func, output_internal_state_alts_func):
4668 (generate): Call initiate_automata_lists.
4669 (automaton_states): New global variable.
4670 (expand_automata): Call form_important_insn_automata_lists.
4671 (write_automata): Call finish_automata_lists.
4673 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
4675 * genautomata.c (add_excls, add_presence_absence): Check that
4676 cpu units in the sets belong the same automaton.
4678 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4679 about that cpu units in the sets belong the same automaton.
4681 * doc/md.texi: Ditto.
4683 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
4684 Nitin Gupta <niting@noida.hcltech.com>
4686 * config/sh/sh.c (sh_use_dfa_interface): New function.
4688 (sh_issue_rate): New Function.
4689 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4690 TARGET_SCHED_ISSUE_RATE: define.
4692 * config/sh/sh.md: Add DFA based pipeline description for SH4.
4694 (define_attr insn_class): New attribute used for DFA
4696 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4697 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4698 cmpeqdi_t): Likewise.
4700 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4701 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4703 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4705 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4707 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4710 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4712 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4713 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4715 (output_dfa_start_func): Initiate new variable insn_codes_length,
4716 (write_automata): Output definition of the new variable.
4718 2001-10-02 David S. Miller <davem@redhat.com>
4720 * haifa-sched.c (advance_one_cycle): New function.
4721 (schedule_block): Use it.
4722 (queue_to_ready): Use it, and also make sure to advance the DFA
4723 state on all stall cycles, not just those where insn_queue links
4726 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
4728 * haifa-sched.c (max_issue): Remove last_p argument. Only return
4729 non-zero if the highest-priority instruction could be scheduled.
4730 (choose_ready): Remove last argument from max_issue call.
4732 2001-09-28 David S. Miller <davem@redhat.com>
4734 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4735 ultrasparc and 3 for other multi-issue sparcs.
4737 2001-09-27 David S. Miller <davem@redhat.com>
4739 * config/sparc/sparc.md (cycle_display): New pattern.
4740 * config/sparc/sparc.c (sparc_cycle_display): New.
4741 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4743 2001-09-25 David S. Miller <davem@redhat.com>
4745 Convert all of Sparc scheduling to DFA
4746 * config/sparc/sparc.md: Kill all define_function_unit
4747 directives and replace with DFA equivalent.
4748 * config/sparc/sparc.c (ultrasparc_adjust_cost,
4749 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4750 ultra_fpmode_conflict_exists, ultra_find_type,
4751 ultra_build_types_avail, ultra_flush_pipeline,
4752 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4753 ultrasparc_variable_issue, ultrasparc_sched_init,
4754 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4755 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4756 ultra_cur_hist, ultra_cycles_elapsed): Kill.
4757 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4758 ultrasparc_store_bypass_p): New.
4759 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4762 2001-09-24 David S. Miller <davem@redhat.com>
4764 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4765 ready->vec[foo] not ready[foo].
4767 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4769 * doc/md.texi: Correct examples for define_insn_reservations
4772 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4774 * genautomata.c (create_automata): Print message about creation of
4776 (generate): Remove printing meease about creation of
4779 2001-09-05 David S. Miller <davem@redhat.com>
4781 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4782 * config/sparc/linux64.h: Likewise.
4784 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
4786 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4787 schedule_block, sched_init, sched_finish): Add missed calls of
4788 use_dfa_pipeline_interface.
4790 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4793 * sched-vis.c (get_visual_tbl_length): Ditto.
4795 2001-08-27 Richard Henderson <rth@redhat.com>
4797 * genattr.c (main): Emit state_t even when not doing scheduling.
4799 2001-08-27 Richard Henderson <rth@redhat.com>
4801 * genautomata.c (expand_automata): Always create a description.
4803 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4805 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4806 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4807 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4810 * genattr.c (main): New variable num_insn_reservations. Increase
4811 it if there is DEFINE_INSN_RESERVATION. Output automaton based
4812 pipeline hazard recognizer interface.
4814 * genattrtab.h: New file.
4816 * genattrtab.c: Include genattrtab.h.
4817 (attr_printf, check_attr_test, make_internal_attr,
4818 make_numeric_value): Move protypes into genattrtab.h. Define them
4820 (num_dfa_decls): New global variable.
4821 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4822 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4823 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4824 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
4826 * genautomata.c: New file.
4828 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4830 * sched-int.h: (curr_state): Add the external definition for
4831 automaton pipeline interface.
4832 (haifa_insn_data): Add comments for members blockage and units.
4834 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4835 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4836 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4837 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4838 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4839 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4840 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4842 (TARGET_SCHED): Use the new macros.
4844 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
4845 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
4846 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
4847 dfa_bubble): New members in gcc_target.sched.
4849 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
4850 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
4851 (insn_queue): Redefine it as pointer to array.
4852 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
4854 (max_insn_queue_index_macro_value): New variable.
4855 (curr_state, dfa_state_size, ready_try): New varaibles for
4856 automaton interface.
4857 (ready_element, ready_remove, max_issue): New function prototypes
4858 for automaton interface.
4859 (choose_ready): New function prototype.
4860 (insn_unit, blockage_range): Add comments.
4861 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
4862 FUNCTION_UNITS_SIZE == 0.
4863 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
4864 actual_hazard, potential_hazard): Add comments.
4865 (insn_cost): Use cost -1 as undefined value. Remove
4866 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
4868 (ready_element, ready_remove): New functions for automaton
4870 (schedule_insn): Add new code for automaton pipeline interface.
4871 (queue_to_ready): Add new code for automaton pipeline interface.
4872 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
4873 (debug_ready_list): Print newline when the queue is empty.
4874 (max_issue): New function for automaton pipeline interface.
4875 (choose_ready): New function.
4876 (schedule_block): Add new code for automaton pipeline interface.
4877 Print ready list before scheduling each insn.
4878 (sched_init): Add new code for automaton pipeline interface.
4879 Initiate insn cost by -1.
4880 (sched_finish): Free the current automaton state and finalize
4881 automaton pipeline interface.
4883 * sched-rgn.c: Include target.h.
4884 (init_ready_list, new_ready, debug_dependencies): Add new code for
4885 automaton pipeline interface.
4887 * sched-vis.c: Include target.h.
4888 (get_visual_tbl_length): Add code for automaton interface.
4889 (target_units, print_block_visualization): Add comments.
4891 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
4892 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
4893 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
4894 (getruntime.o, genautomata.o): New entries.
4895 (genattrtab.o): Add new dependency file genattrtab.h.
4896 (genattrtab): Add new dependencies. Link it with `libm.a'.
4897 (getruntime.o, hashtab.o): New entries for canadian cross.
4899 * doc/md.texi: Description of automaton based model.
4901 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
4903 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4904 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4905 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4906 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4907 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4908 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4909 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
4911 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
4912 MAX_DFA_ISSUE_RATE): New macro descriptions.
4914 * doc/contrib.texi: Add dfa based scheduler contribution.
4916 * doc/gcc.texi: Add more information about genattrtab.
4918 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4920 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
4921 adjust_address_nv call.
4923 2002-04-29 Janis Johnson <janis187@us.ibm.com>
4925 * doc/install.texi (Testing): Provide additional information, and
4926 a stronger encouragement, for running the testsuites.
4928 2002-04-29 DJ Delorie <dj@redhat.com>
4930 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
4931 given in upper case.
4933 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4935 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
4936 Solaris 2 <widec.h> if missing.
4937 * fixinc/fixincl.x: Regenerate.
4938 * fixinc/tests/base/widec.h: New file.
4940 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
4942 * toplev.c (f_options): Add "profile" switch so that
4943 -fno-profile can be used to disable -p.
4945 2002-04-29 Bernd Schmidt <bernds@redhat.com>
4947 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
4949 * tree.c (build_common_tree_nodes_2): Likewise.
4950 * tree.h (enum tree_index): Likewise.
4951 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
4953 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
4955 (init_mmx_sse_builtins): Initialize SSE2 builtins.
4956 (ix86_expand_builtin): Add support for SSE2 builtins.
4957 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
4958 (VALID_SSE_REG_MODE): Use it.
4959 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
4960 (enum ix86_builtins): Add SSE2 builtins.
4961 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
4962 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
4963 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
4964 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
4965 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
4966 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
4967 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
4968 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
4969 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
4970 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
4971 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
4972 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
4973 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
4974 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
4975 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
4976 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
4977 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
4978 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
4979 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
4980 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
4981 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
4982 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
4983 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
4984 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
4985 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
4986 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
4987 lfence_insn): New patterns.
4988 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
4989 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
4991 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
4993 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
4995 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4997 * doc/contrib.texi (Contributors): Add Paolo Carlini and
4999 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5000 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5001 and CPU instead of cpu.
5003 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5005 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5007 (lang_independent_options): Add -fif-conversion, -fif-conversion2
5008 (rest_of_compilation): Do if conversion only when asked for.
5009 (parse_options_and_default_flags): Set new variables to 1 for -O1
5010 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5012 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5014 * i386.c (dbx64_register_map): Fix typo.
5016 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5018 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5019 real_one_half, real_bb_freq_max): New static variables.
5020 (debug_profile_bbauxs): Kill.
5021 (process_note_predictions): Kill unused variable.
5022 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5024 (propagate_freq): Use REAL_ARITHMETICS.
5025 (estimate_bb_frequencies): Likevise; init new static variables.
5026 * Makefile.in (predict.o): Add dependency on real.h
5028 2002-04-28 David S. Miller <davem@redhat.com>
5031 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5032 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
5033 several {reads,writes} instead.
5034 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5037 2002-04-27 David S. Miller <davem@redhat.com>
5040 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5043 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5044 including signal.h and sys/ucontext.h, not needed.
5046 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
5048 * varasm.c (output_constant_def): Correct test for not calling
5049 ENCODE_SECTION_INFO for INTEGER_CST.
5051 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
5053 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5054 keep most cases as function eval_token.
5055 (eval_token): New function.
5056 (_cpp_parse_expr): Read token here for improved diagnostics.
5057 Don't use op_as_text. Detect bad ':' here.
5058 (reduce): Don't detect bad ':' here.
5059 (op_as_text): Remove.
5060 * cpphash.h (_cpp_test_assertion): Change prototype.
5061 * cpplib.c (_cpp_test_assertion): Change prototype.
5063 2002-04-28 Richard Henderson <rth@redhat.com>
5066 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5067 (ggc_mark_rtx_children): New.
5069 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5072 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5073 after call peepholes for UltraSPARC.
5074 (call + jump 64-bit peepholes): Remove.
5076 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5079 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5080 result as temporary value.
5082 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5085 * toplev.c (rest_of_compilation): Only run regrename and copy
5086 propagation if optimizing.
5088 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5090 PR optimization/6475
5091 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5092 register of REGNO_DECL (i).
5093 * Makefile.in (reload1.o): Add $(TREE_H).
5095 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
5097 * cppexp.c (lex): Update to use state.skip_eval.
5098 (struct op): Remove prio and flags members.
5099 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5100 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5101 (LEFT_ASSOC): New macro.
5102 (optab): New table of operator priorities and flags.
5104 (_cpp_parse_expr): Clean up logic. Return bool. Use a
5105 malloc-ed parser stack.
5106 (reduce): New; reduce the operator stack.
5107 (_cpp_expand_op_stack): Expand the operator stack as necessary.
5108 * cpphash.h (struct op): Predeclare.
5109 (struct cpp_reader): New members op_stack, op_limit.
5110 (struct lexer_state): New member skip_eval.
5111 (_cpp_parse_expr): Update.
5112 (_cpp_expand_op_stack): New.
5113 * cpplib.c (do_if): Update.
5114 * cppinit.c (cpp_create_reader): Create op stack.
5115 (cpp_destroy): And destroy it.
5116 * cpplib.h (CPP_LAST_CPP_OP): Correct.
5117 (TTYPE_TABLE): Correct.
5119 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5122 * c-decl.c (duplicate_decls): Call merge_weak.
5123 * c-pragma.c (apply_pragma_weak): Warn about misuse.
5124 * output.h (merge_weak): Prototype merge_weak.
5125 * varasm.c (merge_weak): New function.
5126 (declare_weak): Make sure we don't give an error on VAR_DECLs.
5127 Mark RTL with SYMBOL_REF_WEAK.
5129 2002-04-27 Kurt Garloff <garloff@suse.de>
5131 * tree-inline.c (inlinable_function_p): Improve heuristics
5132 by using a smoother function to cut down allowable inlinable size.
5133 * param.def: Add parameters max-inline-insns-single,
5134 max-inline-slope, min-inline-insns that determine the exact
5135 shape of the above function.
5136 * param.h: Likewise.
5138 2002-04-26 Richard Henderson <rth@redhat.com>
5140 * c-parse.in (malloced_yyss, malloced_yyvs): New.
5141 (yyoverflow): Re-add. Set them.
5142 (free_parser_stacks): New.
5143 * c-common.h: Declare it.
5144 * c-lex.c (c_common_parse_file): Call it.
5146 2002-04-26 Richard Henderson <rth@redhat.com>
5148 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5149 for fallthru search.
5151 2002-04-26 Eric Christopher <echristo@redhat.com>
5153 PR optimization/3700
5154 * config/mips/mips.c (mips_issue_rate): Define. New function.
5155 (TARGET_SCHED_ISSUE_RATE): Use.
5157 2002-04-25 David S. Miller <davem@redhat.com>
5160 * reorg.c (optimize_skip): Do not allow exception causing
5161 instructions to be considered for delay slots.
5162 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5163 (relax_delay_slots): Do not try to consider exception causing
5164 instructions as redundant.
5166 2002-04-26 Richard Henderson <rth@redhat.com>
5169 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5171 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5174 * config/i386/i386.md (untyped_call): Return the value in a float
5175 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5178 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5180 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5181 in unsigned-ness correctly.
5183 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5185 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5186 portable runtime model.
5188 2002-04-26 Richard Henderson <rth@redhat.com>
5190 * c-parse.in (yyoverflow): Revert.
5192 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5193 Richard Henderson <rth@redhat.com>
5195 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5196 result as temporary value.
5198 2002-04-26 Richard Henderson <rth@redhat.com>
5201 * c-common.c (fix_string_type): Split out of ...
5202 (combine_strings): ... here. Take a varray, not a tree list.
5203 (c_expand_builtin_printf): Use fix_string_type.
5204 * c-common.h: Update decls.
5205 * c-parse.in (string): Remove. Update all uses to use STRING
5206 instead, and not call combine_strings.
5209 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5210 (build_asm_stmt): Likewise.
5211 * objc/objc-act.c (my_build_string): Use fix_string_type.
5212 (build_objc_string_object): Build varray for combine_strings.
5214 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5216 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5219 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5221 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5222 (HAVE_NO_R_OPERAND): Remove.
5223 (HAVE_VALUE): Remove.
5224 (op_to_prio): Update.
5225 (UNARY): Don't alter flags.
5226 (_cpp_parse_expr): want_value used to indicate whether
5227 a number or unary operator is expected next. Distinguish
5228 unary and binary +/-.
5229 (op_as_text): Update for unary operators.
5231 2002-04-25 Richard Henderson <rth@redhat.com>
5234 * c-parse.in (yyoverflow): New.
5236 2002-04-25 Richard Henderson <rth@redhat.com>
5239 * c-common.c (shorten_compare): Simplfy conditions leading to
5240 the generation of a warning.
5242 2002-04-25 Richard Henderson <rth@redhat.com>
5245 * expmed.c (extract_bit_field): Fall through to generic code rather
5246 than aborting on subreg special case.
5248 2002-04-25 David S. Miller <davem@redhat.com>
5250 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5251 for DECL being NULL.
5253 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5255 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5257 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5259 * c-decl.c (grokdeclarator): Remove outdated ??? note
5260 on invalid declaration of flexible array members.
5262 2002-04-25 Richard Henderson <rth@redhat.com>
5264 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5266 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5268 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5269 needed by the compiler, even if they are used as global regs.
5271 2002-04-25 Matt Hiller <hiller@redhat.com>
5273 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5275 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5276 of the corresponding functions.
5277 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5280 2002-04-25 Matt Hiller <hiller@redhat.com>
5282 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5284 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5285 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5286 registers, adjust comment accordingly.
5287 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5288 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5289 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5290 for coprocessor registers.
5291 (ADDITIONAL_REGISTER_NAMES): Include
5292 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5294 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5295 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5296 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5297 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5298 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5300 (mips_char_to_class): Adjust comment to include coprocessor
5303 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5305 (mips_reg_names, mips_regno_to_class): Include coprocessor
5307 (mips_sw_reg_names): Ditto, make non-static.
5308 (mips_move_1word): Handle moves to and from coprocessor registers.
5309 (mips_move_2words): Handle moves to and from coprocessor
5311 (mips_class_max_nregs, mips_register_move_cost): Handle
5312 coprocessor register classes.
5313 (override_options): Initialize mips_char_to_class and
5314 mips_hard_regno_mode_ok properly for coprocessor registers.
5316 * config/mips/mips.md (movdi_internal, movdi_internal2,
5317 movsi_internal1, movsi_internal2): Add constraint-sets for
5318 coprocessor registers.
5319 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5320 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5322 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5323 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5325 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5326 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5328 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5329 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5332 * doc/tm.texi: Document feature.
5334 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5336 * integrate.c (function_attribute_inlinable_p): Simplify.
5337 Check the table pointer is not NULL.
5339 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5341 * doc/c-tree.texi: Fix typo in introduction.
5343 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5345 * c-common.h (c_common_parse_file): Update.
5346 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5347 * c-lex.c (YYDEBUG): Get from c-lex.h.
5348 (c_common_parse_file): Update.
5349 * c-lex.h (YYDEBUG, yydebug): New.
5350 * c-parse.in (YYDEBUG): Get from c-lex.h.
5351 (c_set_yydebug): Remove.
5352 * c-tree.h (c_set_yydebug): Remove.
5353 * langhooks-def.h (lhd_do_nothing_i): New.
5354 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5355 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5356 * langhooks.c (lhd_do_nothing_i): New.
5357 (lhd_set_yydebug): Remove.
5358 * langhooks.h (struct lang_hooks): Update.
5359 * toplev.c (set_yydebug): New.
5360 (compile_file): Update call to parse_file hook.
5361 (decode_d_option): Update.
5363 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5365 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5367 * loop.c (load_mems): Don't change the interface of called functions.
5369 * calls.c (expand_call): Take current_function_pretend_args_size
5370 into account when setting argblock for sibcalls.
5372 2002-04-24 Matt Hiller <hiller@redhat.com>
5374 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5377 * cpplex.c (skip_line_comment): Process comment one multibyte
5378 character at a time rather than one char at a time, if
5380 (parse_string): Process string one multibyte character at a time
5381 rather than one char at a time, if appropriate.
5382 * c-lex.c (lex_string): Lex and copy multibyte strings
5384 * cpplib.h (cppchar_t): Change to unsigned.
5386 2002-04-24 Richard Henderson <rth@redhat.com>
5389 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5392 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
5394 * sh.c (sh_va_arg): If argument was passed by reference,
5395 dereference the pointer.
5397 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5399 * sh.md (divsi3_i4_media): Use match_operand for input values
5400 rather than hard registers.
5401 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5402 unnecessarily through hard registers. Keep copies of pseudo
5403 registers outside of the libcall sequence.
5405 * sh.md (casesi_shift_media): Add modes.
5407 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5410 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
5412 * attribs.c (c_common_attribute_table): Move table and handlers
5414 (format_attribute_table, lang_attribute_table,
5415 lang_attribute_common): Remove.
5416 (init_attributes): Replace NULL pointers with pointers to the
5418 (handle_packed_attribute, handle_nocommon_attribute,
5419 handle_common_attribute, handle_noreturn_attribute,
5420 handle_noinline_attribute, handle_always_inline_attribute,
5421 handle_used_attribute, handle_unused_attribute,
5422 handle_const_attribute, handle_transparent_union_attribute,
5423 handle_constructor_attribute, handle_destructor_attribute,
5424 handle_mode_attribute, handle_section_attribute,
5425 handle_aligned_attribute, handle_weak_attribute,
5426 handle_alias_attribute, handle_visibility_attribute,
5427 handle_no_instrument_function_attribute, handle_malloc_attribute,
5428 handle_no_limit_stack_attribute, handle_pure_attribute,
5429 handle_deprecated_attribute, handle_vector_size_attribute,
5430 vector_size_helper): Move to c-common.c.
5431 * c-common.c (c_common_attribute_table,
5432 handle_packed_attribute, handle_nocommon_attribute,
5433 handle_common_attribute, handle_noreturn_attribute,
5434 handle_noinline_attribute, handle_always_inline_attribute,
5435 handle_used_attribute, handle_unused_attribute,
5436 handle_const_attribute, handle_transparent_union_attribute,
5437 handle_constructor_attribute, handle_destructor_attribute,
5438 handle_mode_attribute, handle_section_attribute,
5439 handle_aligned_attribute, handle_weak_attribute,
5440 handle_alias_attribute, handle_visibility_attribute,
5441 handle_no_instrument_function_attribute, handle_malloc_attribute,
5442 handle_no_limit_stack_attribute, handle_pure_attribute,
5443 handle_deprecated_attribute, handle_vector_size_attribute,
5444 vector_size_helper): Move from attribs.c.
5445 * c-common.h (c_common_attribute_table,
5446 c_common_format_attribute_table): New.
5447 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5448 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5449 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5450 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5451 (LANG_HOOKS_INITIALIZER): Update.
5452 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5453 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5454 * target.h: Update comment.
5455 * tree.c (default_target_attribute_table): Remove.
5456 * tree.h (default_target_attribute_table, format_attribute_table,
5457 lang_attribute_table, lang_attribute_common): Remove.
5459 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5460 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5462 2002-04-24 Jason Merrill <jason@redhat.com>
5464 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5465 * dwarf2out.c (dwarf_attr_name): Support it.
5466 (gen_array_type_die): Emit it.
5467 (lookup_type_die): No special handling for VECTOR_TYPE.
5468 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5470 2002-04-24 Richard Henderson <rth@redhat.com>
5472 * config/mips/mips.md (movdi_usd): Renumber.
5474 2002-04-24 David S. Miller <davem@redhat.com>
5477 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5478 32-bit Sparc and current_function_returns_struct is true.
5480 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5482 * loop.c (canonicalize_condition): Use gen_int_mode.
5484 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
5486 * config/rs6000/altivec.h: Cleanup file. Add non individual
5508 (vec_vcmpequb): New.
5509 (vec_vcmpequh): New.
5510 (vec_vcmpequw): New.
5511 (vec_vcmpeqfp): New.
5512 (vec_vcmpgefp): New.
5513 (vec_vcmpgtub): New.
5514 (vec_vcmpgtsb): New.
5515 (vec_vcmpgtuh): New.
5516 (vec_vcmpgtsh): New.
5517 (vec_vcmpgtuw): New.
5518 (vec_vcmpgtsw): New.
5519 (vec_vcmpgtfp): New.
5520 (vec_vcmpgefp): New.
5525 (vec_vexptefp): New.
5530 (vec_lde): Add vector float variant.
5535 (vec_vmhaddshs): New.
5557 (vec_vmladduhm): New.
5558 (vec_vmhraddshs): New.
5560 (vec_vmsummbm): New.
5561 (vec_vmsumuhm): New.
5562 (vec_vmsumshm): New.
5563 (vec_vmsumuhs): New.
5564 (vec_vmsumshs): New.
5573 (vec_vnmsubfp): New.
5591 (vec_vrsqrtefp): New.
5602 (vec_vspltisb): New.
5603 (vec_vspltish): New.
5604 (vec_vspltisw): New.
5629 (vec_vsum4ubs): New.
5630 (vec_vsum4sbs): New.
5631 (vec_vsum4shs): New.
5632 (vec_vsum2sws): New.
5643 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
5646 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5647 added literals from substracted literals.
5648 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5649 (fold) [associate]: Preserve MINUS_EXPR if needed.
5651 2002-04-23 Zack Weinberg <zack@codesourcery.com>
5653 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5656 2002-04-23 Tom Tromey <tromey@redhat.com>
5658 * gcc.c: Added --resource. For PR java/6314.
5660 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5662 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5663 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5666 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5668 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5670 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5672 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5674 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5675 (ix86_expand_clrstr): Fix typo.
5676 * loop.c (gen_load_of_final_value): New.
5677 (loop_givs_rescan, strength_reduce, check_dbra_loop):
5680 2002-04-23 Roger Sayle <roger@eyesopen.com>
5682 * builtins.c (builtin_memset_gen_str): New function.
5683 (expand_builtin_memset): Optimize the case of constant length, but
5686 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
5688 * config/rs6000/altivec.h (vec_step): Remove extraneous
5690 (vec_ctu): Cast return.
5692 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5695 * function.h: (struct function): Add profile_label_no field.
5696 (current_function_profile_label_no): Define.
5697 * function.c: (profile_label_no): New static var.
5698 (expand_function_start): Increment it, and copy to
5699 current_function_profile_label_no.
5700 * output.h (profile_label_no): Delete.
5701 * final.c (profile_label_no): Delete.
5702 (profile_function): Use current_function_profile_label_no.
5703 (final_end_function): Don't increment profile_label_no here.
5704 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5705 profile_label_no with current_function_profile_label_no.
5706 * config/pa/pa.c (current_function_number): Delete.
5707 (pa_output_function_prologue): Don't output profile label here.
5708 (hppa_profile_hook): Use label_no param rather than
5709 current_function_number.
5710 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5711 * config/pa/pa.h: .. here.
5712 (FUNCTION_PROFILER): Output profile label here.
5714 2002-04-22 Eric Christopher <echristo@redhat.com>
5716 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5717 patch of 2002-04-09 due to binutils issues.
5718 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5720 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5722 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5723 constraint to 'o' for m=r and r=m alternatives.
5724 ("*movv8hi_internal1"): Same.
5725 ("*movv16qi_internal1"): Same.
5726 ("*movv4sf_internal1"): Same.
5728 2002-04-22 Janis Johnson <janis187@us.ibm.com>
5730 * rtl.h (RTX_FLAG): New macro.
5731 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5732 * final.c (alter_subreg): Use macro to access rtx flag.
5733 * integrate.c (copy_rtx_and_substitute): Use new access macro.
5734 * print-rtl.c (print_rtx): Use new access macro.
5736 * cse.c (insert): Check rtx code before accessing flag.
5738 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5739 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5740 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5741 convert_const_symbol_ref, make_canonical, make_alternative_compare,
5742 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5743 simplify_test_exp, optimize_attrs, simplify_by_exploding,
5744 find_and_mark_used_attributes, unmark_used_attributes,
5745 add_values_to_cover, simplify_with_current_value,
5746 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5747 copy_rtx_unchanging, main): Use new access macros.
5749 2002-04-22 Tom Rix <trix@redhat.com>
5751 * expmed.c (init_expmed): Generate shifted constant once.
5753 2002-04-22 Zack Weinberg <zack@codesourcery.com>
5755 * c-lex.c (lex_charconst): Call convert to get constant in
5756 proper type; don't just smash the type field.
5759 * config.gcc: Add list of obsolete configurations. Disallow
5760 building these without --enable-obsolete.
5761 * doc/install.texi: Document --enable-obsolete and obsoletion
5762 policy. Mention obsoletion of individual targets in
5765 2002-04-22 Richard Henderson <rth@redhat.com>
5767 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5769 2002-04-22 Mark Mitchell <mark@codesourcery.com>
5772 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5773 (walk_fixup_memory_subreg): Likewise.
5774 (fixup_var_refs_insn): Adjust accordingly.
5775 (fixup_var_refs_1): Likewise.
5777 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
5779 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5780 LIBPATH_ARCH64_SPEC): Define.
5781 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5782 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5783 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5784 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5786 2002-04-22 Joel Sherrill <joel@OARcorp.com>
5788 * gthr-rtems.h: Correct prototypes to remove warnings.
5790 2002-04-22 Richard Henderson <rth@redhat.com>
5793 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5795 * gcse.c (free_insn_expr_list_list): New.
5796 (clear_modify_mem_tables): Use it. Fix bit set usage.
5797 (canon_list_insert): Use EXPR_LISTs for expressions.
5798 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5800 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
5802 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
5803 file change and include code to _cpp_pop_buffer.
5804 * cpphash.h (struct pending_option): Predeclare.
5805 (struct cpp_reader): New member next_include_file.
5806 (_cpp_pop_file_buffer): Update.
5807 (_cpp_push_next_buffer): Update, rename.
5808 * cppinit.c (cpp_destroy): Free include chain and pending here.
5809 (cpp_finish_options): Simplify.
5810 (_cpp_push_next_buffer): Rename and clean up.
5811 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5813 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5815 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5817 * config/rs6000/altivec.h (vec_xor): Add variant for both args
5818 being vector signed int.
5820 (vec_xor): Add variant for both args being vector signed char.
5821 Remove redundant variant.
5824 2002-04-21 David S. Miller <davem@redhat.com>
5826 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5827 compare mode in output RTL.
5829 2002-04-22 David Edelsohn <edelsohn@gnu.org>
5831 * config/rs6000/rs6000.c (rs6000_override_options): Correct
5832 style and formatting of previous patch.
5834 2002-04-22 Alan Modra <amodra@bigpond.net.au>
5836 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5837 flag_pic for ABI_AIX.
5839 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5841 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5842 * cppfiles.c (read_include_file): Similarly.
5843 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5844 uxstrdup ustrchr, ufputs): Similarly.
5845 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
5846 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
5847 cpp_ideq, parse_identifier, parse_number): Similarly.
5848 * cpplib.c (struct directive, dequote_string, D, run_directive,
5849 cpp_push_buffer): Similarly.
5850 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
5851 _cpp_create_definition, check_trad_stringification,
5852 cpp_macro_definition): Similarly.
5854 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5856 * cppmacro.c (funlike_invocation_p): Don't step back
5859 2002-04-21 David Edelsohn <edelsohn@gnu.org>
5861 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
5864 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
5866 * doc/invoke.texi: Remove Chill references.
5867 * doc/gcc.texi: Update last modified date.
5869 2002-04-20 Kazu Hirata <kazu@hxi.com>
5871 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
5872 push and pop. Replace add.l with add.w.
5874 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5876 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
5877 multiply instructions for H8/300H case.
5879 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5881 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
5882 Bum three instructions from each routine.
5884 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
5886 * Makefile.in: Update.
5887 * decl.c (push_c_function_context, pop_c_function_context,
5888 mark_c_function_context): Rename for consistency.
5889 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
5890 * c-tree.h (push_c_function_context, pop_c_function_context,
5891 mark_c_function_context): Rename for consistency.
5892 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5893 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5894 * function.c (init_lang_status, save_lang_status,
5895 restore_lang_status, mark_lang_status, free_lang_status):
5896 Move to langhooks.h.
5897 (push_function_context_to, pop_function_context_from,
5898 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
5900 * function.h (init_lang_status, save_lang_status,
5901 restore_lang_status, mark_lang_status, free_lang_status):
5902 Move to langhooks.h.
5903 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
5904 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
5905 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
5906 LANG_HOOKS_FUNCTION_INITIALIZER): New.
5907 (LANG_HOOKS_INITIALIZER): Update.
5908 (lhd_do_nothing_f): New.
5909 * langhooks.h (struct lang_hooks_for_functions): New.
5910 (struct lang_hooks): New hooks.
5911 * langhooks.c (lhd_do_nothing_f): New.
5913 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5914 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5916 2002-04-19 David S. Miller <davem@redhat.com>
5918 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
5919 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
5921 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5923 PR optimization/3756
5924 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
5925 x = ((int) y < 0) ? cst1 : cst2.
5927 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5930 * function.c: Reapply patch for c/6358.
5931 (expand_function_end): Copy decl_rtl's mode, not
5932 current_function_return_rtx mode.
5934 2002-04-19 Joel Sherrill <joel@OARcorp.com>
5936 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
5939 2002-04-19 Tom Tromey <tromey@redhat.com>
5941 * doc/install.texi (Specific): Update status of Solaris 2.8.
5944 2002-04-19 Andreas Schwab <schwab@suse.de>
5946 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
5947 (PUT_REAL): Restore old definition.
5949 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5950 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5952 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
5953 binutils 2.11.2 and higher generate smaller binaries than Sun's
5956 2002-04-19 Mark Mitchell <mark@codesourcery.com>
5959 * toplev.c (rest_of_compilation): Do not defer functions for which
5960 TREE_SYMBOL_REFERENCED has already been set.
5962 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
5964 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
5967 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
5969 * builtins.c: Include langhooks.h.
5970 (lang_type_promotes_to): Remove.
5971 (expand_builtin_va_arg): Use new hook.
5972 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
5973 (simple_type_promotes_to): Move to c-typeck.c.
5974 * c-common.h (simple_type_promotes_to): Remove.
5975 * c-decl.c (duplicate_decls, grokdeclarator): Update.
5976 * c-format.c: Include langhooks.h.
5977 (check_format_types): Update.
5978 * c-tree.h (c_type_promotes_to): New.
5979 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
5980 (type_lists_compatible_p): Update.
5981 * langhooks-def.h (lhd_type_promotes_to): New.
5982 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
5983 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5984 * langhooks.c (lhd_type_promotes_to): New.
5985 * langhooks.h (struct lang_hooks_for_types): New hook.
5986 * tree.h (lang_type_promotes_to): Remove.
5988 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
5990 2002-04-18 Richard Henderson <rth@redhat.com>
5992 * function.c: Revert patch for c/6358.
5994 2002-04-18 Richard Henderson <rth@redhat.com>
5996 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
5997 blocks. Handle multiple references to the TRAP block. Handle
5998 non-adjacent THEN and OTHER blocks.
6000 2002-04-18 Richard Henderson <rth@redhat.com>
6002 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6003 crash with no type for by-mode libcalls.
6005 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6007 2002-04-18 Bob Wilson <bob.wilson@acm.org>
6009 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6010 __xtensa_nonlocal_goto): Use a syscall instructions to flush
6011 the register windows.
6013 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6015 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6016 appropriate. Document need for extended precision even when
6017 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
6018 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
6019 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
6020 instead of relying on later syntax error when REAL_WIDTH > 5.
6021 * real.c: Define NE based only on whether or not we have a
6022 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6023 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
6024 define GET_REAL and PUT_REAL as simple memcpy operations; no
6025 need to byteswap or round.
6026 Use #error instead of #ifdef-ing out the entire file, for
6027 prompt error detection.
6029 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6031 2002-04-18 David S. Miller <davem@redhat.com>
6033 * config/sparc/sparc.h (BRANCH_COST): Define.
6035 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6038 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
6040 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6041 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6042 propagate_block calls after relaxation loop using new variable
6043 stabilized_prop_flags.
6045 2002-04-18 Richard Henderson <rth@redhat.com>
6047 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6048 (ia64_va_arg): Expect variable sized types by reference.
6049 * config/ia64/ia64-protos.h: Update.
6050 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6051 ia64_function_arg_pass_by_reference.
6053 2002-04-18 Richard Henderson <rth@redhat.com>
6055 * ifcvt.c: Include except.h.
6056 (block_has_only_trap): Break out from find_cond_trap.
6057 (find_cond_trap): Use it. Always delete the trap block.
6058 (merge_if_block): Allow then block null. Be less simplistic about
6059 what insns can end a block.
6060 * Makefile.in (ifcvt.o): Depend on except.h.
6062 * config/ia64/ia64.md (trap, conditional_trap): New.
6064 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6067 * function.c (assign_parms): Assign hard current_function_return_rtx
6069 (expand_function_end): ...not here.
6071 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
6073 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6074 * c-tree.h (c_incomplete_type_error): New.
6075 * c-typeck.c (require_complete_type, build_component_ref): Update.
6076 (incomplete_type_error): Rename.
6077 * langhooks-def.h (lhd_incomplete_type_error): New.
6078 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6079 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6080 * langhooks.c (lhd_incomplete_type_error): New.
6081 * langhooks.h (struct lang_hooks_for_types): New hook.
6082 * tree.c (size_in_bytes): Use new hook.
6083 * tree.h (incomplete_type_error): Remove.
6085 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6087 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6089 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6090 TARGET_FLOAT_FORMAT blocks.
6092 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6094 * doc/install.texi (Downloading the source): Do not mention Chill
6095 any longer, but mention Ada.
6096 (Configuration): Do not mention Chill any longer.
6098 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
6100 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6102 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
6104 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6107 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6109 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6110 instead of unsigned_type.
6112 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6114 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6115 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6118 2002-04-18 Bernd Schmidt <bernds@redhat.com>
6120 * attribs.c (vector_type_node_list): New static variable.
6121 (handle_vector_size_attribute): Use it to avoid generating a
6122 new type node each time we are called.
6124 * combine.c (subst): Avoid trying to make a vector mode subreg of
6125 an integer constant.
6126 (gen_lowpart_for_combine): Likewise.
6128 2002-04-18 Roger Sayle <roger@eyesopen.com>
6129 Jakub Jelinek <jakub@redhat.com>
6131 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6132 for integer constant c (if x has unsigned type or sign bit is not
6133 set in c). This folds the zero/sign extension into the bit-wise and
6136 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6139 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6142 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
6144 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6146 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
6148 * gcc.c (read_specs): Detect and fail if an attempt is made to
6149 rename a spec string to an already existing string.
6151 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6153 * config/s390/s390.c (legitimize_pic_address): Do not generate
6154 illegal address constant without CONST.
6156 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6158 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6159 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6161 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6163 PR optimization/6305
6164 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6165 to make sure previous reloads are taken into account. Generate
6166 better code if one operand is an in-range immediate constant.
6168 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6170 * doc/install.texi (Building): libgcj requires GNU make.
6172 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6175 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6176 even if hard quad and register is not floating.
6177 (movtf reg<-mem split): Disallow splitting if hard quad and
6178 register is floating.
6179 (movtf mem<-reg split): Likewise.
6180 * config/sparc/sparc.c (fp_register_operand): New predicate.
6181 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6183 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6185 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6186 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6187 (unprotoize.o): Ditto. Build from protoize.c. Define
6188 UNPROTOIZE on command line.
6189 * protoize.c: Include cppdefault.h. Delete include_defaults.
6190 (in_system_include_dir): Use cpp_include_defaults (defined in
6192 * unprotoize.c: Delete file.
6194 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6196 * config/rs6000/altivec.h (vec_ld): Add array variants.
6200 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6201 Aldy Hernandez <aldyh@redhat.com>
6203 * config/rs6000/altivec.h: Define __ALTIVEC__.
6210 Add parentheses to all macro arguments.
6212 2002-04-16 Richard Henderson <rth@redhat.com>
6215 * except.c (remove_eh_handler): Insert inner regions at beginning
6216 of sibling chain. Refactor expressions.
6218 2002-04-16 Richard Henderson <rth@redhat.com>
6220 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6221 * config/sparc/sol2-gas-bi.h: New file.
6222 * config.gcc (sparc*-solaris): Add it as needed.
6223 * configure.in (AS_SPARC64_FLAG): Remove check.
6224 * config.in, configure: Regenerate.
6226 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6228 2002-04-16 Richard Henderson <rth@redhat.com>
6230 * config/mips/mips.c (override_options): Don't override N32 for
6234 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6235 (HILO_delay): Set can_delay false.
6237 2002-04-16 Dale Johannesen <dalej@apple.com>
6239 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6240 instruction addresses.
6241 (rs6000_output_function_epilogue): Likewise.
6243 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6245 * c-parse.in (poplevel, compstmt_start,
6246 compstmt_primary_start): Add ending ';', in accordance
6249 2002-04-16 Richard Henderson <rth@redhat.com>
6251 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6252 Adjust tm_file order to get TARGET_DEFAULT set properly.
6253 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6254 * doc/install.texi (sparc-solaris): Update.
6256 2002-04-16 Dale Johannesen <dalej@apple.com>
6258 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6259 comparison operands do not match each other or if modes of
6260 conditions do not match result.
6262 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6265 * config/s390/s390.md (mulsidi3): Set both subregs of the
6268 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6270 * config/rs6000/altivec.h (vec_addc): Type check.
6272 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6275 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6277 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6279 2002-04-15 Richard Henderson <rth@redhat.com>
6281 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6282 call_really_used_regs too.
6284 2002-04-15 Richard Henderson <rth@redhat.com>
6286 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6288 2002-04-15 David S. Miller <davem@redhat.com>
6290 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6293 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6296 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6297 CONST_VECTOR is { 0, ... 0 }.
6299 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6301 * doc/install.texi (Installing GCC: Configuration): Clarify
6302 the only supported ways to configure gcc.
6304 2002-04-15 Roland McGrath <roland@frob.com>
6306 * config.gcc (alpha*-*-gnu*): New target configuration.
6307 * config/alpha/gnu.h: New file for it.
6308 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6310 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6312 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6313 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6314 * tree.h (expand_start_stmt_expr): Update prototype.
6315 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6316 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6317 on the STMT_EXPR created for the inline function.
6319 2002-04-15 Richard Henderson <rth@redhat.com>
6321 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6322 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6323 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6324 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6325 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6326 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6327 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6328 Define __gnu_linux__, not gnu_linux.
6329 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6331 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6333 Remove Chill front end.
6334 * gcc.c (default_compilers): Remove Chill entries.
6335 * ch: Remove directory.
6336 * doc/frontends.texi: Remove information about Chill.
6337 * doc/sourcebuild.texi: Likewise.
6338 * doc/standards.texi: Likewise.
6340 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6342 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6343 (LONGLONG_STANDALONE): Define.
6345 2002-04-15 David S. Miller <davem@redhat.com>
6347 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6348 Call emit_library_call with LCT_NORMAL.
6349 (sparc_initialize_trampoline): Use LCT_foo instead of
6350 magic constant in emit_library_call invocations.
6351 (sparc64_initialize_trampoline): Likewise.
6352 (sparc_profile_hook): Likewise.
6353 * config/sparc/sparc.md: Likewise.
6355 * config/sparc/sparc.c (sparc_extra_constraint_check):
6356 Fix type of argument 'c'.
6357 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6360 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6362 * diagnostic.h (output_buffer_state): Redefine.
6363 (output_format_decoder): New macro.
6364 (output_prefixing_rule): Likewise.
6365 (output_line_cutoff): Likewise.
6366 (diagnostic_format_decoder): Adjust.
6367 (diagnostic_prefixing_rule): Likewise.
6368 (diagnostic_line_cutoff): Likewise.
6369 (diagnostic_state): Likewise.
6370 (diagnostic_kind_count): Likewise.
6371 (diagnostic_buffer): Now a macro.
6373 * diagnostic.c (diagnostic_buffer): Remove definition.
6374 (output_is_line_wrapping): Adjust.
6375 (set_real_maximum_length): Likewise.
6376 (output_set_maximum_length): Likewise.
6377 (init_output_buffer): Likewise.
6378 (lhd_print_error_function): Likewise.
6379 (output_do_verbatim): Likewise.
6381 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
6383 * cpperror.c (print_location): Don't print include chain
6385 (cpp_begin_message): Update to use DL_ macros.
6386 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6387 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6388 cpp_notice, cpp_notice_from_errno): Remove.
6389 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6392 * cppexp.c (CPP_ICE): Remove.
6393 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6394 lex, integer_overflow, _cpp_parse_expr): Update.
6395 * cppfiles.c (read_include_file, find_include_file,
6396 handle_missing_header, _cpp_read_file, remap_filename): Update.
6397 * cpphash.h (enum error_type): Remove.
6398 (_cpp_begin_message): Update.
6399 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6400 cpp_handle_option, cpp_post_options): Update.
6401 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6402 skip_whitespace, parse_identifier, parse_slow, parse_string,
6403 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6404 cpp_interpret_charconst): Update.
6405 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6406 lex_macro_node, do_undef, glue_header_name, parse_include,
6407 do_include_common, read_flag, do_line, do_linemarker, do_ident,
6408 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6409 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6410 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6411 _cpp_pop_buffer, do_diagnostic): Update.
6412 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6413 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6414 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6415 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6416 cpp_notice, cpp_notice_from_errno): Remove.
6417 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6420 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6421 collect_args, enter_macro_context, save_parameter, parse_params,
6422 _cpp_create_definition, check_trad_stringification,
6423 cpp_macro_definition): Update.
6424 * cppmain.c (cpp_preprocess_file): Update.
6425 * fix-header.c (read_scan_file): Update.
6427 2002-04-14 Andreas Schwab <schwab@suse.de>
6429 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6431 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6433 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6435 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6437 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6440 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
6442 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6444 2002-04-13 Joel Sherrill <joel@OARcorp.com>
6446 * config/sparc/t-elf: Enable v8 multilibs. Impacts
6447 sparc-elf and sparc-rtems targets.
6449 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6451 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6452 defined, and __gnu_hurd__ wherever __GNU__ is defined.
6453 * arm/linux-elf.h: Likewise.
6454 * cris/aout.h: Likewise.
6455 * cris/linux.h: Likewise.
6456 * i370/linux.h: Likewise.
6457 * i386/gnu.h: Likewise.
6458 * i386/linux-aout.h: Likewise.
6459 * i386/linux-oldld.h: Likewise.
6460 * i386/linux.h: Likewise.
6461 * i386/linux64.h: Likewise.
6462 * ia64/linux.h: Likewise.
6463 * m68k/linux-aout.h: Likewise.
6464 * m68k/linux.h: Likewise.
6465 * mips/linux.h: Likewise.
6466 * pa/pa-linux.h: Likewise.
6467 * pj/linux.h: Likewise.
6468 * rs6000/sysv4.h: Likewise.
6469 * s390/linux.h: Likewise.
6470 * sh/linux.h: Likewise.
6471 * sparc/linux-aout.h: Likewise.
6472 * sparc/linux.h: Likewise.
6473 * sparc/linux64.h: Likewise.
6474 * xtensa/linux.h: Likewise.
6476 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
6478 * stmt.c (check_unique_operand_names): Expect operand names to
6479 be strings rather than identifiers. Use simple_cst_equal to
6481 (resolve_operand_name_1): Make same identifier to string change here.
6482 * c-parse.in (asm_operand): Convert a named operand into a string.
6483 * cp/parse.y (asm_operand): Likewise.
6485 2002-04-13 Andreas Schwab <schwab@suse.de>
6487 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6489 2002-04-12 Mark Mitchell <mark@codesourcery.com>
6491 Revert these changes:
6493 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6496 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6498 2002-04-12 Richard Henderson <rth@redhat.com>
6500 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6501 (sparc*-*-solaris): Clean up header files.
6502 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6503 and plan on generating 64-bit code.
6504 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6505 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6506 * config/sparc/sol2-sld-64.h: Rename ...
6507 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
6508 for AS_SPARC64_FLAG not defined.
6509 * config/sparc/sol2-gld-bi.h: New.
6510 * config/sparc/sol2-sld.h: Remove.
6511 * config/sparc/sol26-sld.h: New.
6512 * config/sparc/sol2.h: Tidy comments.
6513 * doc/install.texi: Document sparc-solaris configury changes.
6515 2002-04-12 Richard Henderson <rth@redhat.com>
6517 * recog.c (offsettable_address_p): Match the logic in adjust_address.
6519 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6520 in 64-bit mode only. Use only for 32-bit or MEDLOW.
6522 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6524 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6526 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
6528 * pa.c (pa_can_combine_p): Call extract_insn before calling
6531 2002-04-12 Douglas B Rupp <rupp@gnat.com>
6533 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6534 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6535 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6536 (CPP_PREDEFINES): Handle __declspec.
6537 * config/i386/t-interix (USER_H): Remove.
6539 2002-04-12 DJ Delorie <dj@redhat.com>
6541 * integrate.c (compare_blocks): Make comparisons safe for when
6542 sizeof(int) < sizeof(char *).
6543 (find_block): Likewise.
6545 2002-04-12 Jan Hubicka <jh@suse.cz>
6546 David Edelsohn <edelsohn@gnu.org>
6548 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6550 (symbol_ref_operand): New.
6551 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6552 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6554 2002-04-12 Andreas Schwab <schwab@suse.de>
6556 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6557 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6558 overrides the definition in config/svr4.h.
6560 2002-04-12 Eric Norum <eric.norum@usask.ca>
6562 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6563 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6564 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6565 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6566 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6567 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6568 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6569 definitions to config/rtems.h and make the targets more similar.
6571 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6573 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6574 POINTERS_EXTEND_UNSIGNED.
6575 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6576 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6578 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6581 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
6583 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6584 depends on TARGET_SHMEDIA, not TARGET_SH5.
6586 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
6588 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6589 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6591 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6593 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6596 2002-04-12 Andreas Schwab <schwab@suse.de>
6598 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6600 2002-04-12 Richard Henderson <rth@redhat.com>
6603 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6605 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6606 modes spanning multiple hard regs.
6608 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6610 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6612 * pa.c (pa_output_function_prologue): Don't accumulate the total
6613 number of code bytes when using TARGET_64BIT, or gas, SOM and not
6614 the portable runtime.
6615 (output_deferred_plabels): Handle 64bit plabels.
6616 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6617 generating pic code using the GAS assembler for object formats that
6618 are not SOM (ie., ELF32 and ELF64).
6619 (output_millicode_call): Check attribute type if attribute length is 28.
6620 Likewise use $PIC_pcrel$0. Only call get_attr_length and
6621 dbr_sequence_length once.
6622 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6623 dbr_sequence_length once.
6624 * pa.h (TARGET_SOM): Define if not defined.
6625 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6626 with GAS and not SOM.
6627 (jump, call_internal_reg, call_value_internal_reg): Likewise.
6628 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
6630 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6632 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6633 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6634 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6635 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6636 elfos.h and dbxelf.h values are fine now.
6637 * config/i386/freebsd.h, config/alpha/freebsd.h
6638 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6640 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6642 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6643 or set Acpu or Amachine. Reformat.
6644 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6646 (LINK_SPEC): Do not need to undef.
6647 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6648 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6649 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6651 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6652 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6653 (LINK_SPEC): Do not need to undef.
6654 (DONT_USE_BUILTIN_SETJMP): Do not define.
6655 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6656 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
6657 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6658 Remove trailing spaces.
6659 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6660 __ELF__, or set Acpu or Amachine. Reformat.
6661 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6664 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6666 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6667 all other *-*-freebsd* targets.
6669 2002-04-11 Richard Henderson <rth@redhat.com>
6671 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6673 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6675 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6676 Include {cpu}/{cpu}.h thru tm_file.
6677 (alpha*-*-linux*ecoff): Remove target.
6678 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6679 (LINK_SPEC): Remove, is not OS independent.
6680 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6681 (LINK_SPEC): Do not need to #undef any longer.
6682 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6684 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6686 (LINK_SPEC): Moved here from alpha/elf.h.
6687 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6689 * config/alpha/linux-ecoff.h: Remove.
6690 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6691 (CPP_SPEC): Define _POSIX_SOURCE as needed.
6692 (CPP_SUBTARGET_SPEC): Do not define.
6693 (LINK_SPEC): Do not need to #undef any longer.
6694 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6695 * config/alpha/vms.h: Likewise.
6697 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6699 * doc/extend.texi: Remove old claim that typedefs cannot have
6700 an alignment attribute.
6702 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6704 PR optimization/6177
6705 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6706 bitpos is 0 and bitsize CONCAT size.
6708 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6711 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6713 2002-04-10 David O'Brien <obrien@FreeBSD.org>
6715 * config/alpha/freebsd.h: Minor reformatting.
6716 (CPP_SPEC): Define ELF and add cpp_subtarget.
6717 (ASM_SPEC): No longer needed.
6719 2002-04-11 Richard Henderson <rth@redhat.com>
6721 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6722 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
6723 (dimode mem/zero splitter): New.
6725 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
6727 * config/cris/cris.c (cris_override_options): Tweak error message
6728 for PIC not implemented.
6730 * config/cris/cris.h: Tweak comments related to parameter-passing.
6732 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6734 2002-04-10 Richard Henderson <rth@redhat.com>
6736 * except.c (add_ehl_entry): Allow duplicates after landing pad
6739 2002-04-10 David Edelsohn <edelsohn@gnu.org>
6741 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6743 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
6745 * c-decl.c (c_init_decl_processing): Move generation of
6746 decls for g77_integer_type_node and friends from here ...
6747 * c-common.c (c_common_nodes_and_builtins): ... to here.
6749 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
6751 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6752 is only used as frame pointer when frame_pointer_needed is true.
6754 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
6757 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6758 for the fact that the pool entry uses two words.
6759 (movdf_hard_insn): Similarly. Also, ADR instruction can span
6761 (movdf_soft_insn): Similarly.
6762 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6763 for the fact that the pool entry uses three words.
6765 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
6767 * config/mips/mips.c (mips_va_arg): When using the struct version
6768 of the EABI va_list, allow arguments in the register save area to
6769 take up less room than a stack argument.
6771 2002-04-10 Richard Henderson <rth@redhat.com>
6773 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6774 if EXPAND_INITIALIZER.
6776 2002-04-09 Richard Henderson <rth@redhat.com>
6778 * config/alpha/alpha.md (movdi_er_maybe_g): New.
6779 * config/alpha/alpha.c (alpha_expand_mov): Use it.
6781 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6783 PR optimization/6233
6784 * rtlanal.c (pure_call_p): New function.
6785 * rtl.h (pure_call_p): Declare.
6786 * loop.c (prescan_loop): Use it to set has_nonconst_call.
6787 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6789 2002-04-09 Eric Christopher <echristo@redhat.com>
6791 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6792 information to .comm directive.
6794 2002-04-09 Richard Henderson <rth@redhat.com>
6797 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6799 2002-04-09 Richard Henderson <rth@redhat.com>
6801 * basic-block.h (flow_delete_block_noexpunge): Declare.
6802 (expunge_block_nocompact): Declare.
6803 * cfg.c (expunge_block_nocompact): Split out from ...
6804 (expunge_block): ... here.
6805 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6806 (flow_delete_block_noexpunge): Split out from ...
6807 (flow_delete_block): ... here.
6808 * cfgcleanup.c (delete_unreachable_blocks): Compact while
6809 removing dead blocks.
6810 * except.c (exception_handler_labels): Remove.
6811 (exception_handler_label_map): New.
6812 (struct eh_region): Add aka member.
6813 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6814 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6815 (for_each_eh_label, for_each_eh_label_1): New.
6816 (init_eh): Register exception_handler_label_map.
6817 (free_eh_status): Use free_region.
6818 (find_exception_handler_labels): Use the map, not the list.
6819 (remove_exception_handler_label): Likewise.
6820 (maybe_remove_eh_handler): Likewise.
6821 (remove_eh_handler): Use the region aka bitmap.
6822 * except.h (exception_handler_labels): Remove.
6823 (for_each_eh_label): Declare.
6824 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6825 * loop.c (invalidate_loops_containing_label): New.
6826 (find_and_verify_loops): Use it. Use for_each_eh_label.
6827 * sched-rgn.c (is_cfg_nonregular): Use
6828 current_function_has_exception_handlers.
6830 2002-04-09 Richard Henderson <rth@redhat.com>
6832 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6833 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6834 Do not return changed status.
6835 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6836 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6837 New functions that do return changed status.
6838 * sbitmap.h: Update decls.
6839 * gcse.c, lcm.c: Use _cg functions as needed.
6841 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6843 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6844 (sh64-*-elf*, sh-*-rtemself*): Likewise.
6845 * config/sh/embed_bb.c: New file.
6846 * config/sh/embed-elf.h: New file.
6847 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
6848 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
6849 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6851 (SUBTARGET_CPP_PTR_SPEC): Don't define.
6852 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
6853 Add subtarget_asm_endian_spec.
6854 (ASM_SPEC): Use subtarget_asm_endian_spec.
6855 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
6856 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
6857 (WCHAR_UNSIGNED): Define.
6858 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
6859 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6860 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
6862 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
6863 (sh_adjust_cost): Likewise.
6864 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6866 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
6867 (WCHAR_TYPE_SIZE): Likewise.
6868 (ASM_SPEC): Use subtarget_asm_endian_spec.
6869 (SH_ELF_WCHAR_TYPE): #undef/ #define.
6870 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
6871 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
6872 (MAX_WCHAR_TYPE_SIZE): Don't #define .
6873 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
6874 (USER_LABEL_PREFIX): Don't #undef /#define .
6875 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6876 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
6877 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
6878 (ASM_SPEC): Likewise.
6879 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
6880 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
6881 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
6882 (LIB2FUNCS_EXTRA): Define.
6883 * t-sh64 (LIB2FUNCS_EXTRA): Define.
6884 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
6885 (LIB1ASMFUNCS_CACHE): Define.
6886 (LIB2FUNCS_EXTRA): Redefine empty.
6888 2002-04-08 Richard Henderson <rth@redhat.com>
6890 * reorg.c (get_branch_condition): Use reversed_comparison_code.
6892 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6894 * config/m68hc11/larith.asm (__map_data_section): Fix condition
6895 and optimize for size.
6896 (__do_global_ctors): Fix pointer comparison.
6897 (__do_global_dtors): Likewise.
6899 2002-04-09 David S. Miller <davem@redhat.com>
6901 * config/sparc/sparc.c (sparc_extra_constraint_check): New
6902 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
6903 allow reloading pseudos.
6904 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
6905 * config/sparc/sparc-protos.h: Declare it.
6907 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
6908 unsigned comparison warning.
6909 (output_restore_regs): Mark leaf_function as unused.
6911 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6913 * expr.c (is_aligning_offset): New function.
6914 (expand_expr, case COMPONENT_EXPR): Call it.
6916 2002-04-08 David S. Miller <davem@redhat.com>
6919 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
6921 Make init_priority work on Sparc when using GNU ld.
6922 * config/sparc/linux.h, config/sparc/linux64.h,
6923 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
6924 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
6925 * config/sparc/sol2-gld.h: New file to do the same.
6926 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
6927 sparc/sol2-gld.h to tm_file.
6929 PR optimization/4328
6930 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
6931 * doc/md.texi: Document it.
6932 * config/sparc/sparc.md (movdi_insn_sp64_novis,
6933 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
6934 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
6935 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
6936 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
6938 2002-04-08 Andreas Jaeger <aj@suse.de>
6940 * stmt.c (expand_asm_operands): Revert last patch from Richard
6943 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6945 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
6946 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
6948 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6950 * doc/contrib.texi (Contributors): Add David O'Brien.
6952 2002-04-08 Alan Modra <amodra@bigpond.net.au>
6954 * configure.in (auto-build.h): Use target_alias and build_alias
6955 when running configure.
6956 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
6957 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
6958 * configure: Regenerate.
6960 2002-04-07 David S. Miller <davem@redhat.com>
6962 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
6964 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
6967 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
6968 generating 32-bit pic code.
6970 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
6972 * cppinit.c (cpp_create_reader): Initialize
6973 discard_comments_in_macro_exp.
6974 (COMMAND_LINE_OPTIONS): Add "-CC" option.
6975 (cpp_handle_option): Handle "-CC" option.
6976 * cpplex.c (save_comment): If saving a C++ comment in
6977 a directive, convert it to a C comment.
6978 (_cpp_lex_direct): Pass second comment start character to
6979 save_comment to indicate comment type.
6980 * cpplib.c (_cpp_handle_directive): If processing
6981 a "#define" directive and discard_comments_in_macro_exp
6982 is false, re-enable saving of comments.
6983 (lex_macro_node): If discard_comments_in_macro_exp is false,
6984 discard any comments before the macro identifier.
6985 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
6987 * cppmacro.c (cpp_get_token): If expanding a macro while
6988 processing a directive, discard any comments we might encounter.
6989 (parse_params): If discard_comments_in_macro_exp is false,
6990 ignore comments in the macro parameter list.
6991 * gcc.c (cpp_unique_options): Add "-CC" option.
6992 (option_map): Map "--comments-in-macros" to "-CC".
6993 * doc/cppopts.texi: Document "-CC" option.
6994 * f/lang-specs.h: Add "-CC" option.
6995 * testsuite/gcc.dg/cpp/maccom1.c: New test.
6996 * testsuite/gcc.dg/cpp/maccom2.c: New test.
6997 * testsuite/gcc.dg/cpp/maccom3.c: New test.
6998 * testsuite/gcc.dg/cpp/maccom4.c: New test.
6999 * testsuite/gcc.dg/cpp/maccom5.c: New test.
7000 * testsuite/gcc.dg/cpp/maccom6.c: New test.
7002 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7005 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7007 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7010 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7013 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7014 RTX_UNCHANGING_P for the functions arguments when a tail call
7017 2002-04-06 Jason Merrill <jason@redhat.com>
7019 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7020 (parse_options_and_default_flags): Set them appropriately.
7021 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7023 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
7025 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7028 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7031 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7032 types come in by-reference. Fix typo in comment.
7034 2002-04-05 David S. Miller <davem@redhat.com>
7036 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7037 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7038 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7039 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7041 2002-04-05 David S. Miller <davem@redhat.com>
7043 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7044 are not going to emit return instructions, emit at least a nop
7045 for the sake of sane backtraces.
7047 2002-04-05 Richard Henderson <rth@redhat.com>
7049 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7051 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
7053 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7055 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
7057 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7058 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7059 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7061 2002-04-05 Andreas Schwab <schwab@suse.de>
7063 * c-convert.c: Include c-common.h.
7064 * Makefile.in (c-convert.o): Updated.
7066 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7068 * mklibgcc.in: Use separate libgcc.map for each multilib.
7069 * Makefile.in (distclean): Don't remove libgcc.map here.
7071 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7073 * Makefile.in (s-mlib): Handle --disable-multilib by separate
7074 genmultilib invocation.
7076 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
7078 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7079 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
7080 to num_gprs for symmetry.
7081 * config/mips/mips.c: Adjust accordingly.
7083 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
7085 * c-common.c (truthvalue_conversion): Rename, update.
7086 * c-common.h (c_common_truthvalue_conversion): New.
7087 * c-convert.c (convert): Update.
7088 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7089 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7090 * c-typeck.c (build_binary_op, build_unary_op,
7091 build_conditional_expr): Update.
7092 * fold-const.c (constant_boolean_node, fold): Use langhook.
7093 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7094 * langhooks.h (struct lang_hooks): New hook.
7095 * stmt.c (expand_decl_cleanup): Use langhook.
7096 * tree.h (truthvalue_conversion): Remove.
7098 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7100 2002-04-05 Alan Modra <amodra@bigpond.net.au>
7102 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7103 Add rules to make null object file.
7105 2002-04-04 Jim Blandy <jimb@redhat.com>
7107 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7108 macro formal parameter names.
7110 2002-04-04 David S. Miller <davem@redhat.com>
7112 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7114 2002-04-04 Richard Henderson <rth@redhat.com>
7117 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7118 Support copies into and out of memory. Don't accept allows_reg
7119 and allows_mem as gospel.
7121 2002-04-04 Richard Henderson <rth@redhat.com>
7124 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7125 (write_dependence_p): Likewise.
7127 2002-04-04 Richard Henderson <rth@redhat.com>
7129 * predict.c (estimate_bb_frequencies): Do frequency calculation
7130 with a volatile temporary.
7132 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
7134 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7136 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7139 * final.c (final_start_function): Don't bump profile_label_no here...
7140 (final_end_function): ...but here.
7142 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7144 * config/sparc/sparc.md (pic): New attribute.
7145 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7147 (split after do_builtin_setjmp_setup): New.
7149 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7152 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7155 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7157 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7158 UNITS_PER_WORD for zero sized aggregates.
7160 2002-04-03 David S. Miller <davem@redhat.com>
7162 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7163 one-character spec for this, just use %(link_gcc_c_sequence).
7165 2002-04-03 David S. Miller <davem@redhat.com>
7167 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7170 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7172 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7173 (DWARF_FRAME_RETURN_COLUMN): Move.
7174 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7175 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7176 * pa.c (except.h, predict.h): Include.
7178 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7179 (output_ascii): Add cast.
7180 (store_reg_modify): Revise to add frame notes.
7181 (set_reg_plus_d): Likewise.
7182 (compute_frame_size): Include space for eh data registers in frame if
7183 the current function calls eh_return.
7184 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7185 function calls eh_return. Save eh data registers if the current
7186 function calls eh_return. Fix code to add frame notes. Emit
7187 blockage to prevent insns with frame notes being scheduled in the
7188 delay slot of calls.
7189 (hppa_expand_epilogue): Restore eh data registers and do final stack
7190 adjustment if the current function calls eh_return. Don't add frame
7192 (output_call): Revise for change in length of call insn. Don't do
7193 return pointer adjustment for an unconditional jump in the delay slot
7194 of a call when using frame notes.
7195 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7196 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7197 (ARG_POINTER_CFA_OFFSET): Define.
7198 * pa.md (return_external_pic): New pattern.
7199 (prologue): Correct formatting. Use return_external_pic if current
7200 function calls eh_return.
7201 (call_internal_symref, call_value_internal_symref,
7202 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7203 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7205 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7207 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7208 list of targets to check using "nop" insn.
7209 * configure: Rebuilt.
7211 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7213 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7215 2002-04-03 David S. Miller <davem@redhat.com>
7217 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7218 library sequence passed to the linker.
7219 (LINK_COMMAND_SPEC): Use it.
7220 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7221 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7222 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7224 2002-04-03 Jason Merrill <jason@redhat.com>
7226 * except.c (struct eh_status): Remove protect_list.
7227 (begin_protect_partials, end_protect_partials): Remove.
7228 (add_partial_entry): Remove.
7229 * except.h: Remove prototypes.
7231 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7232 expand_decl_cleanup_eh.
7235 * tree.h (CLEANUP_EH_ONLY): New macro.
7236 * stmt.c (expand_decl_cleanup_eh): New fn.
7237 (expand_cleanups): Check CLEANUP_EH_ONLY.
7238 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7239 Use expand_decl_cleanup_eh.
7240 (expand_stmt): Adjust.
7241 * c-common.h: Adjust prototype.
7243 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7245 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7246 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7247 (cris_target_asm_function_epilogue): Ditto.
7248 (cris_initial_frame_pointer_offset): Ditto.
7249 (cris_simple_epilogue): Ditto.
7250 (cris_expand_builtin_va_arg): Variable-size types come in
7253 2002-04-03 David S. Miller <davem@redhat.com>
7255 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7257 (set_fast_math): Correct 'fsr' type.
7259 2002-04-03 Richard Henderson <rth@redhat.com>
7262 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7263 * toplev.c (check_global_declarations): Use it.
7264 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7265 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7266 (LANG_HOOKS_DECLS): Add it.
7267 * langhooks.c (lhd_warn_unused_global_decl): New.
7268 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7269 * c-objc-common.c (c_warn_unused_global_decl): New.
7270 * c-tree.h (c_warn_unused_global_decl): Declare.
7271 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7273 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7275 * langhooks-def.h (lhd_set_decl_assembler_name,
7276 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7277 (LANG_HOOKS_INITIALIZER): Update.
7278 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7279 * langhooks.h (struct lang_hooks): New hook.
7280 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7281 (lang_set_decl_assembler_name): Remove.
7282 (init_obstacks): Don't set hook.
7283 (decl_assembler_name): New function.
7284 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7285 (decl_assembler_name): New.
7286 (lang_set_decl_assembler_name): Remove.
7288 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7290 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7291 works properly with .hidden symbols.
7292 * configure: Rebuilt.
7293 * config.in: Rebuilt.
7294 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7295 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7296 properly with .hidden symbols.
7298 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7301 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7304 2002-04-03 Richard Henderson <rth@redhat.com>
7307 * sched-rgn.c (sets_likely_spilled): New.
7308 (sets_likely_spilled_1): New.
7309 (add_branch_dependences): Use it.
7311 2002-04-02 Richard Henderson <rth@redhat.com>
7314 * loop.h (LOOP_FIRST_PASS): New.
7315 * loop.c (strength_reduce): Mind it when deciding to unroll.
7316 * toplev.c (rest_of_compilation): Set it.
7318 2002-04-02 David S. Miller <davem@redhat.com>
7320 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7321 mems_ok_for_ldd_peep when the order of the loads being examined
7323 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7324 existing comment to increase comprehension of this situation.
7326 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7328 * config/sh/sh.md: Don't use union real_extract.
7330 2002-04-02 Richard Henderson <rth@redhat.com>
7332 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7334 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7336 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7337 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7338 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7339 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7340 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7341 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7342 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7343 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7344 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7345 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7346 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7347 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7348 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7349 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7350 Include as many configury headers via tm_file as possible. This
7351 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7352 * config/openbsd-oldgas.h: New file.
7353 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7354 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7355 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7356 config/i386/i386-coff.h, config/i386/i386-interix.h,
7357 config/i386/iscdbx.h, config/i386/linux-aout.h,
7358 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7359 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7360 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7361 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7362 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7363 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7364 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7365 config/i386/vxi386.h: Do not directly include configury headers.
7366 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7367 Directly include configury headers that are no longer automatically
7368 included by the above headers.
7369 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7370 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7371 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7372 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7373 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7374 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7375 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7376 (TARGET_VERSION): Define.
7377 * config/i386/beos-elf.h, config/i386/freebsd.h,
7378 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7379 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7380 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7381 config/i386/sco5.h, config/i386/sysv4.h
7382 (TARGET_VERSION): Do not need to protect.
7383 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7384 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7385 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7386 config/i386/i386-interix.h, config/i386/linux-aout.h,
7387 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7388 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7389 (YES_UNDERSCORES): Do not define - not needed.
7390 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7391 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7392 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7393 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7394 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7395 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7396 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7397 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7399 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
7400 Richard Henderson <rth@redhat.com>
7403 * function.c (assign_temp): Accept either type or decl argument.
7404 Detect variables whose size is too large to fit into an integer.
7405 * stmt.c (expand_decl): Pass the decl, not the type.
7407 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7409 * protoize.c: Match include directory usage with cppdefault.c.
7411 2002-04-03 Jeffrey A Law (law@redhat.com)
7412 Hans-Peter Nilsson <hp@bitrange.com>
7414 * combine.c (simplify_comparison): Avoid narrowing a comparison
7415 with a paradoxical subreg when doing so would drop signficant bits.
7417 2002-04-02 Steve Ellcey <sje@cup.hp.com>
7419 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7420 if POINTERS_EXTEND_UNSIGNED is defined.
7422 2002-04-02 Richard Henderson <rth@redhat.com>
7425 * local-alloc.c (contains_replace_regs): LO_SUM may contain
7428 2002-04-02 Richard Henderson <rth@redhat.com>
7430 * doc/standards.texi: Document required freestanding libc entry points.
7432 2002-04-02 Alan Modra <amodra@bigpond.net.au>
7434 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7435 associated splitter. Remove MQ constraint.
7436 (ctrdi_internal4): Correct CCmode clobber.
7438 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7440 * milli64.S ($$dyncall): New function.
7441 * t-linux (LIB1ASMFUNCS): Revise module list.
7442 (LIB1ASMSRC): Use pa/milli64.S.
7444 2002-04-02 Richard Henderson <rth@redhat.com>
7446 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7447 rename solaris_sys_varargs_h.
7449 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7451 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7452 the same mode as its component.
7454 2002-04-02 Richard Henderson <rth@redhat.com>
7457 * final.c (this_is_asm_operands): Export.
7458 * output.h (this_is_asm_operands): Declare.
7459 * config/i386/i386.c (print_operand): Error odd asm operands.
7461 2002-04-02 Richard Henderson <rth@redhat.com>
7464 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7466 2002-04-01 Richard Henderson <rth@redhat.com>
7469 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7470 * fixinc/fixincl.x: Rebuild.
7472 2002-04-01 Richard Henderson <rth@redhat.com>
7474 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7475 (atomic_alloc, atomic_free): New.
7476 (SIZE, MASK_FOR, PTR_IN): New.
7477 (emergency_reg_state, emergency_reg_state_free): New.
7478 (emergency_labeled_state, emergency_labeled_state_free): New.
7479 (reg_state_alloced, labeled_state_alloced): New.
7480 (alloc_reg_state, free_reg_state): New.
7481 (alloc_label_state, free_label_state, free_label_states): New.
7482 (push, pop, dup_state_stack, free_state_stack): Use them.
7483 (desc_label_state): Likewise.
7484 (uw_frame_state_for): Free label states and state stack.
7485 (uw_update_reg_address): Eliminate warnings.
7487 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
7489 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7490 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7492 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7494 * c-decl.c (grokdeclarator): Update.
7495 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7496 * c-tree.h (c_mark_addressable): New.
7497 * c-typeck.c (default_function_array_conversion, build_unary_op,
7498 build_array_ref, convert_for_assignment): Update.
7499 (mark_addressable): Rename.
7500 * calls.c (try_to_integrate, expand_call): Use langhook.
7501 * expr.c (expand_expr): Use langhook.
7502 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7503 * langhooks.h (struct lang_hooks): New hook.
7504 * stmt.c (expand_asm_operands): Use langhook.
7505 * tree.h (mark_addressable): Remove.
7507 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7509 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7511 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7514 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7516 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7517 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7519 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7521 * c-common.c (unsigned_conversion_warning, convert_and_check,
7522 unsigned_type, signed_type, shorten_compare,
7523 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7524 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7525 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7527 * c-decl.c (grokdeclarator): Update.
7528 * c-format.c (check_format_types): Update.
7529 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7530 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7531 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7532 * convert.c (convert_to_integer): Use new hooks.
7533 * expmed.c (make_tree): Use new hooks.
7534 * expr.c (store_expr): Use new hooks.
7535 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7536 all_ones_mask_p, unextend, fold): Use new hooks.
7537 * langhooks.h (struct lang_hooks_for_types): New hooks.
7538 * tree.h (signed_or_unsigned_type, signed_type,
7539 unsigned_type): Remove.
7541 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7542 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7544 2002-03-31 Richard Henderson <rth@redhat.com>
7546 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7547 (desc_frgr_mem): Fix reference to f16-f31.
7549 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7551 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7552 RTVEC_ELT): Const-ify.
7553 * varray.h (VARRAY_CHECK): Const-ify.
7554 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7555 ggc_mark_rtvec, ggc_mark): Const-ify.
7557 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7559 * diagnostic.c: Include langhooks-def.h.
7560 * Makefile.in (diagnostic.o): Update.
7562 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7564 * c-common.c (c_unsafe_for_reeval): Rename.
7565 * c-common.h (c_unsafe_for_reeval): Rename.
7566 * c-decl.c (finish_incomplete_decl): Rename.
7567 (c_init_decl_processing): Don't set langhook.
7568 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7569 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7570 * c-objc-common.c (c_objc_common_init): Don't set langhook.
7571 * c-tree.h (finish_incomplete_decl): Rename.
7572 * langhooks-def.h (lhd_unsafe_for_reeval): New.
7573 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7574 (LANG_HOOKS_INITIALIZER): Update.
7575 * langhooks.c (lhd_unsafe_For_reeval): New.
7576 * langhooks.h (struct langhooks): New hooks.
7577 * toplev.c (incomplete_decl_finalize_hook): Remove.
7578 (wrapup_global_declarations): Update.
7579 * tree.c (lang_unsafe_for_reeval): Remove.
7580 (unsafe_for_reeval): Update.
7581 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7584 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7585 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7587 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7589 * diagnostic.c (print_error_function): Remove.
7590 (default_print_error_function): Rename.
7591 (report_error_function): Update.
7592 * diagnostic.h (print_error_function): Remove.
7593 (default_print_error_function): Remove.
7594 * langhooks-def.h (struct diagnostic_context): Predeclare.
7595 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7596 (LANG_HOOKS_INITIALIZER): Update.
7597 * langhooks.h (struct diagnostic context): Predeclare.
7598 (struct lang_hooks): New hook.
7600 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7602 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7603 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7605 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7606 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7607 of PIC_OFFSET_TABLE_REGNUM thruout.
7608 * config/rs6000/rs6000.md: Likewise.
7609 * config/rs6000/darwin.h: Likewise.
7611 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7613 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7614 unsigned HOST_WIDE_INT, not unsigned int.
7616 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7618 PR middle-end/6096, middle-end/6098, middle-end/6099
7619 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7621 (fill_slots_from_thread): Likewise.
7623 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7625 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7626 floating fields in float regs.
7627 (function_arg_record_value_2): Likewise.
7629 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7631 * config/mmix/mmix.md (define_constants): Remove misleading
7632 FIXME. Add MMIX_fp_rO_OFFSET.
7633 ("nonlocal_goto_receiver"): Don't have stack-frame address of
7634 saved rO as part of the pattern. Remove FIXME.
7635 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
7636 here, at output-time.
7638 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7641 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7643 (output_v9branch): Likewise.
7645 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7647 * gcc.c: Revert previous patch for now.
7648 * config/i386/djgpp.h: Likewise.
7650 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7652 * config/mmix/crti.asm (_init): Register _fini with atexit.
7653 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7655 2002-03-31 Richard Henderson <rth@redhat.com>
7658 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7659 (ASM_OUTPUT_DEF_FROM_DECLS): New.
7661 2002-03-31 Richard Henderson <rth@redhat.com>
7663 * libgcc2.c (__bb_exit_func): Make static.
7665 * config/alpha/alpha.md (trap): New.
7667 2002-03-31 Richard Henderson <rth@redhat.com>
7669 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7670 promoted argument types; build trap.
7671 (expand_builtin_trap): New.
7672 (expand_builtin): Use it.
7673 * stmt.c (expand_nl_goto_receivers): Likewise.
7674 * expr.h (expand_builtin_trap): Declare.
7675 * libfuncs.h (LTI_abort, abort_libfunc): New.
7676 * optabs.c (init_optabs): Init abort_libfunc.
7678 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7680 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7681 (LINK_COMMAND_SPEC): ... from here.
7682 (init_gcc_specs): Duplicate it here too, omitting
7683 shared_name in the second copy.
7684 (init_spec): Test for duplicate
7685 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7687 2002-03-30 David S. Miller <davem@redhat.com>
7689 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7690 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7692 2002-03-30 Roger Sayle <roger@eyesopen.com>
7693 Richard Henderson <rth@redhat.com>
7695 * regmove.c (combine_stack_adjustments_for_block): Avoid
7696 emitting a stack adjustment of zero bytes. Let delete_insn
7699 2002-03-30 Richard Henderson <rth@redhat.com>
7701 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7702 (sparc_emitting_epilogue): New.
7703 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7704 * config/sparc/sparc-protos.h: Update.
7705 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7706 (TARGET_SWITCHES): Update.
7707 * config/sparc/sparc.md (return): Remove.
7708 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7709 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7710 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7711 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7712 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7713 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7714 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7715 Remove MASK_EPILOGUE.
7716 * doc/invoke.texi: Update.
7718 2002-03-30 Daniel Berlin <dan@dberlin.org>
7720 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7721 CPP will start the file for us.
7723 2002-03-30 Richard Henderson <rth@redhat.com>
7726 * config/ia64/ia64.c (group_barrier_needed_p): Special case
7727 prologue_allocate_stack.
7728 (ia64_single_set): Use insn codes for recognition of special
7729 cases, not rtl matching.
7730 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7732 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
7734 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7736 2002-03-30 Richard Henderson <rth@redhat.com>
7739 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7740 or -fomit-frame-pointer with profiling.
7741 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7742 (FUNCTION_PROFILER): Do nothing.
7743 (PROFILE_HOOK): New.
7744 * config/sparc/sparc.c (sparc_override_options): Don't check
7745 code models for profiling.
7746 (sparc_function_profiler): Remove.
7747 (sparc_profile_hook): New.
7748 * config/sparc/sparc-protos.h: Update.
7750 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7752 PR optimization/6086
7753 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7754 of SUBREG of volatile MEM or because the MEM was mode dependent,
7755 return CLOBBER instead of unmodified SUBREG.
7757 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7759 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7760 when not optimizing.
7762 * toplev.c (rest_of_compilation): Cann mark_constant_function
7763 only when optimizing.
7765 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7768 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7769 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7770 (try_optimize_cfg): clear all AUX fields.
7772 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7773 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7774 (ix86_address_cost): Be prepared for SUBREGed registers.
7775 (legitimate_address_p): Accept SUBREGed registers.
7777 2002-03-29 Richard Henderson <rth@redhat.com>
7780 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7782 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7784 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7785 for aggregate and TFmode types.
7787 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7789 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7791 2002-03-29 Richard Henderson <rth@redhat.com>
7794 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7795 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7797 2002-03-29 Richard Henderson <rth@redhat.com>
7800 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7801 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7802 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7803 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7805 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7807 2002-03-29 Dale Johannesen <dalej@apple.com>
7809 * loop.c (combine_movables): Do allow combination of pseudos.
7811 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
7813 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7814 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7815 No functional change except ...
7816 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
7817 * doc/install.texi (*-*-freebsd*): Document port configuration.
7819 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7821 * Makefile.in (convert.o, calls.o, expmed.o): Update.
7822 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7824 * builtin-types.def (BT_PTRMODE): Update.
7825 * c-common.c (type_for_size): Rename c_common_type_for_size.
7826 (type_for_mode): Similarly.
7827 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7829 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7830 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7831 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7833 * c-typeck.c (common_type, comptypes, default_conversion):
7835 * calls.c: Include langhooks.h.
7836 (emit_library_call_value_1): Use new hooks. Avoid redundant
7838 * convert.c: Include langhooks.h
7839 (convert_to_pointer, convert_to_integer): Use new hooks.
7840 * except.c (init_eh): Similarly.
7841 * expmed.c: Include langhooks.h.
7842 (expand_mult_add): Use new hooks.
7843 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7844 try_casesi): Similarly.
7845 * fold-const.c (optimize_bit_field_compare, make_range,
7846 decode_field_reference, fold_truthop, fold): Similarly.
7847 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
7848 put_var_into_stack): Similarly.
7849 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
7850 LANG_HOOKS_TYPE_FOR_SIZE): New.
7851 (LANG_HOOKS_TYPES_INITIALIZER): Update.
7852 * langhooks.h (lang_hooks_for_types): New hooks.
7853 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
7854 * tree.c (get_unwidened, get_narrower): Similarly.
7855 * tree.h (type_for_mode, type_for_size): Remove.
7856 * varasm.c (force_const_mem): Use new hooks.
7857 * utils2.c (nonbinary_modular_operation): Update.
7859 * objc-act.c (handle_impent): Update.
7860 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
7863 2002-03-29 Steve Ellcey <sje@cup.hp.com>
7865 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
7866 * config/ia64/ia64.c (basereg_operand): New.
7867 * config/ia64/ia64-protos.h (basereg_operand): Declare.
7868 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
7870 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7872 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
7873 unwind information when frame_pointer_needed.
7874 (mmix_assemble_integer): Tweak wording in comment.
7876 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7878 * Makefile.in (except.o): Update.
7879 * except.c: Include langhooks.h.
7880 (init_eh): Use langhook.
7881 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
7882 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
7883 (LANG_HOOKS_INITIALIZER): Update.
7884 * langhooks.h (lang_hooks_for_types): New.
7885 (struct lang_hooks): Add it.
7886 * tree.c (make_lang_type_fn, make_lang_type): Remove.
7887 * tree.h (make_lang_type_fn, make_lang_type): Remove.
7889 * alpha/alpha.c: Include langhooks.h.
7890 (alpha_build_va_list): Use langhook.
7891 * d30v/d30v.c: Include langhooks.h.
7892 (d30v_build_va_list): Use langhook.
7893 * i386/i386.c: Include langhooks.h.
7894 (ix86_build_va_list): Use langhook.
7895 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
7896 * s390/s390.c: Include langhooks.h.
7897 (s390_build_va_list): Use langhook.
7898 * stormy16/stormy16.c: Include langhooks.h.
7899 (stormy16_build_va_list): Use langhook.
7901 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7904 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
7906 (length): Compute variable length for branches/calls/jumps here.
7907 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
7908 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
7909 define branch_type attribute.
7910 (divsi3_sp32): Maximum length is 6 not 7.
7911 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
7912 call_address_untyped_struct_value_sp32,
7913 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
7914 * config/sparc/sparc.c (empty_delay_slot): New function.
7915 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
7916 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
7918 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7920 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
7921 nonzero_bits if not needed.
7922 (nonzero_bits) [XOR]: Likewise.
7923 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
7924 reg_last_set_mode and mode are both MODE_INT, but not equal.
7925 (record_value_for_reg): Compute reg_last_set_nonzero_bits
7926 in nonzero_bits_mode for MODE_INT modes.
7928 2002-03-28 Richard Henderson <rth@redhat.com>
7931 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
7932 to GAS. Correct drift between alternatives.
7934 2002-03-28 Richard Henderson <rth@redhat.com>
7937 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
7939 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
7941 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
7942 emulation to the linker.
7944 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
7946 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
7947 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
7949 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
7951 * combine.c (simplify_and_const_int): Make sure to apply mask
7952 when force_to_mode returns a constant integer. PR3311.
7954 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7956 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
7958 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7960 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
7961 and Objective-C Dialect Options.
7963 2002-03-28 Richard Henderson <rth@redhat.com>
7965 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
7966 comparison should be done vs !=0 not >0 return code. Tidy cases.
7968 2002-03-28 Richard Henderson <rth@redhat.com>
7970 * c-decl.c (finish_function): New arg can_defer_p. Pass it
7971 on to c_expand_body.
7972 * c-tree.h (finish_function): Update decl.
7973 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
7975 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
7977 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
7979 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
7981 * rtlanal.c: Include flags.h
7982 (may_trap_p): Do not mark FP operations if trapping
7983 if !flag_trapping_math
7984 * Makefile.in (rtlanal.o): Add dependency on flag.h
7985 * ifcvt.c (noce_operand_ok): Avoid the lameness.
7987 2002-03-27 Zack Weinberg <zack@codesourcery.com>
7989 * mips.md: Use dconst1, not 1.0, as first argument of
7990 REAL_VALUE_LDEXP. Don't use union real_extract.
7992 2002-03-28 Alan Modra <amodra@bigpond.net.au>
7994 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
7995 rather than $target. Heed program_prefix and
7996 program_transform_name. Search for gas in cross-compiler case too.
7997 "test -x" rather than "test -f".
7998 (gcc_cv_ld): Likewise.
7999 (gcc_cv_nm): Heed program_prefix and program_transform_name.
8000 (gcc_cv_objdump): Likewise.
8001 * configure: Regenerate.
8003 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8005 * Makefile.in (attribs.o): Update.
8006 * attribs.c: Include langhooks.h.
8007 (decl_attributes): Use langhook.
8008 * c-decl.c (insert_default_attributes): Rename.
8009 * c-tree.h (c_insert_default_attributes): New.
8010 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8011 (LANG_HOOKS_INITIALIZER): Update.
8012 * langhooks.h (struct lang_hooks): New hook.
8013 * tree.h (insert_default_attributes): Remove.
8015 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8017 2002-03-27 Andreas Schwab <schwab@suse.de>
8019 * config/i386/i386.c (classify_argument): Also check for
8022 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8024 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8027 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
8029 * i960.md (ret): Set PC.
8030 (nonlocal_goto): Fix expander.
8031 * builtins.c (epxand_builin_longjmp): Check that we've emitted
8034 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
8036 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8039 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8041 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8042 assigning to BLOCK_FOR_INSN directly.
8044 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
8046 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8048 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8050 * c-common.c (c_expand_expr): Fix prototype.
8051 * c-common.h (c_expand_expr): Always declare, update.
8052 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8053 * c-objc-common.c (c_objc_common_init): No global hook.
8054 * expr.c (expand_expr): Use langhook.
8055 * expr.h (enum expand_modifier): Conditionally declare.
8056 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8057 (LANG_HOOKS_INITIALIZER): Update.
8058 * langhooks.c (lhd_expand_expr): New.
8059 * langhooks.h (struct lang_hooks): New hook.
8060 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8061 (lang_independent_init): Don't default hook.
8063 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8065 2002-03-27 Richard Henderson <rth@redhat.com>
8068 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8069 TARGET_CONST_GP. Simplify conditions.
8071 2002-03-27 Richard Henderson <rth@redhat.com>
8073 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8074 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8075 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8077 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8079 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8080 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8081 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8082 Remove unnecessary masks.
8083 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8084 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8085 -mwindows, -mdll switches and their negations.
8087 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8089 * gcc-common.c (lang_mark_false_label_stack): Remove.
8090 * ggc.h (lang_mark_false_label_stack): Similarly.
8092 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
8094 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8096 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8097 or __rtems_ is defined.
8099 2002-03-26 Richard Henderson <rth@redhat.com>
8101 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8102 if a non-trivial load was emitted.
8103 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
8104 in high+extra+low case.
8106 2002-03-26 Richard Henderson <rth@redhat.com>
8108 * config.gcc (sparc*-solaris): Use float_format=sparc.
8110 2002-03-26 Richard Henderson <rth@redhat.com>
8112 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8113 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8114 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8115 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8116 (WINT_TYPE_SIZE): Fix at 32.
8118 2002-03-26 Richard Henderson <rth@redhat.com>
8120 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8121 until after eh landing pad generation.
8122 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8123 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8125 2002-03-26 Richard Henderson <rth@redhat.com>
8127 * expr.h (ADD_PARM_SIZE): One more convert for INC.
8129 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
8131 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
8132 and warning switches.
8133 (cc1_options): Likewise.
8135 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
8137 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8138 Restore more of the signal context. Set no_reg_stack_frame.
8139 * config/ia64/unwind-ia64.c (unw_state_record):
8140 Add no_reg_stack_frame, comments.
8141 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8142 (uw_update_context): Adjust bsp when unwinding from leaf,
8143 but not signal frame.
8145 2002-03-26 David Edelsohn <edelsohn@gnu.org>
8147 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8149 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8151 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8153 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8156 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8157 "Add a pool_range attribute", which was lost during the ARM/Thumb
8160 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8162 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8163 a register into the MAC16 accumulator.
8165 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8167 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8168 (Warning Options): Document -Wswitch-enum.
8169 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8171 (warn_switch_enum): Define variables.
8172 * flags.h (warn_switch_enum): Declare variables.
8173 * stmt.c (expand_end_case_type): When warn_switch_enum /
8174 -Wswitch-enum, perform switch checks.
8177 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8179 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8180 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8181 (reload_muladdsi_compare0_scratch): Delete.
8183 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8185 * doc/install.texi (*-*-freebsd*): Update.
8187 2002-03-26 Richard Henderson <rth@redhat.com>
8189 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8190 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8192 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8193 types from the normal argument frame.
8195 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8196 variable sized objects by reference.
8197 (sparc_va_arg): Receive them by reference too.
8199 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8201 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8202 code to not restoring global registers.
8204 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8206 * Makefile.in (ggc-common.o): Update.
8207 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8208 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8209 * c-tree.h (c_mark_tree): New.
8210 * ggc-common.c: Include langhooks.h.
8211 (gcc_mark_trees): Use new langhook.
8212 * ggc-callbacks.c: Delete file.
8213 * ggc.h (lang_mark_tree): Remove.
8214 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8215 (LANG_HOOKS_INITIALIZER): Update.
8216 * langhooks.h (struct lang_hooks): New hook.
8218 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8220 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8222 * doc/cpp.texi: Exclude entire Top node from printed manual.
8223 Move option index after directive index. Insert page breaks
8224 before GFDL and concept index. Index environment variables
8225 with command line options.
8226 * doc/cppenv.texi: Use @vtable for environment variable list.
8227 Add paragraph explaining semantics of empty elements in path
8228 variables. Exclude a cross-reference to Fishkill from the
8229 manpage. Remove an unnecessary cross-reference of the entry
8230 right above the referer. Don't use @anchor in text that goes
8232 * doc/cppopts.texi: Cross-reference the environment variables
8233 section, not the specific environment variable, for consistency.
8235 2002-03-25 Richard Henderson <rth@redhat.com>
8237 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8238 anywhere in the block. Don't refer to insns that have been
8239 removed from the chain. Iterate backward through the new insns.
8240 Don't refer to edges that have been removed.
8242 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8244 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8245 test for overflow of constant.
8247 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8250 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8251 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8252 these patterns on arm_archv4.
8254 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8256 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8259 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8261 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8262 float_handled, float_handler, float_signal, set_float_handler,
8263 and do_float_handler. Set handler for SIGFPE to crash_signal.
8264 * toplev.h: Don't prototype do_float_handler.
8266 * c-lex.c: Fold parse_float into lex_number. Make warning
8267 about portability of hex float constants more informative, and
8268 don't issue it on top of a syntax error.
8269 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8271 * real.h: Define REAL_VALUE_ABS here...
8272 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8273 simplify_unary_real, simplify_binary_real, and
8274 simplify_binary_is2orm1 into their callers.
8275 * tree.c: Fold build_real_from_int_cst_1 into caller.
8277 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8279 * tsystem.h: Include float.h here...
8280 * libgcc2.c: ... not here.
8282 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8284 Fixes for: PR bootstrap/3591, target/5676
8285 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8286 defined. Do not disable exceptions or rtti.
8287 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8288 mcore.h. Disable exceptions and rtti, since they are not
8291 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8293 * c-decl.c (maybe_build_cleanup): Remove.
8294 * expr.c (expand_expr): Use langhook.
8295 * langhooks-def.h (lhd_return_null_tree,
8296 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8297 (LANGHOOKS_INITIALIZER): Update.
8298 * langhooks.c (lhd_return_null_tree): New.
8299 * langhooks.h (struct lang_hooks): New hook.
8300 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8301 * tree.h (maybe_build_cleanup): Remove.
8303 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8305 * regrename.c (build_def_use): Move recog_memoized
8306 before extract_insn.
8308 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8311 * expr.c (emit_group_store): Handle storing into CONCAT.
8313 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8315 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8316 corresponding MATCH_DUP.
8318 2002-03-24 Richard Henderson <rth@redhat.com>
8320 * unroll.c (unroll_loop): Zero label_map.
8322 * gcse.c: Include except.h.
8323 * Makefile.in (gcse.o): Update.
8325 2002-03-24 Richard Henderson <rth@redhat.com>
8327 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8328 Do resolve_unique_section before shared data clause.
8330 2002-03-24 Richard Henderson <rth@redhat.com>
8332 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8334 2002-03-24 Richard Henderson <rth@redhat.com>
8336 * recog.c (peephole2_optimize): Split blocks when EH insns are
8337 generated in the middle of a block. Do global life update if
8340 2002-03-24 Richard Henderson <rth@redhat.com>
8342 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8344 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8347 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8348 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8349 (init_dependency_output): Don't make no_output decision here.
8351 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8353 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8354 warn_switch. Update description.
8355 (expand_end_case_type): Call check_for_full_enumeration_handling
8358 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8360 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8361 (m68hc11_split_move): Call it to see if the source and destination
8362 operands use the same direction auto inc/dec mode, otherwise make the
8363 source an offsetable memory operand and generate an add.
8365 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8367 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8368 register for operand 2.
8369 ("*subsi3_zero_extendqi"): Likewise.
8370 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8371 bits so that it is compatible with a pop.
8372 ("*andhi3_gen"): Likewise.
8373 ("xorhi3"): Likewise.
8375 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8377 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8379 (cpp_post_options): ... not here.
8381 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8382 Aldy Hernandez <aldyh@redhat.com>
8384 Removal of separate preprocessor cpp0.
8386 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8387 cpp0, install-common): Update.
8388 * c-common.c (flag_preprocess_only): New.
8389 (c_common_init): Preprocess for -E.
8390 * c-common.h (flag_preprocess_only): New.
8391 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8392 * c-objc-common.c (c_init_decl_processing): Exit quickly
8393 for NULL return from c_common_init.
8394 * cpplib.h (cpp_preprocess_file): New.
8395 * cppmain.c (main, general_init, pfile, progname): Remove.
8396 (do_preprocessing): Rename cpp_preprocess_file, don't call
8397 cpp_finish. Don't close stdout here.
8398 (setup_callbacks): Update prototype.
8399 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8401 * tradcpp.c (main): Ignore -quiet.
8403 * lang-specs.h (default_compilers): Preprocess with cc1obj.
8405 2002-03-24 Richard Henderson <rth@redhat.com>
8407 PR optimization/5742
8408 * machmode.def: Add inner mode field to complex modes.
8409 * config/mips/mips.c (mips_function_value): Always define. Add
8410 new argument to handle libcalls.
8411 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8412 (FUNCTION_VALUE): Likewise.
8413 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8414 * config/mips/mips-protos.h: Update.
8416 2002-03-23 Richard Henderson <rth@redhat.com>
8418 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8419 * config/sparc/sparc-protos.h: Update.
8420 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8422 2002-03-23 Richard Henderson <rth@redhat.com>
8424 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8425 _start or _init begins the text segment.
8427 2002-03-23 David Edelsohn <edelsohn@gnu.org>
8429 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
8430 not HOST_WIDEST_INT.
8431 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8433 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
8436 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8437 operand argument to output_return_instruction.
8438 * arm.c (arm_print_operand, case 'd'): If the operand is
8439 const_true_rtx then just return.
8440 (arm_print_operand, case 'D'): If the operand is const_true_rtx
8443 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8445 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8446 (Warning Options): Document -Wswitch-default.
8447 * toplev.c (W_options): Add -Wswitch-default. Update comment on
8449 (warn_switch_default): Define variable.
8450 (warn_switch): Update comment.
8451 * flags.h (warn_switch_default): Declare variable.
8452 (warn_switch): Update comment.
8453 * stmt.c (expand_end_case): Check for and, when
8454 warn_switch_no_default, warn of a missing default case.
8456 2002-03-23 Alan Modra <amodra@bigpond.net.au>
8458 * real.h (N): Special case 128 bit doubles.
8460 * combine.c (simplify_comparison): When widening modes, ignore
8461 sign extension on CONST_INTs.
8463 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8465 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8466 passed to adjust_address. Fix comment formatting.
8469 2002-03-22 Zack Weinberg <zack@codesourcery.com>
8471 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8472 Always make REAL_VALUE_TYPE a struct containing an array of
8473 HOST_WIDE_INT, not a double. Tidy up the code deciding how
8474 big it is. Don't declare or use union real_extract.
8476 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8477 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8478 (print_operand), config/arm/arm.c (output_move_double),
8479 config/arm/arm.md (consttable_4, consttable_8),
8480 config/romp/romp.c (output_fpops), config/s390/s390.h
8481 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8482 (xtensa_output_literal): Don't use union real_extract.
8484 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8485 (sfmode_constant_to_ulong), config/ns32k/merlin.h
8486 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8487 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8488 (PRINT_OPERAND): Don't use local version of union
8491 * config/convex/convex.c (check_float_value), config/vax/vax.c
8492 (vax_float_literal), config/m88k/m88k.md (divdf3),
8493 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8494 config/pdp11/pdp11.c (output_move_quad): Don't do host
8495 arithmetic on target floating point quantities.
8497 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8498 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8500 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8501 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8503 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8504 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8506 * print-rtl.c (print_rtx): Disable code which needs
8507 floating-point emulator.
8508 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8509 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8510 depending on HOST_FLOAT_FORMAT to be defined properly.
8512 * config/1750a/1750a.c (get_double, float_label): Delete.
8513 (print_operand): Delete huge commented-out chunk. Use
8514 REAL_VALUE_TO_DECIMAL.
8515 * config/1750a/1750a-protos.h: Delete prototypes of deleted
8517 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8519 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8520 Use REAL_VALUE_TO_DECIMAL as ELF version does.
8521 * config/m88k/m88k.c (real_power_of_2_operand,
8522 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8523 real_extract out of the union; run the input through
8524 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8525 from that into the union.
8526 * config/pdp11/pdp11.c (output_move_double): Rearrange
8527 parentheses to make automatic indenter happy.
8529 * doc/tm.texi (Cross-compilation): Rename node to "Floating
8530 Point" and rewrite to describe current situation. Also adjust
8531 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8533 * doc/rtl.texi: Adjust cross reference.
8535 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8537 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8538 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8539 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8540 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8541 prevent use of sp as a reload register.
8542 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8543 non_acc_reg_operand.
8544 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8545 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8546 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8547 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8549 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8551 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8552 * cpplex.c (unterminated): Delete.
8553 (parse_string): No string literal may extend over multiple
8554 lines. Suppress the error when preprocessing assembly.
8555 * cppmain.c (scan_translation_unit): Strings are single-line.
8557 * doc/cpp.texi: Update to match.
8559 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8561 PR optimization/5854
8562 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8564 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8565 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8566 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8567 const0 if scratch register was not allocated.
8568 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8569 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8571 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8572 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8573 with GEN_INT (...) everywhere. Remove constraints in define_split
8575 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8576 require scratch register for setting 0 into regs/non-pushable memory.
8578 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8580 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8581 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8583 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
8585 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
8586 * cppinit.c (cpp_create_reader): On by default.
8587 (cpp_handle_option): Handle -W[no-]endif-labels.
8588 (cpp_post_options): Also enable if -pedantic.
8589 * cpplib.c (do_else): Use it.
8590 (do_endif): Likewise.
8591 * doc/cppopts.texi: Document new option.
8592 * doc/invoke.texi: Document new option.
8594 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
8596 * config/i386/i386.c, config/i386/i386.md: Change all occurences
8597 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8599 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8601 * flow.c (calculate_global_regs_live): Clear aux fields of
8604 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8606 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8607 REG or MEM subregs, pass rtx * instead of rtx to it.
8608 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8609 rtx * instead of rtx to alter_subreg.
8610 * config/m32r/m32r.c (gen_split_move_double): Likewise.
8611 * config/pj/pj.c (pj_output_rval): Likewise.
8613 2002-03-22 Richard Henderson <rth@redhat.com>
8616 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8617 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8618 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8619 (ia64_expand_prologue): Look at int_regs, not words, for number
8620 of incomming int regs.
8622 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
8624 * expr.c (expand_expr): A RESULT_DECL is part of a call.
8626 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
8628 * toplev.c (flag_loop_optimize, flag_crossjumping):
8629 New static variables.
8630 (rest_of_compilation): Conditionalize crossjumping and
8632 (parse_options_and_default_flags): Default loop_optimize and
8634 (lang_independent_options): Add -fcrossjumping and -floop-optimize
8635 * invoke.texi (crossjumping, loop-optimize): Document.
8637 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8639 * real.c (eiisneg): Move outside #ifdef NANS.
8641 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
8643 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8644 frequencies match; avoid match on different loop depths.
8645 (try_crossjump_to_bb): Kill tests that no longer brings time
8647 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8649 (split_edge): Likewise.
8651 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8654 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8655 * cfgrtl.c: Include insn-config.h
8656 (split_block) Dirtify block in presence of conditional execution
8658 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8660 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8661 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8662 (function_arg): Constify CUMULATIVE_ARGS.
8663 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8664 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8665 (UNITS_PER_DOUBLE): New macro.
8666 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
8667 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
8668 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
8669 fp_regs and stack_words.
8670 (EABI_FLOAT_VARARGS_P): New macro.
8671 * config/mips/mips.c (struct mips_arg_info): New.
8672 (mips_arg_info): New function.
8673 (function_arg_advance): Use it. Add adjustment instructions here
8674 rather than in function_arg.
8675 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
8676 for VOIDmode at the beginning of the function.
8677 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
8678 (function_arg_pass_by_reference): Likewise.
8679 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8680 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8681 (mips_va_start): Likewise. Use the new stack_words field of
8682 CUMULATIVE_ARGS to set up overflow area. Reformat.
8683 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
8684 doubles and other types, aligning the overflow pointer for non-doubles
8685 too. Remove some code duplication. Replace hard-coded constants.
8687 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8689 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8690 (CLASS_UNITS): Undefine.
8691 (CLASS_MAX_NREGS): Use FP_INC.
8692 * config/mips/mips.c (compute_frame_size): Likewise.
8693 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8695 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8697 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8698 prototype, and handle lexing numbers and identifiers.
8699 (parse_identifier): Update to new form of parse_slow.
8700 (parse_number): Fast path only, use parse_slow otherwise.
8701 (_cpp_lex_direct): Update calls to parse_number.
8703 2002-03-21 DJ Delorie <dj@redhat.com>
8705 * bb-reorder.c (make_reorder_chain_1): Protect against
8706 when redundant edges are omitted.
8707 * predict.c (dump_prediction): Likewise.
8709 2002-03-21 Richard Henderson <rth@redhat.com>
8712 * fixinc/inclhack.def (solaris_stdio_tag): New.
8713 * fixinc/fixincl.x: Regenerate.
8715 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8718 * c-typeck.c (process_init_element): Flag non-static
8719 initialization of a flexible array member as illegal.
8721 2002-03-22 Alan Modra <amodra@bigpond.net.au>
8723 * config/rs6000/t-linux64: New.
8724 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8725 t-ppccomm. Use t-rs6000 and t-linux64.
8726 (powerpc64-*-gnu* <tmake_file>): Likewise.
8727 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8728 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8729 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8731 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
8733 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8734 flag_really_no_inline instead of optimize == 0.
8736 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8738 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8740 * flags.h (flag_really_no_inline): New.
8742 * c-common.c (c_common_post_options): Initialize
8743 flag_really_no_inline.
8745 * toplev.c (flag_really_no_inline): New.
8747 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8749 * config/avr/avr.md (length): Fix length computation for
8750 conditional branches.
8752 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
8754 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8755 sdbout.o, profile.o): Update.
8756 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8758 * c-common.h (gettags): Move here from tree.h.
8759 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8760 insert_block, getdecls, kept_level_p, global_bindings_p): New.
8761 * dbxout.c (dbxout_init): Use getdecls langhook.
8762 * expr.c (expand_expr): Use insert_block langhook.
8763 * fold-const.c: Include langhooks.h.
8764 (fold_range_test, fold_binary_op_with_conditional_arg,
8765 fold): Use global_bindings_p langhook.
8766 * integrate.c (expand_inline_function): Use insert_block langhook.
8767 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8768 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8769 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8770 LANG_HOOKS_GETDECLS): New.
8771 (LANG_HOOKS_INITIALIZER): Update.
8772 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8774 * langhooks.h (struct lang_hooks_for_decls): New.
8775 (struct lang_hooks): Update.
8776 * profile.c: Include langhooks.h.
8777 (output_func_start_profiler): Use new langhooks.
8778 * sdbout.c: Include langhooks.h.
8779 (sdbout_init, sdbout_finish): Use getdecls langhook.
8780 * stmt.c: Include langhooks.h.
8781 (expand_fixup, fixup_gotos): Use new langhooks.
8782 * stor-layout.c: Include langhooks.h.
8783 (variable_size): Use global_bindings_p langhook.
8784 * toplev.c (compile_file): Use getdecls langhook.
8785 * tree-inline.c (remap_block): Use insert_block langhook.
8786 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8787 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8789 2002-03-21 Richard Henderson <rth@redhat.com>
8791 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8792 constants in .data when -fpic.
8794 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8796 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8799 2002-03-21 Tom Tromey <tromey@redhat.com>
8801 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
8803 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8805 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8807 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8809 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8810 Richard Henderson <rth@redhat.com>
8813 * c-common.c (c_expand_expr): Preserve result of a statement
8814 expression if needed.
8816 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8819 * genrecog.c (maybe_both_true_mode): Remove.
8820 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8821 * machmode.def (Pmode): Likewise.
8823 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
8825 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8826 (nonlocal_mentioned_p_1): New function.
8827 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8828 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8829 (mark_constant_function): Recognize pure functions.
8830 * rtl.h (global_reg_mentioned_p): New prototype.
8831 * rtlanal.c (global_reg_mentioned_p,
8832 global_reg_mentioned_p_1): New function.
8834 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8836 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8838 * fixinc/fixincl.x: Regenerate.
8840 2002-03-20 Jason Merrill <jason@redhat.com>
8842 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8844 2002-03-20 Michael Meissner <meissner@redhat.com>
8846 * doc/invoke.texi (Optimize Options): Document that -O2 sets
8849 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8851 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
8852 ".literal_position" directive before the constant pool.
8854 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8856 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
8857 Add Craig Rodrigues.
8858 Add Brad Lucier to testers.
8860 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8863 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
8865 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
8866 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
8867 instead of insn_extract.
8869 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8872 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
8874 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
8875 stmt if some case has been output.
8877 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8880 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
8881 movsfcc_1, movdfcc_1): Add %O2.
8882 * config/i386/i386.c (print_operand): Handle %ON.
8883 Print . before float condition codes in Sun as cmov syntax.
8884 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
8885 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
8888 2002-03-20 Philip Blundell <pb@nexus.co.uk>
8890 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
8891 return instruction if PC was popped.
8893 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8895 * config/xtensa/xtensa.md: Remove unused type attributes.
8896 (adddi_carry, subddi_carry): Change type attribute to "multi".
8898 2002-03-19 Dale Johannesen <dalej@apple.com>
8900 PR optimization/5999, middle-end/5731
8901 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
8902 multiplications by reciprocals.
8904 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
8906 * Makefile.in: Update.
8907 * c-common.c: Include langhooks.h.
8908 (inline_forbidden_p): Use new hook.
8909 * diagnostic.c: Include langhooks.h.
8910 (format_with_decl, announce_function,
8911 default_print_error_function): Use new hook.
8912 * dwarf2out.c (dwarf2_name): Use new hook.
8913 * function.c: Include langhooks.h.
8914 (init_function_start): Use new hook.
8915 * langhooks-def.h (lhd_decl_printable_name): New.
8916 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
8917 (LANGHOOKS_INITIALIZER): Update.
8918 * langhooks.c (lhd_decl_printable_name): New.
8919 * langhooks.h (struct lang_hooks): New hook.
8920 * toplev.c (decl_name, decl_printable_name): Remove.
8921 (open_dump_file): Use new hook.
8922 (process_options): Remove old hook.
8923 * tree.h (decl_printable_name): Remove.
8925 * objc-act.c (objc_init): Remove old hook.
8926 (objc_printable_name): Export.
8927 * objc-act.h (objc_printable_name): New.
8928 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
8930 2002-03-19 Jim Blandy <jimb@redhat.com>
8932 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
8933 the start_source_file debug hook, not the current line number.
8935 2002-03-19 Richard Henderson <rth@redhat.com>
8937 * flow.c (EH_USES): Provide default.
8938 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
8939 * doc/tm.texi (EH_USES): New.
8941 * config/ia64/ia64.c (ia64_eh_uses): New.
8942 * config/ia64/ia64-protos.h: Update.
8943 * config/ia64/ia64.h (EH_USES): New.
8945 2002-03-19 Richard Henderson <rth@redhat.com>
8947 * varasm.c (output_constant_def): Fix stupid typo.
8949 2002-03-19 Richard Henderson <rth@redhat.com>
8952 * except.c (current_function_has_exception_handlers): New.
8953 * except.h: Declare it.
8954 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
8955 Combine tests that disable all sibcalls for the function.
8957 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
8959 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
8962 2002-03-19 Richard Henderson <rth@redhat.com>
8965 * config/ia64/ia64.c: Revert 2002-03-01 patch.
8966 * config/ia64/ia64.h (INIT_EXPANDERS): New.
8968 2002-03-19 Jim Blandy <jimb@redhat.com>
8970 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
8971 name, even if the replacement list contains no tokens, as required
8974 2002-03-19 Jason Merrill <jason@redhat.com>
8976 * varasm.c (globalize_decl): Get the name from the RTL, not
8977 DECL_ASSEMBLER_NAME.
8979 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
8981 2002-03-19 Bob Wilson <bob.wilson@acm.org>
8983 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
8984 subdi_carry): Define.
8986 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8988 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
8989 about -fpic/-fPIC if extra_warnings set.
8991 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8993 * expr.c (expand_expr): Sign-extend CONST_INT generated from
8994 TREE_STRING_POINTER.
8995 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
8997 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8999 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9000 in favor of SP if FRAME_POINTER_REQUIRED is false.
9002 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
9004 * emit-rtl.c (gen_int_mode): New function.
9005 * rtl.h: Prototype for it.
9006 * combine.c (make_extraction, simplify_comparison), expmed.c
9007 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9008 (convert_modes, store_field), optabs.c (expand_fix),
9009 simplify-rtx.c (neg_const_int, simplify_unary_real),
9011 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9012 Use it instead of GEN_INT (trunc_int_for_mode (...)).
9014 2002-03-19 Jakub Jelinek <jakub@redhat.com>
9017 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9018 convert_parm_for_inlining.
9019 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9021 * langhooks-def.h: Likewise.
9022 * objc/objc-lang.c: Likewise.
9023 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9025 * tree-inline.c (initialize_inlined_parameters):
9026 Call convert_parm_for_inlining lang hook if needed.
9027 * c-typeck.c (c_convert_parm_for_inlining): New function.
9028 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9030 2002-03-18 Mark Mitchell <mark@codesourcery.com>
9032 * calls.c (precompute_arguments): Do not assume that temporaries
9033 can be destroyed after expanding the argument.
9034 (expand_call): Likewise.
9036 2002-03-15 Eric Christopher <echristo@redhat.com>
9038 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9039 Fix register preference on last change.
9040 * config/mips/mips.c (mips_return_in_memory): New function.
9041 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9042 * config/mips/mips-protos.h: Declare.
9043 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9044 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9046 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
9048 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9050 (anddi3, iorsi3): Likewise.
9052 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9053 use %gprel for symbols that are going to be placed in linkonce
9056 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9057 RETURN_ADDRESS_POINTER_REGNUM to $ra.
9058 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9059 not needed. Disregard leaf_function_p().
9060 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9061 mips16 frame pointer.
9062 * config/mips/mips.md (store ra): Only to small SP offsets.
9063 2001-08-22 Graham Stott <grahams@redhat.com>
9064 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9065 return a REG rtx for the return address register.
9067 2002-03-18 Bob Wilson <bob.wilson@acm.org>
9069 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9070 constant-pool addresses as "mode-dependent".
9071 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9073 2002-03-18 Jakub Jelinek <jakub@redhat.com>
9076 * expr.c (emit_group_load): Use extract_bit_field if
9077 needed for CONCAT arguments.
9079 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
9082 * arm.md (tablejump): Make this a define_expand. For PIC add the
9083 offset to the base of the table.
9084 (thumb_tablejump): Matcher for Thumb tablejump insn.
9085 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9086 as the difference of two labels.
9087 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9088 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9090 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9091 * arm.c (get_jump_table_size): If the table is not in the text
9092 section, return zero.
9094 2002-03-18 Bernd Schmidt <bernds@redhat.com>
9096 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9098 (arm_reload_out_hi): Use gen_lowpart instead of
9099 gen_rtx_SUBREG to access QImode components.
9100 * config/arm/arm.md: Disable zero_extend split for QImode
9101 subregs in BIG_ENDIAN mode.
9102 (storehi_bigend): Match use of least significant byte.
9103 (storeinthi): Remove extraneous SUBREG.
9104 Add missing construction of operands[2].
9105 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9106 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9107 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9109 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
9111 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9114 2002-03-17 Richard Henderson <rth@redhat.com>
9116 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9119 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9121 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9122 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9124 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9126 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9128 * predict.c (estimate_bb_frequencies): Delete unused variables.
9130 2002-03-17 Richard Henderson <rth@redhat.com>
9132 * config/ia64/ia64.c (ia64_attribute_table): Move before
9133 targetm definition. Make static.
9135 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9137 * c-common.h (yyparse, c_common_parse_file): New.
9138 * c-lang.c: Include c-common.h.
9139 (LANG_HOOKS_PARSE_FILE): Redefine.
9140 * c-lex.c: Include c-common.h.
9141 (yyparse): Rename c_common_parse_file. Call yyparse.
9142 * c-parse.in (yyparse): Remove macro.
9143 * c-tree.h (yyparse_1): Remove.
9144 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9145 (LANG_HOOKS_INITIALIZER): Update.
9146 * langhooks.h (struct lang_hoooks): New hook parse_file.
9147 * toplev.c (compile_file): Use parse_file hook.
9148 * tree.h (yyparse): Remove.
9149 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9151 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9153 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9154 float_truncate, not fix.
9155 ("*truncdfsf2_real"): Ditto.
9156 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9158 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9160 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9162 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9163 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9164 where appropriate. Make the second reference to
9165 leaf_function_p a function call, as intended. Reindented.
9167 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9168 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9170 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9171 add register to non-constant into sp.
9173 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9174 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9175 (mips16_gp_pseudo_rtx): Lose.
9176 (INIT_EXPANDERS): Deleted.
9177 * config/mips/mips.c (mips_init_machine_status): New.
9178 (mips_free_machine_status): New.
9179 (mips_mark_machine_status): New.
9180 (override_options): Set them.
9181 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9182 (struct machine_function): ... new. Replaced all references.
9183 (mips_add_gc_roots): Don't mark them.
9184 (embedded_pic_fnaddr_reg): New, extracted from...
9185 (embedded_pic_offset): ... here.
9186 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9189 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9191 * cppinit.c: Revert -MD removal.
9193 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9195 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9196 soft registers by default for 68HC12.
9197 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9198 when compiling with -fomit-frame-pointer.
9199 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9200 (expand_epilogue): Likewise.
9201 (m68hc11_gen_rotate): Use exg when rotating by 8.
9203 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9205 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9206 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9207 (splits): Remove unused add splits.
9208 ("*addhi3_68hc12"): Tune constraints.
9209 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9210 constant fits in 8-bits and D is dead use abx/aby instructions.
9211 ("*addhi3"): Remove extern declaration of ix_reg.
9212 ("*subsi3"): Optimize and provide new split.
9213 ("subhi3"): Cleanup.
9214 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9215 (arith splits): For 68hc12 save the address register on the stack
9216 and do the arithmetic operation with a pop.
9218 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9220 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9221 allocating QImode in address registers.
9222 ("*movqi_m68hc11"): Likewise.
9224 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9226 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9228 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9230 * cppinit.c (print_help): Display -MD and -MMD.
9231 Don't display usage string. Update assertion syntax and
9233 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9234 (cpp_handle_option): Update.
9236 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9238 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9239 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9240 and define it so that regardless of target CPU size,
9241 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9242 of "int" rather than "long."
9244 2002-03-15 Richard Henderson <rth@redhat.com>
9246 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9249 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9251 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9252 ("tstqi" split): Avoid using memory for tstqi on address register.
9253 (splits): Remove constraints.
9254 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9255 ("cmpdf", "cmpsf"): Remove since not used.
9256 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9257 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9259 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9261 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9262 ("neghi2"): Tighten constraints.
9263 ("one_cmplsi2"): Optimize and simplify split.
9264 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9266 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9268 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9269 and split of AND operation to clear the upper bits.
9270 ("*logicalsi3_zextqi"): Likewise.
9271 ("*logicallhi3_zexthi_ashift8"): Likewise.
9272 ("*logicalsi3_silshr16"): Likewise.
9273 ("logicalsi3_silshl16"): Likewise.
9274 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9276 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9278 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9279 (m68hc11_indirect_p): New function.
9280 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9281 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9283 (asm_print_register): Likewise.
9284 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9285 (m68hc11_indirect_p): Declare.
9286 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9287 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9288 (TARGET_SWITCHES): New option -mrelax.
9289 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9291 ("iorsi3", "xorsi3"): Likewise.
9292 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9293 ("*andhi3_mem"): New to handle destination in memory with bclr
9294 and a scratch register.
9295 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9296 ("*andhi3_const"): New when operand2 is constant.
9297 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9298 ("*andhi3_gen"): Cleanup of the old "andhi3".
9299 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9300 ("xorqi3"): Update constraints.
9302 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9304 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9305 for reg_equiv_memory_loc when the operand is a register that does
9306 not get a hard register (stack location).
9307 (tst_operand): After reload, accept all memory operand.
9308 (symbolic_memory_operand): Fix detection of symbolic references.
9309 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9310 accept symbols and any constant.
9312 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9314 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9315 note on the insn that sets the soft frame register.
9316 (must_parenthesize): ix and iy are also reserved names.
9317 (print_operand_address): One more place where parenthesis are required
9318 to avoid confusion with register names.
9319 (m68hc11_gen_movhi): Allow push of stack pointer.
9320 (m68hc11_check_z_replacement): Fix handling of parallel with a
9322 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9323 the replacement register is.
9324 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9325 and D8_REGS classes.
9326 (MODES_TIEABLE_P): All modes are tieable except QImode.
9328 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9330 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9331 (___subdi3): Likewise.
9332 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9333 (__map_data_section): Optimize 68hc11 case.
9335 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9337 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9338 than a shift to avoid adding a register with itself.
9339 (m68hc11_memory_move_cost): Take into account NO_REGS.
9340 (m68hc11_register_move_cost): Update and use memory move cost
9342 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9343 it gives more opportunities to cse to optimize.
9344 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9345 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9347 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9349 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9350 * c-common.def (CLEANUP_STMT): New tree node.
9351 * c-common.h (CLEANUP_DECL): New macro.
9352 (CLEANUP_EXPR): Likewise.
9353 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9354 * expr.c (expand_expr): Tidy.
9355 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9356 * tree-inline.c (initialize_inlined_parameters): Clean up
9357 new local variables.
9359 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9362 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9363 before movrXX only, use reg_overlap_mentioned_p.
9364 Only special case NE if just one insn can be generated.
9366 2002-03-15 Jason Merrill <jason@redhat.com>
9368 * varasm.c (assemble_variable): Call resolve_unique_section before
9369 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9372 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9375 * arm.md (split pattern for thumb shiftable immediates): Add comment
9376 explaining non-obvious test.
9378 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9381 * arm.md (movaddr, movaddr_insn): Delete.
9383 2002-03-15 Jason Merrill <jason@redhat.com>
9385 * toplev.c (wrapup_global_declarations): Clarify variable handling.
9386 -fkeep-static-consts doesn't apply to comdats.
9388 2002-03-14 Richard Henderson <rth@redhat.com>
9390 * c-decl.c: Include c-pragma.h.
9391 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9392 (finish_function): Tidy.
9393 * c-pragma.c: Include c-common.h.
9394 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9395 (handle_pragma_weak): Use them.
9396 (init_pragma): Register pending_weaks.
9397 * c-pragma.h (maybe_apply_pragma_weak): Declare.
9398 * print-tree.c (print_node): Print DECL_WEAK.
9399 * varasm.c (mark_weak_decls): Remove.
9400 (remove_from_pending_weak_list): Remove.
9402 (asm_emit_uninitialised): Call globalize_decl for weak commons.
9403 (weak_decls): Make a tree_list.
9404 (declare_weak): Cons weak_decls directly.
9405 (globalize_decl): Remove weak_decls elements directly.
9406 (weak_finish): Simplify weak_decls walk. Don't weaken unused
9407 symbols. Don't pretend to handle aliases.
9408 (init_varasm_once): Update weak_decls registry.
9409 * Makefile.in: Update dependencies.
9411 2002-03-14 Richard Henderson <rth@redhat.com>
9414 * config/ia64/ia64.c: Include tm_p.h last.
9415 (gen_nop_type): Remove duplicate definition.
9416 (cycle_end_fill_slots): Set sched_data for second L slot.
9417 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9418 (nop_cycles_until): Fix typos.
9420 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9422 PR optimization/5891
9423 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9425 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9427 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9428 descriptors correctly.
9430 2002-03-14 Michael Meissner <meissner@redhat.com>
9432 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9433 100, allowing MAX_UNROLLED_INSNS to be overridden.
9435 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9438 * unroll.c (params.h): Include.
9439 (MAX_UNROLLED_INSNS): Delete, now in params.h.
9441 * doc/invoke.texi (--param max-unroll-insns): Document.
9443 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9445 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9447 * arm.md: Fix warnings about constraints in peepholes and splits.
9449 2002-03-14 Zack Weinberg <zack@codesourcery.com>
9451 * cpphash.h (struct lexer_state): Remove line_extension member.
9452 * cpplib.c (dequote_string, do_linemarker): New functions.
9453 (linemarker_dir): New data object.
9454 (DIRECTIVE_TABLE): No longer need to interpret #line in
9455 preprocessed source. Delete obsolete comment about return
9457 (end_directive, directive_diagnostics, _cpp_handle_directive):
9458 Don't muck with line_extension.
9459 (directive_diagnostics): No need to issue warnings for
9461 (_cpp_handle_directive): Issue warnings for linemarkers here,
9462 when appropriate. Dispatch linemarkers to do_linemarker, not
9464 (do_line): Code to handle linemarkers split out to do_linemarker.
9465 Convert escape sequences in filename argument, both places.
9467 * cppmacro.c (quote_string): Rename cpp_quote_string and
9468 export. All callers changed.
9469 * cpplib.h (cpp_quote_string): Prototype.
9470 * cppmain.c (print_line): Call cpp_quote_string on to_file
9473 * doc/cpp.texi: Document that escapes are now interpreted in
9474 #line and in linemarkers, and that non-printing characters are
9475 converted to octal escapes when linemarkers are generated.
9477 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
9479 * emit-rtl.c (try_split): Use delete_insns.
9480 * recog.c (split_all_insns): Fix terminating condition.
9482 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9483 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9486 * arm.c (arm_output_epilogue): Fix floating-point register save
9487 adjustment when using a frame pointer.
9489 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
9491 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9492 * config/mips/mips.c (compute_frame_size): Retrofit them here.
9493 (save_restore_insns, mips_expand_epilogue): And here.
9494 (build_mips16_call_stub): And here.
9495 (mips_function_value): Use the new macros to decide whether a single
9496 or complex float can be returned in floating-point registers. Return
9497 a parallel rtx in the complex case.
9499 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
9501 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9502 call after liveness analysis.
9504 * recog.c (split_insn): Use delete_insn_and_edges.
9506 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9507 instructions to have branch prediction notes.
9508 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9510 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
9512 * configure.in: Don't pass -Wno-long-long to a ADA compiler
9513 that doesn't support it.
9514 * configure: Regenerate.
9516 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9519 * config/sparc/sparc.md (normal_branch, inverted_branch,
9520 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9521 inverted_fp_branch): Adjust calls to output_cbranch.
9522 Set length attribute.
9523 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9524 output_v9branch. Set length attribute.
9525 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9527 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9528 (output_cbranch): Likewise. Handle far branches.
9529 (output_v9branch): Handle far branches.
9530 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9532 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9533 noov_compare64_op predicates.
9535 2002-03-13 Jason Merrill <jason@redhat.com>
9537 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9538 into the function and constify it.
9539 * gthr-dce.h, gthr-solaris.h: Likewise.
9541 2002-03-13 David Edelsohn <edelsohn@gnu.org>
9543 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9544 * config/rs6000/rs6000.c (rs6000_va_arg): Use
9545 std_expand_builtin_va_arg if not ABI_V4.
9547 2002-03-13 Jason Merrill <jason@redhat.com>
9549 * varasm.c (globalize_decl): New fn.
9550 (assemble_start_function): Use it.
9551 (asm_emit_uninitialized): Use it.
9552 (assemble_alias): Use it.
9553 (assemble_variable): Use it.
9555 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
9557 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9558 2002-03-12 internal visibility change.
9559 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9560 visibility into SYMBOL_REF_FLAG.
9562 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
9564 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9565 VOIDmode operand. Add compile-time optimization for constant results.
9567 2002-03-12 Jason Merrill <jason@redhat.com>
9569 * c-typeck.c (convert_for_assignment): Don't allow conversions
9570 between pointers and references. Only allow lvalues to convert to
9573 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
9575 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9576 before prologue, to avoid scheduling problems.
9578 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9580 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9581 (ELIMINABLE_REGS): Add sfp->sp.
9582 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9584 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9586 PR optimization/5892
9587 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9589 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9591 * loop.c (basic_induction_var): Don't call convert_modes if mode
9592 classes are different.
9594 2002-03-12 Richard Henderson <rth@redhat.com>
9596 PR optimization/5901
9597 * function.c (reposition_prologue_and_epilogue_notes): Position
9598 the markers after/before the last/first insn not deleted.
9600 2002-03-12 Richard Henderson <rth@redhat.com>
9602 PR optimization/5878
9603 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9604 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9605 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9607 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9608 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9609 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9611 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9612 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9613 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9614 also. Don't set it if not flag_pic.
9615 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9616 to be INVALID_REGNUM when not used.
9618 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
9620 * expmed.c (store_bit_field): Reset alias set for memory.
9621 (extract_bit_field): Same.
9623 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9625 * c-common.c (c_tree_code_type, c_tree_code_length,
9626 c_tree_code_name, add_c_tree_codes): Delete.
9627 * c-common.h (add_c_tree_codes): Delete.
9628 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9630 * c-objc-common.c (c_objc_common_init): Don't call
9631 add_c_tree_codes, instead set lang_unsafe_for_reeval.
9632 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9633 objc_tree_code_name, add_objc_tree_codes): Delete.
9634 (objc_init): Don't call add_objc_tree_codes.
9635 * objc/objc-lang.c (tree_code_type, tree_code_length,
9636 tree_code_name): Define.
9637 * toplev.c (lang_independent_init): Don't set
9638 tree_code_length[IDENTIFIER_NODE].
9639 * tree.c (tree_code_type, tree_code_length, tree_code_name):
9640 Delete definitions, moved to language front-ends.
9641 * tree.def (IDENTIFIER_NODE): Hardwire the length.
9642 * tree.h (tree_code_type, tree_code_length, tree_code_name):
9644 (tree_code_length): Change type to unsigned char.
9646 2002-03-12 Richard Henderson <rth@redhat.com>
9648 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9649 internal visibility change.
9651 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9653 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9654 validize_mem() instead of change_address to avoid clobbering
9657 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
9659 * c-lex.h (position_after_whitespace): Remove.
9661 2002-03-12 Jakub Jelinek <jakub@redhat.com>
9663 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9664 (lex_string): Use unsigned char pointers.
9666 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9668 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9669 is not a valid memory_operand.
9671 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9673 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9674 * config/xtensa/lib1funcs.asm: Fix copyright to include
9675 special case for libgcc files.
9676 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9677 (__divsi3): Likewise.
9678 (__umodsi3): Likewise.
9679 (__modsi3): Likewise.
9680 * config/xtensa/lib2funcs.S: Fix copyright to include
9681 special case for libgcc files.
9683 2002-03-12 Tom Rix <trix@redhat.com>
9685 * collect2.c (resolve_lib_name): Move outside of
9686 OBJECT_FORMAT_COFF ifdef.
9687 (ignore_library): Same.
9689 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9691 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9693 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9695 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9696 to function_section before writing out the constant pool.
9698 2002-03-12 David Edelsohn <edelsohn@gnu.org>
9700 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9702 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9704 2002-03-12 Alan Modra <amodra@bigpond.net.au>
9706 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9710 (cmpsi splitter): Likewise.
9711 (modsi3): Fail if <= 0.
9712 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9713 redundant test when HOST_BITS_PER_WIDE_INT != 32.
9714 (reg_or_sub_cint64_operand): Likewise.
9715 (num_insns_constant_wide): Optimize sign extension.
9716 (rs6000_legitimize_address): Likewise.
9718 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9720 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9721 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9723 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9725 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9726 address calculation.
9728 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9730 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9731 scratch register to DImode / TImode.
9732 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9733 register used does not overlap the target.
9735 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9737 * Makefile.in (debug.o): Depend on debug.h.
9738 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9739 * debug.c (do_nothing_debug_hooks): Likewise.
9740 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9741 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9742 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9743 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9744 * dwarfout.c (dwarf_debug_hooks): Likewise.
9745 * integrate.c (output_inline_function): Likewise.
9746 * objc/objc-act.c (synth_module_prologue): Likewise.
9747 * sdbout.c (sdb_debug_hooks): Likewise.
9748 * toplev.c (debug_hooks): Likewise.
9749 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9751 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9753 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9754 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9755 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9756 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9757 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9758 * defaults.h (POINTER_SIZE): Define.
9759 * doc/tm.texi (POINTER_SIZE): Document default.
9761 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9763 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9765 2002-03-11 Richard Henderson <rth@redhat.com>
9767 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9768 if rebuild_label_notes_after_reload.
9770 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
9772 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
9773 emit pic register load if "internal" visibility.
9774 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9775 (cris_expand_builtin_va_arg): Do all computations on trees.
9777 2002-03-11 Richard Henderson <rth@redhat.com>
9779 * rtlanal.c: Include recog.h.
9780 (keep_with_call_p): Fix thinko.
9781 * Makefile.in (rtlanal.o): Update dependencies.
9783 2002-03-11 Chris Meyer <cmeyer@gatan.com>
9785 * genflags.c (gen_insn): Use IS_VSPACE.
9786 * genoutput.c (output_insn_data): Likewise.
9787 (process_template): Likewise.
9789 2002-03-11 Richard Henderson <rth@redhat.com>
9791 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9793 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
9795 * Makefile.in: Update.
9796 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9797 Update documentation.
9798 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9799 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9801 2002-03-11 Zack Weinberg <zack@codesourcery.com>
9803 * Makefile.in: Give texi2pod its input file as a command line
9804 argument, not on stdin.
9806 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
9807 Daniel Berlin <dan@dberlin.org>
9809 C++ alias analysis improvement.
9810 * alias.c (record_component_aliases): Record aliases for base
9813 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
9815 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9817 2002-03-11 Douglas B Rupp <rupp@gnat.com>
9819 * toplev.c (vms_fopen): Remove, not needed.
9821 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9823 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9825 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9826 for FP, already done later.
9828 * toplev.c (debug_args): Add entry for VMS_DEBUG.
9829 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9831 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
9833 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9834 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9835 LARGEST_EXPONENT_IS_NORMAL for the given mode.
9836 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9837 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9838 (ediv, emul, eldexp, esqrt): Likewise.
9839 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9840 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9841 (saturate): New function.
9842 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9843 (make_nan): Use a saturation value instead of a NaN if
9844 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
9845 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
9846 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
9847 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
9848 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
9849 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
9850 !ROUND_TOWARDS_ZERO.
9851 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
9852 (ROUND_TOWARDS_ZERO): Document.
9854 2002-03-11 Andreas Jaeger <aj@suse.de>
9856 * cfg.c (dump_flow_info): Remove unused variable.
9858 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
9860 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
9861 computations on trees.
9863 2002-03-10 Richard Henderson <rth@redhat.com>
9866 * reload.c (copy_replacements_1): New.
9867 (copy_replacements): Use it to recurse through the rtx.
9869 2002-03-10 Richard Henderson <rth@redhat.com>
9871 * loop.c (strength_reduce): Compute number of iterations as
9872 unsigned HOST_WIDE_INT.
9874 2002-03-10 Richard Henderson <rth@redhat.com>
9876 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
9877 to move away from the end of the block.
9879 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
9881 PR preprocessor/5899
9882 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
9884 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9886 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
9888 * attribs.c (decl_attributes): Fix signed/unsigned warning.
9890 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
9892 * config/mmix/mmix.c: Improve comments.
9893 (mmix_target_asm_function_prologue): Drop variable
9894 empty_stack_frame. Don't allocate unused slot above fp.
9895 (mmix_target_asm_function_epilogue): Mirror prologue changes.
9896 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
9897 brace in first column.
9898 (enum reg_class): Ditto.
9899 (FIRST_PARM_OFFSET): Now 0.
9900 (USER_LABEL_PREFIX): Remove #if 0:d definition.
9902 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9904 * combine.c (make_extraction): Fix error in last change.
9906 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9908 * c4x.c (c4x_fp_reglist): Const-ify.
9909 * cris.c (cris_print_operand): Likewise.
9910 * i386.c (ix86_va_arg): Likewise.
9911 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
9912 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
9913 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
9914 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
9915 * mcore.h (regno_reg_class): Likewise.
9916 * mips.c (gen_int_relational): Likewise.
9917 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
9918 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
9919 * pdp11.c (move_costs): Likewise.
9920 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
9921 * s390.c (s390_branch_condition_mnemonic, regclass_map):
9923 * s390.h (regclass_map): Likewise.
9924 * sh.c (shift_amounts): Likewise.
9925 * sh.md (rotlsi3): Likewise.
9927 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9929 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
9930 (ne0+5): Use new clobber to generate proper shift pattern.
9931 Patch by Michael Matz <matz@kde.org>.
9933 2002-03-09 Andreas Schwab <schwab@suse.de>
9935 * gcc.c (validate_all_switches): Also handle `%W{...}'.
9937 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9939 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
9941 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9944 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
9945 even for non-representable constants.
9947 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9949 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
9950 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
9951 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
9952 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
9953 (pop_function_context): Compute MAY_SHARE parameter for
9955 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
9956 (gen_mem_addressof): Call fixup_var_refs with new parm.
9958 * combine.c (make_extraction): Don't make extension of CONST_INT.
9960 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9962 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
9963 in o32 and o64 ABIs.
9964 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
9965 but getting fixed-size structs passed in registers regardless of
9966 padding in o32 and o64 ABIs.
9968 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
9969 offset before loading address of argument passed by transparent
9972 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
9974 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
9976 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9978 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
9979 marker such that registers after it are saved.
9981 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9983 * sparc.c (arith_4096_operand): Fix error in last change.
9985 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9987 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
9990 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9992 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
9995 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9997 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
9999 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
10001 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10002 removed; fix return value.
10003 * combine.c (combine_instructions): Dirtify blocks where we failed to
10004 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10005 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10007 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10009 * gcse.c (insert_insn_end_bb): Fix typo in last change.
10011 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
10013 * recog.c (peephole2_optimize): Re-distribute EH edges.
10015 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
10017 * expr.c (expand_expr): Use unsave lang hook.
10018 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10019 (LANG_HOOKS_INITIALIZER): Update.
10020 * langhooks.h (struct lang_hooks): New hook unsave.
10021 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10022 (unsave_expr_1): Remove unused lang_unsave_expr_now.
10023 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
10024 (unsave_expr_now): Remove.
10025 * tree.h (unsave_expr_now, lang_unsave,
10026 lang_unsave_expr_now): Remove.
10029 2002-03-08 Andreas Jaeger <aj@suse.de>
10031 * flow.c (propagate_block_delete_insn): Remove unused variable.
10033 2002-03-08 Kazu Hirata <kazu@hxi.com>
10035 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10036 insn length for memory load/store.
10038 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
10040 * doc/install.texi (--with-libiconv-prefix): Document.
10042 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
10044 * doc/sourcebuild.texi: Fix typo.
10046 2002-03-08 Jakub Jelinek <jakub@redhat.com>
10049 * builtins.c (std_expand_builtin_va_arg): Do all computations on
10052 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10054 * rtl.c (copy_most_rtx): Move from here ...
10055 * emit-rtl.c (copy_most_rtx): ... to here.
10057 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10059 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10060 SUBTARGET_CPP_SIZE_SPEC.
10061 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10063 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10065 2002-03-07 Matt Hiller <hiller@redhat.com>
10067 * gensupport.c (first_dir_md_include): Renamed from include;
10068 change all references.
10069 (last_dir_md_include): Renamed from last_include; change all
10071 (init_md_reader): Unconditionally initialize base_dir whether or
10072 not filename is a relative path.
10074 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
10076 * config/fp-bit.c (_unord_f2): Compile it in even if
10077 US_SOFTWARE_GOFAST is enabled.
10079 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10080 NULL_RTX. Set all HFmode operations as NULL_RTX.
10081 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10082 NULL_RTX, try reversing the comparison and the operands.
10084 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10086 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10087 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10090 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
10092 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10094 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10096 * basic-block.h (fixup_abnormal_edges): Declare.
10097 * reload1.c (fixup_abnormal_edges): New function.
10098 * reg-stack.c (convert_regs): Use it.
10100 * gcse.c (insert_insn_end_bb): Handle trapping insns.
10102 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10104 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
10106 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10107 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10108 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10109 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10110 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10111 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10112 unless x and y could be infinite.
10113 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10114 Check that the common type of both arguments is a real, even for
10115 targets without unordered comparisons. Allow an integer argument
10116 to be compared against a real.
10117 (expand_tree_builtin): Use expand_unordered_cmp.
10118 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10119 * cse.c (fold_rtx): Likewise. Fix indentation.
10120 * fold-const.c (fold_real_zero_addition_p): New.
10121 (fold): Use it, and the new HONOR_... macros.
10122 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10123 * jump.c (reversed_comparison_code_parts): After searching for
10124 the true comparison mode, use HONOR_NANS to decide whether it
10125 can be safely reversed.
10126 (reverse_condition_maybe_unordered): Remove IEEE check.
10127 * simplify-rtx.c (simplify_binary_operation): Use the new macros
10128 to decide which simplifications are valid. Allow the following
10129 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10130 and (a - -b) to (a + b).
10131 (simplify_relational_operation): Use HONOR_NANS.
10132 * doc/tm.texi: Document the MODE_HAS_... macros.
10134 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10136 * combine.c (simplify_comparison): If simplifying a logical shift
10137 right and compare with constant, force the comparison to unsigned.
10139 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
10141 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10143 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10145 (alt_reg_names): Remove % for vrsave.
10147 2002-03-06 Richard Henderson <rth@redhat.com>
10149 PR optimization/5844
10150 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
10151 if used indicates we've already emitted one copy of an operand.
10152 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10153 (gen_split): Supply a non-null used.
10155 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10157 * reload1.c (reload): Unshare all rtl after reload is done.
10159 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10160 but simply fail if the expression is too complex to simplify.
10161 (simplify_gen_binary): Handle simplify_plus_minus failures.
10163 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10165 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10166 consistently call delete_trivially_dead_insns after CSE and GCSE;
10167 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10168 after liveness2; update comment in last crossjumping.
10169 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10171 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10173 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10174 after completing fast dead code elimination.
10176 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10179 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10181 * version.c: Fix misplaced leading blanks on first line.
10183 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10185 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10187 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10189 * cfgcleanup.c (mentions_nonequal_regs): New function.
10190 (thread_jump): Use it.
10191 * toplev.c (rest_of_compilation): Run jump threading after
10194 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10196 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10199 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10201 * predict.c (estimate_bb_frequencies): Do not reload the
10202 frequencies from notes.
10204 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10206 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10207 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10209 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10210 delete_noop_moves): Return indeger.
10211 * flow.c (ndead): New variable.
10212 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10213 BB argument; update callers.
10214 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10215 (life_analysis): Do not call purge_all_dead_edges.
10216 (update_life_info): Return number of deleted insns; print statistics.
10217 (update_life_info_in_dirty_blocks): likewise.
10218 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10219 return number of insns deleted.
10221 * cse.c: Include timevar.h
10222 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10223 iterate until stabilizes; print statistics; return number of killed
10225 * Makefile.in: (cse.o): Add timevar.h dependency
10226 * rtl.h (delete_trivially_dead_insns): New.
10227 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10228 * toplev.c (rest_of_compilation): Update callers.
10230 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10231 (try_optimize_cfg): Do not update liveness.
10232 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10233 removal stabilizes; use delete_trivially_dead_insns.
10235 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10237 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10239 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10240 callbacks when processing assembly language.
10242 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10244 * pa.h (ASM_FILE_END): Define.
10245 * som.h (ASM_FILE_END): Delete.
10247 * pa.c (function_arg): Don't pass floats in general registers in
10248 indirect calls if TARGET_ELF32.
10250 2002-03-05 Richard Henderson <rth@redhat.com>
10252 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10254 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10256 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10258 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10260 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10261 -r command line. Don't hide any symbols if not building
10264 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10266 * cfg.c (dump_flow_info): Warn about profile mismatches.
10267 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10268 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10270 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10272 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10273 wide volatile memory by parts.
10275 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10277 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10280 2002-03-05 Richard Henderson <rth@redhat.com>
10282 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10284 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10286 * toplev.c (documented_lang_options): Document more
10287 language-specific options.
10288 * doc/invoke.texi (Warning Options): Correct documentation for
10289 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10290 * c-decl.c (c_decode_option): Use a table to handle warning options.
10292 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10294 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10295 parameter to mmix_encode_section_info.
10296 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10297 relocatably. Always produce ELF, not mmo if linking relocatably.
10298 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10299 first is non-zero, don't add symbol prefix.
10300 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10301 prototype accordingly.
10303 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10305 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10307 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10309 * configure.in: Increase required makeinfo version to 4.1.
10310 * configure: Regenerate.
10312 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10314 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10317 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10319 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10320 * doc/invoke.texi: Fix @math uses.
10322 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10324 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10327 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10329 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10330 (powerpc-*-eabisimaltivec*): Same.
10332 * config/rs6000/t-ppcendian: New.
10334 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10336 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10337 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10338 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10340 2002-03-03 Richard Henderson <rth@redhat.com>
10342 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10344 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10346 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10347 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10348 tree.c, config/m68k/m68k.c:
10349 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10350 REAL_ARITHMETIC blocks unconditional. Delete some further
10351 #ifdef blocks predicated on REAL_ARITHMETIC.
10352 * flags.h, toplev.c: Delete remaining references to
10353 flag_pretend_float.
10355 * doc/invoke.texi: Remove documentation of -fpretend-float.
10356 * doc/tm.texi: Describe the various REAL_* macros as provided by
10357 real.h, not by the target configuration files.
10359 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10360 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10361 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10362 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10363 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10364 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10365 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10366 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10367 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10368 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10369 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10370 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10371 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10372 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10373 config/xtensa/xtensa.h:
10374 Do not define, undefine, or mention in comments any of
10375 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10376 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10377 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10378 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10379 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10380 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10381 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10382 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10383 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10385 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10387 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10388 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10389 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10390 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10391 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10392 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10394 * defaults.h (BITS_PER_WORD): Define.
10395 * doc/tm.texi (BITS_PER_WORD): Document default value.
10397 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10398 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10399 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10401 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10403 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10404 lieu of explicit sizeof/sizeof.
10405 * i386.c (override_options, ix86_init_mmx_sse_builtins,
10406 ix86_expand_builtin): Likewise.
10407 * mips.c (mips_add_gc_roots): Likewise.
10408 * mmix.c (mmix_output_condition): Likewise.
10409 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10410 altivec_init_builtins): Likewise.
10411 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10412 * cppexp.c (Nsuff, parse_number): Likewise.
10413 * cppinit.c (builtin_array_end): Likewise.
10414 * gcc.c (n_default_compilers, process_command): Likewise.
10415 * genpreds.c (output_predicate_decls): Likewise.
10416 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10417 * lcm.c (N_ENTITIES): Likewise.
10418 * stor-layout.c (set_sizetype): Likewise.
10420 2002-03-03 Richard Henderson <rth@redhat.com>
10422 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10423 for types or labels.
10425 2002-03-03 Richard Henderson <rth@redhat.com>
10427 * c-decl.c (start_decl): Initialized variables are not common.
10429 2002-03-02 Per Bothner <per@bothner.com>
10431 * gcc.c (option_map): Suport new --bootclasspath option.
10432 --CLASSPATH is now just an alias for --classpath.
10434 2002-03-02 Richard Henderson <rth@redhat.com>
10436 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10437 load if "internal" visibility.
10438 * doc/extend.texi: Document visibility meanings.
10440 2002-03-02 Richard Henderson <rth@redhat.com>
10442 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10443 to functions as well.
10445 2002-03-02 Richard Henderson <rth@redhat.com>
10447 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10448 (handle_visibility_attribute): Don't call assemble_visibility.
10449 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10450 without asmspec. Invoke assemble_alias when needed.
10451 * varasm.c (maybe_assemble_visibility): New.
10452 (assemble_start_function, assemble_variable, assemble_alias): Use it.
10454 2002-03-02 Richard Henderson <rth@redhat.com>
10456 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10457 invoke ENCODE_SECTION_INFO with first call flag.
10459 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10460 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10461 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10462 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10463 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10464 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10465 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10466 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10467 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10468 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10469 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10470 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10471 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10472 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10473 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10474 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10475 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10476 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10477 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10478 config/sh/sh.h, config/sparc/sparc.h,
10479 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10480 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10481 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10482 FIRST argument. As needed, examine it and do nothing.
10484 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10485 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10486 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10488 * config/arm/t-pe (pe.o): Add dependencies.
10490 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10492 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10493 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10494 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10495 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10496 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10497 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10498 * defaults.h (BITS_PER_UNIT): Define.
10499 * doc/tm.texi (BITS_PER_UNIT): Document default value.
10501 2002-03-02 Kazu Hirata <kazu@hxi.com>
10503 * config/h8300/h8300-protos.h: Add a prototype for
10504 compute_a_shift_length.
10505 * config/h8300/h8300.c (h8300_asm_insn_count): New.
10506 (compute_a_shift_length): Likewise.
10507 (h8300_adjust_insn_length): Do not adjust insn length of shift
10509 * config/h8300/h8300.md (anonymous shift patterns): Use
10510 compute_a_shift_length.
10512 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10514 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10515 trunc_int_for_mode.
10517 * emit-rtl.c (offset_address): Call update_temp_slot_address.
10519 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10521 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10522 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10523 * flags.h (flag_zero_initialized_in_bss): Declare.
10524 * toplev.c (flag_zero_initialized_in_bss): New flag.
10525 (lang_independent_options): Add flag_zero_initialized_in_bss.
10526 * tree.c (initializer_zerop): New function.
10527 * tree.h (initializer_zerop): Declare.
10528 * varasm.c (assemble_variable): If we can emit bss, put zero
10529 initializers in the bss section.
10531 2002-03-02 Alan Modra <amodra@bigpond.net.au>
10533 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10534 like more than one symbol per .weak directive.
10536 2002-03-01 Richard Henderson <rth@redhat.com>
10538 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10539 adjust argument_pointer by pretend_args_size.
10540 (ia64_va_start): Adjust va_start address by -pretend_args_size.
10542 2002-03-01 Kazu Hirata <kazu@hxi.com>
10544 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10546 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
10548 * toplev.c (rest_of_compilation): Delete dead jumptables before
10550 * flow.c (delete_dead_jumptables): Make global.
10551 * rtl.h (delete_dead_jumptables): Declare.
10553 2002-03-01 David Edelsohn <edelsohn@gnu.org>
10555 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10556 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10557 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10559 2002-03-01 Kazu Hirata <kazu@hxi.com>
10561 * config/h8300/h8300-protos.h: Fix formatting.
10562 * config/h8300/h8300.c: Likewise.
10563 * config/h8300/h8300.h: Likewise.
10565 2002-03-01 Kazu Hirata <kazu@hxi.com>
10567 * config/h8300/h8300.c (print_operand): Support 16-bit
10568 constant addresses.
10569 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10571 2002-02-28 Richard Henderson <rth@redhat.com>
10573 * expmed.c (store_bit_field): Prevent generation of CONCATs;
10574 pun complex values as integers; use gen_lowpart instead of
10576 (extract_bit_field): Likewise.
10578 2002-03-01 Alan Modra <amodra@bigpond.net.au>
10579 David Edelsohn <edelsohn@gnu.org>
10581 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10582 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10583 (SUPPORTS_WEAK): Likewise.
10584 * output.h (add_weak): Add tree param.
10585 * varasm.c (add_weak): Likewise. Save decl.
10586 (struct weak_syms): Add decl field.
10587 (mark_weak_decls): New function.
10588 (init_varasm_once): ggc_add_root mark_weak_decls.
10589 (assemble_start_function): Use ASM_WEAKEN_DECL.
10590 (assemble_variable): Likewise.
10591 (assemble_alias): Likewise.
10592 (declare_weak): Pass decl to add_weak.
10593 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10594 (remove_from_pending_weak_list): Declare and define for
10596 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10597 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10598 * defaults.h (SUPPORTS_WEAK): Likewise.
10599 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10600 .weak for code sym. Do emit .size for descriptor sym.
10601 (ASM_DECLARE_FUNCTION_SIZE): Define.
10602 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10603 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
10604 .lglobl unless TARGET_XCOFF. Formatting fixes.
10605 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10606 .weak for code sym.
10607 (HANDLE_PRAGMA_WEAK): Remove.
10608 (ASM_WEAKEN_LABEL): Remove.
10609 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10611 2002-03-01 Jason Merrill <jason@redhat.com>
10613 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10614 (TARGET_EXPR_CLEANUP): New macro.
10616 2002-02-28 Steve Ellcey <sje@cup.hp.com>
10618 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10619 to take ptr_extend into account as third type of extension.
10620 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10621 fields used by SUBREG_PROMOTED_UNSIGNED_P.
10622 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10623 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10624 * calls.c (precompute_arguments): Use new macro.
10625 (expand_call): Ditto.
10626 * combine.c (nonzero_bits): Ditto.
10627 (record_promoted_value): Ditto.
10628 * expr.c (store_expr): Ditto.
10629 (expand_expr): Ditto.
10630 * function.c (assign_parms): Ditto.
10632 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
10634 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10635 override -shared and -shared-libgcc.
10637 2002-02-28 David O'Brien <obrien@FreeBSD.org>
10639 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10641 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
10644 2002-02-28 Richard Henderson <rth@redhat.com>
10646 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10647 4 cycle latency from MM producers.
10648 (ia64_internal_sched_reorder): Likewise with pipeline flush.
10650 2002-02-28 Jakub Jelinek <jakub@redhat.com>
10652 * mklibgcc.in: Don't use GNU make extension.
10654 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10656 * c-parse.in (STATIC): New terminal.
10657 (scspec): New non-terminal. Update productions accordingly.
10658 (program): Remove bogus ifc / end ifc.
10659 (array_declarator): Simplify production using STATIC.
10661 2002-02-28 Jim Meyering <meyering@lucent.com>
10663 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10664 \a still means TARGET_BELL.
10666 2002-02-28 Richard Henderson <rth@redhat.com>
10668 * haifa-sched.c (sched_emit_insn): New.
10669 (schedule_block): Use last_scheduled_insn to track last insn.
10670 * sched-int.h (sched_emit_insn): Prototype.
10671 * config/ia64/ia64.c (last_issued): Remove.
10672 (ia64_variable_issue): Don't set it.
10673 (nop_cycles_until): Use sched_emit_insn.
10675 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
10677 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10678 extended constants.
10680 2002-02-28 Kazu Hirata <kazu@hxi.com>
10682 * config/h8300/h8300.c: Fix formatting.
10683 * config/h8300/h8300.h: Likewise.
10685 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
10687 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10688 which may overwrite the high byte of the frame pointer.
10690 2002-02-28 Bo Thorsen <bo@suse.de>
10692 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10693 (STARTFILE_SPEC): Add 64 bit files.
10694 (ENDFILE_SPEC): Likewise.
10696 2002-02-28 Jason Merrill <jason@redhat.com>
10698 * c-decl.c (finish_function): Only warn about missing return
10699 statement with -Wreturn-type.
10701 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
10703 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10705 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10706 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10708 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
10710 * basic-block.h (BB_REACHABLE): Renumber.
10711 (BB_DIRTY, BB_NEW): New flags.
10712 (clear_bb_flags): Declare.
10713 (update_life_info_in_dirty_blocks): Declare.
10714 * cfg.c (clear_bb_flags): New function.
10715 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10716 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10717 reorder_insns, emit_insn_after): Mark block as dirty.
10718 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10719 (update_life_info_in_dirty_blocks): New function.
10720 * recog.c (apply_change_group): Dirtify block.
10722 * cse.c (cse_insn): Reorder emitting of jump insn to keep
10724 * gcse.c (delete_null_pointer_checks): Likewise.
10726 * toplev.c (dump_file_index): Move cse2 after bp,
10728 (dump_file_info): Similary.
10729 (rest_of_compilation): Avoid most of CFG rebuilds;
10730 do first if converision after null pointer checks, do cse2
10731 after branch prediction; avoid full liveness rebuild after
10732 initializing subregs.
10733 * invoke.texi (-d options): Document -du, renumber.
10735 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10736 (notice_new_block): Do not set BB_UPDATE_LIFE.
10737 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10738 merge_blocks_move_successor_nojumps, merge_blocks,
10739 try_crossjump_to_edge): Likewise.
10740 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10741 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10742 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10743 (merge_of_block): Do not use life_data_ok.
10744 (find_if_case_1): Do not use SET_UPDATE_LIFE.
10745 (if_convert): Use BB_DIRTY mechanizm to update life.
10746 * lcm.c (optimize_mode_switching): Update
10747 update_life_info_in_dirty_blocks
10749 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10751 * Makefile.in (integrate.o): Update.
10752 * c-decl.c (copy_lang_decl): Rename.
10753 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10754 * integrate.c: Include langhooks.h.
10755 (copy_decl_for_inlining): Update to use langhook.
10756 * langhooks-def.h (lhd_do_nothing_t,
10757 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10758 (LANG_HOOKS_INITIALIZER): Update.
10759 * langhooks.c (lhd_do_nothing_t): New.
10760 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10761 * tree.h (copy_lang_decl): Remove.
10763 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10765 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
10767 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10768 POST_DEC, and POST_MODIFY.
10770 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10772 * c-typeck.c (digest_init): Remove unused parameter; all
10775 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
10777 * expmed.c (expand_shift): Correctly test for low part of a
10780 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10782 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10783 insn UIDs with insn addresses.
10785 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10787 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10788 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10789 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10790 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10791 gcc.c, toplev.c: Delete code implementing -traditional mode.
10793 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10794 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10795 Document removal of -traditional mode for compilation, and
10796 remove documentation only relevant to that mode.
10798 * config/nextstep.h, config/ptx4.h, config/svr4.h,
10799 config/convex/convex.h, config/d30v/d30v.h,
10800 config/i386/dgux.h, config/i386/osf1elf.h,
10801 config/i386/osfelf.h, config/i386/osfrose.h,
10802 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10803 config/m68k/hp310.h, config/m88k/dgux.h,
10804 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10805 config/m88k/m88k.h, config/m88k/openbsd.h,
10806 config/mips/abi64.h, config/mips/osfrose.h,
10807 config/mips/svr4-5.h, config/mips/svr4-t.h,
10808 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10809 config/stormy16/stormy16.h: Remove all references to
10810 -traditional from target specs. Delete all mention of the
10811 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
10812 delete a couple of commented-out definitions of
10813 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10816 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10817 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10819 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10821 * mklibgcc.in: Don't use \n in a line subject to
10822 interpretation by echo.
10824 2002-02-27 Graham Stott <grahams@redhat.com>
10826 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10829 * loop.c (prescan_loop): Handle PARALLEL.
10831 * unroll.c (loop_iterations): Return 0 if the add_val for
10834 * final.c (output_operand_lossage): Constify PFX_STR.
10836 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10838 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
10840 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10841 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10843 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
10845 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10847 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
10849 * cpplex.c (_cpp_lex_token): Handle directives in macro
10851 * cpplib.c (_cpp_handle_directive): Save and restore state
10852 if parsing macro args when entering a directive.
10853 * cppmacro.c (collect_args): No need to handle directives
10854 in macro arguments.
10855 (enter_macro_context, replace_args): Use the original macro
10856 definition in case it was redefined whilst collecting arguments.
10858 * cpp.texi: Update.
10860 2002-02-26 David Edelsohn <edelsohn@gnu.org>
10862 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
10863 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
10864 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
10866 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
10867 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
10868 (load_toc_v4_PIC_2): Same.
10870 2002-02-26 Alan Modra <amodra@bigpond.net.au>
10872 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
10874 2002-02-26 Richard Henderson <rth@redhat.com>
10876 * config/alpha/alpha.md (ashldi_se): Re-enable.
10878 2002-02-26 Richard Henderson <rth@redhat.com>
10880 * config/alpha/alpha.c (alpha_encode_section_info): Examine
10881 MODULE_LOCAL_P; improve commentary.
10883 2002-02-26 Zack Weinberg <zack@codesourcery.com>
10885 * doc/cpp.texi: Clarify documentation of relationship between
10886 #line and #include.
10888 2002-02-26 Kazu Hirata <kazu@hxi.com>
10890 * config/h8300/h8300-protos.h: Update the prototype for
10891 compute_logical_op_length. Add the prototype for
10892 compute_logical_op_cc.
10893 * config/h8300/h8300.c (compute_logical_op_length): Figure out
10894 code from operands.
10895 (compute_logical_op_cc): New.
10896 * config/h8300/h8300.md: Combine all the logical op patterns
10897 in HImode and SImode. Use compute_logical_op_cc.
10899 2002-02-26 Kelley Cook <kelleycook@comcast.net>
10901 * config/i386/i386.c (print_operand): Don't append ATT-style
10902 length suffixs to x87 opcodes when in Intel mode.
10904 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
10906 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
10907 (init_emit_once): Update calls.
10908 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
10909 (init_syntax_once): Prototype.
10911 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
10913 * pa-linux.h (LIB_SPEC): Update definition.
10914 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10916 2002-02-26 Richard Henderson <rth@redhat.com>
10918 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
10919 if we emitted a stop bit.
10921 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10923 * configure.in (libgcc_visibility): Substitute.
10924 * configure: Rebuilt.
10925 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
10926 defined symbols .hidden.
10928 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10930 * attribs.c (c_common_attribute_table): Add visibility.
10931 (handle_visibility_attribute): New function.
10932 * varasm.c (assemble_visibility): New function.
10933 * output.h (assemble_visibility): Add prototype.
10934 * tree.h (MODULE_LOCAL_P): Define.
10935 * crtstuff.c (__dso_handle): Use visibility attribute.
10936 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
10937 for MODULE_LOCAL_P symbols too.
10938 * config/ia64/ia64.c (ia64_encode_section_info): Handle
10939 MODULE_LOCAL_P symbols the same way as local symbols.
10940 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
10941 into .sdata/.sbss by the user.
10942 * doc/extend.texi (Function Attributes): Document visibility
10945 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10948 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
10949 STRING_CST initializer spanning the whole variable without
10951 If expand_expr returned MEM, don't use it.
10953 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
10955 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
10956 generate a die for the lexical block.
10958 2002-02-26 Kazu Hirata <kazu@hxi.com>
10960 * config/h8300/h8300-protos.h: Add a prototype for
10961 compute_logical_op_length.
10962 * config/h8300/h8300.c (compute_logical_op_length): New.
10963 * config/h8300/h8300.md (anonymous logical patterns): Use
10964 compute_logical_op_length for length.
10966 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10968 * dwarf2out.c (modified_type_die): Do not call type_main_variant
10970 (gen_type_die): Same.
10972 * attribs.c (handle_vector_size_attribute): Set debug information.
10974 2002-02-26 Daniel Egger <degger@fhm.edu>
10976 * config/rs6000/rs6000.md: Swap define_insn attributes to
10977 fix incorrect generation of merge high instructions instead
10980 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10982 * c-typeck.c (really_start_incremental_init): Use
10983 bitsize_zero_node for vectors.
10985 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10987 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
10988 ("*set_vrsave_internal"): Same.
10990 2002-02-25 Richard Henderson <rth@redhat.com>
10992 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
10993 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
10995 2002-02-25 Jakub Jelinek <jakub@redhat.com>
10998 * config/i386/i386.c (ix86_return_pops_args): Only pop
10999 fake structure return argument if it was passed on the stack.
11001 2002-02-25 Jason Merrill <jason@redhat.com>
11003 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11006 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11008 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11009 link with shared_name only.
11010 * doc/invoke.texi (Link Options): Document new behavior.
11012 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11014 * c-typeck.c (push_init_level): Handle vectors.
11016 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11018 * config/sparc/sparc.c (const64_high_operand): Zero-extend
11019 operands of SPARC_SETHI_P.
11020 (input_operand): Likewise.
11021 (sparc_emit_set_const32): Likewise.
11022 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11023 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11024 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
11025 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11026 (movdi_insn_sp64_vis): Likewise.
11027 (movdi split, movdf split): Use SETHI32.
11028 * doc/md.texi: Document SPARC constraints L, M and N.
11030 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11032 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11033 ("*set_vrsave_internal"): use mfspr for Darwin.
11035 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11036 gen_get_vrsave_internal.
11038 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11040 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11042 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
11044 * cpplex.c (cpp_interpret_charconst): Get signedness or
11045 otherwise of wide character constants correct.
11046 * cppexp.c (lex): Get signedness of wide charconsts correct.
11048 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11050 * optabs.c (widen_operand): Only call convert_modes for
11051 promoted SUBREG if signedness matches.
11052 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11054 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11056 * cpplib.c (glue_header_name): Use local buffer to build up
11059 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11061 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11063 2002-02-23 Kazu Hirata <kazu@hxi.com>
11065 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11066 H8/300[HS] separately.
11067 * config/h8300/h8300.md: Remove the early clobber constraint
11068 from bit field patterns.
11070 2002-02-23 Kazu Hirata <kazu@hxi.com>
11072 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11074 (mulhisi3): Likewise.
11075 (umulqisi3): Likewise.
11076 (umulhisi3): Likewise.
11078 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11080 * cppinit.c (output_deps): Correct test for stdout output.
11081 (init_dependency_output): Cure warning.
11083 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11085 * expr.c (store_expr): When converting expression to promoted
11086 equivalent type, allow using SUBREG_REG of TARGET as the target
11087 of the expansion of EXP.
11088 * loop.c (basic_induction_var, case SUBREG): Always look inside.
11089 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11090 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11091 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11092 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11094 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
11096 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11097 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11098 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11100 2002-02-23 Jakub Jelinek <jakub@redhat.com>
11102 PR optimization/5747
11103 * loop.c (scan_loop): Update reg info if move_movables created new
11106 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11108 * gcc.c (init_gcc_spec): Revert last change.
11110 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11112 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11113 gpc_reg_operand constraint.
11115 2002-02-23 Alan Modra <amodra@bigpond.net.au>
11117 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11118 Simplify comparison of `low'.
11119 (add_operand): Fix formatting.
11120 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11121 (mask_operand): Disallow mask to wrap in 64-bit mode.
11122 (rs6000_stack_info): Remove redundant test setting push_p.
11123 (output_toc): Fix formatting.
11124 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11125 cc_reg_not_cr0_operand constraint.
11126 (booldi3, boolcdi3 splitters): Same.
11128 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
11130 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11132 2002-02-22 David Edelsohn <edelsohn@gnu.org>
11134 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11135 gcc invoked with -shared-libgcc.
11137 2002-02-22 Jakub Jelinek <jakub@redhat.com>
11140 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11141 decl if any of elements was TREE_USED.
11143 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
11145 * config/sparc/sol2.h: Don't include sys/mman.h.
11146 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11147 (arith_4096_operand): Don't throw high bits away.
11148 (const64_operand): Take sign extension of CONST_INTs into account.
11149 (const64_high_operand, sparc_emit_set_const32): Likewise.
11150 (GEN_HIGHINT64): Likewise.
11151 (sparc_emit_set_const64_quick1): Likewise.
11152 (const64_is_2insns): Likewise.
11153 (print_operand): Use trunc_int_for_mode for sign extension.
11154 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11155 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11156 chars. Assume CONST_INT is already properly sign-extended.
11157 (movdi split): Sign-extend each SImode part.
11158 (andsi3 split): Don't mask high bits off, so that result
11159 remains properly sign-extend.
11160 (iorsi3 split): Likewise.
11161 (xorsi3 split): Likewise.
11163 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11165 * fold-const.c (fold): Fix typo in comments.
11167 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11169 * Makefile.in (langhooks.o): Update dependencies.
11171 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11173 * langhooks.c: Include flags.h.
11175 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11177 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11179 * c-common.c (c_common_post_options): Set inline trees by
11182 * doc/extend.texi (Function Attributes): Document always_inline
11184 Update documentation about inlining when not optimizing.
11186 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11188 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11189 unless DECL_ALWAYS_INLINE.
11191 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11192 unless DECL_ALWAYS_INLINE.
11193 (c_disregard_inline_limits): Disregard if always_inline set.
11195 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11196 Disregard if always_inline set.
11197 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11198 unless DECL_ALWAYS_INLINE.
11200 * attribs.c (handle_always_inline_attribute): New.
11201 (c_common_attribute_table): Add always_inline.
11203 * config/rs6000/altivec.h: Add prototypes for builtins
11204 requiring the always_inline attribute.
11206 2002-02-21 Eric Christopher <echristo@redhat.com>
11208 * expmed.c (store_bit_field): Try to simplify the subreg
11209 before generating a new one when when the mode size of
11210 value is less than maxmode.
11212 2002-02-21 Richard Henderson <rth@redhat.com>
11214 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11215 than gen_rtx_PLUS to form the sum.
11216 * explow.c (force_reg): Rearrange to not allocate new pseudo
11217 when force_operand returns a register.
11218 * expr.c (expand_assignment): Allow offset_rtx expansion to
11219 return a sum. Do not force addresses into registers.
11220 (expand_expr): Likewise.
11221 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11222 to canonicalize arithmetic that didn't simpify.
11223 (simplify_plus_minus): New argument force; update
11224 all callers. Don't split CONST unless we can do something with it,
11225 and wouldn't lose the constness of the operands.
11227 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11228 that we generated earlier.
11230 2002-02-21 Tom Tromey <tromey@redhat.com>
11232 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11233 (output_line_info): Use constant `1', with a long explanatory
11235 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11237 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11239 * jump.c (redirect_jump): If old label has no UID, don't try to
11242 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11244 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11245 If input is constant, do shifts at compile time.
11247 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11249 * doc/extend.texi: Fix some more overfull hboxes.
11251 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11253 PR optimization/4994
11254 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11257 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11260 * expr.h (expand_and): Add mode argument.
11261 * expmed.c (expand_and): Add mode argument.
11262 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11263 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11264 * except.c (expand_builtin_extract_return_addr): Likewise.
11265 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11266 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11267 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11268 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11269 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11270 gen_rtx (CONST_INT, VOIDmode, x).
11272 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11275 * stmt.c (warn_if_unused_value): Move side effects test once more.
11277 2002-02-20 Torbjorn Granlund <tege@swox.com>
11279 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11280 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11282 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11284 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11285 SUBREG or ZERO_EXTEND.
11287 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11289 * sh.h (current_function_anonymous_args): Remove.
11290 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11291 of current_function_varargs and current_function_stdarg is set.
11292 * sh.c (sh_expand_prologue): Check current_function_varargs /
11293 current_function_stdarg / TARGET_SH5 instead of
11294 current_function_anonymous_args.
11296 * sh64.h (TARGET_VERSION): Define.
11298 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11300 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11301 VRSAVE_REGNO on TARGET_ALTIVEC.
11303 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11305 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11306 bits of SImode const_int.
11307 (includes_rshift_p): Likewise.
11308 (print_operand): Call mask_operand and mask64_operand with correct
11310 (rs6000_output_function_epilogue): Pad traceback table to word.
11311 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11312 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11313 mask64_operand with correct mode.
11314 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11316 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11319 * varasm.c (get_pool_constant_mark): New.
11320 * rtl.h (get_pool_constant_mark): Add prototype.
11321 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11322 be represented if it has not been output.
11324 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11326 * combine.c (do_SUBST): Sanity check substitutions of
11327 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11328 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11329 CONST_INT into its operand.
11330 (known_cond): Likewise, for ZERO_EXTEND.
11331 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11332 allow for simplification of wide modes. Reject CONST_INTs in
11333 ZERO_EXTEND when their actual mode is not given.
11335 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11337 * c-decl.c (pushdecl): If no global declaration is found for an
11338 extern declaration in block scope, try a limbo one.
11340 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11343 * c-common.c (pointer_int_sum): Moved from...
11344 * c-typeck.c (pointer_int_sum): ...here.
11345 * c-common.h (pointer_int_sum): Add prototype.
11347 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11350 * c-decl.c (duplicate_decls): Return 0 if issued error about
11353 2002-02-20 Roger Sayle <roger@eyesopen.com>
11354 Jakub Jelinek <jakub@redhat.com>
11357 * tree.c (host_integerp): Ensure that the constant integer is
11358 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11359 when pos is zero or non-zero respectively. Clarify comment.
11360 * c-format.c (check_format_info_recurse): Fix host_integerp
11361 usage; the pos argument should be zero when assigning to a
11362 signed HOST_WIDE_INT.
11364 2002-02-20 Richard Henderson <rth@redhat.com>
11366 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11367 of the operand, rather than assuming TImode.
11368 (ix86_expand_binop_builtin): Cope with commutative patterns
11369 using nonimmediate_operand for both operands.
11370 (ix86_expand_timode_binop_builtin): Likewise.
11371 (ix86_expand_store_builtin): Validate operand 1.
11372 (ix86_expand_unop1_builtin): Likewise.
11374 2002-02-20 Philip Blundell <philb@gnu.org>
11377 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11379 2002-02-20 Richard Henderson <rth@redhat.com>
11382 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11384 2002-02-20 Tom Tromey <tromey@redhat.com>
11386 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11387 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11388 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11389 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11390 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11393 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11395 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11396 for (const_int 0) in X not just INTVAL.
11398 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
11400 * doc/extend.texi: Avoid or reduce overfull hboxes.
11402 2002-02-20 Diego Novillo <dnovillo@redhat.com>
11404 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11405 operations if the field does not start at a mode boundary.
11407 2001-02-20 Joel Sherrill <joel@OARcorp.com>
11409 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11410 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11411 Also done for -Acpu and -Amachine.
11413 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
11415 * cppinit.c (init_dependency_output): Take deps output file
11416 from -o if none given with -MF. Suppress normal output.
11417 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11418 * doc/cpp.texi, doc/invoke.texi: Update.
11420 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11422 * toplev.c (output_quoted_string): Write unprintable
11423 characters with octal escapes.
11425 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11427 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11428 really_call_used[VRSAVE_REGNO] if not Altivec.
11430 2002-02-19 Alan Modra <amodra@bigpond.net.au>
11432 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11434 (constant_pool_expr_1): Fix formatting.
11435 (rs6000_legitimize_reload_address): Likewise.
11437 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11439 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11440 now that we have one.
11442 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11444 * tree.h (struct tree_common): Remove aux. Add unused_0 at
11445 end of first block of bitfields (which was only seven bits);
11446 rename dummy to unused_1; remove comment which is no longer true.
11448 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11450 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11452 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11455 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11459 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11460 arm_is_longcall_p rather than inspecting call-type cookie
11462 (call_value_insn) [TARGET_THUMB]: Likewise.
11464 2002-02-19 Graham Stott <grahams@redhat.com>
11466 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11468 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11470 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11471 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11472 (FP_SAVE_INLINE): Delete.
11474 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11475 * config/rs6000/eabi.asm: Remove ABI save restore routines.
11476 * config/rs6000/t-ppccomm: Build crtsavres.o.
11477 * config/rs6000/crtsavres.asm: New file.
11479 2002-02-19 Philip Blundell <philb@gnu.org>
11481 * config/arm/arm.c (use_return_insn): Don't reject interrupt
11483 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11484 (output_return_instruction): Allow interrupt functions to return with
11485 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
11486 (arm_expand_prologue): Subtract 4 before stacking LR in an
11487 interrupt function.
11489 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11491 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11492 decl, not just FUNCTION_DECL.
11493 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11494 (arm_assemble_integer): Likewise.
11495 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11498 2002-02-19 matthew green <mrg@eterna.com.au>
11500 * config.gcc (sparc-*-netbsdelf*): Enable target.
11501 (sparc64-*-netbsd*): New target.
11502 * config/sparc/netbsd-elf.h: New file.
11503 * config/sparc/t-netbsd64: New file.
11505 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11507 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11509 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
11511 * doc/invoke.texi: explicitly list the style guidelines that
11512 -Weffc++ checks for.
11514 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
11516 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11518 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
11521 * gcc.c (cpp_unique_options): Treat -o as indicating object file
11522 only if not -E. If -E, pass -o through to the preprocessor.
11524 2002-02-19 Kazu Hirata <kazu@hxi.com>
11526 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11527 register number with an appropriate macro.
11529 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11531 * doc/rtl.texi (Constants): Close @code tag.
11533 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
11535 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11536 ("mmx_uavgv4hi3"): Same.
11537 ("pmulhrwv4hi3"): Same.
11539 * tree-inline.c (walk_tree): Handle vectors.
11541 * c-common.c (constant_expression_warning): Handle vectors.
11542 (overflow_warning): Same.
11544 * sched-deps.c (sched_analyze_2): Handle vectors.
11546 * rtlanal.c (rtx_unstable_p): Handle vectors.
11547 (rtx_varies_p): Same.
11548 (count_occurrences): Same.
11549 (regs_set_between_p): Same.
11550 (modified_between_p): Same.
11551 (modified_in_p): Same.
11552 (volatile_insn_p): Same.
11553 (volatile_refs_p): Same.
11554 (side_effects_p): Same.
11555 (may_trap_p): Same.
11556 (inequality_comparisons_p): Same.
11557 (replace_regs): Same.
11558 (computed_jump_p_1): Same.
11560 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11562 (inner_mode_array): New.
11563 (copy_rtx): Handle vectors.
11564 (copy_most_rtx): Same.
11565 (rtx_equal_p): Same.
11566 (get_mode_alignment): Adjust for vectors.
11568 * resource.c (mark_referenced_resources): Handle vectors.
11569 (mark_set_resources): Same.
11571 * reload1.c (eliminate_regs): Handle vectors.
11572 (elimination_effects): Same.
11573 (scan_paradoxical_subregs): Same.
11575 * reload.c (subst_reg_equivs): Handle vectors.
11577 * regrename.c (scan_rtx): Handle vectors.
11579 * regclass.c (reg_scan_mark_refs): Handle vectors.
11581 * recog.c (find_single_use_1): Handle vectors.
11583 * local-alloc.c (equiv_init_varies_p): Handle vectors.
11584 (contains_replace_regs): Same.
11585 (memref_referenced_p): Same.
11587 * integrate.c (copy_rtx_and_substitute): Handle vectors.
11588 (subst_constants): Same.
11590 * genattrtab.c (attr_copy_rtx): Handle vectors.
11591 (encode_units_mask): Same.
11592 (clear_struct_flag): Same.
11593 (count_sub_rtxs): Same.
11595 * gcse.c (want_to_gcse_p): Handle vectors.
11596 (oprs_unchanged_p): Same.
11597 (hash_expr_1): Same.
11598 (oprs_not_set_p): Same.
11599 (expr_killed_p): Same.
11600 (compute_transp): Same.
11601 (store_ops_ok): Same.
11603 * function.c (purge_addressof_1): Do not allow paradoxical subregs
11605 (fixup_var_refs_1): Same.
11606 (instantiate_virtual_regs_1): Same.
11608 * fold-const.c (operand_equal_p): Handle vectors.
11610 (rtl_expr_nonnegative_p): Same.
11612 * flow.c (mark_used_regs): Handle vectors.
11614 * df.c (df_uses_record): Handle vectors.
11616 * cselib.c (cselib_subst_to_values): Handle vectors.
11617 (cselib_mem_conflict_p): Same.
11620 * cse.c (canon_reg): Handle vectors.
11622 (cse_process_notes): Same.
11623 (count_reg_usage): Same.
11624 (canon_hash): Same.
11626 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11628 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11630 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11631 (gen_rtx): Handle CONST_VECTOR.
11632 (gen_const_vector_0): New.
11633 (copy_rtx_if_shared): CONST_VECTORs can be shared.
11634 (reset_used_flags): Same.
11635 (copy_insn_1): Same.
11636 (initializer_constant_valid_p): Handle VECTOR_CST.
11638 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11640 * doc/rtl.texi (Constants): Document const_vector.
11641 (CONST0_RTX): Update for vectors.
11642 (RTL sharing): Same.
11644 * print-tree.c (print_node): Add case for VECTOR_CST.
11646 * tree.h (TREE_VECTOR_CST_ELTS): New.
11647 (struct tree_vector): New.
11648 (union tree_node): Add vector node.
11649 (build_vector): Add prototype.
11651 * tree.def (VECTOR_CST): New.
11653 * tree.c (build_vector): New.
11655 * expmed.c (make_tree): Handle CONST_VECTOR.
11657 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11658 (CONST_VECTOR_ELT): New.
11659 (CONST_VECTOR_NUNITS): New.
11661 * machmode.h (GET_MODE_INNER): New.
11662 (DEF_MACHMODE): Accept 8th arg.
11664 * machmode.def: Add 8th argument for vector inner mode.
11665 Add inner vector modes for vectors.
11667 * rtl.def (VEC_CONST): Remove.
11668 (CONST_VECTOR): New.
11670 * expr.c (clear_storage): Allow vectors.
11671 (is_zeros_p): Handle VECTOR_CST.
11673 * varasm.c (output_constant_pool): Handle vectors.
11674 (rtx_const): Add veclo and vechi fields.
11675 (kind): Add RTX_VECTOR.
11676 (decode_rtx_const): Add case for vector.
11678 * config/rs6000/rs6000-protos.h: Add zero_constant.
11680 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11681 constants. Force easy vector constants into memory.
11682 (easy_vector_constant): New.
11683 (emit_easy_vector_constant): New.
11684 (rs6000_legitimize_reload_address): Do not generate bad reloads on
11687 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11689 ("altivec_lvxl"): Same.
11690 (altivec_lvebx): Same.
11691 (altivec_lvehx): Same.
11692 (altivec_lvewx): Same.
11693 ("*movv4si_const0"): New.
11694 ("*movv4sf_const0"): New.
11695 ("*movv8hi_const0"): New.
11696 ("*movv16qi_const0"): New.
11698 2002-02-18 Kazu Hirata <kazu@hxi.com>
11700 * config/h8300/h8300.c (notice_update_cc): Use
11703 2002-02-18 Kazu Hirata <kazu@hxi.com>
11705 * config/h8300/h8300.md (divmod patterns): Change the
11706 constraints for operands[1] to register_operand.
11708 2002-02-18 Kazu Hirata <kazu@hxi.com>
11710 * config/h8300/h8300-protos.h: Remove the prototype for
11712 * config/h8300/h8300.c (p_operand): Remove.
11713 * config/h8300/h8300.md: Replace p_operand with
11716 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11718 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11720 (output_return_instruction): Allow use of LDR to unstack
11721 return addresss even for interrupt handlers or when
11722 interworking. If compiling for ARMv5, use interworking-safe
11723 return instructions by default. Remove duplicated code and
11724 lengthy "strcat" sequences.
11726 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11728 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11729 (LINK_EH_SPEC): Define.
11730 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11732 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11734 * config/s390/s390.c (s390_emit_prologue): Do not set the
11735 frame_related flag for call-clobbered registers.
11737 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
11739 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11740 (construct_container): Fix handling of SSE operands.
11741 (ix86_expand_builtin): Fix handling of 64bit pointers.
11742 (mmx_maskmovq_rex): New pattern.
11744 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
11746 * regrename.c (kill_set_value): Handle subregs properly.
11748 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
11750 * objc/objc-act.c (handle_impent): Remove leading '*'
11751 from objc_class_name.
11753 2002-02-17 Richard Henderson <rth@redhat.com>
11755 * config/alpha/alpha.c (some_small_symbolic_operand,
11756 some_small_symbolic_operand_1, split_small_symbolic_operand,
11757 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11758 Handle small SYMBOL_REFs anywhere, not just inside memories.
11759 * config/alpha/alpha-protos.h: Update.
11760 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11761 * config/alpha/alpha.md (small symbolic operand splitter): Update.
11763 2002-02-17 Roland McGrath <roland@frob.com>
11765 * config.gcc (powerpc-*-gnu-gnualtivec*,
11766 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11767 * config/rs6000/gnu.h: New file.
11768 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11769 Grok "gnu" in rs6000_abi_name.
11770 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11771 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11772 Grok -mcall-gnu analogous to -mcall-linux et al.
11773 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11774 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11775 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11777 2002-02-17 Jakub Jelinek <jakub@redhat.com>
11780 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11783 2002-02-17 Philipp Thomas <pthomas@suse.de>
11785 * config/cris/cris.h: Undefine STARTFILE_SPEC and
11786 ENDFILE_SPEC before (re)defining them.
11788 2002-02-17 Kazu Hirata <kazu@hxi.com>
11790 * config/h8300/h8300.c: Fix formatting.
11791 * config/h8300/h8300.h: Likewise.
11793 2002-02-17 Philipp Thomas <pthomas@suse.de>
11795 * doc/tm.texi: Explain why empty strings should not be
11796 marked for translation.
11798 2002-02-17 Philipp Thomas <pthomas@suse.de>
11800 * final.c (output_operand_lossage): Changed to accept
11801 printf style arguments. Change calls where necessary.
11802 * output.h (output_operand_lossage): Change declaration
11803 accordingly. Update copyright.
11804 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11805 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11806 Update copyright date where necessary.
11808 * config/i386/i386.c (print_operand): Likewise. Remove use of
11811 * config/cris/cris.c (cris_operand_lossage): Likewise.
11812 Rename parameter so that exgettext recognizes it as
11813 translatable message.
11814 (LOSE_AND_RETURN): Rename parameter to msgid.
11816 2002-02-17 Kazu Hirata <kazu@hxi.com>
11818 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11819 hard coded register number with an appropriate macro.
11820 (HARD_REGNO_MODE_OK): Likewise.
11821 (ARG_POINTER_REGNUM): Likewise.
11822 (STATIC_CHAIN_REGNUM): Likewise.
11823 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11824 * config/h8300/h8300.md (define_constants): Define more
11827 2002-02-17 Philipp Thomas <pthomas@suse.de>
11829 * config/i386/i386.h: Don't mark empty strings for translation.
11831 2002-02-16 H.J. Lu <hjl@gnu.org>
11833 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11835 2002-02-16 Zack Weinberg <zack@codesourcery.com>
11837 * cppinit.c (merge_include_chains): Check for brack being
11838 NULL before attempting to merge it with qtail.
11840 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11842 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11845 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11847 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
11849 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11851 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
11852 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
11853 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
11855 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11857 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
11858 now only if !TARGET_FIX.
11859 (*movsi_nt_vms_fix): New pattern.
11861 2002-02-16 Douglas B Rupp <rupp@gnat.com>
11863 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
11864 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
11865 (alpha_sa_mask, alpha_sa_size): Reflect above change.
11866 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
11867 (alpha_start_function, alpha_expand_epilogue): Likewise.
11868 (unicosmk_gen_dsib): Likewise.
11870 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11872 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
11874 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
11876 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
11877 check_and_change_labels, s390_final_chunkify): Delete.
11878 (s390_split_branches, s390_chunkify_pool): New functions.
11879 (s390_function_prologue): Call them.
11881 * config/s390/s390.h (S390_REL_MAX): Delete.
11882 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
11884 * config/s390/s390.md (cjump, icjump, jump): Fix length
11885 attribute calculation.
11888 2002-02-15 David Edelsohn <edelsohn@gnu.org>
11890 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
11891 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
11893 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11895 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
11896 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
11897 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
11899 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11901 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
11903 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11905 * reload.c (find_dummy_reload): Check that an output register
11906 is valid for its mode.
11908 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
11910 * combine.c (known_cond): After replacing the REG of a SUBREG, try
11913 * function.c (assign_parms): Demote promoted argument passed by
11914 transparent reference.
11916 2001-02-14 Joel Sherrill <joel@OARcorp.com>
11918 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
11919 -Acpu() and -Amachine() to eliminate warnings.
11921 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
11923 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
11925 2002-02-14 Kazu Hirata <kazu@hxi.com>
11927 * config/h8300/h8300-protos.h: Update the prototype for
11929 * config/h8300/h8300.c (const_costs): Treat SET as a little
11930 more expensive operation.
11931 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
11932 reference to const_costs.
11934 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
11936 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
11938 2002-02-14 Jakub Jelinek <jakub@redhat.com>
11941 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
11942 use arguments from newtype.
11944 2002-02-13 Eric Christopher <echristo@redhat.com>
11946 * config/mips/mips.c (override_options): Add check for march/mipsX
11947 on the same command line. Fix error message in cpu processing.
11948 Remove architecture and ISA checks.
11950 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11952 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
11954 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
11956 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11958 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
11960 ("*movv8hi_internal1"): Same.
11961 ("*movv16qi_internal1"): Same.
11962 ("*movv4sf_internal1"): Same.
11964 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
11965 not push_reload for altivec modes.
11967 2002-02-13 Joel Sherrill <joel@OARcorp.com>
11969 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
11970 all RTEMS targets including removal of #includes from config/*/rtems*.h
11971 file and adding them to tm_file setting. Added xm_defines=POSIX to
11973 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
11974 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
11975 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
11976 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
11977 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
11978 config/m68k/rtemself.h: Ditto.
11979 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
11980 config/mips/rtems64.h: Ditto.
11981 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
11982 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
11984 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
11985 config/sparc/rtemself.h: Ditto.
11986 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
11987 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
11988 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
11990 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
11991 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
11992 target made more similar to i386-elf.
11993 * config/i386/t-rtems-i386: Added soft float support and multilibs.
11994 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
11995 be similar to config/m68k/t-m68kelf.
11996 * gthr-rtems.h: Encapsulate with extern "C" for C++.
11998 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
12000 * regmove.c (kill_value): Handle subregs.
12002 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
12004 * i386.md (mul patterns): Allow memory operand to be first;
12005 add expanders where needed; fix constraints.
12006 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12007 Allow memory operand to be the first.
12009 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12012 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12015 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12018 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12020 PR optimization/5547:
12021 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12022 all valid IA-32 address modes involving non-scaled %ebx and
12023 GOT/GOTOFF as displacement.
12025 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12027 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12028 after emitting ltorg insns.
12030 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12031 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12032 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12033 *abssf2): Fix "op_type" attribute.
12035 2002-02-13 Douglas B Rupp <rupp@gnat.com>
12037 * mkconfig.sh: Avoid using a subshell redirect.
12038 ($output.T): Change to $(output)T.
12039 (ENABLE_NLS): Remove unneeded undef.
12041 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12042 * config/alpha/x-vms (libsubdir): Define.
12044 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12045 register frame procedures. Optimize retrieving context.
12047 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12048 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12049 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12051 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12053 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12054 Make same change as for find_base_value.
12056 2002-02-13 Kazu Hirata <kazu@hxi.com>
12058 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12059 of QImode and SImode.
12061 2002-02-13 Kazu Hirata <kazu@hxi.com>
12063 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12064 length computation of movsi.
12065 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12067 2002-02-13 Kazu Hirata <kazu@hxi.com>
12069 * config/h8300/h8300.md (subqi3): Tighten the predicate for
12070 operands[2] to register_operand.
12072 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
12074 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12076 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
12078 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12079 for altivec_lvx* and altivec_stvx*.
12080 ("*movv4si_internal"): Add constraint for loading from GPRs.
12081 ("*movv8hi_internal1"): Same.
12082 ("*movv16qi_internal1"): Same.
12083 ("*movv4sf_internal1"): Same.
12085 * config/rs6000/rs6000.c (altivec_register_operand): New.
12087 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12088 altivec_register_operand.
12090 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
12092 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12095 2002-02-13 Stan Shebs <shebs@apple.com>
12097 * c-typeck.c (digest_init): Handle vectors.
12098 (really_start_incremental_init): Same.
12099 (pop_init_level): Same.
12100 (process_init_element): Same.
12102 * varasm.c (output_constant): Same.
12104 * expr.c (clear_storage): Same.
12105 (store_constructor): Same.
12107 2002-02-12 Eric Christopher <echristo@redhat.com>
12109 * explow.c (hard_function_value): Add comment explaining
12110 signed/unsigned comparison.
12112 2002-02-12 Jakub Jelinek <jakub@redhat.com>
12114 * jump.c (never_reached_warning): Add finish argument.
12115 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12116 real insn after end.
12117 * rtl.h (never_reached_warning): Adjust prototype.
12118 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12119 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12120 never_reached_warning.
12122 2002-02-12 Graham Stott <grahams@redhat.com>
12124 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12126 2002-02-12 Kazu Hirata <kazu@hxi.com>
12128 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12129 logical shifts on H8/300.
12130 (shift_alg_si): Improve several shifts on H8/300.
12131 (get_shift_alg): Likewise.
12133 2002-02-12 Graham Stott <grahams@redhat.com>
12135 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12137 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12139 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12140 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12142 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
12144 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12145 non-CONST_INT through default_assemble_integer.
12146 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12147 <case 8>: Abort for CONST_DOUBLE.
12149 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12151 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12153 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12154 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12156 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12158 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12160 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12162 * regrename.c (regrename_optimize): Don't accept a
12163 part-clobbered register if the replaced register is not part
12166 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12167 take padding into account when computing the argument value.
12169 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12171 * combine.c (try_combine): Apply substitutions in
12172 CALL_INSN_FUNCTION_USAGE too.
12174 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12176 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12177 __builtin_altivec_abs*.
12180 * config/rs6000/rs6000.h (rs6000_builtins): Add
12181 ALTIVEC_BUILTIN_ABS*.
12183 * config/rs6000/altivec.h: Use const char for builtins expecting
12185 (vec_abs): New versions for C and C++.
12188 2002-02-10 Kazu Hirata <kazu@hxi.com>
12190 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12193 2002-02-10 Kazu Hirata <kazu@hxi.com>
12195 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12196 constant definition from h8300.md.
12197 (FRAME_POINTER_REGNUM): Likewise.
12198 * config/h8300/h8300.md (define_constants): Add FP_REG.
12200 2002-02-10 Kazu Hirata <kazu@hxi.com>
12202 * config/h8300/h8300.c (print_operand): Remove redundant code.
12204 2002-02-10 Kazu Hirata <kazu@hxi.com>
12206 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12207 * config/h8300/h8300.c (byte_reg): Make it static.
12209 2002-02-10 Richard Henderson <rth@redhat.com>
12212 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12214 2002-02-10 Richard Henderson <rth@redhat.com>
12217 * tree.c (append_random_chars): Don't abort if main_input_filename
12220 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12222 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12224 2002-02-10 Kazu Hirata <kazu@hxi.com>
12226 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12227 (pushhi1): Likewise.
12229 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12231 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12232 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12234 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12236 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12238 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12240 2002-02-09 Kazu Hirata <kazu@hxi.com>
12242 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12243 a half of an SImode register on H8/300.
12245 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12247 * i386.md (movdi_2): Add missing '!'.
12249 2002-02-09 Kazu Hirata <kazu@hxi.com>
12251 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12254 2002-02-09 Kazu Hirata <kazu@hxi.com>
12256 * config/h8300/h8300.md (length): Correct the distance valid
12257 for the short branch.
12259 2002-02-09 Kazu Hirata <kazu@hxi.com>
12261 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12263 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12265 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12266 registers in SImode.
12267 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12270 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12273 Contribute sh64-elf.
12274 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12275 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12276 (sh_cannot_modify_jumps_p): New function.
12277 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12278 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12279 (sh_ms_bitfield_layout_p): New function.
12280 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12281 Zack Weinberg <zack@codesourcery.com>
12282 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12283 expand_simple_binop instead of expand_binop.
12284 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12285 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12286 use of .quad and .uaquad.
12287 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12288 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12289 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12290 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12291 movdi_const_16bit): Make sure all CONSTs have modes.
12292 (sym2PIC): Ditto, but by adjusting all callers.
12293 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12294 if the prologue calls the SHmedia argument decoder or register
12296 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12297 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12298 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12299 (sh_expand_epilogue): Don't emit USE of return target register.
12300 (prepare_move_operands): Legitimize DImode PIC addresses.
12301 (sh_media_register_for_return): Skip tr0, used to initialize the
12303 (sh_expand_prologue): Remove explicit USE of return register.
12304 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12305 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12306 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12307 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12308 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12309 EXTRA_CONSTRAINT_T.
12310 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12311 (MOVI_SHORI_BASE_OPERAND_P): New.
12312 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12313 (EXTRA_CONSTRAINT_T): Define in terms of them.
12314 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12315 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12316 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12317 alternatives supporting TARGET_REGS.
12318 (UNSPEC_GOTPLT): New constant.
12319 (movdi split): Move incrementing of LABEL_NUSES...
12320 (movdi_const, movdi_const_32bit): Here. Use
12321 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12322 (movdi_const_16bit): New.
12323 (call, call_value) [flag_pic]: Use GOTPLT.
12324 (call_pop, call_value_pop): New expands.
12325 (call_pop_compact, call_pop_rettramp): New insns.
12326 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12327 (sibcall) [flag_pic]: Use GOT.
12328 (builtint_setjmp_receiver): Remove bogus, unused expand.
12329 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12330 (*pt, *ptb, ptrel): New insns.
12331 (sym2GOT): Handle DImode GOT.
12332 (sym2GOTPLT, symGOTPLT2reg): New expands.
12333 (sym2PIC): New expand.
12334 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12335 (shcompact_return_tramp_i): Use return register explicitly.
12336 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12337 disable flag_reorder_blocks.
12338 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12339 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12340 clobbers, for clarity.
12341 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12342 restoring of r0 in macl as MAYBE_DEAD.
12343 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12344 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12345 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12346 alter_subreg all over.
12347 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12348 reload, instead of emitting instructions that would require
12350 (casesi_load_media): Add missing modes.
12351 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12352 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12353 as used if the argument decoder is called.
12354 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12355 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12356 Pmode, then extend it to DImode if necessary.
12357 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12358 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12359 constants in FPU-enabled SHmedia, let them be loaded from memory.
12360 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12361 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12362 Adjust whitespace in assembly output templates.
12363 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12364 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12365 mode of if_then_else.
12366 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12367 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12369 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12370 Joern Rennecke <amylaar@redhat.com>
12371 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12372 (SUBTARGET_CPP_PTR_SPEC): New.
12373 (SUBTARGET_CPP_SPEC): Remove.
12374 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12375 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12376 Fix typo in previous checkin.
12377 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12378 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12379 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
12380 Alexandre Oliva <aoliva@redhat.com>
12381 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12382 what single FP register can hold for SHmedia target.
12383 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12384 Alexandre Oliva <aoliva@redhat.com>
12385 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12386 Do not split into SUBREG.
12387 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
12388 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12389 and added new functions as specified in SH5 ABI r9.
12390 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
12391 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12393 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
12394 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12395 gen_consttable_4 and gen_consttable_8. Emit multiple labels
12396 and consttable_window_ends.
12397 2001-06-03 Graham Stott <grahams@redhat,com>
12398 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12399 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
12400 * config/sh/sh.c (print_operand): Handle floating-point pair,
12401 vector and matrix registers.
12402 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12403 vector modes into account.
12404 * config/sh/sh.md (movv2sf): Split move between registers into
12406 (movv4sf, movv16sf): Introduce insns that get split only after
12408 * config/sh/shmedia.h: Fix Copyright dates.
12409 * config/sh/ushmedia.h: Likewise. Move loop counter
12410 declarations into conditionals that uses them.
12411 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12413 * config/sh/sshmedia.h: Fix Copyright dates.
12414 (sh_media_PUTCFG): Fix constraints.
12415 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
12416 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12417 ptrmemfunc_vbit_in_delta for SH5.
12418 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
12419 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12420 * invoke.texi: Likewise.
12421 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
12422 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12423 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12424 GCC_pop_shmedia_regs_nofpu): New global symbols.
12425 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12426 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12427 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12428 compact function with nonlocal labels.
12429 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12430 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12431 (initial_elimination_offset): Account for their stack space.
12432 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12433 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12434 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12435 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12436 least one of the operands to be a register.
12437 (movv2sf): Likewise. Renamed to movv2sf_i.
12438 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12439 prepare_move_operands() before emitting SHmedia insns.
12440 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
12441 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12442 Don't save nor initialize r12. Don't mis-align the stack.
12443 Pad the code with a nop.
12444 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
12446 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
12447 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12448 [__SHMEDIA__]: Implement.
12449 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
12450 * config/sh/sh.md: Set latency of `pt' closer to reality.
12451 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12452 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12453 Set move, load and store type attributes.
12454 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12455 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12457 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12458 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12459 * config/sh/sh.c (sh_media_register_for_return): New function.
12460 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12461 branch-target register.
12462 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12463 * config/sh/sh.md (return_media_i): Use any call-clobbered
12464 branch-target register.
12465 (return_media): If r18 wasn't copied in the prologue, copy it
12467 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12468 Clear class FP0_REGS.
12469 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12471 2001-03-08 DJ Delorie <dj@redhat.com>
12472 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12473 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
12474 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12475 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
12476 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12477 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
12478 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12479 return value correctly for call_cookie.
12480 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
12481 * config/sh/crt1.asm (start): Modified so as to call
12482 ___setup_argv_and_call_main.
12483 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
12484 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12486 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
12487 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12488 (STRIP_NAME_ENCODING): Use it.
12489 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
12490 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
12491 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12492 prepare_scc_operands().
12493 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12494 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12495 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
12496 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12497 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
12498 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12499 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12500 used in shcompact_incoming_args.
12501 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12503 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12505 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12506 Adjust accordingly.
12507 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12508 Simplify. Adjust. Add sanity check.
12509 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12511 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12513 (udivsi3, divsi3): Use them.
12514 (force_mode_for_call): New insn.
12515 (call, call_value, sibcall_value): Emit it before SHcompact
12517 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
12518 * config/sh/sh.md (call, call_value, sibcall): Make sure the
12519 call cookie is non-NULL before taking its value.
12520 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
12521 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12522 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
12523 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12525 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12526 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12527 temporary for stack adjusts. Use MACL and MACH to pass
12528 arguments to shcompact_incoming_args.
12529 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
12531 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12532 (nested_trampoline): Load static chain address into r1.
12533 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12534 2001-01-07 Alexandre Oliva <aoliva@redhat.com
12535 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12536 fp_arith_reg_operand().
12537 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
12538 * config/sh/sh.md (casesi): Sign-extend the first two operands,
12539 and use signed compares for them.
12540 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12541 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
12542 ones properly aligned.
12543 (find_barrier): Account for extra alignment needed for 8-byte wide
12545 (machine_dependent_reorg): Require a label for the second 4-byte
12546 constant after an 8-byte one.
12547 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12549 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12550 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12551 last_float when switching float modes.
12552 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12553 auto-increment for general-purpose registers.
12554 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12556 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12558 * config/sh/sh.c (sh_builtin_saveregs): Support using all
12559 registers for varargs.
12560 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
12561 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12562 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12563 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12564 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12565 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
12566 call_cookie accordingly.
12567 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12568 (SHCOMPACT_BYREF): Likewise.
12569 (SHCOMPACT_FORCE_ON_STACK): New macro.
12570 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12571 (sh_builtin_saveregs): Likewise.
12572 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12573 shcompact_incoming_args): Use new shift values. Support
12574 sequences of consecutive and non-consecutive pushes/pops.
12575 * config/sh/sh.md (return): Don't explicitly use PR_REG.
12576 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
12577 * config/sh/sh.h (TEXT_SECTION): Define.
12578 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12579 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12580 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12581 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12582 return values on FPU-enabled SHmedia.
12583 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12584 FPU-enabled SHmedia.
12585 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12586 value is returned in a non-FP reg and is not returned by
12588 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12590 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
12591 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12592 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12593 quad-aligned to be passed by callee-copy reference.
12594 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
12595 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12596 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12597 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
12598 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12599 copying low-numbered FP regs to r7 and r8.
12600 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12601 FP regs to general-purpose regs only if the copy was passed on the
12603 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12604 copying FP reg to r9.
12605 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12606 copy FP regs to general-purpose regs only in outgoing calls.
12607 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12608 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
12610 * config/sh/sh.h (struct sh_args): Document all fields.
12611 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12612 passed partially on the stack should not consider making
12614 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12615 stack_regs only for incoming calls. When passing FP args,
12616 make sure there are FP regs available before modifying
12618 (SHCOMPACT_BYREF): Pass double args in general-purpose
12619 registers by reference.
12620 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
12621 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12622 attempt to generate sibcalls if the caller got any arguments
12624 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12625 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12626 to 8-byte boundaries.
12627 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12628 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12629 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12630 stored in the stack.
12631 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12632 for the offsets to have the ISA bit set.
12633 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
12634 invocation. Use beq instead of bgt to mark end of sequence of
12636 (shcompact_incoming_args): Fix store of r2. Use beq instead of
12637 bgt to mark end of sequence of stores.
12638 * config/sh/sh.c (arith_operand): Don't check whether
12639 CONST_OK_FOR_J for now.
12640 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12641 instead of long for conversion.
12642 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
12643 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12644 before passing it to fprintf.
12645 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
12646 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12647 Call set_fpscr before reading/writing SR.
12648 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12650 * config/sh/lib1funcs.asm: Add `.align 2' directives before
12652 (FMOVD_WORKS): Define on SH5 with FPU.
12653 (set_fpscr): Define on SH5. Remove separate _fpscr_values
12655 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12657 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
12658 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12660 (ia_main_table): Ditto.
12661 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
12662 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12663 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12664 the definitions from sh.h.
12665 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12667 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12668 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12669 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12670 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
12671 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12672 Increment LABEL_NUSES.
12674 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12676 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12678 * config/sh/elf.h (SIZE_TYPE): Likewise.
12679 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12680 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12681 shcompact_incoming_args): Load switch table addresses using
12683 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12684 (NO_BUILTIN_SIZE_TYPE): Define.
12685 (SIZE_TYPE): Don't define.
12686 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12687 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12688 definition of __SH5__=32 for -m5-compact-nofpu.
12689 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12691 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
12692 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12693 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
12694 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12695 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12696 (INSN_LENGTH_ALIGNMENT): Likewise.
12697 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12698 * config/sh/sh.md (call, call_value, sibcall): Simplify
12699 copying of non-branch-target register.
12700 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12701 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
12702 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12703 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12704 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12705 floating-point values as structs.
12706 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12707 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12708 general-purpose register.
12709 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12710 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12711 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12712 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12713 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12714 (ENCODE_SECTION_INFO): Enclose variables and constants in
12716 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12717 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12718 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12719 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12720 only for LABEL_REFs. For SYMBOL_REFs, prepend
12721 SH_DATALABEL_ENCODING to the symbol name.
12722 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12724 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12725 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12727 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12728 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12729 (DATALABEL_REF_P): Don't require CONST.
12730 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12732 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
12733 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12735 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12736 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12737 Use shallow_copy_rtx and PUT_MODE to change the mode of
12738 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12739 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12740 on SHmedia using GENERAL_REGs.
12741 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12742 bltu_media_i): Fix reversion of conditions.
12743 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12744 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12745 * config/sh/sh.c (output_far_jump): Save r13 in macl.
12746 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
12747 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12748 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
12749 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12750 (GCC_nested_trampoline): Likewise.
12751 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12752 * config/sh/sh.c (gen_datalabel_ref): Define.
12753 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12754 (INITIALIZE_TRAMPOLINE): Likewise.
12755 (TRAMPOLINE_ADJUST_ADDRESS): Define.
12756 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12757 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12758 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12759 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12760 (ic_invalidate): Adjust for SH5.
12761 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12762 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12763 _nested_trampoline.
12764 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
12765 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12766 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12767 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12768 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12769 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12770 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12771 * config/sh/sh.c (target_reg_operand): Match only target-branch
12772 registers and pseudos that aren't virtual registers.
12773 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12774 Copy operands that don't match target_reg_operand to pseudos.
12775 (call_media, call_value_media, sibcall_media): Use
12776 target_reg_operand instead of target_operand.
12777 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
12778 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12779 * config/sh/sh.c (target_reg_operand): Match hardware registers
12780 other than branch-target registers.
12781 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12782 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12783 (fpscr_values) [SH5 == 32]: Define.
12784 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12785 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12786 Handle function addresses coming in SUBREGs.
12787 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
12788 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12789 shcompact_return_trampoline): Use datalabel where appropriate.
12790 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
12791 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12792 general-purpose register to copy one branch-target register to
12794 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12795 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12796 SYMBOL_REFs with VOIDmode.
12797 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12798 bltu_media_i): New insns.
12799 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12800 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12801 (INIT_CUMULATIVE_ARGS): Likewise.
12802 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
12803 * machmode.def (V16SFmode): New mode.
12804 * c-common.c (type_for_mode): Support V2SF and V16SF.
12805 * tree.c (build_common_tree_nodes_2): Likewise.
12806 * tree.h (tree_index): Likewise.
12807 * calls.c (emit_call_1): Take args_so_far. Adjust all
12808 callers. Introduce CALL_POPS_ARGS.
12809 * tm.texi (CALL_POPS_ARGS): Document.
12810 * config/sh/crt1.asm: Implement in SHmedia mode.
12811 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12812 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12813 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12814 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12815 Implement divsi and udivsi in SHmedia mode. Introduce
12816 SHcompact trampolines.
12817 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12819 (regno_reg_class): Rewrite.
12820 (fp_reg_names): Remove.
12821 (sh_register_names, sh_additional_register_names): New.
12822 (print_operand): Added `u'. Support SUBREGs in addresses.
12823 Add parentheses around shifted CONSTs.
12824 (output_file_start): Output .mode and .abi directives.
12825 (shiftcosts, addsubcosts, multcosts): Adjust.
12826 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
12827 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
12828 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
12829 bytes, not registers. Take into account the need for the
12830 SHcompact incoming args trampoline. Adjust all callers.
12831 (sh_expand_prologue): Take stack_regs into account. Call
12832 incoming args trampoline. Keep stack aligned as per SH5 ABI.
12833 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
12834 stack aligned as per SH5 ABI.
12835 (sh_builtin_saveregs): Support SH5 ABI.
12836 (sh_build_va_list, sh_va_start): Likewise.
12837 (initial_elimination_offset): Take alignment into account.
12838 Compute location of PR according to the SH5 stack frame.
12839 (arith_reg_operand): Reject branch-target registers.
12840 (shmedia_6bit_operand): New.
12841 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12842 (target_reg_operand): Match DImode only. Accept SUBREGs.
12843 (target_operand): New.
12844 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
12845 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
12846 SIBCALL_REGS for SHmedia.
12847 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
12848 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
12849 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
12850 (TARGET_SWITCHES): New SH5 flags.
12851 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
12852 VALID_REGISTER_P to disable unsupported registers.
12853 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
12854 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
12855 (FUNCTION_ARG_PADDING): Define.
12856 (FASTEST_ALIGNMENT): Adjust.
12857 (SH_REGISTER_NAMES_INITIALIZER): New.
12858 (sh_register_names): Declare.
12859 (DEBUG_REGISTER_NAMES): Define.
12860 (REGISTER_NAMES): Define based on sh_register_names.
12861 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
12862 (sh_additional_register_names): Declare.
12863 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
12864 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
12865 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
12866 (REGISTER_NATURAL_MODE): Define.
12867 (FIRST_PSEUDO_REGISTER): Adjust.
12868 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
12869 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
12870 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
12871 (VECTOR_MODE_SUPPORTED_P): Define.
12872 (REG_CLASS_CONTENTS): Adjust.
12873 (SMALL_REGISTER_CLASSES): Adjust.
12874 (REG_ALLOC_ORDER): Adjust.
12875 (INDEX_REG_CLASS): Adjust.
12876 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
12877 (CONST_OK_FOR_LETTER_P): Adjust.
12878 (PREFERRED_RELOAD_CLASS): Adjust.
12879 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
12880 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
12881 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
12882 (FIRST_FP_PARM_REG): Adjust.
12883 (CALL_POPS_ARGS): Define.
12884 (FUNCTION_ARG_REGNO_P): Adjust.
12885 (struct sh_args): New fields.
12886 (GET_SH_ARG_CLASS): Adjust.
12887 (INIT_CUMULATIVE_ARGS): Adjust.
12888 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
12889 (FUNCTION_ARG_ADVANCE): Adjust.
12890 (FUNCTION_ARG): Adjust.
12891 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
12892 (FUNCTION_ARG_CALLEE_COPIES): Define.
12893 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
12894 (STRICT_ARGUMENT_NAMING): Define.
12895 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
12896 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
12897 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
12898 (SETUP_INCOMING_VARARGS): Adjust.
12899 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
12900 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
12901 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
12902 (SUBREG_OK_FOR_INDEX_P): Adjust.
12903 (EXTRA_CONSTRAINT_S): Update.
12904 (EXTRA_CONSTRAINT_T): New.
12905 (EXTRA_CONSTRAINT): Adjust.
12906 (GO_IF_LEGITIMATE_INDEX): Adjust.
12907 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
12908 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
12909 (MOVE_MAX): Adjust.
12910 (MAX_MOVE_MAX): Define.
12912 (CONST_COSTS): Adjust.
12913 (REGISTER_MOVE_COST): Adjust.
12914 (BRANCH_COST): Adjust.
12915 (TEXT_SECTION_ASM_OP): Adjust.
12916 (DBX_REGISTER_NUMBER): Adjust.
12917 (ASM_OUTPUT_DOUBLE_INT): New.
12918 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
12919 (PREDICATE_CODES): Adjust.
12920 (PROMOTE_MODE): Adjust.
12921 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
12922 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
12923 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
12924 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
12925 (DR0_REG, DR2_REG, DR4_REG): Renumber.
12926 (TR0_REG, TR1_REG, TR2_REG): New.
12927 (XD0_REG): Renumber.
12928 (UNSPEC_COMPACT_ARGS): New.
12929 (type): Added pt and ptabs.
12930 (length): Default to 4 on SHmedia. Default pt length to 12
12931 and 20 on SHmedia32 and SHmedia64, respectively.
12932 (pt): New function unit.
12933 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
12934 Add whitespace between operands of SHmedia instructions.
12936 (adddi3_media, addsi3_media): Adjust constraints.
12937 (subsi3) [SHmedia]: Force operand 1 into a register.
12938 (udivsi3_i1_media, udivsi3_i4_media): New.
12939 (udivsi3): Support SHmedia.
12940 (divsi3_i1_media, divsi3_i4_media): New.
12941 (divsi3): Support SHmedia.
12942 (anddi3, iordi3, xordi3): Adjust constraints.
12943 (zero_extendhidi2, zero_extendqidi2): New.
12944 (extendsidi2, extendhidi2, extendqidi2): New.
12945 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
12946 (pop_e, pop_fpul, pop_4): Likewise.
12947 (movsi_media): Support FP and BT registers.
12948 (movsi_media_nofpu): New. Adjust splits to DImode.
12949 (lduw, ldub): Renamed to zero_extend* above.
12950 (movqi_media): Fix typo.
12951 (movdi_media): Support FP and BT registers.
12952 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
12953 (movdi_const_32bit): New.
12954 (shori_media): Require immediate operand. Use `u' for output.
12955 (movdf_media, movsf_media): Simplified.
12956 (movdf_media_nofpu, movsf_media_nofpu): New.
12957 (movdf, movsf): Adjust
12958 (movv2sf, movv2sf, movv16sf): New.
12959 (beq_media, beq_media_i): Adjust constraints. Don't use
12960 scratch BT register.
12961 (bne_media, bne_media_i): Likewise.
12962 (bgt_media, bgt_media_i): Likewise.
12963 (bge_media, bge_media_i): Likewise.
12964 (bgtu_media, bgtu_media_i): Likewise.
12965 (bgeu_media, bgeu_media_i): Likewise.
12966 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
12967 bunordered): Emit jump insn. Force operands to registers when
12969 (jump_media, jump): Simplify.
12970 (call_compact, call_compact_rettramp): New.
12971 (call_value_compact, call_value_compact_rettramp): New.
12972 (call_media, call_value_media): Simplify.
12973 (sibcall_compact, sibcall_media): New.
12974 (call, call_value): Adjust for SHmedia and SHcompact.
12975 (sibcall, sibcall_value, untyped_call): Likewise.
12976 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
12977 (indirect_jump): Adjust for SHmedia.
12978 (casesi_jump_media): New.
12979 (nop): Re-enable for SHmedia.
12980 (call_site): Restrict to SH1.
12981 (casesi): Adjust for SHmedia.
12982 (casesi_shift_media, casesi_load_media): New.
12983 (return): Explicitly use PR register. Call return trampoline
12985 (return_i): Explicitly use PR register.
12986 (shcompact_return_tramp, shcompact_return_tramp_i): New.
12987 (return_media): Adjust.
12988 (shcompact_incoming_args): New.
12989 (epilogue): Adjust.
12990 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12991 (movstrsi): Disable on SH5.
12992 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
12993 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
12994 (subsf3, subsf3_media): Likewise.
12995 (mulsf3, mulsf3_media, mac_media): Likewise.
12996 (divsf3, divsf3_media): Likewise.
12997 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
12998 (floatsisf2, fux_truncsfsi2): Likewise.
12999 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
13001 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13002 (cmpunsf_media, cmpsf): Likewise.
13003 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13004 (abssf2, abssf2_media): Likewise.
13005 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13006 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13007 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
13008 (floatsidf2, fix_truncdfsi2): Likewise.
13009 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
13011 (cmpeqdf_media, cmpgtdf_media): Likewise.
13012 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13013 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13014 (absdf2, absdf2_media): Likewise.
13015 (extendsfdf2, extendsfdf2_media): Likewise.
13016 (truncsfdf2, truncsfdf2_media): Likewise.
13017 * config/sh/sh64.h: New file.
13018 * config/sh/t-sh64: New file.
13019 * config/sh/shmedia.h: New file.
13020 * config/sh/ushmedia.h: New file.
13021 * config/sh/sshmedia.h: New file.
13022 * configure.in: Added sh64-*-elf.
13023 * configure: Rebuilt.
13024 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
13025 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13026 (reg_class_from_letter): Use `b' for TARGET_REGS.
13027 (print_operand): Support `%M', `%m', `AND' and
13028 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
13029 (andcosts): Adjust for SHmedia.
13030 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13032 (target_reg_operand): New function.
13033 * config/sh/sh-protos.h (target_reg_operand): Declare.
13034 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13035 FP registers on SH5.
13036 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13038 (TARGET_REGISTER_P): New macro.
13039 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13040 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13041 (EXTRA_CONSTRAINT_S): New macro.
13042 (EXTRA_CONSTRAINT): Adjust.
13043 (FLOAT_TYPE_SIZE): Define to 32.
13044 (Pmode): DImode on SHmedia.
13045 (CONST_COSTS): Adjust for SHmedia literals.
13046 (PREDICATE_CODES): Added target_reg_operand.
13047 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13048 * config/sh/sh.md: Remove all attrs from SHmedia insns.
13049 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13050 (cmpdi): Accept SHmedia.
13051 (movdicc_false, movdicc_true): New insns.
13052 (movdicc): New expand.
13053 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13055 (addsi3_media): Match `S' constraint.
13056 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13057 (negdi2): Expand for SHmedia.
13058 (one_cmpldi2): New expand.
13059 (zero_extendsidi2): Change from expand to insn.
13060 (extendsidi2): Add constraints.
13061 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
13062 LD/ST address. Fix SI immediate loading split.
13063 (movhi_media, movqi_media, lduw, ldub): New insns.
13064 (movhi, movqi): Accept SHmedia.
13065 (shori_media, movdi_media): Relax input constraints. Split
13066 symbolic constants.
13067 (movdf_media, movsf_media): New insn. New split to movdi.
13068 (movdf, movsf): Match on SHmedia.
13069 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13070 bgeu_media): New insns and splits. New insns with `_i' suffix.
13071 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13072 (bunordered): New expand.
13073 (jump_compact): Renamed from `jump'.
13074 (jump_media): New insn.
13075 (jump): New expand.
13076 (call_media, call_value_media): New insns.
13077 (call, call_value): Adjust.
13078 (indirect_jump_compact): Renamed from `indirect_jump'.
13079 (indirect_jump_media): New insn.
13080 (indirect_jump): New expand.
13081 (untyped_call, return): Accept SHmedia.
13082 (return_media): New insn.
13083 (prologue, epilogue, blockage): Accept SHmedia.
13084 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13085 (sunordered): New expand.
13086 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13087 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13088 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13089 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13090 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13091 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13092 abssf2_media): New insns.
13093 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13094 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13095 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13096 floatdidf2, floatsidf2_media, fix_truncdfdi2,
13097 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13098 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13099 absdf2_media): New insns.
13100 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13101 (extendsfdf2_media, truncdfsf2_media): New insns.
13102 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
13103 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13104 * config/sh/sh.h (CONST_OK_FOR_J): Document.
13105 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13106 * config/sh/sh.md (adddi3): New expand.
13107 (adddi3_media, adddi3z_media): New insns.
13108 (adddi3_compact): Renamed from adddi3.
13109 (addsi3_media): Use add.l r63 to add constant zero.
13110 (subdi3): New expand.
13111 (subdi3_media): New insn.
13112 (subdi3_compact): Renamed from subdi3.
13113 (mulsidi3): New expand.
13114 (mulsidi3_media): New insn.
13115 (mulsidi3_compact): Renamed from mulsidi3.
13116 (umulsidi3): New expand.
13117 (umulsidi3_media): New insn.
13118 (umulsidi3_compact): Renamed from umulsidi3.
13119 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13120 (ashlsi3, ashrsi3, lshrsi3): Use them.
13121 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13122 (ashldi3, ashrdi3, lshrdi3): Use them.
13123 (zero_extendsidi2): New expand.
13124 (extendsidi2): New insn.
13125 (movsi_media): New insn. Split to movdi to load constants.
13126 (movsi): Enable for shmedia.
13127 (movdi_media): New insn. Use shori_media to load wide constants.
13128 (short_media): New insn.
13129 (movdi): Enable for shmedia.
13130 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
13131 * config/sh/sh.h (CPP_SPEC): Added `m5'.
13132 (SUBTARGET_CPP_SPEC): Added `!m5'.
13133 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13134 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
13135 to all other SH variants.
13136 (TARGET_DEFAULT): Set to SH1_BIT.
13137 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13138 (BITS_PER_WORD): Raise to 64 on shmedia.
13139 (MAX_BITS_PER_WORD): Change to 64.
13140 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13141 (INT_TYPE_SIZE): Keep as 32.
13142 (UNITS_PER_WORD): Raise to 8 on shmedia.
13143 (MIN_UNITS_PER_WORD): Keep as 4.
13144 (POINTER_SIZE): Raise to 64 on shmedia.
13145 (CONST_OK_FOR_J): New macro.
13146 (CONST_OK_FOR_LETTER_P): Use it.
13147 (processor_type): Add PROCESSOR_SH5.
13148 * config/sh/sh.md: Conditionalize all expands, insns and
13149 splits to TARGET_SH1.
13151 (addsi3_compact): Renamed from...
13152 (addsi3): Now an expand.
13153 (addsi3_media, subsi3_media): New insns.
13154 (subsi3): Don't negate constants with SHmedia.
13156 * hooks.c: New file.
13157 * hooks.h: New file.
13158 * Makefile.in (HOOKS_H): New.
13159 (TARGET_DEF_H): Added $(HOOKS_H).
13160 (OBJS): Added hooks.o.
13161 (cfgcleanup.o, bb-reorder.o): Added target.h.
13162 (hooks.o): Added dependencies.
13163 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13164 (TARGET_INITIALIZER): this.
13165 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13166 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13167 * bb-reorder.c: Include target.h.
13168 (reorder_basic_blocks): Skip if cannot modify jumps.
13169 * cfgcleanup.c: Include target.h.
13170 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13172 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13174 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13175 Protect jump delay slot instructions with .set noreorder and
13178 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13180 * config/mips/mips.md (casesi_internal_di): Calculate
13181 the index into the target offset table correctly.
13183 2002-02-08 Richard Henderson <rth@redhat.com>
13185 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13186 * final.c (output_addr_const): Accept and discard SUBREG.
13187 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13188 mark them unknown instead.
13189 (simplify_subtraction): Handle RTX_UNKNOWN.
13190 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13192 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13194 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13196 2002-02-08 Richard Henderson <rth@redhat.com>
13198 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13200 2002-02-08 Andreas Jaeger <aj@suse.de>
13202 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13203 * config/i386/t-linux64: New file.
13205 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13207 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13208 * c-parse.in (compstmt): Clear last_expr_type.
13210 2002-02-07 Richard Henderson <rth@redhat.com>
13212 * loop.c (strength_reduce): Sink final_value when not
13215 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13217 * config/sparc/freebsd.h: Fix mismatched spec {.
13219 2002-02-07 Richard Henderson <rth@redhat.com>
13221 * cfgrtl.c: Include recog.h and insn-config.h.
13222 (keep_with_call_p): Fix general_operand invocation.
13223 * Makefile.in (cfgrtl.o): Update dependencies.
13225 2002-02-07 Kazu Hirata <kazu@hxi.com>
13227 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13228 comment. Accept HImode only if TARGET_H8300.
13230 2002-02-07 Eric Christopher <echristo@redhat.com>
13232 * config/mips/crtn.asm: Cleanup #ifdefs.
13234 2002-02-07 Eric Christopher <echristo@redhat.com>
13236 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13237 register 7 as RA instead of $31.
13238 * config/mips/crtn.asm: Ditto.
13239 * config/mips/mips.c (mips_move_2words): Add case for
13240 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13241 (compute_frame_size): Fix typo.
13242 (save_restore_insns): Ditto. Make documentation about using
13243 register $7 as return register more precise.
13244 (mips_expand_epilogue): Fix comment. Add code to work around not
13245 being able to add to the stack pointer directly.
13246 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13247 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13250 2002-02-07 Tom Rix <trix@redhat.com>
13252 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13253 immediates in ldu and stdu DS opcode field.
13254 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13255 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13256 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13258 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13260 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13261 offset for stack bias.
13263 2002-02-07 H.J. Lu <hjl@gnu.org>
13265 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13267 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13269 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13271 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13273 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13274 * i386.c (x86_order_regs_for_local_alloc): New global function.
13275 * i386.h (REG_ALLOC_ORDER): CLeanup.
13276 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13278 2002-02-07 Richard Henderson <rth@redhat.com>
13280 PR optimization/2463
13281 * alias.c (find_base_value): Recall base values for fixed hard regs.
13282 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13284 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13286 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13289 2002-02-06 Richard Henderson <rth@redhat.com>
13292 * stmt.c (resolve_operand_name_1): Take more care with mixed
13293 named and unnamed operands.
13295 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13296 Jan Hubicka <jh@suse.cz>
13298 * loop.c (remove_constant_addition): Avoid clobbering a shared
13301 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13303 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13304 * config/s390/t-linux64: New file.
13305 * config/s390/libgcc-glibc.ver: New file.
13307 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13309 * config/s390/linux64.h: Delete file.
13310 * config/s390/s390x.h: New file.
13311 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13312 as target header file.
13313 * config/s390/linux.h (TARGET_VERSION): Define depending on
13314 DEFAULT_TARGET_64BIT.
13315 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13316 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13317 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13318 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13319 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13320 (EXTRA_SPEC): New define.
13321 * config/s390/s390.h (TARGET_VERSION): Define depending on
13322 DEFAULT_TARGET_64BIT.
13323 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13325 2002-02-06 Jason Merrill <jason@redhat.com>
13327 * c-decl.c (finish_function): Warn about a non-void function with
13328 no return statement and no abnormal exit.
13329 (current_function_returns_abnormally): New variable.
13330 (start_function): Clear it.
13331 (struct c_language_function): Add returns_abnormally.
13332 (push_c_function_context): Save it.
13333 (pop_c_function_context): Restore it.
13334 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13335 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13336 an explicit return type.
13337 * c-tree.h: Declare current_function_returns_abnormally.
13338 (C_FUNCTION_IMPLICIT_INT): New macro.
13339 * c-typeck.c (build_function_call): Set it.
13340 (c_expand_return): Set current_function_returns_value even if the
13341 value is erroneous.
13343 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13346 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13347 unsafe for reevaluation.
13349 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13352 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13353 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13355 2002-02-06 Richard Henderson <rth@redhat.com>
13357 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13358 be a general_operand. Dest for function value must be a pseudo.
13360 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13362 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13363 as SYMBOL_REFs from the constant pool.
13365 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13367 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13368 passed by invisible reference.
13370 2002-02-05 Richard Henderson <rth@redhat.com>
13372 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13374 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13376 Implement using "base addresses" in insn operands as default.
13377 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13378 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13379 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13380 used to read the rtx value.
13381 (mmix_target_asm_function_epilogue): Fix spacing.
13382 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13383 (mmix_legitimate_address): Ditto.
13384 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13385 should be loaded with a GETA insn. Don't allocate needless extra
13386 char for nul termination and fix misleading comment.
13387 (mmix_print_operand_address): Handle constants if
13388 TARGET_BASE_ADDRESSES.
13389 (mmix_output_register_setting): Use base addressing if
13390 TARGET_BASE_ADDRESSES and the number of insns is 3.
13391 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13392 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13393 to use R as constraint, add LDA to match s.
13394 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13395 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13396 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13397 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13398 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13399 order with other fixed registers.
13400 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13401 other parameter/call-clobbered registers.
13402 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13403 -mbase-addresses, -mno-base-addresses.
13404 (MMIX Options): Ditto.
13406 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13408 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13410 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
13412 * config/rs6000/altivec.h: Change elem to _S_elem.
13414 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13416 * config/netbsd.h (WCHAR_TYPE): Define.
13417 (WCHAR_TYPE_SIZE): Ditto.
13418 (WINT_TYPE): Ditto.
13419 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13420 (WCHAR_UNSIGNED): Ditto.
13421 (WCHAR_TYPE_SIZE): Ditto.
13422 (WINT_TYPE): Ditto.
13423 * config/arm/netbsd.h: Likewise.
13424 * config/i386/netbsd-elf.h: Likewise.
13425 * config/i386/netbsd.h: Likewise.
13426 * config/m68k/netbsd-elf.h: Likewise.
13427 * config/m68k/netbsd.h: Likewise.
13428 * config/ns32k/netbsd.h: Likewise.
13429 * config/sparc/netbsd.h: Likewise.
13430 * config/vax/netbsd.: Likewise.
13432 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
13434 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13435 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
13436 (TARGET_INITIALIZER): this.
13437 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13438 (BITFIELD_NBYTES_LIMITED): Markup fix.
13439 * tree.h (default_ms_bitfield_layout_p): Declare.
13440 (record_layout_info): Added prev_field.
13441 * tree.c (default_ms_bitfield_layout_p): New fn.
13442 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13443 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13444 * stor-layout.c: Include target.h.
13445 (start_record_layout): Initialize prev_field.
13446 (place_field): Handle MS bit-field layout, and disregard
13447 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13448 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
13449 * Makefile.in (stor-layout.o): Adjust dependencies.
13451 2002-02-05 Jason Merrill <jason@redhat.com>
13453 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13455 2002-02-05 Andreas Jaeger <aj@suse.de>
13457 * crtstuff.c: Fix comments.
13459 2002-02-05 Richard Henderson <rth@redhat.com>
13462 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13463 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13466 * config/mips/mips.c (function_arg): Handle TImode.
13467 (function_arg_advance): Likewise.
13469 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13471 * config/rs6000/altivec.h (vec_step_help): Rename to
13474 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13476 * config/rs6000/altivec.h: Fix typos.
13478 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13480 * config/arm/netbsd.h: Correct a comment.
13482 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13484 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13485 building void typed builtins.
13487 * config/rs6000/altivec.h (vec_ld*): Fix typos.
13488 (vec_step): Implement for C++.
13490 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13492 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13494 2002-02-04 Richard Henderson <rth@redhat.com>
13496 * combine.c (nonzero_bits): Re-introduce special case for
13497 sp/fp/ap wrt REGNO_POINTER_ALIGN.
13499 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13501 * doc/extend.texi: Warn about unsupported usage of altivec
13504 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13505 (altivec_predicate_*): New.
13507 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13508 Add C++ version of vec_*() functions.
13510 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13511 (bdesc_2arg): Remove altivec predicates.
13512 (altivec_expand_builtin): Handle predicates.
13513 (altivec_init_builtins): Handle predicates.
13514 (altivec_expand_predicate_builtin): New.
13516 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13518 * pa.c (DO_FRAME_NOTES): Move forward.
13519 (store_reg): Revise handling of frame notes.
13520 (load_reg): Likewise.
13521 (set_reg_plus_d): Likewise.
13522 (hppa_expand_prologue): Likewise.
13523 (hppa_expand_epilogue): Likewise.
13525 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13527 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13529 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13531 PR c/4475, c++/3780:
13532 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13533 * c-common.h (SWITCH_TYPE): Define.
13534 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13535 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13536 Rename spareness variable to sparseness.
13537 (expand_end_case_type): Renamed from expand_end_case, use orig_type
13538 if non-NULL instead of TREE_TYPE (orig_index).
13539 * tree.h (expand_end_case_type): Renamed from expand_end_case.
13540 (expand_end_case): Define using expand_end_case_type.
13541 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13542 to expand_end_case_type.
13543 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13545 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13547 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13548 (BIGGEST_ALIGNMENT): Change to 128.
13550 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13552 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13554 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13556 * pa.md (call_internal_reg_64bit): Remove unused variable.
13558 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
13560 * config/arm/arm.h (machine_function): Add uses_anonymous_args
13562 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13563 * config/arm/arm.c (current_function_anonymous_args): Delete,
13564 replace uses with cfun->machine->uses_anonymous_args.
13565 (arm_reorg): Do not reset uses_anonymous_args.
13567 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13568 any geenral register.
13570 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
13572 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13575 2002-02-04 Richard Henderson <rth@redhat.com>
13577 * combine.c (force_to_mode): Remove STACK_BIAS code.
13578 (nonzero_bits): Likewise. Replace sp/fp special case with
13579 REGNO_POINTER_ALIGN.
13581 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13582 (HARD_FRAME_POINTER_REGNUM): New.
13583 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13584 (FIXED_REGS, CALL_USED_REGS): Update.
13585 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13586 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13587 (HARD_REGNO_NREGS): Update for SFP.
13588 (STACK_POINTER_OFFSET): Include bias here ...
13589 (FIRST_PARM_OFFSET): ... not here.
13590 (STACK_BIAS): Remove.
13591 (INIT_EXPANDERS): New.
13592 (STARTING_FRAME_OFFSET): Do not include bias.
13593 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13594 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13595 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13596 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13597 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13598 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13599 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13600 (MUST_SAVE_REGISTER): Likewise.
13601 (sparc_flat_function_prologue): Likewise.
13602 (sparc_flat_function_epilogue): Likewise.
13603 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13604 (sparc_init_modes): SFP is GENERAL_REGS.
13605 (sparc_builtin_saveregs): SFP does not have bias applied.
13607 2002-02-04 Richard Henderson <rth@redhat.com>
13609 * config/alpha/alpha.c (current_function_is_thunk): Don't check
13610 current_function_is_thunk.
13611 (alpha_sa_mask): Distinguish between current_function_is_thunk
13612 called from ASM_OUTPUT_MI_THUNK and not.
13613 (alpha_does_function_need_gp): Thunks always need gp.
13614 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13615 (alpha_output_mi_thunk_osf): New.
13616 * config/alpha/alpha-protos.h: Update.
13617 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13619 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
13621 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13622 function types, not when they're taken away.
13624 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
13626 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13627 CODE_LABEL and jump table when replacing a table jump with a
13630 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13632 * config/s390/s390-protos.h (legitimize_la_operand,
13633 s390_secondary_input_reload_class, s390_plus_operand,
13634 s390_expand_plus_operand): Add prototypes.
13636 config/s390/s390.c (s390_secondary_input_reload_class,
13637 s390_plus_operand, s390_expand_plus_operand): New functions.
13639 (struct s390_address): New member 'pointer'.
13640 (s390_decompose_address): Compute it.
13641 (legitimate_la_operand_p): Use it.
13642 (legitimize_la_operand): New function.
13643 (movti, movdi, movdf splitters): Call it.
13645 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13646 (PREDICATE_CODES): Add s390_plus_operand.
13648 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13649 (la_ccclobber): Allow GENERAL_REGS as output operand.
13651 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13652 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13653 (*la_64, *la_31, reload_indi, reload_insi): ... these.
13655 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13657 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13658 register names for regular asm () construct.
13660 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13662 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13665 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13667 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13670 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
13672 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13673 constant pool to be identical by string address and index.
13675 2002-02-04 Anthony Green <green@redhat.com>
13677 * output.h (SECTION_OVERRIDE): Define.
13678 * varasm.c (named_section): Obey SECTION_OVERRIDE.
13680 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13682 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13683 by existing arm*-*-netbsd* (a.out) target.
13684 (ns32k-*-netbsdelf*): Likewise.
13685 (sparc-*-netbsdelf*): Likewise.
13686 (vax-*-netbsdelf*): Likewise.
13688 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
13690 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13691 headers and libobjc headers.
13693 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
13695 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13696 (_mingw.h): Remove duplicate include.
13698 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13700 * config.gcc: Set cpu_type to m68k for 68010, as well.
13701 (m68010-*-netbsdelf*): New...
13702 (m68k*-*-netbsdelf*): ...targets.
13703 * config/m68k/netbsd-elf.h: New file.
13705 2002-02-02 Kazu Hirata <kazu@hxi.com>
13707 * config/h8300/h8300.c (hand_list): Move inside function_arg.
13709 2002-02-02 Kazu Hirata <kazu@hxi.com>
13711 * config/h8300/h8300.c (h8_push_ops): Move inside
13713 (h8_pop_ops): Likewise.
13714 (h8_move_ops): Likewise.
13716 2002-02-02 Kazu Hirata <kazu@hxi.com>
13718 * config/h8300/h8300.c (os_task): Make it static.
13719 (monitor): Likewise.
13720 (pragma_saveall): Likewise.
13722 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
13724 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13725 constant is a valid sign-extension for Pmode.
13727 2002-02-02 Kazu Hirata <kazu@hxi.com>
13729 * config/h8300/h8300.c: Fix formatting.
13731 2002-02-02 Kazu Hirata <kazu@hxi.com>
13733 * config/h8300/h8300.md: Fix formatting.
13735 2002-02-02 Kazu Hirata <kazu@hxi.com>
13737 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13738 predicates of operands[1]. Split the patterns for each
13741 2002-02-02 Kazu Hirata <kazu@hxi.com>
13743 * config/h8300/h8300.md (xor patterns): Tighten the predicates
13744 of operands[1] to register_operand.
13746 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13748 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13749 * cpphash.c (_cpp_init_hashtable): Similarly.
13750 * cppinit.c (cpp_create_reader): Default the signed_char flag.
13751 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13752 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13753 (cpp_handle_option): Handle the new options.
13754 * cpplex.c (cpp_interpret_charconst): Use new flag.
13755 * cpplib.h (struct cpp_options): New member signed_char.
13756 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13757 (cpp_options): Handle -fsigned-char and -funsigned-char.
13758 (static_specs): Remove signed_char_spec.
13759 (do_spec1): Don't handle %c.
13760 * system.h: Poison SIGNED_CHAR_SPEC.
13761 * tradcif.y (yylex): Use flag_signed_char.
13762 * tradcpp.h (flag_signed_char): New.
13763 * tradcpp.c (flag_signed_char): New.
13764 (main): Handle new command-line options.
13765 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13767 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13768 * avr/avr.h: Remove old comments.
13769 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13770 (CC1_SPEC): Pass -fsigned-char if -mic*.
13771 (SIGNED_CHAR_SPEC): Remove.
13773 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13775 2002-02-01 Eric Christopher <echristo@redhat.com>
13777 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13778 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13779 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13780 (ASM_OUTPUT_REG_POP): Ditto.
13782 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13784 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13787 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13789 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13791 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13794 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13797 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13799 * cfganal.c: Include tm_p.h.
13800 (keep_with_call_p): Fix the test that determines if a register holds
13801 the return value of a call.
13803 2002-02-01 DJ Delorie <dj@redhat.com>
13805 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13806 we are given conflicting registers, switch to the other one we
13807 had allocated for us.
13808 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13809 as TImode so we know when the "other" register is available.
13811 2002-02-01 David O'Brien <obrien@FreeBSD.org>
13813 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13816 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13818 * cfganal.c (keep_with_call_p): New function.
13819 (flow_call_edges_add): Prevent splitting a block between a call and
13820 a single-set instruction that should be kept in the same block.
13822 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
13824 * doc/install.texi (avr): Update outdated URL.
13826 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
13828 * config/stormy16/stormy16.md (pushqi): New.
13832 (movhi): Remove stack operands.
13834 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13835 nonimmediate_nonstack_operand.
13836 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13838 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13841 2002-01-31 Jason Merrill <jason@redhat.com>
13843 * Makefile.in (c-parse.c): Handle .output file.
13844 * objc/Make-lang.in (objc-parse.c): Likewise.
13846 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
13848 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
13849 the -me[lb] option is given. Don't output the default flag
13852 2002-01-31 Zack Weinberg <zack@codesourcery.com>
13854 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
13855 the primary source file; this has not been done yet.
13856 * c-decl.c (c_expand_body): Reset input_filename from
13857 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
13859 2002-01-31 Kazu Hirata <kazu@hxi.com>
13861 * rtlanal.c (subreg_regno_offset): Do not use
13862 SUBREG_REGNO_OFFSET.
13863 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
13864 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
13866 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13868 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
13869 version rather than GNATS version in --version output.
13871 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
13873 * ifcvt.c (noce_process_if_block): Make a copy of the destination
13874 when copying back from a temporary.
13876 2002-01-30 Richard Henderson <rth@redhat.com>
13878 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
13879 and new_dest are the same.
13881 2002-01-30 Richard Henderson <rth@redhat.com>
13884 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
13885 * rtl.c (note_insn_name): Update.
13886 * emit-rtl.c (remove_unnecessary_notes): Kill it.
13887 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
13888 to perform loop rotation.
13889 (expand_exit_loop_top_cond): New.
13890 * tree.h (expand_exit_loop_top_cond): Declare it.
13891 * c-semantics.c (genrtl_while_stmt): Use it.
13892 (genrtl_for_stmt): Likewise.
13894 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
13896 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
13897 arguments to 64-bit boundaries on 64-bit ABIs.
13899 2002-01-30 Steve Ellcey <sje@cup.hp.com>
13901 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
13903 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13905 * c-decl.c (grokdeclarator): Handle type being a typedef for an
13908 2002-01-30 David O'Brien <obrien@FreeBSD.org>
13910 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
13911 * config/sparc/sparc_bi.h: Remove file.
13912 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
13914 2002-01-30 Richard Henderson <rth@redhat.com>
13916 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
13918 2002-01-30 Zack Weinberg <zack@codesourcery.com>
13920 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
13922 2002-01-30 Jason Merrill <jason@redhat.com>
13924 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
13925 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
13926 (reg_save): Use DW_CFA_offset_extended_sf instead.
13928 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
13930 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13932 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
13935 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
13937 * rs6000.md ("*call_value_local32"): Remove constraints.
13938 ("*call_value_local64"): Same.
13939 ("*call_value_indirect_nonlocal_aix32"): Same.
13940 ("*call_value_nonlocal_aix32"): Same.
13941 ("*call_value_indirect_nonlocal_aix64"): Same.
13942 ("*call_value_nonlocal_aix64"): Same.
13943 ("*call_value_nonlocal_sysv"): Same.
13945 2002-01-29 Richard Henderson <rth@redhat.com>
13947 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
13949 2002-01-29 Richard Henderson <rth@redhat.com>
13951 * expr.c (force_operand): Ignore flag_pic for detecting pic
13953 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
13954 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
13955 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
13956 instead of open-coded loop.
13957 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
13958 be fixed when in use.
13960 2002-01-29 Richard Henderson <rth@redhat.com>
13962 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
13963 * sched-rgn.c (propagate_deps): Update them.
13964 * sched-deps.c (sched_analyze_insn): Update them. Flush the
13965 clobbers list when either gets too long.
13967 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13969 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
13970 and INDEX_REGS the same as GENERAL_REGS.
13971 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
13973 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13975 * tree.c (build_nonstandard_integer_type): Correct prototype.
13977 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
13979 * config/s390/s390.md (movstrsico, movstrdix_64,
13980 movstrsix_31): Remove, replace by ...
13981 (movstrdi_short, movstrsi_short, movstrdi_long,
13982 movstrsi_long): ... these. New.
13983 (movstrdi, movstrsi): Adapt.
13985 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
13986 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
13987 Remove unnecessary CC clobber.
13988 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
13989 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
13991 (divmoddi4): Don't partially initialize TImode register.
13993 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
13995 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
13997 2002-01-29 Richard Henderson <rth@redhat.com>
13999 * flow.c (print_rtl_and_abort): Remove.
14000 (print_rtl_and_abort_fcn): Remove.
14001 (verify_local_live_at_start): Use dump_bb instead.
14002 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14003 (verify_wide_reg_1): Return 2 on mode test failure.
14005 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14007 PR c/3325, c/3326, c/2511, c/3347
14008 * c-decl.c (enum_decl_context): Remove BITFIELD.
14009 (grokdeclarator): Take bitfield width as an input.
14010 Ensure bitfields are given the correct type. Perform
14011 bitfield width validation with build_bitfield_integer_type
14012 rather than waiting for finish_struct.
14013 (grok_typename, grok_typename_in_parm_context, start_decl,
14014 push_parmdecl, grokfield, start_function): Update calls to
14016 (build_bitfield_integer_type): New function.
14017 (finish_struct): Move bitfield validation to grokdeclarator
14018 and build_bitfield_integer_type.
14019 * tree.c (build_nonstandard_integer_type): New function.
14020 * tree.h (build_nonstandard_integer_type): New prototype.
14022 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14024 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14027 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14028 don't ignore unrecognized -W* options.
14029 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14030 * cpplib.h (cpp_handle_option): Adjust prototype.
14031 * c-decl.c (c_decode_options): Pass 0 as last argument to
14035 * gcc.c (cpp_unique_options): Split from cpp_options.
14036 (cpp_options): Source cpp_unique_options.
14037 (default_compilers): Use cpp_unique_options instead of cpp_options
14038 when used together with cc1_options.
14039 (static_specs): Add cpp_unique_options.
14040 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14041 when used together with cc1_options.
14043 2002-01-29 Kazu Hirata <kazu@hxi.com>
14045 * config/h8300/h8300-protos.h: Update the prototype of
14047 * config/h8300/h8300.c (output_a_shift): Remove an unused
14048 argument 'insn'. Remove redundant code.
14049 * config/h8300/h8300.md: Adust to the new prototype of
14052 2002-01-29 Kazu Hirata <kazu@hxi.com>
14054 * config/h8300/h8300-protos.h: Update the prototypes of
14055 emit_a_rotate and expand_a_rotate.
14056 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14057 first argument to 'enum rtx_code'.
14058 (expand_a_rotate): Likewise.
14060 2002-01-28 Kazu Hirata <kazu@hxi.com>
14062 * config/h8300/h8300-protos.h: Update the prototype of
14064 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14066 * config/h8300/h8300.md: Adjust to the new prototype.
14068 2002-01-28 Kazu Hirata <kazu@hxi.com>
14070 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14073 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14075 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14076 is a fixed register before returning pic_offset_table_rtx.
14077 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14078 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14080 2002-01-28 Jason Merrill <jason@redhat.com>
14082 * dwarf2.h: Sync with src version.
14084 2002-01-28 Paul Koning <pkoning@equallogic.com>
14086 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14087 BT_FN_VOID_PTR_VAR.
14088 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14089 * doc/extend.texi (__builtin_prefetch): Update documentation:
14090 first argument is now const void ptr.
14092 2002-01-28 Kazu Hirata <kazu@hxi.com>
14094 * config/h8300/h8300-protos.h: Remove an unused prototype.
14096 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
14098 * toplev.c (lang_independent_init): Round up identifier size.
14100 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14102 * config.gcc: Revert previous change.
14104 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
14106 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14108 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14110 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14111 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
14112 other non-elf netbsd config frags.
14113 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14114 collect2 will does that.
14115 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14116 shared-lib frobbing will work.
14118 2002-01-28 Kazu Hirata <kazu@hxi.com>
14120 * config/h8300/h8300.h: Fix formatting.
14121 * config/h8300/h8300.md: Likewise.
14123 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
14125 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14126 the old, removed AAA_standards fix.
14127 * fixinc/fixincl.x: Rebuilt.
14129 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
14131 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14132 atexit call in crtbegin, hooked in after call to frame_dummy;
14133 register EH before registering __fini__start.
14135 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
14137 * config/rs6000/altivec.h: Remove spurious semicolons.
14139 2002-01-27 Kazu Hirata <kazu@hxi.com>
14141 * config/h8300/h8300.md: Replace dead bit extraction patterns
14142 with ones that work.
14144 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14146 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14147 if not STRICT_ALIGNMENT.
14148 * rtl.h (MEM_ALIGN): Likewise.
14150 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
14152 * doc/invoke.texi (-fdump-translation-unit): Revert this
14153 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14155 2002-01-27 Kazu Hirata <kazu@hxi.com>
14157 * config/h8300/h8300.md (define_constants): New.
14158 (anonymous patterns) Use defined constants appropriately.
14160 2002-01-27 Kazu Hirata <kazu@hxi.com>
14162 * config/h8300/h8300.c (function_arg): Remove redundant code.
14164 2002-01-26 Richard Henderson <rth@redhat.com>
14166 * sched-deps.c (reg_pending_uses_head): New.
14167 (reg_pending_barrier): Rename from reg_pending_sets_all.
14168 (find_insn_list): Don't mark inline.
14169 (find_insn_mem_list): Remove.
14170 (add_dependence_list, add_dependence_list_and_free): New.
14171 (flush_pending_lists): Replace only_write param with separate
14172 for_read and for_write parameters. Update all callers. Use
14173 add_dependence_list_and_free.
14174 (sched_analyze_1): Do not add reg dependencies here; just set
14175 the pending bits. Use add_dependence_list.
14176 (sched_analyze_2): Likewise.
14177 (sched_analyze_insn): Replace schedule_barrier_found with
14178 reg_pending_barrier. Add all dependencies for pending reg
14179 uses, sets, and clobbers.
14180 (sched_analyze): Don't add reg dependencies for calls, just
14181 set pending bits. Use regs_invalidated_by_call. Treat
14182 sched_before_next_call as a normal list, not a fake insn.
14183 (init_deps): No funny init for sched_before_next_call.
14184 (free_deps): Free pending mems lists. Don't zero reg_last.
14185 (init_deps_global): Init reg_pending_uses.
14186 (finish_deps_global): Free it.
14187 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14188 (find_insn_mem_list): Remove.
14189 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14190 (propagate_deps): Use them. Zero temp mem lists.
14192 2002-01-26 Richard Henderson <rth@redhat.com>
14194 * Makefile.in (CRTSTUFF_CFLAGS): New.
14195 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14196 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14197 crtstuff.c instead of alpha assembly version.
14198 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14199 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14200 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14201 (__do_global_dtors_aux): Mark used.
14202 (frame_dummy, __do_global_ctors_aux): Mark used.
14203 (fini_dummy, init_dummy): Remove.
14205 * config/alpha/crtbegin.asm: Remove file.
14206 * config/alpha/crtend.asm: Remove file.
14207 * config/alpha/t-crtbe: Remove file.
14208 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14209 (LINK_EH_SPEC): New.
14211 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14212 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14213 calling constructors.
14214 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14216 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14217 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14218 CRT_END_INIT_DUMMY hack.
14219 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14220 FORCE_{INIT,FINI}_SECTION_ALIGN.
14222 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14223 FORCE_{INIT,FINI}_SECTION_ALIGN.
14225 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14226 invocation sequence.
14227 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14229 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14230 (FORCE_CODE_SECTION_ALIGN): New.
14232 2002-01-26 Richard Henderson <rth@redhat.com>
14234 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14236 2002-01-26 Richard Henderson <rth@redhat.com>
14238 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14239 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14241 2002-01-26 Kazu Hirata <kazu@hxi.com>
14243 * config/h8300/h8300.md: Remove bit extraction patterns that
14244 cannot be triggered.
14245 Restrict each bit extraction pattern to a variant on which the
14248 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14250 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14252 2002-01-26 Kazu Hirata <kazu@hxi.com>
14254 * config/h8300/h8300.md: Remove bit test patterns that cannot
14256 Restrict each bit test pattern to a variant on which the
14259 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14261 * builtins.c (expand_builtin_strncat): Remove redundant check for
14264 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14266 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14268 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14271 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14273 * dbxout.c (dbxout_init): Use assemble_name rather than just
14274 stripping off the first character.
14275 (dbxout_source_file): Likewise.
14277 2002-01-25 DJ Delorie <dj@redhat.com>
14279 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14280 using rtx_equal_p, not by comparing pointers.
14282 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14284 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14285 for PIC_OFFSET_TABLE_REGNUM.
14286 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14288 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14290 * config.gcc (x86_64-*-freebsd*): New target.
14291 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14293 (i[34567]86-*-freebsd*): Don't include svr4.h.
14294 * config/i386/freebsd64.h: New file.
14296 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14298 * config/alpha/x-vms (version): Make static.
14300 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14301 in previous checkin.
14303 * Makefile.in (install-headers-cp): New target.
14304 * config.gcc (alpha-dec-*vms*): Install headers with
14307 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14309 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14312 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14314 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14315 of compare_tree_int.
14316 (expand_builtin_strncat): Likewise.
14317 * c-decl.c (finish_struct): Use tree_low_cst.
14318 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14319 * tree.c (compare_tree_int): Likewise.
14321 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14323 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14324 adjustments even if they are implemented by more than two insns.
14326 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14328 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14329 * df.h (struct ref): Kill B.
14330 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14332 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14333 * flow.c (propagate_one_insn): Use it.
14334 (mark_used_regs): Handle NIL.
14336 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14338 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14341 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14343 * rs6000.md (prefetch): Make address V4SI mode so that the address
14344 is restricted to legitimate form for instruction.
14346 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14348 * doc/install.texi (xtensa-*-elf): New target.
14349 (xtensa-*-linux*): New target.
14350 * doc/contrib.texi: Add myself.
14352 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14354 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14355 purpose register to hold an SImode (or smaller) value.
14357 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14359 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14361 * crtstuff.c: Likewise.
14363 2002-01-25 Kazu Hirata <kazu@hxi.com>
14365 * config/h8300/h8300.md (negation patterns): Tighten
14366 predicates to register_operand.
14368 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14370 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14373 * builtins.c (expand_builtin_prefetch): Same.
14375 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14377 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14380 2002-01-24 Kazu Hirata <kazu@hxi.com>
14382 * config/h8300/h8300.c (print_operand): Remove support for
14383 operand character 'A'.
14384 * config/h8300/h8300.md (three anonymous patterns): Replace
14385 operand character 'A' with either 'T' or 'S'.
14387 2002-01-24 Kazu Hirata <kazu@hxi.com>
14389 * config/h8300/h8300.c (print_operand): Remove support for
14390 operand character 'U'.
14392 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
14394 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14396 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
14398 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14399 values to be assigned to the stack pointer.
14401 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14403 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14404 to const_double needs to be done right for big-endian systems.
14406 2002-01-24 Jason Merrill <jason@redhat.com>
14409 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14410 to can_throw_internal.
14412 2002-01-23 Richard Henderson <rth@redhat.com>
14414 * fold-const.c (fold): Change UINT_MAX test to check vs precision
14415 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
14417 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14419 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14420 (symGOT2reg): Use them, then set as GOT value as unchanging.
14421 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
14422 as a temporary, if possible.
14423 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
14424 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14426 2002-01-23 Kazu Hirata <kazu@hxi.com>
14428 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14429 accept to accept 0x80 as operands[2].
14431 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14433 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14435 2002-01-23 Richard Henderson <rth@redhat.com>
14437 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14439 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
14441 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14442 (parmlist_or_identifiers_1): Verify that only a parmlist follows
14445 2002-01-23 Richard Henderson <rth@redhat.com>
14447 * expr.c (move_by_pieces_1): Extend size before negation.
14449 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14450 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14451 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14452 * config/m68k/t-m68kelf: Likewise.
14454 2002-01-23 Bob Wilson <bob.wilson@acm.org>
14456 * config/xtensa/elf.h: New file.
14457 * config/xtensa/lib1funcs.asm: New file.
14458 * config/xtensa/lib2funcs.S: New file.
14459 * config/xtensa/linux.h: New file.
14460 * config/xtensa/t-xtensa: New file.
14461 * config/xtensa/xtensa-config.h: New file.
14462 * config/xtensa/xtensa-protos.h: New file.
14463 * config/xtensa/xtensa.c: New file.
14464 * config/xtensa/xtensa.h: New file.
14465 * config/xtensa/xtensa.md: New file.
14466 * config.gcc (xtensa-*-elf*): New target.
14467 (xtensa-*-linux*): New target.
14468 * cse.c (canon_hash): Compare rtx pointers instead of register
14469 numbers. This is required for the Xtensa port.
14470 * integrate.c (copy_insn_list): Handle case where the static
14471 chain is in memory and the memory address has to be copied to
14473 * doc/invoke.texi (Option Summary): Add Xtensa options.
14474 (Xtensa Options): New node.
14475 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14477 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14479 * diagnostic.c (internal_error): Do ICE suppression only
14480 when ENABLE_CHECKING is not defined.
14482 * c-typeck.c (require_complete_type): Return error_mark_node
14483 if type is error_mark_node.
14485 2002-01-23 Janis Johnson <janis187@us.ibm.com>
14487 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14488 -Os and issue a warning.
14490 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14492 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14493 current (lack of) need for host configuration by hand.
14495 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14496 references. Documentation of some target macros moved from
14497 hostconfig.texi to tm.texi.
14499 2002-01-23 Will Cohen <wcohen@redhat.com>
14501 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14504 2002-01-23 Kazu Hirata <kazu@hxi.com>
14506 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14509 2002-01-23 Jason Merrill <jason@redhat.com>
14511 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14513 * function.c (assign_parms): Don't put args of inline functions
14514 into registers when not optimizing.
14516 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
14518 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14519 (prologue_use): New pattern.
14520 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14521 preference to gen_rtx_USE.
14522 (thumb_expand_prologue): Use gen_prologue_use in preference to
14524 (thumb_expand_epilogue): Use gen_prologue_use in preference to
14527 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
14529 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14531 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
14534 * doc/extend.texi: Correct documentation of __alignof__.
14536 2002-01-22 Zack Weinberg <zack@codesourcery.com>
14538 * params.h: Rename arguments of DEFPARAM so that it will be
14539 recognized as a translation keyword.
14541 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14543 * extend.texi: Document altivec functions.
14544 Fix N-bit adjectives in X86 builtin documentation.
14546 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14548 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14549 auto_inc_dec values.
14551 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
14553 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14555 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14557 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14559 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14561 2002-01-22 Richard Henderson <rth@redhat.com>
14563 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14564 copy_insn not copy_rtx.
14566 2002-01-23 Alan Modra <amodra@bigpond.net.au>
14568 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14569 "nonzero" as that might add "1" bits. Ensure "constop" is
14570 properly sign extened.
14571 (force_to_mode): Tweak for sign extended constop.
14573 2002-01-22 Richard Henderson <rth@redhat.com>
14575 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14576 for_each_rtx instead of assuming we're already looking at the MEM.
14577 (split_small_symbolic_mem_operand): Likewise.
14578 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14579 * config/alpha/alpha.md (small symbolic memory splitters): Update.
14581 2002-01-22 Richard Henderson <rth@redhat.com>
14583 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14584 sequence number for the literal.
14585 (divmoddi_internal_er): Likewise.
14587 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14590 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14591 in LIBICONV variable.
14592 * configure: Regenerated.
14594 2002-01-22 Krister Walfridsson <cato@df.lth.se>
14596 * dependence.c (build_def_use): Remove array_idx.
14598 * dwarfout.c (last_filename): Remove.
14599 (output_compile_unit_die): Remove last_filename.
14601 2002-01-22 Roger Sayle <roger@eyesopen.com>
14602 Richard Henderson <rth@redhat.com>
14605 * fold-const.c (fold): Optimize unsigned comparisons against
14606 UINT_MAX (and similar unsigned constants).
14608 2002-01-22 Janis Johnson <janis187@us.ibm.com>
14610 * Makefile.in (loop.o): Depend on OPTABS_H.
14611 * loop.c (emit_prefetch_instructions): Check the prefetch operand
14612 against the predicate.
14615 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14616 for the address operand.
14618 2002-01-22 Richard Henderson <rth@redhat.com>
14620 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14622 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14625 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14626 preprocessor flags.
14628 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
14630 * config.gcc (x86_64-*-netbsd*): New target.
14631 * config/i386/netbsd64.h: New file.
14633 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14635 * regrename.c (kill_value): Fix typo.
14637 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14639 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14641 * config/rs6000/rs6000.h: Same.
14643 * function.c (instantiate_virtual_regs): Remove
14644 STARTING_FRAME_PHASE.
14645 (assign_stack_local_1): Same.
14646 Calculate frame phase.
14648 2002-01-22 Nick Clifton <nickc@redhat.com>
14650 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14651 variable declaration to outer scope in order to simplify
14653 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14654 arm_hard_regno_mode_ok.
14655 * config/arm/arm-protos.h: Add a prototype for
14656 arm_hard_regno_mode_ok.
14657 * config/arm/arm.c (soft_df_operand): Remove now redundant
14658 check for DImode values using IP_REGNUM.
14659 (nonimmediate_soft_df_operand): Remove now redundant check for
14660 DImode values using IP_REGNUM.
14661 (arm_hard_regno_mode_ok): New function. New check: make sure
14662 that DImode values are not stored in IP_REGNUM.
14664 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14666 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14668 2002-01-22 Jason Merrill <jason@redhat.com>
14670 * c-semantics.c (genrtl_compound_stmt): Only check nesting
14671 consistency if this COMPOUND_STMT is scoped.
14673 2002-01-22 Kazu Hirata <kazu@hxi.com>
14675 * predict.c: Fix formatting.
14676 * print-tree.c: Likewise.
14677 * protoize.c: Likewise.
14678 * real.h: Likewise.
14680 * sbitmap.h: Likewise.
14681 * scan.c: Likewise.
14682 * sched-deps.c: Likewise.
14683 * sched-vis.c: Likewise.
14684 * sdbout.c: Likewise.
14685 * sibcall.c: Likewise.
14687 * ssa-ccp.c: Likewise.
14688 * ssa-dce.c: Likewise.
14689 * stmt.c: Likewise.
14690 * stor-layout.c: Likewise.
14691 * system.h: Likewise.
14693 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14695 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14696 if fits in bounds of base type.
14698 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14699 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14700 (add_bound_info, default): If can't find a context, make a
14702 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14704 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
14706 * c-typeck.c (parser_build_binary_op): If result from
14707 build_binary_op is ERROR_MARK just return error_mark_node without
14708 further processing.
14710 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
14712 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14713 Split a.out-specific bits into...
14714 * config/netbsd-aout.h: ...this.
14715 * config/netbsd-elf.h: New file.
14716 * config/alpha/netbsd-elf.h: Remove.
14717 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14718 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14719 (STARTFILE_SPEC): Remove redundant definition.
14720 (ENDFILE_SPEC): Likewise.
14721 (LINK_SPEC): Likewise.
14722 (CPP_SPEC): Likewise.
14723 (ASM_SPEC): Likewise.
14724 (LIB_SPEC): Likewise.
14725 (SWITCH_TAKES_ARG): Likewise.
14726 (TARGET_MEM_FUNCTIONS): Likewise.
14727 (CPP_PREDEFINES): Redefine.
14728 (ASM_FINAL_SPEC): Remove redefinition.
14729 (ASM_COMMENT_START): Redefine.
14730 (FUNCTION_PROFILER): Define.
14731 (TARGET_VERSION): Redefine.
14732 Comment and formatting cleanup.
14733 * config/i386/netbsd.h: Include <netbsd-aout.h>.
14734 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14735 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14736 big- or little-endian.
14737 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14738 * config.gcc (*-*-netbsd*): Add definitions common to all
14740 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14741 gnu_ld definitions. Add netbsd-elf.h to and remove
14742 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
14743 tmake_file, and don't lose previous tmake_file contents.
14744 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14745 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14746 gnu_ld definitions. Add netbsd-elf.h to tm_file.
14747 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14748 (mipsel-*-netbsd*): Rename this to...
14749 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
14750 mips/little.h to tm_file for mips*el-*.
14751 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14752 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14753 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14755 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14757 * pa-protos.h (reg_before_reload_operand): New function prototype.
14758 * pa.c (reg_before_reload_operand): New function implementation.
14759 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
14760 contraints to "*m".
14762 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14764 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14766 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14768 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14769 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14770 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14771 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14772 (ENDFILE_SPEC): Undefine.
14773 (STARTFILE_SPEC): Redefine for PA.
14775 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14777 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14779 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
14781 * config.gcc: Add entries to supported PowerPC --with-cpu
14784 2002-01-21 Jakub Jelinek <jakub@redhat.com>
14786 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14787 true for 64-bit mode only SSE registers in 32-bit mode.
14789 2002-01-21 Kazu Hirata <kazu@hxi.com>
14791 * unwind-dw2.c: Fix formatting.
14792 * unwind-dw2-fde.c: Likewise.
14793 * unwind-dw2-fde.h: Likewise.
14794 * unwind-pe.h: Likewise.
14795 * varasm.c: Likewise.
14796 * varray.h: Likewise.
14798 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
14800 Remove workaround for register stack overwrite bug in mmix.
14801 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14802 support for TARGET_REG_STACK_FILL_BUG.
14803 * config/mmix/mmix.h: Remove member has_call_without_parameters.
14804 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14806 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14807 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14808 -mno-reg-stack-fill-bug-workaround.
14809 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14810 machine member has_call_without_parameters.
14811 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14812 -mreg-stack-fill-bug-workaround and
14813 -mno-reg-stack-fill-bug-workaround.
14814 (MMIX Options): Ditto.
14816 2002-01-21 Kazu Hirata <kazu@hxi.com>
14818 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14820 Remove redundant code.
14822 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
14824 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14825 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14826 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14827 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14828 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14829 out target macro definitions and non-target-specific comments
14830 mostly taken from old versions of the manual.
14832 2002-01-20 Kazu Hirata <kazu@hxi.com>
14834 * config/h8300/h8300.h: Fix comment formatting.
14835 * config/ia64/aix.h: Likewise.
14836 * config/ia64/ia64-protos.h: Likewise.
14837 * config/ia64/ia64.c: Likewise.
14838 * config/ia64/ia64.h: Likewise.
14839 * config/ia64/ia64intrin.h: Likewise.
14840 * config/ia64/linux.h: Likewise.
14841 * config/ia64/unwind-aix.c: Likewise.
14842 * config/ia64/unwind-ia64.c: Likewise.
14844 2002-01-20 Kazu Hirata <kazu@hxi.com>
14846 * config/h8300/h8300.c: Revise comments about shift code.
14848 2002-01-20 Kazu Hirata <kazu@hxi.com>
14850 * config/h8300/h8300.c (function_arg): Update a comment.
14852 2002-01-20 Kazu Hirata <kazu@hxi.com>
14854 * config/h8300/h8300.md: Update the comments at the beginning
14857 2002-01-20 Kazu Hirata <kazu@hxi.com>
14859 * config/i370/i370.c: Fix comment formatting.
14860 * config/i370/i370.h: Likewise.
14861 * config/i370/i370.md: Likewise.
14862 * config/i370/linux.h: Likewise.
14864 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14866 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
14868 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
14869 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
14870 in incomplete case.
14872 2002-01-20 Graham Stott <grahams@redhat.com>
14874 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
14876 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
14878 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
14880 2002-01-19 Tom Rix <trix@redhat.com>
14882 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
14884 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
14886 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
14888 * function.c (assign_stack_local_1): Adjust x_frame_offset with
14889 STARTING_FRAME_PHASE.
14890 (STARTING_FRAME_PHASE): New.
14891 (instantiate_virtual_regs): Check saneness of
14892 STARTING_FRAME_PHASE.
14894 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
14896 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14898 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
14900 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
14902 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
14903 be used for bootstrapping GCC 3.0.
14905 2002-01-18 Kazu Hirata <kazu@hxi.com>
14907 * config/h8300/h8300.md: Fix an insn length.
14909 2002-01-18 Kazu Hirata <kazu@hxi.com>
14911 * bitmap.h: Fix comment formatting.
14912 * combine.c: Likewise.
14913 * cppfiles.c: Likewise.
14914 * c-pragma.h: Likewise.
14915 * c-typeck.c: Likewise.
14917 * dwarf2out.c: Likewise.
14918 * function.c: Likewise.
14920 * genattrtab.c: Likewise.
14921 * gthr-win32.h: Likewise.
14922 * haifa-sched.c: Likewise.
14923 * predict.c: Likewise.
14924 * rtlanal.c: Likewise.
14926 * unwind-dw2-fde.h: Likewise.
14927 * unwind-pe.h: Likewise.
14928 * vmsdbgout.c: Likewise.
14930 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14932 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
14933 if type_required and passed decl.
14935 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
14937 * config.gcc (cpu_type): Include altivec.h in powerpc
14941 * config/rs6000/altivec.h: New.
14943 2002-01-17 David Edelsohn <edelsohn@gnu.org>
14945 * doc/install.texi (*-ibm-aix*): Update assembler and exception
14946 handling information.
14947 * doc/trouble.texi (Interoperation): Add libstdc++ information
14949 (Misunderstandings): Add template instantiation and static template
14950 member information for AIX.
14952 2002-01-17 Jason Merrill <jason@redhat.com>
14954 * dbxout.c (dbxout_type): Support const and volatile.
14956 * except.c (add_partial_entry): Remove backwards compatibility code.
14957 (end_protect_partials): Likewise.
14959 2002-01-17 Jakub Jelinek <jakub@redhat.com>
14961 * config/ia64/ia64.md (prologue_use): New.
14962 * config/ia64/ia64.c (ia64_expand_prologue): Use
14963 gen_prologue_use instead of gen_rtx_USE.
14964 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
14965 as CODE_FOR_pred_rel_mutex.
14966 (ia64_sched_reorder2): Likewise.
14968 2002-01-16 Eric Christopher <echristo@redhat.com>
14970 * config/mips/r3900.h: Reformat.
14971 (SUBTARGET_CPP_SIZE_SPEC): Remove.
14972 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
14973 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
14974 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
14975 * config/mips/t-elf: Remove mips3 multilib.
14977 2002-01-16 H.J. Lu <hjl@gnu.org>
14979 * config/mips/linux.h: Include "mips/abi64.h".
14981 2002-01-16 H.J. Lu <hjl@gnu.org>
14983 * config/mips/t-linux: New.
14985 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
14987 * config/mips/linux.h: Don't include "gofast.h".
14988 (INIT_SUBTARGET_OPTABS): Removed.
14990 2002-01-16 Kazu Hirata <kazu@hxi.com>
14992 * config/h8300/h8300-protos.h: Replace emit_a_shift with
14994 * config/h8300/h8300.c: Likewise.
14995 * config/h8300/h8300.md: Likewise.
14997 2002-01-16 Kazu Hirata <kazu@hxi.com>
14999 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15000 spaces after an opcode name.
15001 (pushqi1_h8300hs): Likewise.
15002 (pushhi1_h8300hs): Likewise.
15004 2002-01-16 Kazu Hirata <kazu@hxi.com>
15006 * doc/extend.texi: Replace "option" with "attribute"
15009 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15011 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15012 (and:DI () (const_int -8)).
15013 (split_small_symbolic_mem_operand): Split
15014 (mem (and:DI () (const_int -8)).
15016 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15019 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15020 same way as TYPE_IMUL.
15021 (ultrasparc_sched_reorder): Likewise.
15022 * config/sparc/sparc.md (type): Add comment to update
15023 ultrasparc_sched_reorder when making changes.
15025 2002-01-16 Kazu Hirata <kazu@hxi.com>
15027 * doc/invoke.texi: Change the dump file name of block
15028 reordering pass from 28.bbro to 29.bbro.
15029 Mention -dk option.
15031 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
15033 * i386.md (minsf splitter): Fix pasto.
15035 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15037 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15038 to frame pointer initialisation instruction.
15039 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15040 initialisation instruction.
15041 (soft_df_operand): Do not accept the IP register.
15042 (nonimmediate_soft_df_operand): Do not accept the IP register.
15044 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15047 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15048 MASK_V8 being both set.
15050 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
15052 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15053 insn for GOT register; add REG_MAYBE_DEAD notes instead.
15054 config/s390/s390.md (call, call_value): Add GOT register to
15055 CALL_INSN_FUNCTION_USAGE where needed.
15056 (call_exp, call_value_exp): New.
15058 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15060 * config/arm/arm.c: General formatting tidy up.
15062 2002-01-16 Graham Stott <grahams@redhat.com>
15064 * calls.c (try_to_integrate): Use "(size_t)" intermediate
15065 cast and when casting an integer literal to "rtx" pointer.
15066 (expand_call): Likewise.
15067 * flow.c (try_pre_increment): Likewise.
15068 (find_use_as_address): Likewise.
15069 * integrate.c (expand_iline_function): Likewise.
15070 * regmove.c (try_auto_increment): Likewise.
15072 2002-01-16 Graham Stott <grahams@redhat.com>
15074 * sched-rgn.c (passed): Use sbitmap_free.
15075 (header): Likewise.
15077 (in_queue): Likewise.
15078 (in_stack): Likewise.
15080 2002-01-15 Eric Christopher <echristo@redhat.com>
15082 * flow.c (propagate_one_insn): Change to use fatal_insn.
15084 2002-01-15 Kazu Hirata <kazu@hxi.com>
15086 * expmed.c (extract_fixed_bit_field): Remove unused code.
15087 * system.h: Poison SLOW_ZERO_EXTEND.
15088 * doc/tm.texi: Remove.
15089 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15090 * config/arm/arm.h: Likewise.
15091 * config/avr/avr.h: Likewise.
15092 * config/clipper/clipper.h: Likewise.
15093 * config/convex/convex.h: Likewise.
15094 * config/d30v/d30v.h: Likewise.
15095 * config/dsp16xx/dsp16xx.h: Likewise.
15096 * config/elxsi/elxsi.h: Likewise.
15097 * config/fr30/fr30.h: Likewise.
15098 * config/h8300/h8300.h: Likewise.
15099 * config/i370/i370.h: Likewise.
15100 * config/i386/i386.h: Likewise.
15101 * config/m68k/m68k.h: Likewise.
15102 * config/mips/mips.h: Likewise.
15103 * config/ns32k/ns32k.h: Likewise.
15104 * config/pdp11/pdp11.h: Likewise.
15105 * config/pj/pj.h: Likewise.
15106 * config/s390/s390.h: Likewise.
15107 * config/sh/sh.h: Likewise.
15108 * config/stormy16/stormy16.h: Likewise.
15109 * config/v850/v850.h: Likewise.
15110 * config/vax/vax.h: Likewise.
15111 * config/we32k/we32k.h: Likewise.
15113 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15115 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15116 (altivec_lvsl): Change constraint to b.
15117 (altivec_lvsr): Same.
15118 (altivec_lvebx): Same.
15119 (altivec_lvehx): Same.
15120 (altivec_lvewx): Same.
15121 (altivec_lvxl): Same.
15122 (altivec_lvx): Same.
15123 (altivec_stvx): Add parallel.
15124 (altivec_stvxl): Same.
15125 (altivec_stvehx): Same.
15126 (altivec_stvebx): Same.
15127 (altivec_stvebx): Same.
15129 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15131 * config.gcc: Change altivec.h to altivec-defs.h.
15133 * config/rs6000/altivec.h: Delete.
15135 * config/rs6000/altivec-defs.h: Add.
15137 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15139 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15142 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15143 less than or equal to eight bytes.
15145 * vax.md (andsi3): Remove constraints and change SET destination
15146 operand type to nonimmediate_operand.
15147 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
15148 when it is a CONST_INT.
15150 2002-01-15 Jason Merrill <jason@redhat.com>
15152 * c-common.def (FILE_STMT): New code.
15153 * c-common.c (statement_code_p): It's a statement.
15154 * c-common.h (stmt_tree_s): Add x_last_filename.
15155 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15156 (last_expr_filename): New macro.
15157 * c-semantics.c (begin_stmt_tree): Initialize it.
15158 (add_stmt): If the filename changed, also insert a
15160 (expand_stmt): Handle seeing one.
15162 2002-01-15 Eric Christopher <echristo@redhat.com>
15164 * flow.c (propagate_one_insn): Add error message and print out
15165 insn for debugging.
15167 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15169 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15170 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15171 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15172 TRAMPOLINE_ALIGNMENT.
15173 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15175 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15176 PCC_BITFIELD_TYPE_MATTERS.
15177 * config/interix.h (STDC_VALUE): Remove. Use
15178 STDC_0_IN_SYSTEM_HEADERS.
15179 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15180 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15181 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15183 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15185 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15186 not work on this platform currently.
15188 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15190 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15191 readonly_warning in _().
15193 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15195 * gcc.c (delete_if_ordinary): Backout previous change.
15197 2002-01-15 Kazu Hirata <kazu@hxi.com>
15199 * config/h8300/h8300.c (print_operand): Remove support for
15200 unused operand characters.
15202 * read-rtl.c: Fix formatting.
15203 * real.c: Likewise.
15204 * recog.c: Likewise.
15205 * regclass.c: Likewise.
15206 * regmove.c: Likewise.
15207 * reg-stack.c: Likewise.
15208 * reload1.c: Likewise.
15209 * rtlanal.c: Likewise.
15211 2002-01-15 Kazu Hirata <kazu@hxi.com>
15213 * config/i386/i386.c: Fix formatting.
15215 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15217 * c-typeck.c (process_init_element): Don't save_expr
15218 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15220 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15222 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15223 emit optional traceback table if optimize_size or TARGET_ELF.
15224 * config/rs6000/rs6000.md (prefetch): New.
15226 2002-01-15 Andreas Jaeger <aj@suse.de>
15228 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15230 2002-01-15 Kazu Hirata <kazu@hxi.com>
15232 * mips-tfile.c: Fix formatting.
15234 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15236 * unroll.c (final_reg_note_copy): Fix previous commit.
15238 2002-01-14 Kazu Hirata <kazu@hxi.com>
15240 * config/h8300/h8300-protos.h: Remove the prototype for
15242 * config/h8300/h8300.c (eq_operator): Remove.
15244 2002-01-14 Richard Henderson <rth@redhat.com>
15246 * config/i386/i386.md (prefetch): Tidy.
15247 (prefetch_3dnow): Fix locality operand.
15249 2002-01-14 Richard Henderson <rth@redhat.com>
15251 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15252 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15254 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15256 * reload1.c (reload_combine): Pass reg_sum replacement through
15257 copy_rtx in loop performing multiple changes.
15259 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15261 * except.c (remove_unreachable_regions): New.
15262 (free_eh_status): Clear exception_handler_labels.
15263 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15264 (find_exception_handler_labels): Don't add the same label more than
15266 (remove_exception_handler_label): Don't die if
15267 find_exception_handler_labels hasn't been called for the current
15270 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15272 * toplev.c (rest_of_compilation): Rebuild jump labels after
15275 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15277 * doc/extend.texi: Move documentation of X86 built-in functions
15279 * doc/invoke.texi: From here.
15280 * doc/sourcebuild.texi: Document location of documentation for
15281 machine built-in functions.
15283 2002-01-13 Christopher Faylor <cgf@redhat.com>
15285 * cppfiles.c (TEST_THRESHOLD): New macro.
15286 (SHOULD_MMAP): Ditto.
15287 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15290 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15292 * unroll.c (final_reg_note_copy): Properly handle
15294 (unroll_loops): Fix LOOP_CONDITION heuristics.
15296 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15298 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15299 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15301 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15303 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15306 2002-01-14 Tom Rix <trix@redhat.com>
15308 * config/rs6000/rs6000.md: Fix typo with sradi.
15310 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15312 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15313 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15314 (clrstrdi, clrstrsi): Adapt callers.
15316 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15318 (movti splitter): Never use register 0 as base register.
15320 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15322 * combine.c (simplify_shift_const): Always generate new rtx
15323 for shift expression instead of reusing given expression.
15325 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15327 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15328 alpha_legitimize_address unless mode is Pmode.
15330 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15332 * doc/md.texi (Modifiers): Document the '*' constraint for the
15335 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15336 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15339 2002-01-13 Richard Henderson <rth@redhat.com>
15341 * reload.c (find_reloads): Use a hard reg destination as reload reg
15342 for an input reload of the source.
15344 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15346 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15349 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15351 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15352 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15354 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15356 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15358 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15360 2002-01-12 Tom Rix <trix@redhat.com>
15362 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15365 2002-01-12 Richard Henderson <rth@redhat.com>
15367 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15369 * doc/invoke.texi: Update Alpha options.
15371 * doc/invoke.texi: Update i386 built-in function lists.
15373 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15375 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15376 referencing outside.
15378 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15380 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15381 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15382 offsets, and change line folding.
15383 * optabs.c (expand_binop): Remove warnings.
15384 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15386 2002-01-12 Graham Stott <grahams@redhat.com>
15388 * attribs.c (handle_deprecated_attribute): constify WHAT.
15389 * diagnostic.c (warn_deprecated_use): Add braces, fixes
15390 dangling else warning and constify WHAT.
15391 * except.h (struct function, struct inline_remap): Move
15392 struct tag forward defs before all prototypes.
15393 (duplicate_eh_regions): Whitespace.
15395 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
15397 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15398 MODE_BASE_REG_CLASS.
15399 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15401 2002-01-12 Richard Henderson <rth@redhat.com>
15403 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15404 (ix86_expand_vector_move): New.
15405 (bdesc_2arg): Remove andps, andnps, orps, xorps.
15406 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
15407 Remove old prefetch builtins. Special case the logicals removed above.
15408 (ix86_expand_builtin): Likewise.
15409 (safe_vector_operand): Use V4SFmode, not TImode.
15410 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
15411 (ix86_expand_timode_binop_builtin): New.
15412 * config/i386/i386-protos.h: Update.
15413 * config/i386/i386.h (enum ix86_builtins): Update.
15414 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15415 Use ix86_expand_vector_move in vector move expanders.
15416 (movti_internal, movti_rex64): Add xorps alternative.
15417 (sse_clrv4sf): Rename and adjust from sse_clrti.
15418 (prefetch): Don't work so hard.
15419 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15420 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15421 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15423 2002-01-11 Richard Henderson <rth@redhat.com>
15425 * config/i386/mmintrin.h: New file.
15426 * config/i386/xmmintrin.h: New file.
15427 * config.gcc (i?86-*-*): Add extra_headers.
15428 * simplify-rtx.c (simplify_unary_operation): Handle saturating
15430 (simplify_binary_operation): Handle saturating arithmetic codes.
15431 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15432 not the lowpart subreg.
15433 (ix86_expand_builtin): Return a TImode dummy register instead of 0
15435 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15437 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15439 * conflict.c (conflict_graph_compute): Free regsets when finished.
15440 * ssa.c (compute_coalesced_reg_partition): Likewise.
15442 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15444 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15445 every where we allocate a register.
15447 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15449 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15450 * lcm.c (compute_earliest, compute_farthest): Likewise.
15452 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15454 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15456 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15458 * doc/rtl.texi (Insns): Fix 2 typos.
15460 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
15462 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
15463 options. Use @table @gcctabopt for MMIX options. Add index
15464 entries for MMIX options. Start new paragraph with first
15465 heading of the machine-dependent options.
15467 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
15470 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15471 * combine.c (force_to_mode): Same.
15472 * reload1.c (clear_reload_reg_in_use): Same.
15474 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
15476 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15479 2002-01-11 Andreas Jaeger <aj@suse.de>,
15480 Brad Lucier <lucier@math.purdue.edu>
15482 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15485 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
15487 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15488 Protect with IN_LIBGCC.
15489 (LINK_EH_SPEC): Add required trailing space.
15491 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
15493 * c-tree.h: Move function declarations so that they are listed
15494 under the filename which contains them.
15495 (check_identifier, finish_decl_top_level,
15496 lookup_name_current_level_global, shadow_record_fields): Remove.
15498 2002-01-11 Andreas Jaeger <aj@suse.de>
15500 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15503 2002-01-10 Richard Henderson <rth@redhat.com>
15505 * config/alpha/alpha.c (print_operand): Add 'J'.
15506 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15507 new operand with the sequence number for the lituse. When splitting
15508 the insns, use gen_movdi_er_high_g and generate a sequence number.
15509 (gen_movdi_er_high_g): Print the sequence number if non-zero.
15511 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
15513 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15514 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15516 (altivec_expand_builtin): Same.
15517 (altivec_expand_stv_builtin): New.
15519 * config/rs6000/rs6000.h (rs6000_builtins): Same.
15521 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15522 ("altivec_lvehx"): New.
15523 ("altivec_lvewx"): New.
15524 ("altivec_lvxl"): New.
15525 ("altivec_lvx"): New.
15526 ("altivec_stvx"): New.
15527 ("altivec_stvebx"): New.
15528 ("altivec_stvehx"): New.
15529 ("altivec_stvewx"): New.
15530 ("altivec_stvxl"): New.
15532 2002-01-10 Richard Henderson <rth@redhat.com>
15534 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15535 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
15536 care not to delete instructions twice.
15538 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15540 * toplev.c: Don't declare environ (it's not used anywhere).
15541 * configure.in: Don't check for declaration of environ.
15542 * config/i386/xm-mingw32.h: Don't #define environ.
15543 * config.in, configure: Regenerate.
15545 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15547 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15548 * configure: Regenerate.
15550 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15551 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15552 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15554 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15555 LIMITS_H_TEST here, not in m68k/x-next.
15556 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15557 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15559 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15560 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15561 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
15563 * config/i386/x-djgpp: Renamed i386/t-djgpp.
15564 * config/m88k/x-dolph: Renamed m88k/t-dolph.
15565 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15566 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
15567 replacement of quadlib.asm with quadlib.c.
15569 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15570 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15571 config/rs6000/xm-beos.h: Delete file.
15573 * config.gcc: Update to match above changes.
15575 2002-01-10 Kazu Hirata <kazu@hxi.com>
15577 * config/h8300/h8300.h: Fix comment typos.
15578 * config/h8300/h8300.md: Likewise.
15579 * config/h8300/lib1funcs.asm: Likewise.
15581 2002-01-10 Dale Johannesen <dalej@apple.com>
15583 PR optimization/5269
15584 * unroll.c (precondition_loop_p): Make *increment be the correct
15585 sign when n_iterations known, to avoid confusing caller.
15587 2002-01-10 Kazu Hirata <kazu@hxi.com>
15589 * doc/extend.texi (deprecated): Fix a typo.
15591 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
15593 * basic-block.h (update_br_prob_note): Declare.
15594 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15595 (try_forward_edges): Care negative frequencies and update note.
15596 (outgoing_edges_match): Tweek conditional merging heuristics.
15597 (try_crossjump_to_edge): use update_br_prob_note.
15598 * cfglayout.c (fixup_reorder_chain): Likewise.
15599 * cfrtl.c (update_br_prob_note): New.
15600 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15602 * i386.c (ix86_decompose_address): Return -1 if address contains
15604 (legitimate_address_p): Require ix86_decompose_address to return 1.
15606 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15607 (cprop_insn): Likewise.
15609 2002-01-10 Kazu Hirata <kazu@hxi.com>
15611 * toplev.c: Fix formatting.
15612 * tree.c: Likewise.
15613 * tree-dump.c: Likewise.
15614 * unroll.c: Likewise.
15615 * unwind-dw2.c: Likewise.
15616 * unwind-dw2-fde.c: Likewise.
15617 * unwind-dw2-fde-glibc.c: Likewise.
15618 * unwind-sjlj.c: Likewise.
15620 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15622 * doc/invoke.texi: Document PDP-11 options.
15624 2002-01-10 Kazu Hirata <kazu@hxi.com>
15626 * config/h8300/h8300.h: Fix formatting.
15628 2002-01-10 Ira Ruben <ira@apple.com>
15630 Add __attribute__ ((deprecated)).
15631 * extend.texi: Document __attribute__ ((deprecated)).
15632 * invoke.texi: Document -Wno-deprecated-declarations.
15633 * testsuite/g++.dg/other/deprecated.C: New C++ test.
15634 * testsuite/gcc.dg/deprecated.c: New C test.
15635 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15636 (c_common_attribute_table): Add "deprecated" entry.
15637 (handle_deprecated_attribute): New function.
15638 * c-decl.c (deprecated_states): New enum.
15639 deprecated_state: State of "deprecated" handling.
15640 (start_decl): Set deprecated_state based on attributes.
15641 (grokdeclarator): Test for deprecated uses, propagate attribute.
15642 * c-typeck.c (build_component_ref): Test for deprecated fields.
15643 (build_external_ref): Test for deprecated primaries.
15644 * diagnostic.c (warn_deprecated_use) New function to issue
15645 warnings about __attribute__ ((depricated)) references.
15646 * flags.h (warn_deprecated_decl): Extern declared for
15647 -W[no-]deprecated-declarations option.
15648 * print-tree.c (print_node): Show deprecated flag status.
15649 * toplev.c (warn_deprecated_decl): Defined.
15650 (W_options): Added "deprecated-declaration".
15651 * toplev.h (warn_deprecated_use): Extern declared.
15652 * tree.h (struct tree_common): Define deprecated_flag.
15653 (TREE_DEPRECATED): New macro to access flag.
15654 * cp/call.c (build_call): Test for deprecated calls.
15655 * cp/class.c (add_implicitly_declared_members): Set global
15656 flag to tell grokdeclarator to not issue deprecated warnings.
15657 * cp/cp-tree.h: Add extern for adding_implicit_members.
15658 * cp/decl.c (deprecated_states): New enum.
15659 (start_decl): Set deprecated_state based on attributes.
15660 (grokdeclarator): Test for deprecated uses, propagate attribute.
15661 * cp/lex.c (do_identifier): Test for deprecated primaries.
15662 * cp/typeck.c (build_component_ref): Test for deprecated fields.
15664 2002-01-10 Ira Ruben <ira@apple.com>
15666 Fix to assign attributes to inline member functions.
15667 * cp/decl.c (start_method): Handle attrlist.
15669 2002-01-10 Kazu Hirata <kazu@hxi.com>
15671 * combine.c (expand_field_assignment): Use subreg_lsb().
15673 2002-01-10 David Edelsohn <edelsohn@gnu.org>
15675 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15676 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15677 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15678 Recurse for any operand of AND as long as constant is non-zero.
15680 2002-01-10 Kazu Hirata <kazu@hxi.com>
15682 * config/h8300/h8300.md: Remove constraints from expanders.
15684 2002-01-10 Kazu Hirata <kazu@hxi.com>
15686 * varasm.c: Fix formatting.
15687 * varray.c: Likewise.
15688 * vmsdbgout.c: Likewise.
15689 * xcoffout.c: Likewise.
15691 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
15693 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15694 update edge probabilities to match.
15696 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15698 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15700 * doc/languages.texi, doc/sourcebuild.texi: New files.
15701 * doc/configfiles.texi: Make a subsubsection. Update.
15702 * doc/configterms.texi: Add @node. Remove warning that this isn't
15703 instructions for building GCC.
15704 * doc/makefile.texi: Make a subsection.
15705 * doc/gccint.texi: Update.
15707 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
15709 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15711 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
15713 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15715 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
15717 * optabs.c (expand_fix): Look for wider integer modes first.
15719 * i386.md (mov?f): Avoid the fake const double trick for medium
15721 (min?f*/max?f*): Prohibit memory operands for i387 variant.
15722 (fop_df_4): Disable for SSE compilation.
15724 2002-01-10 Graham Stott <grahams@redhat.com>
15726 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15727 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15729 2002-01-10 Richard Henderson <rth@redhat.com>
15731 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15733 2002-01-10 Richard Henderson <rth@redhat.com>
15735 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15736 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
15738 2002-01-10 Kazu Hirata <kazu@hxi.com>
15740 * combine.c (can_combine_p): Fix a comment typo.
15742 2002-01-09 Zack Weinberg <zack@codesourcery.com>
15744 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15745 empty list correctly. Change loop index $t to $f for
15746 consistency with rest of Makefile.
15748 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
15750 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15751 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15753 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15754 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15755 (altivec_init_builtins): Same.
15756 (altivec_expand_unop_builtin): Return NULL_RTX on error.
15757 (altivec_expand_binop_builtin): Same.
15758 (altivec_expand_ternop_builtin): Same.
15761 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15762 ("altivec_vctuxs"): Fix typo.
15763 ("altivec_vnmsubfp"): Same.
15764 ("altivec_dssall"): New.
15765 ("altivec_mfvscr"): New.
15766 ("altivec_dss"): New.
15767 ("altivec_lvsl"): New.
15768 ("altivec_lvsr"): New.
15769 ("altivec_dstt"): New.
15770 ("altivec_dstst"): New.
15771 ("altivec_dststt"): New.
15772 ("altivec_dst"): New.
15774 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15775 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15777 2002-01-09 Richard Henderson <rth@redhat.com>
15779 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15781 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
15783 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15785 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15787 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15789 2002-01-09 Kazu Hirata <kazu@hxi.com>
15791 * read-rtl.c: Fix formatting.
15792 * real.c: Likewise.
15793 * regclass.c: Likewise.
15794 * regrename.c: Likewise.
15795 * reg-stack.c: Likewise.
15796 * reload1.c: Likewise.
15797 * reload.c: Likewise.
15800 2002-01-09 Kazu Hirata <kazu@hxi.com>
15802 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15803 to extract items in the expr_list chain.
15805 2002-01-09 Richard Henderson <rth@redhat.com>
15807 * config/vax/vax.c (vax_rtx_cost): Never abort.
15809 * config/vax/vax.h (REAL_ARITHMETIC): Define.
15811 2002-01-09 Jan Hubicka <jh@suse.cz>
15813 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15815 2002-01-09 Richard Henderson <rth@redhat.com>
15817 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15818 Unify code from various alternatives.
15820 2002-01-09 Richard Henderson <rth@redhat.com>
15822 * regrename.c (copy_value): Ignore the copy if the source register
15823 is present in the value chain with a narrower mode.
15825 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15827 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15828 for the c4x target. Also improve layout.
15830 2002-01-09 Richard Henderson <rth@redhat.com>
15832 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15833 * config/m32r/m32r.md (and ior xor splitters): Swap operands
15834 to match insn patterns.
15836 2002-01-09 Richard Henderson <rth@redhat.com>
15838 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15839 (copyprop_hardreg_forward_1): Likewise.
15841 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
15843 * pa.md (decrement_and_branch_until_zero): Change predicate for
15844 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
15846 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15848 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
15849 gets undefined. For Darwin.
15851 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15853 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
15855 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15857 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
15859 2002-01-08 Richard Henderson <rth@redhat.com>
15861 * regrename.c (copy_value): Ignore overlapping copies.
15863 2002-01-08 Richard Henderson <rth@redhat.com>
15865 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
15866 as needed to avoid shared structure.
15868 2002-01-08 Kazu Hirata <kazu@hxi.com>
15870 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
15873 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15875 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
15876 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
15877 documentation of obsolete macros.
15878 * system.h: Poison these macros.
15879 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
15880 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
15881 config/c4x/c4x.h, config/clipper/clipper.h,
15882 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
15883 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
15884 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
15885 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
15886 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
15887 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
15888 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15889 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
15890 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
15891 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15892 config/sparc/sparc.h, config/stormy16/stormy16.h,
15893 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
15894 definitions and commented out definitions of obsolete macros.
15895 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
15896 of MAX_INT_TYPE_SIZE.
15898 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15900 * config/s390/s390.c (s390_preferred_reload_class): Never
15901 return ADDR_REGS if it isn't a subset of the given class.
15902 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
15903 FP_REGS, but all superclasses as well.
15905 * config/s390/s390.c (s390_function_profiler): Fix thinko.
15907 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
15908 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
15909 must not be a const_int.
15911 2002-01-08 Richard Henderson <rth@redhat.com>
15913 * Makefile.in (toplev.o): Depend on options.h.
15914 (gcc.o): Depend on specs.h.
15916 2002-01-08 Jakub Jelinek <jakub@redhat.com>
15918 * expr.c (store_expr): Convert VOIDmode constants back to target's
15921 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15923 * doc/invoke.texi: Markup gcc as @command. Refer to
15924 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
15925 of http://gcc.gnu.org/thanks.html.
15927 2002-01-08 Dale Johannesen <dalej@apple.com>
15929 * config/rs6000/rs6000.md: Add missing int register
15930 target case to movdf_low.
15932 2002-01-08 Zack Weinberg <zack@codesourcery.com>
15934 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
15935 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
15936 (cppinit.o): Depend on except.h.
15937 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
15938 s-specs): New rules.
15940 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
15941 Don't create specs.h/options.h/gencheck.h here. Remove
15942 unnecessary variable settings from last argument of AC_OUTPUT.
15943 * config.in, configure: Regenerate.
15944 * intl.c: Hardcode package name as "gcc".
15946 * cppinit.c: Include except.h.
15947 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
15949 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
15950 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
15951 (!)USING_SJLJ_EXCEPTIONS.
15952 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
15954 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15956 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
15957 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
15958 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
15959 documentation of obsolete macros.
15960 * system.h: Poison these macros.
15961 * config/d30v/d30v.h, config/ns32k/encore.h,
15962 config/stormy16/stormy16.h: Remove definitions and commented out
15963 definitions of obsolete macros.
15965 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
15967 * objc/objc-act.c (handle_class_ref): Mark the declaration of
15968 %sobjc_class_ref_%s as used - to prevent unwanted compiler
15971 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15973 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
15974 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
15975 to insn adjusting stack/frame pointer.
15976 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
15977 accept operands that cause the insn to be non-splittable.
15979 2002-01-08 Graham Stott <grahams@redhat.com>
15981 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
15982 (C_TYPE_FIELDS_VOLATILE): Likewise.
15983 (C_TYPE_BEING_DEFINED): Likewise.
15984 (C_IS_RESERVED_WORD): Likewise.
15985 (C_TYPE_VARIABLE_SIZE): Likewise.
15986 (C_DECL_VARIABLE_SIZE): Likewise.
15987 (C_MISSING_PROTOTYPE_WARNED): Likewise.
15988 (C_SET_EXP_ORIGINAL_CODE): Likewise.
15989 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
15991 (C_DECL_ANTICIPATED): Likewise.
15992 (c_build_type_variant): Add parenthesis.
15994 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15996 * gcc.c (option_map): Remove --version.
15997 (process_command): Handle -fversion following the GNU Coding
15998 Standards. Partially addresses PR other/704.
16000 2002-01-08 Graham Stott <grahams@redhat.com>
16002 * combine.c (combine_instructions): Fix typo.
16004 2002-01-08 Graham Stott <grahams@redhat.com>
16006 * debug.h: Use "tree" and "rtx" throughout.
16008 * debug.c: Likewise.
16010 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
16012 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16013 constant pool, use the pool's version of the symbol instead.
16015 2002-01-07 Richard Henderson <rth@redhat.com>
16017 * regrename.c (find_oldest_value_reg): Ignore the value chain if
16018 the original register was copied in a mode with a fewer number of
16019 hard registers than the desired mode.
16020 (copyprop_hardreg_forward_1): Likewise.
16021 (debug_value_data): Fix loop test.
16022 * toplev.c (parse_options_and_default_flags): Reenable
16023 -fcprop-registers at -O1.
16025 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16027 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16028 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16030 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16033 * config/rs6000/rs6000.md: Add altivec predicate patterns.
16035 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16037 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16038 (pa_output_function_prologue): Output local label at the beginning of
16039 the prologue when profiling.
16040 (hppa_profile_hook): Use the local label rather than the function label.
16041 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16043 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16045 * config/rs6000/rs6000.c (print_operand): Remove extra space.
16046 (altivec_expand_unop_builtin): Fix thinko.
16047 (altivec_expand_binop_builtin): Same.
16048 (altivec_expand_ternop_builtin): Same.
16049 (altivec_expand_builtin): Same.
16051 2002-01-07 Richard Henderson <rth@redhat.com>
16053 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16055 2002-01-07 Jason Merrill <jason@redhat.com>
16057 * unwind-dw2.c (execute_cfa_program): Use < again.
16059 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16061 * predict.c (combine_predictions_for_insn): Avoid division by zero.
16063 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16065 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16066 Don't allow -1 - x -> ~x simplifications in the first pass.
16068 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16070 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16072 (altivec_expand_binop_builtin): Same.
16073 (altivec_expand_unop_builtin): Same.
16074 (print_operand): Fix typo.
16075 (bdesc_1arg): Add vupk* variants.
16077 * rs6000.h (rs6000_builtins): Add vupk* enums.
16079 * rs6000.md: Add altivec_vupk* variants.
16081 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
16083 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16084 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16085 and last update dates.
16087 2002-01-07 Janis Johnson <janis187@us.ibm.com>
16089 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16091 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
16093 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16094 * config/avr/avr.h (CPP_SPEC): Likewise.
16095 (LINK_SPEC): Likewise.
16096 (CRT_BINUTILS_SPECS): Likewise.
16097 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16098 * doc/invoke.texi (AVR Options): Document them.
16100 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
16102 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16105 2002-01-07 Graham Stott <grahams@redhat.com>
16107 * config/i386/i386.h: Update copyright date.
16108 (HALF_PIC_PTR): Add parenthesis.
16109 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16110 (CONSTANT_ALIGNMENT): Add parenthesis.
16111 (DATA_ALIGNMENT): Likewise.
16112 (LOCAL_ALIGNMENT): Likewise.
16113 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16114 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16115 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16116 (HARD_REGNO_NREGS): Add paranethesis.
16117 (VALID_SSE_REG_MODE): Whitespace.
16118 (VALID_MMX_REG_MODE): Whitespace.
16119 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16120 (ix86_hard_regno_mode_ok): Add parenthesis.
16121 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16122 (RETURN_IN_MEMORY): Whitespace.
16123 (N_REG_CLASSES): Add parenthesis.
16124 (INTEGER_CLASS_P): Add parenthesis and wrap.
16125 (FLOAT_CLASS_P): Likewise.
16126 (SSE_CLASS_P): Likewise.
16127 (MMX_CLASS_P): Likewise.
16128 (MAYBE_INTEGER_CLASS_P): Likewise.
16129 (MAYBE_FLOAT_CLASS_P): Likewise.
16130 (MAYBE_SSE_CLASS_P): Likewise.
16131 (MAYBE_MMX_CLASS_P): Likewise.
16132 (Q_CLASS_P): Likewise.
16133 (GENERAL_REGNO_P): Uppercase macro parameter.
16134 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16135 (FP_REGNO_P): Likewise.
16136 (ANY_FP_REGNO_P): Uppercase macro parameter.
16137 (SSE_REGNO_P): Likewise.
16138 (SSE_REGNO): Likewise.
16139 (SSE_REG_P): Likewise.
16140 (SSE_FLOAT_MODE_P): Likewise.
16141 (MMX_REGNO_P): Likewise.
16142 (MMX_REG_P):Likewise.
16143 (STACK_REG_P): Likewise.
16144 (NON_STACK_REG_P): Likewise.
16145 (STACK_TOP_P): Likewise.
16146 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16147 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16148 (SECONDARY_MEMORY_NEEDED): Likewise.
16149 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16150 (MD_ASM_CLOBBERS): Whitespace and wrap.
16151 (MUST_PASS_IN_STACK): Whitespace and wrap.
16152 (RETURN_POPS_ARGS): Add parenthesis.
16153 (INIT_CUMULATIVE_ARGS): Likewise.
16154 (FUNCTION_ARG): Likewise.
16155 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16156 (SETUP_INCOMING_VARARGS): Likewise.
16157 (BUILD_VA_LIST_TYPE): Add parenthesis.
16158 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16160 (EXPAND_BUILTIN_VA_ARG): Likewise.
16161 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16162 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16163 (INITIAL_ELIMINATION_OFFSET): Likewise.
16164 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16165 (REGNO_OK_FOR_BASE_P): Likewise.
16166 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16167 (REGNO_OK_FOR_DIREG_P): Likewise.
16168 (REG_OK_FOR_INDEX_P): Whitespace.
16169 (REG_OK_FOR_BASE_P): Whitespace.
16170 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16172 (FIND_BASE_TERM): Fix typo.
16173 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16174 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16175 (SYMBOLIC_CONST; Whitespace.
16176 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16177 (ENCODE_SECTION_INFO): Whitespace.
16178 (FINALIZE_PIC): Remove do { ... } while (0).
16179 (PROMOTE_MODE): Wrap in do { ... } while (0).
16180 (CONST_COSTS): Whitespace.
16181 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16182 (REGISTER_MOVE_COST): Add parenthesis.
16183 (MEMORY_MOVE_COST): Likewise.
16184 (EXTRA_CC_MODES): Whitespace.
16185 (SELECT_CC_MODE): Add parenthesis and whitespace.
16186 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16187 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16188 (ASM_OUTPUT_LABEL): Add paramethesis.
16189 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16190 (ASM_OUTPUT_REG_POP): Likewise.
16191 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16192 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16194 * config/i386/i386.c: Update copyright.
16195 (CHECK_STACK_LIMIT): Add parenthesis.
16196 (AT_BP): Uppercase macro parameter.
16197 (x86_64_int_parameter_registers): Constify.
16198 (x86_64_int_return_registers): Likewise.
16199 (ix86_compare_op0): Use rtx.
16200 (construct_container): Constify INTREG parameter.
16201 (function_arg): Use rtx.
16203 * diagnostic.h: Update copyright date.
16204 (output_buffer_state): Add parenthesis.
16205 (output_buffer_format_args): Likewise.
16207 * combine.c (combine_instructions): Replace XEXP (links, 0)
16210 2002-01-06 H.J. Lu <hjl@gnu.org>
16212 * cfgcleanup.c (thread_jump): Fix 2 typos.
16214 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16216 * config.gcc: Add support for --enable-altivec.
16218 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16220 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16222 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16224 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16225 __objc_class_name_*.
16227 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16229 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16231 2002-01-06 Richard Henderson <rth@redhat.com>
16233 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16234 nop them out. Increment label reference count for REG_LABEL.
16235 (fill_slots_from_thread): Frob label reference count around
16236 delete_related_insns.
16238 2002-01-05 Richard Henderson <rth@redhat.com>
16240 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16243 2002-01-05 Richard Henderson <rth@redhat.com>
16245 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16246 * integrate.c (output_inline_function): Likewise.
16247 * toplev.c (rest_of_compilation): Do it here instead. Move call
16248 to remove_unnecessary_notes after emitting abstract instance.
16249 Force an emitted nested function to have its parent emited as well.
16250 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16252 (rtl_for_decl_location): Do not look at reload data structures
16253 before reload has run.
16255 2002-01-05 Kazu Hirata <kazu@hxi.com>
16257 * cse.c: Fix formatting.
16258 * dwarf2asm.c: Likewise.
16259 * dwarf2out.c: Likewise.
16260 * explow.c: Likewise.
16261 * expmed.c: Likewise.
16262 * function.c: Likewise.
16263 * gcov.c: Likewise.
16264 * gencheck.c: Likewise.
16265 * genrecog.c: Likewise.
16266 * ggc-common.c: Likewise.
16267 * ggc-page.c: Likewise.
16268 * global.c: Likewise.
16270 2002-01-05 Kazu Hirata <kazu@hxi.com>
16272 * combine.c: Fix formatting.
16274 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16277 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16279 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16281 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16282 as 1 for __powerpc64__ as well.
16284 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16286 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16289 2002-01-05 Daniel Berlin <dan@dberlin.org>
16291 * lcm.c: Revert change, due to performance regression it causes on
16292 SPEC because it's slightly more conservative (sigh, I hate
16295 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16297 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16299 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16301 * doc/cppinternals.texi: Update.
16303 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16305 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16306 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16308 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16309 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16310 kludge for pre-october-14th mmix versions to handle new-found bug
16311 with PUSHJ/PUSHGO and the register stack.
16312 * config/mmix/mmix.h (struct machine_function): Rename member
16313 has_call_value_without_parameters to has_call_without_parameters.
16314 All referers changed.
16315 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16316 TARGET_MASK_BRANCH_PREDICT): New macros.
16317 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16318 -mno-reg-stack-fill-bug-workaround.
16319 * config/mmix/mmix.md ("call"): Set struct machine member
16320 has_call_without_parameters.
16322 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16324 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16326 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16328 * cfgcleanup.c: Include tm_p.h
16329 (mark_effect): Fix handling of hard register; fix handling of SET
16331 2002-01-04 Kazu Hirata <kazu@hxi.com>
16333 * config/h8300/h8300.md (anonymous patterns): Check that
16334 operands are registers before using REGNO on them.
16336 2002-01-03 Roland McGrath <roland@frob.com>
16338 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16340 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16342 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16343 * c-common.h (genrtl_expr_stmt_value): Likewise.
16344 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16345 (expand_expr_stmt_value): Add maybe_last argument.
16346 Don't warn about statement with no effect if it is the last statement
16347 in expression statement.
16348 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16349 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16350 expand_expr_stmt_value.
16351 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16352 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16353 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16354 as maybe_last to expand_expr_stmt_value.
16356 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16358 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16359 be passed in, do not build it.
16360 (c_begin_if_stmt): New function.
16361 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16362 * c-common.h (c_expand_start_cond): Update prototype.
16363 (c_begin_if_stmt): Prototype new function.
16364 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16365 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16366 c_begin_while_stmt and c_finish_while_stmt_cond.
16368 2002-01-04 William Cohen <wcohen@redhat.com>
16370 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16371 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16372 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16373 * config/pa/som.h (ASM_FILE_START): Likewise.
16375 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16377 * lcm.c: Include df.h.
16378 Add available_transfer_function prototype.
16379 (compute_available): Rework to use iterative dataflow framework.
16380 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16381 with bb_info in df.h
16382 (available_transfer_function): New function.
16384 * Makefile.in (lcm.o): add df.h to dependencies.
16386 2002-01-04 Richard Henderson <rth@redhat.com>
16388 * config/alpha/alpha.c (some_operand): Accept HIGH.
16389 (input_operand): Likewise; accept simple references to globals.
16390 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16391 (alpha_const_double_ok_for_letter_p): Likewise.
16392 (alpha_extra_constraint): Likewise.
16393 (alpha_preferred_reload_class): Likewise. Do not force
16394 symbolic constants to memory.
16395 (alpha_legitimate_address_p): Accept simple references
16396 to small_symbolic_operand.
16397 (alpha_legitimize_address): New arg scratch. Be prepared to be
16398 called when no_new_pseudos. Emit simple symbolic references.
16399 Split integers into low, high, and rest.
16400 (alpha_expand_mov): Use alpha_legitimize_address.
16401 (some_small_symbolic_mem_operand): New.
16402 (split_small_symbolic_mem_operand): New.
16403 * config/alpha/alpha-protos.h: Update.
16404 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16405 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16406 (EXTRA_CONSTRAINT): Likewise.
16407 (PREFERRED_RELOAD_CLASS): Likewise.
16408 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16409 (PREDICATE_CODES): Update.
16410 * config/alpha/alpha.md: New post-reload splitters to convert
16411 simplfied symbolic operands to the form that references $29.
16412 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16413 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16415 2002-01-03 Richard Henderson <rth@redhat.com>
16417 * local-alloc.c (function_invariant_p): Update commentary.
16419 2002-01-04 H.J. Lu <hjl@gnu.org>
16421 * toplev.c (rest_of_compilation): Fix a typo when calling
16424 2002-01-03 Kazu Hirata <kazu@hxi.com>
16426 * c-common.c: Fix formatting.
16427 * diagnostic.c: Likewise.
16428 * doloop.c: Likewise.
16429 * dwarf2out.c: Likewise.
16431 2002-01-03 Kazu Hirata <kazu@hxi.com>
16433 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16434 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16436 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16438 * cpperror.c: Update comments and copyright.
16439 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16440 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16442 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
16444 * collect2.c (main): Use strcmp when testing for "-shared".
16446 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16448 * cppmacro.c: Don't include intl.h. Update comments.
16449 (new_number_token): Allocate enough buffer for 64-bit unsigned
16450 integers; update prototype.
16451 * cppmain.c: Update comments.
16453 2002-01-03 William Cohen <wcohen@redhat.com>
16455 * function.h (struct function): Add profile.
16456 (current_function_profile): New.
16457 doc/extend.texi: Update documentation.
16458 * final.c (final_start_function): Use current_function_profile
16459 instead of profile_flag.
16460 (profile_after_prologue): Likewise.
16461 * function.c (expand_function_start): Likewise.
16462 (expand_function_start): Likewise.
16463 * config/alpha/alpha.c (direct_call_operand):
16464 (alpha_does_function_need_gp): Likewise.
16465 (alpha_expand_prologue): Likewise.
16466 * config/arm/arm.c (arm_expand_prologue): Likewise.
16467 thumb_expand_prologue: Likewise.
16468 * config/d30v/d30v.c (d30v_stack_info): Likewise.
16469 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16470 (fr30_expand_prologue): Likewise.
16471 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16472 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16473 * config/i386/i386.h (FINALIZE_PIC): Likewise.
16474 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16475 * config/i960/i960.c (i960_output_function_prologue): Likewise.
16476 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16477 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16478 (m32r_expand_prologue): Likewise.
16479 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16480 (m88k_expand_prologue): Likewise.
16481 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16482 * config/mips/mips.c (compute_frame_size): Likewise.
16483 (mips_expand_prologue): Likewise.
16484 (mips_can_use_return_insn): Likewise.
16485 * config/pa/elf.h (ASM_FILE_START): Likewise.
16486 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16487 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16488 * config/pa/som.h (ASM_FILE_START): Likewise.
16489 * config/romp/romp.c (romp_using_r14): Likewise.
16490 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16491 (rs6000_stack_info): Likewise.
16492 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16493 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16494 * config/v850/v850.c (compute_register_save_size): Likewise.
16496 2002-01-03 Jakub Jelinek <jakub@redhat.com>
16498 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16499 gen_lowpart_common fails, use gen_lowpart_SUBREG.
16501 2002-01-03 Turly O'Connor <turly@apple.com>
16503 * darwin.c (machopic_output_possible_stub_label): Don't generate
16504 stub routines for pseudo-stubs which we've just defined.
16506 2002-01-03 Kazu Hirata <kazu@hxi.com>
16508 * builtins.c: Fix formatting.
16509 * c-typeck.c: Likewise.
16510 * combine.c: Likewise.
16511 * expr.c: Likewise.
16512 * loop.c: Likewise.
16514 2002-01-03 Andreas Schwab <schwab@suse.de>
16516 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16517 and return true if _cpp_push_next_buffer pushed a new include
16519 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16520 _cpp_pop_file_buffer did not push a new file.
16521 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16523 2002-01-02 Eric Christopher <echristo@redhat.com>
16525 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16526 FIND_REG_INC_NOTE call. Update copyright.
16527 * loop.c (canonicalize_condition): Ditto.
16528 * reorg.c (delete_scheduled_jump): Ditto.
16530 2002-01-03 Kazu Hirata <kazu@hxi.com>
16532 * gcse.c: Fix formatting.
16534 2002-01-03 Graham Stott <grahams@redhat.com>
16536 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16537 forward defs for struct tags rtx_def, union_tree, rtvec_def
16538 also output corresponding typedefs for rtx, tree, and rtvec.
16540 * system.h: Move forward defs for struct tags rtx_def, union_tree,
16541 rtvec_def along with corresponding typedefs for rtx, tree, and
16542 rtvec to config.h, hconfig.h, tconfig.h.
16544 2002-01-03 Graham Stott <grahams@redhat.com>
16546 * tree.h: Update copyright date.
16547 (IS_EXPR_CODE_CLASS): Add parenthesis.
16548 (TREE_SET_CODE): Add whitespace.
16549 (TREE_CHECK): Add parenthesis.
16550 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16551 (CST_OR_CONSTRUCTOR_CHECK):
16552 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16553 (TREE_SYMBOL_REFERENCED): Whitespace.
16554 (INT_CST_LT): Likewise.
16555 (INT_CST_LT_UNSIGNED): Likewise.
16556 (tree_real_cst): Unwrap comment.
16557 (tree_string): Likewise.
16558 (tree_complex): Likewise.
16559 (IDENTIFIER_POINTER): correct cast.
16560 (SAVE_EXPR_CONTEXT): Whitespace.
16561 (EXPR_WFL_FILENAME_NODE): Likewise.
16562 (EXPR_WFL_FILENAME): Remove parenthesis.
16563 (DECL_ORIGIN): Add parenthesis.
16564 (DECL_FROM_INLINE): Use NULL_TREE.
16565 (build_int_2): Whitespace.
16566 (build_type_variant): Add parenthesis.
16568 * gcc/jcf-parse.c: Update copyright date.
16569 (yyparse): Constify resource_filename.
16571 2002-01-03 Graham Stott <grahams@redhat.com>
16573 * rtl.h: Update copyright date.
16574 (RTL_CHECK1): Wrap long line.
16575 (RTL_CHECK2): Likewise.
16576 (RTL_CHECKC1): Wrap long line and whitespace.
16577 (RTL_CHECKC2): Likewise.
16578 (XWINT): Whitespace.
16584 (XBITMAP): Likewise.
16586 (XBBDEF): Likewise.
16588 (X0WINT): Likewise.
16590 (X0UINT): Likewise.
16594 (X0MODE): Likewise.
16595 (X0BITMAP): Likewise.
16596 (X0TREE): Likewise.
16597 (X0BBDEF): Likewise.
16598 (X0ADVFLAGS): Likewise.
16599 (X0CSELIB): Likewise.
16600 (X0MEMATTR): Likewise.
16601 (XCWINT): Likewise.
16603 (XCUINT): Likewise.
16607 (XCMODE): Likewise.
16608 (XCBITMAP): Likewise.
16609 (XCTREE): Likewise.
16610 (XCBBDEF): Likewise.
16611 (XCADVFLAGS): Likewise.
16612 (XCCSELIB): Likewise.
16613 (XC2EXP): Likewise.
16614 (INSN_UID): Likewise.
16615 (PREV_INSN): Likewise.
16616 (PATTERN): Likewise.
16617 (INSN_CODE): Likewise.
16618 (PUT_REG_NOTE_KIND): Likewise.
16619 (CODE_LABEL_NUMBER): Likewise.
16620 (NOTE_SOURCE_FILE): Likewise.
16621 (NOTE_BLOCK): Likewise.
16622 (NOTE_EH_HANDLER): Likewise.
16623 (NOTE_RANGE_INFO): Likewise.
16624 (NOTE_LIVE_INFO): Likewise.
16625 (NOTE_BASIC_BLOCK): Likewise.
16626 (NOTE_EXPECTED_VALUE): Likewise.
16627 (NOTE_LINE_NUMBER): Likewise.
16628 (LABEL_NAME): Likewise.
16629 (LABEL_NUSES): Likewise.
16630 (LABEL_ALTERNATE_NAME): Likewise.
16631 (ADDRESSOF_DECL): Likewise.
16632 (JUMP_LABEL): Likewise.
16633 (LABEL_NEXTREF): Likewise.
16635 (ORIGINAL_REGNO: Likewise.
16636 (HARD_REGISTER_NUM_P): Add parenthesis.
16637 (SUBREG_REG): Whitespace.
16638 (SUBREG_BYTE): Likewise.
16639 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16640 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16641 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16642 (ASM_OPERANDS_INPUT_VEC): Likewise.
16643 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16644 (ASM_OPERANDS_INPUT): Likewise.
16645 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16646 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16647 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16648 (ASM_OPERANDS_INPUT_MODE): Likewise.
16649 (ASM_OPERANDS_SOURCE_FILE): Likewise.
16650 (ASM_OPERANDS_SOURCE_LINE): Likewise.
16651 (MEM_SET_IN_STRUCT_P): Minor reformat.
16652 (TRAP_CONDITION): Whitespace.
16653 (TRAP_CODE): Likewise.
16654 (COND_EXEC_TEST): Likewise.
16655 (COND_EXEC_CODE): Likewise.
16656 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16657 (PHI_NODE_P): Add parenthesis.
16658 (plus_constant): Whitespace and add parenthesis.
16660 2002-01-03 Kazu Hirata <kazu@hxi.com>
16662 * config/avr/avr.c: Fix comment typos.
16663 * config/c4x/c4x.md: Likewise.
16664 * config/dsp16xx/dsp16xx.h: Likewise.
16665 * config/dsp16xx/dsp16xx.md: Likewise.
16666 * config/i386/i386.md: Likewise.
16667 * config/ia64/ia64.c: Likewise.
16668 * config/m32r/m32r.h: Likewise.
16669 * config/m68hc11/m68hc11.md: Likewise.
16670 * config/mmix/mmix.c: Likewise.
16671 * config/mn10200/mn10200.c: Likewise.
16672 * config/romp/romp.c: Likewise.
16673 * config/sh/sh.c: Likewise.
16674 * config/stormy16/stormy16.c: Likewise.
16675 * config/stormy16/stormy16.h: Likewise.
16676 * config/stormy16/stormy16.md: Likewise.
16678 2002-01-03 Graham Stott <grahams@redhat.com>
16680 * loop.h: Update copyright date.
16681 (LOOP_MOVABLES): Fix typo.
16682 (LOOP_REGS): Likewise.
16683 (LOOP_IVS): Likewise.
16685 2002-01-03 Graham Stott <grahams@redhat.com>
16687 * cppinit.c: Update copyright date.
16688 Don't include output.h
16689 * Makefile.in: Update copyright date.
16692 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
16695 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16696 (-pthread) Add to RS/6000 options.
16698 2002-01-02 Kazu Hirata <kazu@hxi.com>
16700 * except.c: Fix comment typos.
16701 * loop.c: Likewise.
16702 * varasm.c: Likewise.
16703 * doc/tm.texi: Fix a typo.
16705 2002-01-02 Jakub Jelinek <jakub@redhat.com>
16707 * c-typeck.c (output_init_element): Allow initializing static storage
16708 duration objects with compound literals.
16710 2002-01-02 Richard Henderson <rth@redhat.com>
16712 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16715 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16717 * gcc.c (default_compilers): Const-ify.
16718 * mips-tdump.c (stab_names): Likewise.
16719 * mips-tfile.c (map_coff_types, map_coff_storage,
16720 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16721 pseudo_ops_t, pseudo_ops): Likewise.
16722 * protoize.c (default_include): Likewise
16724 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16725 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16726 Add array size in declaration.
16727 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16728 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16729 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16730 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16731 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16732 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16733 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16734 emtens, make_nan): Const-ify.
16735 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16736 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16738 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
16740 * config.gcc (ia64-*-*): Set extra_headers.
16741 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
16742 * config/alpha/t-osf: Remove.
16743 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16745 2002-01-02 David Edelsohn <edelsohn@gnu.org>
16747 * config/rs6000/t-aix43: Revert previous change.
16749 2002-01-02 Jason Merrill <jason@redhat.com>
16751 * c-decl.c (c_expand_body): Call outlining_inline_function when
16752 emitting an inline function out of line.
16754 2002-01-02 Richard Henderson <rth@redhat.com>
16756 * dwarf2out.c (limbo_die_node): Add created_for member.
16757 (new_die): New argument created_for. Update all callers.
16758 (mark_limbo_die_list): New.
16759 (dwarf2out_init): Register limbo_die_list as a root.
16760 (dwarf2out_finish): Force insert limbo dies into their function
16763 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
16766 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16768 2002-01-02 Kazu Hirata <kazu@hxi.com>
16770 * config/h8300/fixunssfsi.c: Update copyright.
16773 * config/h8300/h8300.c: Update copyright.
16774 Eliminate warnings.
16776 2002-01-02 Kazu Hirata <kazu@hxi.com>
16778 * config/romp/romp.c: Fix comment formatting.
16779 * config/romp/romp.h: Likewise.
16780 * config/romp/romp.md: Likewise.
16781 * config/s390/s390.c: Likewise.
16782 * config/stormy16/stormy16.c: Likewise.
16783 * config/stormy16/stormy16.h: Likewise.
16785 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
16787 * c-common.h (genrtl_expr_stmt_value): Declare.
16788 * c-semantics.c (genrtl_goto_stmt): Redirect to...
16789 (genrtl_goto_stmt_value): ... this new function. Pass new
16790 argument down to expand_expr_stmt_value, taking
16791 TREE_ADDRESSABLE into account.
16792 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16793 STMT_EXPR as addressable, i.e., one whose result we want.
16794 * expr.c (expand_expr): Don't save expression statement value
16795 of labeled_blocks or loop_exprs.
16796 * stmt.c (expand_expr_stmt): Redirect to...
16797 (expand_expr_stmt_value): ... this new function. Use new
16798 argument to tell whether to save expression value.
16799 (expand_end_stmt_expr): Reset last_expr_type and
16800 last_expr_value if we don't have either.
16801 * tree-inline.c (declare_return_variable): Mark its use
16802 statement as addressable.
16803 * tree.h: Document new use of TREE_ADDRESSABLE.
16804 (expand_expr_stmt_value): Declare.
16806 2002-01-01 Tom Rix <trix@redhat.com>
16808 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16809 rs6000_emit_allocate_stack.
16811 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
16813 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16814 ${srcdir}/ginclude/ to every entry in extra_headers.
16815 * configure: Regenerate.
16816 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16817 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16818 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16819 * ginclude/proto.h: Rename to config/convex/proto.h.
16821 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16823 * attribs.c (handle_vector_size_attribute): Use host_integerp
16824 and tree_int_cst; remove warnings.
16825 * caller-save.c (insert_restore): Add cast to get rid of warning.
16826 (insert_save): Likewise.
16827 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16828 * regmove.c (find_matches): Add temporary var to kill a warning.
16830 2002-01-01 Douglas B Rupp <rupp@gnat.com>
16832 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16833 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16834 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16835 (vms-dwarf2eh.o): Add Makefile rule.
16836 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16837 * config/alpha/vms-dwarf2eh.asm: New file.
16839 * gcc.c (delete_if_ordinary): Delete all versions.
16841 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
16843 * config/mmix/mmix.md: Update FIXME to not mention
16845 (MMIX_rJ_REGNUM): New define_constants constant.
16846 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
16847 "*movdicc_real"): Adjust contraints formatting.
16848 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
16849 for branch prediction.
16850 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
16852 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
16853 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
16854 number. Delete related FIXMEs.
16855 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
16856 from number to MMIX_rJ_REGNUM.
16857 (TARGET_MASK_BRANCH_PREDICT): New.
16858 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
16859 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
16860 value. Add -mbranch-predict and -mno-branch-predict.
16861 (TARGET_VERSION): Drop date.
16862 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
16863 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
16864 for finding out global symbols.
16865 (mmix_asm_output_labelref): Revert condition for global symbol.
16866 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
16867 (mmix_print_operand_punct_valid_p): A '+' is valid.
16869 See ChangeLog.6 for earlier changes.