1 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
4 only if not already defined.
6 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
8 * config/h8300/h8300-protos.h: Remove prototypes for
9 ok_for_bclr and small_power_of_two.
10 * config/h8300/h8300.c (small_power_of_two): Remove.
11 (ok_for_blcr): Likewise.
12 (fix_bit_operand): Make WHAT deal with an integer instead of a
14 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
15 (CONST_OK_FOR_P): Likewise.
16 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
17 CONST_OK_FOR_P any more.
18 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
23 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
25 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
26 (CPP_PREDEFINES): Make sure this is undefined.
27 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
28 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
29 or -U__MIPSEB__ before defining one or the other. Instead,
30 use %(subtarget_endian_default) if neither -EB nor -EL are
32 (SUBTARGET_EXTRA_SPECS): Define.
33 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
36 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
38 * doc/md.texi (Patterns): Note pattern condition pitfall
41 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
43 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
44 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
45 ternary operations from here...
46 (rs6000_expand_builtin): ...to here.
47 New argument expandedp.
48 Change all instances of altivec_expand_binop_builtin to
49 rs6000_expand_binop_builtin.
50 (altivec_expand_unop_builtin): Rename to
51 rs6000_expand_unop_builtin.
52 (altivec_expand_binop_builtin): Rename to
53 rs6000_expand_binop_builtin.
54 (altivec_expand_ternop_builtin): Rename to
55 rs6000_expand_ternop_builtin.
57 2002-05-29 Richard Henderson <rth@redhat.com>
59 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
60 (TARGET_BI_ARCH): Likewise.
61 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
62 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
63 (TARGET_64BIT_DEFAULT): Default to 0.
64 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
66 2002-05-29 Richard Henderson <rth@redhat.com>
68 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
69 (get_pc_thunk_name): New.
70 (output_set_got): Use it.
71 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
72 into linkonce sections.
74 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
76 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
77 (CPP_PREDEFINES): Make sure this is undefined.
78 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
79 (CPP_SUBTARGET_SPEC): Don't provide different versions for
80 default-32 and default-64. Just always use %(netbsd_cpp_spec).
81 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
82 cpp_subtarget_spec64. Add netbsd_cpp_spec.
83 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
84 (CPP_PREDEFINES): Make sure this is undefined.
85 (SUBTARGET_EXTRA_SPECS): Define.
86 (CPP_SPEC): Use %(netbsd_cpp_spec).
88 2002-05-29 Jeff Law <law@redhat.com>
90 * flow.c (propagate_one_insn): Do not remove a dead insn if it
91 contains a REG_RETVAL note.
93 * haifa-sched (sched_analyze): Remove another useless clearing
94 of SCHED_GROUP_P I missed yesterday.
96 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
97 * pa.c (pa_asm_output_mi_thunk): New function.
98 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
100 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
101 Marek Michalkiewicz <marekm@amelek.gda.pl>
103 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
104 (avr_asm_only_p): Make non-static.
105 (enum avr_arch): Remove.
106 (avr_arch_types): New.
107 (avr_mcu_types): Update.
108 (avr_override_options): Use avr_arch_types table instead of switch.
109 * avr.h (CPP_PREDEFINES): Die.
110 (avr_base_arch_macro, avr_extra_arch_macro): New.
111 (TARGET_CPU_CPP_BUILTINS): New.
112 (CPP_SPEC, EXTRA_SPECS): Simplify.
113 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
116 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
118 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
119 NETBSD_OS_CPP_BUILTINS_AOUT.
120 (SUBTARGET_EXTRA_SPECS): Define.
121 (CPP_SPEC): Use %(netbsd_cpp_spec).
123 2002-05-29 Richard Henderson <rth@redhat.com>
125 * config/i386/i386.c (ix86_output_function_epilogue): New.
126 (TARGET_ASM_FUNCTION_EPILOGUE): New.
127 (pic_label_name): Remove.
128 (pic_labels_used): New.
129 (ix86_asm_file_end): Emit one pc load stub for each register used.
130 (output_set_got): Generate deep pc load to any register.
131 (ix86_select_alt_pic_regnum): New.
132 (ix86_save_reg): Don't save pic register if we can find a valid
133 call-clobbered replacement.
134 (ix86_expand_prologue): If we found a valid replacement, renumber
135 pic_offset_table_rtx.
136 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
137 pic_offset_table_rtx after reload.
138 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
139 * config/i386/i386.md (set_got): Make insn, not expander.
140 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
142 2002-05-29 Richard Henderson <rth@redhat.com>
144 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
145 alignment for alloca.
147 2002-05-29 Richard Henderson <rth@redhat.com>
149 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
150 (print_operand_address): Only add rip for symbolic addresses
151 for which we do not have another relocation type.
153 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
155 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
156 (EXTRA_SPECS): Add netbsd_cpp_spec.
157 (CPP_SPEC): Use %(netbsd_cpp_spec).
158 (CPP_PREDEFINES): Remove.
159 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
160 (EXTRA_SPECS): Define.
161 (CPP_SPEC): Use %(netbsd_cpp_spec).
162 (CPP_PREDEFINES): Remove.
164 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
167 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
170 2002-05-29 Eric Christopher <echristo@redhat.com>
172 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
173 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
175 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
177 * config/fr30/fr30.md: Remove previous restriction on splits.
178 Enforce conformance through gen_lowpart and cont_int_operand.
179 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
180 as the assembler does not support ".bss".
182 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
184 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
185 (CPP_PREDEFINES): Remove.
186 (SUBTARGET_EXTRA_SPECS): Define.
187 (CPP_SPEC): Use %(netbsd_cpp_spec).
188 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
189 (CPP_PREDEFINES): Remove.
190 (SUBTARGET_EXTRA_SPECS): Define.
191 (CPP_SPEC): Use %(netbsd_cpp_spec).
192 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
193 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
194 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
196 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
198 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
199 Zack Weinberg <zack@codesourcery.com>
201 * cppexp.c (cpp_num): Move to cpplib.h.
203 (interpret_float_suffix, interpret_int_suffix): New.
204 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
205 (cpp_classify_number, cpp_interpret_integer): New.
206 (interpret_number): Remove.
207 (eval_token): Update to use new routines.
208 * cpphash.h (cpp_num_part): Move to cpplib.h.
209 * cppinit.c (cpp_post_options): Set warn_long_long.
210 * cpplib.h (struct cpp_options): Add warn_long_long.
211 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
212 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
213 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
214 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
215 cpp_interpret_integer): New.
217 2002-05-29 Joel Sherrill <joel@OARcorp.com>
219 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
221 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
223 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
224 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
225 (CPP_SUBTARGET_SPEC): Define.
226 (SUBTARGET_EXTRA_SPECS): Define.
229 2002-05-29 Chris Lattner <sabre@nondot.org>
231 * ssa.c (rename_insn_1): Rename uses of undefined registers to
232 prevent confusion if/when the register is defined.
234 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
237 * config/cris/cris.md: Fix typos and thinkos in comments.
238 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
240 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
241 ("*mov_sideqi_mem"): Similar, but for operand 3.
242 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
243 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
244 Remove spurious mode specifier on operand 2.
246 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
248 * config/h8300/h8300-protos.h: Remove the prototype for
250 Add prototypes for single_one_operand and single_zero_operand.
251 * config/h8300/h8300.c (o_operand): Remove.
252 (single_one_operand): New.
253 (single_zero_operand): Likewise.
254 (print_operand): For 'V' operand, and the operand with 0xff.
255 For 'V' and 'W' operands, do not and the bit position with 7.
256 * config/h8300/h8300.md (various anonymous patterns): Replace
257 use of exact_log2 with single_one_operand/single_zero_operand.
259 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
261 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
263 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
265 * config/s390/s390.c (legitimate_pic_operand_p): Do not
266 accept symbolic LARL operands.
267 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
270 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
272 * config/s390/s390.md (cmpstr_64/31): Mark whole
273 input registers as used.
275 2002-05-28 Richard Henderson <rth@redhat.com>
277 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
278 not current_function_uses_pic_offset_table and
279 current_function_uses_const_pool; examine current_function_profile.
280 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
281 input to blockage if needed.
282 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
283 (legitimize_pic_address): Likewise. Set regs_ever_live for
284 pic_offset_table_rtx when invoked during reload.
285 * config/i386/i386.h (FINALIZE_PIC): Remove.
286 * config/i386/i386.md (tablejump): Reformat. Do not set
287 current_function_uses_pic_offset_table.
288 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
289 (blockage): Accept anything as operand 0.
291 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
293 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
294 common CPP built-ins for all NetBSD a.out targets.
295 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
296 common CPP built-ins for all NetBSD ELF targets.
297 * config/netbsd.h: Add missing notice.
298 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
299 for all NetBSD targets.
300 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
301 for all NetBSD targets using an LP64 code model.
302 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
305 2002-05-28 Richard Henderson <rth@redhat.com>
307 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
308 update if UPDATE_LIFE_LOCAL.
310 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
312 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
314 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
315 Jason R. Thorpe <thorpej@wasabisystems.com>
317 config/sh reorganization to factor out endianness and coff:
319 * config/sh/little.h: New file.
320 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
321 defined, define to 0 to select big-endian.
322 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
323 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
324 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
325 * config/sh/t-be: New file.
326 * config/sh/t-le: New file.
328 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
329 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
330 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
331 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
332 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
333 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
334 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
335 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
336 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
337 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
338 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
339 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
340 (LINK_SPEC): Define to SH_LINK_SPEC.
341 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
342 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
343 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
344 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
345 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
346 * config/sh/coff.h: New file.
347 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
348 (TARGET_OBJFMT_CPP_BUILTINS): Define.
349 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
350 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
351 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
352 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
353 (PTRDIFF_TYPE): Likewise.
354 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
355 (CPP_PREDEFINES): Don't define.
356 (TARGET_OBJFMT_CPP_BUILTINS): Define.
357 (LINK_SPEC): Define to SH_LINK_SPEC.
358 (LINK_EMUL_PREFIX): Redefine.
359 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
360 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
361 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
362 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
363 (TARGET_OS_CPP_BUILTINS): Define.
364 (TARGET_DEFAULT): Redefine.
365 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
366 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
367 (LINK_SPEC): Don't redefine.
368 (LINK_DEFAULT_CPU_EMUL): Redefine.
369 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
370 * sh.c (sh_asm_named_section): Don't declare / define.
371 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
372 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
373 (sh64-*-elf* tm_file): Likewise.
374 (sh-*-rtemself* tm_file): Likewise.
375 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
376 (sh-*-linux* tmake_file): Add sh/t-le.
377 (sh-*-rtems* tm_file): Add sh/coff.h
378 (sh-*-* tm_file): Likewise.
380 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
382 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
383 CONSTANT_POOL_ADDRESS_P.
385 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
387 2002-05-28 David Edelsohn <edelsohn@gnu.org>
388 Jeff Law <law@redhat.com>
390 * optabs.c (expand_binop): Fix nwords sign warnings.
391 generate pseudo for add_optab.
393 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
394 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
396 2002-05-28 Marc Espie <espie@openbsd.org>
398 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
399 inherited from gas.h.
400 (ASM_QUAD): Undef. OpenBSD does not support it.
402 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
404 * doc/install.texi (binaries): Change mingw binaries
405 link to www.mingw.org.
407 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
409 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
411 2002-05-28 Richard Henderson <rth@redhat.com>
413 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
414 bottom alignment for leaf functions.
416 2002-05-28 Zack Weinberg <zack@codesourcery.com>
418 * config/pa/milli32.S, config/pa/lib1funcs.asm,
419 config/sparc/sol2-g1.asm: Delete unused files.
421 2002-05-28 Richard Henderson <rth@redhat.com>
423 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
425 * flow.c (calculate_global_regs_live): Rename call_used to
426 invalidated_by_call. Initialize from regs_invalidated_by_call
427 instead of call_used_regs.
429 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
432 2002-05-28 Zack Weinberg <zack@codesourcery.com>
434 * tree.h: Forward-declare struct realvaluetype.
435 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
437 (TREE_REAL_CST_PTR): New accessor.
438 (TREE_REAL_CST): Update.
439 * real.h: Include machmode.h.
440 (realvaluetype): Make it struct realvaluetype, not a typedef.
441 (build_real): Prototype here.
443 * tree.c: Include real.h.
444 (build_real): Allocate the REAL_VALUE_TYPE as a separate
445 object in GC memory, set TREE_REAL_CST_PTR to point to it.
446 (build_real_from_int_cst): Use build_real.
447 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
450 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
451 fold-const.c, print-tree.c, real.c: Include real.h.
452 * Makefile.in: Update dependency lists.
454 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
456 * basic-block.h (last_basic_block): Declare.
457 (expunge_block_nocompact): Declaration removed.
458 (compact_blocks): Declare.
459 * cfg.c (last_basic_block): New variable.
460 (expunge_block_nocompact): Removed.
461 (expunge_block): Do not compact basic blocks.
462 (compact_blocks): New.
463 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
465 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
467 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
468 real positions of blocks.
469 (delete_unreachable_blocks): Simplified -- quadratic behavior now
471 (cleanup_cfg): Compact blocks.
472 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
473 basic_block_info varray.
474 (flow_delete_block): Comment update.
475 (back_edge_of_syntactic_loop_p): Modify position check code.
476 (verify_flow_info): Update checking.
477 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
478 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
479 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
480 indices no longer change.
481 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
483 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
484 * profile.c (branch_prob): Compact blocks.
485 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
488 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
490 * config/h8300/h8300.md (two anonymous patterns): New.
492 2002-05-28 David S. Miller <davem@redhat.com>
494 * config/sparc/sparc.md (cpu): Tidy.
495 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
497 (in_call_delay): Delete reference to 'return' type.
498 (eligible_for_return_delay, in_return_delay, define_delay
499 referencing those): Delete.
500 (rest of file): Use new type attributes as appropriate.
501 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
502 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
503 * config/sparc/ultra1_2.md (us1_single): New reservation.
504 (us1_ialuX): Likewise.
505 * config/sparc/ultra3.md (us3_single): Likewise.
506 (us3_ialuX): Likewise.
507 (us3_imul, us3_idiv): Tweak.
509 2002-05-28 Richard Henderson <rth@redhat.com>
511 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
514 2002-05-28 Richard Henderson <rth@redhat.com>
516 * config.gcc: Obsolete mn10200.
518 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
520 * cppexp.c (interpret_number): Optimize for single-digit
521 and less-than-half-precision cases.
522 (num_trim, num_positive, num_div_op): Cast constants.
524 2002-05-27 Bo Thorsen <bo@suse.de>
526 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
527 3.1 branch. The file was made by Jakub Jelinek.
528 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
529 support so multilib doesn't break. And don't define this at all
530 when -Dinhibit_libc is used.
531 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
532 * config/i386/t-linux64: Implement full multilib support. Patch
533 originally done by Andreas Jaeger and Jakub Jelinek.
535 2002-05-27 Roger Sayle <roger@eyesopen.com>
537 * c-common.c: Add support for __attribute__((nothrow)) to specify
538 that a function cannot throw an exception (using TREE_NOTHROW).
539 (handle_nothrow_attribute): New function to process this attribute.
541 * doc/extend.texi: Document the new nothrow function attribute.
543 2002-05-27 H.J. Lu (hjl@gnu.org)
545 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
546 (num_positive): Likewise.
547 (num_div_op): Likewise.
549 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
551 * c-common.c (c_common_init): Always use intmax_t.
553 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
555 * c-common.c (c_common_init): Use intmax_t for now.
557 2002-05-24 Andrew Haley <aph@redhat.com>
559 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
560 if T is a boolean type.
562 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
564 * basic-block.h (last_basic_block): Defined as synonym for
566 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
567 flow_depth_first_order_compute, flow_preorder_transversal_compute,
568 flow_dfs_compute_reverse_init): Replaced relevant occurences of
569 n_basic_blocks with last_basic_block.
570 * cfgbuild.c (make_edges): Likewise.
571 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
572 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
573 * combine.c (combine_instructions): Likewise.
574 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
575 iterative_dataflow_bitmap): Likewise.
576 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
577 calc_idoms, idoms_to_doms): Likewise.
578 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
580 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
581 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
582 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
583 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
584 delete_null_pointer_checks, compute_code_hoist_vbeinout,
585 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
586 compute_store_table, build_store_vectors): Likewise.
587 * haifa-sched.c (sched_init): Likewise.
588 * ifcvt.c (if_convert): Likewise.
589 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
590 pre_edge_lcm, compute_available, compute_nearerout,
591 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
593 * predict.c (estimate_probability, process_note_prediction,
594 note_prediction_to_br_prob): Likewise.
595 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
596 * recog.c (split_all_insns, peephole2_optimize): Likewise.
597 * regrename.c (copyprop_hardreg_forward): Likewise.
598 * resource.c (init_resource_info): Likewise.
599 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
600 init_regions, schedule_insns): Likewise.
601 * ssa-ccp.c (ssa_const_prop): Likewise.
602 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
603 * ssa.c (compute_dominance_frontiers,
604 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
606 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
607 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
610 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
612 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
614 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
615 hoist_insn_after, hoist_insn_to_edge): New.
617 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
619 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
620 (PROP_FINAL): Include.
621 * flow.c (life_analysis, update_life_info,
622 init_propagate_block_info, mark_set_1, mark_used_rgs):
623 Support SCAN_DEAD_STORE.
625 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
627 * c-common.c (c_common_init): Set CPP arithmetic precision.
628 * cppexp.c (cpp_num_part): Move typedef ...
629 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
630 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
631 (sanity_checks): Update.
633 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
635 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
636 (mkheaders): New rule.
637 (install-mkheaders): New rule.
638 * configure.in (all_outputs): Add mkheaders.
639 * configure: Regenerate.
640 * mkheaders.in: New file.
642 2002-05-26 Jakub Jelinek <jakub@redhat.com>
644 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
646 2002-05-26 Andreas Jaeger <aj@suse.de>
648 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
650 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
652 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
653 right_shift): Remove.
654 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
656 (struct op): Use cpp_num.
657 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
658 num_part_mul, num_unary_op, num_binary_op, num_negate,
659 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
660 num_div_op, num_lshift, num_rshift, append_digit): New.
661 (interpret_number, parse_defined, eval_token, reduce): Update
662 for two-integer arithmetic.
663 (binary_handler): New typedef.
665 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
666 (_cpp_parse_expr, reduce): Update to handle two-integers.
667 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
669 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
671 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
672 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
673 branch insn into account, do not assume 1.
674 (avr_out_sbxx_branch): New function. Optimize cases of skipping
675 over single word insn. Handle upper half of I/O space too.
676 * config/avr/avr.md (*sbrx_branch): Use it.
677 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
678 (*sbix_branch, *sbix_branch_bit7): Likewise.
679 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
680 Use RTL peepholes to optimize register operand sign tests.
682 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
684 * config/avr/avr.c (avr_asm_only_p): New variable.
685 (avr_override_options): Set it here if AVR1.
686 (asm_file_start): Test it here, report an error if set.
688 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
690 * alias.c: Fix formatting.
691 * attribs.c: Likewise.
692 * bb-reorder.c: Likewise.
693 * bitmap.c: Likewise.
694 * bitmap.h: Likewise.
695 * builtins.c: Likewise.
697 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
699 * reload.c (find_valid_class): Accept new argument DEST,
700 choose class accordingly.
701 (push_reload): Update callers.
703 2002-05-26 Andreas Jaeger <aj@suse.de>
705 * combine.c (combine_instructions): Do not indent #if for
708 2002-05-25 Richard Henderson <rth@redhat.com>
710 * c-pragma.c (apply_pragma_weak): Convert value identifier to
711 string for decl_attributes.
712 (handle_pragma_weak): Call assemble_alias if we're modifying
715 2002-05-25 Richard Henderson <rth@redhat.com>
718 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
719 using rtl instead of fprintf.
720 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
721 * config/sparc/sparc-protos.h: Update.
723 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
725 * Makefile.in (C_COMMON_H): Fix.
726 Update other targets.
727 * c-common.c: Don't include c-lex.h.
728 (builtin_define_with_value): Make static and prototype.
729 (builtin_define_std): Move from c-lex.h.
730 * c-common.h (init_c_lex): Move from c-lex.h.
731 * c-decl.c: Don't include c-lex.h.
732 (make_pointer_declarator): Move from c-parse.in.
733 * c-lex.c: Don't include c-lex.h.
735 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
736 (make_pointer_declarator): Move to c-decl.c.
737 * c-pragma.c: Don't include c-lex.h.
738 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
739 * c-tree.h (make_pointer_declarator): New.
741 * passes.texi, tm.texi: Update.
743 * Make-lang.in: Update and correct.
744 * objc-act.c: Don't include c-lex.h or cpplib.h.
746 * treetree.c: Don't include c-lex.h.
748 * darwin-c.c: Don't include c-lex.h.
749 * c4x/c4x-c.c: Don't include c-lex.h.
751 * i370/i370-c.c: Don't include c-lex.h.
752 * i370/t-i370: Update.
753 * i960/i960-c.c: Don't include c-lex.h.
754 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
755 * i960/t-960bare: Update.
756 * i960/t-vxworks: Update.
757 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
758 * rs6000/t-darwin: Update.
759 * rs6000/t-rs6000-c-rule: Update.
760 * v850/v850-c.c: Don't include c-lex.h.
761 * v850/v850.c: Don't include c-lex.h or cpplib.h.
764 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
766 * tree.def: Fix typos.
767 * doc/install.texi: Likewise.
769 2002-05-25 Richard Henderson <rth@redhat.com>
771 * configure.in (HAVE_AS_TLS): Add ia64 test.
772 * configure: Rebuild.
773 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
774 (override_options): Set it.
775 (TARGET_HAVE_TLS): New.
776 (sdata_symbolic_operand): Look for 's'.
777 (tls_symbolic_operand): New.
778 (ia64_expand_load_address): Abort for tls symbols.
779 (gen_tls_get_addr): New.
780 (gen_thread_pointer): New.
781 (ia64_expand_move): Split out from movdi. Handle tls symbols.
782 (rtx_needs_barrier): Add new unspecs.
783 (ia64_encode_section_info): Handle tls symbols.
784 (ia64_strip_name_encoding): Strip two encoding chars.
785 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
786 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
787 (TARGET_OPTIONS): Add tls-size.
788 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
789 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
790 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
791 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
792 (movsf, movdf): Likewise.
793 (movdi_symbolic): Use match_scratch. Don't split if we won't
794 have a scratch availiable.
795 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
796 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
797 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
798 * config/ia64/ia64-protos.h: Update.
799 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
800 sdata_symbolic_operand.
801 (ASM_OUTPUT_LABELREF): Strip two characters.
803 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
805 * combine.c (simplify_set): Remove an unnecessary subreg.
807 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
809 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
811 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
813 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
815 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
817 2002-05-25 Roger Sayle <roger@eyesopen.com>
819 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
820 (cond (compare x y) 0) into the equivalent (cond x y).
822 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
824 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
826 2002-05-24 Zack Weinberg <zack@codesourcery.com>
828 * config.gcc: Remove all stanzas for previously obsoleted
829 systems. Where necessary, add explicit error stanzas to
830 prevent removed systems from being misidentified as something
831 else. Begin a fresh obsoletions list, with the systems that
832 were reprieved last round.
833 * doc/install.texi: Remove all mention of dead targets.
834 * fixinc/mkfixinc.sh: Likewise.
836 * config/arm/arm.h: Bit 31 of target_flags is no longer
839 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
840 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
841 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
842 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
843 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
844 config/alpha/osf12.h, config/alpha/osf2or3.h,
845 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
846 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
847 config/clipper/clipper-protos.h, config/clipper/clipper.c,
848 config/clipper/clipper.h, config/clipper/clipper.md,
849 config/clipper/clix.h, config/convex/convex-protos.h,
850 config/convex/convex.c, config/convex/convex.h,
851 config/convex/convex.md, config/convex/fixinc.convex,
852 config/convex/proto.h, config/elxsi/elxsi-protos.h,
853 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
854 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
855 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
856 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
857 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
858 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
859 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
860 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
861 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
862 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
863 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
864 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
865 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
866 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
867 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
868 config/m68k/altos3068.h, config/m68k/apollo68.h,
869 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
870 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
871 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
872 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
873 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
874 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
875 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
876 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
877 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
878 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
879 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
880 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
881 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
882 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
883 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
884 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
885 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
886 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
887 config/mips/dec-osf1.h, config/mips/elflorion.h,
888 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
889 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
890 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
891 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
892 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
893 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
894 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
895 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
896 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
897 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
898 config/ns32k/sequent.h, config/ns32k/tek6000.h,
899 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
900 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
901 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
902 config/sparc/rtems.h, config/we32k/we32k-protos.h,
903 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
906 2002-05-24 Richard Henderson <rth@redhat.com>
908 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
909 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
910 * config/i386/i386.c (tls_model_chars): Add leading space.
911 (tls_symbolic_operand): Don't bias by 1.
912 (legitimize_address): Don't unbias by 1.
914 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
916 * lcm.c (optimize_mode_switching): Change bb used as indices
919 2002-05-24 Richard Henderson <rth@redhat.com>
921 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
922 of update_life_info_in_dirty_blocks.
924 2002-05-24 Jakub Jelinek <jakub@redhat.com>
927 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
929 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
932 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
934 2002-05-24 Jim Blandy <jimb@redhat.com>
936 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
937 entry with a type code of zero, marking the end of the compilation
940 2002-05-24 Richard Henderson <rth@redhat.com>
942 * varasm.c (asm_output_bss): Always output one byte.
943 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
945 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
947 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
950 2002-05-24 Andreas Jaeger <aj@suse.de>
952 * ggc-page.c (alloc_page): Cast variables of type size_t to
953 unsigned long, adjust printf format string.
954 (ggc_alloc): Likewise.
955 (ggc_print_statistics): Likewise.
956 (ggc_print_statistics): Correct printf format string for SCALE to
959 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
961 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
963 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
964 Zack Weinberg <zack@codesourcery.com>
966 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
968 * dwarf2out.c (lookup_filename): Properly quote filename in .file
969 directive in assembly file.
970 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
971 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
972 * config/pj/pj.h (ASM_FILE_START): Likewise.
973 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
974 * config/avr/avr.c (asm_file_end): Likewise.
975 * toplev.c (output_quoted_string): Handle possibly signed plain
977 * toplev.h (output_clean_symbol_name): Declare
978 * toplev.c (output_clean_symbol_name): Define.
979 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
980 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
982 2002-05-24 Alan Modra <amodra@bigpond.net.au>
984 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
986 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
988 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
991 2002-05-23 Richard Henderson <rth@redhat.com>
993 * configure.in (HAVE_AS_TLS): New test.
994 * config.in, configure: Rebuild.
995 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
996 (ix86_tls_dialect_string, ix86_tls_dialect): New.
997 (override_options): Set it.
998 (tls_model_chars, tls_symbolic_operand): New.
999 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1000 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1001 (local_exec_symbolic_operand): New.
1002 (get_pic_label_name): Merge into output_set_got.
1003 (ix86_asm_file_end): Emit pic_label_name if defined.
1004 (legitimate_constant_p, constant_address_p): New.
1005 (legitimate_pic_operand_p): New.
1006 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1007 (legitimate_address_p): Likewise.
1008 (ix86_encode_section_info): Rename from i386_; handle tls decls.
1009 (ix86_strip_name_encoding): New.
1010 (get_thread_pointer): New.
1011 (legitimize_address): Handle tls symbols.
1012 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1014 (struct machine_function): Add some_ld_name.
1015 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1016 (print_operand) [&]: Use it. Handle UNSPEC_TP.
1017 (output_addr_const_extra): New.
1018 (maybe_get_pool_constant): New.
1019 (ix86_split_to_parts): Use it.
1020 (ix86_expand_move): Handle tls symbols.
1021 (ix86_tls_get_addr): New.
1022 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1023 (TARGET_OPTIONS): Add tls-dialect.
1024 (CONSTANT_ADDRESS_P): Use new out-of-line function.
1025 (LEGITIMATE_CONSTANT_P): Likewise.
1026 (LEGITIMATE_PIC_OPERAND_P): Likewise.
1027 (TARGET_STRIP_NAME_ENCODING): New.
1028 (ASM_OUTPUT_LABELREF): New.
1029 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1030 (OUTPUT_ADDR_CONST_EXTRA): New.
1031 (PREDICATE_CODES): Update.
1032 (ix86_tls_dialect, ix86_tls_dialect_string): New.
1033 * config/i386/i386.md: Regroup and renumber unspec constants.
1034 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1035 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1036 (tls_global_dynamic, tls_local_dynamic_base): New.
1037 (tls_local_dynamic_once): New.
1038 * config/i386/i386-protos.h: Update.
1040 2002-05-23 Richard Henderson <rth@redhat.com>
1042 * genemit.c (gen_insn): Print file:lineno comment before function.
1044 * gensupport.c (struct queue_elem): Add filename member.
1045 (queue_pattern): Initialize it; update all callers.
1046 (process_include): Don't free filename.
1047 (read_md_rtx): Set read_rtx_filename.
1049 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
1051 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1053 2002-05-23 Richard Henderson <rth@redhat.com>
1055 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1057 2002-05-23 Richard Henderson <rth@redhat.com>
1059 * doc/extend.texi (C++98 Thread-Local Edits): Update with
1060 commentary from Mark.
1062 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1064 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1065 Use FOR_EACH_BB macros to iterate over basic block chain.
1066 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1067 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1069 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1070 find_unreachable_blocks, create_edge_list, verify_edge_list,
1071 remove_fake_edges, add_noreturn_fake_exit_edges,
1072 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1074 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1075 find_sub_basic_blocks): Likewise.
1076 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1078 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1080 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1082 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1083 commit_edge_insertions, commit_edge_insertions_watch_calls,
1084 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1085 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1086 * conflict.c (conflict_graph_compute): Likewise.
1087 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1088 df_modified_p, df_refs_unlink, df_dump): Likewise.
1089 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1090 * final.c (compute_alignments): Likewise.
1091 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1092 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1093 count_or_remove_death_notes): Likewise.
1094 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1095 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1096 classic_gcse, compute_transp, cprop, compute_pre_data,
1097 compute_transpout, invalidate_nonnull_info,
1098 delete_null_pointer_checks_1, delete_null_pointer_checks,
1099 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1100 compute_store_table, build_store_vectors, store_motion): Likewise.
1101 * global.c (global_conflicts, mark_elimination): Likewise.
1102 * graph.c (print_rtl_graph_with_bb): Likewise.
1103 * haifa-sched.c (sched_init): Likewise.
1104 * ifcvt.c (if_convert): Likewise.
1105 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1106 compute_available, compute_nearerout, compute_rev_insert_delete,
1107 optimize_mode_switching): Likewise.
1108 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1109 * predict.c (estimate_probability, note_prediction_to_br_prob,
1110 propagate_freq, counts_to_freqs, expensive_function_p,
1111 estimate_bb_frequencies): Likewise.
1112 * profile.c (instrument_edges, get_exec_counts,
1113 compute_branch_probabilities, compute_checksum, branch_prob,
1114 find_spanning_tree): Likewise.
1115 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1116 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1118 * regclass.c (scan_one_insn, regclass): Likewise.
1119 * regmove.c (mark_flags_life_zones, regmove_optimize,
1120 record_stack_memrefs): Likewise.
1121 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1122 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1123 * resource.c (find_basic_block): Likewise.
1124 * sched-ebb.c (schedule_ebbs): Likewise.
1125 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1126 find_single_block_region, find_rgns, schedule_insns)
1127 * sibcall.c (optimize_sibling_and_tail_recursive_call)
1128 * ssa-ccp.c (optimize_unexecutable_edges,
1129 ssa_ccp_df_delete_unreachable_insns): Likewise.
1130 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1131 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1132 rename_block, convert_to_ssa, compute_conservative_reg_partition,
1133 compute_coalesced_reg_partition, rename_equivalent_regs,
1134 convert_from_ssa): Likewise.
1135 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1136 process_for_unwind_directive): Likewise.
1138 * df.c (FOR_ALL_BBS): Removed.
1139 * gcse.c (struct null_pointer_info): Type of current_block field
1141 (struct reg_avail_info): Type of last_bb field changed.
1142 * config/ia64/ia64.c (block_num): Removed.
1143 (need_copy_state): Type changed.
1146 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1148 * cppinit.c (mark_named_operators): Split out from init_builtins.
1149 (cpp_finish_options): Call it from here instead.
1151 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1153 * builtin-attrs.def: Update copyright years.
1154 (ATTR_NONNULL): New attribute identifier.
1155 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1156 attribute tree lists.
1157 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1159 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1160 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1161 attribute lists. Chain the appropriate nonnull attribute.
1162 * c-format.c (check_format_arg): Remove null format string
1164 * testsuite/gcc.dg/format/null-1.c: New test.
1166 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1168 * Makefile.in (ADAC): Define.
1170 (.SUFFIXES): Move before language makefile fragments.
1171 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1173 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1175 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1178 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1180 * cfg.c (dump_flow_info): Print results of
1181 maybe_hot/probably_never_executed predicates.
1182 * toplev.c (open_dump_file): Print function frequency.
1184 2002-05-23 David S. Miller <davem@redhat.com>
1186 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1189 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1191 * c-common.c (warn_nonnull): Declare.
1192 (c_common_attribute_table): Add "nonnull" attribute.
1193 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1194 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1195 check_function_arguments_recurse): New functions.
1196 * c-common.h (warn_nonnull): Declare extern.
1197 (check_function_arguments, check_function_arguments_recurse): New
1199 * c-decl.c (c_decode_option): Add -Wnonnull option.
1200 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1202 (format_check_context): New structure.
1203 (check_format_info_recurse): Remove recursion and rename to...
1204 (check_format_arg): ...this. Update comment.
1205 (check_format_info): Use check_function_arguments_recurse.
1206 * c-typeck.c (build_function_call): Call check_function_arguments
1207 instead of check_function_format.
1208 * doc/extend.texi: Document "nonnull" attribute.
1209 * doc/invoke.texi: Docuemnt -Wnonnull option.
1210 * testsuite/gcc.dg/nonnull-1.c: New test.
1211 * testsuite/gcc.dg/nonnull-2.c: New test.
1213 2002-05-23 David S. Miller <davem@redhat.com>
1215 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1216 * cfgcleanup.c (cleanup_cfg): If it is set do not
1217 attempt to delete trivially dead insns.
1218 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1219 * toplev.c (rest_of_compilation): Document non-trivial aspect
1220 the RTL before optimize_save_area_alloca is run.
1222 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1224 * c-lex.c (indent_level): Remove.
1225 (cb_file_change, c_lex): Remove indent level handling.
1226 * c-lex.h (indent_level): Remove.
1227 * input.h (struct file_stack): Remove indent_level.
1228 * toplev.c (push_srcloc): Remove indent_level handling.
1230 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1233 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1234 of x in constraints for clarity.
1235 (sse_mov?fcc split): abort if op2 == op3.
1236 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1237 sse_movsfcc_const0_4): Add earlyclobber.
1238 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1239 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1240 Use Y instead of x in constraints.
1242 2002-05-23 Richard Henderson <rth@redhat.com>
1244 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1245 (C++98 Thread-Local Edits): New subsection.
1247 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1248 (ix86_arch): Set type to enum processor_type.
1250 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1251 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1253 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1255 * configure.in: Fix as version test for binutils 2.12.1 releases
1257 * configure: Rebuilt.
1259 2002-05-23 Richard Henderson <rth@redhat.com>
1261 * config/i386/i386.c (get_pic_label_name): New.
1262 (load_pic_register): Remove.
1263 (output_set_got): New.
1264 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1265 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1266 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1267 (prologue_set_got, prologue_get_pc): Remove.
1268 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1269 (builtin_setjmp_receiver): Use gen_set_got.
1270 * config/i386/i386-protos.h: Update.
1272 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1274 * gcse.c (hash_expr): Do not use alias set for hashing.
1276 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1278 * dbxout.c (dbxout_class_name_qualifiers): New function.
1279 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1281 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1283 * cpperror.c (_cpp_begin_message): No special casing
1285 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1286 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1287 * cpplib.c (do_include_common): Use DL_ERROR.
1288 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1290 * fix-header.c (read_scan_file): Update.
1292 2002-05-22 Richard Henderson <rth@redhat.com>
1294 * config/i386/i386.c (ix86_expand_call): New function, extracted
1295 from md call patterns. Add pic_offset_table_rtx to
1296 CALL_INSN_FUNCTION_USAGE when needed.
1297 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1298 (call_value_pop, call_value, untyped_call): Likewise.
1299 (call_exp, call_value_exp): Remove.
1300 * config/i386/i386-protos.h: Update.
1302 2002-05-22 Richard Henderson <rth@redhat.com>
1304 * varasm.c (default_section_type_flags): Check for VAR_DECL
1305 before using DECL_THREAD_LOCAL.
1307 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1309 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1310 (STARTFILE_SPEC): Delete PE crt0.o.
1311 * config/rs6000/aix51.h: Same.
1312 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1313 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1314 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1315 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1316 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1318 2002-05-22 Richard Henderson <rth@redhat.com>
1320 * varasm.c (default_section_type_flags): Handle tls data and
1322 (default_unique_section): Handle tls sections.
1324 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1326 * configure.in (CROSS): Define NATIVE_CROSS.
1327 * configure: Regenerate.
1328 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1329 (startfile_prefix_spec): New var.
1330 (static_specs): Add startfile_prefix_spec.
1331 (do_spec_2): Split out from..
1333 (main): Process startfile_prefix_spec.
1334 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1336 (STARTFILE_PREFIX_SPEC): Define.
1337 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1340 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1342 * cpperror.c: Fix formatting.
1343 * cppexp.c: Likewise.
1344 * cppfiles.c: Likewise.
1345 * cpphash.c: Likewise.
1346 * cpphash.h: Likewise.
1347 * cppinit.c: Likewise.
1348 * cpplex.c: Likewise.
1349 * cpplib.c: Likewise.
1350 * cppmacro.c: Likewise.
1351 * cppmain.c: Likewise.
1352 * cppspec.c: Likewise.
1354 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1356 * combine.c (force_to_mode): Use gen_int_mode.
1357 Don't clear CONST_INT bits outside of mode.
1359 2002-05-22 Richard Henderson <rth@redhat.com>
1361 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1362 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1364 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1367 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1368 if DECL_SIZE_UNIT is INTEGER_CST.
1370 2002-05-22 Richard Henderson <rth@redhat.com>
1372 * flow.c (life_analysis): Delete broken reg_label check.
1374 2002-05-22 Richard Henderson <rth@redhat.com>
1376 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1377 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1379 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1381 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1382 (embed-bb.c): New rule.
1383 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1384 * config/sh/embed_bb.c: Delete.
1386 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1388 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1390 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1392 * config/h8300/h8300.md (*andorqi3): New.
1394 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
1396 PR preprocessor/6517
1397 * Makefile.in: Update.
1398 * c-common.c (c_common_post_options): Add preprocessor
1399 errors to the error count.
1400 * c-lang.c (c_post_options): Kill.
1401 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1402 * hooks.h: Add header guards.
1403 * langhooks-def.h: Include hooks.h.
1404 (LANG_HOOKS_POST_OPTIONS): Update.
1405 * langhooks.h (struct lang_hooks): Update post_options.
1406 * toplev.c (parse_options_and_default_flags): Update.
1408 * objc-lang.c (objc_post_options): Kill.
1409 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1411 2002-05-21 Bruce Korb <bkorb@gnu.org>
1413 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1414 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1415 * fixinc/fixincl.x: regen.
1417 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
1419 * cfgbuild.c: Fix formatting.
1421 * cfgcleanup.c: Likewise.
1422 * cfglayout.c: Likewise.
1423 * cfgloop.c: Likewise.
1424 * cfgrtl.c: Likewise.
1426 2002-05-21 Richard Henderson <rth@redhat.com>
1428 * c-common.h (enum rid): Add RID_THREAD.
1429 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1430 (grokdeclarator): Grok __thread.
1431 * c-parse.in (reswords): Add __thread.
1432 (rid_to_yy): Add RID_THREAD.
1434 * tree.h (DECL_THREAD_LOCAL): New.
1435 (struct tree_decl): Add thread_local_flag.
1436 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1437 * tree.c (staticp): TLS variables are not static.
1439 * target-def.h (TARGET_HAVE_TLS): New.
1440 * target.h (have_tls): New.
1441 * output.h (SECTION_TLS): New.
1442 * varasm.c (assemble_variable): TLS variables can't be common for now.
1443 (default_section_type_flags): Handle .tdata and .tbss.
1444 (default_elf_asm_named_section): Handle SECTION_TLS.
1445 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1447 * flags.h (flag_tls_default): Declare.
1448 * toplev.c (flag_tls_default): Define.
1449 (display_help): Display help for it.
1450 (decode_f_option): Set it.
1452 * doc/extend.texi (Thread-Local): New node describing language-level
1453 thread-local storage.
1454 * doc/invoke.texi (-ftls-model): Document.
1456 * fixinc/inclhack.def (thread_keyword): New.
1457 * fixinc/fixincl.x: Rebuild.
1459 2002-05-21 Jeffrey A Law <law@redhat.com>
1461 * optabs.c (expand_binop): For double-word integer multiplies,
1462 do not compute intermediate results into something that is
1463 not a register (such as a SUBREG or MEM).
1465 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1466 (ix86_sched_reorder): Make sure to initialize scheduling
1467 data even when there's only one insn in the ready queue.
1469 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1471 * genautomata.c (reserv_sets_hash_value): Fix a typo.
1473 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1475 * genautomata.c (reserv_sets_hash_value): Define hash_value as
1476 set_el_t. Transform the hash value into unsigned.
1477 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1478 (transform_3): Add code to process `(A,B)+(D,E)'.
1480 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
1482 * reload1.c (do_output_reload): Run delete_output_reload
1485 2002-05-21 Roger Sayle <roger@eyesopen.com>
1488 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1489 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
1490 (can_store_by_pieces): ... and here to limit the largest mode used.
1491 Add a comment to document this function.
1493 2002-05-21 Richard Henderson <rth@redhat.com>
1495 * flow.c (life_analysis): Fix test for deleted label.
1497 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
1499 * doc/tm.texi: Fix typo.
1501 2002-05-21 Zack Weinberg <zack@codesourcery.com>
1503 * c-common.c (c_common_init): Set options->unsigned_char from
1505 (cb_register_builtins): Define __STRICT_ANSI__ and
1506 __CHAR_UNSIGNED__ here...
1507 * cppinit.c (init_builtins): Not here.
1508 (cpp_create_reader): unsigned_char option defaults to 0, not
1509 !DEFAULT_SIGNED_CHAR.
1510 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1511 and -funsigned-char.
1513 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1514 * cpphash.c (_cpp_init_hashtable): Don't set it.
1515 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1516 directly. Clarify comment.
1518 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1520 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1521 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
1522 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
1523 BASIC_BLOCK (n_basic_blocks - 1).
1524 * cfganal.c (can_fallthru, flow_call_edges_add,
1525 flow_preorder_transversal_compute): Too.
1526 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1527 find_sub_basic_blocks): Too.
1528 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1529 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1530 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1531 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1532 * combine.c (this_basic_block): Type changed to basic_block.
1533 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1534 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1535 get_last_value, distribute_notes, distribute_links): Too.
1536 * final.c (compute_alignments): Too.
1537 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1538 * function.c (thread_prologue_and_epilogue_insns): Too.
1539 * gcse.c (compute_code_hoist_vbeinout): Too.
1540 * global.c (build_insn_chain): Too.
1541 * ifcvt.c (find_if_block, find_cond_trap): Too.
1542 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1543 * regmove.c (regmove_optimize): Too.
1544 * resource.c (find_basic_block): Too.
1545 * sched-ebb.c (schedule_ebbs): Too.
1546 * ssa-dce.c (find_control_dependence, find_pdom): Too.
1548 2002-05-21 Andreas Jaeger <aj@suse.de>
1550 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1552 2002-05-21 Richard Henderson <rth@redhat.com>
1554 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1555 unspec names, not numbers.
1557 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
1559 * doc/sourcebuild.texi: Mention snapshot-README and
1560 snapshot-index.html as needing updating for new front ends.
1562 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1564 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1565 disabling checking, and avoid multiple evaluation of RTX.
1567 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
1569 * bitmap.c (bitmap_find_bit): Return early if we have the correct
1572 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1574 * profile.c (gen_edge_profiler): Set alias set before the memory is
1577 2002-05-20 David S. Miller <davem@redhat.com>
1579 * cselib.c (max_value_regs): New.
1580 (cselib_lookup, cselib_invalidate_regno): Initialize it when
1581 adding new entries to the REG_VALUES table and we are dealing with
1583 (clear_table): Initialize it.
1584 (cselib_invalidate_regno): Use it to determine which hard
1585 registers to scan when mode is not VOIDmode.
1587 2002-05-20 Duraid Madina <duraid@fl.net.au>
1589 * tradcpp.c (fixup_newlines): Use old-style function header.
1591 2002-05-20 Krister Walfridsson <cato@df.lth.se>
1593 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1595 2002-05-20 H.J. Lu (hjl@gnu.org)
1597 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1599 * config/mips/mips.h (DFMODE_NAN): Defined.
1600 (SFMODE_NAN): Likewise.
1602 2002-05-20 Dale Johannesen <dalej@apple.com>
1604 * combine.c (cant_combine_insn_p): Back out my
1607 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1609 * params.c: Fix formatting.
1610 * params.h: Likewise.
1611 * predict.c: Likewise.
1612 * prefix.c: Likewise.
1613 * print-rtl.c: Likewise.
1614 * print-tree.c: Likewise.
1615 * profile.c: Likewise.
1617 2002-05-20 H.J. Lu (hjl@gnu.org)
1619 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1621 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
1623 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1624 switches straight on to the assembler, do not abbreviate them.
1625 * config/arm/elf.h (ASM_SPEC): As above.
1626 * config/arm/semi.h (ASM_SPEC): As above.
1627 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1628 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1629 -mcpu=xscale on to the assembler by default.
1630 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1632 2002-05-20 Richard Henderson <rth@redhat.com>
1634 * cse.c (canon_hash): Reorder do_not_record test. Always
1635 allow pic_offset_table_rtx.
1637 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
1639 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1640 (expand_binop): Ditto (3 times).
1642 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
1644 * Makefile.in (distclean): Remove QMTest stuff.
1645 (QMTEST_PATH): New variable.
1646 (QMTESTFLAGS): Likewise.
1647 (QMTESTRUNFLAGS): Likewise.
1649 (QMTEST_GPP_TESTS): Likewise.
1650 (QMTEST_DIR): Likewise.
1651 (QMTEST_DIR/context): New target.
1652 (qmtest-g++): Likeise.
1653 (qmtest-gui): Likewise.
1654 (QMTEST_DIR/gpp-expected.qmr): Likewise.
1656 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
1658 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1659 an altivec register if TARGET_ALTIVEC.
1661 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1662 to ALTIVEC_VECTOR_MODE.
1663 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1664 (rs6000_va_arg): Vectors may go in registers if they are not
1667 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
1669 * protoize.c: Fix formatting.
1671 2002-05-19 Richard Henderson <rth@redhat.com>
1673 * gensupport.c (init_include_reader): Merge into ...
1674 (process_include): ... here. Simplify composite path creation.
1675 Plug memory leaks. Fix file/line number tracking. Do not
1676 process_define_cond_exec. Return void.
1677 (process_rtx): Don't check process_include return value.
1679 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1681 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1683 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1684 traversing basic block chain.
1685 (create_basic_block_structure, create_basic_block): Declaration changed.
1686 (link_block, unlink_block): Declare.
1687 * cfg.c (entry_exit_blocks): Initialize new fields.
1688 (link_block, unlink_block): New.
1689 (expunge_block_nocompact): Unlink basic block.
1690 (dump_flow_info): Print prev_bb/next_bb fields.
1691 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1692 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1693 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1694 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1695 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1696 (verify_flow_info): Check that list agrees with numbering.
1698 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
1700 * c-common.c (preprocessing_asm): New macro.
1701 * c-lex.h (builtin_define, builtin_assert): Use pfile.
1705 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1706 (CPP_SPEC): Simplify.
1707 (TARGET_CPU_CPP_BUILTINS): Update.
1708 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1709 (CPP_SPEC): Simplify.
1710 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1711 (TARGET_OS_CPP_BUILTINS): Update.
1712 * osf.h (CPP_XFLOAT_SPEC): Kill.
1713 (TARGET_OS_CPP_BUILTINS): Update.
1714 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1715 * osf5.h (CPP_XFLOAT_SPEC): Kill.
1716 * vms.h (CPP_SUBTARGET_SPEC): Kill.
1717 (TARGET_OS_CPP_BUILTINS): Update.
1719 2002-05-19 Richard Henderson <rth@redhat.com>
1721 * varasm.c (default_binds_local_p): Fix typo.
1723 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1725 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1726 CONST_INT operand to the correct mode after adding 1 to it.
1728 2002-05-19 Mark Mitchell <mark@codesourcery.com>
1730 * config.gcc (powerpc-wrs-windiss*): New target.
1732 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1734 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1737 2002-05-18 Mark Mitchell <mark@codesourcery.com>
1739 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1741 * config.in: Regenerated.
1742 * configure: Regenerated.
1744 2002-05-19 Richard Henderson <rth@redhat.com>
1746 * target-def.h (TARGET_BINDS_LOCAL_P): New.
1747 * target.h (struct gcc_target): Move boolean fields to the end.
1749 * varasm.c (default_binds_local_p): New.
1750 * output.h: Declare it.
1752 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1753 * config/cris/cris.c (cris_encode_section_info): Likewise.
1754 * config/i386/i386.c (i386_encode_section_info): Likewise.
1755 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1756 * config/sh/sh.c (sh_encode_section_info): Likewise.
1758 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1759 (TARGET_BINDS_LOCAL_P): New.
1761 2002-05-19 Richard Henderson <rth@redhat.com>
1763 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1764 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1765 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1767 * toplev.c (display_help): Kill -a -ax help.
1769 * config/1750a/1750a.h, config/alpha/alpha.h,
1770 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1771 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1772 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1773 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1775 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1776 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1778 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1779 (ix86_output_function_block_profiler): Kill.
1780 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1781 (m68hc11_function_block_profiler): Kill.
1782 * config/m68hc11/m68hc11-protos.h: Update.
1783 * config/m88k/m88k.c (output_block_profiler): Kill.
1784 (output_function_block_profiler): Kill.
1785 * config/m88k/m88k-protos.h: Update.
1787 2002-05-19 Richard Henderson <rth@redhat.com>
1789 * system.h (STRIP_NAME_ENCODING): Poison it.
1790 * output.h (STRIP_NAME_ENCODING): Remove.
1791 (default_strip_name_encoding): Declare.
1792 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1793 * target.h (strip_name_encoding): New.
1794 * varasm.c (default_strip_name_encoding): New.
1796 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1797 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1798 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1799 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1800 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1801 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1802 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1803 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1804 config/v850/v850.h: Use the hook, not the macro.
1806 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1807 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1808 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1809 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1810 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1811 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1812 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1813 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1814 config/v850/v850.c, config/v850/v850.h:
1815 Move STRIP_NAME_ENCODING to out-of-line function and add
1816 TARGET_STRIP_NAME_ENCODING.
1818 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1819 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1820 with TARGET_STRIP_NAME_ENCODING referencing existing function;
1821 make function static.
1823 * xcoffout.c: Include target.h
1824 * Makefile.in (xcoffout.o): Update.
1826 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1827 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1828 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1829 reloc argument unused.
1830 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1832 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
1833 STRIP_NAME_ENCODING docs.
1835 2002-05-19 Andreas Jaeger <aj@suse.de>
1837 * gengenrtl.c: Add prototype for excluded_rtx.
1839 * real.h: Add prototype for exact_real_truncate.
1841 2002-05-18 Richard Henderson <rth@redhat.com>
1843 * system.h (ENCODE_SECTION_INFO): Poison it.
1844 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
1845 * target.h (encode_section_info): New.
1846 * varasm.c (make_decl_rtl, output_constant_def): Use it.
1847 * hooks.c (hook_tree_int_void): New.
1848 * hooks.h: Declare it.
1850 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1851 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
1852 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
1853 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
1854 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
1855 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
1856 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1857 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
1858 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1859 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1860 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
1861 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
1862 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
1863 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
1864 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
1865 referencing existing function. Make function static.
1867 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
1868 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
1869 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
1870 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
1871 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
1872 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
1873 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
1874 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
1875 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
1876 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
1877 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
1878 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
1879 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
1880 Move ENCODE_SECTION_INFO to out-of-line function and add
1881 TARGET_ENCODE_SECTION_INFO.
1883 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
1884 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1886 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
1888 (switch_to_section): Replace in_rdata case with in_readonly_data.
1890 * config/h8300/h8300.c (h8300_encode_label): Make static.
1891 * config/h8300/h8300-protos.h: Update.
1893 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
1894 from rs6000_encode_section_info; make static.
1895 (rs6000_xcoff_encode_section_info): New.
1897 * config/v850/v850.c (v850_encode_data_area): Make static.
1898 * config/v850/v850-protos.h: Update.
1900 * config/vax/vax.c: Include flags.h.
1901 (vms_select_section): Fix typo.
1903 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
1904 ENCODE_SECTION_INFO docs.
1906 2002-05-18 Richard Henderson <rth@redhat.com>
1908 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
1909 REGISTER_TARGET_PRAGMAS.
1910 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
1912 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
1914 2002-05-18 Richard Henderson <rth@redhat.com>
1916 * system.h (SELECT_RTX_SECTION): Poison.
1917 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
1918 * target.h (select_rtx_section): New.
1919 * varasm.c (output_constant_pool): Use it.
1920 (default_select_rtx_section, default_elf_select_rtx_section): New.
1921 * output.h: Declare them.
1923 * config/darwin.h (SELECT_RTX_SECTION): Move ...
1924 * config/darwin.c (machopic_select_rtx_section): ... here.
1925 * config/darwin-protos.h: Update.
1927 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
1928 * config/nextstep.c (machopic_select_rtx_section): ... here.
1929 (nextstep_select_section): Rename variable to avoid macro clash.
1930 * config/nextstep-protos.h: Update.
1932 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
1933 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
1934 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
1935 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
1936 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
1937 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
1938 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
1939 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
1940 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
1941 (SELECT_RTX_SECTION): Remove.
1943 * config/darwin.h, config/elfos.h, config/nextstep.h,
1944 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
1945 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
1946 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
1947 config/sparc/lynx.h, config/xtensa/xtensa.c
1948 (TARGET_ASM_SELECT_RTX_SECTION): New.
1950 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
1951 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
1952 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
1953 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
1954 (ia64_aix_select_rtx_section): New.
1955 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
1957 * config/mips/mips.c (mips_select_rtx_section): Make static.
1958 Support ELF SHF_MERGE features.
1959 * config/mips/mips-protos.h: Update.
1960 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
1961 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
1962 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
1963 make static, fall back to default_elf_select_rtx_section.
1964 * config/rs6000/rs6000-protos.h: Update.
1965 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
1966 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
1967 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
1968 * config/romp/romp.c (romp_select_rtx_section): New.
1969 * config/s390/s390.c (s390_select_rtx_section): New.
1970 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
1971 declarations before target macro definition.
1972 (xtensa_emit_call): Use static buffer.
1973 (xtensa_select_rtx_section): New.
1974 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
1975 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
1976 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
1978 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
1979 SELECT_RTX_SECTION docs.
1981 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1983 * i386.md (movsi/movdi): Fix template.
1984 (sse2 patterns): Set attributes consistently.
1986 * i386.md (pushqi2, ashrqi_*): Fix constraint.
1988 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
1990 * optabs.c (complex_part_zero_p): New.
1991 * (expand_cmplxdiv_straight): Use it.
1992 * (expand_cmplxdiv_wide): Ditto.
1993 * (expand_binop): Ditto.
1995 2002-05-18 Richard Henderson <rth@redhat.com>
1997 * final.c (HAVE_READONLY_DATA_SECTION): New.
1998 (shorten_branches): Use it instead of ifdefs.
1999 * varasm.c (enum in_section): Add in_readonly_data.
2000 (text_section, data_section): Tidy.
2001 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2003 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2004 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2005 (READONLY_DATA_SECTION): Don't undef.
2007 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2008 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2009 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2011 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2012 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2013 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2014 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2016 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2017 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2018 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2019 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2020 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2021 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2022 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2023 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2024 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2026 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2027 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2028 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2029 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2030 config/pa/pa64-hpux.h, config/sparc/litecoff.h
2031 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2033 * config/elfos.h, config/netware.h, config/svr3.h,
2034 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2035 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2036 config/h8300/h8300.h, config/i386/i386-interix.h,
2037 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2038 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2040 * config/elfos.h, config/netware.h, config/svr3.h,
2041 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2042 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2043 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2044 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2046 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2047 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2048 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2049 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2050 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2051 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2052 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2053 config/rs6000/sysv4.h, config/v850/v850.h
2054 (EXTRA_SECTIONS): Remove in_const/in_rdata.
2055 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2057 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2058 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2059 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2060 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2061 * config/alpha/alpha.c (alpha_start_function): Likewise.
2062 (alpha_write_linkage): Likewise.
2063 * config/m32r/m32r.c (m32r_select_section): Likewise.
2064 * config/m88k/m88k.c (m88k_select_section): Likewise.
2065 * config/mips/mips.c (mips_select_rtx_section): Likewise.
2066 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2067 (rs6000_elf_select_section): Likewise.
2068 * config/v850/v850.c (v850_select_section): Likewise.
2070 * config/1750a/1750a.h, config/i860/sysv3.h
2071 (READONLY_DATA_SECTION_ASM_OP): New.
2072 READONLY_DATA_SECTION_ASM_OP.
2073 * config/i386/interix.c, config/i386/winnt.c
2074 (i386_pe_unique_section): Always use .rdata prefix.
2075 * config/pa/som.h (readonly_data): Always switch to read-only section.
2076 (READONLY_DATA_SECTION): Predicate on flag_pic.
2077 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2078 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2079 (READONLY_DATA_SECTION): Update.
2081 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
2083 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2084 is used without -Wformat.
2085 * c-common.h (warn_format_zero_length): Declare extern.
2086 * c-decl.c (warn_options): Add "format-zero-length".
2087 * c-format.c (warn_format_zero_length): Declare.
2088 (set_Wformat): Set warn_format_zero_length for -Wformat.
2089 (check_format_info): Only warn about zero-length formats if
2090 warn_format_zero_length is true. Include the format type
2091 name in the warning message.
2092 * doc/invoke.texi: Document -Wformat-zero-length.
2093 * testsuite/gcc.dg/format/zero-length-1.c: New test.
2095 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2097 * timevar.c: Fix formatting.
2098 * tlink.c: Likewise.
2099 * toplev.c: Likewise.
2100 * tree-dump.c: Likewise.
2101 * tree-inline.c: Likewise.
2103 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2105 * cppinit.c (cpp_post_options): If preprocessed, turn off
2106 traditional. If traditional, turn off column numbers.
2107 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2108 * cpptrad.c (handle_newline): Update line_base.
2109 (skip_comment): Handle -Wcomment.
2111 2002-05-17 Zack Weinberg <zack@codesourcery.com>
2113 * cppinit.c (struct builtin): Remove unused fields.
2114 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2115 (operator_array): New - was second half of builtin_array.
2116 (init_builtins): Simplify loop over builtin_array/operator_array.
2118 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2120 * defaults.h (UNIQUE_SECTION): Remove.
2121 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2123 2002-05-17 Richard Henderson <rth@redhat.com>
2125 * expr.c (init_expr_once): Don't use start/end_sequence.
2126 Use rtx_alloc instead of emit_insn.
2127 * toplev.c (lang_dependent_init): Run init_expr_once here ...
2128 (lang_independent_init): ... not here.
2130 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2132 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2134 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2136 * config/avr/avr.c (avr_regs_to_save): New function. Also check
2137 for fixed registers, possibly used for global register variables.
2138 (initial_elimination_offset, avr_output_function_prologue,
2139 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2141 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2143 * Makefile.in: Update for cpptrad.c.
2144 * cpphash.h (struct cpp_buffer): New members for buffer
2146 (struct cpp_reader): New members for traditional output.
2147 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2148 * cppinit.c (cpp_create_reader): Set trad_line.
2149 (cpp_destroy): Free trad_out_base if used.
2150 (cpp_read_main_file): Overlay an empty buffer if traditional.
2151 (cpp_finish_options): Don't do builtins.
2152 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2153 (cpp_handle_option): Handle it.
2154 * cpplex.c (continue_after_nul): New.
2155 (_cpp_lex_direct): Use handle_nul.
2156 * cpplib.h (struct cpp_options): New traditional option.
2157 * cpptrad.c: New file.
2159 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2161 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2162 and set the options flag.
2163 * cppinit.c (lang_flags): Remove objc.
2164 (lang_defaults): Remove OBJC and OBJCXX.
2166 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2167 (cpp_handle_option): Remove -+ and -lang-objc++.
2168 For ObjC, just set a flag.
2169 (print_help): Update.
2170 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2172 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2174 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2175 bootstrap with -mips3.
2177 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2179 * final.c: Fix formatting.
2180 * fix-header.c: Likewise.
2182 * fold-const.c: Likewise.
2183 * function.c: Likewise.
2185 2002-05-17 David S. Miller <davem@redhat.com>
2187 PR c/6689, PR optimization/6615
2188 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2189 and make it a pointer to rtx. Update comments.
2190 (update_equiv_regs): When scanning for equivalences, record
2191 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2192 it while making the equiv replacements.
2194 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2196 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2198 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2200 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2201 when encoding visibility into SYMBOL_REF_FLAG.
2203 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2205 * expr.c (force_operand): Fix reversed move.
2207 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2209 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2210 that can be ignored.
2212 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2214 * doc/install.texi (Final install): Recommend to install into a
2215 "clean" target directory.
2217 2002-05-17 Richard Henderson <rth@redhat.com>
2219 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2220 for code blocks. Tidy whitespace.
2222 2002-05-17 Richard Henderson <rth@redhat.com>
2224 * hooks.c (hook_tree_bool_false): New.
2225 * hooks.h: Declare it.
2226 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2227 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2228 * target.h (select_section, unique_section): New.
2229 (in_small_data_p): New.
2230 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2231 (variable_section, output_constant_def_contents): Likewise.
2232 (default_select_section, default_unique_section): New.
2233 (categorize_decl_for_section, default_elf_select_section): New.
2234 * output.h: Declare them.
2236 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2237 (TARGET_ASM_SELECT_SECTION): New.
2238 (SELECT_SECTION): Move ...
2239 * config/darwin.c (machopic_select_section): ... here.
2240 * config/darwin-protos.h: Update.
2242 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2243 (SELECT_SECTION): Move ...
2244 * config/nextstep.c (nextstep_select_section): ... here.
2245 * config/nextstep-protos.h: Update.
2247 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2248 (TARGET_ASM_SELECT_SECTION): New.
2249 * config/svr3.h (SELECT_SECTION): Remove.
2251 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2252 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2253 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2254 (alpha_encode_section_info): Use it.
2255 * config/alpha/alpha-protos.h: Update.
2256 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2257 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2258 (TARGET_ASM_SELECT_SECTION): New.
2259 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2261 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2262 (TARGET_ASM_UNIQUE_SECTION): New.
2264 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2265 (avr_unique_section): Rename from unique_section; make static.
2266 * config/avr/avr-protos.h: Update.
2267 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2269 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2271 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2272 (TARGET_ASM_UNIQUE_SECTION): New.
2273 * config/i386/i386-interix.h: Likewise.
2274 * config/i386/win32.h: Likewise.
2275 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2276 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2277 * config/i386/sco5.h (SELECT_SECTION): Remove.
2278 (TARGET_ASM_SELECT_SECTION): New.
2279 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2281 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2282 instead of SELECT_SECTION.
2283 * config/m68k/dpx2.h: Likewise.
2284 * config/rs6000/lynx.h: Likewise.
2286 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2287 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2288 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2289 (ia64_in_small_data_p): New.
2290 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2291 (ia64_aix_select_section, ia64_aix_unique_section): New.
2292 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2293 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2295 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2296 (TARGET_ASM_SELECT_SECTION): New.
2297 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2298 * config/m32r/m32r-protos.h: Update.
2300 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2301 (SELECT_SECTION): Move ...
2302 * config/m88k/m88k.c (m88k_select_section): ... here.
2304 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2305 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2306 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2307 (mcore_unique_section): Make static.
2308 * config/mcore/mcore-protos.h: Update.
2310 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2311 (TARGET_ASM_UNIQUE_SECTION): New.
2312 * config/mips/elf64.h: Likewise.
2313 * config/mips/iris6gld.h: Likewise.
2314 * config/mips/linux.h: Likewise.
2315 * config/mips/mips-protos.h: Update.
2316 * config/mips/mips.c (mips_select_section): Add align argument.
2317 * config/mips/mips.h (SELECT_SECTION): Remove.
2318 (TARGET_ASM_SELECT_SECTION): New.
2320 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2321 * config/mmix/mmix.c (mmix_select_section): Remove.
2322 (mmix_unique_section): Remove.
2323 * config/mmix/mmix-protos.h: Update.
2325 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2326 (SELECT_SECTION): Move ...
2327 * config/pa/pa.c (pa_select_section): ... here.
2328 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2330 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2331 from rs6000_select_section and make static.
2332 (rs6000_elf_unique_section): Similarly.
2333 (rs6000_xcoff_select_section): From xcoff.h.
2334 (rs6000_xcoff_unique_section): Likewise.
2335 * config/rs6000/rs6000-protos.h: Update.
2336 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2337 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2338 * config/rs6000/xcoff.h: Likewise.
2340 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2341 (SELECT_SECTION): Move ...
2342 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2344 * config/v850/v850.h (SELECT_SECTION): Move ...
2345 * config/v850/v850.c (v850_select_section): ... here.
2346 (TARGET_ASM_SELECT_SECTION): New.
2348 * config/vax/vms.h (SELECT_SECTION): Move ...
2349 * config/vax/vax.c (vms_select_section): ... here.
2350 (TARGET_ASM_SELECT_SECTION): New.
2352 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2353 for the target hooks.
2355 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2357 * config/arm/arm.c (emit_multi_reg_push): Do not set
2358 RTX_FRAME_RELATED_P on the SEQUENCE.
2360 2002-05-16 Richard Henderson <rth@redhat.com>
2362 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2363 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2365 2002-05-16 Richard Henderson <rth@redhat.com>
2367 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2369 * config/ia64/ia64.c (saveable_obstack): Do not declare.
2371 2002-05-16 Richard Henderson <rth@redhat.com>
2373 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2374 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2375 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2376 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2377 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2378 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2379 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2380 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2381 Revert "Basic block renumbering removal", and two followup patches.
2383 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2385 * lcm.c (optimize_mode_switching): Revert previous change.
2387 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2389 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2390 with only extant block numbers.
2392 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2394 * lcm.c (optimize_mode_switching): Fix typo.
2396 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2398 * flow.c (calculate_global_regs_live): Queue blocks in program order.
2400 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2402 * doc/install.texi (Configuration): Document PWDCMD.
2404 2002-05-16 Dale Johannesen <dalej@apple.com>
2406 * combine.c (cant_combine_insn_p): Reenable combinations
2407 involving hard regs unless CLASS_LIKELY_SPILLED_P.
2409 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2411 * c-common.c (cb_register_builtins): Handle more built-ins
2412 here rather than in gcc.c specs.
2413 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2414 (cpp_options): Pass -O flags even when only preprocessing.
2415 * toplev.c (set_fast_math_flags): New prototype.
2416 (fast_math_flags_set_p): New.
2417 (set_no_fast_math_flags): Remove.
2418 (decode_f_option): Update.
2419 * toplev.h (set_fast_math_flags): Update.
2420 (fast_math_flags_set_p): New.
2421 (set_no_fast_math_flags): Remove.
2423 * c4x/c4x.c (c4x_override_options): Update.
2425 2002-05-16 Zack Weinberg <zack@codesourcery.com>
2427 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2428 Default-define here.
2429 (builtin_define_with_value): Can now wrap the expansion in
2430 quotation marks if such is wanted.
2431 (cb_register_builtins): Update calls to builtin_define_with_value.
2432 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2434 (c_common_init): Set options->stdc_0_in_system_headers.
2435 * c-lex.h: Update prototype of builtin_define_with_value.
2436 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2437 and REGISTER_PREFIX.
2439 * cppinit.c (VERS, ULP, C, X): Kill.
2440 (builtin_array): Remove entries for __VERSION__,
2441 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2442 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
2444 (init_builtins): Kill off a bunch of now-dead code.
2445 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2446 -fno-leading-underscore.
2447 (cpp_handle_option): Remove code to set user_label_prefix.
2448 (cpp_post_options): Likewise.
2450 * cpplib.h (struct cpp_options): Remove user_label_prefix.
2451 (stdc_0_in_system_headers): New.
2452 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2453 stdc_0_in_system_headers) too to decide the value of __STDC__.
2455 * tradcpp.c (user_label_prefix): Kill.
2456 (main): Remove code handling -f(no-)leading-underscore.
2457 (initialize_builtins): Don't define __REGISTER_PREFIX__
2458 or __USER_LABEL_PREFIX__.
2459 (install_value): Wrap compound statement in dummy loop so the
2460 macro works properly in an if statement.
2463 2002-05-16 Janis Johnson <janis187@us.ibm.com>
2465 * loop.h (struct loop_info): Add member has_prefetch.
2466 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2467 (prescan_loop): Initialize has_prefetch.
2468 (struct prefetch_info): Change prefetch_in_loop and
2469 prefetch_before_loop from bit fields to ints.
2470 (emit_prefetch_instructions): Several small fixes.
2471 (check_dbra_loop): Don't reverse loop that uses prefetch.
2473 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2475 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2476 * configure.in: Likewise.
2477 * fixinc/check.tpl: Likewise.
2478 * fixinc/fixinc.dgux: Likewise.
2479 * fixinc/fixinc.svr4: Likewise.
2480 * fixinc/fixinc.winnt: Likewise.
2481 * fixinc/fixincl.sh: Likewise.
2482 * fixproto: Likewise.
2483 * configure: Regenerate.
2485 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2487 Basic block renumbering removal:
2488 * basic_block.h (struct basic_block_def): Renamed index to sindex,
2489 added prev_bb and next_bb fields.
2490 (n_basic_blocks): Renamed to num_basic_blocks.
2491 (last_basic_block): New, index of last basic block.
2492 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2493 traversing basic block chain.
2494 (BLOCK_NUM): index -> sindex.
2495 (create_basic_block_structure, create_basic_block): Declaration changed.
2496 (debug_num2bb): Declare.
2497 (expunge_block_nocompact): Declaration removed.
2498 (link_block, unlink_block, compact_blocks): Declare.
2499 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2500 * cfg.c (entry_exit_blocks): Initialize new fields.
2501 (clear_edges, alloc_block, expunge_block, cached_make_edge,
2502 redirect_edge_pred, dump_flow_info, dump_edge_info,
2503 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2504 free_aux_for_edges): Modified.
2505 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2506 (expunge_block_nocompact): Removed.
2507 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2508 find_unreachable_blocks, create_edge_list, print_edge_list,
2509 verify_edge_list, flow_edge_list_print, remove_fake_successors,
2510 remove_fake_edges, flow_reverse_top_sort_order_compute,
2511 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2512 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2513 flow_dfs_compute_reverse_execute): Modified.
2514 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2515 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2517 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2518 merge_blocks_move_predecessor_nojumps,
2519 merge_blocks_move_successor_nojumps, merge_blocks,
2520 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2521 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2522 * cfglayout.c (skip_insns_after_block, label_for_bb,
2523 record_effective_endpoints, scope_to_insns_finalize,
2524 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2525 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2526 cfg_layout_duplicate_bb): Modified.
2527 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2528 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2529 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2530 flow_loops_find, flow_loop_outside_edge_p): Modified.
2531 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2532 flow_delete_block, compute_bb_for_insn, split_block,
2533 try_redirect_by_replacing_jump, redirect_edge_and_branch,
2534 force_nonfallthru_and_redirect, tidy_fallthru_edge,
2535 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2536 commit_edge_insertions, commit_edge_insertions_watch_calls,
2537 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2538 purge_all_dead_edges): Modified.
2539 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2540 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2541 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2543 * conflict.c (conflict_graph_compute): Modified.
2544 * df.c (FOR_ALL_BBS): Removed.
2545 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2546 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2547 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2548 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2549 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2550 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2551 * final.c (compute_alignments, final_scan_insn): Modified.
2552 * flow.c (verify_local_live_at_start, update_life_info,
2553 update_life_info_in_dirty_blocks, free_basic_block_vars,
2554 delete_noop_moves, calculate_global_regs_live,
2555 initialize_uninitialized_subregs, allocate_bb_life_data,
2556 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2557 mark_used_reg, count_or_remove_death_notes): Modified.
2558 * function.c (thread_prologue_and_epilogue_insns): Modified.
2559 * gcse.c (struct null_pointer_info): Change typo of current_block
2561 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2562 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2563 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2564 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2565 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2566 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2567 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2568 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2569 pre_delete, one_pre_gcse_pass, compute_transpout,
2570 invalidate_nonnull_info, delete_null_pointer_checks_1,
2571 free_code_hoist_mem, compute_code_hoist_vbeinout,
2572 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2573 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2574 compute_store_table, build_store_vectors, insert_insn_start_bb,
2575 insert_store, replace_store_insn, free_store_memory, store_motion):
2577 * global.c (global_alloc, global_conflicts, mark_elimination,
2578 build_insn_chain): Modified.
2579 * graph.c (print_rtl_graph_with_bb): Modified.
2580 * haifa-sched.c (sched_init): Modified.
2581 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2582 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2583 if_convert): Modified.
2584 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2585 compute_insert_delete, pre_edge_lcm, compute_available,
2586 compute_farthest, compute_nearerout, compute_rev_insert_delete,
2587 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2589 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2590 * loop.c (loop_dump_aux): Modified.
2591 * predict.c (combine_predictions_for_insn, estimate_probability,
2592 last_basic_block_p, process_note_prediction, process_note_predictions,
2593 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2594 expensive_function_p, estimate_bb_frequencies,
2595 compute_function_frequency): Modified.
2596 * print-rtl.c (print_rtx): Modified.
2597 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2598 get_exec_counts, compute_branch_probabilities, compute_checksum,
2599 branch_prob, find_spanning_tree): Modified.
2600 * recog.c (split_all_insns, peephole2_optimize): Modified.
2601 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2602 convert_regs_1, convert_regs_2, convert_regs): Modified.
2603 * regclass.c (scan_one_insn, regclass): Modified.
2604 * regmove.c (mark_flags_life_zones, regmove_optimize,
2605 combine_stack_adjustments): Modified.
2606 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2607 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2608 * reorg.c (dbr_schedule): Modified.
2609 * resource.c (find_basic_block, init_resource_info): Modified.
2610 * sbitmap.c (sbitmap_intersection_of_succs,
2611 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2612 sbitmap_union_of_preds): Modified.
2613 * sched-deps.c (init_dependency_caches): Modified.
2614 * sched-ebb.c (schedule_ebbs): Modified.
2615 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2616 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2617 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2618 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2619 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2620 ssa_const_prop): Modified.
2621 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2622 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2623 * ssa.c (remove_phi_alternative, find_evaluations,
2624 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2625 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2626 make_regs_equivalent_over_bad_edges,
2627 make_equivalent_phi_alternatives_equival,
2628 compute_conservative_reg_partition,
2629 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2630 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2633 2002-05-16 Mark Mitchell <mark@codesourcery.com>
2635 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2637 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2639 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2640 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2641 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2642 calling CONSTANT_POOL_ADDRESS_P.
2643 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2644 to decide whether to define __arm__ or __thumb.
2645 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2646 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2648 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2650 * config/arc/arc.h (CPP_PREDEFINES): Remove.
2652 (TARGET_CPU_CPP_BUILTINS): New.
2654 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2656 * cpphash.h (cpp_macro): Move here, and make expansion a union.
2657 * cppmacro.c (cpp_macro): Remove.
2658 (enter_macro_context, replace_args, warn_of_redefinition,
2659 _cpp_create_definition, cpp_macro_definition): Update.
2661 2002-05-16 Jason Merrill <jason@redhat.com>
2663 * config/mips/mips.c (mips_output_external): Don't do sdata
2664 optimization for a variable with DECL_COMDAT set.
2666 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2668 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2669 Cleanups for accepting modifiers on pointers.
2670 Fix predicate typos.
2671 Allow long pointers as well as int pointers.
2673 2002-05-15 Richard Henderson <rth@redhat.com>
2675 * varasm.c (merge_weak): Remove special case for extern and common.
2677 2002-05-15 Matt Hiller <hiller@redhat.com>
2679 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2681 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2682 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2683 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2684 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2685 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2686 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2688 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2690 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2692 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2694 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2695 ("altivec_mfvscr"): Read from VSCR.
2697 Add vscr sets for the following insns: altivec_vctuxs,
2698 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2699 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2700 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2701 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2702 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2703 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2704 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2705 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2706 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2707 altivec_vsum2sws, altivec_vsumsws.
2709 * config/rs6000/rs6000.h: Add VSCR fixed register.
2710 (CALL_REALLY_USED_REGISTERS): Add vscr.
2711 (CALL_USED_REGISTERS): Same.
2712 (FIXED_REGISTERS): Same.
2713 (REG_ALLOC_ORDER): Same.
2714 (reg_class): Add VSCR_REGS.
2715 (REG_CLASS_NAMES): Same.
2716 (REG_CLASS_CONTENTS): Same.
2718 (REGISTER_NAMES): Add vscr.
2719 (DEBUG_REGISTER_NAMES): Same.
2720 (ADDITIONAL_REGISTER_NAMES): Same.
2721 (FIRST_PSEUDO_REGISTER): Increment.
2722 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2724 2002-05-15 Jakub Jelinek <jakub@redhat.com>
2726 * fold-const.c (fold): Fix a typo.
2728 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
2730 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2731 comparison against the highest or lowest integer value before
2732 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2733 transformation and that of an unsigned comparison against 0
2736 2002-05-15 Richard Henderson <rth@redhat.com>
2738 * varasm.c (merge_weak): Error for any weakening after definition.
2739 Adjust weakening after use warning to catch more cases.
2740 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2741 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2743 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2745 * invoke.texi (-malign-double): Re-add lost warning.
2747 * i386-protos.h (x86_output_mi_thunk): Declare.
2748 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2749 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2751 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2752 when flag_asynchronous_unwind_tables is set.
2754 * flags.h (flag_reorder_functions): Declare.
2755 * function.c (prepare_function_start): Initialize frequnecy.
2756 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2757 * Makefile.in (predict.o): Add dependency on target.h and params.h
2758 * defaults.h (HOT_TEXT_SECTION_NAME,
2759 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2760 * predict.c (choose_function_section): New function.
2761 (estimate_bb_frequencies): Use it.
2762 * toplev.c (flag_reorder_functions): New global variable.
2763 (lang_independent_options): New.
2764 (parse_options_and_default_flags): Set.
2765 * varasm.c (assemble_start_function): Bypass functdion alignment
2766 for never executed functions.
2767 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2768 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2769 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2772 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
2774 * predict.c: Inlude profile.h
2775 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2776 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2777 Use the information about maximal counter in the program.
2779 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
2781 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2782 probably_never_executed_bb_p): New functions.
2783 * cfgcleanup.c (outgoing_edges_match): Use them.
2784 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2785 (maybe_hot_bb_p, probably_cold_bb_p,
2786 probably_never_executed_bb_p): New functions.
2788 * function.h (function): Add new field function_frequency.
2789 * predict.c (compute_function_frequency): New function.
2790 (estimate_probability): Call it.
2792 2002-03-09 Jakub Jelinek <jakub@redhat.com>
2794 PR optimization/5172, optimization/5200
2795 * gcse.c (gcse_main): Disable store_motion.
2797 2002-05-14 Zack Weinberg <zack@codesourcery.com>
2799 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2800 (c_common_nodes_and_builtins): Use it.
2801 (builtin_define_with_value): New function.
2802 (cb_register_builtins): Define __SIZE_TYPE__,
2803 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2804 using builtin_define_with_value. Use consistent notation when
2805 defining __GXX_WEAK__.
2806 (WCHAR_TYPE_SIZE): Don't redefine.
2807 (combine_strings): Don't use WCHAR_TYPE_SIZE.
2809 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2810 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2811 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2812 * tradcpp.c (initialize_builtins): Likewise.
2813 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2815 * c-lex.h (builtin_define_with_value): Prototype.
2816 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2817 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2818 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2820 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2821 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2822 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2823 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2824 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2825 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2826 config/sparc/sol2-bi.h, config/sparc/sparc.h:
2827 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
2828 to __SIZE_TYPE__ etc from all spec strings. When this makes
2829 extra specs empty, delete them.
2831 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
2833 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
2834 for PA8000 or generating dwarf2 call frame information.
2835 (output_call): Remove DO_FRAME_NOTES check from return pointer
2837 (following_call): Return 0 when scheduling for PA8000 or generating
2838 dwarf2 call frame information. Revise comment.
2840 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2843 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
2844 and __IEEE_FP_INEXACT as appropriate.
2845 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
2846 (CPP_SPEC): Remove ieee defines.
2847 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
2849 2002-05-14 Richard Henderson <rth@redhat.com>
2851 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
2852 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
2854 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2856 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
2858 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
2859 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
2860 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
2861 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
2862 (EXTRA_SPECS): Update.
2863 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2864 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
2865 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
2866 define TARGET_OS_CPP_BUILTINS if necessary.
2868 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2870 * gcc.c (cpp_options): Must pass -m* and -f* options
2871 to the front end even when only preprocessing.
2872 (cc1_options): Remove redundant -lang-c.
2873 * tradcpp.c (main): Ignore -m options.
2875 * lang-specs.h: Similarly.
2877 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
2879 * genautomata.c (transform_3): Add code for transformation
2880 `(A,B,...)+C -> A+C,B,...'.
2882 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
2884 * final.c (end_final): Do not output profile_arcs constructor, when
2885 no functions are instrumented.
2887 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
2889 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
2891 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2893 * doc/install.texi: Remove special markup originally required for
2894 HTML generation with texi2html.
2896 2002-05-14 Andreas Schwab <schwab@suse.de>
2898 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
2900 (UNIQUE_SECTION): Define to get small data correctly.
2902 * varasm.c (resolve_unique_section): Add third parameter
2903 flag_function_or_data_sections and use it instead of
2904 flag_function_sections.
2905 (assemble_start_function): Pass flag_function_sections.
2906 (asm_emit_uninitialised): Pass flag_data_sections.
2907 (assemble_variable): Likewise.
2909 2002-05-14 Richard Henderson <rth@redhat.com>
2911 * config/i386/i386.md: Use define_constants for unspec numbers.
2912 * config/i386/i386.c: Likewise.
2914 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2916 * doc/contrib.texi: Update my entry.
2918 2002-05-13 Mark Mitchell <mark@codesourcery.com>
2920 * fixinc/inclhack.def (winidss_valist): Limit applicability.
2921 * fixinc/fixincl.x: Regenerated.
2922 * fixinc/tests/base/math.h: Update.
2923 * fixinc/tests/base/testing.h: Likewise.
2925 2002-05-13 Zack Weinberg <zack@codesourcery.com>
2927 * genattr.c (gen_attr): Don't emit a comma after the last
2930 2002-05-13 Richard Henderson <rth@redhat.com>
2932 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
2934 * recog.c (peephole2_optimize): Likewise.
2936 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
2938 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
2941 2002-05-13 Jeffrey A Law (law@redhat.com)
2943 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
2944 Update prototype and callers.
2945 (propagate_one_insn): Stack pointer adjustments kill MEMs on
2946 the mem_set_list which reference the stack pointer, as do
2947 calls to constant functions as they may clobber outgoing
2950 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
2952 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2953 (ia32_multipass_dfa_lookahead): New function.
2955 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2957 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
2958 (translate_options): Remove 'V'.
2959 (process_command): Similarly.
2961 * invoke.texi: Remove documentation of 'V'.
2963 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2965 * config/s390/linux.h: Revert 2002-04-22 changes.
2967 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
2969 * config/fr30/fr30.md: Only allow splits of immediate loads
2970 if the destination is a register.
2972 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2974 * Makefile.in (c-common.o, cppinit.o): Update.
2975 * c-common.c: Include except.h.
2976 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
2977 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
2978 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
2979 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
2980 CPP_PREDEFINES): Handle here.
2982 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
2983 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
2984 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
2985 TARGET_OS_CPP_BUILTINS.
2986 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
2987 (CPP_SPEC, EXTRA_SPECS): Update.
2988 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
2989 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
2990 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
2991 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
2992 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
2994 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
2995 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
2997 2002-05-12 Zack Weinberg <zack@codesourcery.com>
2999 * emit-rtl.c (global_rtl): Update comment.
3000 (const_double_htab, const_double_htab_hash,
3001 const_double_htab_hash, lookup_const_double): New.
3002 (const_int_htab_hash, const_int_htab_eq): Remove const
3003 qualifiers, which cause tons of warnings with RTL checking on.
3004 (gen_rtx_CONST_DOUBLE): Deleted.
3005 (const_double_from_real_value): New function - bears some
3006 resemblance to the former immed_real_const_1.
3007 (immed_double_const): Moved here from varasm.c and
3009 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3010 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3011 (gen_rtx): Use immed_double_const.
3012 (init_emit_once): Initialize the const_double_htab. Use
3013 REAL_VALUE_FROM_INT where possible. Can now use
3014 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3015 * varasm.c (struct varasm_status): Remove x_const_double_chain.
3016 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3017 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3018 (init_varasm_status, mark_varasm_status): Don't touch
3019 x_const_double_chain.
3021 * output.h: Delete prototype for clear_const_double_mem.
3022 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
3023 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
3024 const_double_from_real_value, not immed_real_const_1, and use
3025 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
3027 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3028 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3029 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3030 (gen_rtx_REG): Second arg is unsigned.
3032 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3033 (excluded_rtx): New, return true for CONST_DOUBLE.
3034 (genmacro): Write nothing for excluded codes.
3035 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3036 * expr.c (expand_expr): Likewise.
3037 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3039 * toplev.c (rest_of_compilation): Don't call
3040 clear_const_double_mem.
3042 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3043 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3044 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3045 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3046 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3047 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3048 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3049 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3051 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3053 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3055 2002-05-12 Tom Tromey <tromey@redhat.com>
3057 * tree.h (copy_node): Don't mention TREE_PERMANENT.
3059 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3061 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3062 (scan_comma_elt): New function. Accepts whitespace in comma lists.
3063 * gensupport.h: Prototype new routines.
3064 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
3066 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3067 (next_comma_elt): Use scan_comma_elt.
3069 * config/i386/i386.md: Use new attribute notation to break up
3070 long lines in define_attr forms.
3072 2002-05-12 Richard Henderson <rth@redhat.com>
3074 * expr.c (compress_float_constant): New.
3075 (emit_move_insn): Use it.
3076 (float_extend_from_mem): New.
3077 (init_expr_once): Initialize it.
3078 * real.c (exact_real_truncate): New.
3080 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3081 dropped into memory; penalize for size.
3082 (RTX_COSTS): FLOAT_EXTEND is free.
3083 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3084 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3086 2002-05-12 Richard Henderson <rth@redhat.com>
3088 * profile.h (profile_info): Add missing extern to declaration.
3089 * profile.c (profile_info): Define it.
3091 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3093 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3094 used for DImode and TImode.
3096 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3098 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3101 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3103 * config/rs6000/rs6000.c (rs6000_default_long_calls,
3104 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3105 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3106 (rs6000_override_options): Handle -m(no-)longcall.
3107 (init_cumulative_args, output_mi_thunk): Check for both
3108 longcall and shortcall attributes on the function.
3109 (rs6000_attribute_table): Add "shortcall".
3110 (rs6000_handle_longcall_attribute): Update comment.
3111 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3112 altivec_expand_ternop_builtin): Add default clauses to switches
3113 to silence warnings.
3115 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3116 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
3117 (TARGET_OPTIONS): Add longcall and no-longcall.
3119 * config/rs6000/rs6000.md (call_nonlocal_sysv,
3120 call_value_nonlocal_sysv): Split by alternatives. One pair
3121 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3122 the call cookie. The other pair accepts only LR/CTR and has
3125 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3126 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3128 * config/rs6000/rs6000-c.c: New file.
3129 * config/rs6000/t-rs6000-c-rule: New file.
3130 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3131 Prototype rs6000_pragma_longcall.
3133 * doc/extend.texi: Document shortcall attribute.
3134 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3136 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3138 * reorg.c (dbr_schedule): Remove unnecessary test.
3140 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3142 * i386.md (testsi to testqi spliters): New.
3144 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3146 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3148 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3150 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3151 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3152 that can be made fallthru.
3154 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3156 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3157 (cfg_layout_initialize): Use it.
3159 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3161 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3162 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3163 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3165 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3167 * dbxout.c: Fix formatting.
3168 * dependence.c: Likewise.
3170 * diagnostic.c: Likewise.
3171 * doloop.c: Likewise.
3172 * dominance.c: Likewise.
3173 * doschk.c: Likewise.
3174 * dwarf2asm.c: Likewise.
3175 * dwarf2out.c: Likewise.
3176 * dwarfout.c: Likewise.
3178 2002-05-10 Richard Henderson <rth@redhat.com>
3180 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3181 Convert integers constants as needed. Replace "nwords" field with
3183 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3184 * function.h: Fix typo in comment.
3185 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3187 2002-05-10 Roger Sayle <roger@eyesopen.com>
3189 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3190 into the equivalent (signed char)c > 0.
3192 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3194 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3195 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3196 (struct prefetch_info): Fix spelling of member bytes_accessed.
3197 (emit_prefetch_instructions): Make dump messages more regular;
3198 restructure code to add more dump messages; use new macros for
3199 heuristics. (There are no code generation changes in any of this).
3201 2002-05-10 David S. Miller <davem@redhat.com>
3203 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3204 (struct rtx_def): Update unchanging flag comment.
3205 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3206 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3207 to be handled to INSN too.
3208 (dbr_schedule): Likewise.
3209 * resource.c (next_insn_no_annul): Likewise.
3211 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3214 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3216 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3217 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3218 (possibly) work around broken /bin/sh.
3220 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3222 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3223 . as N64/N32 libgcc_s.so subdirs.
3225 2002-05-10 David S. Miller <davem@redhat.com>
3227 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3229 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3231 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3233 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3234 * doc/rtl.texi: Document these macros more accurately.
3235 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3236 JUMP_INSNs and CALL_INSNs.
3237 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3238 or INSN_FROM_TARGET_P if the code is appropriate.
3240 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3242 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3243 before using SYMBOL_REF_FLAG (addr).
3245 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3246 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3247 Make non-static. Update all callers.
3248 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3249 New insns to clear/set/test a single bit in I/O address space.
3251 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3253 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3255 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3257 * Makefile.in: Update.
3258 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3259 builtin_define_std): New.
3260 (c_common_init): Register CPP builtins callback.
3261 * c-common.h (flag_iso, flag_undef): New.
3262 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3263 * c-lex.c: Don't include target.h.
3264 (cb_register_builtins): Move to c-common.c.
3265 (init_c_lex): Don't register hook here.
3266 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3267 (cpp_define, cpp_assert): Remove.
3268 * gcc.c (cc1_options): Pass -undef to front end.
3269 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3270 (TARGET_INITIALIZER): Update.
3271 * target.h (struct cpp_reader): Don't predeclare.
3272 (struct gcc_target): Remove cpp builtin hook.
3273 * tree.c (default_register_cpp_builtins): Remove.
3277 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3279 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3281 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3283 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3284 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3286 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3288 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3289 * config/sparc/libgcc-sparc-glibc.ver: New file.
3290 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3291 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3293 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3296 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3297 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3298 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3300 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3301 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3302 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3303 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3305 2002-05-09 Richard Henderson <rth@redhat.com>
3307 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3308 * config/ia64/ia64.c: Likewise.
3310 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3312 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3313 (save_restore_insns): Likewise.
3314 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3315 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3317 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3319 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3320 * i386.md: Move scheduling information into new files.
3322 * i386.md (type attribute): Add "rotate" for rotate insns.
3323 (rotate insns): Set type to "rotate".
3324 (various attributes and function units): Treat rotate like shift.
3325 (pent_pair attribute): Only rotates by one bit position are
3327 (sbb insns): Explicitly set pent_pair attribute on a couple
3328 that were missing it.
3330 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3332 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3333 make sure that buffer starts on odd word address.
3334 (sh_va_arg): Skip odd fp registers when reading a double precision
3337 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3339 * tree.h (preserve_data, object_permanent_p, type_precision):
3342 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3344 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3345 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3347 * cpp.texi: Update for removal of obsolete features.
3349 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3350 Jeffrey A Law (law@redhat.com)
3352 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3353 the DFA interface for Pentium processors.
3354 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3355 (attr_pent_pair, ix86_pent_find_pair): Remove.
3356 (ix86_sched_reorder_pentium): Remove.
3357 (ix86_sched_reorder): Remove reordering for Pentium.
3358 * i386.md (Pentium scheduling): Rewrite using DFA description.
3360 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3362 * cfganal.c (can_fallthru): Fix fast path.
3363 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3364 with edges to the next block.
3366 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3367 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3369 * final.c (end_final): Use C trees to output data structures for profiling.
3371 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3372 (profile.o): New dependency profile.h
3373 (final.o): New dependency profile.h
3374 * profile.h: New file. New global structure profile_info.
3375 * final.h (count_edges_instrumented_now): Declare.
3376 (current_function_cfg_checksum): Declare.
3377 (function_list): New structure.
3378 (functions_head, functions_tail): New static variables.
3379 (end_final): Emits more data, removed some -ax stuff.
3380 (final): Stores function names and chcksums.
3381 * gcov-io.h (__write_gcov_string): New function.
3382 (__read_gcov_string): New function.
3383 * gcov.c (read_profile): New function.
3384 (create_program_flow_graph): Uses read_profile instead of reading
3386 (read_files): Removed da_file checking, it's done by read_profile now.
3387 * libgcc2.c (bb_function_info): New structure.
3388 (bb): New field in structure, removed some -ax stuff.
3389 (__bb_exit_func): Changed structure of da_file.
3390 * profile.c (count_edges_instrumented_now): New global variable.
3391 (current_function_cfg_checksum): New global variable.
3392 (max_counter_in_program): New global variable.
3393 (get_exec_counts): New function.
3394 (compute_checksum): New function.
3395 (instrument_edges): Sets count_edges_instrumented_now.
3396 (compute_branch_probabilities): Uses get_exec_counts instead of
3398 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3399 (init_branch_prob): Removed da_file checking, done in get_exec_counts
3401 (end_branch_prob): Removed da_file checking, done in get_exec_counts
3403 * gcov.texi: Updated information about gcov file format.
3405 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3407 * sbitmap.c: Fix formatting.
3409 * scan-decls.c: Likewise.
3410 * sched-deps.c: Likewise.
3411 * sched-ebb.c: Likewise.
3412 * sched-rgn.c: Likewise.
3413 * sched-vis.c: Likewise.
3414 * sdbout.c: Likewise.
3415 * sibcall.c: Likewise.
3416 * simplify-rtx.c: Likewise.
3418 * ssa-ccp.c: Likewise.
3419 * ssa-dce.c: Likewise.
3421 * stor-layout.c: Likewise.
3422 * stringpool.c: Likewise.
3424 2002-05-09 David S. Miller <davem@redhat.com>
3426 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3428 2002-05-07 David S. Miller <davem@redhat.com>
3430 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3431 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3432 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3433 library implementation clobbers the output before the inputs
3434 are fully consumed, use stack temporary for the output.
3436 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
3438 * config/netbsd.h (CPP_SPEC): Remove.
3439 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3440 * config/i386/netbsd.h (CPP_SPEC): Define.
3441 * config/ns32k/netbsd.h (CPP_SPEC): Define.
3442 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3443 * config/sparc/netbsd.h (CPP_SPEC): Define.
3444 * config/vax/netbsd.h (CPP_SPEC): Define.
3446 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3448 * read-rtl.c: Fix formatting.
3450 * recog.c: Likewise.
3451 * regclass.c: Likewise.
3452 * regmove.c: Likewise.
3453 * reg-stack.c: Likewise.
3454 * reload1.c: Likewise.
3455 * reload.c: Likewise.
3456 * resource.c: Likewise.
3457 * rtlanal.c: Likewise.
3459 * rtl-error.c: Likewise.
3461 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3463 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3464 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3466 2002-05-08 Bernd Schmidt <bernds@redhat.com>
3468 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3469 use __SSE2__ macro instead.
3470 * config/i386/xmmintrin.h: Likewise.
3472 2002-05-08 Janis Johnson <janis187@us.ibm.com>
3474 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3475 and use it in all invocations of these macros. Clean up comments.
3476 * rtl.c (rtl_check_failed_flag): Add an argument for the name
3477 of the flag access macro whose check failed.
3478 * doc/rtl.texi (Flags): Document additional flag uses.
3480 2002-05-08 Robert Spier <rspier@pobox.com>
3481 Neil Booth <neil@daikokuya.demon.co.uk>
3483 PR preprocessor/6521
3484 * cppfiles.c (handle_missing_header): Don't do anything
3485 different for <> includes.
3487 * cppopts.texi: Update documentation for -MG.
3489 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
3491 * cpplex.c (cpp_interpret_charconst): Truncate as well as
3494 * cpp.texi: Clarify multichar charconst valuation.
3496 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3498 * doc/invoke.texi: Document -mwindiss option.
3500 2002-05-08 Jason Merrill <jason@redhat.com>
3502 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3504 * dwarf2out.c (gen_type_die): Abort on broken recursion.
3507 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3510 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
3512 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3513 little-endian multilibs to override arm/thumb multilibs.
3514 Do not build hardware floating point multilibs, nor apcs-26
3515 multilibs for the Thumb.
3517 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3520 * varasm.c (mark_weak): New function.
3521 (merge_weak): Use it. Do not call declare_weak.
3522 (declare_weak): Use merge_weak.
3524 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3526 * cse.c (dead_libcall_p): Update counts.
3527 (delete_trivially_dead_insns): Update call of dead_libcall_p.
3529 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3531 * cfglayout.c (function_tail_eff_head): Rename to ...
3532 (function_footer): ... this one.
3533 (unlink_insn_chain): New functions.
3534 (label_for_bb): Only call block_label and emit debug message.
3535 (record_effective_endpoints): Actually unlink the headers and footers.
3536 (fixup_reorder_cahin): Re-insert the unlinked sequences.
3537 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3538 * cfglayout.h (struct reorder_block_def): New fields footer/header;
3539 remove eff_head/eff_end.
3540 * rtl.h (set_first_insn): Declare.
3541 * emit-rtl.c (set_first_insn): New function.
3543 * cfglayout.c (fixup_reorder_chain): Dump duplicated
3544 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3545 cfg_layout_duplicate_bb): New global function.
3546 (duplicate_insn_chain): New static function.
3547 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3548 cfg_layout_duplicate_bb): Declare.
3549 (struct reorder_block_def): Add "original" field.
3550 * emit-rtl.c (emit_copy_of_insn_after): New function.
3551 * rtl.h (emit_copy_of_insn_after): Declare.
3553 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3554 (fixup_reorder_chain): properly handle edges to exit block.
3556 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3557 Jan Hubicka <jh@suse.cz>
3559 * basic-block.h (note_prediction_to_br_prob): declare.
3560 * c-semantics.c: Inlucde predit.h
3561 (expand_stmt): predict GOTO_STMT as not taken.
3562 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3563 (cleanup_cfg): Do not free tail_recursion_list.
3564 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3565 (flow_delete_block): Kill predictions past end of basic block.
3566 * output.h (delete_unreachable_blocks): Declare.
3567 * predict.c (predicted_by_p, process_note_predictions,
3568 process_note_prediction, last_block_p): New function.
3569 (estimate_probability): Bypass loop on PRED_CONTINUE;
3570 do not handle noreturn heuristics; kill PRED_RETURN; add
3572 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3573 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3574 * predict.h (IS_TAKEN): New constant.
3575 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3576 * rtl.c (NOTE_INSN_PREDICTION): New.
3577 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3579 (insn_note): add NOTE_INSN_PREDICTION.
3580 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3581 CFG; free tail_recursion_label_list.
3582 * stmt.c: Include predict.h;
3583 (return_prediction): New.
3584 (expand_value_return): Use it.
3585 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3587 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
3589 * config/mips/mips.md: Name the unspecs with define_constant.
3590 (*HILO_delay): Rename to 'hilo_delay' (no star).
3591 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3592 (reload_outdi, reload_outsi): Likewise.
3594 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3596 * toplev.c: Fix formatting.
3598 2002-05-07 Janis Johnson <janis187@us.ibm.com>
3600 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3601 * configure.in (ac_rtlflag_checking): New.
3602 * doc/install.texi (--enable-checking): Document RTL flag checking.
3604 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3606 * c-common.c (c_common_init): Set options->unsigned_wchar.
3607 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3608 group target dependencies.
3609 (init_builtins, cpp_handle_option): Update.
3610 * cpplex.c (cpp_interpret_charconst): Update.
3611 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3612 signed_char to unsigned_char, group target dependencies.
3613 * defaults.h (WCHAR_UNSIGNED): Remove.
3614 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3616 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3617 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3618 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3619 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3620 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3622 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3624 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3626 * fixinc/inclhack.def (windiss_math1): New fix.
3627 (windiss_math2): Likewise.
3628 (windiss_valist): Likewise.
3629 * fixinc/fixincl.x: Regenerated.
3631 2002-05-07 Andreas Jaeger <aj@suse.de>
3633 * genautomata.c (output_internal_min_issue_delay_func): Add
3634 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3635 (output_internal_trans_func): Likewise.
3637 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
3639 * pa.c (hppa_profile_hook): Use force_reg to get the address
3640 of the profile hook into an appropriate pseudo register.
3642 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3644 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3645 (LINK_START_SPEC): Handle it.
3646 (LINK_OS_SPEC): Likewise.
3647 (CPP_SPEC): Likewise.
3648 (STARTFILE_SPEC): Likewise.
3649 (LIB_SPEC): Likewise.
3650 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
3652 (CRTSAVRES_DEFAULT_SPEC): New macro.
3653 (LIB_WINDISS_SPEC): New macro.
3654 (CPP_OS_WINDISS_SPEC): Likewise.
3655 (STARTFILE_WINDISS_SPEC): Likewise.
3656 (ENDFILE_WINDISS_SPEC): Likewise.
3657 (LINK_START_WINDISS_SPEC): Likewise.
3658 (LINK_OS_WINDISS_SPEC): Likewise.
3659 * config/rs6000/windiss.h: New file.
3661 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
3663 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3665 2002-05-06 David S. Miller <davem@redhat.com>
3667 * config/sparc/sparc.md (shift insns): Do not mask off
3668 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3671 2002-05-06 Richard Henderson <rth@redhat.com>
3674 * expr.c (highest_pow2_factor_for_type): New.
3675 (expand_assignment): Use it.
3677 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
3679 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3681 ("altivec_mfvscr"): Same.
3683 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3685 * rtl.h (struct rtx_def): Update comments.
3686 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
3687 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
3688 RTL_FLAG_CHECK macros with list of expected RTL codes.
3689 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3690 (rtl_check_failed_flag): New.
3691 * reload1.c (reload): Use REG macro before changing rtx to MEM.
3692 (reload_cse_noop_set_p): Check rtx code before using access macro.
3693 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3694 before using access macro.
3696 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3698 * doc/rtl.texi (Flags): Update to reflect current usage.
3700 2002-05-06 Roger Sayle <roger@eyesopen.com>
3703 * fold-const.c (sign_bit_p): New function.
3704 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3705 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3706 Reapply fold when converting (A & C) == C into (A & C) != 0.
3707 (fold_binary_op_with_conditional_arg): Fix typo in comment.
3709 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3711 * c-common.c (warn_multichar): New.
3712 (c_common_init): Set CPP's warn_multichar.
3713 * c-common.h (warn_multichar): New.
3714 * c-decl.c (warn_multichar): Remove.
3715 * c-lex.c (lex_charconst): Update.
3716 * c-tree.h (warn_multichar): Remove.
3717 * cppexp.c (eval_token): Sign-extend charconst value.
3718 * cppinit.c (cpp_create_reader): Set warn_multichar.
3719 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3720 each character. Update prototype. Sign-extend the result.
3721 * cpplib.h: Fix conditions.
3722 (struct cpp_options): Add new warning flag.
3723 (cpp_interpret_charconst): Update prototype.
3725 * cpp.texi: Update documentation.
3727 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
3729 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3730 Fix typo in usage of allof instead of unit.
3732 2002-05-06 Richard Henderson <rth@redhat.com>
3734 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3735 and any jump or call for IN.
3737 2002-05-06 Bernd Schmidt <bernds@redhat.com>
3739 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3741 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3743 2002-05-06 Roger Sayle <roger@eyesopen.com>
3745 * fold-const.c (lshift-double): Cast the high word to an unsigned
3746 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3747 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3748 avoid compiler warning. (fold): Remove redundant code from
3749 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3751 2002-05-06 Jeff Law <law@redhat.com>
3753 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3754 * pa.c (pa_adjust_cost): Remove all true dependency cost
3755 adjustments. Also remove support for non-DFA scheduling.
3756 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3757 to adjust true dependency costs. Update various comments.
3758 (7100lc, 7200, 7300 scheduling): Simplify by combining the
3759 FP ALU & MPY units into a single unit.
3761 2002-05-06 Catherine Moore <clm@redhat.com>
3763 * config/v850/v850.c (compute_register_save_size): Make sure
3764 to count all of the registers that will be saved.
3766 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3768 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3770 2002-05-06 David S. Miller <davem@redhat.com>
3772 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3773 allow result to overlap input operands in memory.
3775 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3778 * cpp.texi: Update multichar charconst docs.
3780 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3782 * cpplex.c (cpp_interpret_charconst): Sign-extend each
3783 character. Don't ignore excess characters. Treat
3784 multicharacter character constants as signed.
3785 (cpp_parse_escape): Clarify diagnostic.
3787 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3789 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3790 use add instead of shift.
3791 (ashldi3_sp64): Likewise.
3792 (ashlsi3_const1, ashldi3_const1): Remove.
3793 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3794 * config/sparc/sparc.c (const1_operand): New.
3796 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3798 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3800 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3803 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3805 2002-05-05 Richard Henderson <rth@redhat.com>
3807 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3808 memory latency adjustments.
3809 (alpha_variable_issue): Remove.
3810 (alpha_use_dfa_pipeline_interface): New.
3811 (alpha_multipass_dfa_lookahead): New.
3812 * config/alpha/alpha.md: Remove define_function_unit scheduling;
3813 include new dfa scheduling.
3814 (attr type): Add none.
3816 * config/alpha/ev4.md: New.
3817 * config/alpha/ev5.md: New.
3818 * config/alpha/ev6.md: New.
3820 2002-05-05 David S. Miller <davem@redhat.com>
3822 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3824 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
3826 * cse.c: Fix formatting.
3827 * emit-rtl.c: Likewise.
3829 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3831 * genautomata.c (initiate_states): Add additional guard to
3832 initialize `units_array'.
3834 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3836 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
3837 process_unit_to_form_the_same_automaton_unit_lists,
3838 form_the_same_automaton_unit_lists
3839 check_unit_distributions_to_automata): New prototypes and
3841 (check_automata): Rename it into `check_automata_insn_issues'.
3842 (unit_decl): New fields `the_same_automaton_unit' and
3843 `the_same_automaton_message_reported_p'.
3844 (unit_decl_t): New typedef.
3845 (the_same_automaton_lists): New gloval variable.
3846 (unit_regexp, unit_set_el, units_array, units_cmp,
3847 output_get_cpu_unit_code_func): Use the typedef.
3848 (evaluate_max_reserv_cycles): Increment
3849 `description->max_insn_reserv_cycles'.
3850 (initiate_states): Don't increment `max_cycles_num'.
3851 (transform_insn_regexps): Move code around transformation of
3852 regexps from `generate'.
3853 (generate): Remove call of `transform_insn_regexps'.
3854 (expand_automata): Call `transform_insn_regexps' and
3855 `check_unit_distributions_to_automata'. Check errors before
3858 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
3859 automaton `ultrasparc3_1'.
3861 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
3863 * c-common.c (c_common_init): Set up CPP arithmetic.
3864 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
3865 something reasonable for the host.
3866 (sanity_checks): Add checks.
3867 (cpp_read_main_file): Call sanity_checks() from here...
3868 (cpp_post_options): ... not here.
3869 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
3870 * cpplib.h (struct cpp_options): New member int_precision.
3872 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3874 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
3876 2002-05-04 David S. Miller <davem@redhat.com>
3878 * config/sparc/linux.h, config/sparc/linux64.h
3879 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
3881 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
3883 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
3885 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
3888 2002-05-05 Tim Josling <tej@melbpc.org.au>
3890 * treelang; New directory for new sample language treelang.
3892 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3894 * Makefile.in (c-lex.o): Update.
3895 * c-lex.c: Include target.h.
3896 (cb_register_builtins): New.
3897 (init_c_lex): Set builtins callback.
3898 * c-lex.h (cpp_define, cpp_assert): New prototypes.
3899 * cppinit.c (init_builtins): Use callback, including for
3901 * cpplib.h (struct cpp_callbacks): New member.
3902 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
3903 (TARGET_INITIALIZER): Update.
3904 * target.h (struct gcc_target): New hook.
3905 * tree.c (default_register_cpp_builtins): New.
3906 * tree.h (default_register_cpp_builtins): New.
3908 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
3910 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3912 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
3913 (cpp_post_options): Move sanity checks to...
3914 (sanity_checks): New.
3915 * cpplex.c (maybe_read_ucs): Fix prototype.
3916 (parse_string, cpp_parse_escape): Cast for %c format specifier.
3917 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
3920 2002-05-04 Bernd Schmidt <bernds@redhat.com>
3922 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
3923 builtins. Use V2DI patterns instead of TI for logical operations.
3924 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
3925 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
3926 (ix86_expand_builtins): Change the pattern used for movntdq.
3927 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
3928 sse2_nandv2di3): New patterns.
3929 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
3931 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
3932 (cvtdq2pd): Correct mode on operand 1.
3933 (sse2_umulsidi3): Describe without unspec.
3934 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
3936 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
3937 (ashlv2di3): Likewise, from sse2_ashlv2di3.
3938 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
3939 ashlv4si3, ashlv2di3): Use SImode for shift count.
3940 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
3941 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
3943 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
3945 (__m128i, __m128d): New macros.
3946 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
3947 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
3948 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
3949 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
3950 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
3951 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
3952 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
3953 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
3954 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
3955 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
3956 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
3957 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
3958 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
3959 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
3960 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
3961 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
3962 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
3963 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
3964 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
3965 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
3966 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
3967 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
3968 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
3969 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
3970 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
3971 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
3972 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
3973 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
3974 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
3975 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
3976 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
3977 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
3978 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
3979 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
3980 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
3981 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
3982 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
3984 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
3985 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
3987 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3989 * dwarf2out.c: Fix formatting.
3990 * varasm.c: Likewise.
3992 2002-05-04 David Edelsohn <edelsohn@gnu.org>
3995 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
3996 clobber and use result as temporary value.
3998 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4000 * expr.c (force_operand): Use expand_simple_* to handle more
4003 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4005 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4007 (lex_charconst): Update for change in prototype of
4008 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
4010 * cpphash.h (BITS_PER_CPPCHAR_T): New.
4011 * cppinit.c (cpp_create_reader): Initialize them for no
4012 change in semantics.
4013 (cpp_post_options): Add sanity checks.
4014 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4015 and truncation issues. Calculate in type cppchar_t.
4016 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4017 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
4018 run-time dependent precision correctly. Return whether the
4019 result is signed or not.
4020 * cpplib.c (dequote_string): Use cppchar_t; update.
4021 * cpplib.h (cppchar_signed_t): New.
4022 struct cpp_options): New precision members.
4023 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4024 * cppexp.c (eval_token): Update.
4026 2002-05-03 David S. Miller <davem@redhat.com>
4028 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4029 * config/sparc/sparc.c (sparc_rtx_costs): New function
4030 implementing RTX_COSTS and CONST_COSTS.
4031 * config/sparc/sparc.h (CONST_COSTS): Delete.
4032 (RTX_COSTS_CASES): Define.
4033 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4036 * config/sparc/sparc.md (DFA schedulers): Split out...
4037 * config/sparc/cypress.md, config/sparc/hypersparc.md,
4038 config/sparc/sparclet.md, config/sparc/supersparc.md,
4039 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4041 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4042 checks on it, always defined for Sparc.
4044 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4045 Tweak, and add more detailed comments.
4047 2002-05-03 Zack Weinberg <zack@codesourcery.com>
4049 * Re-apply patch accidentally reverted with
4050 DFA scheduler merge: remove all rules and variables to slurp
4051 source files out of libiberty and rebuild them with HOST_CC.
4052 ($(HOST_PREFIX_1)varray.o): New rule.
4053 (genattrtab rule): Word wrap.
4055 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4057 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4058 (CPP_SUBTARGET_SPEC): Define.
4059 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4060 cpp_subtarget specs.
4061 (CPP_SPEC): Redefine to include %(cpp_subtarget).
4063 2002-05-03 David S. Miller <davem@redhat.com>
4065 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4066 * target.h (struct gcc_target): Delete cycle_display member.
4068 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4069 (rtx_needs_barrier): Delete reference to cycle_display unspec.
4070 (ia64_sched_reorder2): Mention need for cycle display handling
4071 once such notes exist.
4073 2002-05-03 Richard Henderson <rth@redhat.com>
4075 * real.c (etoasc): Strip most trailing zeros for clarity.
4076 * sched-vis.c: Include real.h.
4077 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4078 * Makefile.in (sched-vis.o): Add real.h.
4080 2002-05-03 David S. Miller <davem@redhat.com>
4082 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4085 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
4087 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4088 when we get an out of range literal.
4089 (altivec_expand_ternop_builtin): Same.
4090 (altivec_expand_unop_builtin): Same.
4091 (altivec_expand_builtin): Same, for dss.
4092 (altivec_expand_builtin): Use trees instead of rtl when
4093 determining literal argument validity.
4095 2002-05-03 David S. Miller <davem@redhat.com>
4097 Delete cycle display scheduling hook.
4098 * config/ia64/ia64.c (ia64_cycle_display,
4099 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4100 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4101 and use emit_insn_before instead of ia64_emit_insn_before.
4102 * config/ia64/ia64.md (unspec usage): Delete cycle display.
4103 (cycle_display): Delete insn pattern.
4104 * config/sparc/sparc.md (unspec usage): Delete cycle display.
4105 (cycle_display): Delete insn pattern.
4106 * config/sparc/sparc.c (sparc_cycle_display,
4107 TARGET_SCHED_CYCLE_DISPLAY): Delete.
4108 * doc/md.texi (cycle_display): Don't mention.
4109 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4111 2002-05-03 Richard Henderson <rth@redhat.com>
4113 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4114 * recog.h: Declare them.
4116 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4117 * config/sparc/sparc.md: Use store_data_bypass_p instead.
4118 * config/sparc/sparc-protos.h: Update.
4120 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4122 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4123 -D__arch64__. Add -D_LP64.
4124 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4126 (CPP_ARCH64_SPEC): Likewise.
4127 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4128 (NO_BUILTIN_SIZE_TYPE): Undef.
4130 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
4132 * genautomata.c (min_issue_delay_pass_states): Change return type
4134 (min_issue_delay_pass_states): Change the algorithm.
4135 (min_issue_delay): Set up min_insn_issue_delay for the state.
4136 (output_min_issue_delay_table): Interchange the nested loops and
4137 and initiate min_insn_issue_delay for states.
4139 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4141 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4144 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4146 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4149 2002-05-03 Richard Henderson <rth@redhat.com>
4152 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4153 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4154 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4155 code before JUMP, not EARLIEST.
4157 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4159 * c-format.c (check_format_info_main): Don't check for presence of
4160 parameter for * width until after operand number has been read,
4161 and only check for it if format parameters are available.
4164 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4166 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4167 (LINK_SPEC): Undef before defining.
4169 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4171 PR preprocessor/6489
4172 * tradcpp.c (fixup_newlines): New.
4173 (main, finclude): Use it.
4175 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4177 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4178 * config/mips/mips.c (mips_unique_section): Strip encoding from
4181 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4183 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4186 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4188 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4189 (Specific): Removed buildstats references.
4190 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4191 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4192 Accomodate Solaris versions beyond 8.
4193 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4194 (Specific, *-*-solaris2.8): Removed, obsolete.
4196 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4199 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4200 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4201 fill leaf_reg_remap with identity.
4202 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4204 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4206 * config/h8300/crti.asm: Remove trailing spaces.
4207 * config/h8300/h8300.c: Likewise.
4208 * config/h8300/lib1funcs.asm: Likewise.
4210 2002-05-02 Jason Merrill <jason@redhat.com>
4212 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4213 * c-decl.c (c_init_decl_processing): Use it.
4214 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4215 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4216 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4218 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4220 * regrename.c: Fix formatting.
4223 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4225 * i386.md (attribute memory): Handle compares properly.
4227 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4229 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4232 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4234 * function.c: Fix formatting.
4236 2002-05-02 Jan Hubicka <jh@suse.cz>
4238 * haifa-sched.c (schedule_insn): Print table of instructions and
4240 (sched_block): Do not print ready list at verbosity level 1.
4241 * sched-vis.c (print_insn): Make global.
4242 * sched-ebb.c (ebb_print_insn): Rename from...
4243 (print_insn): ... this one.
4244 * sched-int.h (print_insn): Declare
4246 2002-05-02 Richard Henderson <rth@redhat.com>
4248 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4249 emitted by cycle_display.
4251 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4253 * doc/install.texi (*-*-freebsd*): Update to latest status.
4255 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4258 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4259 * config/float-sparc.h: Assume 128-bit long double if
4260 __LONG_DOUBLE_128__ is defined.
4262 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4264 * genattrtab.c (write_function_unit_info): Add a dummy element
4265 when num_units == 0.
4267 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4269 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4270 TYPE_MODE (double_type_node) instead of DFmode.
4272 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4274 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4276 * toplev.c (rest_of_compilation): Revert Richard's patch.
4278 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4280 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4282 2002-05-02 Catherine Moore <clm@redhat.com>
4284 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4286 2002-05-02 Kazu Hirata <kazu@hxi.com>
4288 * combine.c: Fix comment typos.
4290 * genautomata.c: Likewise.
4294 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4296 * doc/install.texi: State GNAT version requirements.
4298 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4300 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4301 of the frame pointer or arg pointer register which strict register
4302 checking is not enabled.
4304 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4306 * gcc.dg/altivec-8.c: New.
4308 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4309 PRE_INC and PRE_DEC for altivec modes.
4311 2002-05-01 Bruce Korb <bkorb@gnu.org>
4313 * fixinc/check.tpl(set-writable): make sure the function exists first
4314 * fixinc/inclhack.def(alpha_assert): fix test_text
4315 * fixinc/tests/base/assert.h: add in missing result
4317 2002-05-01 Jeff Law <law@redhat.com>
4319 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4322 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4324 * dbxout.c (dbxout_type): Emit size information for range types,
4325 as well, but only when using GDB extensions.
4327 2002-05-01 Richard Henderson <rth@redhat.com>
4329 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4330 target-independent gnu binutils date test.
4332 2002-05-01 Richard Henderson <rth@redhat.com>
4334 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4335 info before expunging the block.
4337 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4339 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4340 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4341 -M -or -MM is in effect.
4343 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4345 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4346 A29k configurations.
4347 * doc/install.texi: Update to match.
4349 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4352 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4353 for duplicates. Always loop over whole list.
4355 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4357 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4359 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4361 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4364 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4366 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4368 2002-05-01 David Edelsohn <edelsohn@gnu.org>
4370 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4371 (nabs_nopower): Same.
4372 (floatdisf2): New pattern.
4373 (absdi2): Convert to define_insn_and_split.
4378 (fix_trunctfdi2): Same.
4379 (fix_trunctfsi2): Same.
4381 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
4383 * doc/install.texi: Update Texinfo version requirement
4386 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4388 PR target/6512, PR target/5628
4389 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4390 when memory is not aligned.
4391 (movdf_insn_v9only_vis): Likewise.
4392 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4393 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4394 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4396 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
4398 * gcc.dg/altivec-7.c: New.
4400 * config/rs6000/altivec.h: Cleanup.
4402 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
4404 * doc/invoke.texi (Option Summary): Add -mvrsave=.
4405 (RS/6000 and PowerPC Options): Document -mvrsave=.
4407 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4408 (rs6000_altivec_vrsave_string): Same.
4409 (rs6000_override_options): Call rs6000_parse_vrsave_option.
4410 (rs6000_parse_vrsave_option): New.
4411 (rs6000_stack_info): Only generate vrsave instructions when
4412 TARGET_ALTIVEC_VRSAVE.
4414 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4415 (rs6000_altivec_vrsave_string): Define extern.
4416 (rs6000_altivec_vrsave): Same.
4417 (TARGET_ALTIVEC_VRSAVE): New.
4419 2002-04-30 Richard Henderson <rth@redhat.com>
4422 * toplev.c (rest_of_compilation): Don't run cross-jump before
4425 2002-04-30 Tom Rix <trix@redhat.com>
4427 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4428 check which_alternative.
4430 2002-04-30 Kazu Hirata <kazu@hxi.com>
4432 * cpplex.c: Fix comment formatting.
4433 * function.c: Likewise.
4434 * integrate.c: Likewise.
4435 * regrename.c: Likewise.
4436 * sibcall.c: Likewise.
4437 * simplify-rtx.c: Likewise.
4438 * tree-inline.c: Likewise.
4440 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4442 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4443 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4444 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4445 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4446 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4447 * pa/x-ada: New file. Define ADA_CFLAGS.
4449 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
4451 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4452 from MMIX_LAST_REGISTER_FILE_REGNUM.
4453 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4454 (struct machine_function): New member highest_saved_stack_register
4455 previously static variable in mmix.c.
4456 (MACHINE_DEPENDENT_REORG): Define.
4457 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4458 (MMIX_OUTPUT_REGNO): New.
4459 (mmix_target_asm_function_prologue): Move calculation of last used
4460 saved-stack-register into...
4461 (mmix_machine_dependent_reorg): New function. Update to also handle
4463 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4464 register names, simplify somewhat by new variable regno.
4465 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
4467 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4468 emitting register names.
4469 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4470 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4472 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4475 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4477 2002-04-30 Richard Henderson <rth@redhat.com>
4479 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4480 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4481 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4482 emit_tfmode_cvt): New.
4483 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4484 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4485 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4486 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4487 * config/sparc/sparc-protos.h: Update.
4489 2002-04-30 Janis Johnson <janis187@us.ibm.com>
4491 * install.texi (Final install): Add to the list of info to include
4492 in a report of a successful bootstrap, and add link to 3.1 list.
4494 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
4496 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4497 (mode): Add vector modes
4498 (i387): Kill attribute.
4499 (unit): New attribute.
4500 (length_immediate): Grok new types.
4501 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4502 (modrm): Use "unit".
4503 (memory): Handle MMX/SSE properly.
4504 (scheduling descriptions): Kill uses of fop1.
4505 (sse, mmx, fp patterns): Set type and mode properly.
4507 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
4509 * pa.c (override_options): Default to PA8000 scheduling.
4510 * doc/invoke.texi (HP-PA options): Mention newly added 7300
4511 scheduling parameter.
4513 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4514 handling of double precision multiplies.
4516 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4517 fpdiv and fpsqrt instructions.
4518 (7200 & 7300 scheduling): Fix typo in handling of
4519 store-load and store-store penalties.
4521 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4523 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4524 mips. Add two missing commas.
4526 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
4528 * doc/contrib.texi (Contributors): Update Paolo Carlini's
4529 and Benjamin Kosnik's entries.
4531 2002-04-29 David S. Miller <davem@redhat.com>
4533 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4534 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4535 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4536 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4538 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4540 * combine.c (find_split_point): Use gen_int_mode.
4542 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
4544 Merging code from dfa-branch:
4546 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
4548 * genautomata.c (output_reserv_sets): Fix typo.
4550 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
4552 * genautomata.c (output_reserv_sets): Remove
4553 next_cycle_output_flag.
4555 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
4557 * sched-rgn.c (init_ready_list): Make the DFA code handle
4558 USE/CLOBBER insns in the same way as the traditional
4560 (new_ready): Similarly..
4562 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
4564 * haifa-sched.c (schedule_block): Change the DFA state only after
4567 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
4569 * pa.c (hppa_use_dfa_pipeline_interface): New function.
4570 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4571 (override_options): Add PA7300 scheduling support.
4572 (pa_adjust_cost): Update various comments. Properly
4573 handle anti and output dependencies when using the
4575 (pa_issue_rate): Add PA7300 scheduling support.
4576 (pa_can_combine_p): Call extract_insn before calling
4577 constrain_operands (taken from mainline tree).
4578 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4579 * pa.md (cpu attr): Add 7300. Rewrite pipeline
4580 descriptions using DFA descriptions. Add PA7300
4583 2002-03-30 David S. Miller <davem@redhat.com>
4585 Add UltraSPARC-III DFA scheduling support.
4586 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4587 Update FP conditional move on register insn patterns to use it, as
4589 (define_attr cpu): Add ultrasparc3.
4590 (define_attr us3load_type): New, update integer load patterns to
4591 set it, as appropriate.
4592 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4593 (rest): Add UltraSPARC3 scheduling description.
4594 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4595 (PROCESSOR_ULTRASPARC3): New.
4596 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4597 ({ASM,CPP}_CPU_SPEC): Likewise.
4598 (REGISTER_MOVE_COST): Likewise.
4599 (RTX_COSTS): Likewise.
4600 * config/sparc/sparc.c (sparc_override_options,
4601 sparc_initialize_trampoline, sparc64_initialize_trampoline,
4602 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4603 sparc_issue_rate): Likewise.
4604 * config/sparc/sol2.h: Likewise.
4605 * config/sparc/sol2-sld-64.h: Likewise.
4606 * config/sparc/linux64.h: Likewise.
4608 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
4610 * doc/md.texi: Add comments about usage the latency time for the
4611 different dependencies and about case when two or more conditions
4612 in different define_insn_reservations returns TRUE for an insn.
4614 * doc/md.texi: Add reference for automaton based pipeline
4617 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
4619 * doc/passes.texi: Add missed information about genattrtab.
4621 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
4623 * genautomata.c (output_automata_list_transition_code): Check
4624 automata_list on NULL.
4626 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
4628 * genautomata.c (output_insn_code_cases,
4629 output_automata_list_min_issue_delay_code,
4630 output_automata_list_transition_code,
4631 output_automata_list_state_alts_code): Comment the functions.
4633 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
4635 * genautomata.c (automata_list_el_t): New typedef.
4636 (get_free_automata_list_el,free_automata_list_el,
4637 free_automata_list, automata_list_hash, automata_list_eq_p,
4638 initiate_automata_lists, automata_list_start, automata_list_add,
4639 automata_list_finish, finish_automata_lists,
4640 output_insn_code_cases, output_automata_list_min_issue_delay_code,
4641 output_automata_list_transition_code,
4642 output_automata_list_state_alts_code, add_automaton_state,
4643 form_important_insn_automata_lists): New functions and prototypes.
4644 (insn_reserv_decl): Add members important_automata_list and
4646 (ainsn): Add members important_p.
4647 (automata_list_el): New structure.
4648 (first_free_automata_list_el, current_automata_list,
4649 automata_list_table): New global variables.
4650 (create_ainsns): Initiate member important_p.
4651 (output_internal_min_issue_delay_func): Generate the switch and
4652 call output_insn_code_cases.
4653 (output_internal_trans_func, output_internal_state_alts_func):
4655 (generate): Call initiate_automata_lists.
4656 (automaton_states): New global variable.
4657 (expand_automata): Call form_important_insn_automata_lists.
4658 (write_automata): Call finish_automata_lists.
4660 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
4662 * genautomata.c (add_excls, add_presence_absence): Check that
4663 cpu units in the sets belong the same automaton.
4665 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4666 about that cpu units in the sets belong the same automaton.
4668 * doc/md.texi: Ditto.
4670 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
4671 Nitin Gupta <niting@noida.hcltech.com>
4673 * config/sh/sh.c (sh_use_dfa_interface): New function.
4675 (sh_issue_rate): New Function.
4676 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4677 TARGET_SCHED_ISSUE_RATE: define.
4679 * config/sh/sh.md: Add DFA based pipeline description for SH4.
4681 (define_attr insn_class): New attribute used for DFA
4683 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4684 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4685 cmpeqdi_t): Likewise.
4687 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4688 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4690 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4692 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4694 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4697 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4699 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4700 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4702 (output_dfa_start_func): Initiate new variable insn_codes_length,
4703 (write_automata): Output definition of the new variable.
4705 2001-10-02 David S. Miller <davem@redhat.com>
4707 * haifa-sched.c (advance_one_cycle): New function.
4708 (schedule_block): Use it.
4709 (queue_to_ready): Use it, and also make sure to advance the DFA
4710 state on all stall cycles, not just those where insn_queue links
4713 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
4715 * haifa-sched.c (max_issue): Remove last_p argument. Only return
4716 non-zero if the highest-priority instruction could be scheduled.
4717 (choose_ready): Remove last argument from max_issue call.
4719 2001-09-28 David S. Miller <davem@redhat.com>
4721 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4722 ultrasparc and 3 for other multi-issue sparcs.
4724 2001-09-27 David S. Miller <davem@redhat.com>
4726 * config/sparc/sparc.md (cycle_display): New pattern.
4727 * config/sparc/sparc.c (sparc_cycle_display): New.
4728 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4730 2001-09-25 David S. Miller <davem@redhat.com>
4732 Convert all of Sparc scheduling to DFA
4733 * config/sparc/sparc.md: Kill all define_function_unit
4734 directives and replace with DFA equivalent.
4735 * config/sparc/sparc.c (ultrasparc_adjust_cost,
4736 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4737 ultra_fpmode_conflict_exists, ultra_find_type,
4738 ultra_build_types_avail, ultra_flush_pipeline,
4739 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4740 ultrasparc_variable_issue, ultrasparc_sched_init,
4741 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4742 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4743 ultra_cur_hist, ultra_cycles_elapsed): Kill.
4744 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4745 ultrasparc_store_bypass_p): New.
4746 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4749 2001-09-24 David S. Miller <davem@redhat.com>
4751 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4752 ready->vec[foo] not ready[foo].
4754 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4756 * doc/md.texi: Correct examples for define_insn_reservations
4759 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4761 * genautomata.c (create_automata): Print message about creation of
4763 (generate): Remove printing meease about creation of
4766 2001-09-05 David S. Miller <davem@redhat.com>
4768 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4769 * config/sparc/linux64.h: Likewise.
4771 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
4773 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4774 schedule_block, sched_init, sched_finish): Add missed calls of
4775 use_dfa_pipeline_interface.
4777 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4780 * sched-vis.c (get_visual_tbl_length): Ditto.
4782 2001-08-27 Richard Henderson <rth@redhat.com>
4784 * genattr.c (main): Emit state_t even when not doing scheduling.
4786 2001-08-27 Richard Henderson <rth@redhat.com>
4788 * genautomata.c (expand_automata): Always create a description.
4790 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4792 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4793 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4794 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4797 * genattr.c (main): New variable num_insn_reservations. Increase
4798 it if there is DEFINE_INSN_RESERVATION. Output automaton based
4799 pipeline hazard recognizer interface.
4801 * genattrtab.h: New file.
4803 * genattrtab.c: Include genattrtab.h.
4804 (attr_printf, check_attr_test, make_internal_attr,
4805 make_numeric_value): Move protypes into genattrtab.h. Define them
4807 (num_dfa_decls): New global variable.
4808 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4809 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4810 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4811 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
4813 * genautomata.c: New file.
4815 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4817 * sched-int.h: (curr_state): Add the external definition for
4818 automaton pipeline interface.
4819 (haifa_insn_data): Add comments for members blockage and units.
4821 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4822 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4823 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4824 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4825 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4826 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4827 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4829 (TARGET_SCHED): Use the new macros.
4831 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
4832 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
4833 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
4834 dfa_bubble): New members in gcc_target.sched.
4836 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
4837 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
4838 (insn_queue): Redefine it as pointer to array.
4839 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
4841 (max_insn_queue_index_macro_value): New variable.
4842 (curr_state, dfa_state_size, ready_try): New varaibles for
4843 automaton interface.
4844 (ready_element, ready_remove, max_issue): New function prototypes
4845 for automaton interface.
4846 (choose_ready): New function prototype.
4847 (insn_unit, blockage_range): Add comments.
4848 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
4849 FUNCTION_UNITS_SIZE == 0.
4850 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
4851 actual_hazard, potential_hazard): Add comments.
4852 (insn_cost): Use cost -1 as undefined value. Remove
4853 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
4855 (ready_element, ready_remove): New functions for automaton
4857 (schedule_insn): Add new code for automaton pipeline interface.
4858 (queue_to_ready): Add new code for automaton pipeline interface.
4859 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
4860 (debug_ready_list): Print newline when the queue is empty.
4861 (max_issue): New function for automaton pipeline interface.
4862 (choose_ready): New function.
4863 (schedule_block): Add new code for automaton pipeline interface.
4864 Print ready list before scheduling each insn.
4865 (sched_init): Add new code for automaton pipeline interface.
4866 Initiate insn cost by -1.
4867 (sched_finish): Free the current automaton state and finalize
4868 automaton pipeline interface.
4870 * sched-rgn.c: Include target.h.
4871 (init_ready_list, new_ready, debug_dependencies): Add new code for
4872 automaton pipeline interface.
4874 * sched-vis.c: Include target.h.
4875 (get_visual_tbl_length): Add code for automaton interface.
4876 (target_units, print_block_visualization): Add comments.
4878 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
4879 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
4880 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
4881 (getruntime.o, genautomata.o): New entries.
4882 (genattrtab.o): Add new dependency file genattrtab.h.
4883 (genattrtab): Add new dependencies. Link it with `libm.a'.
4884 (getruntime.o, hashtab.o): New entries for canadian cross.
4886 * doc/md.texi: Description of automaton based model.
4888 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
4890 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4891 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4892 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4893 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4894 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4895 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4896 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
4898 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
4899 MAX_DFA_ISSUE_RATE): New macro descriptions.
4901 * doc/contrib.texi: Add dfa based scheduler contribution.
4903 * doc/gcc.texi: Add more information about genattrtab.
4905 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4907 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
4908 adjust_address_nv call.
4910 2002-04-29 Janis Johnson <janis187@us.ibm.com>
4912 * doc/install.texi (Testing): Provide additional information, and
4913 a stronger encouragement, for running the testsuites.
4915 2002-04-29 DJ Delorie <dj@redhat.com>
4917 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
4918 given in upper case.
4920 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4922 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
4923 Solaris 2 <widec.h> if missing.
4924 * fixinc/fixincl.x: Regenerate.
4925 * fixinc/tests/base/widec.h: New file.
4927 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
4929 * toplev.c (f_options): Add "profile" switch so that
4930 -fno-profile can be used to disable -p.
4932 2002-04-29 Bernd Schmidt <bernds@redhat.com>
4934 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
4936 * tree.c (build_common_tree_nodes_2): Likewise.
4937 * tree.h (enum tree_index): Likewise.
4938 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
4940 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
4942 (init_mmx_sse_builtins): Initialize SSE2 builtins.
4943 (ix86_expand_builtin): Add support for SSE2 builtins.
4944 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
4945 (VALID_SSE_REG_MODE): Use it.
4946 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
4947 (enum ix86_builtins): Add SSE2 builtins.
4948 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
4949 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
4950 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
4951 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
4952 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
4953 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
4954 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
4955 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
4956 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
4957 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
4958 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
4959 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
4960 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
4961 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
4962 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
4963 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
4964 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
4965 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
4966 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
4967 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
4968 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
4969 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
4970 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
4971 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
4972 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
4973 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
4974 lfence_insn): New patterns.
4975 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
4976 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
4978 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
4980 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
4982 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4984 * doc/contrib.texi (Contributors): Add Paolo Carlini and
4986 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
4987 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
4988 and CPU instead of cpu.
4990 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
4992 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
4994 (lang_independent_options): Add -fif-conversion, -fif-conversion2
4995 (rest_of_compilation): Do if conversion only when asked for.
4996 (parse_options_and_default_flags): Set new variables to 1 for -O1
4997 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
4999 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5001 * i386.c (dbx64_register_map): Fix typo.
5003 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5005 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5006 real_one_half, real_bb_freq_max): New static variables.
5007 (debug_profile_bbauxs): Kill.
5008 (process_note_predictions): Kill unused variable.
5009 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5011 (propagate_freq): Use REAL_ARITHMETICS.
5012 (estimate_bb_frequencies): Likevise; init new static variables.
5013 * Makefile.in (predict.o): Add dependency on real.h
5015 2002-04-28 David S. Miller <davem@redhat.com>
5018 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5019 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
5020 several {reads,writes} instead.
5021 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5024 2002-04-27 David S. Miller <davem@redhat.com>
5027 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5030 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5031 including signal.h and sys/ucontext.h, not needed.
5033 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
5035 * varasm.c (output_constant_def): Correct test for not calling
5036 ENCODE_SECTION_INFO for INTEGER_CST.
5038 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
5040 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5041 keep most cases as function eval_token.
5042 (eval_token): New function.
5043 (_cpp_parse_expr): Read token here for improved diagnostics.
5044 Don't use op_as_text. Detect bad ':' here.
5045 (reduce): Don't detect bad ':' here.
5046 (op_as_text): Remove.
5047 * cpphash.h (_cpp_test_assertion): Change prototype.
5048 * cpplib.c (_cpp_test_assertion): Change prototype.
5050 2002-04-28 Richard Henderson <rth@redhat.com>
5053 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5054 (ggc_mark_rtx_children): New.
5056 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5059 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5060 after call peepholes for UltraSPARC.
5061 (call + jump 64-bit peepholes): Remove.
5063 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5066 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5067 result as temporary value.
5069 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5072 * toplev.c (rest_of_compilation): Only run regrename and copy
5073 propagation if optimizing.
5075 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5077 PR optimization/6475
5078 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5079 register of REGNO_DECL (i).
5080 * Makefile.in (reload1.o): Add $(TREE_H).
5082 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
5084 * cppexp.c (lex): Update to use state.skip_eval.
5085 (struct op): Remove prio and flags members.
5086 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5087 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5088 (LEFT_ASSOC): New macro.
5089 (optab): New table of operator priorities and flags.
5091 (_cpp_parse_expr): Clean up logic. Return bool. Use a
5092 malloc-ed parser stack.
5093 (reduce): New; reduce the operator stack.
5094 (_cpp_expand_op_stack): Expand the operator stack as necessary.
5095 * cpphash.h (struct op): Predeclare.
5096 (struct cpp_reader): New members op_stack, op_limit.
5097 (struct lexer_state): New member skip_eval.
5098 (_cpp_parse_expr): Update.
5099 (_cpp_expand_op_stack): New.
5100 * cpplib.c (do_if): Update.
5101 * cppinit.c (cpp_create_reader): Create op stack.
5102 (cpp_destroy): And destroy it.
5103 * cpplib.h (CPP_LAST_CPP_OP): Correct.
5104 (TTYPE_TABLE): Correct.
5106 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5109 * c-decl.c (duplicate_decls): Call merge_weak.
5110 * c-pragma.c (apply_pragma_weak): Warn about misuse.
5111 * output.h (merge_weak): Prototype merge_weak.
5112 * varasm.c (merge_weak): New function.
5113 (declare_weak): Make sure we don't give an error on VAR_DECLs.
5114 Mark RTL with SYMBOL_REF_WEAK.
5116 2002-04-27 Kurt Garloff <garloff@suse.de>
5118 * tree-inline.c (inlinable_function_p): Improve heuristics
5119 by using a smoother function to cut down allowable inlinable size.
5120 * param.def: Add parameters max-inline-insns-single,
5121 max-inline-slope, min-inline-insns that determine the exact
5122 shape of the above function.
5123 * param.h: Likewise.
5125 2002-04-26 Richard Henderson <rth@redhat.com>
5127 * c-parse.in (malloced_yyss, malloced_yyvs): New.
5128 (yyoverflow): Re-add. Set them.
5129 (free_parser_stacks): New.
5130 * c-common.h: Declare it.
5131 * c-lex.c (c_common_parse_file): Call it.
5133 2002-04-26 Richard Henderson <rth@redhat.com>
5135 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5136 for fallthru search.
5138 2002-04-26 Eric Christopher <echristo@redhat.com>
5140 PR optimization/3700
5141 * config/mips/mips.c (mips_issue_rate): Define. New function.
5142 (TARGET_SCHED_ISSUE_RATE): Use.
5144 2002-04-25 David S. Miller <davem@redhat.com>
5147 * reorg.c (optimize_skip): Do not allow exception causing
5148 instructions to be considered for delay slots.
5149 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5150 (relax_delay_slots): Do not try to consider exception causing
5151 instructions as redundant.
5153 2002-04-26 Richard Henderson <rth@redhat.com>
5156 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5158 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5161 * config/i386/i386.md (untyped_call): Return the value in a float
5162 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5165 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5167 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5168 in unsigned-ness correctly.
5170 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5172 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5173 portable runtime model.
5175 2002-04-26 Richard Henderson <rth@redhat.com>
5177 * c-parse.in (yyoverflow): Revert.
5179 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5180 Richard Henderson <rth@redhat.com>
5182 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5183 result as temporary value.
5185 2002-04-26 Richard Henderson <rth@redhat.com>
5188 * c-common.c (fix_string_type): Split out of ...
5189 (combine_strings): ... here. Take a varray, not a tree list.
5190 (c_expand_builtin_printf): Use fix_string_type.
5191 * c-common.h: Update decls.
5192 * c-parse.in (string): Remove. Update all uses to use STRING
5193 instead, and not call combine_strings.
5196 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5197 (build_asm_stmt): Likewise.
5198 * objc/objc-act.c (my_build_string): Use fix_string_type.
5199 (build_objc_string_object): Build varray for combine_strings.
5201 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5203 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5206 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5208 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5209 (HAVE_NO_R_OPERAND): Remove.
5210 (HAVE_VALUE): Remove.
5211 (op_to_prio): Update.
5212 (UNARY): Don't alter flags.
5213 (_cpp_parse_expr): want_value used to indicate whether
5214 a number or unary operator is expected next. Distinguish
5215 unary and binary +/-.
5216 (op_as_text): Update for unary operators.
5218 2002-04-25 Richard Henderson <rth@redhat.com>
5221 * c-parse.in (yyoverflow): New.
5223 2002-04-25 Richard Henderson <rth@redhat.com>
5226 * c-common.c (shorten_compare): Simplfy conditions leading to
5227 the generation of a warning.
5229 2002-04-25 Richard Henderson <rth@redhat.com>
5232 * expmed.c (extract_bit_field): Fall through to generic code rather
5233 than aborting on subreg special case.
5235 2002-04-25 David S. Miller <davem@redhat.com>
5237 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5238 for DECL being NULL.
5240 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5242 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5244 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5246 * c-decl.c (grokdeclarator): Remove outdated ??? note
5247 on invalid declaration of flexible array members.
5249 2002-04-25 Richard Henderson <rth@redhat.com>
5251 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5253 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5255 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5256 needed by the compiler, even if they are used as global regs.
5258 2002-04-25 Matt Hiller <hiller@redhat.com>
5260 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5262 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5263 of the corresponding functions.
5264 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5267 2002-04-25 Matt Hiller <hiller@redhat.com>
5269 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5271 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5272 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5273 registers, adjust comment accordingly.
5274 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5275 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5276 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5277 for coprocessor registers.
5278 (ADDITIONAL_REGISTER_NAMES): Include
5279 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5281 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5282 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5283 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5284 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5285 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5287 (mips_char_to_class): Adjust comment to include coprocessor
5290 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5292 (mips_reg_names, mips_regno_to_class): Include coprocessor
5294 (mips_sw_reg_names): Ditto, make non-static.
5295 (mips_move_1word): Handle moves to and from coprocessor registers.
5296 (mips_move_2words): Handle moves to and from coprocessor
5298 (mips_class_max_nregs, mips_register_move_cost): Handle
5299 coprocessor register classes.
5300 (override_options): Initialize mips_char_to_class and
5301 mips_hard_regno_mode_ok properly for coprocessor registers.
5303 * config/mips/mips.md (movdi_internal, movdi_internal2,
5304 movsi_internal1, movsi_internal2): Add constraint-sets for
5305 coprocessor registers.
5306 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5307 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5309 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5310 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5312 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5313 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5315 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5316 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5319 * doc/tm.texi: Document feature.
5321 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5323 * integrate.c (function_attribute_inlinable_p): Simplify.
5324 Check the table pointer is not NULL.
5326 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5328 * doc/c-tree.texi: Fix typo in introduction.
5330 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5332 * c-common.h (c_common_parse_file): Update.
5333 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5334 * c-lex.c (YYDEBUG): Get from c-lex.h.
5335 (c_common_parse_file): Update.
5336 * c-lex.h (YYDEBUG, yydebug): New.
5337 * c-parse.in (YYDEBUG): Get from c-lex.h.
5338 (c_set_yydebug): Remove.
5339 * c-tree.h (c_set_yydebug): Remove.
5340 * langhooks-def.h (lhd_do_nothing_i): New.
5341 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5342 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5343 * langhooks.c (lhd_do_nothing_i): New.
5344 (lhd_set_yydebug): Remove.
5345 * langhooks.h (struct lang_hooks): Update.
5346 * toplev.c (set_yydebug): New.
5347 (compile_file): Update call to parse_file hook.
5348 (decode_d_option): Update.
5350 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5352 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5354 * loop.c (load_mems): Don't change the interface of called functions.
5356 * calls.c (expand_call): Take current_function_pretend_args_size
5357 into account when setting argblock for sibcalls.
5359 2002-04-24 Matt Hiller <hiller@redhat.com>
5361 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5364 * cpplex.c (skip_line_comment): Process comment one multibyte
5365 character at a time rather than one char at a time, if
5367 (parse_string): Process string one multibyte character at a time
5368 rather than one char at a time, if appropriate.
5369 * c-lex.c (lex_string): Lex and copy multibyte strings
5371 * cpplib.h (cppchar_t): Change to unsigned.
5373 2002-04-24 Richard Henderson <rth@redhat.com>
5376 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5379 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
5381 * sh.c (sh_va_arg): If argument was passed by reference,
5382 dereference the pointer.
5384 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5386 * sh.md (divsi3_i4_media): Use match_operand for input values
5387 rather than hard registers.
5388 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5389 unnecessarily through hard registers. Keep copies of pseudo
5390 registers outside of the libcall sequence.
5392 * sh.md (casesi_shift_media): Add modes.
5394 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5397 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
5399 * attribs.c (c_common_attribute_table): Move table and handlers
5401 (format_attribute_table, lang_attribute_table,
5402 lang_attribute_common): Remove.
5403 (init_attributes): Replace NULL pointers with pointers to the
5405 (handle_packed_attribute, handle_nocommon_attribute,
5406 handle_common_attribute, handle_noreturn_attribute,
5407 handle_noinline_attribute, handle_always_inline_attribute,
5408 handle_used_attribute, handle_unused_attribute,
5409 handle_const_attribute, handle_transparent_union_attribute,
5410 handle_constructor_attribute, handle_destructor_attribute,
5411 handle_mode_attribute, handle_section_attribute,
5412 handle_aligned_attribute, handle_weak_attribute,
5413 handle_alias_attribute, handle_visibility_attribute,
5414 handle_no_instrument_function_attribute, handle_malloc_attribute,
5415 handle_no_limit_stack_attribute, handle_pure_attribute,
5416 handle_deprecated_attribute, handle_vector_size_attribute,
5417 vector_size_helper): Move to c-common.c.
5418 * c-common.c (c_common_attribute_table,
5419 handle_packed_attribute, handle_nocommon_attribute,
5420 handle_common_attribute, handle_noreturn_attribute,
5421 handle_noinline_attribute, handle_always_inline_attribute,
5422 handle_used_attribute, handle_unused_attribute,
5423 handle_const_attribute, handle_transparent_union_attribute,
5424 handle_constructor_attribute, handle_destructor_attribute,
5425 handle_mode_attribute, handle_section_attribute,
5426 handle_aligned_attribute, handle_weak_attribute,
5427 handle_alias_attribute, handle_visibility_attribute,
5428 handle_no_instrument_function_attribute, handle_malloc_attribute,
5429 handle_no_limit_stack_attribute, handle_pure_attribute,
5430 handle_deprecated_attribute, handle_vector_size_attribute,
5431 vector_size_helper): Move from attribs.c.
5432 * c-common.h (c_common_attribute_table,
5433 c_common_format_attribute_table): New.
5434 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5435 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5436 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5437 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5438 (LANG_HOOKS_INITIALIZER): Update.
5439 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5440 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5441 * target.h: Update comment.
5442 * tree.c (default_target_attribute_table): Remove.
5443 * tree.h (default_target_attribute_table, format_attribute_table,
5444 lang_attribute_table, lang_attribute_common): Remove.
5446 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5447 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5449 2002-04-24 Jason Merrill <jason@redhat.com>
5451 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5452 * dwarf2out.c (dwarf_attr_name): Support it.
5453 (gen_array_type_die): Emit it.
5454 (lookup_type_die): No special handling for VECTOR_TYPE.
5455 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5457 2002-04-24 Richard Henderson <rth@redhat.com>
5459 * config/mips/mips.md (movdi_usd): Renumber.
5461 2002-04-24 David S. Miller <davem@redhat.com>
5464 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5465 32-bit Sparc and current_function_returns_struct is true.
5467 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5469 * loop.c (canonicalize_condition): Use gen_int_mode.
5471 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
5473 * config/rs6000/altivec.h: Cleanup file. Add non individual
5495 (vec_vcmpequb): New.
5496 (vec_vcmpequh): New.
5497 (vec_vcmpequw): New.
5498 (vec_vcmpeqfp): New.
5499 (vec_vcmpgefp): New.
5500 (vec_vcmpgtub): New.
5501 (vec_vcmpgtsb): New.
5502 (vec_vcmpgtuh): New.
5503 (vec_vcmpgtsh): New.
5504 (vec_vcmpgtuw): New.
5505 (vec_vcmpgtsw): New.
5506 (vec_vcmpgtfp): New.
5507 (vec_vcmpgefp): New.
5512 (vec_vexptefp): New.
5517 (vec_lde): Add vector float variant.
5522 (vec_vmhaddshs): New.
5544 (vec_vmladduhm): New.
5545 (vec_vmhraddshs): New.
5547 (vec_vmsummbm): New.
5548 (vec_vmsumuhm): New.
5549 (vec_vmsumshm): New.
5550 (vec_vmsumuhs): New.
5551 (vec_vmsumshs): New.
5560 (vec_vnmsubfp): New.
5578 (vec_vrsqrtefp): New.
5589 (vec_vspltisb): New.
5590 (vec_vspltish): New.
5591 (vec_vspltisw): New.
5616 (vec_vsum4ubs): New.
5617 (vec_vsum4sbs): New.
5618 (vec_vsum4shs): New.
5619 (vec_vsum2sws): New.
5630 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
5633 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5634 added literals from substracted literals.
5635 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5636 (fold) [associate]: Preserve MINUS_EXPR if needed.
5638 2002-04-23 Zack Weinberg <zack@codesourcery.com>
5640 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5643 2002-04-23 Tom Tromey <tromey@redhat.com>
5645 * gcc.c: Added --resource. For PR java/6314.
5647 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5649 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5650 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5653 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5655 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5657 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5659 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5661 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5662 (ix86_expand_clrstr): Fix typo.
5663 * loop.c (gen_load_of_final_value): New.
5664 (loop_givs_rescan, strength_reduce, check_dbra_loop):
5667 2002-04-23 Roger Sayle <roger@eyesopen.com>
5669 * builtins.c (builtin_memset_gen_str): New function.
5670 (expand_builtin_memset): Optimize the case of constant length, but
5673 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
5675 * config/rs6000/altivec.h (vec_step): Remove extraneous
5677 (vec_ctu): Cast return.
5679 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5682 * function.h: (struct function): Add profile_label_no field.
5683 (current_function_profile_label_no): Define.
5684 * function.c: (profile_label_no): New static var.
5685 (expand_function_start): Increment it, and copy to
5686 current_function_profile_label_no.
5687 * output.h (profile_label_no): Delete.
5688 * final.c (profile_label_no): Delete.
5689 (profile_function): Use current_function_profile_label_no.
5690 (final_end_function): Don't increment profile_label_no here.
5691 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5692 profile_label_no with current_function_profile_label_no.
5693 * config/pa/pa.c (current_function_number): Delete.
5694 (pa_output_function_prologue): Don't output profile label here.
5695 (hppa_profile_hook): Use label_no param rather than
5696 current_function_number.
5697 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5698 * config/pa/pa.h: .. here.
5699 (FUNCTION_PROFILER): Output profile label here.
5701 2002-04-22 Eric Christopher <echristo@redhat.com>
5703 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5704 patch of 2002-04-09 due to binutils issues.
5705 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5707 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5709 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5710 constraint to 'o' for m=r and r=m alternatives.
5711 ("*movv8hi_internal1"): Same.
5712 ("*movv16qi_internal1"): Same.
5713 ("*movv4sf_internal1"): Same.
5715 2002-04-22 Janis Johnson <janis187@us.ibm.com>
5717 * rtl.h (RTX_FLAG): New macro.
5718 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5719 * final.c (alter_subreg): Use macro to access rtx flag.
5720 * integrate.c (copy_rtx_and_substitute): Use new access macro.
5721 * print-rtl.c (print_rtx): Use new access macro.
5723 * cse.c (insert): Check rtx code before accessing flag.
5725 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5726 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5727 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5728 convert_const_symbol_ref, make_canonical, make_alternative_compare,
5729 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5730 simplify_test_exp, optimize_attrs, simplify_by_exploding,
5731 find_and_mark_used_attributes, unmark_used_attributes,
5732 add_values_to_cover, simplify_with_current_value,
5733 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5734 copy_rtx_unchanging, main): Use new access macros.
5736 2002-04-22 Tom Rix <trix@redhat.com>
5738 * expmed.c (init_expmed): Generate shifted constant once.
5740 2002-04-22 Zack Weinberg <zack@codesourcery.com>
5742 * c-lex.c (lex_charconst): Call convert to get constant in
5743 proper type; don't just smash the type field.
5746 * config.gcc: Add list of obsolete configurations. Disallow
5747 building these without --enable-obsolete.
5748 * doc/install.texi: Document --enable-obsolete and obsoletion
5749 policy. Mention obsoletion of individual targets in
5752 2002-04-22 Richard Henderson <rth@redhat.com>
5754 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5756 2002-04-22 Mark Mitchell <mark@codesourcery.com>
5759 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5760 (walk_fixup_memory_subreg): Likewise.
5761 (fixup_var_refs_insn): Adjust accordingly.
5762 (fixup_var_refs_1): Likewise.
5764 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
5766 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5767 LIBPATH_ARCH64_SPEC): Define.
5768 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5769 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5770 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5771 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5773 2002-04-22 Joel Sherrill <joel@OARcorp.com>
5775 * gthr-rtems.h: Correct prototypes to remove warnings.
5777 2002-04-22 Richard Henderson <rth@redhat.com>
5780 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5782 * gcse.c (free_insn_expr_list_list): New.
5783 (clear_modify_mem_tables): Use it. Fix bit set usage.
5784 (canon_list_insert): Use EXPR_LISTs for expressions.
5785 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5787 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
5789 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
5790 file change and include code to _cpp_pop_buffer.
5791 * cpphash.h (struct pending_option): Predeclare.
5792 (struct cpp_reader): New member next_include_file.
5793 (_cpp_pop_file_buffer): Update.
5794 (_cpp_push_next_buffer): Update, rename.
5795 * cppinit.c (cpp_destroy): Free include chain and pending here.
5796 (cpp_finish_options): Simplify.
5797 (_cpp_push_next_buffer): Rename and clean up.
5798 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5800 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5802 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5804 * config/rs6000/altivec.h (vec_xor): Add variant for both args
5805 being vector signed int.
5807 (vec_xor): Add variant for both args being vector signed char.
5808 Remove redundant variant.
5811 2002-04-21 David S. Miller <davem@redhat.com>
5813 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5814 compare mode in output RTL.
5816 2002-04-22 David Edelsohn <edelsohn@gnu.org>
5818 * config/rs6000/rs6000.c (rs6000_override_options): Correct
5819 style and formatting of previous patch.
5821 2002-04-22 Alan Modra <amodra@bigpond.net.au>
5823 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5824 flag_pic for ABI_AIX.
5826 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5828 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5829 * cppfiles.c (read_include_file): Similarly.
5830 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5831 uxstrdup ustrchr, ufputs): Similarly.
5832 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
5833 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
5834 cpp_ideq, parse_identifier, parse_number): Similarly.
5835 * cpplib.c (struct directive, dequote_string, D, run_directive,
5836 cpp_push_buffer): Similarly.
5837 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
5838 _cpp_create_definition, check_trad_stringification,
5839 cpp_macro_definition): Similarly.
5841 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5843 * cppmacro.c (funlike_invocation_p): Don't step back
5846 2002-04-21 David Edelsohn <edelsohn@gnu.org>
5848 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
5851 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
5853 * doc/invoke.texi: Remove Chill references.
5854 * doc/gcc.texi: Update last modified date.
5856 2002-04-20 Kazu Hirata <kazu@hxi.com>
5858 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
5859 push and pop. Replace add.l with add.w.
5861 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5863 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
5864 multiply instructions for H8/300H case.
5866 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5868 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
5869 Bum three instructions from each routine.
5871 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
5873 * Makefile.in: Update.
5874 * decl.c (push_c_function_context, pop_c_function_context,
5875 mark_c_function_context): Rename for consistency.
5876 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
5877 * c-tree.h (push_c_function_context, pop_c_function_context,
5878 mark_c_function_context): Rename for consistency.
5879 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5880 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5881 * function.c (init_lang_status, save_lang_status,
5882 restore_lang_status, mark_lang_status, free_lang_status):
5883 Move to langhooks.h.
5884 (push_function_context_to, pop_function_context_from,
5885 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
5887 * function.h (init_lang_status, save_lang_status,
5888 restore_lang_status, mark_lang_status, free_lang_status):
5889 Move to langhooks.h.
5890 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
5891 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
5892 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
5893 LANG_HOOKS_FUNCTION_INITIALIZER): New.
5894 (LANG_HOOKS_INITIALIZER): Update.
5895 (lhd_do_nothing_f): New.
5896 * langhooks.h (struct lang_hooks_for_functions): New.
5897 (struct lang_hooks): New hooks.
5898 * langhooks.c (lhd_do_nothing_f): New.
5900 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5901 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5903 2002-04-19 David S. Miller <davem@redhat.com>
5905 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
5906 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
5908 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5910 PR optimization/3756
5911 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
5912 x = ((int) y < 0) ? cst1 : cst2.
5914 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5917 * function.c: Reapply patch for c/6358.
5918 (expand_function_end): Copy decl_rtl's mode, not
5919 current_function_return_rtx mode.
5921 2002-04-19 Joel Sherrill <joel@OARcorp.com>
5923 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
5926 2002-04-19 Tom Tromey <tromey@redhat.com>
5928 * doc/install.texi (Specific): Update status of Solaris 2.8.
5931 2002-04-19 Andreas Schwab <schwab@suse.de>
5933 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
5934 (PUT_REAL): Restore old definition.
5936 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5937 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5939 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
5940 binutils 2.11.2 and higher generate smaller binaries than Sun's
5943 2002-04-19 Mark Mitchell <mark@codesourcery.com>
5946 * toplev.c (rest_of_compilation): Do not defer functions for which
5947 TREE_SYMBOL_REFERENCED has already been set.
5949 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
5951 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
5954 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
5956 * builtins.c: Include langhooks.h.
5957 (lang_type_promotes_to): Remove.
5958 (expand_builtin_va_arg): Use new hook.
5959 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
5960 (simple_type_promotes_to): Move to c-typeck.c.
5961 * c-common.h (simple_type_promotes_to): Remove.
5962 * c-decl.c (duplicate_decls, grokdeclarator): Update.
5963 * c-format.c: Include langhooks.h.
5964 (check_format_types): Update.
5965 * c-tree.h (c_type_promotes_to): New.
5966 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
5967 (type_lists_compatible_p): Update.
5968 * langhooks-def.h (lhd_type_promotes_to): New.
5969 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
5970 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5971 * langhooks.c (lhd_type_promotes_to): New.
5972 * langhooks.h (struct lang_hooks_for_types): New hook.
5973 * tree.h (lang_type_promotes_to): Remove.
5975 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
5977 2002-04-18 Richard Henderson <rth@redhat.com>
5979 * function.c: Revert patch for c/6358.
5981 2002-04-18 Richard Henderson <rth@redhat.com>
5983 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
5984 blocks. Handle multiple references to the TRAP block. Handle
5985 non-adjacent THEN and OTHER blocks.
5987 2002-04-18 Richard Henderson <rth@redhat.com>
5989 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
5990 crash with no type for by-mode libcalls.
5992 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
5994 2002-04-18 Bob Wilson <bob.wilson@acm.org>
5996 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
5997 __xtensa_nonlocal_goto): Use a syscall instructions to flush
5998 the register windows.
6000 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6002 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6003 appropriate. Document need for extended precision even when
6004 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
6005 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
6006 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
6007 instead of relying on later syntax error when REAL_WIDTH > 5.
6008 * real.c: Define NE based only on whether or not we have a
6009 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6010 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
6011 define GET_REAL and PUT_REAL as simple memcpy operations; no
6012 need to byteswap or round.
6013 Use #error instead of #ifdef-ing out the entire file, for
6014 prompt error detection.
6016 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6018 2002-04-18 David S. Miller <davem@redhat.com>
6020 * config/sparc/sparc.h (BRANCH_COST): Define.
6022 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6025 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
6027 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6028 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6029 propagate_block calls after relaxation loop using new variable
6030 stabilized_prop_flags.
6032 2002-04-18 Richard Henderson <rth@redhat.com>
6034 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6035 (ia64_va_arg): Expect variable sized types by reference.
6036 * config/ia64/ia64-protos.h: Update.
6037 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6038 ia64_function_arg_pass_by_reference.
6040 2002-04-18 Richard Henderson <rth@redhat.com>
6042 * ifcvt.c: Include except.h.
6043 (block_has_only_trap): Break out from find_cond_trap.
6044 (find_cond_trap): Use it. Always delete the trap block.
6045 (merge_if_block): Allow then block null. Be less simplistic about
6046 what insns can end a block.
6047 * Makefile.in (ifcvt.o): Depend on except.h.
6049 * config/ia64/ia64.md (trap, conditional_trap): New.
6051 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6054 * function.c (assign_parms): Assign hard current_function_return_rtx
6056 (expand_function_end): ...not here.
6058 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
6060 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6061 * c-tree.h (c_incomplete_type_error): New.
6062 * c-typeck.c (require_complete_type, build_component_ref): Update.
6063 (incomplete_type_error): Rename.
6064 * langhooks-def.h (lhd_incomplete_type_error): New.
6065 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6066 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6067 * langhooks.c (lhd_incomplete_type_error): New.
6068 * langhooks.h (struct lang_hooks_for_types): New hook.
6069 * tree.c (size_in_bytes): Use new hook.
6070 * tree.h (incomplete_type_error): Remove.
6072 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6074 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6076 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6077 TARGET_FLOAT_FORMAT blocks.
6079 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6081 * doc/install.texi (Downloading the source): Do not mention Chill
6082 any longer, but mention Ada.
6083 (Configuration): Do not mention Chill any longer.
6085 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
6087 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6089 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
6091 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6094 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6096 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6097 instead of unsigned_type.
6099 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6101 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6102 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6105 2002-04-18 Bernd Schmidt <bernds@redhat.com>
6107 * attribs.c (vector_type_node_list): New static variable.
6108 (handle_vector_size_attribute): Use it to avoid generating a
6109 new type node each time we are called.
6111 * combine.c (subst): Avoid trying to make a vector mode subreg of
6112 an integer constant.
6113 (gen_lowpart_for_combine): Likewise.
6115 2002-04-18 Roger Sayle <roger@eyesopen.com>
6116 Jakub Jelinek <jakub@redhat.com>
6118 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6119 for integer constant c (if x has unsigned type or sign bit is not
6120 set in c). This folds the zero/sign extension into the bit-wise and
6123 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6126 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6129 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
6131 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6133 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
6135 * gcc.c (read_specs): Detect and fail if an attempt is made to
6136 rename a spec string to an already existing string.
6138 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6140 * config/s390/s390.c (legitimize_pic_address): Do not generate
6141 illegal address constant without CONST.
6143 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6145 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6146 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6148 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6150 PR optimization/6305
6151 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6152 to make sure previous reloads are taken into account. Generate
6153 better code if one operand is an in-range immediate constant.
6155 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6157 * doc/install.texi (Building): libgcj requires GNU make.
6159 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6162 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6163 even if hard quad and register is not floating.
6164 (movtf reg<-mem split): Disallow splitting if hard quad and
6165 register is floating.
6166 (movtf mem<-reg split): Likewise.
6167 * config/sparc/sparc.c (fp_register_operand): New predicate.
6168 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6170 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6172 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6173 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6174 (unprotoize.o): Ditto. Build from protoize.c. Define
6175 UNPROTOIZE on command line.
6176 * protoize.c: Include cppdefault.h. Delete include_defaults.
6177 (in_system_include_dir): Use cpp_include_defaults (defined in
6179 * unprotoize.c: Delete file.
6181 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6183 * config/rs6000/altivec.h (vec_ld): Add array variants.
6187 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6188 Aldy Hernandez <aldyh@redhat.com>
6190 * config/rs6000/altivec.h: Define __ALTIVEC__.
6197 Add parentheses to all macro arguments.
6199 2002-04-16 Richard Henderson <rth@redhat.com>
6202 * except.c (remove_eh_handler): Insert inner regions at beginning
6203 of sibling chain. Refactor expressions.
6205 2002-04-16 Richard Henderson <rth@redhat.com>
6207 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6208 * config/sparc/sol2-gas-bi.h: New file.
6209 * config.gcc (sparc*-solaris): Add it as needed.
6210 * configure.in (AS_SPARC64_FLAG): Remove check.
6211 * config.in, configure: Regenerate.
6213 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6215 2002-04-16 Richard Henderson <rth@redhat.com>
6217 * config/mips/mips.c (override_options): Don't override N32 for
6221 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6222 (HILO_delay): Set can_delay false.
6224 2002-04-16 Dale Johannesen <dalej@apple.com>
6226 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6227 instruction addresses.
6228 (rs6000_output_function_epilogue): Likewise.
6230 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6232 * c-parse.in (poplevel, compstmt_start,
6233 compstmt_primary_start): Add ending ';', in accordance
6236 2002-04-16 Richard Henderson <rth@redhat.com>
6238 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6239 Adjust tm_file order to get TARGET_DEFAULT set properly.
6240 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6241 * doc/install.texi (sparc-solaris): Update.
6243 2002-04-16 Dale Johannesen <dalej@apple.com>
6245 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6246 comparison operands do not match each other or if modes of
6247 conditions do not match result.
6249 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6252 * config/s390/s390.md (mulsidi3): Set both subregs of the
6255 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6257 * config/rs6000/altivec.h (vec_addc): Type check.
6259 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6262 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6264 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6266 2002-04-15 Richard Henderson <rth@redhat.com>
6268 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6269 call_really_used_regs too.
6271 2002-04-15 Richard Henderson <rth@redhat.com>
6273 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6275 2002-04-15 David S. Miller <davem@redhat.com>
6277 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6280 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6283 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6284 CONST_VECTOR is { 0, ... 0 }.
6286 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6288 * doc/install.texi (Installing GCC: Configuration): Clarify
6289 the only supported ways to configure gcc.
6291 2002-04-15 Roland McGrath <roland@frob.com>
6293 * config.gcc (alpha*-*-gnu*): New target configuration.
6294 * config/alpha/gnu.h: New file for it.
6295 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6297 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6299 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6300 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6301 * tree.h (expand_start_stmt_expr): Update prototype.
6302 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6303 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6304 on the STMT_EXPR created for the inline function.
6306 2002-04-15 Richard Henderson <rth@redhat.com>
6308 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6309 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6310 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6311 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6312 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6313 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6314 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6315 Define __gnu_linux__, not gnu_linux.
6316 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6318 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6320 Remove Chill front end.
6321 * gcc.c (default_compilers): Remove Chill entries.
6322 * ch: Remove directory.
6323 * doc/frontends.texi: Remove information about Chill.
6324 * doc/sourcebuild.texi: Likewise.
6325 * doc/standards.texi: Likewise.
6327 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6329 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6330 (LONGLONG_STANDALONE): Define.
6332 2002-04-15 David S. Miller <davem@redhat.com>
6334 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6335 Call emit_library_call with LCT_NORMAL.
6336 (sparc_initialize_trampoline): Use LCT_foo instead of
6337 magic constant in emit_library_call invocations.
6338 (sparc64_initialize_trampoline): Likewise.
6339 (sparc_profile_hook): Likewise.
6340 * config/sparc/sparc.md: Likewise.
6342 * config/sparc/sparc.c (sparc_extra_constraint_check):
6343 Fix type of argument 'c'.
6344 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6347 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6349 * diagnostic.h (output_buffer_state): Redefine.
6350 (output_format_decoder): New macro.
6351 (output_prefixing_rule): Likewise.
6352 (output_line_cutoff): Likewise.
6353 (diagnostic_format_decoder): Adjust.
6354 (diagnostic_prefixing_rule): Likewise.
6355 (diagnostic_line_cutoff): Likewise.
6356 (diagnostic_state): Likewise.
6357 (diagnostic_kind_count): Likewise.
6358 (diagnostic_buffer): Now a macro.
6360 * diagnostic.c (diagnostic_buffer): Remove definition.
6361 (output_is_line_wrapping): Adjust.
6362 (set_real_maximum_length): Likewise.
6363 (output_set_maximum_length): Likewise.
6364 (init_output_buffer): Likewise.
6365 (lhd_print_error_function): Likewise.
6366 (output_do_verbatim): Likewise.
6368 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
6370 * cpperror.c (print_location): Don't print include chain
6372 (cpp_begin_message): Update to use DL_ macros.
6373 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6374 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6375 cpp_notice, cpp_notice_from_errno): Remove.
6376 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6379 * cppexp.c (CPP_ICE): Remove.
6380 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6381 lex, integer_overflow, _cpp_parse_expr): Update.
6382 * cppfiles.c (read_include_file, find_include_file,
6383 handle_missing_header, _cpp_read_file, remap_filename): Update.
6384 * cpphash.h (enum error_type): Remove.
6385 (_cpp_begin_message): Update.
6386 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6387 cpp_handle_option, cpp_post_options): Update.
6388 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6389 skip_whitespace, parse_identifier, parse_slow, parse_string,
6390 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6391 cpp_interpret_charconst): Update.
6392 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6393 lex_macro_node, do_undef, glue_header_name, parse_include,
6394 do_include_common, read_flag, do_line, do_linemarker, do_ident,
6395 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6396 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6397 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6398 _cpp_pop_buffer, do_diagnostic): Update.
6399 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6400 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6401 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6402 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6403 cpp_notice, cpp_notice_from_errno): Remove.
6404 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6407 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6408 collect_args, enter_macro_context, save_parameter, parse_params,
6409 _cpp_create_definition, check_trad_stringification,
6410 cpp_macro_definition): Update.
6411 * cppmain.c (cpp_preprocess_file): Update.
6412 * fix-header.c (read_scan_file): Update.
6414 2002-04-14 Andreas Schwab <schwab@suse.de>
6416 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6418 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6420 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6422 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6424 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6427 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
6429 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6431 2002-04-13 Joel Sherrill <joel@OARcorp.com>
6433 * config/sparc/t-elf: Enable v8 multilibs. Impacts
6434 sparc-elf and sparc-rtems targets.
6436 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6438 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6439 defined, and __gnu_hurd__ wherever __GNU__ is defined.
6440 * arm/linux-elf.h: Likewise.
6441 * cris/aout.h: Likewise.
6442 * cris/linux.h: Likewise.
6443 * i370/linux.h: Likewise.
6444 * i386/gnu.h: Likewise.
6445 * i386/linux-aout.h: Likewise.
6446 * i386/linux-oldld.h: Likewise.
6447 * i386/linux.h: Likewise.
6448 * i386/linux64.h: Likewise.
6449 * ia64/linux.h: Likewise.
6450 * m68k/linux-aout.h: Likewise.
6451 * m68k/linux.h: Likewise.
6452 * mips/linux.h: Likewise.
6453 * pa/pa-linux.h: Likewise.
6454 * pj/linux.h: Likewise.
6455 * rs6000/sysv4.h: Likewise.
6456 * s390/linux.h: Likewise.
6457 * sh/linux.h: Likewise.
6458 * sparc/linux-aout.h: Likewise.
6459 * sparc/linux.h: Likewise.
6460 * sparc/linux64.h: Likewise.
6461 * xtensa/linux.h: Likewise.
6463 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
6465 * stmt.c (check_unique_operand_names): Expect operand names to
6466 be strings rather than identifiers. Use simple_cst_equal to
6468 (resolve_operand_name_1): Make same identifier to string change here.
6469 * c-parse.in (asm_operand): Convert a named operand into a string.
6470 * cp/parse.y (asm_operand): Likewise.
6472 2002-04-13 Andreas Schwab <schwab@suse.de>
6474 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6476 2002-04-12 Mark Mitchell <mark@codesourcery.com>
6478 Revert these changes:
6480 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6483 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6485 2002-04-12 Richard Henderson <rth@redhat.com>
6487 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6488 (sparc*-*-solaris): Clean up header files.
6489 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6490 and plan on generating 64-bit code.
6491 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6492 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6493 * config/sparc/sol2-sld-64.h: Rename ...
6494 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
6495 for AS_SPARC64_FLAG not defined.
6496 * config/sparc/sol2-gld-bi.h: New.
6497 * config/sparc/sol2-sld.h: Remove.
6498 * config/sparc/sol26-sld.h: New.
6499 * config/sparc/sol2.h: Tidy comments.
6500 * doc/install.texi: Document sparc-solaris configury changes.
6502 2002-04-12 Richard Henderson <rth@redhat.com>
6504 * recog.c (offsettable_address_p): Match the logic in adjust_address.
6506 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6507 in 64-bit mode only. Use only for 32-bit or MEDLOW.
6509 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6511 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6513 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
6515 * pa.c (pa_can_combine_p): Call extract_insn before calling
6518 2002-04-12 Douglas B Rupp <rupp@gnat.com>
6520 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6521 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6522 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6523 (CPP_PREDEFINES): Handle __declspec.
6524 * config/i386/t-interix (USER_H): Remove.
6526 2002-04-12 DJ Delorie <dj@redhat.com>
6528 * integrate.c (compare_blocks): Make comparisons safe for when
6529 sizeof(int) < sizeof(char *).
6530 (find_block): Likewise.
6532 2002-04-12 Jan Hubicka <jh@suse.cz>
6533 David Edelsohn <edelsohn@gnu.org>
6535 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6537 (symbol_ref_operand): New.
6538 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6539 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6541 2002-04-12 Andreas Schwab <schwab@suse.de>
6543 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6544 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6545 overrides the definition in config/svr4.h.
6547 2002-04-12 Eric Norum <eric.norum@usask.ca>
6549 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6550 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6551 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6552 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6553 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6554 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6555 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6556 definitions to config/rtems.h and make the targets more similar.
6558 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6560 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6561 POINTERS_EXTEND_UNSIGNED.
6562 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6563 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6565 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6568 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
6570 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6571 depends on TARGET_SHMEDIA, not TARGET_SH5.
6573 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
6575 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6576 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6578 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6580 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6583 2002-04-12 Andreas Schwab <schwab@suse.de>
6585 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6587 2002-04-12 Richard Henderson <rth@redhat.com>
6590 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6592 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6593 modes spanning multiple hard regs.
6595 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6597 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6599 * pa.c (pa_output_function_prologue): Don't accumulate the total
6600 number of code bytes when using TARGET_64BIT, or gas, SOM and not
6601 the portable runtime.
6602 (output_deferred_plabels): Handle 64bit plabels.
6603 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6604 generating pic code using the GAS assembler for object formats that
6605 are not SOM (ie., ELF32 and ELF64).
6606 (output_millicode_call): Check attribute type if attribute length is 28.
6607 Likewise use $PIC_pcrel$0. Only call get_attr_length and
6608 dbr_sequence_length once.
6609 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6610 dbr_sequence_length once.
6611 * pa.h (TARGET_SOM): Define if not defined.
6612 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6613 with GAS and not SOM.
6614 (jump, call_internal_reg, call_value_internal_reg): Likewise.
6615 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
6617 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6619 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6620 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6621 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6622 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6623 elfos.h and dbxelf.h values are fine now.
6624 * config/i386/freebsd.h, config/alpha/freebsd.h
6625 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6627 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6629 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6630 or set Acpu or Amachine. Reformat.
6631 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6633 (LINK_SPEC): Do not need to undef.
6634 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6635 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6636 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6638 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6639 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6640 (LINK_SPEC): Do not need to undef.
6641 (DONT_USE_BUILTIN_SETJMP): Do not define.
6642 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6643 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
6644 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6645 Remove trailing spaces.
6646 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6647 __ELF__, or set Acpu or Amachine. Reformat.
6648 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6651 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6653 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6654 all other *-*-freebsd* targets.
6656 2002-04-11 Richard Henderson <rth@redhat.com>
6658 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6660 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6662 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6663 Include {cpu}/{cpu}.h thru tm_file.
6664 (alpha*-*-linux*ecoff): Remove target.
6665 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6666 (LINK_SPEC): Remove, is not OS independent.
6667 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6668 (LINK_SPEC): Do not need to #undef any longer.
6669 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6671 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6673 (LINK_SPEC): Moved here from alpha/elf.h.
6674 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6676 * config/alpha/linux-ecoff.h: Remove.
6677 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6678 (CPP_SPEC): Define _POSIX_SOURCE as needed.
6679 (CPP_SUBTARGET_SPEC): Do not define.
6680 (LINK_SPEC): Do not need to #undef any longer.
6681 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6682 * config/alpha/vms.h: Likewise.
6684 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6686 * doc/extend.texi: Remove old claim that typedefs cannot have
6687 an alignment attribute.
6689 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6691 PR optimization/6177
6692 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6693 bitpos is 0 and bitsize CONCAT size.
6695 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6698 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6700 2002-04-10 David O'Brien <obrien@FreeBSD.org>
6702 * config/alpha/freebsd.h: Minor reformatting.
6703 (CPP_SPEC): Define ELF and add cpp_subtarget.
6704 (ASM_SPEC): No longer needed.
6706 2002-04-11 Richard Henderson <rth@redhat.com>
6708 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6709 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
6710 (dimode mem/zero splitter): New.
6712 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
6714 * config/cris/cris.c (cris_override_options): Tweak error message
6715 for PIC not implemented.
6717 * config/cris/cris.h: Tweak comments related to parameter-passing.
6719 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6721 2002-04-10 Richard Henderson <rth@redhat.com>
6723 * except.c (add_ehl_entry): Allow duplicates after landing pad
6726 2002-04-10 David Edelsohn <edelsohn@gnu.org>
6728 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6730 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
6732 * c-decl.c (c_init_decl_processing): Move generation of
6733 decls for g77_integer_type_node and friends from here ...
6734 * c-common.c (c_common_nodes_and_builtins): ... to here.
6736 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
6738 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6739 is only used as frame pointer when frame_pointer_needed is true.
6741 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
6744 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6745 for the fact that the pool entry uses two words.
6746 (movdf_hard_insn): Similarly. Also, ADR instruction can span
6748 (movdf_soft_insn): Similarly.
6749 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6750 for the fact that the pool entry uses three words.
6752 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
6754 * config/mips/mips.c (mips_va_arg): When using the struct version
6755 of the EABI va_list, allow arguments in the register save area to
6756 take up less room than a stack argument.
6758 2002-04-10 Richard Henderson <rth@redhat.com>
6760 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6761 if EXPAND_INITIALIZER.
6763 2002-04-09 Richard Henderson <rth@redhat.com>
6765 * config/alpha/alpha.md (movdi_er_maybe_g): New.
6766 * config/alpha/alpha.c (alpha_expand_mov): Use it.
6768 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6770 PR optimization/6233
6771 * rtlanal.c (pure_call_p): New function.
6772 * rtl.h (pure_call_p): Declare.
6773 * loop.c (prescan_loop): Use it to set has_nonconst_call.
6774 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6776 2002-04-09 Eric Christopher <echristo@redhat.com>
6778 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6779 information to .comm directive.
6781 2002-04-09 Richard Henderson <rth@redhat.com>
6784 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6786 2002-04-09 Richard Henderson <rth@redhat.com>
6788 * basic-block.h (flow_delete_block_noexpunge): Declare.
6789 (expunge_block_nocompact): Declare.
6790 * cfg.c (expunge_block_nocompact): Split out from ...
6791 (expunge_block): ... here.
6792 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6793 (flow_delete_block_noexpunge): Split out from ...
6794 (flow_delete_block): ... here.
6795 * cfgcleanup.c (delete_unreachable_blocks): Compact while
6796 removing dead blocks.
6797 * except.c (exception_handler_labels): Remove.
6798 (exception_handler_label_map): New.
6799 (struct eh_region): Add aka member.
6800 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6801 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6802 (for_each_eh_label, for_each_eh_label_1): New.
6803 (init_eh): Register exception_handler_label_map.
6804 (free_eh_status): Use free_region.
6805 (find_exception_handler_labels): Use the map, not the list.
6806 (remove_exception_handler_label): Likewise.
6807 (maybe_remove_eh_handler): Likewise.
6808 (remove_eh_handler): Use the region aka bitmap.
6809 * except.h (exception_handler_labels): Remove.
6810 (for_each_eh_label): Declare.
6811 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6812 * loop.c (invalidate_loops_containing_label): New.
6813 (find_and_verify_loops): Use it. Use for_each_eh_label.
6814 * sched-rgn.c (is_cfg_nonregular): Use
6815 current_function_has_exception_handlers.
6817 2002-04-09 Richard Henderson <rth@redhat.com>
6819 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6820 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6821 Do not return changed status.
6822 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6823 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6824 New functions that do return changed status.
6825 * sbitmap.h: Update decls.
6826 * gcse.c, lcm.c: Use _cg functions as needed.
6828 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6830 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6831 (sh64-*-elf*, sh-*-rtemself*): Likewise.
6832 * config/sh/embed_bb.c: New file.
6833 * config/sh/embed-elf.h: New file.
6834 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
6835 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
6836 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6838 (SUBTARGET_CPP_PTR_SPEC): Don't define.
6839 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
6840 Add subtarget_asm_endian_spec.
6841 (ASM_SPEC): Use subtarget_asm_endian_spec.
6842 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
6843 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
6844 (WCHAR_UNSIGNED): Define.
6845 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
6846 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6847 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
6849 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
6850 (sh_adjust_cost): Likewise.
6851 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6853 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
6854 (WCHAR_TYPE_SIZE): Likewise.
6855 (ASM_SPEC): Use subtarget_asm_endian_spec.
6856 (SH_ELF_WCHAR_TYPE): #undef/ #define.
6857 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
6858 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
6859 (MAX_WCHAR_TYPE_SIZE): Don't #define .
6860 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
6861 (USER_LABEL_PREFIX): Don't #undef /#define .
6862 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6863 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
6864 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
6865 (ASM_SPEC): Likewise.
6866 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
6867 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
6868 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
6869 (LIB2FUNCS_EXTRA): Define.
6870 * t-sh64 (LIB2FUNCS_EXTRA): Define.
6871 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
6872 (LIB1ASMFUNCS_CACHE): Define.
6873 (LIB2FUNCS_EXTRA): Redefine empty.
6875 2002-04-08 Richard Henderson <rth@redhat.com>
6877 * reorg.c (get_branch_condition): Use reversed_comparison_code.
6879 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6881 * config/m68hc11/larith.asm (__map_data_section): Fix condition
6882 and optimize for size.
6883 (__do_global_ctors): Fix pointer comparison.
6884 (__do_global_dtors): Likewise.
6886 2002-04-09 David S. Miller <davem@redhat.com>
6888 * config/sparc/sparc.c (sparc_extra_constraint_check): New
6889 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
6890 allow reloading pseudos.
6891 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
6892 * config/sparc/sparc-protos.h: Declare it.
6894 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
6895 unsigned comparison warning.
6896 (output_restore_regs): Mark leaf_function as unused.
6898 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6900 * expr.c (is_aligning_offset): New function.
6901 (expand_expr, case COMPONENT_EXPR): Call it.
6903 2002-04-08 David S. Miller <davem@redhat.com>
6906 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
6908 Make init_priority work on Sparc when using GNU ld.
6909 * config/sparc/linux.h, config/sparc/linux64.h,
6910 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
6911 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
6912 * config/sparc/sol2-gld.h: New file to do the same.
6913 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
6914 sparc/sol2-gld.h to tm_file.
6916 PR optimization/4328
6917 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
6918 * doc/md.texi: Document it.
6919 * config/sparc/sparc.md (movdi_insn_sp64_novis,
6920 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
6921 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
6922 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
6923 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
6925 2002-04-08 Andreas Jaeger <aj@suse.de>
6927 * stmt.c (expand_asm_operands): Revert last patch from Richard
6930 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6932 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
6933 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
6935 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6937 * doc/contrib.texi (Contributors): Add David O'Brien.
6939 2002-04-08 Alan Modra <amodra@bigpond.net.au>
6941 * configure.in (auto-build.h): Use target_alias and build_alias
6942 when running configure.
6943 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
6944 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
6945 * configure: Regenerate.
6947 2002-04-07 David S. Miller <davem@redhat.com>
6949 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
6951 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
6954 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
6955 generating 32-bit pic code.
6957 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
6959 * cppinit.c (cpp_create_reader): Initialize
6960 discard_comments_in_macro_exp.
6961 (COMMAND_LINE_OPTIONS): Add "-CC" option.
6962 (cpp_handle_option): Handle "-CC" option.
6963 * cpplex.c (save_comment): If saving a C++ comment in
6964 a directive, convert it to a C comment.
6965 (_cpp_lex_direct): Pass second comment start character to
6966 save_comment to indicate comment type.
6967 * cpplib.c (_cpp_handle_directive): If processing
6968 a "#define" directive and discard_comments_in_macro_exp
6969 is false, re-enable saving of comments.
6970 (lex_macro_node): If discard_comments_in_macro_exp is false,
6971 discard any comments before the macro identifier.
6972 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
6974 * cppmacro.c (cpp_get_token): If expanding a macro while
6975 processing a directive, discard any comments we might encounter.
6976 (parse_params): If discard_comments_in_macro_exp is false,
6977 ignore comments in the macro parameter list.
6978 * gcc.c (cpp_unique_options): Add "-CC" option.
6979 (option_map): Map "--comments-in-macros" to "-CC".
6980 * doc/cppopts.texi: Document "-CC" option.
6981 * f/lang-specs.h: Add "-CC" option.
6982 * testsuite/gcc.dg/cpp/maccom1.c: New test.
6983 * testsuite/gcc.dg/cpp/maccom2.c: New test.
6984 * testsuite/gcc.dg/cpp/maccom3.c: New test.
6985 * testsuite/gcc.dg/cpp/maccom4.c: New test.
6986 * testsuite/gcc.dg/cpp/maccom5.c: New test.
6987 * testsuite/gcc.dg/cpp/maccom6.c: New test.
6989 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
6992 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
6994 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6997 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7000 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7001 RTX_UNCHANGING_P for the functions arguments when a tail call
7004 2002-04-06 Jason Merrill <jason@redhat.com>
7006 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7007 (parse_options_and_default_flags): Set them appropriately.
7008 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7010 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
7012 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7015 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7018 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7019 types come in by-reference. Fix typo in comment.
7021 2002-04-05 David S. Miller <davem@redhat.com>
7023 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7024 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7025 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7026 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7028 2002-04-05 David S. Miller <davem@redhat.com>
7030 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7031 are not going to emit return instructions, emit at least a nop
7032 for the sake of sane backtraces.
7034 2002-04-05 Richard Henderson <rth@redhat.com>
7036 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7038 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
7040 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7042 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
7044 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7045 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7046 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7048 2002-04-05 Andreas Schwab <schwab@suse.de>
7050 * c-convert.c: Include c-common.h.
7051 * Makefile.in (c-convert.o): Updated.
7053 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7055 * mklibgcc.in: Use separate libgcc.map for each multilib.
7056 * Makefile.in (distclean): Don't remove libgcc.map here.
7058 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7060 * Makefile.in (s-mlib): Handle --disable-multilib by separate
7061 genmultilib invocation.
7063 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
7065 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7066 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
7067 to num_gprs for symmetry.
7068 * config/mips/mips.c: Adjust accordingly.
7070 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
7072 * c-common.c (truthvalue_conversion): Rename, update.
7073 * c-common.h (c_common_truthvalue_conversion): New.
7074 * c-convert.c (convert): Update.
7075 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7076 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7077 * c-typeck.c (build_binary_op, build_unary_op,
7078 build_conditional_expr): Update.
7079 * fold-const.c (constant_boolean_node, fold): Use langhook.
7080 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7081 * langhooks.h (struct lang_hooks): New hook.
7082 * stmt.c (expand_decl_cleanup): Use langhook.
7083 * tree.h (truthvalue_conversion): Remove.
7085 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7087 2002-04-05 Alan Modra <amodra@bigpond.net.au>
7089 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7090 Add rules to make null object file.
7092 2002-04-04 Jim Blandy <jimb@redhat.com>
7094 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7095 macro formal parameter names.
7097 2002-04-04 David S. Miller <davem@redhat.com>
7099 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7101 2002-04-04 Richard Henderson <rth@redhat.com>
7104 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7105 Support copies into and out of memory. Don't accept allows_reg
7106 and allows_mem as gospel.
7108 2002-04-04 Richard Henderson <rth@redhat.com>
7111 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7112 (write_dependence_p): Likewise.
7114 2002-04-04 Richard Henderson <rth@redhat.com>
7116 * predict.c (estimate_bb_frequencies): Do frequency calculation
7117 with a volatile temporary.
7119 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
7121 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7123 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7126 * final.c (final_start_function): Don't bump profile_label_no here...
7127 (final_end_function): ...but here.
7129 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7131 * config/sparc/sparc.md (pic): New attribute.
7132 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7134 (split after do_builtin_setjmp_setup): New.
7136 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7139 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7142 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7144 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7145 UNITS_PER_WORD for zero sized aggregates.
7147 2002-04-03 David S. Miller <davem@redhat.com>
7149 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7150 one-character spec for this, just use %(link_gcc_c_sequence).
7152 2002-04-03 David S. Miller <davem@redhat.com>
7154 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7157 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7159 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7160 (DWARF_FRAME_RETURN_COLUMN): Move.
7161 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7162 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7163 * pa.c (except.h, predict.h): Include.
7165 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7166 (output_ascii): Add cast.
7167 (store_reg_modify): Revise to add frame notes.
7168 (set_reg_plus_d): Likewise.
7169 (compute_frame_size): Include space for eh data registers in frame if
7170 the current function calls eh_return.
7171 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7172 function calls eh_return. Save eh data registers if the current
7173 function calls eh_return. Fix code to add frame notes. Emit
7174 blockage to prevent insns with frame notes being scheduled in the
7175 delay slot of calls.
7176 (hppa_expand_epilogue): Restore eh data registers and do final stack
7177 adjustment if the current function calls eh_return. Don't add frame
7179 (output_call): Revise for change in length of call insn. Don't do
7180 return pointer adjustment for an unconditional jump in the delay slot
7181 of a call when using frame notes.
7182 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7183 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7184 (ARG_POINTER_CFA_OFFSET): Define.
7185 * pa.md (return_external_pic): New pattern.
7186 (prologue): Correct formatting. Use return_external_pic if current
7187 function calls eh_return.
7188 (call_internal_symref, call_value_internal_symref,
7189 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7190 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7192 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7194 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7195 list of targets to check using "nop" insn.
7196 * configure: Rebuilt.
7198 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7200 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7202 2002-04-03 David S. Miller <davem@redhat.com>
7204 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7205 library sequence passed to the linker.
7206 (LINK_COMMAND_SPEC): Use it.
7207 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7208 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7209 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7211 2002-04-03 Jason Merrill <jason@redhat.com>
7213 * except.c (struct eh_status): Remove protect_list.
7214 (begin_protect_partials, end_protect_partials): Remove.
7215 (add_partial_entry): Remove.
7216 * except.h: Remove prototypes.
7218 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7219 expand_decl_cleanup_eh.
7222 * tree.h (CLEANUP_EH_ONLY): New macro.
7223 * stmt.c (expand_decl_cleanup_eh): New fn.
7224 (expand_cleanups): Check CLEANUP_EH_ONLY.
7225 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7226 Use expand_decl_cleanup_eh.
7227 (expand_stmt): Adjust.
7228 * c-common.h: Adjust prototype.
7230 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7232 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7233 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7234 (cris_target_asm_function_epilogue): Ditto.
7235 (cris_initial_frame_pointer_offset): Ditto.
7236 (cris_simple_epilogue): Ditto.
7237 (cris_expand_builtin_va_arg): Variable-size types come in
7240 2002-04-03 David S. Miller <davem@redhat.com>
7242 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7244 (set_fast_math): Correct 'fsr' type.
7246 2002-04-03 Richard Henderson <rth@redhat.com>
7249 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7250 * toplev.c (check_global_declarations): Use it.
7251 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7252 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7253 (LANG_HOOKS_DECLS): Add it.
7254 * langhooks.c (lhd_warn_unused_global_decl): New.
7255 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7256 * c-objc-common.c (c_warn_unused_global_decl): New.
7257 * c-tree.h (c_warn_unused_global_decl): Declare.
7258 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7260 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7262 * langhooks-def.h (lhd_set_decl_assembler_name,
7263 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7264 (LANG_HOOKS_INITIALIZER): Update.
7265 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7266 * langhooks.h (struct lang_hooks): New hook.
7267 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7268 (lang_set_decl_assembler_name): Remove.
7269 (init_obstacks): Don't set hook.
7270 (decl_assembler_name): New function.
7271 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7272 (decl_assembler_name): New.
7273 (lang_set_decl_assembler_name): Remove.
7275 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7277 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7278 works properly with .hidden symbols.
7279 * configure: Rebuilt.
7280 * config.in: Rebuilt.
7281 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7282 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7283 properly with .hidden symbols.
7285 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7288 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7291 2002-04-03 Richard Henderson <rth@redhat.com>
7294 * sched-rgn.c (sets_likely_spilled): New.
7295 (sets_likely_spilled_1): New.
7296 (add_branch_dependences): Use it.
7298 2002-04-02 Richard Henderson <rth@redhat.com>
7301 * loop.h (LOOP_FIRST_PASS): New.
7302 * loop.c (strength_reduce): Mind it when deciding to unroll.
7303 * toplev.c (rest_of_compilation): Set it.
7305 2002-04-02 David S. Miller <davem@redhat.com>
7307 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7308 mems_ok_for_ldd_peep when the order of the loads being examined
7310 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7311 existing comment to increase comprehension of this situation.
7313 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7315 * config/sh/sh.md: Don't use union real_extract.
7317 2002-04-02 Richard Henderson <rth@redhat.com>
7319 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7321 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7323 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7324 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7325 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7326 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7327 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7328 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7329 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7330 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7331 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7332 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7333 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7334 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7335 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7336 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7337 Include as many configury headers via tm_file as possible. This
7338 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7339 * config/openbsd-oldgas.h: New file.
7340 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7341 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7342 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7343 config/i386/i386-coff.h, config/i386/i386-interix.h,
7344 config/i386/iscdbx.h, config/i386/linux-aout.h,
7345 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7346 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7347 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7348 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7349 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7350 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7351 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7352 config/i386/vxi386.h: Do not directly include configury headers.
7353 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7354 Directly include configury headers that are no longer automatically
7355 included by the above headers.
7356 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7357 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7358 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7359 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7360 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7361 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7362 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7363 (TARGET_VERSION): Define.
7364 * config/i386/beos-elf.h, config/i386/freebsd.h,
7365 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7366 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7367 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7368 config/i386/sco5.h, config/i386/sysv4.h
7369 (TARGET_VERSION): Do not need to protect.
7370 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7371 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7372 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7373 config/i386/i386-interix.h, config/i386/linux-aout.h,
7374 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7375 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7376 (YES_UNDERSCORES): Do not define - not needed.
7377 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7378 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7379 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7380 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7381 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7382 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7383 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7384 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7386 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
7387 Richard Henderson <rth@redhat.com>
7390 * function.c (assign_temp): Accept either type or decl argument.
7391 Detect variables whose size is too large to fit into an integer.
7392 * stmt.c (expand_decl): Pass the decl, not the type.
7394 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7396 * protoize.c: Match include directory usage with cppdefault.c.
7398 2002-04-03 Jeffrey A Law (law@redhat.com)
7399 Hans-Peter Nilsson <hp@bitrange.com>
7401 * combine.c (simplify_comparison): Avoid narrowing a comparison
7402 with a paradoxical subreg when doing so would drop signficant bits.
7404 2002-04-02 Steve Ellcey <sje@cup.hp.com>
7406 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7407 if POINTERS_EXTEND_UNSIGNED is defined.
7409 2002-04-02 Richard Henderson <rth@redhat.com>
7412 * local-alloc.c (contains_replace_regs): LO_SUM may contain
7415 2002-04-02 Richard Henderson <rth@redhat.com>
7417 * doc/standards.texi: Document required freestanding libc entry points.
7419 2002-04-02 Alan Modra <amodra@bigpond.net.au>
7421 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7422 associated splitter. Remove MQ constraint.
7423 (ctrdi_internal4): Correct CCmode clobber.
7425 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7427 * milli64.S ($$dyncall): New function.
7428 * t-linux (LIB1ASMFUNCS): Revise module list.
7429 (LIB1ASMSRC): Use pa/milli64.S.
7431 2002-04-02 Richard Henderson <rth@redhat.com>
7433 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7434 rename solaris_sys_varargs_h.
7436 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7438 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7439 the same mode as its component.
7441 2002-04-02 Richard Henderson <rth@redhat.com>
7444 * final.c (this_is_asm_operands): Export.
7445 * output.h (this_is_asm_operands): Declare.
7446 * config/i386/i386.c (print_operand): Error odd asm operands.
7448 2002-04-02 Richard Henderson <rth@redhat.com>
7451 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7453 2002-04-01 Richard Henderson <rth@redhat.com>
7456 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7457 * fixinc/fixincl.x: Rebuild.
7459 2002-04-01 Richard Henderson <rth@redhat.com>
7461 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7462 (atomic_alloc, atomic_free): New.
7463 (SIZE, MASK_FOR, PTR_IN): New.
7464 (emergency_reg_state, emergency_reg_state_free): New.
7465 (emergency_labeled_state, emergency_labeled_state_free): New.
7466 (reg_state_alloced, labeled_state_alloced): New.
7467 (alloc_reg_state, free_reg_state): New.
7468 (alloc_label_state, free_label_state, free_label_states): New.
7469 (push, pop, dup_state_stack, free_state_stack): Use them.
7470 (desc_label_state): Likewise.
7471 (uw_frame_state_for): Free label states and state stack.
7472 (uw_update_reg_address): Eliminate warnings.
7474 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
7476 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7477 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7479 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7481 * c-decl.c (grokdeclarator): Update.
7482 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7483 * c-tree.h (c_mark_addressable): New.
7484 * c-typeck.c (default_function_array_conversion, build_unary_op,
7485 build_array_ref, convert_for_assignment): Update.
7486 (mark_addressable): Rename.
7487 * calls.c (try_to_integrate, expand_call): Use langhook.
7488 * expr.c (expand_expr): Use langhook.
7489 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7490 * langhooks.h (struct lang_hooks): New hook.
7491 * stmt.c (expand_asm_operands): Use langhook.
7492 * tree.h (mark_addressable): Remove.
7494 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7496 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7498 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7501 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7503 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7504 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7506 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7508 * c-common.c (unsigned_conversion_warning, convert_and_check,
7509 unsigned_type, signed_type, shorten_compare,
7510 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7511 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7512 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7514 * c-decl.c (grokdeclarator): Update.
7515 * c-format.c (check_format_types): Update.
7516 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7517 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7518 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7519 * convert.c (convert_to_integer): Use new hooks.
7520 * expmed.c (make_tree): Use new hooks.
7521 * expr.c (store_expr): Use new hooks.
7522 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7523 all_ones_mask_p, unextend, fold): Use new hooks.
7524 * langhooks.h (struct lang_hooks_for_types): New hooks.
7525 * tree.h (signed_or_unsigned_type, signed_type,
7526 unsigned_type): Remove.
7528 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7529 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7531 2002-03-31 Richard Henderson <rth@redhat.com>
7533 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7534 (desc_frgr_mem): Fix reference to f16-f31.
7536 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7538 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7539 RTVEC_ELT): Const-ify.
7540 * varray.h (VARRAY_CHECK): Const-ify.
7541 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7542 ggc_mark_rtvec, ggc_mark): Const-ify.
7544 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7546 * diagnostic.c: Include langhooks-def.h.
7547 * Makefile.in (diagnostic.o): Update.
7549 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7551 * c-common.c (c_unsafe_for_reeval): Rename.
7552 * c-common.h (c_unsafe_for_reeval): Rename.
7553 * c-decl.c (finish_incomplete_decl): Rename.
7554 (c_init_decl_processing): Don't set langhook.
7555 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7556 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7557 * c-objc-common.c (c_objc_common_init): Don't set langhook.
7558 * c-tree.h (finish_incomplete_decl): Rename.
7559 * langhooks-def.h (lhd_unsafe_for_reeval): New.
7560 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7561 (LANG_HOOKS_INITIALIZER): Update.
7562 * langhooks.c (lhd_unsafe_For_reeval): New.
7563 * langhooks.h (struct langhooks): New hooks.
7564 * toplev.c (incomplete_decl_finalize_hook): Remove.
7565 (wrapup_global_declarations): Update.
7566 * tree.c (lang_unsafe_for_reeval): Remove.
7567 (unsafe_for_reeval): Update.
7568 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7571 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7572 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7574 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7576 * diagnostic.c (print_error_function): Remove.
7577 (default_print_error_function): Rename.
7578 (report_error_function): Update.
7579 * diagnostic.h (print_error_function): Remove.
7580 (default_print_error_function): Remove.
7581 * langhooks-def.h (struct diagnostic_context): Predeclare.
7582 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7583 (LANG_HOOKS_INITIALIZER): Update.
7584 * langhooks.h (struct diagnostic context): Predeclare.
7585 (struct lang_hooks): New hook.
7587 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7589 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7590 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7592 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7593 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7594 of PIC_OFFSET_TABLE_REGNUM thruout.
7595 * config/rs6000/rs6000.md: Likewise.
7596 * config/rs6000/darwin.h: Likewise.
7598 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7600 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7601 unsigned HOST_WIDE_INT, not unsigned int.
7603 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7605 PR middle-end/6096, middle-end/6098, middle-end/6099
7606 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7608 (fill_slots_from_thread): Likewise.
7610 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7612 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7613 floating fields in float regs.
7614 (function_arg_record_value_2): Likewise.
7616 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7618 * config/mmix/mmix.md (define_constants): Remove misleading
7619 FIXME. Add MMIX_fp_rO_OFFSET.
7620 ("nonlocal_goto_receiver"): Don't have stack-frame address of
7621 saved rO as part of the pattern. Remove FIXME.
7622 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
7623 here, at output-time.
7625 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7628 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7630 (output_v9branch): Likewise.
7632 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7634 * gcc.c: Revert previous patch for now.
7635 * config/i386/djgpp.h: Likewise.
7637 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7639 * config/mmix/crti.asm (_init): Register _fini with atexit.
7640 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7642 2002-03-31 Richard Henderson <rth@redhat.com>
7645 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7646 (ASM_OUTPUT_DEF_FROM_DECLS): New.
7648 2002-03-31 Richard Henderson <rth@redhat.com>
7650 * libgcc2.c (__bb_exit_func): Make static.
7652 * config/alpha/alpha.md (trap): New.
7654 2002-03-31 Richard Henderson <rth@redhat.com>
7656 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7657 promoted argument types; build trap.
7658 (expand_builtin_trap): New.
7659 (expand_builtin): Use it.
7660 * stmt.c (expand_nl_goto_receivers): Likewise.
7661 * expr.h (expand_builtin_trap): Declare.
7662 * libfuncs.h (LTI_abort, abort_libfunc): New.
7663 * optabs.c (init_optabs): Init abort_libfunc.
7665 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7667 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7668 (LINK_COMMAND_SPEC): ... from here.
7669 (init_gcc_specs): Duplicate it here too, omitting
7670 shared_name in the second copy.
7671 (init_spec): Test for duplicate
7672 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7674 2002-03-30 David S. Miller <davem@redhat.com>
7676 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7677 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7679 2002-03-30 Roger Sayle <roger@eyesopen.com>
7680 Richard Henderson <rth@redhat.com>
7682 * regmove.c (combine_stack_adjustments_for_block): Avoid
7683 emitting a stack adjustment of zero bytes. Let delete_insn
7686 2002-03-30 Richard Henderson <rth@redhat.com>
7688 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7689 (sparc_emitting_epilogue): New.
7690 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7691 * config/sparc/sparc-protos.h: Update.
7692 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7693 (TARGET_SWITCHES): Update.
7694 * config/sparc/sparc.md (return): Remove.
7695 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7696 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7697 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7698 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7699 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7700 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7701 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7702 Remove MASK_EPILOGUE.
7703 * doc/invoke.texi: Update.
7705 2002-03-30 Daniel Berlin <dan@dberlin.org>
7707 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7708 CPP will start the file for us.
7710 2002-03-30 Richard Henderson <rth@redhat.com>
7713 * config/ia64/ia64.c (group_barrier_needed_p): Special case
7714 prologue_allocate_stack.
7715 (ia64_single_set): Use insn codes for recognition of special
7716 cases, not rtl matching.
7717 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7719 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
7721 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7723 2002-03-30 Richard Henderson <rth@redhat.com>
7726 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7727 or -fomit-frame-pointer with profiling.
7728 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7729 (FUNCTION_PROFILER): Do nothing.
7730 (PROFILE_HOOK): New.
7731 * config/sparc/sparc.c (sparc_override_options): Don't check
7732 code models for profiling.
7733 (sparc_function_profiler): Remove.
7734 (sparc_profile_hook): New.
7735 * config/sparc/sparc-protos.h: Update.
7737 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7739 PR optimization/6086
7740 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7741 of SUBREG of volatile MEM or because the MEM was mode dependent,
7742 return CLOBBER instead of unmodified SUBREG.
7744 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7746 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7747 when not optimizing.
7749 * toplev.c (rest_of_compilation): Cann mark_constant_function
7750 only when optimizing.
7752 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7755 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7756 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7757 (try_optimize_cfg): clear all AUX fields.
7759 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7760 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7761 (ix86_address_cost): Be prepared for SUBREGed registers.
7762 (legitimate_address_p): Accept SUBREGed registers.
7764 2002-03-29 Richard Henderson <rth@redhat.com>
7767 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7769 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7771 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7772 for aggregate and TFmode types.
7774 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7776 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7778 2002-03-29 Richard Henderson <rth@redhat.com>
7781 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7782 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7784 2002-03-29 Richard Henderson <rth@redhat.com>
7787 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7788 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7789 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7790 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7792 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7794 2002-03-29 Dale Johannesen <dalej@apple.com>
7796 * loop.c (combine_movables): Do allow combination of pseudos.
7798 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
7800 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7801 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7802 No functional change except ...
7803 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
7804 * doc/install.texi (*-*-freebsd*): Document port configuration.
7806 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7808 * Makefile.in (convert.o, calls.o, expmed.o): Update.
7809 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7811 * builtin-types.def (BT_PTRMODE): Update.
7812 * c-common.c (type_for_size): Rename c_common_type_for_size.
7813 (type_for_mode): Similarly.
7814 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7816 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7817 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7818 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7820 * c-typeck.c (common_type, comptypes, default_conversion):
7822 * calls.c: Include langhooks.h.
7823 (emit_library_call_value_1): Use new hooks. Avoid redundant
7825 * convert.c: Include langhooks.h
7826 (convert_to_pointer, convert_to_integer): Use new hooks.
7827 * except.c (init_eh): Similarly.
7828 * expmed.c: Include langhooks.h.
7829 (expand_mult_add): Use new hooks.
7830 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7831 try_casesi): Similarly.
7832 * fold-const.c (optimize_bit_field_compare, make_range,
7833 decode_field_reference, fold_truthop, fold): Similarly.
7834 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
7835 put_var_into_stack): Similarly.
7836 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
7837 LANG_HOOKS_TYPE_FOR_SIZE): New.
7838 (LANG_HOOKS_TYPES_INITIALIZER): Update.
7839 * langhooks.h (lang_hooks_for_types): New hooks.
7840 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
7841 * tree.c (get_unwidened, get_narrower): Similarly.
7842 * tree.h (type_for_mode, type_for_size): Remove.
7843 * varasm.c (force_const_mem): Use new hooks.
7844 * utils2.c (nonbinary_modular_operation): Update.
7846 * objc-act.c (handle_impent): Update.
7847 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
7850 2002-03-29 Steve Ellcey <sje@cup.hp.com>
7852 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
7853 * config/ia64/ia64.c (basereg_operand): New.
7854 * config/ia64/ia64-protos.h (basereg_operand): Declare.
7855 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
7857 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7859 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
7860 unwind information when frame_pointer_needed.
7861 (mmix_assemble_integer): Tweak wording in comment.
7863 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7865 * Makefile.in (except.o): Update.
7866 * except.c: Include langhooks.h.
7867 (init_eh): Use langhook.
7868 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
7869 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
7870 (LANG_HOOKS_INITIALIZER): Update.
7871 * langhooks.h (lang_hooks_for_types): New.
7872 (struct lang_hooks): Add it.
7873 * tree.c (make_lang_type_fn, make_lang_type): Remove.
7874 * tree.h (make_lang_type_fn, make_lang_type): Remove.
7876 * alpha/alpha.c: Include langhooks.h.
7877 (alpha_build_va_list): Use langhook.
7878 * d30v/d30v.c: Include langhooks.h.
7879 (d30v_build_va_list): Use langhook.
7880 * i386/i386.c: Include langhooks.h.
7881 (ix86_build_va_list): Use langhook.
7882 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
7883 * s390/s390.c: Include langhooks.h.
7884 (s390_build_va_list): Use langhook.
7885 * stormy16/stormy16.c: Include langhooks.h.
7886 (stormy16_build_va_list): Use langhook.
7888 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7891 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
7893 (length): Compute variable length for branches/calls/jumps here.
7894 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
7895 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
7896 define branch_type attribute.
7897 (divsi3_sp32): Maximum length is 6 not 7.
7898 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
7899 call_address_untyped_struct_value_sp32,
7900 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
7901 * config/sparc/sparc.c (empty_delay_slot): New function.
7902 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
7903 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
7905 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7907 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
7908 nonzero_bits if not needed.
7909 (nonzero_bits) [XOR]: Likewise.
7910 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
7911 reg_last_set_mode and mode are both MODE_INT, but not equal.
7912 (record_value_for_reg): Compute reg_last_set_nonzero_bits
7913 in nonzero_bits_mode for MODE_INT modes.
7915 2002-03-28 Richard Henderson <rth@redhat.com>
7918 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
7919 to GAS. Correct drift between alternatives.
7921 2002-03-28 Richard Henderson <rth@redhat.com>
7924 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
7926 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
7928 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
7929 emulation to the linker.
7931 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
7933 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
7934 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
7936 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
7938 * combine.c (simplify_and_const_int): Make sure to apply mask
7939 when force_to_mode returns a constant integer. PR3311.
7941 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7943 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
7945 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7947 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
7948 and Objective-C Dialect Options.
7950 2002-03-28 Richard Henderson <rth@redhat.com>
7952 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
7953 comparison should be done vs !=0 not >0 return code. Tidy cases.
7955 2002-03-28 Richard Henderson <rth@redhat.com>
7957 * c-decl.c (finish_function): New arg can_defer_p. Pass it
7958 on to c_expand_body.
7959 * c-tree.h (finish_function): Update decl.
7960 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
7962 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
7964 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
7966 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
7968 * rtlanal.c: Include flags.h
7969 (may_trap_p): Do not mark FP operations if trapping
7970 if !flag_trapping_math
7971 * Makefile.in (rtlanal.o): Add dependency on flag.h
7972 * ifcvt.c (noce_operand_ok): Avoid the lameness.
7974 2002-03-27 Zack Weinberg <zack@codesourcery.com>
7976 * mips.md: Use dconst1, not 1.0, as first argument of
7977 REAL_VALUE_LDEXP. Don't use union real_extract.
7979 2002-03-28 Alan Modra <amodra@bigpond.net.au>
7981 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
7982 rather than $target. Heed program_prefix and
7983 program_transform_name. Search for gas in cross-compiler case too.
7984 "test -x" rather than "test -f".
7985 (gcc_cv_ld): Likewise.
7986 (gcc_cv_nm): Heed program_prefix and program_transform_name.
7987 (gcc_cv_objdump): Likewise.
7988 * configure: Regenerate.
7990 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7992 * Makefile.in (attribs.o): Update.
7993 * attribs.c: Include langhooks.h.
7994 (decl_attributes): Use langhook.
7995 * c-decl.c (insert_default_attributes): Rename.
7996 * c-tree.h (c_insert_default_attributes): New.
7997 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
7998 (LANG_HOOKS_INITIALIZER): Update.
7999 * langhooks.h (struct lang_hooks): New hook.
8000 * tree.h (insert_default_attributes): Remove.
8002 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8004 2002-03-27 Andreas Schwab <schwab@suse.de>
8006 * config/i386/i386.c (classify_argument): Also check for
8009 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8011 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8014 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
8016 * i960.md (ret): Set PC.
8017 (nonlocal_goto): Fix expander.
8018 * builtins.c (epxand_builin_longjmp): Check that we've emitted
8021 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
8023 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8026 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8028 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8029 assigning to BLOCK_FOR_INSN directly.
8031 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
8033 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8035 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8037 * c-common.c (c_expand_expr): Fix prototype.
8038 * c-common.h (c_expand_expr): Always declare, update.
8039 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8040 * c-objc-common.c (c_objc_common_init): No global hook.
8041 * expr.c (expand_expr): Use langhook.
8042 * expr.h (enum expand_modifier): Conditionally declare.
8043 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8044 (LANG_HOOKS_INITIALIZER): Update.
8045 * langhooks.c (lhd_expand_expr): New.
8046 * langhooks.h (struct lang_hooks): New hook.
8047 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8048 (lang_independent_init): Don't default hook.
8050 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8052 2002-03-27 Richard Henderson <rth@redhat.com>
8055 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8056 TARGET_CONST_GP. Simplify conditions.
8058 2002-03-27 Richard Henderson <rth@redhat.com>
8060 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8061 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8062 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8064 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8066 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8067 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8068 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8069 Remove unnecessary masks.
8070 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8071 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8072 -mwindows, -mdll switches and their negations.
8074 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8076 * gcc-common.c (lang_mark_false_label_stack): Remove.
8077 * ggc.h (lang_mark_false_label_stack): Similarly.
8079 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
8081 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8083 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8084 or __rtems_ is defined.
8086 2002-03-26 Richard Henderson <rth@redhat.com>
8088 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8089 if a non-trivial load was emitted.
8090 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
8091 in high+extra+low case.
8093 2002-03-26 Richard Henderson <rth@redhat.com>
8095 * config.gcc (sparc*-solaris): Use float_format=sparc.
8097 2002-03-26 Richard Henderson <rth@redhat.com>
8099 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8100 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8101 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8102 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8103 (WINT_TYPE_SIZE): Fix at 32.
8105 2002-03-26 Richard Henderson <rth@redhat.com>
8107 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8108 until after eh landing pad generation.
8109 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8110 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8112 2002-03-26 Richard Henderson <rth@redhat.com>
8114 * expr.h (ADD_PARM_SIZE): One more convert for INC.
8116 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
8118 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
8119 and warning switches.
8120 (cc1_options): Likewise.
8122 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
8124 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8125 Restore more of the signal context. Set no_reg_stack_frame.
8126 * config/ia64/unwind-ia64.c (unw_state_record):
8127 Add no_reg_stack_frame, comments.
8128 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8129 (uw_update_context): Adjust bsp when unwinding from leaf,
8130 but not signal frame.
8132 2002-03-26 David Edelsohn <edelsohn@gnu.org>
8134 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8136 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8138 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8140 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8143 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8144 "Add a pool_range attribute", which was lost during the ARM/Thumb
8147 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8149 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8150 a register into the MAC16 accumulator.
8152 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8154 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8155 (Warning Options): Document -Wswitch-enum.
8156 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8158 (warn_switch_enum): Define variables.
8159 * flags.h (warn_switch_enum): Declare variables.
8160 * stmt.c (expand_end_case_type): When warn_switch_enum /
8161 -Wswitch-enum, perform switch checks.
8164 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8166 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8167 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8168 (reload_muladdsi_compare0_scratch): Delete.
8170 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8172 * doc/install.texi (*-*-freebsd*): Update.
8174 2002-03-26 Richard Henderson <rth@redhat.com>
8176 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8177 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8179 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8180 types from the normal argument frame.
8182 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8183 variable sized objects by reference.
8184 (sparc_va_arg): Receive them by reference too.
8186 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8188 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8189 code to not restoring global registers.
8191 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8193 * Makefile.in (ggc-common.o): Update.
8194 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8195 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8196 * c-tree.h (c_mark_tree): New.
8197 * ggc-common.c: Include langhooks.h.
8198 (gcc_mark_trees): Use new langhook.
8199 * ggc-callbacks.c: Delete file.
8200 * ggc.h (lang_mark_tree): Remove.
8201 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8202 (LANG_HOOKS_INITIALIZER): Update.
8203 * langhooks.h (struct lang_hooks): New hook.
8205 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8207 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8209 * doc/cpp.texi: Exclude entire Top node from printed manual.
8210 Move option index after directive index. Insert page breaks
8211 before GFDL and concept index. Index environment variables
8212 with command line options.
8213 * doc/cppenv.texi: Use @vtable for environment variable list.
8214 Add paragraph explaining semantics of empty elements in path
8215 variables. Exclude a cross-reference to Fishkill from the
8216 manpage. Remove an unnecessary cross-reference of the entry
8217 right above the referer. Don't use @anchor in text that goes
8219 * doc/cppopts.texi: Cross-reference the environment variables
8220 section, not the specific environment variable, for consistency.
8222 2002-03-25 Richard Henderson <rth@redhat.com>
8224 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8225 anywhere in the block. Don't refer to insns that have been
8226 removed from the chain. Iterate backward through the new insns.
8227 Don't refer to edges that have been removed.
8229 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8231 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8232 test for overflow of constant.
8234 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8237 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8238 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8239 these patterns on arm_archv4.
8241 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8243 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8246 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8248 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8249 float_handled, float_handler, float_signal, set_float_handler,
8250 and do_float_handler. Set handler for SIGFPE to crash_signal.
8251 * toplev.h: Don't prototype do_float_handler.
8253 * c-lex.c: Fold parse_float into lex_number. Make warning
8254 about portability of hex float constants more informative, and
8255 don't issue it on top of a syntax error.
8256 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8258 * real.h: Define REAL_VALUE_ABS here...
8259 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8260 simplify_unary_real, simplify_binary_real, and
8261 simplify_binary_is2orm1 into their callers.
8262 * tree.c: Fold build_real_from_int_cst_1 into caller.
8264 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8266 * tsystem.h: Include float.h here...
8267 * libgcc2.c: ... not here.
8269 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8271 Fixes for: PR bootstrap/3591, target/5676
8272 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8273 defined. Do not disable exceptions or rtti.
8274 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8275 mcore.h. Disable exceptions and rtti, since they are not
8278 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8280 * c-decl.c (maybe_build_cleanup): Remove.
8281 * expr.c (expand_expr): Use langhook.
8282 * langhooks-def.h (lhd_return_null_tree,
8283 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8284 (LANGHOOKS_INITIALIZER): Update.
8285 * langhooks.c (lhd_return_null_tree): New.
8286 * langhooks.h (struct lang_hooks): New hook.
8287 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8288 * tree.h (maybe_build_cleanup): Remove.
8290 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8292 * regrename.c (build_def_use): Move recog_memoized
8293 before extract_insn.
8295 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8298 * expr.c (emit_group_store): Handle storing into CONCAT.
8300 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8302 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8303 corresponding MATCH_DUP.
8305 2002-03-24 Richard Henderson <rth@redhat.com>
8307 * unroll.c (unroll_loop): Zero label_map.
8309 * gcse.c: Include except.h.
8310 * Makefile.in (gcse.o): Update.
8312 2002-03-24 Richard Henderson <rth@redhat.com>
8314 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8315 Do resolve_unique_section before shared data clause.
8317 2002-03-24 Richard Henderson <rth@redhat.com>
8319 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8321 2002-03-24 Richard Henderson <rth@redhat.com>
8323 * recog.c (peephole2_optimize): Split blocks when EH insns are
8324 generated in the middle of a block. Do global life update if
8327 2002-03-24 Richard Henderson <rth@redhat.com>
8329 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8331 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8334 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8335 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8336 (init_dependency_output): Don't make no_output decision here.
8338 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8340 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8341 warn_switch. Update description.
8342 (expand_end_case_type): Call check_for_full_enumeration_handling
8345 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8347 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8348 (m68hc11_split_move): Call it to see if the source and destination
8349 operands use the same direction auto inc/dec mode, otherwise make the
8350 source an offsetable memory operand and generate an add.
8352 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8354 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8355 register for operand 2.
8356 ("*subsi3_zero_extendqi"): Likewise.
8357 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8358 bits so that it is compatible with a pop.
8359 ("*andhi3_gen"): Likewise.
8360 ("xorhi3"): Likewise.
8362 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8364 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8366 (cpp_post_options): ... not here.
8368 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8369 Aldy Hernandez <aldyh@redhat.com>
8371 Removal of separate preprocessor cpp0.
8373 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8374 cpp0, install-common): Update.
8375 * c-common.c (flag_preprocess_only): New.
8376 (c_common_init): Preprocess for -E.
8377 * c-common.h (flag_preprocess_only): New.
8378 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8379 * c-objc-common.c (c_init_decl_processing): Exit quickly
8380 for NULL return from c_common_init.
8381 * cpplib.h (cpp_preprocess_file): New.
8382 * cppmain.c (main, general_init, pfile, progname): Remove.
8383 (do_preprocessing): Rename cpp_preprocess_file, don't call
8384 cpp_finish. Don't close stdout here.
8385 (setup_callbacks): Update prototype.
8386 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8388 * tradcpp.c (main): Ignore -quiet.
8390 * lang-specs.h (default_compilers): Preprocess with cc1obj.
8392 2002-03-24 Richard Henderson <rth@redhat.com>
8394 PR optimization/5742
8395 * machmode.def: Add inner mode field to complex modes.
8396 * config/mips/mips.c (mips_function_value): Always define. Add
8397 new argument to handle libcalls.
8398 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8399 (FUNCTION_VALUE): Likewise.
8400 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8401 * config/mips/mips-protos.h: Update.
8403 2002-03-23 Richard Henderson <rth@redhat.com>
8405 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8406 * config/sparc/sparc-protos.h: Update.
8407 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8409 2002-03-23 Richard Henderson <rth@redhat.com>
8411 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8412 _start or _init begins the text segment.
8414 2002-03-23 David Edelsohn <edelsohn@gnu.org>
8416 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
8417 not HOST_WIDEST_INT.
8418 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8420 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
8423 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8424 operand argument to output_return_instruction.
8425 * arm.c (arm_print_operand, case 'd'): If the operand is
8426 const_true_rtx then just return.
8427 (arm_print_operand, case 'D'): If the operand is const_true_rtx
8430 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8432 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8433 (Warning Options): Document -Wswitch-default.
8434 * toplev.c (W_options): Add -Wswitch-default. Update comment on
8436 (warn_switch_default): Define variable.
8437 (warn_switch): Update comment.
8438 * flags.h (warn_switch_default): Declare variable.
8439 (warn_switch): Update comment.
8440 * stmt.c (expand_end_case): Check for and, when
8441 warn_switch_no_default, warn of a missing default case.
8443 2002-03-23 Alan Modra <amodra@bigpond.net.au>
8445 * real.h (N): Special case 128 bit doubles.
8447 * combine.c (simplify_comparison): When widening modes, ignore
8448 sign extension on CONST_INTs.
8450 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8452 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8453 passed to adjust_address. Fix comment formatting.
8456 2002-03-22 Zack Weinberg <zack@codesourcery.com>
8458 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8459 Always make REAL_VALUE_TYPE a struct containing an array of
8460 HOST_WIDE_INT, not a double. Tidy up the code deciding how
8461 big it is. Don't declare or use union real_extract.
8463 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8464 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8465 (print_operand), config/arm/arm.c (output_move_double),
8466 config/arm/arm.md (consttable_4, consttable_8),
8467 config/romp/romp.c (output_fpops), config/s390/s390.h
8468 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8469 (xtensa_output_literal): Don't use union real_extract.
8471 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8472 (sfmode_constant_to_ulong), config/ns32k/merlin.h
8473 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8474 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8475 (PRINT_OPERAND): Don't use local version of union
8478 * config/convex/convex.c (check_float_value), config/vax/vax.c
8479 (vax_float_literal), config/m88k/m88k.md (divdf3),
8480 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8481 config/pdp11/pdp11.c (output_move_quad): Don't do host
8482 arithmetic on target floating point quantities.
8484 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8485 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8487 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8488 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8490 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8491 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8493 * print-rtl.c (print_rtx): Disable code which needs
8494 floating-point emulator.
8495 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8496 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8497 depending on HOST_FLOAT_FORMAT to be defined properly.
8499 * config/1750a/1750a.c (get_double, float_label): Delete.
8500 (print_operand): Delete huge commented-out chunk. Use
8501 REAL_VALUE_TO_DECIMAL.
8502 * config/1750a/1750a-protos.h: Delete prototypes of deleted
8504 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8506 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8507 Use REAL_VALUE_TO_DECIMAL as ELF version does.
8508 * config/m88k/m88k.c (real_power_of_2_operand,
8509 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8510 real_extract out of the union; run the input through
8511 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8512 from that into the union.
8513 * config/pdp11/pdp11.c (output_move_double): Rearrange
8514 parentheses to make automatic indenter happy.
8516 * doc/tm.texi (Cross-compilation): Rename node to "Floating
8517 Point" and rewrite to describe current situation. Also adjust
8518 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8520 * doc/rtl.texi: Adjust cross reference.
8522 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8524 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8525 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8526 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8527 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8528 prevent use of sp as a reload register.
8529 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8530 non_acc_reg_operand.
8531 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8532 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8533 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8534 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8536 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8538 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8539 * cpplex.c (unterminated): Delete.
8540 (parse_string): No string literal may extend over multiple
8541 lines. Suppress the error when preprocessing assembly.
8542 * cppmain.c (scan_translation_unit): Strings are single-line.
8544 * doc/cpp.texi: Update to match.
8546 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8548 PR optimization/5854
8549 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8551 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8552 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8553 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8554 const0 if scratch register was not allocated.
8555 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8556 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8558 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8559 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8560 with GEN_INT (...) everywhere. Remove constraints in define_split
8562 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8563 require scratch register for setting 0 into regs/non-pushable memory.
8565 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8567 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8568 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8570 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
8572 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
8573 * cppinit.c (cpp_create_reader): On by default.
8574 (cpp_handle_option): Handle -W[no-]endif-labels.
8575 (cpp_post_options): Also enable if -pedantic.
8576 * cpplib.c (do_else): Use it.
8577 (do_endif): Likewise.
8578 * doc/cppopts.texi: Document new option.
8579 * doc/invoke.texi: Document new option.
8581 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
8583 * config/i386/i386.c, config/i386/i386.md: Change all occurences
8584 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8586 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8588 * flow.c (calculate_global_regs_live): Clear aux fields of
8591 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8593 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8594 REG or MEM subregs, pass rtx * instead of rtx to it.
8595 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8596 rtx * instead of rtx to alter_subreg.
8597 * config/m32r/m32r.c (gen_split_move_double): Likewise.
8598 * config/pj/pj.c (pj_output_rval): Likewise.
8600 2002-03-22 Richard Henderson <rth@redhat.com>
8603 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8604 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8605 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8606 (ia64_expand_prologue): Look at int_regs, not words, for number
8607 of incomming int regs.
8609 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
8611 * expr.c (expand_expr): A RESULT_DECL is part of a call.
8613 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
8615 * toplev.c (flag_loop_optimize, flag_crossjumping):
8616 New static variables.
8617 (rest_of_compilation): Conditionalize crossjumping and
8619 (parse_options_and_default_flags): Default loop_optimize and
8621 (lang_independent_options): Add -fcrossjumping and -floop-optimize
8622 * invoke.texi (crossjumping, loop-optimize): Document.
8624 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8626 * real.c (eiisneg): Move outside #ifdef NANS.
8628 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
8630 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8631 frequencies match; avoid match on different loop depths.
8632 (try_crossjump_to_bb): Kill tests that no longer brings time
8634 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8636 (split_edge): Likewise.
8638 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8641 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8642 * cfgrtl.c: Include insn-config.h
8643 (split_block) Dirtify block in presence of conditional execution
8645 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8647 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8648 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8649 (function_arg): Constify CUMULATIVE_ARGS.
8650 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8651 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8652 (UNITS_PER_DOUBLE): New macro.
8653 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
8654 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
8655 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
8656 fp_regs and stack_words.
8657 (EABI_FLOAT_VARARGS_P): New macro.
8658 * config/mips/mips.c (struct mips_arg_info): New.
8659 (mips_arg_info): New function.
8660 (function_arg_advance): Use it. Add adjustment instructions here
8661 rather than in function_arg.
8662 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
8663 for VOIDmode at the beginning of the function.
8664 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
8665 (function_arg_pass_by_reference): Likewise.
8666 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8667 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8668 (mips_va_start): Likewise. Use the new stack_words field of
8669 CUMULATIVE_ARGS to set up overflow area. Reformat.
8670 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
8671 doubles and other types, aligning the overflow pointer for non-doubles
8672 too. Remove some code duplication. Replace hard-coded constants.
8674 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8676 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8677 (CLASS_UNITS): Undefine.
8678 (CLASS_MAX_NREGS): Use FP_INC.
8679 * config/mips/mips.c (compute_frame_size): Likewise.
8680 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8682 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8684 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8685 prototype, and handle lexing numbers and identifiers.
8686 (parse_identifier): Update to new form of parse_slow.
8687 (parse_number): Fast path only, use parse_slow otherwise.
8688 (_cpp_lex_direct): Update calls to parse_number.
8690 2002-03-21 DJ Delorie <dj@redhat.com>
8692 * bb-reorder.c (make_reorder_chain_1): Protect against
8693 when redundant edges are omitted.
8694 * predict.c (dump_prediction): Likewise.
8696 2002-03-21 Richard Henderson <rth@redhat.com>
8699 * fixinc/inclhack.def (solaris_stdio_tag): New.
8700 * fixinc/fixincl.x: Regenerate.
8702 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8705 * c-typeck.c (process_init_element): Flag non-static
8706 initialization of a flexible array member as illegal.
8708 2002-03-22 Alan Modra <amodra@bigpond.net.au>
8710 * config/rs6000/t-linux64: New.
8711 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8712 t-ppccomm. Use t-rs6000 and t-linux64.
8713 (powerpc64-*-gnu* <tmake_file>): Likewise.
8714 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8715 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8716 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8718 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
8720 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8721 flag_really_no_inline instead of optimize == 0.
8723 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8725 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8727 * flags.h (flag_really_no_inline): New.
8729 * c-common.c (c_common_post_options): Initialize
8730 flag_really_no_inline.
8732 * toplev.c (flag_really_no_inline): New.
8734 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8736 * config/avr/avr.md (length): Fix length computation for
8737 conditional branches.
8739 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
8741 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8742 sdbout.o, profile.o): Update.
8743 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8745 * c-common.h (gettags): Move here from tree.h.
8746 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8747 insert_block, getdecls, kept_level_p, global_bindings_p): New.
8748 * dbxout.c (dbxout_init): Use getdecls langhook.
8749 * expr.c (expand_expr): Use insert_block langhook.
8750 * fold-const.c: Include langhooks.h.
8751 (fold_range_test, fold_binary_op_with_conditional_arg,
8752 fold): Use global_bindings_p langhook.
8753 * integrate.c (expand_inline_function): Use insert_block langhook.
8754 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8755 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8756 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8757 LANG_HOOKS_GETDECLS): New.
8758 (LANG_HOOKS_INITIALIZER): Update.
8759 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8761 * langhooks.h (struct lang_hooks_for_decls): New.
8762 (struct lang_hooks): Update.
8763 * profile.c: Include langhooks.h.
8764 (output_func_start_profiler): Use new langhooks.
8765 * sdbout.c: Include langhooks.h.
8766 (sdbout_init, sdbout_finish): Use getdecls langhook.
8767 * stmt.c: Include langhooks.h.
8768 (expand_fixup, fixup_gotos): Use new langhooks.
8769 * stor-layout.c: Include langhooks.h.
8770 (variable_size): Use global_bindings_p langhook.
8771 * toplev.c (compile_file): Use getdecls langhook.
8772 * tree-inline.c (remap_block): Use insert_block langhook.
8773 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8774 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8776 2002-03-21 Richard Henderson <rth@redhat.com>
8778 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8779 constants in .data when -fpic.
8781 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8783 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8786 2002-03-21 Tom Tromey <tromey@redhat.com>
8788 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
8790 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8792 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8794 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8796 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8797 Richard Henderson <rth@redhat.com>
8800 * c-common.c (c_expand_expr): Preserve result of a statement
8801 expression if needed.
8803 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8806 * genrecog.c (maybe_both_true_mode): Remove.
8807 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8808 * machmode.def (Pmode): Likewise.
8810 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
8812 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8813 (nonlocal_mentioned_p_1): New function.
8814 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8815 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8816 (mark_constant_function): Recognize pure functions.
8817 * rtl.h (global_reg_mentioned_p): New prototype.
8818 * rtlanal.c (global_reg_mentioned_p,
8819 global_reg_mentioned_p_1): New function.
8821 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8823 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8825 * fixinc/fixincl.x: Regenerate.
8827 2002-03-20 Jason Merrill <jason@redhat.com>
8829 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8831 2002-03-20 Michael Meissner <meissner@redhat.com>
8833 * doc/invoke.texi (Optimize Options): Document that -O2 sets
8836 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8838 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
8839 ".literal_position" directive before the constant pool.
8841 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8843 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
8844 Add Craig Rodrigues.
8845 Add Brad Lucier to testers.
8847 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8850 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
8852 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
8853 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
8854 instead of insn_extract.
8856 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8859 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
8861 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
8862 stmt if some case has been output.
8864 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8867 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
8868 movsfcc_1, movdfcc_1): Add %O2.
8869 * config/i386/i386.c (print_operand): Handle %ON.
8870 Print . before float condition codes in Sun as cmov syntax.
8871 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
8872 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
8875 2002-03-20 Philip Blundell <pb@nexus.co.uk>
8877 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
8878 return instruction if PC was popped.
8880 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8882 * config/xtensa/xtensa.md: Remove unused type attributes.
8883 (adddi_carry, subddi_carry): Change type attribute to "multi".
8885 2002-03-19 Dale Johannesen <dalej@apple.com>
8887 PR optimization/5999, middle-end/5731
8888 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
8889 multiplications by reciprocals.
8891 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
8893 * Makefile.in: Update.
8894 * c-common.c: Include langhooks.h.
8895 (inline_forbidden_p): Use new hook.
8896 * diagnostic.c: Include langhooks.h.
8897 (format_with_decl, announce_function,
8898 default_print_error_function): Use new hook.
8899 * dwarf2out.c (dwarf2_name): Use new hook.
8900 * function.c: Include langhooks.h.
8901 (init_function_start): Use new hook.
8902 * langhooks-def.h (lhd_decl_printable_name): New.
8903 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
8904 (LANGHOOKS_INITIALIZER): Update.
8905 * langhooks.c (lhd_decl_printable_name): New.
8906 * langhooks.h (struct lang_hooks): New hook.
8907 * toplev.c (decl_name, decl_printable_name): Remove.
8908 (open_dump_file): Use new hook.
8909 (process_options): Remove old hook.
8910 * tree.h (decl_printable_name): Remove.
8912 * objc-act.c (objc_init): Remove old hook.
8913 (objc_printable_name): Export.
8914 * objc-act.h (objc_printable_name): New.
8915 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
8917 2002-03-19 Jim Blandy <jimb@redhat.com>
8919 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
8920 the start_source_file debug hook, not the current line number.
8922 2002-03-19 Richard Henderson <rth@redhat.com>
8924 * flow.c (EH_USES): Provide default.
8925 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
8926 * doc/tm.texi (EH_USES): New.
8928 * config/ia64/ia64.c (ia64_eh_uses): New.
8929 * config/ia64/ia64-protos.h: Update.
8930 * config/ia64/ia64.h (EH_USES): New.
8932 2002-03-19 Richard Henderson <rth@redhat.com>
8934 * varasm.c (output_constant_def): Fix stupid typo.
8936 2002-03-19 Richard Henderson <rth@redhat.com>
8939 * except.c (current_function_has_exception_handlers): New.
8940 * except.h: Declare it.
8941 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
8942 Combine tests that disable all sibcalls for the function.
8944 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
8946 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
8949 2002-03-19 Richard Henderson <rth@redhat.com>
8952 * config/ia64/ia64.c: Revert 2002-03-01 patch.
8953 * config/ia64/ia64.h (INIT_EXPANDERS): New.
8955 2002-03-19 Jim Blandy <jimb@redhat.com>
8957 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
8958 name, even if the replacement list contains no tokens, as required
8961 2002-03-19 Jason Merrill <jason@redhat.com>
8963 * varasm.c (globalize_decl): Get the name from the RTL, not
8964 DECL_ASSEMBLER_NAME.
8966 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
8968 2002-03-19 Bob Wilson <bob.wilson@acm.org>
8970 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
8971 subdi_carry): Define.
8973 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8975 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
8976 about -fpic/-fPIC if extra_warnings set.
8978 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8980 * expr.c (expand_expr): Sign-extend CONST_INT generated from
8981 TREE_STRING_POINTER.
8982 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
8984 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8986 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
8987 in favor of SP if FRAME_POINTER_REQUIRED is false.
8989 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
8991 * emit-rtl.c (gen_int_mode): New function.
8992 * rtl.h: Prototype for it.
8993 * combine.c (make_extraction, simplify_comparison), expmed.c
8994 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
8995 (convert_modes, store_field), optabs.c (expand_fix),
8996 simplify-rtx.c (neg_const_int, simplify_unary_real),
8998 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
8999 Use it instead of GEN_INT (trunc_int_for_mode (...)).
9001 2002-03-19 Jakub Jelinek <jakub@redhat.com>
9004 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9005 convert_parm_for_inlining.
9006 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9008 * langhooks-def.h: Likewise.
9009 * objc/objc-lang.c: Likewise.
9010 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9012 * tree-inline.c (initialize_inlined_parameters):
9013 Call convert_parm_for_inlining lang hook if needed.
9014 * c-typeck.c (c_convert_parm_for_inlining): New function.
9015 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9017 2002-03-18 Mark Mitchell <mark@codesourcery.com>
9019 * calls.c (precompute_arguments): Do not assume that temporaries
9020 can be destroyed after expanding the argument.
9021 (expand_call): Likewise.
9023 2002-03-15 Eric Christopher <echristo@redhat.com>
9025 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9026 Fix register preference on last change.
9027 * config/mips/mips.c (mips_return_in_memory): New function.
9028 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9029 * config/mips/mips-protos.h: Declare.
9030 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9031 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9033 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
9035 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9037 (anddi3, iorsi3): Likewise.
9039 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9040 use %gprel for symbols that are going to be placed in linkonce
9043 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9044 RETURN_ADDRESS_POINTER_REGNUM to $ra.
9045 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9046 not needed. Disregard leaf_function_p().
9047 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9048 mips16 frame pointer.
9049 * config/mips/mips.md (store ra): Only to small SP offsets.
9050 2001-08-22 Graham Stott <grahams@redhat.com>
9051 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9052 return a REG rtx for the return address register.
9054 2002-03-18 Bob Wilson <bob.wilson@acm.org>
9056 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9057 constant-pool addresses as "mode-dependent".
9058 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9060 2002-03-18 Jakub Jelinek <jakub@redhat.com>
9063 * expr.c (emit_group_load): Use extract_bit_field if
9064 needed for CONCAT arguments.
9066 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
9069 * arm.md (tablejump): Make this a define_expand. For PIC add the
9070 offset to the base of the table.
9071 (thumb_tablejump): Matcher for Thumb tablejump insn.
9072 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9073 as the difference of two labels.
9074 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9075 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9077 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9078 * arm.c (get_jump_table_size): If the table is not in the text
9079 section, return zero.
9081 2002-03-18 Bernd Schmidt <bernds@redhat.com>
9083 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9085 (arm_reload_out_hi): Use gen_lowpart instead of
9086 gen_rtx_SUBREG to access QImode components.
9087 * config/arm/arm.md: Disable zero_extend split for QImode
9088 subregs in BIG_ENDIAN mode.
9089 (storehi_bigend): Match use of least significant byte.
9090 (storeinthi): Remove extraneous SUBREG.
9091 Add missing construction of operands[2].
9092 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9093 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9094 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9096 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
9098 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9101 2002-03-17 Richard Henderson <rth@redhat.com>
9103 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9106 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9108 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9109 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9111 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9113 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9115 * predict.c (estimate_bb_frequencies): Delete unused variables.
9117 2002-03-17 Richard Henderson <rth@redhat.com>
9119 * config/ia64/ia64.c (ia64_attribute_table): Move before
9120 targetm definition. Make static.
9122 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9124 * c-common.h (yyparse, c_common_parse_file): New.
9125 * c-lang.c: Include c-common.h.
9126 (LANG_HOOKS_PARSE_FILE): Redefine.
9127 * c-lex.c: Include c-common.h.
9128 (yyparse): Rename c_common_parse_file. Call yyparse.
9129 * c-parse.in (yyparse): Remove macro.
9130 * c-tree.h (yyparse_1): Remove.
9131 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9132 (LANG_HOOKS_INITIALIZER): Update.
9133 * langhooks.h (struct lang_hoooks): New hook parse_file.
9134 * toplev.c (compile_file): Use parse_file hook.
9135 * tree.h (yyparse): Remove.
9136 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9138 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9140 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9141 float_truncate, not fix.
9142 ("*truncdfsf2_real"): Ditto.
9143 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9145 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9147 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9149 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9150 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9151 where appropriate. Make the second reference to
9152 leaf_function_p a function call, as intended. Reindented.
9154 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9155 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9157 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9158 add register to non-constant into sp.
9160 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9161 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9162 (mips16_gp_pseudo_rtx): Lose.
9163 (INIT_EXPANDERS): Deleted.
9164 * config/mips/mips.c (mips_init_machine_status): New.
9165 (mips_free_machine_status): New.
9166 (mips_mark_machine_status): New.
9167 (override_options): Set them.
9168 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9169 (struct machine_function): ... new. Replaced all references.
9170 (mips_add_gc_roots): Don't mark them.
9171 (embedded_pic_fnaddr_reg): New, extracted from...
9172 (embedded_pic_offset): ... here.
9173 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9176 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9178 * cppinit.c: Revert -MD removal.
9180 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9182 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9183 soft registers by default for 68HC12.
9184 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9185 when compiling with -fomit-frame-pointer.
9186 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9187 (expand_epilogue): Likewise.
9188 (m68hc11_gen_rotate): Use exg when rotating by 8.
9190 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9192 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9193 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9194 (splits): Remove unused add splits.
9195 ("*addhi3_68hc12"): Tune constraints.
9196 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9197 constant fits in 8-bits and D is dead use abx/aby instructions.
9198 ("*addhi3"): Remove extern declaration of ix_reg.
9199 ("*subsi3"): Optimize and provide new split.
9200 ("subhi3"): Cleanup.
9201 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9202 (arith splits): For 68hc12 save the address register on the stack
9203 and do the arithmetic operation with a pop.
9205 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9207 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9208 allocating QImode in address registers.
9209 ("*movqi_m68hc11"): Likewise.
9211 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9213 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9215 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9217 * cppinit.c (print_help): Display -MD and -MMD.
9218 Don't display usage string. Update assertion syntax and
9220 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9221 (cpp_handle_option): Update.
9223 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9225 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9226 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9227 and define it so that regardless of target CPU size,
9228 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9229 of "int" rather than "long."
9231 2002-03-15 Richard Henderson <rth@redhat.com>
9233 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9236 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9238 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9239 ("tstqi" split): Avoid using memory for tstqi on address register.
9240 (splits): Remove constraints.
9241 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9242 ("cmpdf", "cmpsf"): Remove since not used.
9243 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9244 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9246 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9248 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9249 ("neghi2"): Tighten constraints.
9250 ("one_cmplsi2"): Optimize and simplify split.
9251 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9253 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9255 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9256 and split of AND operation to clear the upper bits.
9257 ("*logicalsi3_zextqi"): Likewise.
9258 ("*logicallhi3_zexthi_ashift8"): Likewise.
9259 ("*logicalsi3_silshr16"): Likewise.
9260 ("logicalsi3_silshl16"): Likewise.
9261 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9263 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9265 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9266 (m68hc11_indirect_p): New function.
9267 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9268 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9270 (asm_print_register): Likewise.
9271 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9272 (m68hc11_indirect_p): Declare.
9273 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9274 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9275 (TARGET_SWITCHES): New option -mrelax.
9276 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9278 ("iorsi3", "xorsi3"): Likewise.
9279 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9280 ("*andhi3_mem"): New to handle destination in memory with bclr
9281 and a scratch register.
9282 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9283 ("*andhi3_const"): New when operand2 is constant.
9284 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9285 ("*andhi3_gen"): Cleanup of the old "andhi3".
9286 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9287 ("xorqi3"): Update constraints.
9289 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9291 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9292 for reg_equiv_memory_loc when the operand is a register that does
9293 not get a hard register (stack location).
9294 (tst_operand): After reload, accept all memory operand.
9295 (symbolic_memory_operand): Fix detection of symbolic references.
9296 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9297 accept symbols and any constant.
9299 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9301 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9302 note on the insn that sets the soft frame register.
9303 (must_parenthesize): ix and iy are also reserved names.
9304 (print_operand_address): One more place where parenthesis are required
9305 to avoid confusion with register names.
9306 (m68hc11_gen_movhi): Allow push of stack pointer.
9307 (m68hc11_check_z_replacement): Fix handling of parallel with a
9309 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9310 the replacement register is.
9311 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9312 and D8_REGS classes.
9313 (MODES_TIEABLE_P): All modes are tieable except QImode.
9315 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9317 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9318 (___subdi3): Likewise.
9319 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9320 (__map_data_section): Optimize 68hc11 case.
9322 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9324 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9325 than a shift to avoid adding a register with itself.
9326 (m68hc11_memory_move_cost): Take into account NO_REGS.
9327 (m68hc11_register_move_cost): Update and use memory move cost
9329 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9330 it gives more opportunities to cse to optimize.
9331 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9332 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9334 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9336 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9337 * c-common.def (CLEANUP_STMT): New tree node.
9338 * c-common.h (CLEANUP_DECL): New macro.
9339 (CLEANUP_EXPR): Likewise.
9340 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9341 * expr.c (expand_expr): Tidy.
9342 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9343 * tree-inline.c (initialize_inlined_parameters): Clean up
9344 new local variables.
9346 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9349 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9350 before movrXX only, use reg_overlap_mentioned_p.
9351 Only special case NE if just one insn can be generated.
9353 2002-03-15 Jason Merrill <jason@redhat.com>
9355 * varasm.c (assemble_variable): Call resolve_unique_section before
9356 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9359 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9362 * arm.md (split pattern for thumb shiftable immediates): Add comment
9363 explaining non-obvious test.
9365 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9368 * arm.md (movaddr, movaddr_insn): Delete.
9370 2002-03-15 Jason Merrill <jason@redhat.com>
9372 * toplev.c (wrapup_global_declarations): Clarify variable handling.
9373 -fkeep-static-consts doesn't apply to comdats.
9375 2002-03-14 Richard Henderson <rth@redhat.com>
9377 * c-decl.c: Include c-pragma.h.
9378 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9379 (finish_function): Tidy.
9380 * c-pragma.c: Include c-common.h.
9381 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9382 (handle_pragma_weak): Use them.
9383 (init_pragma): Register pending_weaks.
9384 * c-pragma.h (maybe_apply_pragma_weak): Declare.
9385 * print-tree.c (print_node): Print DECL_WEAK.
9386 * varasm.c (mark_weak_decls): Remove.
9387 (remove_from_pending_weak_list): Remove.
9389 (asm_emit_uninitialised): Call globalize_decl for weak commons.
9390 (weak_decls): Make a tree_list.
9391 (declare_weak): Cons weak_decls directly.
9392 (globalize_decl): Remove weak_decls elements directly.
9393 (weak_finish): Simplify weak_decls walk. Don't weaken unused
9394 symbols. Don't pretend to handle aliases.
9395 (init_varasm_once): Update weak_decls registry.
9396 * Makefile.in: Update dependencies.
9398 2002-03-14 Richard Henderson <rth@redhat.com>
9401 * config/ia64/ia64.c: Include tm_p.h last.
9402 (gen_nop_type): Remove duplicate definition.
9403 (cycle_end_fill_slots): Set sched_data for second L slot.
9404 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9405 (nop_cycles_until): Fix typos.
9407 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9409 PR optimization/5891
9410 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9412 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9414 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9415 descriptors correctly.
9417 2002-03-14 Michael Meissner <meissner@redhat.com>
9419 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9420 100, allowing MAX_UNROLLED_INSNS to be overridden.
9422 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9425 * unroll.c (params.h): Include.
9426 (MAX_UNROLLED_INSNS): Delete, now in params.h.
9428 * doc/invoke.texi (--param max-unroll-insns): Document.
9430 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9432 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9434 * arm.md: Fix warnings about constraints in peepholes and splits.
9436 2002-03-14 Zack Weinberg <zack@codesourcery.com>
9438 * cpphash.h (struct lexer_state): Remove line_extension member.
9439 * cpplib.c (dequote_string, do_linemarker): New functions.
9440 (linemarker_dir): New data object.
9441 (DIRECTIVE_TABLE): No longer need to interpret #line in
9442 preprocessed source. Delete obsolete comment about return
9444 (end_directive, directive_diagnostics, _cpp_handle_directive):
9445 Don't muck with line_extension.
9446 (directive_diagnostics): No need to issue warnings for
9448 (_cpp_handle_directive): Issue warnings for linemarkers here,
9449 when appropriate. Dispatch linemarkers to do_linemarker, not
9451 (do_line): Code to handle linemarkers split out to do_linemarker.
9452 Convert escape sequences in filename argument, both places.
9454 * cppmacro.c (quote_string): Rename cpp_quote_string and
9455 export. All callers changed.
9456 * cpplib.h (cpp_quote_string): Prototype.
9457 * cppmain.c (print_line): Call cpp_quote_string on to_file
9460 * doc/cpp.texi: Document that escapes are now interpreted in
9461 #line and in linemarkers, and that non-printing characters are
9462 converted to octal escapes when linemarkers are generated.
9464 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
9466 * emit-rtl.c (try_split): Use delete_insns.
9467 * recog.c (split_all_insns): Fix terminating condition.
9469 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9470 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9473 * arm.c (arm_output_epilogue): Fix floating-point register save
9474 adjustment when using a frame pointer.
9476 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
9478 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9479 * config/mips/mips.c (compute_frame_size): Retrofit them here.
9480 (save_restore_insns, mips_expand_epilogue): And here.
9481 (build_mips16_call_stub): And here.
9482 (mips_function_value): Use the new macros to decide whether a single
9483 or complex float can be returned in floating-point registers. Return
9484 a parallel rtx in the complex case.
9486 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
9488 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9489 call after liveness analysis.
9491 * recog.c (split_insn): Use delete_insn_and_edges.
9493 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9494 instructions to have branch prediction notes.
9495 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9497 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
9499 * configure.in: Don't pass -Wno-long-long to a ADA compiler
9500 that doesn't support it.
9501 * configure: Regenerate.
9503 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9506 * config/sparc/sparc.md (normal_branch, inverted_branch,
9507 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9508 inverted_fp_branch): Adjust calls to output_cbranch.
9509 Set length attribute.
9510 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9511 output_v9branch. Set length attribute.
9512 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9514 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9515 (output_cbranch): Likewise. Handle far branches.
9516 (output_v9branch): Handle far branches.
9517 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9519 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9520 noov_compare64_op predicates.
9522 2002-03-13 Jason Merrill <jason@redhat.com>
9524 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9525 into the function and constify it.
9526 * gthr-dce.h, gthr-solaris.h: Likewise.
9528 2002-03-13 David Edelsohn <edelsohn@gnu.org>
9530 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9531 * config/rs6000/rs6000.c (rs6000_va_arg): Use
9532 std_expand_builtin_va_arg if not ABI_V4.
9534 2002-03-13 Jason Merrill <jason@redhat.com>
9536 * varasm.c (globalize_decl): New fn.
9537 (assemble_start_function): Use it.
9538 (asm_emit_uninitialized): Use it.
9539 (assemble_alias): Use it.
9540 (assemble_variable): Use it.
9542 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
9544 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9545 2002-03-12 internal visibility change.
9546 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9547 visibility into SYMBOL_REF_FLAG.
9549 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
9551 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9552 VOIDmode operand. Add compile-time optimization for constant results.
9554 2002-03-12 Jason Merrill <jason@redhat.com>
9556 * c-typeck.c (convert_for_assignment): Don't allow conversions
9557 between pointers and references. Only allow lvalues to convert to
9560 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
9562 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9563 before prologue, to avoid scheduling problems.
9565 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9567 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9568 (ELIMINABLE_REGS): Add sfp->sp.
9569 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9571 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9573 PR optimization/5892
9574 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9576 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9578 * loop.c (basic_induction_var): Don't call convert_modes if mode
9579 classes are different.
9581 2002-03-12 Richard Henderson <rth@redhat.com>
9583 PR optimization/5901
9584 * function.c (reposition_prologue_and_epilogue_notes): Position
9585 the markers after/before the last/first insn not deleted.
9587 2002-03-12 Richard Henderson <rth@redhat.com>
9589 PR optimization/5878
9590 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9591 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9592 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9594 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9595 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9596 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9598 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9599 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9600 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9601 also. Don't set it if not flag_pic.
9602 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9603 to be INVALID_REGNUM when not used.
9605 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
9607 * expmed.c (store_bit_field): Reset alias set for memory.
9608 (extract_bit_field): Same.
9610 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9612 * c-common.c (c_tree_code_type, c_tree_code_length,
9613 c_tree_code_name, add_c_tree_codes): Delete.
9614 * c-common.h (add_c_tree_codes): Delete.
9615 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9617 * c-objc-common.c (c_objc_common_init): Don't call
9618 add_c_tree_codes, instead set lang_unsafe_for_reeval.
9619 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9620 objc_tree_code_name, add_objc_tree_codes): Delete.
9621 (objc_init): Don't call add_objc_tree_codes.
9622 * objc/objc-lang.c (tree_code_type, tree_code_length,
9623 tree_code_name): Define.
9624 * toplev.c (lang_independent_init): Don't set
9625 tree_code_length[IDENTIFIER_NODE].
9626 * tree.c (tree_code_type, tree_code_length, tree_code_name):
9627 Delete definitions, moved to language front-ends.
9628 * tree.def (IDENTIFIER_NODE): Hardwire the length.
9629 * tree.h (tree_code_type, tree_code_length, tree_code_name):
9631 (tree_code_length): Change type to unsigned char.
9633 2002-03-12 Richard Henderson <rth@redhat.com>
9635 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9636 internal visibility change.
9638 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9640 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9641 validize_mem() instead of change_address to avoid clobbering
9644 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
9646 * c-lex.h (position_after_whitespace): Remove.
9648 2002-03-12 Jakub Jelinek <jakub@redhat.com>
9650 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9651 (lex_string): Use unsigned char pointers.
9653 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9655 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9656 is not a valid memory_operand.
9658 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9660 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9661 * config/xtensa/lib1funcs.asm: Fix copyright to include
9662 special case for libgcc files.
9663 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9664 (__divsi3): Likewise.
9665 (__umodsi3): Likewise.
9666 (__modsi3): Likewise.
9667 * config/xtensa/lib2funcs.S: Fix copyright to include
9668 special case for libgcc files.
9670 2002-03-12 Tom Rix <trix@redhat.com>
9672 * collect2.c (resolve_lib_name): Move outside of
9673 OBJECT_FORMAT_COFF ifdef.
9674 (ignore_library): Same.
9676 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9678 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9680 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9682 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9683 to function_section before writing out the constant pool.
9685 2002-03-12 David Edelsohn <edelsohn@gnu.org>
9687 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9689 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9691 2002-03-12 Alan Modra <amodra@bigpond.net.au>
9693 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9697 (cmpsi splitter): Likewise.
9698 (modsi3): Fail if <= 0.
9699 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9700 redundant test when HOST_BITS_PER_WIDE_INT != 32.
9701 (reg_or_sub_cint64_operand): Likewise.
9702 (num_insns_constant_wide): Optimize sign extension.
9703 (rs6000_legitimize_address): Likewise.
9705 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9707 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9708 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9710 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9712 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9713 address calculation.
9715 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9717 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9718 scratch register to DImode / TImode.
9719 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9720 register used does not overlap the target.
9722 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9724 * Makefile.in (debug.o): Depend on debug.h.
9725 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9726 * debug.c (do_nothing_debug_hooks): Likewise.
9727 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9728 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9729 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9730 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9731 * dwarfout.c (dwarf_debug_hooks): Likewise.
9732 * integrate.c (output_inline_function): Likewise.
9733 * objc/objc-act.c (synth_module_prologue): Likewise.
9734 * sdbout.c (sdb_debug_hooks): Likewise.
9735 * toplev.c (debug_hooks): Likewise.
9736 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9738 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9740 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9741 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9742 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9743 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9744 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9745 * defaults.h (POINTER_SIZE): Define.
9746 * doc/tm.texi (POINTER_SIZE): Document default.
9748 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9750 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9752 2002-03-11 Richard Henderson <rth@redhat.com>
9754 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9755 if rebuild_label_notes_after_reload.
9757 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
9759 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
9760 emit pic register load if "internal" visibility.
9761 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9762 (cris_expand_builtin_va_arg): Do all computations on trees.
9764 2002-03-11 Richard Henderson <rth@redhat.com>
9766 * rtlanal.c: Include recog.h.
9767 (keep_with_call_p): Fix thinko.
9768 * Makefile.in (rtlanal.o): Update dependencies.
9770 2002-03-11 Chris Meyer <cmeyer@gatan.com>
9772 * genflags.c (gen_insn): Use IS_VSPACE.
9773 * genoutput.c (output_insn_data): Likewise.
9774 (process_template): Likewise.
9776 2002-03-11 Richard Henderson <rth@redhat.com>
9778 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9780 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
9782 * Makefile.in: Update.
9783 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9784 Update documentation.
9785 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9786 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9788 2002-03-11 Zack Weinberg <zack@codesourcery.com>
9790 * Makefile.in: Give texi2pod its input file as a command line
9791 argument, not on stdin.
9793 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
9794 Daniel Berlin <dan@dberlin.org>
9796 C++ alias analysis improvement.
9797 * alias.c (record_component_aliases): Record aliases for base
9800 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
9802 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9804 2002-03-11 Douglas B Rupp <rupp@gnat.com>
9806 * toplev.c (vms_fopen): Remove, not needed.
9808 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9810 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9812 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9813 for FP, already done later.
9815 * toplev.c (debug_args): Add entry for VMS_DEBUG.
9816 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9818 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
9820 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9821 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9822 LARGEST_EXPONENT_IS_NORMAL for the given mode.
9823 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9824 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9825 (ediv, emul, eldexp, esqrt): Likewise.
9826 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9827 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9828 (saturate): New function.
9829 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9830 (make_nan): Use a saturation value instead of a NaN if
9831 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
9832 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
9833 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
9834 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
9835 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
9836 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
9837 !ROUND_TOWARDS_ZERO.
9838 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
9839 (ROUND_TOWARDS_ZERO): Document.
9841 2002-03-11 Andreas Jaeger <aj@suse.de>
9843 * cfg.c (dump_flow_info): Remove unused variable.
9845 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
9847 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
9848 computations on trees.
9850 2002-03-10 Richard Henderson <rth@redhat.com>
9853 * reload.c (copy_replacements_1): New.
9854 (copy_replacements): Use it to recurse through the rtx.
9856 2002-03-10 Richard Henderson <rth@redhat.com>
9858 * loop.c (strength_reduce): Compute number of iterations as
9859 unsigned HOST_WIDE_INT.
9861 2002-03-10 Richard Henderson <rth@redhat.com>
9863 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
9864 to move away from the end of the block.
9866 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
9868 PR preprocessor/5899
9869 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
9871 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9873 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
9875 * attribs.c (decl_attributes): Fix signed/unsigned warning.
9877 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
9879 * config/mmix/mmix.c: Improve comments.
9880 (mmix_target_asm_function_prologue): Drop variable
9881 empty_stack_frame. Don't allocate unused slot above fp.
9882 (mmix_target_asm_function_epilogue): Mirror prologue changes.
9883 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
9884 brace in first column.
9885 (enum reg_class): Ditto.
9886 (FIRST_PARM_OFFSET): Now 0.
9887 (USER_LABEL_PREFIX): Remove #if 0:d definition.
9889 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9891 * combine.c (make_extraction): Fix error in last change.
9893 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9895 * c4x.c (c4x_fp_reglist): Const-ify.
9896 * cris.c (cris_print_operand): Likewise.
9897 * i386.c (ix86_va_arg): Likewise.
9898 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
9899 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
9900 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
9901 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
9902 * mcore.h (regno_reg_class): Likewise.
9903 * mips.c (gen_int_relational): Likewise.
9904 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
9905 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
9906 * pdp11.c (move_costs): Likewise.
9907 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
9908 * s390.c (s390_branch_condition_mnemonic, regclass_map):
9910 * s390.h (regclass_map): Likewise.
9911 * sh.c (shift_amounts): Likewise.
9912 * sh.md (rotlsi3): Likewise.
9914 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9916 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
9917 (ne0+5): Use new clobber to generate proper shift pattern.
9918 Patch by Michael Matz <matz@kde.org>.
9920 2002-03-09 Andreas Schwab <schwab@suse.de>
9922 * gcc.c (validate_all_switches): Also handle `%W{...}'.
9924 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9926 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
9928 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9931 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
9932 even for non-representable constants.
9934 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9936 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
9937 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
9938 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
9939 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
9940 (pop_function_context): Compute MAY_SHARE parameter for
9942 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
9943 (gen_mem_addressof): Call fixup_var_refs with new parm.
9945 * combine.c (make_extraction): Don't make extension of CONST_INT.
9947 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9949 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
9950 in o32 and o64 ABIs.
9951 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
9952 but getting fixed-size structs passed in registers regardless of
9953 padding in o32 and o64 ABIs.
9955 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
9956 offset before loading address of argument passed by transparent
9959 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
9961 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
9963 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9965 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
9966 marker such that registers after it are saved.
9968 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9970 * sparc.c (arith_4096_operand): Fix error in last change.
9972 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9974 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
9977 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9979 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
9982 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9984 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
9986 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
9988 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
9989 removed; fix return value.
9990 * combine.c (combine_instructions): Dirtify blocks where we failed to
9991 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
9992 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
9994 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9996 * gcse.c (insert_insn_end_bb): Fix typo in last change.
9998 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
10000 * recog.c (peephole2_optimize): Re-distribute EH edges.
10002 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
10004 * expr.c (expand_expr): Use unsave lang hook.
10005 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10006 (LANG_HOOKS_INITIALIZER): Update.
10007 * langhooks.h (struct lang_hooks): New hook unsave.
10008 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10009 (unsave_expr_1): Remove unused lang_unsave_expr_now.
10010 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
10011 (unsave_expr_now): Remove.
10012 * tree.h (unsave_expr_now, lang_unsave,
10013 lang_unsave_expr_now): Remove.
10016 2002-03-08 Andreas Jaeger <aj@suse.de>
10018 * flow.c (propagate_block_delete_insn): Remove unused variable.
10020 2002-03-08 Kazu Hirata <kazu@hxi.com>
10022 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10023 insn length for memory load/store.
10025 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
10027 * doc/install.texi (--with-libiconv-prefix): Document.
10029 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
10031 * doc/sourcebuild.texi: Fix typo.
10033 2002-03-08 Jakub Jelinek <jakub@redhat.com>
10036 * builtins.c (std_expand_builtin_va_arg): Do all computations on
10039 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10041 * rtl.c (copy_most_rtx): Move from here ...
10042 * emit-rtl.c (copy_most_rtx): ... to here.
10044 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10046 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10047 SUBTARGET_CPP_SIZE_SPEC.
10048 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10050 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10052 2002-03-07 Matt Hiller <hiller@redhat.com>
10054 * gensupport.c (first_dir_md_include): Renamed from include;
10055 change all references.
10056 (last_dir_md_include): Renamed from last_include; change all
10058 (init_md_reader): Unconditionally initialize base_dir whether or
10059 not filename is a relative path.
10061 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
10063 * config/fp-bit.c (_unord_f2): Compile it in even if
10064 US_SOFTWARE_GOFAST is enabled.
10066 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10067 NULL_RTX. Set all HFmode operations as NULL_RTX.
10068 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10069 NULL_RTX, try reversing the comparison and the operands.
10071 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10073 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10074 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10077 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
10079 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10081 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10083 * basic-block.h (fixup_abnormal_edges): Declare.
10084 * reload1.c (fixup_abnormal_edges): New function.
10085 * reg-stack.c (convert_regs): Use it.
10087 * gcse.c (insert_insn_end_bb): Handle trapping insns.
10089 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10091 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
10093 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10094 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10095 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10096 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10097 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10098 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10099 unless x and y could be infinite.
10100 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10101 Check that the common type of both arguments is a real, even for
10102 targets without unordered comparisons. Allow an integer argument
10103 to be compared against a real.
10104 (expand_tree_builtin): Use expand_unordered_cmp.
10105 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10106 * cse.c (fold_rtx): Likewise. Fix indentation.
10107 * fold-const.c (fold_real_zero_addition_p): New.
10108 (fold): Use it, and the new HONOR_... macros.
10109 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10110 * jump.c (reversed_comparison_code_parts): After searching for
10111 the true comparison mode, use HONOR_NANS to decide whether it
10112 can be safely reversed.
10113 (reverse_condition_maybe_unordered): Remove IEEE check.
10114 * simplify-rtx.c (simplify_binary_operation): Use the new macros
10115 to decide which simplifications are valid. Allow the following
10116 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10117 and (a - -b) to (a + b).
10118 (simplify_relational_operation): Use HONOR_NANS.
10119 * doc/tm.texi: Document the MODE_HAS_... macros.
10121 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10123 * combine.c (simplify_comparison): If simplifying a logical shift
10124 right and compare with constant, force the comparison to unsigned.
10126 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
10128 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10130 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10132 (alt_reg_names): Remove % for vrsave.
10134 2002-03-06 Richard Henderson <rth@redhat.com>
10136 PR optimization/5844
10137 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
10138 if used indicates we've already emitted one copy of an operand.
10139 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10140 (gen_split): Supply a non-null used.
10142 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10144 * reload1.c (reload): Unshare all rtl after reload is done.
10146 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10147 but simply fail if the expression is too complex to simplify.
10148 (simplify_gen_binary): Handle simplify_plus_minus failures.
10150 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10152 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10153 consistently call delete_trivially_dead_insns after CSE and GCSE;
10154 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10155 after liveness2; update comment in last crossjumping.
10156 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10158 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10160 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10161 after completing fast dead code elimination.
10163 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10166 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10168 * version.c: Fix misplaced leading blanks on first line.
10170 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10172 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10174 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10176 * cfgcleanup.c (mentions_nonequal_regs): New function.
10177 (thread_jump): Use it.
10178 * toplev.c (rest_of_compilation): Run jump threading after
10181 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10183 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10186 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10188 * predict.c (estimate_bb_frequencies): Do not reload the
10189 frequencies from notes.
10191 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10193 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10194 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10196 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10197 delete_noop_moves): Return indeger.
10198 * flow.c (ndead): New variable.
10199 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10200 BB argument; update callers.
10201 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10202 (life_analysis): Do not call purge_all_dead_edges.
10203 (update_life_info): Return number of deleted insns; print statistics.
10204 (update_life_info_in_dirty_blocks): likewise.
10205 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10206 return number of insns deleted.
10208 * cse.c: Include timevar.h
10209 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10210 iterate until stabilizes; print statistics; return number of killed
10212 * Makefile.in: (cse.o): Add timevar.h dependency
10213 * rtl.h (delete_trivially_dead_insns): New.
10214 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10215 * toplev.c (rest_of_compilation): Update callers.
10217 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10218 (try_optimize_cfg): Do not update liveness.
10219 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10220 removal stabilizes; use delete_trivially_dead_insns.
10222 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10224 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10226 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10227 callbacks when processing assembly language.
10229 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10231 * pa.h (ASM_FILE_END): Define.
10232 * som.h (ASM_FILE_END): Delete.
10234 * pa.c (function_arg): Don't pass floats in general registers in
10235 indirect calls if TARGET_ELF32.
10237 2002-03-05 Richard Henderson <rth@redhat.com>
10239 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10241 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10243 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10245 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10247 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10248 -r command line. Don't hide any symbols if not building
10251 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10253 * cfg.c (dump_flow_info): Warn about profile mismatches.
10254 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10255 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10257 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10259 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10260 wide volatile memory by parts.
10262 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10264 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10267 2002-03-05 Richard Henderson <rth@redhat.com>
10269 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10271 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10273 * toplev.c (documented_lang_options): Document more
10274 language-specific options.
10275 * doc/invoke.texi (Warning Options): Correct documentation for
10276 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10277 * c-decl.c (c_decode_option): Use a table to handle warning options.
10279 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10281 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10282 parameter to mmix_encode_section_info.
10283 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10284 relocatably. Always produce ELF, not mmo if linking relocatably.
10285 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10286 first is non-zero, don't add symbol prefix.
10287 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10288 prototype accordingly.
10290 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10292 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10294 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10296 * configure.in: Increase required makeinfo version to 4.1.
10297 * configure: Regenerate.
10299 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10301 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10304 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10306 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10307 * doc/invoke.texi: Fix @math uses.
10309 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10311 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10314 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10316 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10317 (powerpc-*-eabisimaltivec*): Same.
10319 * config/rs6000/t-ppcendian: New.
10321 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10323 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10324 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10325 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10327 2002-03-03 Richard Henderson <rth@redhat.com>
10329 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10331 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10333 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10334 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10335 tree.c, config/m68k/m68k.c:
10336 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10337 REAL_ARITHMETIC blocks unconditional. Delete some further
10338 #ifdef blocks predicated on REAL_ARITHMETIC.
10339 * flags.h, toplev.c: Delete remaining references to
10340 flag_pretend_float.
10342 * doc/invoke.texi: Remove documentation of -fpretend-float.
10343 * doc/tm.texi: Describe the various REAL_* macros as provided by
10344 real.h, not by the target configuration files.
10346 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10347 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10348 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10349 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10350 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10351 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10352 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10353 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10354 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10355 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10356 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10357 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10358 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10359 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10360 config/xtensa/xtensa.h:
10361 Do not define, undefine, or mention in comments any of
10362 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10363 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10364 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10365 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10366 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10367 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10368 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10369 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10370 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10372 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10374 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10375 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10376 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10377 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10378 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10379 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10381 * defaults.h (BITS_PER_WORD): Define.
10382 * doc/tm.texi (BITS_PER_WORD): Document default value.
10384 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10385 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10386 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10388 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10390 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10391 lieu of explicit sizeof/sizeof.
10392 * i386.c (override_options, ix86_init_mmx_sse_builtins,
10393 ix86_expand_builtin): Likewise.
10394 * mips.c (mips_add_gc_roots): Likewise.
10395 * mmix.c (mmix_output_condition): Likewise.
10396 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10397 altivec_init_builtins): Likewise.
10398 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10399 * cppexp.c (Nsuff, parse_number): Likewise.
10400 * cppinit.c (builtin_array_end): Likewise.
10401 * gcc.c (n_default_compilers, process_command): Likewise.
10402 * genpreds.c (output_predicate_decls): Likewise.
10403 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10404 * lcm.c (N_ENTITIES): Likewise.
10405 * stor-layout.c (set_sizetype): Likewise.
10407 2002-03-03 Richard Henderson <rth@redhat.com>
10409 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10410 for types or labels.
10412 2002-03-03 Richard Henderson <rth@redhat.com>
10414 * c-decl.c (start_decl): Initialized variables are not common.
10416 2002-03-02 Per Bothner <per@bothner.com>
10418 * gcc.c (option_map): Suport new --bootclasspath option.
10419 --CLASSPATH is now just an alias for --classpath.
10421 2002-03-02 Richard Henderson <rth@redhat.com>
10423 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10424 load if "internal" visibility.
10425 * doc/extend.texi: Document visibility meanings.
10427 2002-03-02 Richard Henderson <rth@redhat.com>
10429 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10430 to functions as well.
10432 2002-03-02 Richard Henderson <rth@redhat.com>
10434 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10435 (handle_visibility_attribute): Don't call assemble_visibility.
10436 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10437 without asmspec. Invoke assemble_alias when needed.
10438 * varasm.c (maybe_assemble_visibility): New.
10439 (assemble_start_function, assemble_variable, assemble_alias): Use it.
10441 2002-03-02 Richard Henderson <rth@redhat.com>
10443 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10444 invoke ENCODE_SECTION_INFO with first call flag.
10446 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10447 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10448 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10449 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10450 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10451 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10452 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10453 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10454 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10455 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10456 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10457 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10458 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10459 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10460 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10461 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10462 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10463 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10464 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10465 config/sh/sh.h, config/sparc/sparc.h,
10466 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10467 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10468 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10469 FIRST argument. As needed, examine it and do nothing.
10471 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10472 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10473 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10475 * config/arm/t-pe (pe.o): Add dependencies.
10477 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10479 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10480 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10481 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10482 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10483 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10484 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10485 * defaults.h (BITS_PER_UNIT): Define.
10486 * doc/tm.texi (BITS_PER_UNIT): Document default value.
10488 2002-03-02 Kazu Hirata <kazu@hxi.com>
10490 * config/h8300/h8300-protos.h: Add a prototype for
10491 compute_a_shift_length.
10492 * config/h8300/h8300.c (h8300_asm_insn_count): New.
10493 (compute_a_shift_length): Likewise.
10494 (h8300_adjust_insn_length): Do not adjust insn length of shift
10496 * config/h8300/h8300.md (anonymous shift patterns): Use
10497 compute_a_shift_length.
10499 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10501 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10502 trunc_int_for_mode.
10504 * emit-rtl.c (offset_address): Call update_temp_slot_address.
10506 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10508 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10509 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10510 * flags.h (flag_zero_initialized_in_bss): Declare.
10511 * toplev.c (flag_zero_initialized_in_bss): New flag.
10512 (lang_independent_options): Add flag_zero_initialized_in_bss.
10513 * tree.c (initializer_zerop): New function.
10514 * tree.h (initializer_zerop): Declare.
10515 * varasm.c (assemble_variable): If we can emit bss, put zero
10516 initializers in the bss section.
10518 2002-03-02 Alan Modra <amodra@bigpond.net.au>
10520 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10521 like more than one symbol per .weak directive.
10523 2002-03-01 Richard Henderson <rth@redhat.com>
10525 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10526 adjust argument_pointer by pretend_args_size.
10527 (ia64_va_start): Adjust va_start address by -pretend_args_size.
10529 2002-03-01 Kazu Hirata <kazu@hxi.com>
10531 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10533 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
10535 * toplev.c (rest_of_compilation): Delete dead jumptables before
10537 * flow.c (delete_dead_jumptables): Make global.
10538 * rtl.h (delete_dead_jumptables): Declare.
10540 2002-03-01 David Edelsohn <edelsohn@gnu.org>
10542 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10543 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10544 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10546 2002-03-01 Kazu Hirata <kazu@hxi.com>
10548 * config/h8300/h8300-protos.h: Fix formatting.
10549 * config/h8300/h8300.c: Likewise.
10550 * config/h8300/h8300.h: Likewise.
10552 2002-03-01 Kazu Hirata <kazu@hxi.com>
10554 * config/h8300/h8300.c (print_operand): Support 16-bit
10555 constant addresses.
10556 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10558 2002-02-28 Richard Henderson <rth@redhat.com>
10560 * expmed.c (store_bit_field): Prevent generation of CONCATs;
10561 pun complex values as integers; use gen_lowpart instead of
10563 (extract_bit_field): Likewise.
10565 2002-03-01 Alan Modra <amodra@bigpond.net.au>
10566 David Edelsohn <edelsohn@gnu.org>
10568 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10569 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10570 (SUPPORTS_WEAK): Likewise.
10571 * output.h (add_weak): Add tree param.
10572 * varasm.c (add_weak): Likewise. Save decl.
10573 (struct weak_syms): Add decl field.
10574 (mark_weak_decls): New function.
10575 (init_varasm_once): ggc_add_root mark_weak_decls.
10576 (assemble_start_function): Use ASM_WEAKEN_DECL.
10577 (assemble_variable): Likewise.
10578 (assemble_alias): Likewise.
10579 (declare_weak): Pass decl to add_weak.
10580 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10581 (remove_from_pending_weak_list): Declare and define for
10583 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10584 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10585 * defaults.h (SUPPORTS_WEAK): Likewise.
10586 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10587 .weak for code sym. Do emit .size for descriptor sym.
10588 (ASM_DECLARE_FUNCTION_SIZE): Define.
10589 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10590 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
10591 .lglobl unless TARGET_XCOFF. Formatting fixes.
10592 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10593 .weak for code sym.
10594 (HANDLE_PRAGMA_WEAK): Remove.
10595 (ASM_WEAKEN_LABEL): Remove.
10596 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10598 2002-03-01 Jason Merrill <jason@redhat.com>
10600 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10601 (TARGET_EXPR_CLEANUP): New macro.
10603 2002-02-28 Steve Ellcey <sje@cup.hp.com>
10605 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10606 to take ptr_extend into account as third type of extension.
10607 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10608 fields used by SUBREG_PROMOTED_UNSIGNED_P.
10609 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10610 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10611 * calls.c (precompute_arguments): Use new macro.
10612 (expand_call): Ditto.
10613 * combine.c (nonzero_bits): Ditto.
10614 (record_promoted_value): Ditto.
10615 * expr.c (store_expr): Ditto.
10616 (expand_expr): Ditto.
10617 * function.c (assign_parms): Ditto.
10619 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
10621 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10622 override -shared and -shared-libgcc.
10624 2002-02-28 David O'Brien <obrien@FreeBSD.org>
10626 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10628 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
10631 2002-02-28 Richard Henderson <rth@redhat.com>
10633 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10634 4 cycle latency from MM producers.
10635 (ia64_internal_sched_reorder): Likewise with pipeline flush.
10637 2002-02-28 Jakub Jelinek <jakub@redhat.com>
10639 * mklibgcc.in: Don't use GNU make extension.
10641 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10643 * c-parse.in (STATIC): New terminal.
10644 (scspec): New non-terminal. Update productions accordingly.
10645 (program): Remove bogus ifc / end ifc.
10646 (array_declarator): Simplify production using STATIC.
10648 2002-02-28 Jim Meyering <meyering@lucent.com>
10650 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10651 \a still means TARGET_BELL.
10653 2002-02-28 Richard Henderson <rth@redhat.com>
10655 * haifa-sched.c (sched_emit_insn): New.
10656 (schedule_block): Use last_scheduled_insn to track last insn.
10657 * sched-int.h (sched_emit_insn): Prototype.
10658 * config/ia64/ia64.c (last_issued): Remove.
10659 (ia64_variable_issue): Don't set it.
10660 (nop_cycles_until): Use sched_emit_insn.
10662 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
10664 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10665 extended constants.
10667 2002-02-28 Kazu Hirata <kazu@hxi.com>
10669 * config/h8300/h8300.c: Fix formatting.
10670 * config/h8300/h8300.h: Likewise.
10672 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
10674 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10675 which may overwrite the high byte of the frame pointer.
10677 2002-02-28 Bo Thorsen <bo@suse.de>
10679 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10680 (STARTFILE_SPEC): Add 64 bit files.
10681 (ENDFILE_SPEC): Likewise.
10683 2002-02-28 Jason Merrill <jason@redhat.com>
10685 * c-decl.c (finish_function): Only warn about missing return
10686 statement with -Wreturn-type.
10688 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
10690 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10692 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10693 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10695 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
10697 * basic-block.h (BB_REACHABLE): Renumber.
10698 (BB_DIRTY, BB_NEW): New flags.
10699 (clear_bb_flags): Declare.
10700 (update_life_info_in_dirty_blocks): Declare.
10701 * cfg.c (clear_bb_flags): New function.
10702 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10703 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10704 reorder_insns, emit_insn_after): Mark block as dirty.
10705 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10706 (update_life_info_in_dirty_blocks): New function.
10707 * recog.c (apply_change_group): Dirtify block.
10709 * cse.c (cse_insn): Reorder emitting of jump insn to keep
10711 * gcse.c (delete_null_pointer_checks): Likewise.
10713 * toplev.c (dump_file_index): Move cse2 after bp,
10715 (dump_file_info): Similary.
10716 (rest_of_compilation): Avoid most of CFG rebuilds;
10717 do first if converision after null pointer checks, do cse2
10718 after branch prediction; avoid full liveness rebuild after
10719 initializing subregs.
10720 * invoke.texi (-d options): Document -du, renumber.
10722 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10723 (notice_new_block): Do not set BB_UPDATE_LIFE.
10724 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10725 merge_blocks_move_successor_nojumps, merge_blocks,
10726 try_crossjump_to_edge): Likewise.
10727 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10728 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10729 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10730 (merge_of_block): Do not use life_data_ok.
10731 (find_if_case_1): Do not use SET_UPDATE_LIFE.
10732 (if_convert): Use BB_DIRTY mechanizm to update life.
10733 * lcm.c (optimize_mode_switching): Update
10734 update_life_info_in_dirty_blocks
10736 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10738 * Makefile.in (integrate.o): Update.
10739 * c-decl.c (copy_lang_decl): Rename.
10740 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10741 * integrate.c: Include langhooks.h.
10742 (copy_decl_for_inlining): Update to use langhook.
10743 * langhooks-def.h (lhd_do_nothing_t,
10744 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10745 (LANG_HOOKS_INITIALIZER): Update.
10746 * langhooks.c (lhd_do_nothing_t): New.
10747 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10748 * tree.h (copy_lang_decl): Remove.
10750 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10752 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
10754 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10755 POST_DEC, and POST_MODIFY.
10757 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10759 * c-typeck.c (digest_init): Remove unused parameter; all
10762 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
10764 * expmed.c (expand_shift): Correctly test for low part of a
10767 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10769 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10770 insn UIDs with insn addresses.
10772 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10774 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10775 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10776 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10777 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10778 gcc.c, toplev.c: Delete code implementing -traditional mode.
10780 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10781 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10782 Document removal of -traditional mode for compilation, and
10783 remove documentation only relevant to that mode.
10785 * config/nextstep.h, config/ptx4.h, config/svr4.h,
10786 config/convex/convex.h, config/d30v/d30v.h,
10787 config/i386/dgux.h, config/i386/osf1elf.h,
10788 config/i386/osfelf.h, config/i386/osfrose.h,
10789 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10790 config/m68k/hp310.h, config/m88k/dgux.h,
10791 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10792 config/m88k/m88k.h, config/m88k/openbsd.h,
10793 config/mips/abi64.h, config/mips/osfrose.h,
10794 config/mips/svr4-5.h, config/mips/svr4-t.h,
10795 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10796 config/stormy16/stormy16.h: Remove all references to
10797 -traditional from target specs. Delete all mention of the
10798 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
10799 delete a couple of commented-out definitions of
10800 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10803 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10804 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10806 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10808 * mklibgcc.in: Don't use \n in a line subject to
10809 interpretation by echo.
10811 2002-02-27 Graham Stott <grahams@redhat.com>
10813 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10816 * loop.c (prescan_loop): Handle PARALLEL.
10818 * unroll.c (loop_iterations): Return 0 if the add_val for
10821 * final.c (output_operand_lossage): Constify PFX_STR.
10823 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10825 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
10827 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10828 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10830 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
10832 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10834 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
10836 * cpplex.c (_cpp_lex_token): Handle directives in macro
10838 * cpplib.c (_cpp_handle_directive): Save and restore state
10839 if parsing macro args when entering a directive.
10840 * cppmacro.c (collect_args): No need to handle directives
10841 in macro arguments.
10842 (enter_macro_context, replace_args): Use the original macro
10843 definition in case it was redefined whilst collecting arguments.
10845 * cpp.texi: Update.
10847 2002-02-26 David Edelsohn <edelsohn@gnu.org>
10849 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
10850 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
10851 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
10853 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
10854 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
10855 (load_toc_v4_PIC_2): Same.
10857 2002-02-26 Alan Modra <amodra@bigpond.net.au>
10859 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
10861 2002-02-26 Richard Henderson <rth@redhat.com>
10863 * config/alpha/alpha.md (ashldi_se): Re-enable.
10865 2002-02-26 Richard Henderson <rth@redhat.com>
10867 * config/alpha/alpha.c (alpha_encode_section_info): Examine
10868 MODULE_LOCAL_P; improve commentary.
10870 2002-02-26 Zack Weinberg <zack@codesourcery.com>
10872 * doc/cpp.texi: Clarify documentation of relationship between
10873 #line and #include.
10875 2002-02-26 Kazu Hirata <kazu@hxi.com>
10877 * config/h8300/h8300-protos.h: Update the prototype for
10878 compute_logical_op_length. Add the prototype for
10879 compute_logical_op_cc.
10880 * config/h8300/h8300.c (compute_logical_op_length): Figure out
10881 code from operands.
10882 (compute_logical_op_cc): New.
10883 * config/h8300/h8300.md: Combine all the logical op patterns
10884 in HImode and SImode. Use compute_logical_op_cc.
10886 2002-02-26 Kelley Cook <kelleycook@comcast.net>
10888 * config/i386/i386.c (print_operand): Don't append ATT-style
10889 length suffixs to x87 opcodes when in Intel mode.
10891 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
10893 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
10894 (init_emit_once): Update calls.
10895 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
10896 (init_syntax_once): Prototype.
10898 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
10900 * pa-linux.h (LIB_SPEC): Update definition.
10901 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10903 2002-02-26 Richard Henderson <rth@redhat.com>
10905 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
10906 if we emitted a stop bit.
10908 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10910 * configure.in (libgcc_visibility): Substitute.
10911 * configure: Rebuilt.
10912 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
10913 defined symbols .hidden.
10915 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10917 * attribs.c (c_common_attribute_table): Add visibility.
10918 (handle_visibility_attribute): New function.
10919 * varasm.c (assemble_visibility): New function.
10920 * output.h (assemble_visibility): Add prototype.
10921 * tree.h (MODULE_LOCAL_P): Define.
10922 * crtstuff.c (__dso_handle): Use visibility attribute.
10923 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
10924 for MODULE_LOCAL_P symbols too.
10925 * config/ia64/ia64.c (ia64_encode_section_info): Handle
10926 MODULE_LOCAL_P symbols the same way as local symbols.
10927 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
10928 into .sdata/.sbss by the user.
10929 * doc/extend.texi (Function Attributes): Document visibility
10932 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10935 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
10936 STRING_CST initializer spanning the whole variable without
10938 If expand_expr returned MEM, don't use it.
10940 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
10942 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
10943 generate a die for the lexical block.
10945 2002-02-26 Kazu Hirata <kazu@hxi.com>
10947 * config/h8300/h8300-protos.h: Add a prototype for
10948 compute_logical_op_length.
10949 * config/h8300/h8300.c (compute_logical_op_length): New.
10950 * config/h8300/h8300.md (anonymous logical patterns): Use
10951 compute_logical_op_length for length.
10953 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10955 * dwarf2out.c (modified_type_die): Do not call type_main_variant
10957 (gen_type_die): Same.
10959 * attribs.c (handle_vector_size_attribute): Set debug information.
10961 2002-02-26 Daniel Egger <degger@fhm.edu>
10963 * config/rs6000/rs6000.md: Swap define_insn attributes to
10964 fix incorrect generation of merge high instructions instead
10967 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10969 * c-typeck.c (really_start_incremental_init): Use
10970 bitsize_zero_node for vectors.
10972 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10974 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
10975 ("*set_vrsave_internal"): Same.
10977 2002-02-25 Richard Henderson <rth@redhat.com>
10979 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
10980 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
10982 2002-02-25 Jakub Jelinek <jakub@redhat.com>
10985 * config/i386/i386.c (ix86_return_pops_args): Only pop
10986 fake structure return argument if it was passed on the stack.
10988 2002-02-25 Jason Merrill <jason@redhat.com>
10990 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
10993 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
10995 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
10996 link with shared_name only.
10997 * doc/invoke.texi (Link Options): Document new behavior.
10999 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11001 * c-typeck.c (push_init_level): Handle vectors.
11003 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11005 * config/sparc/sparc.c (const64_high_operand): Zero-extend
11006 operands of SPARC_SETHI_P.
11007 (input_operand): Likewise.
11008 (sparc_emit_set_const32): Likewise.
11009 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11010 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11011 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
11012 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11013 (movdi_insn_sp64_vis): Likewise.
11014 (movdi split, movdf split): Use SETHI32.
11015 * doc/md.texi: Document SPARC constraints L, M and N.
11017 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11019 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11020 ("*set_vrsave_internal"): use mfspr for Darwin.
11022 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11023 gen_get_vrsave_internal.
11025 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11027 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11029 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
11031 * cpplex.c (cpp_interpret_charconst): Get signedness or
11032 otherwise of wide character constants correct.
11033 * cppexp.c (lex): Get signedness of wide charconsts correct.
11035 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11037 * optabs.c (widen_operand): Only call convert_modes for
11038 promoted SUBREG if signedness matches.
11039 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11041 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11043 * cpplib.c (glue_header_name): Use local buffer to build up
11046 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11048 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11050 2002-02-23 Kazu Hirata <kazu@hxi.com>
11052 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11053 H8/300[HS] separately.
11054 * config/h8300/h8300.md: Remove the early clobber constraint
11055 from bit field patterns.
11057 2002-02-23 Kazu Hirata <kazu@hxi.com>
11059 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11061 (mulhisi3): Likewise.
11062 (umulqisi3): Likewise.
11063 (umulhisi3): Likewise.
11065 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11067 * cppinit.c (output_deps): Correct test for stdout output.
11068 (init_dependency_output): Cure warning.
11070 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11072 * expr.c (store_expr): When converting expression to promoted
11073 equivalent type, allow using SUBREG_REG of TARGET as the target
11074 of the expansion of EXP.
11075 * loop.c (basic_induction_var, case SUBREG): Always look inside.
11076 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11077 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11078 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11079 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11081 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
11083 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11084 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11085 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11087 2002-02-23 Jakub Jelinek <jakub@redhat.com>
11089 PR optimization/5747
11090 * loop.c (scan_loop): Update reg info if move_movables created new
11093 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11095 * gcc.c (init_gcc_spec): Revert last change.
11097 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11099 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11100 gpc_reg_operand constraint.
11102 2002-02-23 Alan Modra <amodra@bigpond.net.au>
11104 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11105 Simplify comparison of `low'.
11106 (add_operand): Fix formatting.
11107 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11108 (mask_operand): Disallow mask to wrap in 64-bit mode.
11109 (rs6000_stack_info): Remove redundant test setting push_p.
11110 (output_toc): Fix formatting.
11111 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11112 cc_reg_not_cr0_operand constraint.
11113 (booldi3, boolcdi3 splitters): Same.
11115 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
11117 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11119 2002-02-22 David Edelsohn <edelsohn@gnu.org>
11121 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11122 gcc invoked with -shared-libgcc.
11124 2002-02-22 Jakub Jelinek <jakub@redhat.com>
11127 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11128 decl if any of elements was TREE_USED.
11130 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
11132 * config/sparc/sol2.h: Don't include sys/mman.h.
11133 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11134 (arith_4096_operand): Don't throw high bits away.
11135 (const64_operand): Take sign extension of CONST_INTs into account.
11136 (const64_high_operand, sparc_emit_set_const32): Likewise.
11137 (GEN_HIGHINT64): Likewise.
11138 (sparc_emit_set_const64_quick1): Likewise.
11139 (const64_is_2insns): Likewise.
11140 (print_operand): Use trunc_int_for_mode for sign extension.
11141 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11142 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11143 chars. Assume CONST_INT is already properly sign-extended.
11144 (movdi split): Sign-extend each SImode part.
11145 (andsi3 split): Don't mask high bits off, so that result
11146 remains properly sign-extend.
11147 (iorsi3 split): Likewise.
11148 (xorsi3 split): Likewise.
11150 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11152 * fold-const.c (fold): Fix typo in comments.
11154 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11156 * Makefile.in (langhooks.o): Update dependencies.
11158 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11160 * langhooks.c: Include flags.h.
11162 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11164 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11166 * c-common.c (c_common_post_options): Set inline trees by
11169 * doc/extend.texi (Function Attributes): Document always_inline
11171 Update documentation about inlining when not optimizing.
11173 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11175 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11176 unless DECL_ALWAYS_INLINE.
11178 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11179 unless DECL_ALWAYS_INLINE.
11180 (c_disregard_inline_limits): Disregard if always_inline set.
11182 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11183 Disregard if always_inline set.
11184 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11185 unless DECL_ALWAYS_INLINE.
11187 * attribs.c (handle_always_inline_attribute): New.
11188 (c_common_attribute_table): Add always_inline.
11190 * config/rs6000/altivec.h: Add prototypes for builtins
11191 requiring the always_inline attribute.
11193 2002-02-21 Eric Christopher <echristo@redhat.com>
11195 * expmed.c (store_bit_field): Try to simplify the subreg
11196 before generating a new one when when the mode size of
11197 value is less than maxmode.
11199 2002-02-21 Richard Henderson <rth@redhat.com>
11201 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11202 than gen_rtx_PLUS to form the sum.
11203 * explow.c (force_reg): Rearrange to not allocate new pseudo
11204 when force_operand returns a register.
11205 * expr.c (expand_assignment): Allow offset_rtx expansion to
11206 return a sum. Do not force addresses into registers.
11207 (expand_expr): Likewise.
11208 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11209 to canonicalize arithmetic that didn't simpify.
11210 (simplify_plus_minus): New argument force; update
11211 all callers. Don't split CONST unless we can do something with it,
11212 and wouldn't lose the constness of the operands.
11214 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11215 that we generated earlier.
11217 2002-02-21 Tom Tromey <tromey@redhat.com>
11219 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11220 (output_line_info): Use constant `1', with a long explanatory
11222 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11224 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11226 * jump.c (redirect_jump): If old label has no UID, don't try to
11229 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11231 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11232 If input is constant, do shifts at compile time.
11234 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11236 * doc/extend.texi: Fix some more overfull hboxes.
11238 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11240 PR optimization/4994
11241 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11244 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11247 * expr.h (expand_and): Add mode argument.
11248 * expmed.c (expand_and): Add mode argument.
11249 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11250 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11251 * except.c (expand_builtin_extract_return_addr): Likewise.
11252 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11253 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11254 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11255 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11256 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11257 gen_rtx (CONST_INT, VOIDmode, x).
11259 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11262 * stmt.c (warn_if_unused_value): Move side effects test once more.
11264 2002-02-20 Torbjorn Granlund <tege@swox.com>
11266 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11267 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11269 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11271 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11272 SUBREG or ZERO_EXTEND.
11274 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11276 * sh.h (current_function_anonymous_args): Remove.
11277 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11278 of current_function_varargs and current_function_stdarg is set.
11279 * sh.c (sh_expand_prologue): Check current_function_varargs /
11280 current_function_stdarg / TARGET_SH5 instead of
11281 current_function_anonymous_args.
11283 * sh64.h (TARGET_VERSION): Define.
11285 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11287 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11288 VRSAVE_REGNO on TARGET_ALTIVEC.
11290 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11292 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11293 bits of SImode const_int.
11294 (includes_rshift_p): Likewise.
11295 (print_operand): Call mask_operand and mask64_operand with correct
11297 (rs6000_output_function_epilogue): Pad traceback table to word.
11298 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11299 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11300 mask64_operand with correct mode.
11301 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11303 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11306 * varasm.c (get_pool_constant_mark): New.
11307 * rtl.h (get_pool_constant_mark): Add prototype.
11308 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11309 be represented if it has not been output.
11311 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11313 * combine.c (do_SUBST): Sanity check substitutions of
11314 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11315 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11316 CONST_INT into its operand.
11317 (known_cond): Likewise, for ZERO_EXTEND.
11318 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11319 allow for simplification of wide modes. Reject CONST_INTs in
11320 ZERO_EXTEND when their actual mode is not given.
11322 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11324 * c-decl.c (pushdecl): If no global declaration is found for an
11325 extern declaration in block scope, try a limbo one.
11327 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11330 * c-common.c (pointer_int_sum): Moved from...
11331 * c-typeck.c (pointer_int_sum): ...here.
11332 * c-common.h (pointer_int_sum): Add prototype.
11334 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11337 * c-decl.c (duplicate_decls): Return 0 if issued error about
11340 2002-02-20 Roger Sayle <roger@eyesopen.com>
11341 Jakub Jelinek <jakub@redhat.com>
11344 * tree.c (host_integerp): Ensure that the constant integer is
11345 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11346 when pos is zero or non-zero respectively. Clarify comment.
11347 * c-format.c (check_format_info_recurse): Fix host_integerp
11348 usage; the pos argument should be zero when assigning to a
11349 signed HOST_WIDE_INT.
11351 2002-02-20 Richard Henderson <rth@redhat.com>
11353 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11354 of the operand, rather than assuming TImode.
11355 (ix86_expand_binop_builtin): Cope with commutative patterns
11356 using nonimmediate_operand for both operands.
11357 (ix86_expand_timode_binop_builtin): Likewise.
11358 (ix86_expand_store_builtin): Validate operand 1.
11359 (ix86_expand_unop1_builtin): Likewise.
11361 2002-02-20 Philip Blundell <philb@gnu.org>
11364 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11366 2002-02-20 Richard Henderson <rth@redhat.com>
11369 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11371 2002-02-20 Tom Tromey <tromey@redhat.com>
11373 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11374 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11375 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11376 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11377 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11380 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11382 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11383 for (const_int 0) in X not just INTVAL.
11385 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
11387 * doc/extend.texi: Avoid or reduce overfull hboxes.
11389 2002-02-20 Diego Novillo <dnovillo@redhat.com>
11391 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11392 operations if the field does not start at a mode boundary.
11394 2001-02-20 Joel Sherrill <joel@OARcorp.com>
11396 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11397 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11398 Also done for -Acpu and -Amachine.
11400 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
11402 * cppinit.c (init_dependency_output): Take deps output file
11403 from -o if none given with -MF. Suppress normal output.
11404 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11405 * doc/cpp.texi, doc/invoke.texi: Update.
11407 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11409 * toplev.c (output_quoted_string): Write unprintable
11410 characters with octal escapes.
11412 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11414 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11415 really_call_used[VRSAVE_REGNO] if not Altivec.
11417 2002-02-19 Alan Modra <amodra@bigpond.net.au>
11419 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11421 (constant_pool_expr_1): Fix formatting.
11422 (rs6000_legitimize_reload_address): Likewise.
11424 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11426 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11427 now that we have one.
11429 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11431 * tree.h (struct tree_common): Remove aux. Add unused_0 at
11432 end of first block of bitfields (which was only seven bits);
11433 rename dummy to unused_1; remove comment which is no longer true.
11435 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11437 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11439 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11442 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11446 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11447 arm_is_longcall_p rather than inspecting call-type cookie
11449 (call_value_insn) [TARGET_THUMB]: Likewise.
11451 2002-02-19 Graham Stott <grahams@redhat.com>
11453 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11455 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11457 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11458 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11459 (FP_SAVE_INLINE): Delete.
11461 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11462 * config/rs6000/eabi.asm: Remove ABI save restore routines.
11463 * config/rs6000/t-ppccomm: Build crtsavres.o.
11464 * config/rs6000/crtsavres.asm: New file.
11466 2002-02-19 Philip Blundell <philb@gnu.org>
11468 * config/arm/arm.c (use_return_insn): Don't reject interrupt
11470 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11471 (output_return_instruction): Allow interrupt functions to return with
11472 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
11473 (arm_expand_prologue): Subtract 4 before stacking LR in an
11474 interrupt function.
11476 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11478 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11479 decl, not just FUNCTION_DECL.
11480 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11481 (arm_assemble_integer): Likewise.
11482 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11485 2002-02-19 matthew green <mrg@eterna.com.au>
11487 * config.gcc (sparc-*-netbsdelf*): Enable target.
11488 (sparc64-*-netbsd*): New target.
11489 * config/sparc/netbsd-elf.h: New file.
11490 * config/sparc/t-netbsd64: New file.
11492 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11494 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11496 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
11498 * doc/invoke.texi: explicitly list the style guidelines that
11499 -Weffc++ checks for.
11501 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
11503 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11505 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
11508 * gcc.c (cpp_unique_options): Treat -o as indicating object file
11509 only if not -E. If -E, pass -o through to the preprocessor.
11511 2002-02-19 Kazu Hirata <kazu@hxi.com>
11513 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11514 register number with an appropriate macro.
11516 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11518 * doc/rtl.texi (Constants): Close @code tag.
11520 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
11522 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11523 ("mmx_uavgv4hi3"): Same.
11524 ("pmulhrwv4hi3"): Same.
11526 * tree-inline.c (walk_tree): Handle vectors.
11528 * c-common.c (constant_expression_warning): Handle vectors.
11529 (overflow_warning): Same.
11531 * sched-deps.c (sched_analyze_2): Handle vectors.
11533 * rtlanal.c (rtx_unstable_p): Handle vectors.
11534 (rtx_varies_p): Same.
11535 (count_occurrences): Same.
11536 (regs_set_between_p): Same.
11537 (modified_between_p): Same.
11538 (modified_in_p): Same.
11539 (volatile_insn_p): Same.
11540 (volatile_refs_p): Same.
11541 (side_effects_p): Same.
11542 (may_trap_p): Same.
11543 (inequality_comparisons_p): Same.
11544 (replace_regs): Same.
11545 (computed_jump_p_1): Same.
11547 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11549 (inner_mode_array): New.
11550 (copy_rtx): Handle vectors.
11551 (copy_most_rtx): Same.
11552 (rtx_equal_p): Same.
11553 (get_mode_alignment): Adjust for vectors.
11555 * resource.c (mark_referenced_resources): Handle vectors.
11556 (mark_set_resources): Same.
11558 * reload1.c (eliminate_regs): Handle vectors.
11559 (elimination_effects): Same.
11560 (scan_paradoxical_subregs): Same.
11562 * reload.c (subst_reg_equivs): Handle vectors.
11564 * regrename.c (scan_rtx): Handle vectors.
11566 * regclass.c (reg_scan_mark_refs): Handle vectors.
11568 * recog.c (find_single_use_1): Handle vectors.
11570 * local-alloc.c (equiv_init_varies_p): Handle vectors.
11571 (contains_replace_regs): Same.
11572 (memref_referenced_p): Same.
11574 * integrate.c (copy_rtx_and_substitute): Handle vectors.
11575 (subst_constants): Same.
11577 * genattrtab.c (attr_copy_rtx): Handle vectors.
11578 (encode_units_mask): Same.
11579 (clear_struct_flag): Same.
11580 (count_sub_rtxs): Same.
11582 * gcse.c (want_to_gcse_p): Handle vectors.
11583 (oprs_unchanged_p): Same.
11584 (hash_expr_1): Same.
11585 (oprs_not_set_p): Same.
11586 (expr_killed_p): Same.
11587 (compute_transp): Same.
11588 (store_ops_ok): Same.
11590 * function.c (purge_addressof_1): Do not allow paradoxical subregs
11592 (fixup_var_refs_1): Same.
11593 (instantiate_virtual_regs_1): Same.
11595 * fold-const.c (operand_equal_p): Handle vectors.
11597 (rtl_expr_nonnegative_p): Same.
11599 * flow.c (mark_used_regs): Handle vectors.
11601 * df.c (df_uses_record): Handle vectors.
11603 * cselib.c (cselib_subst_to_values): Handle vectors.
11604 (cselib_mem_conflict_p): Same.
11607 * cse.c (canon_reg): Handle vectors.
11609 (cse_process_notes): Same.
11610 (count_reg_usage): Same.
11611 (canon_hash): Same.
11613 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11615 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11617 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11618 (gen_rtx): Handle CONST_VECTOR.
11619 (gen_const_vector_0): New.
11620 (copy_rtx_if_shared): CONST_VECTORs can be shared.
11621 (reset_used_flags): Same.
11622 (copy_insn_1): Same.
11623 (initializer_constant_valid_p): Handle VECTOR_CST.
11625 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11627 * doc/rtl.texi (Constants): Document const_vector.
11628 (CONST0_RTX): Update for vectors.
11629 (RTL sharing): Same.
11631 * print-tree.c (print_node): Add case for VECTOR_CST.
11633 * tree.h (TREE_VECTOR_CST_ELTS): New.
11634 (struct tree_vector): New.
11635 (union tree_node): Add vector node.
11636 (build_vector): Add prototype.
11638 * tree.def (VECTOR_CST): New.
11640 * tree.c (build_vector): New.
11642 * expmed.c (make_tree): Handle CONST_VECTOR.
11644 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11645 (CONST_VECTOR_ELT): New.
11646 (CONST_VECTOR_NUNITS): New.
11648 * machmode.h (GET_MODE_INNER): New.
11649 (DEF_MACHMODE): Accept 8th arg.
11651 * machmode.def: Add 8th argument for vector inner mode.
11652 Add inner vector modes for vectors.
11654 * rtl.def (VEC_CONST): Remove.
11655 (CONST_VECTOR): New.
11657 * expr.c (clear_storage): Allow vectors.
11658 (is_zeros_p): Handle VECTOR_CST.
11660 * varasm.c (output_constant_pool): Handle vectors.
11661 (rtx_const): Add veclo and vechi fields.
11662 (kind): Add RTX_VECTOR.
11663 (decode_rtx_const): Add case for vector.
11665 * config/rs6000/rs6000-protos.h: Add zero_constant.
11667 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11668 constants. Force easy vector constants into memory.
11669 (easy_vector_constant): New.
11670 (emit_easy_vector_constant): New.
11671 (rs6000_legitimize_reload_address): Do not generate bad reloads on
11674 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11676 ("altivec_lvxl"): Same.
11677 (altivec_lvebx): Same.
11678 (altivec_lvehx): Same.
11679 (altivec_lvewx): Same.
11680 ("*movv4si_const0"): New.
11681 ("*movv4sf_const0"): New.
11682 ("*movv8hi_const0"): New.
11683 ("*movv16qi_const0"): New.
11685 2002-02-18 Kazu Hirata <kazu@hxi.com>
11687 * config/h8300/h8300.c (notice_update_cc): Use
11690 2002-02-18 Kazu Hirata <kazu@hxi.com>
11692 * config/h8300/h8300.md (divmod patterns): Change the
11693 constraints for operands[1] to register_operand.
11695 2002-02-18 Kazu Hirata <kazu@hxi.com>
11697 * config/h8300/h8300-protos.h: Remove the prototype for
11699 * config/h8300/h8300.c (p_operand): Remove.
11700 * config/h8300/h8300.md: Replace p_operand with
11703 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11705 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11707 (output_return_instruction): Allow use of LDR to unstack
11708 return addresss even for interrupt handlers or when
11709 interworking. If compiling for ARMv5, use interworking-safe
11710 return instructions by default. Remove duplicated code and
11711 lengthy "strcat" sequences.
11713 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11715 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11716 (LINK_EH_SPEC): Define.
11717 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11719 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11721 * config/s390/s390.c (s390_emit_prologue): Do not set the
11722 frame_related flag for call-clobbered registers.
11724 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
11726 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11727 (construct_container): Fix handling of SSE operands.
11728 (ix86_expand_builtin): Fix handling of 64bit pointers.
11729 (mmx_maskmovq_rex): New pattern.
11731 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
11733 * regrename.c (kill_set_value): Handle subregs properly.
11735 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
11737 * objc/objc-act.c (handle_impent): Remove leading '*'
11738 from objc_class_name.
11740 2002-02-17 Richard Henderson <rth@redhat.com>
11742 * config/alpha/alpha.c (some_small_symbolic_operand,
11743 some_small_symbolic_operand_1, split_small_symbolic_operand,
11744 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11745 Handle small SYMBOL_REFs anywhere, not just inside memories.
11746 * config/alpha/alpha-protos.h: Update.
11747 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11748 * config/alpha/alpha.md (small symbolic operand splitter): Update.
11750 2002-02-17 Roland McGrath <roland@frob.com>
11752 * config.gcc (powerpc-*-gnu-gnualtivec*,
11753 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11754 * config/rs6000/gnu.h: New file.
11755 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11756 Grok "gnu" in rs6000_abi_name.
11757 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11758 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11759 Grok -mcall-gnu analogous to -mcall-linux et al.
11760 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11761 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11762 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11764 2002-02-17 Jakub Jelinek <jakub@redhat.com>
11767 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11770 2002-02-17 Philipp Thomas <pthomas@suse.de>
11772 * config/cris/cris.h: Undefine STARTFILE_SPEC and
11773 ENDFILE_SPEC before (re)defining them.
11775 2002-02-17 Kazu Hirata <kazu@hxi.com>
11777 * config/h8300/h8300.c: Fix formatting.
11778 * config/h8300/h8300.h: Likewise.
11780 2002-02-17 Philipp Thomas <pthomas@suse.de>
11782 * doc/tm.texi: Explain why empty strings should not be
11783 marked for translation.
11785 2002-02-17 Philipp Thomas <pthomas@suse.de>
11787 * final.c (output_operand_lossage): Changed to accept
11788 printf style arguments. Change calls where necessary.
11789 * output.h (output_operand_lossage): Change declaration
11790 accordingly. Update copyright.
11791 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11792 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11793 Update copyright date where necessary.
11795 * config/i386/i386.c (print_operand): Likewise. Remove use of
11798 * config/cris/cris.c (cris_operand_lossage): Likewise.
11799 Rename parameter so that exgettext recognizes it as
11800 translatable message.
11801 (LOSE_AND_RETURN): Rename parameter to msgid.
11803 2002-02-17 Kazu Hirata <kazu@hxi.com>
11805 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11806 hard coded register number with an appropriate macro.
11807 (HARD_REGNO_MODE_OK): Likewise.
11808 (ARG_POINTER_REGNUM): Likewise.
11809 (STATIC_CHAIN_REGNUM): Likewise.
11810 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11811 * config/h8300/h8300.md (define_constants): Define more
11814 2002-02-17 Philipp Thomas <pthomas@suse.de>
11816 * config/i386/i386.h: Don't mark empty strings for translation.
11818 2002-02-16 H.J. Lu <hjl@gnu.org>
11820 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11822 2002-02-16 Zack Weinberg <zack@codesourcery.com>
11824 * cppinit.c (merge_include_chains): Check for brack being
11825 NULL before attempting to merge it with qtail.
11827 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11829 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11832 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11834 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
11836 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11838 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
11839 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
11840 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
11842 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11844 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
11845 now only if !TARGET_FIX.
11846 (*movsi_nt_vms_fix): New pattern.
11848 2002-02-16 Douglas B Rupp <rupp@gnat.com>
11850 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
11851 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
11852 (alpha_sa_mask, alpha_sa_size): Reflect above change.
11853 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
11854 (alpha_start_function, alpha_expand_epilogue): Likewise.
11855 (unicosmk_gen_dsib): Likewise.
11857 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11859 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
11861 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
11863 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
11864 check_and_change_labels, s390_final_chunkify): Delete.
11865 (s390_split_branches, s390_chunkify_pool): New functions.
11866 (s390_function_prologue): Call them.
11868 * config/s390/s390.h (S390_REL_MAX): Delete.
11869 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
11871 * config/s390/s390.md (cjump, icjump, jump): Fix length
11872 attribute calculation.
11875 2002-02-15 David Edelsohn <edelsohn@gnu.org>
11877 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
11878 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
11880 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11882 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
11883 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
11884 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
11886 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11888 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
11890 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11892 * reload.c (find_dummy_reload): Check that an output register
11893 is valid for its mode.
11895 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
11897 * combine.c (known_cond): After replacing the REG of a SUBREG, try
11900 * function.c (assign_parms): Demote promoted argument passed by
11901 transparent reference.
11903 2001-02-14 Joel Sherrill <joel@OARcorp.com>
11905 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
11906 -Acpu() and -Amachine() to eliminate warnings.
11908 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
11910 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
11912 2002-02-14 Kazu Hirata <kazu@hxi.com>
11914 * config/h8300/h8300-protos.h: Update the prototype for
11916 * config/h8300/h8300.c (const_costs): Treat SET as a little
11917 more expensive operation.
11918 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
11919 reference to const_costs.
11921 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
11923 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
11925 2002-02-14 Jakub Jelinek <jakub@redhat.com>
11928 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
11929 use arguments from newtype.
11931 2002-02-13 Eric Christopher <echristo@redhat.com>
11933 * config/mips/mips.c (override_options): Add check for march/mipsX
11934 on the same command line. Fix error message in cpu processing.
11935 Remove architecture and ISA checks.
11937 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11939 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
11941 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
11943 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11945 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
11947 ("*movv8hi_internal1"): Same.
11948 ("*movv16qi_internal1"): Same.
11949 ("*movv4sf_internal1"): Same.
11951 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
11952 not push_reload for altivec modes.
11954 2002-02-13 Joel Sherrill <joel@OARcorp.com>
11956 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
11957 all RTEMS targets including removal of #includes from config/*/rtems*.h
11958 file and adding them to tm_file setting. Added xm_defines=POSIX to
11960 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
11961 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
11962 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
11963 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
11964 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
11965 config/m68k/rtemself.h: Ditto.
11966 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
11967 config/mips/rtems64.h: Ditto.
11968 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
11969 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
11971 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
11972 config/sparc/rtemself.h: Ditto.
11973 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
11974 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
11975 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
11977 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
11978 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
11979 target made more similar to i386-elf.
11980 * config/i386/t-rtems-i386: Added soft float support and multilibs.
11981 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
11982 be similar to config/m68k/t-m68kelf.
11983 * gthr-rtems.h: Encapsulate with extern "C" for C++.
11985 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
11987 * regmove.c (kill_value): Handle subregs.
11989 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
11991 * i386.md (mul patterns): Allow memory operand to be first;
11992 add expanders where needed; fix constraints.
11993 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
11994 Allow memory operand to be the first.
11996 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
11999 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12002 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12005 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12007 PR optimization/5547:
12008 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12009 all valid IA-32 address modes involving non-scaled %ebx and
12010 GOT/GOTOFF as displacement.
12012 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12014 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12015 after emitting ltorg insns.
12017 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12018 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12019 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12020 *abssf2): Fix "op_type" attribute.
12022 2002-02-13 Douglas B Rupp <rupp@gnat.com>
12024 * mkconfig.sh: Avoid using a subshell redirect.
12025 ($output.T): Change to $(output)T.
12026 (ENABLE_NLS): Remove unneeded undef.
12028 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12029 * config/alpha/x-vms (libsubdir): Define.
12031 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12032 register frame procedures. Optimize retrieving context.
12034 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12035 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12036 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12038 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12040 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12041 Make same change as for find_base_value.
12043 2002-02-13 Kazu Hirata <kazu@hxi.com>
12045 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12046 of QImode and SImode.
12048 2002-02-13 Kazu Hirata <kazu@hxi.com>
12050 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12051 length computation of movsi.
12052 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12054 2002-02-13 Kazu Hirata <kazu@hxi.com>
12056 * config/h8300/h8300.md (subqi3): Tighten the predicate for
12057 operands[2] to register_operand.
12059 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
12061 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12063 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
12065 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12066 for altivec_lvx* and altivec_stvx*.
12067 ("*movv4si_internal"): Add constraint for loading from GPRs.
12068 ("*movv8hi_internal1"): Same.
12069 ("*movv16qi_internal1"): Same.
12070 ("*movv4sf_internal1"): Same.
12072 * config/rs6000/rs6000.c (altivec_register_operand): New.
12074 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12075 altivec_register_operand.
12077 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
12079 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12082 2002-02-13 Stan Shebs <shebs@apple.com>
12084 * c-typeck.c (digest_init): Handle vectors.
12085 (really_start_incremental_init): Same.
12086 (pop_init_level): Same.
12087 (process_init_element): Same.
12089 * varasm.c (output_constant): Same.
12091 * expr.c (clear_storage): Same.
12092 (store_constructor): Same.
12094 2002-02-12 Eric Christopher <echristo@redhat.com>
12096 * explow.c (hard_function_value): Add comment explaining
12097 signed/unsigned comparison.
12099 2002-02-12 Jakub Jelinek <jakub@redhat.com>
12101 * jump.c (never_reached_warning): Add finish argument.
12102 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12103 real insn after end.
12104 * rtl.h (never_reached_warning): Adjust prototype.
12105 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12106 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12107 never_reached_warning.
12109 2002-02-12 Graham Stott <grahams@redhat.com>
12111 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12113 2002-02-12 Kazu Hirata <kazu@hxi.com>
12115 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12116 logical shifts on H8/300.
12117 (shift_alg_si): Improve several shifts on H8/300.
12118 (get_shift_alg): Likewise.
12120 2002-02-12 Graham Stott <grahams@redhat.com>
12122 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12124 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12126 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12127 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12129 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
12131 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12132 non-CONST_INT through default_assemble_integer.
12133 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12134 <case 8>: Abort for CONST_DOUBLE.
12136 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12138 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12140 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12141 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12143 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12145 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12147 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12149 * regrename.c (regrename_optimize): Don't accept a
12150 part-clobbered register if the replaced register is not part
12153 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12154 take padding into account when computing the argument value.
12156 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12158 * combine.c (try_combine): Apply substitutions in
12159 CALL_INSN_FUNCTION_USAGE too.
12161 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12163 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12164 __builtin_altivec_abs*.
12167 * config/rs6000/rs6000.h (rs6000_builtins): Add
12168 ALTIVEC_BUILTIN_ABS*.
12170 * config/rs6000/altivec.h: Use const char for builtins expecting
12172 (vec_abs): New versions for C and C++.
12175 2002-02-10 Kazu Hirata <kazu@hxi.com>
12177 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12180 2002-02-10 Kazu Hirata <kazu@hxi.com>
12182 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12183 constant definition from h8300.md.
12184 (FRAME_POINTER_REGNUM): Likewise.
12185 * config/h8300/h8300.md (define_constants): Add FP_REG.
12187 2002-02-10 Kazu Hirata <kazu@hxi.com>
12189 * config/h8300/h8300.c (print_operand): Remove redundant code.
12191 2002-02-10 Kazu Hirata <kazu@hxi.com>
12193 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12194 * config/h8300/h8300.c (byte_reg): Make it static.
12196 2002-02-10 Richard Henderson <rth@redhat.com>
12199 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12201 2002-02-10 Richard Henderson <rth@redhat.com>
12204 * tree.c (append_random_chars): Don't abort if main_input_filename
12207 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12209 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12211 2002-02-10 Kazu Hirata <kazu@hxi.com>
12213 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12214 (pushhi1): Likewise.
12216 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12218 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12219 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12221 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12223 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12225 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12227 2002-02-09 Kazu Hirata <kazu@hxi.com>
12229 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12230 a half of an SImode register on H8/300.
12232 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12234 * i386.md (movdi_2): Add missing '!'.
12236 2002-02-09 Kazu Hirata <kazu@hxi.com>
12238 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12241 2002-02-09 Kazu Hirata <kazu@hxi.com>
12243 * config/h8300/h8300.md (length): Correct the distance valid
12244 for the short branch.
12246 2002-02-09 Kazu Hirata <kazu@hxi.com>
12248 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12250 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12252 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12253 registers in SImode.
12254 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12257 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12260 Contribute sh64-elf.
12261 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12262 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12263 (sh_cannot_modify_jumps_p): New function.
12264 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12265 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12266 (sh_ms_bitfield_layout_p): New function.
12267 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12268 Zack Weinberg <zack@codesourcery.com>
12269 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12270 expand_simple_binop instead of expand_binop.
12271 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12272 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12273 use of .quad and .uaquad.
12274 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12275 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12276 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12277 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12278 movdi_const_16bit): Make sure all CONSTs have modes.
12279 (sym2PIC): Ditto, but by adjusting all callers.
12280 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12281 if the prologue calls the SHmedia argument decoder or register
12283 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12284 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12285 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12286 (sh_expand_epilogue): Don't emit USE of return target register.
12287 (prepare_move_operands): Legitimize DImode PIC addresses.
12288 (sh_media_register_for_return): Skip tr0, used to initialize the
12290 (sh_expand_prologue): Remove explicit USE of return register.
12291 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12292 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12293 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12294 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12295 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12296 EXTRA_CONSTRAINT_T.
12297 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12298 (MOVI_SHORI_BASE_OPERAND_P): New.
12299 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12300 (EXTRA_CONSTRAINT_T): Define in terms of them.
12301 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12302 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12303 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12304 alternatives supporting TARGET_REGS.
12305 (UNSPEC_GOTPLT): New constant.
12306 (movdi split): Move incrementing of LABEL_NUSES...
12307 (movdi_const, movdi_const_32bit): Here. Use
12308 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12309 (movdi_const_16bit): New.
12310 (call, call_value) [flag_pic]: Use GOTPLT.
12311 (call_pop, call_value_pop): New expands.
12312 (call_pop_compact, call_pop_rettramp): New insns.
12313 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12314 (sibcall) [flag_pic]: Use GOT.
12315 (builtint_setjmp_receiver): Remove bogus, unused expand.
12316 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12317 (*pt, *ptb, ptrel): New insns.
12318 (sym2GOT): Handle DImode GOT.
12319 (sym2GOTPLT, symGOTPLT2reg): New expands.
12320 (sym2PIC): New expand.
12321 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12322 (shcompact_return_tramp_i): Use return register explicitly.
12323 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12324 disable flag_reorder_blocks.
12325 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12326 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12327 clobbers, for clarity.
12328 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12329 restoring of r0 in macl as MAYBE_DEAD.
12330 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12331 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12332 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12333 alter_subreg all over.
12334 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12335 reload, instead of emitting instructions that would require
12337 (casesi_load_media): Add missing modes.
12338 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12339 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12340 as used if the argument decoder is called.
12341 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12342 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12343 Pmode, then extend it to DImode if necessary.
12344 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12345 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12346 constants in FPU-enabled SHmedia, let them be loaded from memory.
12347 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12348 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12349 Adjust whitespace in assembly output templates.
12350 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12351 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12352 mode of if_then_else.
12353 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12354 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12356 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12357 Joern Rennecke <amylaar@redhat.com>
12358 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12359 (SUBTARGET_CPP_PTR_SPEC): New.
12360 (SUBTARGET_CPP_SPEC): Remove.
12361 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12362 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12363 Fix typo in previous checkin.
12364 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12365 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12366 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
12367 Alexandre Oliva <aoliva@redhat.com>
12368 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12369 what single FP register can hold for SHmedia target.
12370 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12371 Alexandre Oliva <aoliva@redhat.com>
12372 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12373 Do not split into SUBREG.
12374 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
12375 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12376 and added new functions as specified in SH5 ABI r9.
12377 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
12378 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12380 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
12381 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12382 gen_consttable_4 and gen_consttable_8. Emit multiple labels
12383 and consttable_window_ends.
12384 2001-06-03 Graham Stott <grahams@redhat,com>
12385 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12386 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
12387 * config/sh/sh.c (print_operand): Handle floating-point pair,
12388 vector and matrix registers.
12389 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12390 vector modes into account.
12391 * config/sh/sh.md (movv2sf): Split move between registers into
12393 (movv4sf, movv16sf): Introduce insns that get split only after
12395 * config/sh/shmedia.h: Fix Copyright dates.
12396 * config/sh/ushmedia.h: Likewise. Move loop counter
12397 declarations into conditionals that uses them.
12398 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12400 * config/sh/sshmedia.h: Fix Copyright dates.
12401 (sh_media_PUTCFG): Fix constraints.
12402 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
12403 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12404 ptrmemfunc_vbit_in_delta for SH5.
12405 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
12406 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12407 * invoke.texi: Likewise.
12408 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
12409 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12410 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12411 GCC_pop_shmedia_regs_nofpu): New global symbols.
12412 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12413 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12414 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12415 compact function with nonlocal labels.
12416 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12417 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12418 (initial_elimination_offset): Account for their stack space.
12419 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12420 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12421 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12422 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12423 least one of the operands to be a register.
12424 (movv2sf): Likewise. Renamed to movv2sf_i.
12425 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12426 prepare_move_operands() before emitting SHmedia insns.
12427 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
12428 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12429 Don't save nor initialize r12. Don't mis-align the stack.
12430 Pad the code with a nop.
12431 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
12433 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
12434 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12435 [__SHMEDIA__]: Implement.
12436 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
12437 * config/sh/sh.md: Set latency of `pt' closer to reality.
12438 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12439 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12440 Set move, load and store type attributes.
12441 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12442 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12444 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12445 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12446 * config/sh/sh.c (sh_media_register_for_return): New function.
12447 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12448 branch-target register.
12449 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12450 * config/sh/sh.md (return_media_i): Use any call-clobbered
12451 branch-target register.
12452 (return_media): If r18 wasn't copied in the prologue, copy it
12454 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12455 Clear class FP0_REGS.
12456 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12458 2001-03-08 DJ Delorie <dj@redhat.com>
12459 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12460 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
12461 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12462 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
12463 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12464 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
12465 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12466 return value correctly for call_cookie.
12467 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
12468 * config/sh/crt1.asm (start): Modified so as to call
12469 ___setup_argv_and_call_main.
12470 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
12471 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12473 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
12474 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12475 (STRIP_NAME_ENCODING): Use it.
12476 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
12477 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
12478 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12479 prepare_scc_operands().
12480 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12481 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12482 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
12483 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12484 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
12485 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12486 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12487 used in shcompact_incoming_args.
12488 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12490 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12492 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12493 Adjust accordingly.
12494 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12495 Simplify. Adjust. Add sanity check.
12496 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12498 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12500 (udivsi3, divsi3): Use them.
12501 (force_mode_for_call): New insn.
12502 (call, call_value, sibcall_value): Emit it before SHcompact
12504 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
12505 * config/sh/sh.md (call, call_value, sibcall): Make sure the
12506 call cookie is non-NULL before taking its value.
12507 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
12508 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12509 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
12510 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12512 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12513 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12514 temporary for stack adjusts. Use MACL and MACH to pass
12515 arguments to shcompact_incoming_args.
12516 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
12518 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12519 (nested_trampoline): Load static chain address into r1.
12520 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12521 2001-01-07 Alexandre Oliva <aoliva@redhat.com
12522 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12523 fp_arith_reg_operand().
12524 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
12525 * config/sh/sh.md (casesi): Sign-extend the first two operands,
12526 and use signed compares for them.
12527 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12528 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
12529 ones properly aligned.
12530 (find_barrier): Account for extra alignment needed for 8-byte wide
12532 (machine_dependent_reorg): Require a label for the second 4-byte
12533 constant after an 8-byte one.
12534 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12536 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12537 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12538 last_float when switching float modes.
12539 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12540 auto-increment for general-purpose registers.
12541 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12543 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12545 * config/sh/sh.c (sh_builtin_saveregs): Support using all
12546 registers for varargs.
12547 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
12548 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12549 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12550 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12551 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12552 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
12553 call_cookie accordingly.
12554 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12555 (SHCOMPACT_BYREF): Likewise.
12556 (SHCOMPACT_FORCE_ON_STACK): New macro.
12557 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12558 (sh_builtin_saveregs): Likewise.
12559 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12560 shcompact_incoming_args): Use new shift values. Support
12561 sequences of consecutive and non-consecutive pushes/pops.
12562 * config/sh/sh.md (return): Don't explicitly use PR_REG.
12563 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
12564 * config/sh/sh.h (TEXT_SECTION): Define.
12565 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12566 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12567 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12568 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12569 return values on FPU-enabled SHmedia.
12570 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12571 FPU-enabled SHmedia.
12572 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12573 value is returned in a non-FP reg and is not returned by
12575 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12577 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
12578 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12579 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12580 quad-aligned to be passed by callee-copy reference.
12581 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
12582 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12583 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12584 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
12585 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12586 copying low-numbered FP regs to r7 and r8.
12587 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12588 FP regs to general-purpose regs only if the copy was passed on the
12590 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12591 copying FP reg to r9.
12592 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12593 copy FP regs to general-purpose regs only in outgoing calls.
12594 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12595 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
12597 * config/sh/sh.h (struct sh_args): Document all fields.
12598 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12599 passed partially on the stack should not consider making
12601 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12602 stack_regs only for incoming calls. When passing FP args,
12603 make sure there are FP regs available before modifying
12605 (SHCOMPACT_BYREF): Pass double args in general-purpose
12606 registers by reference.
12607 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
12608 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12609 attempt to generate sibcalls if the caller got any arguments
12611 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12612 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12613 to 8-byte boundaries.
12614 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12615 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12616 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12617 stored in the stack.
12618 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12619 for the offsets to have the ISA bit set.
12620 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
12621 invocation. Use beq instead of bgt to mark end of sequence of
12623 (shcompact_incoming_args): Fix store of r2. Use beq instead of
12624 bgt to mark end of sequence of stores.
12625 * config/sh/sh.c (arith_operand): Don't check whether
12626 CONST_OK_FOR_J for now.
12627 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12628 instead of long for conversion.
12629 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
12630 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12631 before passing it to fprintf.
12632 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
12633 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12634 Call set_fpscr before reading/writing SR.
12635 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12637 * config/sh/lib1funcs.asm: Add `.align 2' directives before
12639 (FMOVD_WORKS): Define on SH5 with FPU.
12640 (set_fpscr): Define on SH5. Remove separate _fpscr_values
12642 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12644 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
12645 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12647 (ia_main_table): Ditto.
12648 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
12649 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12650 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12651 the definitions from sh.h.
12652 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12654 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12655 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12656 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12657 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
12658 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12659 Increment LABEL_NUSES.
12661 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12663 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12665 * config/sh/elf.h (SIZE_TYPE): Likewise.
12666 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12667 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12668 shcompact_incoming_args): Load switch table addresses using
12670 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12671 (NO_BUILTIN_SIZE_TYPE): Define.
12672 (SIZE_TYPE): Don't define.
12673 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12674 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12675 definition of __SH5__=32 for -m5-compact-nofpu.
12676 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12678 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
12679 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12680 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
12681 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12682 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12683 (INSN_LENGTH_ALIGNMENT): Likewise.
12684 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12685 * config/sh/sh.md (call, call_value, sibcall): Simplify
12686 copying of non-branch-target register.
12687 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12688 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
12689 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12690 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12691 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12692 floating-point values as structs.
12693 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12694 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12695 general-purpose register.
12696 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12697 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12698 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12699 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12700 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12701 (ENCODE_SECTION_INFO): Enclose variables and constants in
12703 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12704 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12705 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12706 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12707 only for LABEL_REFs. For SYMBOL_REFs, prepend
12708 SH_DATALABEL_ENCODING to the symbol name.
12709 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12711 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12712 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12714 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12715 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12716 (DATALABEL_REF_P): Don't require CONST.
12717 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12719 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
12720 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12722 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12723 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12724 Use shallow_copy_rtx and PUT_MODE to change the mode of
12725 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12726 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12727 on SHmedia using GENERAL_REGs.
12728 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12729 bltu_media_i): Fix reversion of conditions.
12730 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12731 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12732 * config/sh/sh.c (output_far_jump): Save r13 in macl.
12733 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
12734 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12735 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
12736 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12737 (GCC_nested_trampoline): Likewise.
12738 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12739 * config/sh/sh.c (gen_datalabel_ref): Define.
12740 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12741 (INITIALIZE_TRAMPOLINE): Likewise.
12742 (TRAMPOLINE_ADJUST_ADDRESS): Define.
12743 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12744 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12745 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12746 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12747 (ic_invalidate): Adjust for SH5.
12748 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12749 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12750 _nested_trampoline.
12751 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
12752 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12753 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12754 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12755 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12756 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12757 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12758 * config/sh/sh.c (target_reg_operand): Match only target-branch
12759 registers and pseudos that aren't virtual registers.
12760 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12761 Copy operands that don't match target_reg_operand to pseudos.
12762 (call_media, call_value_media, sibcall_media): Use
12763 target_reg_operand instead of target_operand.
12764 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
12765 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12766 * config/sh/sh.c (target_reg_operand): Match hardware registers
12767 other than branch-target registers.
12768 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12769 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12770 (fpscr_values) [SH5 == 32]: Define.
12771 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12772 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12773 Handle function addresses coming in SUBREGs.
12774 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
12775 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12776 shcompact_return_trampoline): Use datalabel where appropriate.
12777 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
12778 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12779 general-purpose register to copy one branch-target register to
12781 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12782 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12783 SYMBOL_REFs with VOIDmode.
12784 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12785 bltu_media_i): New insns.
12786 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12787 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12788 (INIT_CUMULATIVE_ARGS): Likewise.
12789 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
12790 * machmode.def (V16SFmode): New mode.
12791 * c-common.c (type_for_mode): Support V2SF and V16SF.
12792 * tree.c (build_common_tree_nodes_2): Likewise.
12793 * tree.h (tree_index): Likewise.
12794 * calls.c (emit_call_1): Take args_so_far. Adjust all
12795 callers. Introduce CALL_POPS_ARGS.
12796 * tm.texi (CALL_POPS_ARGS): Document.
12797 * config/sh/crt1.asm: Implement in SHmedia mode.
12798 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12799 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12800 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12801 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12802 Implement divsi and udivsi in SHmedia mode. Introduce
12803 SHcompact trampolines.
12804 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12806 (regno_reg_class): Rewrite.
12807 (fp_reg_names): Remove.
12808 (sh_register_names, sh_additional_register_names): New.
12809 (print_operand): Added `u'. Support SUBREGs in addresses.
12810 Add parentheses around shifted CONSTs.
12811 (output_file_start): Output .mode and .abi directives.
12812 (shiftcosts, addsubcosts, multcosts): Adjust.
12813 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
12814 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
12815 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
12816 bytes, not registers. Take into account the need for the
12817 SHcompact incoming args trampoline. Adjust all callers.
12818 (sh_expand_prologue): Take stack_regs into account. Call
12819 incoming args trampoline. Keep stack aligned as per SH5 ABI.
12820 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
12821 stack aligned as per SH5 ABI.
12822 (sh_builtin_saveregs): Support SH5 ABI.
12823 (sh_build_va_list, sh_va_start): Likewise.
12824 (initial_elimination_offset): Take alignment into account.
12825 Compute location of PR according to the SH5 stack frame.
12826 (arith_reg_operand): Reject branch-target registers.
12827 (shmedia_6bit_operand): New.
12828 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12829 (target_reg_operand): Match DImode only. Accept SUBREGs.
12830 (target_operand): New.
12831 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
12832 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
12833 SIBCALL_REGS for SHmedia.
12834 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
12835 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
12836 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
12837 (TARGET_SWITCHES): New SH5 flags.
12838 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
12839 VALID_REGISTER_P to disable unsupported registers.
12840 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
12841 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
12842 (FUNCTION_ARG_PADDING): Define.
12843 (FASTEST_ALIGNMENT): Adjust.
12844 (SH_REGISTER_NAMES_INITIALIZER): New.
12845 (sh_register_names): Declare.
12846 (DEBUG_REGISTER_NAMES): Define.
12847 (REGISTER_NAMES): Define based on sh_register_names.
12848 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
12849 (sh_additional_register_names): Declare.
12850 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
12851 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
12852 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
12853 (REGISTER_NATURAL_MODE): Define.
12854 (FIRST_PSEUDO_REGISTER): Adjust.
12855 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
12856 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
12857 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
12858 (VECTOR_MODE_SUPPORTED_P): Define.
12859 (REG_CLASS_CONTENTS): Adjust.
12860 (SMALL_REGISTER_CLASSES): Adjust.
12861 (REG_ALLOC_ORDER): Adjust.
12862 (INDEX_REG_CLASS): Adjust.
12863 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
12864 (CONST_OK_FOR_LETTER_P): Adjust.
12865 (PREFERRED_RELOAD_CLASS): Adjust.
12866 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
12867 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
12868 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
12869 (FIRST_FP_PARM_REG): Adjust.
12870 (CALL_POPS_ARGS): Define.
12871 (FUNCTION_ARG_REGNO_P): Adjust.
12872 (struct sh_args): New fields.
12873 (GET_SH_ARG_CLASS): Adjust.
12874 (INIT_CUMULATIVE_ARGS): Adjust.
12875 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
12876 (FUNCTION_ARG_ADVANCE): Adjust.
12877 (FUNCTION_ARG): Adjust.
12878 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
12879 (FUNCTION_ARG_CALLEE_COPIES): Define.
12880 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
12881 (STRICT_ARGUMENT_NAMING): Define.
12882 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
12883 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
12884 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
12885 (SETUP_INCOMING_VARARGS): Adjust.
12886 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
12887 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
12888 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
12889 (SUBREG_OK_FOR_INDEX_P): Adjust.
12890 (EXTRA_CONSTRAINT_S): Update.
12891 (EXTRA_CONSTRAINT_T): New.
12892 (EXTRA_CONSTRAINT): Adjust.
12893 (GO_IF_LEGITIMATE_INDEX): Adjust.
12894 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
12895 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
12896 (MOVE_MAX): Adjust.
12897 (MAX_MOVE_MAX): Define.
12899 (CONST_COSTS): Adjust.
12900 (REGISTER_MOVE_COST): Adjust.
12901 (BRANCH_COST): Adjust.
12902 (TEXT_SECTION_ASM_OP): Adjust.
12903 (DBX_REGISTER_NUMBER): Adjust.
12904 (ASM_OUTPUT_DOUBLE_INT): New.
12905 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
12906 (PREDICATE_CODES): Adjust.
12907 (PROMOTE_MODE): Adjust.
12908 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
12909 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
12910 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
12911 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
12912 (DR0_REG, DR2_REG, DR4_REG): Renumber.
12913 (TR0_REG, TR1_REG, TR2_REG): New.
12914 (XD0_REG): Renumber.
12915 (UNSPEC_COMPACT_ARGS): New.
12916 (type): Added pt and ptabs.
12917 (length): Default to 4 on SHmedia. Default pt length to 12
12918 and 20 on SHmedia32 and SHmedia64, respectively.
12919 (pt): New function unit.
12920 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
12921 Add whitespace between operands of SHmedia instructions.
12923 (adddi3_media, addsi3_media): Adjust constraints.
12924 (subsi3) [SHmedia]: Force operand 1 into a register.
12925 (udivsi3_i1_media, udivsi3_i4_media): New.
12926 (udivsi3): Support SHmedia.
12927 (divsi3_i1_media, divsi3_i4_media): New.
12928 (divsi3): Support SHmedia.
12929 (anddi3, iordi3, xordi3): Adjust constraints.
12930 (zero_extendhidi2, zero_extendqidi2): New.
12931 (extendsidi2, extendhidi2, extendqidi2): New.
12932 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
12933 (pop_e, pop_fpul, pop_4): Likewise.
12934 (movsi_media): Support FP and BT registers.
12935 (movsi_media_nofpu): New. Adjust splits to DImode.
12936 (lduw, ldub): Renamed to zero_extend* above.
12937 (movqi_media): Fix typo.
12938 (movdi_media): Support FP and BT registers.
12939 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
12940 (movdi_const_32bit): New.
12941 (shori_media): Require immediate operand. Use `u' for output.
12942 (movdf_media, movsf_media): Simplified.
12943 (movdf_media_nofpu, movsf_media_nofpu): New.
12944 (movdf, movsf): Adjust
12945 (movv2sf, movv2sf, movv16sf): New.
12946 (beq_media, beq_media_i): Adjust constraints. Don't use
12947 scratch BT register.
12948 (bne_media, bne_media_i): Likewise.
12949 (bgt_media, bgt_media_i): Likewise.
12950 (bge_media, bge_media_i): Likewise.
12951 (bgtu_media, bgtu_media_i): Likewise.
12952 (bgeu_media, bgeu_media_i): Likewise.
12953 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
12954 bunordered): Emit jump insn. Force operands to registers when
12956 (jump_media, jump): Simplify.
12957 (call_compact, call_compact_rettramp): New.
12958 (call_value_compact, call_value_compact_rettramp): New.
12959 (call_media, call_value_media): Simplify.
12960 (sibcall_compact, sibcall_media): New.
12961 (call, call_value): Adjust for SHmedia and SHcompact.
12962 (sibcall, sibcall_value, untyped_call): Likewise.
12963 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
12964 (indirect_jump): Adjust for SHmedia.
12965 (casesi_jump_media): New.
12966 (nop): Re-enable for SHmedia.
12967 (call_site): Restrict to SH1.
12968 (casesi): Adjust for SHmedia.
12969 (casesi_shift_media, casesi_load_media): New.
12970 (return): Explicitly use PR register. Call return trampoline
12972 (return_i): Explicitly use PR register.
12973 (shcompact_return_tramp, shcompact_return_tramp_i): New.
12974 (return_media): Adjust.
12975 (shcompact_incoming_args): New.
12976 (epilogue): Adjust.
12977 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12978 (movstrsi): Disable on SH5.
12979 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
12980 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
12981 (subsf3, subsf3_media): Likewise.
12982 (mulsf3, mulsf3_media, mac_media): Likewise.
12983 (divsf3, divsf3_media): Likewise.
12984 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
12985 (floatsisf2, fux_truncsfsi2): Likewise.
12986 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
12988 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
12989 (cmpunsf_media, cmpsf): Likewise.
12990 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
12991 (abssf2, abssf2_media): Likewise.
12992 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
12993 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
12994 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
12995 (floatsidf2, fix_truncdfsi2): Likewise.
12996 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
12998 (cmpeqdf_media, cmpgtdf_media): Likewise.
12999 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13000 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13001 (absdf2, absdf2_media): Likewise.
13002 (extendsfdf2, extendsfdf2_media): Likewise.
13003 (truncsfdf2, truncsfdf2_media): Likewise.
13004 * config/sh/sh64.h: New file.
13005 * config/sh/t-sh64: New file.
13006 * config/sh/shmedia.h: New file.
13007 * config/sh/ushmedia.h: New file.
13008 * config/sh/sshmedia.h: New file.
13009 * configure.in: Added sh64-*-elf.
13010 * configure: Rebuilt.
13011 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
13012 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13013 (reg_class_from_letter): Use `b' for TARGET_REGS.
13014 (print_operand): Support `%M', `%m', `AND' and
13015 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
13016 (andcosts): Adjust for SHmedia.
13017 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13019 (target_reg_operand): New function.
13020 * config/sh/sh-protos.h (target_reg_operand): Declare.
13021 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13022 FP registers on SH5.
13023 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13025 (TARGET_REGISTER_P): New macro.
13026 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13027 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13028 (EXTRA_CONSTRAINT_S): New macro.
13029 (EXTRA_CONSTRAINT): Adjust.
13030 (FLOAT_TYPE_SIZE): Define to 32.
13031 (Pmode): DImode on SHmedia.
13032 (CONST_COSTS): Adjust for SHmedia literals.
13033 (PREDICATE_CODES): Added target_reg_operand.
13034 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13035 * config/sh/sh.md: Remove all attrs from SHmedia insns.
13036 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13037 (cmpdi): Accept SHmedia.
13038 (movdicc_false, movdicc_true): New insns.
13039 (movdicc): New expand.
13040 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13042 (addsi3_media): Match `S' constraint.
13043 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13044 (negdi2): Expand for SHmedia.
13045 (one_cmpldi2): New expand.
13046 (zero_extendsidi2): Change from expand to insn.
13047 (extendsidi2): Add constraints.
13048 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
13049 LD/ST address. Fix SI immediate loading split.
13050 (movhi_media, movqi_media, lduw, ldub): New insns.
13051 (movhi, movqi): Accept SHmedia.
13052 (shori_media, movdi_media): Relax input constraints. Split
13053 symbolic constants.
13054 (movdf_media, movsf_media): New insn. New split to movdi.
13055 (movdf, movsf): Match on SHmedia.
13056 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13057 bgeu_media): New insns and splits. New insns with `_i' suffix.
13058 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13059 (bunordered): New expand.
13060 (jump_compact): Renamed from `jump'.
13061 (jump_media): New insn.
13062 (jump): New expand.
13063 (call_media, call_value_media): New insns.
13064 (call, call_value): Adjust.
13065 (indirect_jump_compact): Renamed from `indirect_jump'.
13066 (indirect_jump_media): New insn.
13067 (indirect_jump): New expand.
13068 (untyped_call, return): Accept SHmedia.
13069 (return_media): New insn.
13070 (prologue, epilogue, blockage): Accept SHmedia.
13071 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13072 (sunordered): New expand.
13073 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13074 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13075 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13076 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13077 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13078 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13079 abssf2_media): New insns.
13080 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13081 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13082 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13083 floatdidf2, floatsidf2_media, fix_truncdfdi2,
13084 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13085 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13086 absdf2_media): New insns.
13087 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13088 (extendsfdf2_media, truncdfsf2_media): New insns.
13089 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
13090 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13091 * config/sh/sh.h (CONST_OK_FOR_J): Document.
13092 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13093 * config/sh/sh.md (adddi3): New expand.
13094 (adddi3_media, adddi3z_media): New insns.
13095 (adddi3_compact): Renamed from adddi3.
13096 (addsi3_media): Use add.l r63 to add constant zero.
13097 (subdi3): New expand.
13098 (subdi3_media): New insn.
13099 (subdi3_compact): Renamed from subdi3.
13100 (mulsidi3): New expand.
13101 (mulsidi3_media): New insn.
13102 (mulsidi3_compact): Renamed from mulsidi3.
13103 (umulsidi3): New expand.
13104 (umulsidi3_media): New insn.
13105 (umulsidi3_compact): Renamed from umulsidi3.
13106 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13107 (ashlsi3, ashrsi3, lshrsi3): Use them.
13108 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13109 (ashldi3, ashrdi3, lshrdi3): Use them.
13110 (zero_extendsidi2): New expand.
13111 (extendsidi2): New insn.
13112 (movsi_media): New insn. Split to movdi to load constants.
13113 (movsi): Enable for shmedia.
13114 (movdi_media): New insn. Use shori_media to load wide constants.
13115 (short_media): New insn.
13116 (movdi): Enable for shmedia.
13117 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
13118 * config/sh/sh.h (CPP_SPEC): Added `m5'.
13119 (SUBTARGET_CPP_SPEC): Added `!m5'.
13120 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13121 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
13122 to all other SH variants.
13123 (TARGET_DEFAULT): Set to SH1_BIT.
13124 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13125 (BITS_PER_WORD): Raise to 64 on shmedia.
13126 (MAX_BITS_PER_WORD): Change to 64.
13127 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13128 (INT_TYPE_SIZE): Keep as 32.
13129 (UNITS_PER_WORD): Raise to 8 on shmedia.
13130 (MIN_UNITS_PER_WORD): Keep as 4.
13131 (POINTER_SIZE): Raise to 64 on shmedia.
13132 (CONST_OK_FOR_J): New macro.
13133 (CONST_OK_FOR_LETTER_P): Use it.
13134 (processor_type): Add PROCESSOR_SH5.
13135 * config/sh/sh.md: Conditionalize all expands, insns and
13136 splits to TARGET_SH1.
13138 (addsi3_compact): Renamed from...
13139 (addsi3): Now an expand.
13140 (addsi3_media, subsi3_media): New insns.
13141 (subsi3): Don't negate constants with SHmedia.
13143 * hooks.c: New file.
13144 * hooks.h: New file.
13145 * Makefile.in (HOOKS_H): New.
13146 (TARGET_DEF_H): Added $(HOOKS_H).
13147 (OBJS): Added hooks.o.
13148 (cfgcleanup.o, bb-reorder.o): Added target.h.
13149 (hooks.o): Added dependencies.
13150 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13151 (TARGET_INITIALIZER): this.
13152 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13153 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13154 * bb-reorder.c: Include target.h.
13155 (reorder_basic_blocks): Skip if cannot modify jumps.
13156 * cfgcleanup.c: Include target.h.
13157 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13159 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13161 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13162 Protect jump delay slot instructions with .set noreorder and
13165 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13167 * config/mips/mips.md (casesi_internal_di): Calculate
13168 the index into the target offset table correctly.
13170 2002-02-08 Richard Henderson <rth@redhat.com>
13172 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13173 * final.c (output_addr_const): Accept and discard SUBREG.
13174 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13175 mark them unknown instead.
13176 (simplify_subtraction): Handle RTX_UNKNOWN.
13177 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13179 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13181 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13183 2002-02-08 Richard Henderson <rth@redhat.com>
13185 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13187 2002-02-08 Andreas Jaeger <aj@suse.de>
13189 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13190 * config/i386/t-linux64: New file.
13192 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13194 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13195 * c-parse.in (compstmt): Clear last_expr_type.
13197 2002-02-07 Richard Henderson <rth@redhat.com>
13199 * loop.c (strength_reduce): Sink final_value when not
13202 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13204 * config/sparc/freebsd.h: Fix mismatched spec {.
13206 2002-02-07 Richard Henderson <rth@redhat.com>
13208 * cfgrtl.c: Include recog.h and insn-config.h.
13209 (keep_with_call_p): Fix general_operand invocation.
13210 * Makefile.in (cfgrtl.o): Update dependencies.
13212 2002-02-07 Kazu Hirata <kazu@hxi.com>
13214 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13215 comment. Accept HImode only if TARGET_H8300.
13217 2002-02-07 Eric Christopher <echristo@redhat.com>
13219 * config/mips/crtn.asm: Cleanup #ifdefs.
13221 2002-02-07 Eric Christopher <echristo@redhat.com>
13223 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13224 register 7 as RA instead of $31.
13225 * config/mips/crtn.asm: Ditto.
13226 * config/mips/mips.c (mips_move_2words): Add case for
13227 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13228 (compute_frame_size): Fix typo.
13229 (save_restore_insns): Ditto. Make documentation about using
13230 register $7 as return register more precise.
13231 (mips_expand_epilogue): Fix comment. Add code to work around not
13232 being able to add to the stack pointer directly.
13233 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13234 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13237 2002-02-07 Tom Rix <trix@redhat.com>
13239 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13240 immediates in ldu and stdu DS opcode field.
13241 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13242 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13243 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13245 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13247 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13248 offset for stack bias.
13250 2002-02-07 H.J. Lu <hjl@gnu.org>
13252 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13254 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13256 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13258 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13260 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13261 * i386.c (x86_order_regs_for_local_alloc): New global function.
13262 * i386.h (REG_ALLOC_ORDER): CLeanup.
13263 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13265 2002-02-07 Richard Henderson <rth@redhat.com>
13267 PR optimization/2463
13268 * alias.c (find_base_value): Recall base values for fixed hard regs.
13269 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13271 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13273 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13276 2002-02-06 Richard Henderson <rth@redhat.com>
13279 * stmt.c (resolve_operand_name_1): Take more care with mixed
13280 named and unnamed operands.
13282 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13283 Jan Hubicka <jh@suse.cz>
13285 * loop.c (remove_constant_addition): Avoid clobbering a shared
13288 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13290 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13291 * config/s390/t-linux64: New file.
13292 * config/s390/libgcc-glibc.ver: New file.
13294 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13296 * config/s390/linux64.h: Delete file.
13297 * config/s390/s390x.h: New file.
13298 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13299 as target header file.
13300 * config/s390/linux.h (TARGET_VERSION): Define depending on
13301 DEFAULT_TARGET_64BIT.
13302 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13303 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13304 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13305 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13306 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13307 (EXTRA_SPEC): New define.
13308 * config/s390/s390.h (TARGET_VERSION): Define depending on
13309 DEFAULT_TARGET_64BIT.
13310 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13312 2002-02-06 Jason Merrill <jason@redhat.com>
13314 * c-decl.c (finish_function): Warn about a non-void function with
13315 no return statement and no abnormal exit.
13316 (current_function_returns_abnormally): New variable.
13317 (start_function): Clear it.
13318 (struct c_language_function): Add returns_abnormally.
13319 (push_c_function_context): Save it.
13320 (pop_c_function_context): Restore it.
13321 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13322 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13323 an explicit return type.
13324 * c-tree.h: Declare current_function_returns_abnormally.
13325 (C_FUNCTION_IMPLICIT_INT): New macro.
13326 * c-typeck.c (build_function_call): Set it.
13327 (c_expand_return): Set current_function_returns_value even if the
13328 value is erroneous.
13330 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13333 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13334 unsafe for reevaluation.
13336 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13339 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13340 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13342 2002-02-06 Richard Henderson <rth@redhat.com>
13344 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13345 be a general_operand. Dest for function value must be a pseudo.
13347 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13349 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13350 as SYMBOL_REFs from the constant pool.
13352 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13354 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13355 passed by invisible reference.
13357 2002-02-05 Richard Henderson <rth@redhat.com>
13359 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13361 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13363 Implement using "base addresses" in insn operands as default.
13364 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13365 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13366 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13367 used to read the rtx value.
13368 (mmix_target_asm_function_epilogue): Fix spacing.
13369 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13370 (mmix_legitimate_address): Ditto.
13371 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13372 should be loaded with a GETA insn. Don't allocate needless extra
13373 char for nul termination and fix misleading comment.
13374 (mmix_print_operand_address): Handle constants if
13375 TARGET_BASE_ADDRESSES.
13376 (mmix_output_register_setting): Use base addressing if
13377 TARGET_BASE_ADDRESSES and the number of insns is 3.
13378 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13379 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13380 to use R as constraint, add LDA to match s.
13381 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13382 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13383 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13384 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13385 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13386 order with other fixed registers.
13387 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13388 other parameter/call-clobbered registers.
13389 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13390 -mbase-addresses, -mno-base-addresses.
13391 (MMIX Options): Ditto.
13393 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13395 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13397 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
13399 * config/rs6000/altivec.h: Change elem to _S_elem.
13401 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13403 * config/netbsd.h (WCHAR_TYPE): Define.
13404 (WCHAR_TYPE_SIZE): Ditto.
13405 (WINT_TYPE): Ditto.
13406 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13407 (WCHAR_UNSIGNED): Ditto.
13408 (WCHAR_TYPE_SIZE): Ditto.
13409 (WINT_TYPE): Ditto.
13410 * config/arm/netbsd.h: Likewise.
13411 * config/i386/netbsd-elf.h: Likewise.
13412 * config/i386/netbsd.h: Likewise.
13413 * config/m68k/netbsd-elf.h: Likewise.
13414 * config/m68k/netbsd.h: Likewise.
13415 * config/ns32k/netbsd.h: Likewise.
13416 * config/sparc/netbsd.h: Likewise.
13417 * config/vax/netbsd.: Likewise.
13419 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
13421 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13422 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
13423 (TARGET_INITIALIZER): this.
13424 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13425 (BITFIELD_NBYTES_LIMITED): Markup fix.
13426 * tree.h (default_ms_bitfield_layout_p): Declare.
13427 (record_layout_info): Added prev_field.
13428 * tree.c (default_ms_bitfield_layout_p): New fn.
13429 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13430 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13431 * stor-layout.c: Include target.h.
13432 (start_record_layout): Initialize prev_field.
13433 (place_field): Handle MS bit-field layout, and disregard
13434 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13435 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
13436 * Makefile.in (stor-layout.o): Adjust dependencies.
13438 2002-02-05 Jason Merrill <jason@redhat.com>
13440 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13442 2002-02-05 Andreas Jaeger <aj@suse.de>
13444 * crtstuff.c: Fix comments.
13446 2002-02-05 Richard Henderson <rth@redhat.com>
13449 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13450 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13453 * config/mips/mips.c (function_arg): Handle TImode.
13454 (function_arg_advance): Likewise.
13456 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13458 * config/rs6000/altivec.h (vec_step_help): Rename to
13461 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13463 * config/rs6000/altivec.h: Fix typos.
13465 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13467 * config/arm/netbsd.h: Correct a comment.
13469 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13471 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13472 building void typed builtins.
13474 * config/rs6000/altivec.h (vec_ld*): Fix typos.
13475 (vec_step): Implement for C++.
13477 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13479 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13481 2002-02-04 Richard Henderson <rth@redhat.com>
13483 * combine.c (nonzero_bits): Re-introduce special case for
13484 sp/fp/ap wrt REGNO_POINTER_ALIGN.
13486 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13488 * doc/extend.texi: Warn about unsupported usage of altivec
13491 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13492 (altivec_predicate_*): New.
13494 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13495 Add C++ version of vec_*() functions.
13497 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13498 (bdesc_2arg): Remove altivec predicates.
13499 (altivec_expand_builtin): Handle predicates.
13500 (altivec_init_builtins): Handle predicates.
13501 (altivec_expand_predicate_builtin): New.
13503 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13505 * pa.c (DO_FRAME_NOTES): Move forward.
13506 (store_reg): Revise handling of frame notes.
13507 (load_reg): Likewise.
13508 (set_reg_plus_d): Likewise.
13509 (hppa_expand_prologue): Likewise.
13510 (hppa_expand_epilogue): Likewise.
13512 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13514 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13516 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13518 PR c/4475, c++/3780:
13519 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13520 * c-common.h (SWITCH_TYPE): Define.
13521 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13522 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13523 Rename spareness variable to sparseness.
13524 (expand_end_case_type): Renamed from expand_end_case, use orig_type
13525 if non-NULL instead of TREE_TYPE (orig_index).
13526 * tree.h (expand_end_case_type): Renamed from expand_end_case.
13527 (expand_end_case): Define using expand_end_case_type.
13528 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13529 to expand_end_case_type.
13530 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13532 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13534 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13535 (BIGGEST_ALIGNMENT): Change to 128.
13537 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13539 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13541 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13543 * pa.md (call_internal_reg_64bit): Remove unused variable.
13545 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
13547 * config/arm/arm.h (machine_function): Add uses_anonymous_args
13549 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13550 * config/arm/arm.c (current_function_anonymous_args): Delete,
13551 replace uses with cfun->machine->uses_anonymous_args.
13552 (arm_reorg): Do not reset uses_anonymous_args.
13554 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13555 any geenral register.
13557 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
13559 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13562 2002-02-04 Richard Henderson <rth@redhat.com>
13564 * combine.c (force_to_mode): Remove STACK_BIAS code.
13565 (nonzero_bits): Likewise. Replace sp/fp special case with
13566 REGNO_POINTER_ALIGN.
13568 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13569 (HARD_FRAME_POINTER_REGNUM): New.
13570 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13571 (FIXED_REGS, CALL_USED_REGS): Update.
13572 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13573 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13574 (HARD_REGNO_NREGS): Update for SFP.
13575 (STACK_POINTER_OFFSET): Include bias here ...
13576 (FIRST_PARM_OFFSET): ... not here.
13577 (STACK_BIAS): Remove.
13578 (INIT_EXPANDERS): New.
13579 (STARTING_FRAME_OFFSET): Do not include bias.
13580 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13581 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13582 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13583 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13584 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13585 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13586 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13587 (MUST_SAVE_REGISTER): Likewise.
13588 (sparc_flat_function_prologue): Likewise.
13589 (sparc_flat_function_epilogue): Likewise.
13590 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13591 (sparc_init_modes): SFP is GENERAL_REGS.
13592 (sparc_builtin_saveregs): SFP does not have bias applied.
13594 2002-02-04 Richard Henderson <rth@redhat.com>
13596 * config/alpha/alpha.c (current_function_is_thunk): Don't check
13597 current_function_is_thunk.
13598 (alpha_sa_mask): Distinguish between current_function_is_thunk
13599 called from ASM_OUTPUT_MI_THUNK and not.
13600 (alpha_does_function_need_gp): Thunks always need gp.
13601 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13602 (alpha_output_mi_thunk_osf): New.
13603 * config/alpha/alpha-protos.h: Update.
13604 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13606 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
13608 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13609 function types, not when they're taken away.
13611 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
13613 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13614 CODE_LABEL and jump table when replacing a table jump with a
13617 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13619 * config/s390/s390-protos.h (legitimize_la_operand,
13620 s390_secondary_input_reload_class, s390_plus_operand,
13621 s390_expand_plus_operand): Add prototypes.
13623 config/s390/s390.c (s390_secondary_input_reload_class,
13624 s390_plus_operand, s390_expand_plus_operand): New functions.
13626 (struct s390_address): New member 'pointer'.
13627 (s390_decompose_address): Compute it.
13628 (legitimate_la_operand_p): Use it.
13629 (legitimize_la_operand): New function.
13630 (movti, movdi, movdf splitters): Call it.
13632 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13633 (PREDICATE_CODES): Add s390_plus_operand.
13635 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13636 (la_ccclobber): Allow GENERAL_REGS as output operand.
13638 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13639 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13640 (*la_64, *la_31, reload_indi, reload_insi): ... these.
13642 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13644 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13645 register names for regular asm () construct.
13647 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13649 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13652 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13654 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13657 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
13659 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13660 constant pool to be identical by string address and index.
13662 2002-02-04 Anthony Green <green@redhat.com>
13664 * output.h (SECTION_OVERRIDE): Define.
13665 * varasm.c (named_section): Obey SECTION_OVERRIDE.
13667 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13669 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13670 by existing arm*-*-netbsd* (a.out) target.
13671 (ns32k-*-netbsdelf*): Likewise.
13672 (sparc-*-netbsdelf*): Likewise.
13673 (vax-*-netbsdelf*): Likewise.
13675 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
13677 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13678 headers and libobjc headers.
13680 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
13682 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13683 (_mingw.h): Remove duplicate include.
13685 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13687 * config.gcc: Set cpu_type to m68k for 68010, as well.
13688 (m68010-*-netbsdelf*): New...
13689 (m68k*-*-netbsdelf*): ...targets.
13690 * config/m68k/netbsd-elf.h: New file.
13692 2002-02-02 Kazu Hirata <kazu@hxi.com>
13694 * config/h8300/h8300.c (hand_list): Move inside function_arg.
13696 2002-02-02 Kazu Hirata <kazu@hxi.com>
13698 * config/h8300/h8300.c (h8_push_ops): Move inside
13700 (h8_pop_ops): Likewise.
13701 (h8_move_ops): Likewise.
13703 2002-02-02 Kazu Hirata <kazu@hxi.com>
13705 * config/h8300/h8300.c (os_task): Make it static.
13706 (monitor): Likewise.
13707 (pragma_saveall): Likewise.
13709 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
13711 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13712 constant is a valid sign-extension for Pmode.
13714 2002-02-02 Kazu Hirata <kazu@hxi.com>
13716 * config/h8300/h8300.c: Fix formatting.
13718 2002-02-02 Kazu Hirata <kazu@hxi.com>
13720 * config/h8300/h8300.md: Fix formatting.
13722 2002-02-02 Kazu Hirata <kazu@hxi.com>
13724 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13725 predicates of operands[1]. Split the patterns for each
13728 2002-02-02 Kazu Hirata <kazu@hxi.com>
13730 * config/h8300/h8300.md (xor patterns): Tighten the predicates
13731 of operands[1] to register_operand.
13733 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13735 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13736 * cpphash.c (_cpp_init_hashtable): Similarly.
13737 * cppinit.c (cpp_create_reader): Default the signed_char flag.
13738 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13739 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13740 (cpp_handle_option): Handle the new options.
13741 * cpplex.c (cpp_interpret_charconst): Use new flag.
13742 * cpplib.h (struct cpp_options): New member signed_char.
13743 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13744 (cpp_options): Handle -fsigned-char and -funsigned-char.
13745 (static_specs): Remove signed_char_spec.
13746 (do_spec1): Don't handle %c.
13747 * system.h: Poison SIGNED_CHAR_SPEC.
13748 * tradcif.y (yylex): Use flag_signed_char.
13749 * tradcpp.h (flag_signed_char): New.
13750 * tradcpp.c (flag_signed_char): New.
13751 (main): Handle new command-line options.
13752 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13754 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13755 * avr/avr.h: Remove old comments.
13756 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13757 (CC1_SPEC): Pass -fsigned-char if -mic*.
13758 (SIGNED_CHAR_SPEC): Remove.
13760 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13762 2002-02-01 Eric Christopher <echristo@redhat.com>
13764 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13765 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13766 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13767 (ASM_OUTPUT_REG_POP): Ditto.
13769 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13771 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13774 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13776 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13778 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13781 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13784 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13786 * cfganal.c: Include tm_p.h.
13787 (keep_with_call_p): Fix the test that determines if a register holds
13788 the return value of a call.
13790 2002-02-01 DJ Delorie <dj@redhat.com>
13792 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13793 we are given conflicting registers, switch to the other one we
13794 had allocated for us.
13795 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13796 as TImode so we know when the "other" register is available.
13798 2002-02-01 David O'Brien <obrien@FreeBSD.org>
13800 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13803 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13805 * cfganal.c (keep_with_call_p): New function.
13806 (flow_call_edges_add): Prevent splitting a block between a call and
13807 a single-set instruction that should be kept in the same block.
13809 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
13811 * doc/install.texi (avr): Update outdated URL.
13813 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
13815 * config/stormy16/stormy16.md (pushqi): New.
13819 (movhi): Remove stack operands.
13821 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13822 nonimmediate_nonstack_operand.
13823 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13825 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13828 2002-01-31 Jason Merrill <jason@redhat.com>
13830 * Makefile.in (c-parse.c): Handle .output file.
13831 * objc/Make-lang.in (objc-parse.c): Likewise.
13833 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
13835 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
13836 the -me[lb] option is given. Don't output the default flag
13839 2002-01-31 Zack Weinberg <zack@codesourcery.com>
13841 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
13842 the primary source file; this has not been done yet.
13843 * c-decl.c (c_expand_body): Reset input_filename from
13844 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
13846 2002-01-31 Kazu Hirata <kazu@hxi.com>
13848 * rtlanal.c (subreg_regno_offset): Do not use
13849 SUBREG_REGNO_OFFSET.
13850 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
13851 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
13853 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13855 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
13856 version rather than GNATS version in --version output.
13858 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
13860 * ifcvt.c (noce_process_if_block): Make a copy of the destination
13861 when copying back from a temporary.
13863 2002-01-30 Richard Henderson <rth@redhat.com>
13865 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
13866 and new_dest are the same.
13868 2002-01-30 Richard Henderson <rth@redhat.com>
13871 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
13872 * rtl.c (note_insn_name): Update.
13873 * emit-rtl.c (remove_unnecessary_notes): Kill it.
13874 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
13875 to perform loop rotation.
13876 (expand_exit_loop_top_cond): New.
13877 * tree.h (expand_exit_loop_top_cond): Declare it.
13878 * c-semantics.c (genrtl_while_stmt): Use it.
13879 (genrtl_for_stmt): Likewise.
13881 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
13883 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
13884 arguments to 64-bit boundaries on 64-bit ABIs.
13886 2002-01-30 Steve Ellcey <sje@cup.hp.com>
13888 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
13890 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13892 * c-decl.c (grokdeclarator): Handle type being a typedef for an
13895 2002-01-30 David O'Brien <obrien@FreeBSD.org>
13897 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
13898 * config/sparc/sparc_bi.h: Remove file.
13899 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
13901 2002-01-30 Richard Henderson <rth@redhat.com>
13903 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
13905 2002-01-30 Zack Weinberg <zack@codesourcery.com>
13907 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
13909 2002-01-30 Jason Merrill <jason@redhat.com>
13911 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
13912 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
13913 (reg_save): Use DW_CFA_offset_extended_sf instead.
13915 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
13917 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13919 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
13922 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
13924 * rs6000.md ("*call_value_local32"): Remove constraints.
13925 ("*call_value_local64"): Same.
13926 ("*call_value_indirect_nonlocal_aix32"): Same.
13927 ("*call_value_nonlocal_aix32"): Same.
13928 ("*call_value_indirect_nonlocal_aix64"): Same.
13929 ("*call_value_nonlocal_aix64"): Same.
13930 ("*call_value_nonlocal_sysv"): Same.
13932 2002-01-29 Richard Henderson <rth@redhat.com>
13934 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
13936 2002-01-29 Richard Henderson <rth@redhat.com>
13938 * expr.c (force_operand): Ignore flag_pic for detecting pic
13940 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
13941 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
13942 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
13943 instead of open-coded loop.
13944 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
13945 be fixed when in use.
13947 2002-01-29 Richard Henderson <rth@redhat.com>
13949 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
13950 * sched-rgn.c (propagate_deps): Update them.
13951 * sched-deps.c (sched_analyze_insn): Update them. Flush the
13952 clobbers list when either gets too long.
13954 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13956 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
13957 and INDEX_REGS the same as GENERAL_REGS.
13958 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
13960 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13962 * tree.c (build_nonstandard_integer_type): Correct prototype.
13964 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
13966 * config/s390/s390.md (movstrsico, movstrdix_64,
13967 movstrsix_31): Remove, replace by ...
13968 (movstrdi_short, movstrsi_short, movstrdi_long,
13969 movstrsi_long): ... these. New.
13970 (movstrdi, movstrsi): Adapt.
13972 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
13973 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
13974 Remove unnecessary CC clobber.
13975 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
13976 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
13978 (divmoddi4): Don't partially initialize TImode register.
13980 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
13982 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
13984 2002-01-29 Richard Henderson <rth@redhat.com>
13986 * flow.c (print_rtl_and_abort): Remove.
13987 (print_rtl_and_abort_fcn): Remove.
13988 (verify_local_live_at_start): Use dump_bb instead.
13989 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
13990 (verify_wide_reg_1): Return 2 on mode test failure.
13992 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13994 PR c/3325, c/3326, c/2511, c/3347
13995 * c-decl.c (enum_decl_context): Remove BITFIELD.
13996 (grokdeclarator): Take bitfield width as an input.
13997 Ensure bitfields are given the correct type. Perform
13998 bitfield width validation with build_bitfield_integer_type
13999 rather than waiting for finish_struct.
14000 (grok_typename, grok_typename_in_parm_context, start_decl,
14001 push_parmdecl, grokfield, start_function): Update calls to
14003 (build_bitfield_integer_type): New function.
14004 (finish_struct): Move bitfield validation to grokdeclarator
14005 and build_bitfield_integer_type.
14006 * tree.c (build_nonstandard_integer_type): New function.
14007 * tree.h (build_nonstandard_integer_type): New prototype.
14009 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14011 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14014 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14015 don't ignore unrecognized -W* options.
14016 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14017 * cpplib.h (cpp_handle_option): Adjust prototype.
14018 * c-decl.c (c_decode_options): Pass 0 as last argument to
14022 * gcc.c (cpp_unique_options): Split from cpp_options.
14023 (cpp_options): Source cpp_unique_options.
14024 (default_compilers): Use cpp_unique_options instead of cpp_options
14025 when used together with cc1_options.
14026 (static_specs): Add cpp_unique_options.
14027 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14028 when used together with cc1_options.
14030 2002-01-29 Kazu Hirata <kazu@hxi.com>
14032 * config/h8300/h8300-protos.h: Update the prototype of
14034 * config/h8300/h8300.c (output_a_shift): Remove an unused
14035 argument 'insn'. Remove redundant code.
14036 * config/h8300/h8300.md: Adust to the new prototype of
14039 2002-01-29 Kazu Hirata <kazu@hxi.com>
14041 * config/h8300/h8300-protos.h: Update the prototypes of
14042 emit_a_rotate and expand_a_rotate.
14043 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14044 first argument to 'enum rtx_code'.
14045 (expand_a_rotate): Likewise.
14047 2002-01-28 Kazu Hirata <kazu@hxi.com>
14049 * config/h8300/h8300-protos.h: Update the prototype of
14051 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14053 * config/h8300/h8300.md: Adjust to the new prototype.
14055 2002-01-28 Kazu Hirata <kazu@hxi.com>
14057 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14060 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14062 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14063 is a fixed register before returning pic_offset_table_rtx.
14064 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14065 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14067 2002-01-28 Jason Merrill <jason@redhat.com>
14069 * dwarf2.h: Sync with src version.
14071 2002-01-28 Paul Koning <pkoning@equallogic.com>
14073 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14074 BT_FN_VOID_PTR_VAR.
14075 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14076 * doc/extend.texi (__builtin_prefetch): Update documentation:
14077 first argument is now const void ptr.
14079 2002-01-28 Kazu Hirata <kazu@hxi.com>
14081 * config/h8300/h8300-protos.h: Remove an unused prototype.
14083 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
14085 * toplev.c (lang_independent_init): Round up identifier size.
14087 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14089 * config.gcc: Revert previous change.
14091 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
14093 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14095 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14097 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14098 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
14099 other non-elf netbsd config frags.
14100 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14101 collect2 will does that.
14102 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14103 shared-lib frobbing will work.
14105 2002-01-28 Kazu Hirata <kazu@hxi.com>
14107 * config/h8300/h8300.h: Fix formatting.
14108 * config/h8300/h8300.md: Likewise.
14110 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
14112 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14113 the old, removed AAA_standards fix.
14114 * fixinc/fixincl.x: Rebuilt.
14116 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
14118 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14119 atexit call in crtbegin, hooked in after call to frame_dummy;
14120 register EH before registering __fini__start.
14122 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
14124 * config/rs6000/altivec.h: Remove spurious semicolons.
14126 2002-01-27 Kazu Hirata <kazu@hxi.com>
14128 * config/h8300/h8300.md: Replace dead bit extraction patterns
14129 with ones that work.
14131 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14133 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14134 if not STRICT_ALIGNMENT.
14135 * rtl.h (MEM_ALIGN): Likewise.
14137 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
14139 * doc/invoke.texi (-fdump-translation-unit): Revert this
14140 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14142 2002-01-27 Kazu Hirata <kazu@hxi.com>
14144 * config/h8300/h8300.md (define_constants): New.
14145 (anonymous patterns) Use defined constants appropriately.
14147 2002-01-27 Kazu Hirata <kazu@hxi.com>
14149 * config/h8300/h8300.c (function_arg): Remove redundant code.
14151 2002-01-26 Richard Henderson <rth@redhat.com>
14153 * sched-deps.c (reg_pending_uses_head): New.
14154 (reg_pending_barrier): Rename from reg_pending_sets_all.
14155 (find_insn_list): Don't mark inline.
14156 (find_insn_mem_list): Remove.
14157 (add_dependence_list, add_dependence_list_and_free): New.
14158 (flush_pending_lists): Replace only_write param with separate
14159 for_read and for_write parameters. Update all callers. Use
14160 add_dependence_list_and_free.
14161 (sched_analyze_1): Do not add reg dependencies here; just set
14162 the pending bits. Use add_dependence_list.
14163 (sched_analyze_2): Likewise.
14164 (sched_analyze_insn): Replace schedule_barrier_found with
14165 reg_pending_barrier. Add all dependencies for pending reg
14166 uses, sets, and clobbers.
14167 (sched_analyze): Don't add reg dependencies for calls, just
14168 set pending bits. Use regs_invalidated_by_call. Treat
14169 sched_before_next_call as a normal list, not a fake insn.
14170 (init_deps): No funny init for sched_before_next_call.
14171 (free_deps): Free pending mems lists. Don't zero reg_last.
14172 (init_deps_global): Init reg_pending_uses.
14173 (finish_deps_global): Free it.
14174 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14175 (find_insn_mem_list): Remove.
14176 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14177 (propagate_deps): Use them. Zero temp mem lists.
14179 2002-01-26 Richard Henderson <rth@redhat.com>
14181 * Makefile.in (CRTSTUFF_CFLAGS): New.
14182 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14183 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14184 crtstuff.c instead of alpha assembly version.
14185 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14186 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14187 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14188 (__do_global_dtors_aux): Mark used.
14189 (frame_dummy, __do_global_ctors_aux): Mark used.
14190 (fini_dummy, init_dummy): Remove.
14192 * config/alpha/crtbegin.asm: Remove file.
14193 * config/alpha/crtend.asm: Remove file.
14194 * config/alpha/t-crtbe: Remove file.
14195 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14196 (LINK_EH_SPEC): New.
14198 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14199 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14200 calling constructors.
14201 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14203 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14204 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14205 CRT_END_INIT_DUMMY hack.
14206 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14207 FORCE_{INIT,FINI}_SECTION_ALIGN.
14209 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14210 FORCE_{INIT,FINI}_SECTION_ALIGN.
14212 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14213 invocation sequence.
14214 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14216 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14217 (FORCE_CODE_SECTION_ALIGN): New.
14219 2002-01-26 Richard Henderson <rth@redhat.com>
14221 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14223 2002-01-26 Richard Henderson <rth@redhat.com>
14225 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14226 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14228 2002-01-26 Kazu Hirata <kazu@hxi.com>
14230 * config/h8300/h8300.md: Remove bit extraction patterns that
14231 cannot be triggered.
14232 Restrict each bit extraction pattern to a variant on which the
14235 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14237 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14239 2002-01-26 Kazu Hirata <kazu@hxi.com>
14241 * config/h8300/h8300.md: Remove bit test patterns that cannot
14243 Restrict each bit test pattern to a variant on which the
14246 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14248 * builtins.c (expand_builtin_strncat): Remove redundant check for
14251 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14253 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14255 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14258 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14260 * dbxout.c (dbxout_init): Use assemble_name rather than just
14261 stripping off the first character.
14262 (dbxout_source_file): Likewise.
14264 2002-01-25 DJ Delorie <dj@redhat.com>
14266 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14267 using rtx_equal_p, not by comparing pointers.
14269 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14271 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14272 for PIC_OFFSET_TABLE_REGNUM.
14273 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14275 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14277 * config.gcc (x86_64-*-freebsd*): New target.
14278 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14280 (i[34567]86-*-freebsd*): Don't include svr4.h.
14281 * config/i386/freebsd64.h: New file.
14283 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14285 * config/alpha/x-vms (version): Make static.
14287 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14288 in previous checkin.
14290 * Makefile.in (install-headers-cp): New target.
14291 * config.gcc (alpha-dec-*vms*): Install headers with
14294 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14296 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14299 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14301 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14302 of compare_tree_int.
14303 (expand_builtin_strncat): Likewise.
14304 * c-decl.c (finish_struct): Use tree_low_cst.
14305 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14306 * tree.c (compare_tree_int): Likewise.
14308 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14310 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14311 adjustments even if they are implemented by more than two insns.
14313 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14315 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14316 * df.h (struct ref): Kill B.
14317 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14319 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14320 * flow.c (propagate_one_insn): Use it.
14321 (mark_used_regs): Handle NIL.
14323 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14325 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14328 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14330 * rs6000.md (prefetch): Make address V4SI mode so that the address
14331 is restricted to legitimate form for instruction.
14333 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14335 * doc/install.texi (xtensa-*-elf): New target.
14336 (xtensa-*-linux*): New target.
14337 * doc/contrib.texi: Add myself.
14339 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14341 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14342 purpose register to hold an SImode (or smaller) value.
14344 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14346 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14348 * crtstuff.c: Likewise.
14350 2002-01-25 Kazu Hirata <kazu@hxi.com>
14352 * config/h8300/h8300.md (negation patterns): Tighten
14353 predicates to register_operand.
14355 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14357 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14360 * builtins.c (expand_builtin_prefetch): Same.
14362 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14364 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14367 2002-01-24 Kazu Hirata <kazu@hxi.com>
14369 * config/h8300/h8300.c (print_operand): Remove support for
14370 operand character 'A'.
14371 * config/h8300/h8300.md (three anonymous patterns): Replace
14372 operand character 'A' with either 'T' or 'S'.
14374 2002-01-24 Kazu Hirata <kazu@hxi.com>
14376 * config/h8300/h8300.c (print_operand): Remove support for
14377 operand character 'U'.
14379 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
14381 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14383 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
14385 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14386 values to be assigned to the stack pointer.
14388 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14390 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14391 to const_double needs to be done right for big-endian systems.
14393 2002-01-24 Jason Merrill <jason@redhat.com>
14396 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14397 to can_throw_internal.
14399 2002-01-23 Richard Henderson <rth@redhat.com>
14401 * fold-const.c (fold): Change UINT_MAX test to check vs precision
14402 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
14404 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14406 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14407 (symGOT2reg): Use them, then set as GOT value as unchanging.
14408 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
14409 as a temporary, if possible.
14410 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
14411 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14413 2002-01-23 Kazu Hirata <kazu@hxi.com>
14415 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14416 accept to accept 0x80 as operands[2].
14418 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14420 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14422 2002-01-23 Richard Henderson <rth@redhat.com>
14424 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14426 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
14428 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14429 (parmlist_or_identifiers_1): Verify that only a parmlist follows
14432 2002-01-23 Richard Henderson <rth@redhat.com>
14434 * expr.c (move_by_pieces_1): Extend size before negation.
14436 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14437 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14438 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14439 * config/m68k/t-m68kelf: Likewise.
14441 2002-01-23 Bob Wilson <bob.wilson@acm.org>
14443 * config/xtensa/elf.h: New file.
14444 * config/xtensa/lib1funcs.asm: New file.
14445 * config/xtensa/lib2funcs.S: New file.
14446 * config/xtensa/linux.h: New file.
14447 * config/xtensa/t-xtensa: New file.
14448 * config/xtensa/xtensa-config.h: New file.
14449 * config/xtensa/xtensa-protos.h: New file.
14450 * config/xtensa/xtensa.c: New file.
14451 * config/xtensa/xtensa.h: New file.
14452 * config/xtensa/xtensa.md: New file.
14453 * config.gcc (xtensa-*-elf*): New target.
14454 (xtensa-*-linux*): New target.
14455 * cse.c (canon_hash): Compare rtx pointers instead of register
14456 numbers. This is required for the Xtensa port.
14457 * integrate.c (copy_insn_list): Handle case where the static
14458 chain is in memory and the memory address has to be copied to
14460 * doc/invoke.texi (Option Summary): Add Xtensa options.
14461 (Xtensa Options): New node.
14462 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14464 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14466 * diagnostic.c (internal_error): Do ICE suppression only
14467 when ENABLE_CHECKING is not defined.
14469 * c-typeck.c (require_complete_type): Return error_mark_node
14470 if type is error_mark_node.
14472 2002-01-23 Janis Johnson <janis187@us.ibm.com>
14474 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14475 -Os and issue a warning.
14477 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14479 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14480 current (lack of) need for host configuration by hand.
14482 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14483 references. Documentation of some target macros moved from
14484 hostconfig.texi to tm.texi.
14486 2002-01-23 Will Cohen <wcohen@redhat.com>
14488 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14491 2002-01-23 Kazu Hirata <kazu@hxi.com>
14493 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14496 2002-01-23 Jason Merrill <jason@redhat.com>
14498 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14500 * function.c (assign_parms): Don't put args of inline functions
14501 into registers when not optimizing.
14503 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
14505 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14506 (prologue_use): New pattern.
14507 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14508 preference to gen_rtx_USE.
14509 (thumb_expand_prologue): Use gen_prologue_use in preference to
14511 (thumb_expand_epilogue): Use gen_prologue_use in preference to
14514 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
14516 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14518 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
14521 * doc/extend.texi: Correct documentation of __alignof__.
14523 2002-01-22 Zack Weinberg <zack@codesourcery.com>
14525 * params.h: Rename arguments of DEFPARAM so that it will be
14526 recognized as a translation keyword.
14528 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14530 * extend.texi: Document altivec functions.
14531 Fix N-bit adjectives in X86 builtin documentation.
14533 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14535 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14536 auto_inc_dec values.
14538 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
14540 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14542 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14544 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14546 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14548 2002-01-22 Richard Henderson <rth@redhat.com>
14550 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14551 copy_insn not copy_rtx.
14553 2002-01-23 Alan Modra <amodra@bigpond.net.au>
14555 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14556 "nonzero" as that might add "1" bits. Ensure "constop" is
14557 properly sign extened.
14558 (force_to_mode): Tweak for sign extended constop.
14560 2002-01-22 Richard Henderson <rth@redhat.com>
14562 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14563 for_each_rtx instead of assuming we're already looking at the MEM.
14564 (split_small_symbolic_mem_operand): Likewise.
14565 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14566 * config/alpha/alpha.md (small symbolic memory splitters): Update.
14568 2002-01-22 Richard Henderson <rth@redhat.com>
14570 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14571 sequence number for the literal.
14572 (divmoddi_internal_er): Likewise.
14574 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14577 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14578 in LIBICONV variable.
14579 * configure: Regenerated.
14581 2002-01-22 Krister Walfridsson <cato@df.lth.se>
14583 * dependence.c (build_def_use): Remove array_idx.
14585 * dwarfout.c (last_filename): Remove.
14586 (output_compile_unit_die): Remove last_filename.
14588 2002-01-22 Roger Sayle <roger@eyesopen.com>
14589 Richard Henderson <rth@redhat.com>
14592 * fold-const.c (fold): Optimize unsigned comparisons against
14593 UINT_MAX (and similar unsigned constants).
14595 2002-01-22 Janis Johnson <janis187@us.ibm.com>
14597 * Makefile.in (loop.o): Depend on OPTABS_H.
14598 * loop.c (emit_prefetch_instructions): Check the prefetch operand
14599 against the predicate.
14602 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14603 for the address operand.
14605 2002-01-22 Richard Henderson <rth@redhat.com>
14607 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14609 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14612 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14613 preprocessor flags.
14615 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
14617 * config.gcc (x86_64-*-netbsd*): New target.
14618 * config/i386/netbsd64.h: New file.
14620 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14622 * regrename.c (kill_value): Fix typo.
14624 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14626 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14628 * config/rs6000/rs6000.h: Same.
14630 * function.c (instantiate_virtual_regs): Remove
14631 STARTING_FRAME_PHASE.
14632 (assign_stack_local_1): Same.
14633 Calculate frame phase.
14635 2002-01-22 Nick Clifton <nickc@redhat.com>
14637 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14638 variable declaration to outer scope in order to simplify
14640 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14641 arm_hard_regno_mode_ok.
14642 * config/arm/arm-protos.h: Add a prototype for
14643 arm_hard_regno_mode_ok.
14644 * config/arm/arm.c (soft_df_operand): Remove now redundant
14645 check for DImode values using IP_REGNUM.
14646 (nonimmediate_soft_df_operand): Remove now redundant check for
14647 DImode values using IP_REGNUM.
14648 (arm_hard_regno_mode_ok): New function. New check: make sure
14649 that DImode values are not stored in IP_REGNUM.
14651 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14653 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14655 2002-01-22 Jason Merrill <jason@redhat.com>
14657 * c-semantics.c (genrtl_compound_stmt): Only check nesting
14658 consistency if this COMPOUND_STMT is scoped.
14660 2002-01-22 Kazu Hirata <kazu@hxi.com>
14662 * predict.c: Fix formatting.
14663 * print-tree.c: Likewise.
14664 * protoize.c: Likewise.
14665 * real.h: Likewise.
14667 * sbitmap.h: Likewise.
14668 * scan.c: Likewise.
14669 * sched-deps.c: Likewise.
14670 * sched-vis.c: Likewise.
14671 * sdbout.c: Likewise.
14672 * sibcall.c: Likewise.
14674 * ssa-ccp.c: Likewise.
14675 * ssa-dce.c: Likewise.
14676 * stmt.c: Likewise.
14677 * stor-layout.c: Likewise.
14678 * system.h: Likewise.
14680 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14682 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14683 if fits in bounds of base type.
14685 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14686 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14687 (add_bound_info, default): If can't find a context, make a
14689 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14691 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
14693 * c-typeck.c (parser_build_binary_op): If result from
14694 build_binary_op is ERROR_MARK just return error_mark_node without
14695 further processing.
14697 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
14699 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14700 Split a.out-specific bits into...
14701 * config/netbsd-aout.h: ...this.
14702 * config/netbsd-elf.h: New file.
14703 * config/alpha/netbsd-elf.h: Remove.
14704 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14705 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14706 (STARTFILE_SPEC): Remove redundant definition.
14707 (ENDFILE_SPEC): Likewise.
14708 (LINK_SPEC): Likewise.
14709 (CPP_SPEC): Likewise.
14710 (ASM_SPEC): Likewise.
14711 (LIB_SPEC): Likewise.
14712 (SWITCH_TAKES_ARG): Likewise.
14713 (TARGET_MEM_FUNCTIONS): Likewise.
14714 (CPP_PREDEFINES): Redefine.
14715 (ASM_FINAL_SPEC): Remove redefinition.
14716 (ASM_COMMENT_START): Redefine.
14717 (FUNCTION_PROFILER): Define.
14718 (TARGET_VERSION): Redefine.
14719 Comment and formatting cleanup.
14720 * config/i386/netbsd.h: Include <netbsd-aout.h>.
14721 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14722 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14723 big- or little-endian.
14724 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14725 * config.gcc (*-*-netbsd*): Add definitions common to all
14727 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14728 gnu_ld definitions. Add netbsd-elf.h to and remove
14729 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
14730 tmake_file, and don't lose previous tmake_file contents.
14731 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14732 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14733 gnu_ld definitions. Add netbsd-elf.h to tm_file.
14734 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14735 (mipsel-*-netbsd*): Rename this to...
14736 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
14737 mips/little.h to tm_file for mips*el-*.
14738 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14739 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14740 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14742 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14744 * pa-protos.h (reg_before_reload_operand): New function prototype.
14745 * pa.c (reg_before_reload_operand): New function implementation.
14746 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
14747 contraints to "*m".
14749 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14751 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14753 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14755 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14756 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14757 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14758 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14759 (ENDFILE_SPEC): Undefine.
14760 (STARTFILE_SPEC): Redefine for PA.
14762 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14764 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14766 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
14768 * config.gcc: Add entries to supported PowerPC --with-cpu
14771 2002-01-21 Jakub Jelinek <jakub@redhat.com>
14773 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14774 true for 64-bit mode only SSE registers in 32-bit mode.
14776 2002-01-21 Kazu Hirata <kazu@hxi.com>
14778 * unwind-dw2.c: Fix formatting.
14779 * unwind-dw2-fde.c: Likewise.
14780 * unwind-dw2-fde.h: Likewise.
14781 * unwind-pe.h: Likewise.
14782 * varasm.c: Likewise.
14783 * varray.h: Likewise.
14785 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
14787 Remove workaround for register stack overwrite bug in mmix.
14788 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14789 support for TARGET_REG_STACK_FILL_BUG.
14790 * config/mmix/mmix.h: Remove member has_call_without_parameters.
14791 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14793 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14794 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14795 -mno-reg-stack-fill-bug-workaround.
14796 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14797 machine member has_call_without_parameters.
14798 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14799 -mreg-stack-fill-bug-workaround and
14800 -mno-reg-stack-fill-bug-workaround.
14801 (MMIX Options): Ditto.
14803 2002-01-21 Kazu Hirata <kazu@hxi.com>
14805 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14807 Remove redundant code.
14809 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
14811 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14812 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14813 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14814 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14815 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14816 out target macro definitions and non-target-specific comments
14817 mostly taken from old versions of the manual.
14819 2002-01-20 Kazu Hirata <kazu@hxi.com>
14821 * config/h8300/h8300.h: Fix comment formatting.
14822 * config/ia64/aix.h: Likewise.
14823 * config/ia64/ia64-protos.h: Likewise.
14824 * config/ia64/ia64.c: Likewise.
14825 * config/ia64/ia64.h: Likewise.
14826 * config/ia64/ia64intrin.h: Likewise.
14827 * config/ia64/linux.h: Likewise.
14828 * config/ia64/unwind-aix.c: Likewise.
14829 * config/ia64/unwind-ia64.c: Likewise.
14831 2002-01-20 Kazu Hirata <kazu@hxi.com>
14833 * config/h8300/h8300.c: Revise comments about shift code.
14835 2002-01-20 Kazu Hirata <kazu@hxi.com>
14837 * config/h8300/h8300.c (function_arg): Update a comment.
14839 2002-01-20 Kazu Hirata <kazu@hxi.com>
14841 * config/h8300/h8300.md: Update the comments at the beginning
14844 2002-01-20 Kazu Hirata <kazu@hxi.com>
14846 * config/i370/i370.c: Fix comment formatting.
14847 * config/i370/i370.h: Likewise.
14848 * config/i370/i370.md: Likewise.
14849 * config/i370/linux.h: Likewise.
14851 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14853 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
14855 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
14856 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
14857 in incomplete case.
14859 2002-01-20 Graham Stott <grahams@redhat.com>
14861 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
14863 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
14865 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
14867 2002-01-19 Tom Rix <trix@redhat.com>
14869 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
14871 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
14873 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
14875 * function.c (assign_stack_local_1): Adjust x_frame_offset with
14876 STARTING_FRAME_PHASE.
14877 (STARTING_FRAME_PHASE): New.
14878 (instantiate_virtual_regs): Check saneness of
14879 STARTING_FRAME_PHASE.
14881 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
14883 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14885 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
14887 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
14889 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
14890 be used for bootstrapping GCC 3.0.
14892 2002-01-18 Kazu Hirata <kazu@hxi.com>
14894 * config/h8300/h8300.md: Fix an insn length.
14896 2002-01-18 Kazu Hirata <kazu@hxi.com>
14898 * bitmap.h: Fix comment formatting.
14899 * combine.c: Likewise.
14900 * cppfiles.c: Likewise.
14901 * c-pragma.h: Likewise.
14902 * c-typeck.c: Likewise.
14904 * dwarf2out.c: Likewise.
14905 * function.c: Likewise.
14907 * genattrtab.c: Likewise.
14908 * gthr-win32.h: Likewise.
14909 * haifa-sched.c: Likewise.
14910 * predict.c: Likewise.
14911 * rtlanal.c: Likewise.
14913 * unwind-dw2-fde.h: Likewise.
14914 * unwind-pe.h: Likewise.
14915 * vmsdbgout.c: Likewise.
14917 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14919 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
14920 if type_required and passed decl.
14922 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
14924 * config.gcc (cpu_type): Include altivec.h in powerpc
14928 * config/rs6000/altivec.h: New.
14930 2002-01-17 David Edelsohn <edelsohn@gnu.org>
14932 * doc/install.texi (*-ibm-aix*): Update assembler and exception
14933 handling information.
14934 * doc/trouble.texi (Interoperation): Add libstdc++ information
14936 (Misunderstandings): Add template instantiation and static template
14937 member information for AIX.
14939 2002-01-17 Jason Merrill <jason@redhat.com>
14941 * dbxout.c (dbxout_type): Support const and volatile.
14943 * except.c (add_partial_entry): Remove backwards compatibility code.
14944 (end_protect_partials): Likewise.
14946 2002-01-17 Jakub Jelinek <jakub@redhat.com>
14948 * config/ia64/ia64.md (prologue_use): New.
14949 * config/ia64/ia64.c (ia64_expand_prologue): Use
14950 gen_prologue_use instead of gen_rtx_USE.
14951 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
14952 as CODE_FOR_pred_rel_mutex.
14953 (ia64_sched_reorder2): Likewise.
14955 2002-01-16 Eric Christopher <echristo@redhat.com>
14957 * config/mips/r3900.h: Reformat.
14958 (SUBTARGET_CPP_SIZE_SPEC): Remove.
14959 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
14960 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
14961 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
14962 * config/mips/t-elf: Remove mips3 multilib.
14964 2002-01-16 H.J. Lu <hjl@gnu.org>
14966 * config/mips/linux.h: Include "mips/abi64.h".
14968 2002-01-16 H.J. Lu <hjl@gnu.org>
14970 * config/mips/t-linux: New.
14972 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
14974 * config/mips/linux.h: Don't include "gofast.h".
14975 (INIT_SUBTARGET_OPTABS): Removed.
14977 2002-01-16 Kazu Hirata <kazu@hxi.com>
14979 * config/h8300/h8300-protos.h: Replace emit_a_shift with
14981 * config/h8300/h8300.c: Likewise.
14982 * config/h8300/h8300.md: Likewise.
14984 2002-01-16 Kazu Hirata <kazu@hxi.com>
14986 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
14987 spaces after an opcode name.
14988 (pushqi1_h8300hs): Likewise.
14989 (pushhi1_h8300hs): Likewise.
14991 2002-01-16 Kazu Hirata <kazu@hxi.com>
14993 * doc/extend.texi: Replace "option" with "attribute"
14996 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14998 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
14999 (and:DI () (const_int -8)).
15000 (split_small_symbolic_mem_operand): Split
15001 (mem (and:DI () (const_int -8)).
15003 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15006 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15007 same way as TYPE_IMUL.
15008 (ultrasparc_sched_reorder): Likewise.
15009 * config/sparc/sparc.md (type): Add comment to update
15010 ultrasparc_sched_reorder when making changes.
15012 2002-01-16 Kazu Hirata <kazu@hxi.com>
15014 * doc/invoke.texi: Change the dump file name of block
15015 reordering pass from 28.bbro to 29.bbro.
15016 Mention -dk option.
15018 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
15020 * i386.md (minsf splitter): Fix pasto.
15022 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15024 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15025 to frame pointer initialisation instruction.
15026 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15027 initialisation instruction.
15028 (soft_df_operand): Do not accept the IP register.
15029 (nonimmediate_soft_df_operand): Do not accept the IP register.
15031 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15034 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15035 MASK_V8 being both set.
15037 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
15039 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15040 insn for GOT register; add REG_MAYBE_DEAD notes instead.
15041 config/s390/s390.md (call, call_value): Add GOT register to
15042 CALL_INSN_FUNCTION_USAGE where needed.
15043 (call_exp, call_value_exp): New.
15045 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15047 * config/arm/arm.c: General formatting tidy up.
15049 2002-01-16 Graham Stott <grahams@redhat.com>
15051 * calls.c (try_to_integrate): Use "(size_t)" intermediate
15052 cast and when casting an integer literal to "rtx" pointer.
15053 (expand_call): Likewise.
15054 * flow.c (try_pre_increment): Likewise.
15055 (find_use_as_address): Likewise.
15056 * integrate.c (expand_iline_function): Likewise.
15057 * regmove.c (try_auto_increment): Likewise.
15059 2002-01-16 Graham Stott <grahams@redhat.com>
15061 * sched-rgn.c (passed): Use sbitmap_free.
15062 (header): Likewise.
15064 (in_queue): Likewise.
15065 (in_stack): Likewise.
15067 2002-01-15 Eric Christopher <echristo@redhat.com>
15069 * flow.c (propagate_one_insn): Change to use fatal_insn.
15071 2002-01-15 Kazu Hirata <kazu@hxi.com>
15073 * expmed.c (extract_fixed_bit_field): Remove unused code.
15074 * system.h: Poison SLOW_ZERO_EXTEND.
15075 * doc/tm.texi: Remove.
15076 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15077 * config/arm/arm.h: Likewise.
15078 * config/avr/avr.h: Likewise.
15079 * config/clipper/clipper.h: Likewise.
15080 * config/convex/convex.h: Likewise.
15081 * config/d30v/d30v.h: Likewise.
15082 * config/dsp16xx/dsp16xx.h: Likewise.
15083 * config/elxsi/elxsi.h: Likewise.
15084 * config/fr30/fr30.h: Likewise.
15085 * config/h8300/h8300.h: Likewise.
15086 * config/i370/i370.h: Likewise.
15087 * config/i386/i386.h: Likewise.
15088 * config/m68k/m68k.h: Likewise.
15089 * config/mips/mips.h: Likewise.
15090 * config/ns32k/ns32k.h: Likewise.
15091 * config/pdp11/pdp11.h: Likewise.
15092 * config/pj/pj.h: Likewise.
15093 * config/s390/s390.h: Likewise.
15094 * config/sh/sh.h: Likewise.
15095 * config/stormy16/stormy16.h: Likewise.
15096 * config/v850/v850.h: Likewise.
15097 * config/vax/vax.h: Likewise.
15098 * config/we32k/we32k.h: Likewise.
15100 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15102 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15103 (altivec_lvsl): Change constraint to b.
15104 (altivec_lvsr): Same.
15105 (altivec_lvebx): Same.
15106 (altivec_lvehx): Same.
15107 (altivec_lvewx): Same.
15108 (altivec_lvxl): Same.
15109 (altivec_lvx): Same.
15110 (altivec_stvx): Add parallel.
15111 (altivec_stvxl): Same.
15112 (altivec_stvehx): Same.
15113 (altivec_stvebx): Same.
15114 (altivec_stvebx): Same.
15116 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15118 * config.gcc: Change altivec.h to altivec-defs.h.
15120 * config/rs6000/altivec.h: Delete.
15122 * config/rs6000/altivec-defs.h: Add.
15124 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15126 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15129 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15130 less than or equal to eight bytes.
15132 * vax.md (andsi3): Remove constraints and change SET destination
15133 operand type to nonimmediate_operand.
15134 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
15135 when it is a CONST_INT.
15137 2002-01-15 Jason Merrill <jason@redhat.com>
15139 * c-common.def (FILE_STMT): New code.
15140 * c-common.c (statement_code_p): It's a statement.
15141 * c-common.h (stmt_tree_s): Add x_last_filename.
15142 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15143 (last_expr_filename): New macro.
15144 * c-semantics.c (begin_stmt_tree): Initialize it.
15145 (add_stmt): If the filename changed, also insert a
15147 (expand_stmt): Handle seeing one.
15149 2002-01-15 Eric Christopher <echristo@redhat.com>
15151 * flow.c (propagate_one_insn): Add error message and print out
15152 insn for debugging.
15154 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15156 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15157 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15158 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15159 TRAMPOLINE_ALIGNMENT.
15160 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15162 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15163 PCC_BITFIELD_TYPE_MATTERS.
15164 * config/interix.h (STDC_VALUE): Remove. Use
15165 STDC_0_IN_SYSTEM_HEADERS.
15166 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15167 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15168 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15170 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15172 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15173 not work on this platform currently.
15175 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15177 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15178 readonly_warning in _().
15180 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15182 * gcc.c (delete_if_ordinary): Backout previous change.
15184 2002-01-15 Kazu Hirata <kazu@hxi.com>
15186 * config/h8300/h8300.c (print_operand): Remove support for
15187 unused operand characters.
15189 * read-rtl.c: Fix formatting.
15190 * real.c: Likewise.
15191 * recog.c: Likewise.
15192 * regclass.c: Likewise.
15193 * regmove.c: Likewise.
15194 * reg-stack.c: Likewise.
15195 * reload1.c: Likewise.
15196 * rtlanal.c: Likewise.
15198 2002-01-15 Kazu Hirata <kazu@hxi.com>
15200 * config/i386/i386.c: Fix formatting.
15202 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15204 * c-typeck.c (process_init_element): Don't save_expr
15205 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15207 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15209 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15210 emit optional traceback table if optimize_size or TARGET_ELF.
15211 * config/rs6000/rs6000.md (prefetch): New.
15213 2002-01-15 Andreas Jaeger <aj@suse.de>
15215 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15217 2002-01-15 Kazu Hirata <kazu@hxi.com>
15219 * mips-tfile.c: Fix formatting.
15221 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15223 * unroll.c (final_reg_note_copy): Fix previous commit.
15225 2002-01-14 Kazu Hirata <kazu@hxi.com>
15227 * config/h8300/h8300-protos.h: Remove the prototype for
15229 * config/h8300/h8300.c (eq_operator): Remove.
15231 2002-01-14 Richard Henderson <rth@redhat.com>
15233 * config/i386/i386.md (prefetch): Tidy.
15234 (prefetch_3dnow): Fix locality operand.
15236 2002-01-14 Richard Henderson <rth@redhat.com>
15238 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15239 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15241 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15243 * reload1.c (reload_combine): Pass reg_sum replacement through
15244 copy_rtx in loop performing multiple changes.
15246 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15248 * except.c (remove_unreachable_regions): New.
15249 (free_eh_status): Clear exception_handler_labels.
15250 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15251 (find_exception_handler_labels): Don't add the same label more than
15253 (remove_exception_handler_label): Don't die if
15254 find_exception_handler_labels hasn't been called for the current
15257 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15259 * toplev.c (rest_of_compilation): Rebuild jump labels after
15262 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15264 * doc/extend.texi: Move documentation of X86 built-in functions
15266 * doc/invoke.texi: From here.
15267 * doc/sourcebuild.texi: Document location of documentation for
15268 machine built-in functions.
15270 2002-01-13 Christopher Faylor <cgf@redhat.com>
15272 * cppfiles.c (TEST_THRESHOLD): New macro.
15273 (SHOULD_MMAP): Ditto.
15274 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15277 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15279 * unroll.c (final_reg_note_copy): Properly handle
15281 (unroll_loops): Fix LOOP_CONDITION heuristics.
15283 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15285 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15286 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15288 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15290 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15293 2002-01-14 Tom Rix <trix@redhat.com>
15295 * config/rs6000/rs6000.md: Fix typo with sradi.
15297 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15299 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15300 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15301 (clrstrdi, clrstrsi): Adapt callers.
15303 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15305 (movti splitter): Never use register 0 as base register.
15307 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15309 * combine.c (simplify_shift_const): Always generate new rtx
15310 for shift expression instead of reusing given expression.
15312 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15314 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15315 alpha_legitimize_address unless mode is Pmode.
15317 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15319 * doc/md.texi (Modifiers): Document the '*' constraint for the
15322 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15323 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15326 2002-01-13 Richard Henderson <rth@redhat.com>
15328 * reload.c (find_reloads): Use a hard reg destination as reload reg
15329 for an input reload of the source.
15331 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15333 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15336 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15338 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15339 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15341 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15343 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15345 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15347 2002-01-12 Tom Rix <trix@redhat.com>
15349 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15352 2002-01-12 Richard Henderson <rth@redhat.com>
15354 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15356 * doc/invoke.texi: Update Alpha options.
15358 * doc/invoke.texi: Update i386 built-in function lists.
15360 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15362 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15363 referencing outside.
15365 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15367 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15368 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15369 offsets, and change line folding.
15370 * optabs.c (expand_binop): Remove warnings.
15371 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15373 2002-01-12 Graham Stott <grahams@redhat.com>
15375 * attribs.c (handle_deprecated_attribute): constify WHAT.
15376 * diagnostic.c (warn_deprecated_use): Add braces, fixes
15377 dangling else warning and constify WHAT.
15378 * except.h (struct function, struct inline_remap): Move
15379 struct tag forward defs before all prototypes.
15380 (duplicate_eh_regions): Whitespace.
15382 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
15384 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15385 MODE_BASE_REG_CLASS.
15386 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15388 2002-01-12 Richard Henderson <rth@redhat.com>
15390 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15391 (ix86_expand_vector_move): New.
15392 (bdesc_2arg): Remove andps, andnps, orps, xorps.
15393 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
15394 Remove old prefetch builtins. Special case the logicals removed above.
15395 (ix86_expand_builtin): Likewise.
15396 (safe_vector_operand): Use V4SFmode, not TImode.
15397 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
15398 (ix86_expand_timode_binop_builtin): New.
15399 * config/i386/i386-protos.h: Update.
15400 * config/i386/i386.h (enum ix86_builtins): Update.
15401 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15402 Use ix86_expand_vector_move in vector move expanders.
15403 (movti_internal, movti_rex64): Add xorps alternative.
15404 (sse_clrv4sf): Rename and adjust from sse_clrti.
15405 (prefetch): Don't work so hard.
15406 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15407 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15408 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15410 2002-01-11 Richard Henderson <rth@redhat.com>
15412 * config/i386/mmintrin.h: New file.
15413 * config/i386/xmmintrin.h: New file.
15414 * config.gcc (i?86-*-*): Add extra_headers.
15415 * simplify-rtx.c (simplify_unary_operation): Handle saturating
15417 (simplify_binary_operation): Handle saturating arithmetic codes.
15418 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15419 not the lowpart subreg.
15420 (ix86_expand_builtin): Return a TImode dummy register instead of 0
15422 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15424 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15426 * conflict.c (conflict_graph_compute): Free regsets when finished.
15427 * ssa.c (compute_coalesced_reg_partition): Likewise.
15429 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15431 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15432 every where we allocate a register.
15434 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15436 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15437 * lcm.c (compute_earliest, compute_farthest): Likewise.
15439 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15441 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15443 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15445 * doc/rtl.texi (Insns): Fix 2 typos.
15447 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
15449 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
15450 options. Use @table @gcctabopt for MMIX options. Add index
15451 entries for MMIX options. Start new paragraph with first
15452 heading of the machine-dependent options.
15454 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
15457 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15458 * combine.c (force_to_mode): Same.
15459 * reload1.c (clear_reload_reg_in_use): Same.
15461 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
15463 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15466 2002-01-11 Andreas Jaeger <aj@suse.de>,
15467 Brad Lucier <lucier@math.purdue.edu>
15469 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15472 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
15474 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15475 Protect with IN_LIBGCC.
15476 (LINK_EH_SPEC): Add required trailing space.
15478 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
15480 * c-tree.h: Move function declarations so that they are listed
15481 under the filename which contains them.
15482 (check_identifier, finish_decl_top_level,
15483 lookup_name_current_level_global, shadow_record_fields): Remove.
15485 2002-01-11 Andreas Jaeger <aj@suse.de>
15487 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15490 2002-01-10 Richard Henderson <rth@redhat.com>
15492 * config/alpha/alpha.c (print_operand): Add 'J'.
15493 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15494 new operand with the sequence number for the lituse. When splitting
15495 the insns, use gen_movdi_er_high_g and generate a sequence number.
15496 (gen_movdi_er_high_g): Print the sequence number if non-zero.
15498 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
15500 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15501 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15503 (altivec_expand_builtin): Same.
15504 (altivec_expand_stv_builtin): New.
15506 * config/rs6000/rs6000.h (rs6000_builtins): Same.
15508 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15509 ("altivec_lvehx"): New.
15510 ("altivec_lvewx"): New.
15511 ("altivec_lvxl"): New.
15512 ("altivec_lvx"): New.
15513 ("altivec_stvx"): New.
15514 ("altivec_stvebx"): New.
15515 ("altivec_stvehx"): New.
15516 ("altivec_stvewx"): New.
15517 ("altivec_stvxl"): New.
15519 2002-01-10 Richard Henderson <rth@redhat.com>
15521 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15522 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
15523 care not to delete instructions twice.
15525 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15527 * toplev.c: Don't declare environ (it's not used anywhere).
15528 * configure.in: Don't check for declaration of environ.
15529 * config/i386/xm-mingw32.h: Don't #define environ.
15530 * config.in, configure: Regenerate.
15532 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15534 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15535 * configure: Regenerate.
15537 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15538 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15539 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15541 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15542 LIMITS_H_TEST here, not in m68k/x-next.
15543 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15544 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15546 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15547 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15548 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
15550 * config/i386/x-djgpp: Renamed i386/t-djgpp.
15551 * config/m88k/x-dolph: Renamed m88k/t-dolph.
15552 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15553 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
15554 replacement of quadlib.asm with quadlib.c.
15556 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15557 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15558 config/rs6000/xm-beos.h: Delete file.
15560 * config.gcc: Update to match above changes.
15562 2002-01-10 Kazu Hirata <kazu@hxi.com>
15564 * config/h8300/h8300.h: Fix comment typos.
15565 * config/h8300/h8300.md: Likewise.
15566 * config/h8300/lib1funcs.asm: Likewise.
15568 2002-01-10 Dale Johannesen <dalej@apple.com>
15570 PR optimization/5269
15571 * unroll.c (precondition_loop_p): Make *increment be the correct
15572 sign when n_iterations known, to avoid confusing caller.
15574 2002-01-10 Kazu Hirata <kazu@hxi.com>
15576 * doc/extend.texi (deprecated): Fix a typo.
15578 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
15580 * basic-block.h (update_br_prob_note): Declare.
15581 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15582 (try_forward_edges): Care negative frequencies and update note.
15583 (outgoing_edges_match): Tweek conditional merging heuristics.
15584 (try_crossjump_to_edge): use update_br_prob_note.
15585 * cfglayout.c (fixup_reorder_chain): Likewise.
15586 * cfrtl.c (update_br_prob_note): New.
15587 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15589 * i386.c (ix86_decompose_address): Return -1 if address contains
15591 (legitimate_address_p): Require ix86_decompose_address to return 1.
15593 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15594 (cprop_insn): Likewise.
15596 2002-01-10 Kazu Hirata <kazu@hxi.com>
15598 * toplev.c: Fix formatting.
15599 * tree.c: Likewise.
15600 * tree-dump.c: Likewise.
15601 * unroll.c: Likewise.
15602 * unwind-dw2.c: Likewise.
15603 * unwind-dw2-fde.c: Likewise.
15604 * unwind-dw2-fde-glibc.c: Likewise.
15605 * unwind-sjlj.c: Likewise.
15607 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15609 * doc/invoke.texi: Document PDP-11 options.
15611 2002-01-10 Kazu Hirata <kazu@hxi.com>
15613 * config/h8300/h8300.h: Fix formatting.
15615 2002-01-10 Ira Ruben <ira@apple.com>
15617 Add __attribute__ ((deprecated)).
15618 * extend.texi: Document __attribute__ ((deprecated)).
15619 * invoke.texi: Document -Wno-deprecated-declarations.
15620 * testsuite/g++.dg/other/deprecated.C: New C++ test.
15621 * testsuite/gcc.dg/deprecated.c: New C test.
15622 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15623 (c_common_attribute_table): Add "deprecated" entry.
15624 (handle_deprecated_attribute): New function.
15625 * c-decl.c (deprecated_states): New enum.
15626 deprecated_state: State of "deprecated" handling.
15627 (start_decl): Set deprecated_state based on attributes.
15628 (grokdeclarator): Test for deprecated uses, propagate attribute.
15629 * c-typeck.c (build_component_ref): Test for deprecated fields.
15630 (build_external_ref): Test for deprecated primaries.
15631 * diagnostic.c (warn_deprecated_use) New function to issue
15632 warnings about __attribute__ ((depricated)) references.
15633 * flags.h (warn_deprecated_decl): Extern declared for
15634 -W[no-]deprecated-declarations option.
15635 * print-tree.c (print_node): Show deprecated flag status.
15636 * toplev.c (warn_deprecated_decl): Defined.
15637 (W_options): Added "deprecated-declaration".
15638 * toplev.h (warn_deprecated_use): Extern declared.
15639 * tree.h (struct tree_common): Define deprecated_flag.
15640 (TREE_DEPRECATED): New macro to access flag.
15641 * cp/call.c (build_call): Test for deprecated calls.
15642 * cp/class.c (add_implicitly_declared_members): Set global
15643 flag to tell grokdeclarator to not issue deprecated warnings.
15644 * cp/cp-tree.h: Add extern for adding_implicit_members.
15645 * cp/decl.c (deprecated_states): New enum.
15646 (start_decl): Set deprecated_state based on attributes.
15647 (grokdeclarator): Test for deprecated uses, propagate attribute.
15648 * cp/lex.c (do_identifier): Test for deprecated primaries.
15649 * cp/typeck.c (build_component_ref): Test for deprecated fields.
15651 2002-01-10 Ira Ruben <ira@apple.com>
15653 Fix to assign attributes to inline member functions.
15654 * cp/decl.c (start_method): Handle attrlist.
15656 2002-01-10 Kazu Hirata <kazu@hxi.com>
15658 * combine.c (expand_field_assignment): Use subreg_lsb().
15660 2002-01-10 David Edelsohn <edelsohn@gnu.org>
15662 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15663 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15664 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15665 Recurse for any operand of AND as long as constant is non-zero.
15667 2002-01-10 Kazu Hirata <kazu@hxi.com>
15669 * config/h8300/h8300.md: Remove constraints from expanders.
15671 2002-01-10 Kazu Hirata <kazu@hxi.com>
15673 * varasm.c: Fix formatting.
15674 * varray.c: Likewise.
15675 * vmsdbgout.c: Likewise.
15676 * xcoffout.c: Likewise.
15678 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
15680 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15681 update edge probabilities to match.
15683 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15685 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15687 * doc/languages.texi, doc/sourcebuild.texi: New files.
15688 * doc/configfiles.texi: Make a subsubsection. Update.
15689 * doc/configterms.texi: Add @node. Remove warning that this isn't
15690 instructions for building GCC.
15691 * doc/makefile.texi: Make a subsection.
15692 * doc/gccint.texi: Update.
15694 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
15696 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15698 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
15700 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15702 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
15704 * optabs.c (expand_fix): Look for wider integer modes first.
15706 * i386.md (mov?f): Avoid the fake const double trick for medium
15708 (min?f*/max?f*): Prohibit memory operands for i387 variant.
15709 (fop_df_4): Disable for SSE compilation.
15711 2002-01-10 Graham Stott <grahams@redhat.com>
15713 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15714 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15716 2002-01-10 Richard Henderson <rth@redhat.com>
15718 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15720 2002-01-10 Richard Henderson <rth@redhat.com>
15722 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15723 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
15725 2002-01-10 Kazu Hirata <kazu@hxi.com>
15727 * combine.c (can_combine_p): Fix a comment typo.
15729 2002-01-09 Zack Weinberg <zack@codesourcery.com>
15731 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15732 empty list correctly. Change loop index $t to $f for
15733 consistency with rest of Makefile.
15735 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
15737 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15738 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15740 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15741 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15742 (altivec_init_builtins): Same.
15743 (altivec_expand_unop_builtin): Return NULL_RTX on error.
15744 (altivec_expand_binop_builtin): Same.
15745 (altivec_expand_ternop_builtin): Same.
15748 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15749 ("altivec_vctuxs"): Fix typo.
15750 ("altivec_vnmsubfp"): Same.
15751 ("altivec_dssall"): New.
15752 ("altivec_mfvscr"): New.
15753 ("altivec_dss"): New.
15754 ("altivec_lvsl"): New.
15755 ("altivec_lvsr"): New.
15756 ("altivec_dstt"): New.
15757 ("altivec_dstst"): New.
15758 ("altivec_dststt"): New.
15759 ("altivec_dst"): New.
15761 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15762 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15764 2002-01-09 Richard Henderson <rth@redhat.com>
15766 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15768 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
15770 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15772 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15774 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15776 2002-01-09 Kazu Hirata <kazu@hxi.com>
15778 * read-rtl.c: Fix formatting.
15779 * real.c: Likewise.
15780 * regclass.c: Likewise.
15781 * regrename.c: Likewise.
15782 * reg-stack.c: Likewise.
15783 * reload1.c: Likewise.
15784 * reload.c: Likewise.
15787 2002-01-09 Kazu Hirata <kazu@hxi.com>
15789 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15790 to extract items in the expr_list chain.
15792 2002-01-09 Richard Henderson <rth@redhat.com>
15794 * config/vax/vax.c (vax_rtx_cost): Never abort.
15796 * config/vax/vax.h (REAL_ARITHMETIC): Define.
15798 2002-01-09 Jan Hubicka <jh@suse.cz>
15800 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15802 2002-01-09 Richard Henderson <rth@redhat.com>
15804 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15805 Unify code from various alternatives.
15807 2002-01-09 Richard Henderson <rth@redhat.com>
15809 * regrename.c (copy_value): Ignore the copy if the source register
15810 is present in the value chain with a narrower mode.
15812 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15814 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15815 for the c4x target. Also improve layout.
15817 2002-01-09 Richard Henderson <rth@redhat.com>
15819 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15820 * config/m32r/m32r.md (and ior xor splitters): Swap operands
15821 to match insn patterns.
15823 2002-01-09 Richard Henderson <rth@redhat.com>
15825 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15826 (copyprop_hardreg_forward_1): Likewise.
15828 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
15830 * pa.md (decrement_and_branch_until_zero): Change predicate for
15831 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
15833 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15835 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
15836 gets undefined. For Darwin.
15838 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15840 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
15842 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15844 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
15846 2002-01-08 Richard Henderson <rth@redhat.com>
15848 * regrename.c (copy_value): Ignore overlapping copies.
15850 2002-01-08 Richard Henderson <rth@redhat.com>
15852 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
15853 as needed to avoid shared structure.
15855 2002-01-08 Kazu Hirata <kazu@hxi.com>
15857 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
15860 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15862 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
15863 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
15864 documentation of obsolete macros.
15865 * system.h: Poison these macros.
15866 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
15867 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
15868 config/c4x/c4x.h, config/clipper/clipper.h,
15869 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
15870 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
15871 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
15872 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
15873 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
15874 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
15875 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15876 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
15877 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
15878 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15879 config/sparc/sparc.h, config/stormy16/stormy16.h,
15880 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
15881 definitions and commented out definitions of obsolete macros.
15882 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
15883 of MAX_INT_TYPE_SIZE.
15885 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15887 * config/s390/s390.c (s390_preferred_reload_class): Never
15888 return ADDR_REGS if it isn't a subset of the given class.
15889 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
15890 FP_REGS, but all superclasses as well.
15892 * config/s390/s390.c (s390_function_profiler): Fix thinko.
15894 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
15895 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
15896 must not be a const_int.
15898 2002-01-08 Richard Henderson <rth@redhat.com>
15900 * Makefile.in (toplev.o): Depend on options.h.
15901 (gcc.o): Depend on specs.h.
15903 2002-01-08 Jakub Jelinek <jakub@redhat.com>
15905 * expr.c (store_expr): Convert VOIDmode constants back to target's
15908 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15910 * doc/invoke.texi: Markup gcc as @command. Refer to
15911 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
15912 of http://gcc.gnu.org/thanks.html.
15914 2002-01-08 Dale Johannesen <dalej@apple.com>
15916 * config/rs6000/rs6000.md: Add missing int register
15917 target case to movdf_low.
15919 2002-01-08 Zack Weinberg <zack@codesourcery.com>
15921 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
15922 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
15923 (cppinit.o): Depend on except.h.
15924 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
15925 s-specs): New rules.
15927 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
15928 Don't create specs.h/options.h/gencheck.h here. Remove
15929 unnecessary variable settings from last argument of AC_OUTPUT.
15930 * config.in, configure: Regenerate.
15931 * intl.c: Hardcode package name as "gcc".
15933 * cppinit.c: Include except.h.
15934 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
15936 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
15937 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
15938 (!)USING_SJLJ_EXCEPTIONS.
15939 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
15941 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15943 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
15944 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
15945 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
15946 documentation of obsolete macros.
15947 * system.h: Poison these macros.
15948 * config/d30v/d30v.h, config/ns32k/encore.h,
15949 config/stormy16/stormy16.h: Remove definitions and commented out
15950 definitions of obsolete macros.
15952 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
15954 * objc/objc-act.c (handle_class_ref): Mark the declaration of
15955 %sobjc_class_ref_%s as used - to prevent unwanted compiler
15958 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15960 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
15961 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
15962 to insn adjusting stack/frame pointer.
15963 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
15964 accept operands that cause the insn to be non-splittable.
15966 2002-01-08 Graham Stott <grahams@redhat.com>
15968 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
15969 (C_TYPE_FIELDS_VOLATILE): Likewise.
15970 (C_TYPE_BEING_DEFINED): Likewise.
15971 (C_IS_RESERVED_WORD): Likewise.
15972 (C_TYPE_VARIABLE_SIZE): Likewise.
15973 (C_DECL_VARIABLE_SIZE): Likewise.
15974 (C_MISSING_PROTOTYPE_WARNED): Likewise.
15975 (C_SET_EXP_ORIGINAL_CODE): Likewise.
15976 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
15978 (C_DECL_ANTICIPATED): Likewise.
15979 (c_build_type_variant): Add parenthesis.
15981 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15983 * gcc.c (option_map): Remove --version.
15984 (process_command): Handle -fversion following the GNU Coding
15985 Standards. Partially addresses PR other/704.
15987 2002-01-08 Graham Stott <grahams@redhat.com>
15989 * combine.c (combine_instructions): Fix typo.
15991 2002-01-08 Graham Stott <grahams@redhat.com>
15993 * debug.h: Use "tree" and "rtx" throughout.
15995 * debug.c: Likewise.
15997 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
15999 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16000 constant pool, use the pool's version of the symbol instead.
16002 2002-01-07 Richard Henderson <rth@redhat.com>
16004 * regrename.c (find_oldest_value_reg): Ignore the value chain if
16005 the original register was copied in a mode with a fewer number of
16006 hard registers than the desired mode.
16007 (copyprop_hardreg_forward_1): Likewise.
16008 (debug_value_data): Fix loop test.
16009 * toplev.c (parse_options_and_default_flags): Reenable
16010 -fcprop-registers at -O1.
16012 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16014 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16015 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16017 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16020 * config/rs6000/rs6000.md: Add altivec predicate patterns.
16022 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16024 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16025 (pa_output_function_prologue): Output local label at the beginning of
16026 the prologue when profiling.
16027 (hppa_profile_hook): Use the local label rather than the function label.
16028 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16030 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16032 * config/rs6000/rs6000.c (print_operand): Remove extra space.
16033 (altivec_expand_unop_builtin): Fix thinko.
16034 (altivec_expand_binop_builtin): Same.
16035 (altivec_expand_ternop_builtin): Same.
16036 (altivec_expand_builtin): Same.
16038 2002-01-07 Richard Henderson <rth@redhat.com>
16040 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16042 2002-01-07 Jason Merrill <jason@redhat.com>
16044 * unwind-dw2.c (execute_cfa_program): Use < again.
16046 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16048 * predict.c (combine_predictions_for_insn): Avoid division by zero.
16050 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16052 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16053 Don't allow -1 - x -> ~x simplifications in the first pass.
16055 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16057 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16059 (altivec_expand_binop_builtin): Same.
16060 (altivec_expand_unop_builtin): Same.
16061 (print_operand): Fix typo.
16062 (bdesc_1arg): Add vupk* variants.
16064 * rs6000.h (rs6000_builtins): Add vupk* enums.
16066 * rs6000.md: Add altivec_vupk* variants.
16068 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
16070 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16071 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16072 and last update dates.
16074 2002-01-07 Janis Johnson <janis187@us.ibm.com>
16076 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16078 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
16080 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16081 * config/avr/avr.h (CPP_SPEC): Likewise.
16082 (LINK_SPEC): Likewise.
16083 (CRT_BINUTILS_SPECS): Likewise.
16084 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16085 * doc/invoke.texi (AVR Options): Document them.
16087 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
16089 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16092 2002-01-07 Graham Stott <grahams@redhat.com>
16094 * config/i386/i386.h: Update copyright date.
16095 (HALF_PIC_PTR): Add parenthesis.
16096 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16097 (CONSTANT_ALIGNMENT): Add parenthesis.
16098 (DATA_ALIGNMENT): Likewise.
16099 (LOCAL_ALIGNMENT): Likewise.
16100 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16101 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16102 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16103 (HARD_REGNO_NREGS): Add paranethesis.
16104 (VALID_SSE_REG_MODE): Whitespace.
16105 (VALID_MMX_REG_MODE): Whitespace.
16106 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16107 (ix86_hard_regno_mode_ok): Add parenthesis.
16108 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16109 (RETURN_IN_MEMORY): Whitespace.
16110 (N_REG_CLASSES): Add parenthesis.
16111 (INTEGER_CLASS_P): Add parenthesis and wrap.
16112 (FLOAT_CLASS_P): Likewise.
16113 (SSE_CLASS_P): Likewise.
16114 (MMX_CLASS_P): Likewise.
16115 (MAYBE_INTEGER_CLASS_P): Likewise.
16116 (MAYBE_FLOAT_CLASS_P): Likewise.
16117 (MAYBE_SSE_CLASS_P): Likewise.
16118 (MAYBE_MMX_CLASS_P): Likewise.
16119 (Q_CLASS_P): Likewise.
16120 (GENERAL_REGNO_P): Uppercase macro parameter.
16121 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16122 (FP_REGNO_P): Likewise.
16123 (ANY_FP_REGNO_P): Uppercase macro parameter.
16124 (SSE_REGNO_P): Likewise.
16125 (SSE_REGNO): Likewise.
16126 (SSE_REG_P): Likewise.
16127 (SSE_FLOAT_MODE_P): Likewise.
16128 (MMX_REGNO_P): Likewise.
16129 (MMX_REG_P):Likewise.
16130 (STACK_REG_P): Likewise.
16131 (NON_STACK_REG_P): Likewise.
16132 (STACK_TOP_P): Likewise.
16133 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16134 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16135 (SECONDARY_MEMORY_NEEDED): Likewise.
16136 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16137 (MD_ASM_CLOBBERS): Whitespace and wrap.
16138 (MUST_PASS_IN_STACK): Whitespace and wrap.
16139 (RETURN_POPS_ARGS): Add parenthesis.
16140 (INIT_CUMULATIVE_ARGS): Likewise.
16141 (FUNCTION_ARG): Likewise.
16142 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16143 (SETUP_INCOMING_VARARGS): Likewise.
16144 (BUILD_VA_LIST_TYPE): Add parenthesis.
16145 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16147 (EXPAND_BUILTIN_VA_ARG): Likewise.
16148 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16149 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16150 (INITIAL_ELIMINATION_OFFSET): Likewise.
16151 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16152 (REGNO_OK_FOR_BASE_P): Likewise.
16153 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16154 (REGNO_OK_FOR_DIREG_P): Likewise.
16155 (REG_OK_FOR_INDEX_P): Whitespace.
16156 (REG_OK_FOR_BASE_P): Whitespace.
16157 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16159 (FIND_BASE_TERM): Fix typo.
16160 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16161 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16162 (SYMBOLIC_CONST; Whitespace.
16163 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16164 (ENCODE_SECTION_INFO): Whitespace.
16165 (FINALIZE_PIC): Remove do { ... } while (0).
16166 (PROMOTE_MODE): Wrap in do { ... } while (0).
16167 (CONST_COSTS): Whitespace.
16168 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16169 (REGISTER_MOVE_COST): Add parenthesis.
16170 (MEMORY_MOVE_COST): Likewise.
16171 (EXTRA_CC_MODES): Whitespace.
16172 (SELECT_CC_MODE): Add parenthesis and whitespace.
16173 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16174 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16175 (ASM_OUTPUT_LABEL): Add paramethesis.
16176 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16177 (ASM_OUTPUT_REG_POP): Likewise.
16178 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16179 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16181 * config/i386/i386.c: Update copyright.
16182 (CHECK_STACK_LIMIT): Add parenthesis.
16183 (AT_BP): Uppercase macro parameter.
16184 (x86_64_int_parameter_registers): Constify.
16185 (x86_64_int_return_registers): Likewise.
16186 (ix86_compare_op0): Use rtx.
16187 (construct_container): Constify INTREG parameter.
16188 (function_arg): Use rtx.
16190 * diagnostic.h: Update copyright date.
16191 (output_buffer_state): Add parenthesis.
16192 (output_buffer_format_args): Likewise.
16194 * combine.c (combine_instructions): Replace XEXP (links, 0)
16197 2002-01-06 H.J. Lu <hjl@gnu.org>
16199 * cfgcleanup.c (thread_jump): Fix 2 typos.
16201 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16203 * config.gcc: Add support for --enable-altivec.
16205 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16207 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16209 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16211 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16212 __objc_class_name_*.
16214 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16216 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16218 2002-01-06 Richard Henderson <rth@redhat.com>
16220 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16221 nop them out. Increment label reference count for REG_LABEL.
16222 (fill_slots_from_thread): Frob label reference count around
16223 delete_related_insns.
16225 2002-01-05 Richard Henderson <rth@redhat.com>
16227 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16230 2002-01-05 Richard Henderson <rth@redhat.com>
16232 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16233 * integrate.c (output_inline_function): Likewise.
16234 * toplev.c (rest_of_compilation): Do it here instead. Move call
16235 to remove_unnecessary_notes after emitting abstract instance.
16236 Force an emitted nested function to have its parent emited as well.
16237 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16239 (rtl_for_decl_location): Do not look at reload data structures
16240 before reload has run.
16242 2002-01-05 Kazu Hirata <kazu@hxi.com>
16244 * cse.c: Fix formatting.
16245 * dwarf2asm.c: Likewise.
16246 * dwarf2out.c: Likewise.
16247 * explow.c: Likewise.
16248 * expmed.c: Likewise.
16249 * function.c: Likewise.
16250 * gcov.c: Likewise.
16251 * gencheck.c: Likewise.
16252 * genrecog.c: Likewise.
16253 * ggc-common.c: Likewise.
16254 * ggc-page.c: Likewise.
16255 * global.c: Likewise.
16257 2002-01-05 Kazu Hirata <kazu@hxi.com>
16259 * combine.c: Fix formatting.
16261 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16264 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16266 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16268 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16269 as 1 for __powerpc64__ as well.
16271 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16273 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16276 2002-01-05 Daniel Berlin <dan@dberlin.org>
16278 * lcm.c: Revert change, due to performance regression it causes on
16279 SPEC because it's slightly more conservative (sigh, I hate
16282 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16284 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16286 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16288 * doc/cppinternals.texi: Update.
16290 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16292 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16293 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16295 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16296 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16297 kludge for pre-october-14th mmix versions to handle new-found bug
16298 with PUSHJ/PUSHGO and the register stack.
16299 * config/mmix/mmix.h (struct machine_function): Rename member
16300 has_call_value_without_parameters to has_call_without_parameters.
16301 All referers changed.
16302 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16303 TARGET_MASK_BRANCH_PREDICT): New macros.
16304 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16305 -mno-reg-stack-fill-bug-workaround.
16306 * config/mmix/mmix.md ("call"): Set struct machine member
16307 has_call_without_parameters.
16309 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16311 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16313 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16315 * cfgcleanup.c: Include tm_p.h
16316 (mark_effect): Fix handling of hard register; fix handling of SET
16318 2002-01-04 Kazu Hirata <kazu@hxi.com>
16320 * config/h8300/h8300.md (anonymous patterns): Check that
16321 operands are registers before using REGNO on them.
16323 2002-01-03 Roland McGrath <roland@frob.com>
16325 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16327 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16329 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16330 * c-common.h (genrtl_expr_stmt_value): Likewise.
16331 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16332 (expand_expr_stmt_value): Add maybe_last argument.
16333 Don't warn about statement with no effect if it is the last statement
16334 in expression statement.
16335 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16336 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16337 expand_expr_stmt_value.
16338 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16339 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16340 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16341 as maybe_last to expand_expr_stmt_value.
16343 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16345 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16346 be passed in, do not build it.
16347 (c_begin_if_stmt): New function.
16348 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16349 * c-common.h (c_expand_start_cond): Update prototype.
16350 (c_begin_if_stmt): Prototype new function.
16351 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16352 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16353 c_begin_while_stmt and c_finish_while_stmt_cond.
16355 2002-01-04 William Cohen <wcohen@redhat.com>
16357 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16358 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16359 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16360 * config/pa/som.h (ASM_FILE_START): Likewise.
16362 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16364 * lcm.c: Include df.h.
16365 Add available_transfer_function prototype.
16366 (compute_available): Rework to use iterative dataflow framework.
16367 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16368 with bb_info in df.h
16369 (available_transfer_function): New function.
16371 * Makefile.in (lcm.o): add df.h to dependencies.
16373 2002-01-04 Richard Henderson <rth@redhat.com>
16375 * config/alpha/alpha.c (some_operand): Accept HIGH.
16376 (input_operand): Likewise; accept simple references to globals.
16377 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16378 (alpha_const_double_ok_for_letter_p): Likewise.
16379 (alpha_extra_constraint): Likewise.
16380 (alpha_preferred_reload_class): Likewise. Do not force
16381 symbolic constants to memory.
16382 (alpha_legitimate_address_p): Accept simple references
16383 to small_symbolic_operand.
16384 (alpha_legitimize_address): New arg scratch. Be prepared to be
16385 called when no_new_pseudos. Emit simple symbolic references.
16386 Split integers into low, high, and rest.
16387 (alpha_expand_mov): Use alpha_legitimize_address.
16388 (some_small_symbolic_mem_operand): New.
16389 (split_small_symbolic_mem_operand): New.
16390 * config/alpha/alpha-protos.h: Update.
16391 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16392 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16393 (EXTRA_CONSTRAINT): Likewise.
16394 (PREFERRED_RELOAD_CLASS): Likewise.
16395 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16396 (PREDICATE_CODES): Update.
16397 * config/alpha/alpha.md: New post-reload splitters to convert
16398 simplfied symbolic operands to the form that references $29.
16399 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16400 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16402 2002-01-03 Richard Henderson <rth@redhat.com>
16404 * local-alloc.c (function_invariant_p): Update commentary.
16406 2002-01-04 H.J. Lu <hjl@gnu.org>
16408 * toplev.c (rest_of_compilation): Fix a typo when calling
16411 2002-01-03 Kazu Hirata <kazu@hxi.com>
16413 * c-common.c: Fix formatting.
16414 * diagnostic.c: Likewise.
16415 * doloop.c: Likewise.
16416 * dwarf2out.c: Likewise.
16418 2002-01-03 Kazu Hirata <kazu@hxi.com>
16420 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16421 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16423 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16425 * cpperror.c: Update comments and copyright.
16426 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16427 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16429 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
16431 * collect2.c (main): Use strcmp when testing for "-shared".
16433 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16435 * cppmacro.c: Don't include intl.h. Update comments.
16436 (new_number_token): Allocate enough buffer for 64-bit unsigned
16437 integers; update prototype.
16438 * cppmain.c: Update comments.
16440 2002-01-03 William Cohen <wcohen@redhat.com>
16442 * function.h (struct function): Add profile.
16443 (current_function_profile): New.
16444 doc/extend.texi: Update documentation.
16445 * final.c (final_start_function): Use current_function_profile
16446 instead of profile_flag.
16447 (profile_after_prologue): Likewise.
16448 * function.c (expand_function_start): Likewise.
16449 (expand_function_start): Likewise.
16450 * config/alpha/alpha.c (direct_call_operand):
16451 (alpha_does_function_need_gp): Likewise.
16452 (alpha_expand_prologue): Likewise.
16453 * config/arm/arm.c (arm_expand_prologue): Likewise.
16454 thumb_expand_prologue: Likewise.
16455 * config/d30v/d30v.c (d30v_stack_info): Likewise.
16456 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16457 (fr30_expand_prologue): Likewise.
16458 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16459 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16460 * config/i386/i386.h (FINALIZE_PIC): Likewise.
16461 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16462 * config/i960/i960.c (i960_output_function_prologue): Likewise.
16463 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16464 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16465 (m32r_expand_prologue): Likewise.
16466 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16467 (m88k_expand_prologue): Likewise.
16468 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16469 * config/mips/mips.c (compute_frame_size): Likewise.
16470 (mips_expand_prologue): Likewise.
16471 (mips_can_use_return_insn): Likewise.
16472 * config/pa/elf.h (ASM_FILE_START): Likewise.
16473 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16474 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16475 * config/pa/som.h (ASM_FILE_START): Likewise.
16476 * config/romp/romp.c (romp_using_r14): Likewise.
16477 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16478 (rs6000_stack_info): Likewise.
16479 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16480 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16481 * config/v850/v850.c (compute_register_save_size): Likewise.
16483 2002-01-03 Jakub Jelinek <jakub@redhat.com>
16485 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16486 gen_lowpart_common fails, use gen_lowpart_SUBREG.
16488 2002-01-03 Turly O'Connor <turly@apple.com>
16490 * darwin.c (machopic_output_possible_stub_label): Don't generate
16491 stub routines for pseudo-stubs which we've just defined.
16493 2002-01-03 Kazu Hirata <kazu@hxi.com>
16495 * builtins.c: Fix formatting.
16496 * c-typeck.c: Likewise.
16497 * combine.c: Likewise.
16498 * expr.c: Likewise.
16499 * loop.c: Likewise.
16501 2002-01-03 Andreas Schwab <schwab@suse.de>
16503 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16504 and return true if _cpp_push_next_buffer pushed a new include
16506 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16507 _cpp_pop_file_buffer did not push a new file.
16508 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16510 2002-01-02 Eric Christopher <echristo@redhat.com>
16512 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16513 FIND_REG_INC_NOTE call. Update copyright.
16514 * loop.c (canonicalize_condition): Ditto.
16515 * reorg.c (delete_scheduled_jump): Ditto.
16517 2002-01-03 Kazu Hirata <kazu@hxi.com>
16519 * gcse.c: Fix formatting.
16521 2002-01-03 Graham Stott <grahams@redhat.com>
16523 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16524 forward defs for struct tags rtx_def, union_tree, rtvec_def
16525 also output corresponding typedefs for rtx, tree, and rtvec.
16527 * system.h: Move forward defs for struct tags rtx_def, union_tree,
16528 rtvec_def along with corresponding typedefs for rtx, tree, and
16529 rtvec to config.h, hconfig.h, tconfig.h.
16531 2002-01-03 Graham Stott <grahams@redhat.com>
16533 * tree.h: Update copyright date.
16534 (IS_EXPR_CODE_CLASS): Add parenthesis.
16535 (TREE_SET_CODE): Add whitespace.
16536 (TREE_CHECK): Add parenthesis.
16537 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16538 (CST_OR_CONSTRUCTOR_CHECK):
16539 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16540 (TREE_SYMBOL_REFERENCED): Whitespace.
16541 (INT_CST_LT): Likewise.
16542 (INT_CST_LT_UNSIGNED): Likewise.
16543 (tree_real_cst): Unwrap comment.
16544 (tree_string): Likewise.
16545 (tree_complex): Likewise.
16546 (IDENTIFIER_POINTER): correct cast.
16547 (SAVE_EXPR_CONTEXT): Whitespace.
16548 (EXPR_WFL_FILENAME_NODE): Likewise.
16549 (EXPR_WFL_FILENAME): Remove parenthesis.
16550 (DECL_ORIGIN): Add parenthesis.
16551 (DECL_FROM_INLINE): Use NULL_TREE.
16552 (build_int_2): Whitespace.
16553 (build_type_variant): Add parenthesis.
16555 * gcc/jcf-parse.c: Update copyright date.
16556 (yyparse): Constify resource_filename.
16558 2002-01-03 Graham Stott <grahams@redhat.com>
16560 * rtl.h: Update copyright date.
16561 (RTL_CHECK1): Wrap long line.
16562 (RTL_CHECK2): Likewise.
16563 (RTL_CHECKC1): Wrap long line and whitespace.
16564 (RTL_CHECKC2): Likewise.
16565 (XWINT): Whitespace.
16571 (XBITMAP): Likewise.
16573 (XBBDEF): Likewise.
16575 (X0WINT): Likewise.
16577 (X0UINT): Likewise.
16581 (X0MODE): Likewise.
16582 (X0BITMAP): Likewise.
16583 (X0TREE): Likewise.
16584 (X0BBDEF): Likewise.
16585 (X0ADVFLAGS): Likewise.
16586 (X0CSELIB): Likewise.
16587 (X0MEMATTR): Likewise.
16588 (XCWINT): Likewise.
16590 (XCUINT): Likewise.
16594 (XCMODE): Likewise.
16595 (XCBITMAP): Likewise.
16596 (XCTREE): Likewise.
16597 (XCBBDEF): Likewise.
16598 (XCADVFLAGS): Likewise.
16599 (XCCSELIB): Likewise.
16600 (XC2EXP): Likewise.
16601 (INSN_UID): Likewise.
16602 (PREV_INSN): Likewise.
16603 (PATTERN): Likewise.
16604 (INSN_CODE): Likewise.
16605 (PUT_REG_NOTE_KIND): Likewise.
16606 (CODE_LABEL_NUMBER): Likewise.
16607 (NOTE_SOURCE_FILE): Likewise.
16608 (NOTE_BLOCK): Likewise.
16609 (NOTE_EH_HANDLER): Likewise.
16610 (NOTE_RANGE_INFO): Likewise.
16611 (NOTE_LIVE_INFO): Likewise.
16612 (NOTE_BASIC_BLOCK): Likewise.
16613 (NOTE_EXPECTED_VALUE): Likewise.
16614 (NOTE_LINE_NUMBER): Likewise.
16615 (LABEL_NAME): Likewise.
16616 (LABEL_NUSES): Likewise.
16617 (LABEL_ALTERNATE_NAME): Likewise.
16618 (ADDRESSOF_DECL): Likewise.
16619 (JUMP_LABEL): Likewise.
16620 (LABEL_NEXTREF): Likewise.
16622 (ORIGINAL_REGNO: Likewise.
16623 (HARD_REGISTER_NUM_P): Add parenthesis.
16624 (SUBREG_REG): Whitespace.
16625 (SUBREG_BYTE): Likewise.
16626 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16627 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16628 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16629 (ASM_OPERANDS_INPUT_VEC): Likewise.
16630 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16631 (ASM_OPERANDS_INPUT): Likewise.
16632 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16633 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16634 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16635 (ASM_OPERANDS_INPUT_MODE): Likewise.
16636 (ASM_OPERANDS_SOURCE_FILE): Likewise.
16637 (ASM_OPERANDS_SOURCE_LINE): Likewise.
16638 (MEM_SET_IN_STRUCT_P): Minor reformat.
16639 (TRAP_CONDITION): Whitespace.
16640 (TRAP_CODE): Likewise.
16641 (COND_EXEC_TEST): Likewise.
16642 (COND_EXEC_CODE): Likewise.
16643 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16644 (PHI_NODE_P): Add parenthesis.
16645 (plus_constant): Whitespace and add parenthesis.
16647 2002-01-03 Kazu Hirata <kazu@hxi.com>
16649 * config/avr/avr.c: Fix comment typos.
16650 * config/c4x/c4x.md: Likewise.
16651 * config/dsp16xx/dsp16xx.h: Likewise.
16652 * config/dsp16xx/dsp16xx.md: Likewise.
16653 * config/i386/i386.md: Likewise.
16654 * config/ia64/ia64.c: Likewise.
16655 * config/m32r/m32r.h: Likewise.
16656 * config/m68hc11/m68hc11.md: Likewise.
16657 * config/mmix/mmix.c: Likewise.
16658 * config/mn10200/mn10200.c: Likewise.
16659 * config/romp/romp.c: Likewise.
16660 * config/sh/sh.c: Likewise.
16661 * config/stormy16/stormy16.c: Likewise.
16662 * config/stormy16/stormy16.h: Likewise.
16663 * config/stormy16/stormy16.md: Likewise.
16665 2002-01-03 Graham Stott <grahams@redhat.com>
16667 * loop.h: Update copyright date.
16668 (LOOP_MOVABLES): Fix typo.
16669 (LOOP_REGS): Likewise.
16670 (LOOP_IVS): Likewise.
16672 2002-01-03 Graham Stott <grahams@redhat.com>
16674 * cppinit.c: Update copyright date.
16675 Don't include output.h
16676 * Makefile.in: Update copyright date.
16679 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
16682 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16683 (-pthread) Add to RS/6000 options.
16685 2002-01-02 Kazu Hirata <kazu@hxi.com>
16687 * except.c: Fix comment typos.
16688 * loop.c: Likewise.
16689 * varasm.c: Likewise.
16690 * doc/tm.texi: Fix a typo.
16692 2002-01-02 Jakub Jelinek <jakub@redhat.com>
16694 * c-typeck.c (output_init_element): Allow initializing static storage
16695 duration objects with compound literals.
16697 2002-01-02 Richard Henderson <rth@redhat.com>
16699 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16702 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16704 * gcc.c (default_compilers): Const-ify.
16705 * mips-tdump.c (stab_names): Likewise.
16706 * mips-tfile.c (map_coff_types, map_coff_storage,
16707 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16708 pseudo_ops_t, pseudo_ops): Likewise.
16709 * protoize.c (default_include): Likewise
16711 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16712 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16713 Add array size in declaration.
16714 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16715 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16716 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16717 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16718 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16719 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16720 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16721 emtens, make_nan): Const-ify.
16722 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16723 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16725 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
16727 * config.gcc (ia64-*-*): Set extra_headers.
16728 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
16729 * config/alpha/t-osf: Remove.
16730 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16732 2002-01-02 David Edelsohn <edelsohn@gnu.org>
16734 * config/rs6000/t-aix43: Revert previous change.
16736 2002-01-02 Jason Merrill <jason@redhat.com>
16738 * c-decl.c (c_expand_body): Call outlining_inline_function when
16739 emitting an inline function out of line.
16741 2002-01-02 Richard Henderson <rth@redhat.com>
16743 * dwarf2out.c (limbo_die_node): Add created_for member.
16744 (new_die): New argument created_for. Update all callers.
16745 (mark_limbo_die_list): New.
16746 (dwarf2out_init): Register limbo_die_list as a root.
16747 (dwarf2out_finish): Force insert limbo dies into their function
16750 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
16753 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16755 2002-01-02 Kazu Hirata <kazu@hxi.com>
16757 * config/h8300/fixunssfsi.c: Update copyright.
16760 * config/h8300/h8300.c: Update copyright.
16761 Eliminate warnings.
16763 2002-01-02 Kazu Hirata <kazu@hxi.com>
16765 * config/romp/romp.c: Fix comment formatting.
16766 * config/romp/romp.h: Likewise.
16767 * config/romp/romp.md: Likewise.
16768 * config/s390/s390.c: Likewise.
16769 * config/stormy16/stormy16.c: Likewise.
16770 * config/stormy16/stormy16.h: Likewise.
16772 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
16774 * c-common.h (genrtl_expr_stmt_value): Declare.
16775 * c-semantics.c (genrtl_goto_stmt): Redirect to...
16776 (genrtl_goto_stmt_value): ... this new function. Pass new
16777 argument down to expand_expr_stmt_value, taking
16778 TREE_ADDRESSABLE into account.
16779 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16780 STMT_EXPR as addressable, i.e., one whose result we want.
16781 * expr.c (expand_expr): Don't save expression statement value
16782 of labeled_blocks or loop_exprs.
16783 * stmt.c (expand_expr_stmt): Redirect to...
16784 (expand_expr_stmt_value): ... this new function. Use new
16785 argument to tell whether to save expression value.
16786 (expand_end_stmt_expr): Reset last_expr_type and
16787 last_expr_value if we don't have either.
16788 * tree-inline.c (declare_return_variable): Mark its use
16789 statement as addressable.
16790 * tree.h: Document new use of TREE_ADDRESSABLE.
16791 (expand_expr_stmt_value): Declare.
16793 2002-01-01 Tom Rix <trix@redhat.com>
16795 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16796 rs6000_emit_allocate_stack.
16798 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
16800 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16801 ${srcdir}/ginclude/ to every entry in extra_headers.
16802 * configure: Regenerate.
16803 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16804 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16805 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16806 * ginclude/proto.h: Rename to config/convex/proto.h.
16808 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16810 * attribs.c (handle_vector_size_attribute): Use host_integerp
16811 and tree_int_cst; remove warnings.
16812 * caller-save.c (insert_restore): Add cast to get rid of warning.
16813 (insert_save): Likewise.
16814 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16815 * regmove.c (find_matches): Add temporary var to kill a warning.
16817 2002-01-01 Douglas B Rupp <rupp@gnat.com>
16819 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16820 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16821 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16822 (vms-dwarf2eh.o): Add Makefile rule.
16823 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16824 * config/alpha/vms-dwarf2eh.asm: New file.
16826 * gcc.c (delete_if_ordinary): Delete all versions.
16828 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
16830 * config/mmix/mmix.md: Update FIXME to not mention
16832 (MMIX_rJ_REGNUM): New define_constants constant.
16833 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
16834 "*movdicc_real"): Adjust contraints formatting.
16835 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
16836 for branch prediction.
16837 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
16839 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
16840 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
16841 number. Delete related FIXMEs.
16842 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
16843 from number to MMIX_rJ_REGNUM.
16844 (TARGET_MASK_BRANCH_PREDICT): New.
16845 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
16846 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
16847 value. Add -mbranch-predict and -mno-branch-predict.
16848 (TARGET_VERSION): Drop date.
16849 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
16850 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
16851 for finding out global symbols.
16852 (mmix_asm_output_labelref): Revert condition for global symbol.
16853 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
16854 (mmix_print_operand_punct_valid_p): A '+' is valid.
16856 See ChangeLog.6 for earlier changes.