1 2002-05-29 Richard Henderson <rth@redhat.com>
3 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
6 2002-05-29 Richard Henderson <rth@redhat.com>
8 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
9 (print_operand_address): Only add rip for symbolic addresses
10 for which we do not have another relocation type.
12 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
14 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
15 (EXTRA_SPECS): Add netbsd_cpp_spec.
16 (CPP_SPEC): Use %(netbsd_cpp_spec).
17 (CPP_PREDEFINES): Remove.
18 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
19 (EXTRA_SPECS): Define.
20 (CPP_SPEC): Use %(netbsd_cpp_spec).
21 (CPP_PREDEFINES): Remove.
23 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
26 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
29 2002-05-29 Eric Christopher <echristo@redhat.com>
31 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
32 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
34 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
36 * config/fr30/fr30.md: Remove previous restriction on splits.
37 Enforce conformance through gen_lowpart and cont_int_operand.
38 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
39 as the assembler does not support ".bss".
41 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
43 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
44 (CPP_PREDEFINES): Remove.
45 (SUBTARGET_EXTRA_SPECS): Define.
46 (CPP_SPEC): Use %(netbsd_cpp_spec).
47 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
48 (CPP_PREDEFINES): Remove.
49 (SUBTARGET_EXTRA_SPECS): Define.
50 (CPP_SPEC): Use %(netbsd_cpp_spec).
51 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
52 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
53 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
55 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
57 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
58 Zack Weinberg <zack@codesourcery.com>
60 * cppexp.c (cpp_num): Move to cpplib.h.
62 (interpret_float_suffix, interpret_int_suffix): New.
63 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
64 (cpp_classify_number, cpp_interpret_integer): New.
65 (interpret_number): Remove.
66 (eval_token): Update to use new routines.
67 * cpphash.h (cpp_num_part): Move to cpplib.h.
68 * cppinit.c (cpp_post_options): Set warn_long_long.
69 * cpplib.h (struct cpp_options): Add warn_long_long.
70 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
71 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
72 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
73 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
74 cpp_interpret_integer): New.
76 2002-05-29 Joel Sherrill <joel@OARcorp.com>
78 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
80 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
82 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
83 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
84 (CPP_SUBTARGET_SPEC): Define.
85 (SUBTARGET_EXTRA_SPECS): Define.
88 2002-05-29 Chris Lattner <sabre@nondot.org>
90 * ssa.c (rename_insn_1): Rename uses of undefined registers to
91 prevent confusion if/when the register is defined.
93 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
96 * config/cris/cris.md: Fix typos and thinkos in comments.
97 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
99 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
100 ("*mov_sideqi_mem"): Similar, but for operand 3.
101 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
102 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
103 Remove spurious mode specifier on operand 2.
105 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
107 * config/h8300/h8300-protos.h: Remove the prototype for
109 Add prototypes for single_one_operand and single_zero_operand.
110 * config/h8300/h8300.c (o_operand): Remove.
111 (single_one_operand): New.
112 (single_zero_operand): Likewise.
113 (print_operand): For 'V' operand, and the operand with 0xff.
114 For 'V' and 'W' operands, do not and the bit position with 7.
115 * config/h8300/h8300.md (various anonymous patterns): Replace
116 use of exact_log2 with single_one_operand/single_zero_operand.
118 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
120 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
122 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
124 * config/s390/s390.c (legitimate_pic_operand_p): Do not
125 accept symbolic LARL operands.
126 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
129 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
131 * config/s390/s390.md (cmpstr_64/31): Mark whole
132 input registers as used.
134 2002-05-28 Richard Henderson <rth@redhat.com>
136 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
137 not current_function_uses_pic_offset_table and
138 current_function_uses_const_pool; examine current_function_profile.
139 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
140 input to blockage if needed.
141 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
142 (legitimize_pic_address): Likewise. Set regs_ever_live for
143 pic_offset_table_rtx when invoked during reload.
144 * config/i386/i386.h (FINALIZE_PIC): Remove.
145 * config/i386/i386.md (tablejump): Reformat. Do not set
146 current_function_uses_pic_offset_table.
147 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
148 (blockage): Accept anything as operand 0.
150 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
152 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
153 common CPP built-ins for all NetBSD a.out targets.
154 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
155 common CPP built-ins for all NetBSD ELF targets.
156 * config/netbsd.h: Add missing notice.
157 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
158 for all NetBSD targets.
159 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
160 for all NetBSD targets using an LP64 code model.
161 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
164 2002-05-28 Richard Henderson <rth@redhat.com>
166 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
167 update if UPDATE_LIFE_LOCAL.
169 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
171 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
173 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
174 Jason R. Thorpe <thorpej@wasabisystems.com>
176 config/sh reorganization to factor out endianness and coff:
178 * config/sh/little.h: New file.
179 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
180 defined, define to 0 to select big-endian.
181 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
182 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
183 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
184 * config/sh/t-be: New file.
185 * config/sh/t-le: New file.
187 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
188 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
189 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
190 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
191 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
192 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
193 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
194 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
195 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
196 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
197 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
198 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
199 (LINK_SPEC): Define to SH_LINK_SPEC.
200 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
201 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
202 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
203 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
204 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
205 * config/sh/coff.h: New file.
206 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
207 (TARGET_OBJFMT_CPP_BUILTINS): Define.
208 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
209 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
210 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
211 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
212 (PTRDIFF_TYPE): Likewise.
213 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
214 (CPP_PREDEFINES): Don't define.
215 (TARGET_OBJFMT_CPP_BUILTINS): Define.
216 (LINK_SPEC): Define to SH_LINK_SPEC.
217 (LINK_EMUL_PREFIX): Redefine.
218 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
219 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
220 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
221 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
222 (TARGET_OS_CPP_BUILTINS): Define.
223 (TARGET_DEFAULT): Redefine.
224 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
225 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
226 (LINK_SPEC): Don't redefine.
227 (LINK_DEFAULT_CPU_EMUL): Redefine.
228 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
229 * sh.c (sh_asm_named_section): Don't declare / define.
230 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
231 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
232 (sh64-*-elf* tm_file): Likewise.
233 (sh-*-rtemself* tm_file): Likewise.
234 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
235 (sh-*-linux* tmake_file): Add sh/t-le.
236 (sh-*-rtems* tm_file): Add sh/coff.h
237 (sh-*-* tm_file): Likewise.
239 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
241 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
242 CONSTANT_POOL_ADDRESS_P.
244 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
246 2002-05-22 David Edelsohn <edelsohn@gnu.org>
247 Jeff Law <law@redhat.com>
249 * optabs.c (expand_binop): Fix nwords sign warnings.
250 generate pseudo for add_optab.
252 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
253 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
255 2002-05-28 Marc Espie <espie@openbsd.org>
257 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
258 inherited from gas.h.
259 (ASM_QUAD): Undef. OpenBSD does not support it.
261 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
263 * doc/install.texi (binaries): Change mingw binaries
264 link to www.mingw.org.
266 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
268 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
270 2002-05-28 Richard Henderson <rth@redhat.com>
272 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
273 bottom alignment for leaf functions.
275 2002-05-28 Zack Weinberg <zack@codesourcery.com>
277 * config/pa/milli32.S, config/pa/lib1funcs.asm,
278 config/sparc/sol2-g1.asm: Delete unused files.
280 2002-05-28 Richard Henderson <rth@redhat.com>
282 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
284 * flow.c (calculate_global_regs_live): Rename call_used to
285 invalidated_by_call. Initialize from regs_invalidated_by_call
286 instead of call_used_regs.
288 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
291 2002-05-28 Zack Weinberg <zack@codesourcery.com>
293 * tree.h: Forward-declare struct realvaluetype.
294 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
296 (TREE_REAL_CST_PTR): New accessor.
297 (TREE_REAL_CST): Update.
298 * real.h: Include machmode.h.
299 (realvaluetype): Make it struct realvaluetype, not a typedef.
300 (build_real): Prototype here.
302 * tree.c: Include real.h.
303 (build_real): Allocate the REAL_VALUE_TYPE as a separate
304 object in GC memory, set TREE_REAL_CST_PTR to point to it.
305 (build_real_from_int_cst): Use build_real.
306 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
309 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
310 fold-const.c, print-tree.c, real.c: Include real.h.
311 * Makefile.in: Update dependency lists.
313 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
315 * basic-block.h (last_basic_block): Declare.
316 (expunge_block_nocompact): Declaration removed.
317 (compact_blocks): Declare.
318 * cfg.c (last_basic_block): New variable.
319 (expunge_block_nocompact): Removed.
320 (expunge_block): Do not compact basic blocks.
321 (compact_blocks): New.
322 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
324 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
326 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
327 real positions of blocks.
328 (delete_unreachable_blocks): Simplified -- quadratic behavior now
330 (cleanup_cfg): Compact blocks.
331 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
332 basic_block_info varray.
333 (flow_delete_block): Comment update.
334 (back_edge_of_syntactic_loop_p): Modify position check code.
335 (verify_flow_info): Update checking.
336 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
337 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
338 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
339 indices no longer change.
340 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
342 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
343 * profile.c (branch_prob): Compact blocks.
344 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
347 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
349 * config/h8300/h8300.md (two anonymous patterns): New.
351 2002-05-28 David S. Miller <davem@redhat.com>
353 * config/sparc/sparc.md (cpu): Tidy.
354 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
356 (in_call_delay): Delete reference to 'return' type.
357 (eligible_for_return_delay, in_return_delay, define_delay
358 referencing those): Delete.
359 (rest of file): Use new type attributes as appropriate.
360 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
361 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
362 * config/sparc/ultra1_2.md (us1_single): New reservation.
363 (us1_ialuX): Likewise.
364 * config/sparc/ultra3.md (us3_single): Likewise.
365 (us3_ialuX): Likewise.
366 (us3_imul, us3_idiv): Tweak.
368 2002-05-28 Richard Henderson <rth@redhat.com>
370 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
373 2002-05-28 Richard Henderson <rth@redhat.com>
375 * config.gcc: Obsolete mn10200.
377 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
379 * cppexp.c (interpret_number): Optimize for single-digit
380 and less-than-half-precision cases.
381 (num_trim, num_positive, num_div_op): Cast constants.
383 2002-05-27 Bo Thorsen <bo@suse.de>
385 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
386 3.1 branch. The file was made by Jakub Jelinek.
387 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
388 support so multilib doesn't break. And don't define this at all
389 when -Dinhibit_libc is used.
390 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
391 * config/i386/t-linux64: Implement full multilib support. Patch
392 originally done by Andreas Jaeger and Jakub Jelinek.
394 2002-05-27 Roger Sayle <roger@eyesopen.com>
396 * c-common.c: Add support for __attribute__((nothrow)) to specify
397 that a function cannot throw an exception (using TREE_NOTHROW).
398 (handle_nothrow_attribute): New function to process this attribute.
400 * doc/extend.texi: Document the new nothrow function attribute.
402 2002-05-27 H.J. Lu (hjl@gnu.org)
404 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
405 (num_positive): Likewise.
406 (num_div_op): Likewise.
408 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
410 * c-common.c (c_common_init): Always use intmax_t.
412 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
414 * c-common.c (c_common_init): Use intmax_t for now.
416 2002-05-24 Andrew Haley <aph@redhat.com>
418 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
419 if T is a boolean type.
421 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
423 * basic-block.h (last_basic_block): Defined as synonym for
425 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
426 flow_depth_first_order_compute, flow_preorder_transversal_compute,
427 flow_dfs_compute_reverse_init): Replaced relevant occurences of
428 n_basic_blocks with last_basic_block.
429 * cfgbuild.c (make_edges): Likewise.
430 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
431 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
432 * combine.c (combine_instructions): Likewise.
433 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
434 iterative_dataflow_bitmap): Likewise.
435 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
436 calc_idoms, idoms_to_doms): Likewise.
437 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
439 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
440 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
441 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
442 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
443 delete_null_pointer_checks, compute_code_hoist_vbeinout,
444 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
445 compute_store_table, build_store_vectors): Likewise.
446 * haifa-sched.c (sched_init): Likewise.
447 * ifcvt.c (if_convert): Likewise.
448 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
449 pre_edge_lcm, compute_available, compute_nearerout,
450 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
452 * predict.c (estimate_probability, process_note_prediction,
453 note_prediction_to_br_prob): Likewise.
454 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
455 * recog.c (split_all_insns, peephole2_optimize): Likewise.
456 * regrename.c (copyprop_hardreg_forward): Likewise.
457 * resource.c (init_resource_info): Likewise.
458 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
459 init_regions, schedule_insns): Likewise.
460 * ssa-ccp.c (ssa_const_prop): Likewise.
461 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
462 * ssa.c (compute_dominance_frontiers,
463 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
465 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
466 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
469 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
471 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
473 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
474 hoist_insn_after, hoist_insn_to_edge): New.
476 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
478 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
479 (PROP_FINAL): Include.
480 * flow.c (life_analysis, update_life_info,
481 init_propagate_block_info, mark_set_1, mark_used_rgs):
482 Support SCAN_DEAD_STORE.
484 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
486 * c-common.c (c_common_init): Set CPP arithmetic precision.
487 * cppexp.c (cpp_num_part): Move typedef ...
488 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
489 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
490 (sanity_checks): Update.
492 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
494 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
495 (mkheaders): New rule.
496 (install-mkheaders): New rule.
497 * configure.in (all_outputs): Add mkheaders.
498 * configure: Regenerate.
499 * mkheaders.in: New file.
501 2002-05-26 Jakub Jelinek <jakub@redhat.com>
503 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
505 2002-05-26 Andreas Jaeger <aj@suse.de>
507 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
509 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
511 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
512 right_shift): Remove.
513 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
515 (struct op): Use cpp_num.
516 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
517 num_part_mul, num_unary_op, num_binary_op, num_negate,
518 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
519 num_div_op, num_lshift, num_rshift, append_digit): New.
520 (interpret_number, parse_defined, eval_token, reduce): Update
521 for two-integer arithmetic.
522 (binary_handler): New typedef.
524 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
525 (_cpp_parse_expr, reduce): Update to handle two-integers.
526 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
528 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
530 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
531 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
532 branch insn into account, do not assume 1.
533 (avr_out_sbxx_branch): New function. Optimize cases of skipping
534 over single word insn. Handle upper half of I/O space too.
535 * config/avr/avr.md (*sbrx_branch): Use it.
536 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
537 (*sbix_branch, *sbix_branch_bit7): Likewise.
538 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
539 Use RTL peepholes to optimize register operand sign tests.
541 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
543 * config/avr/avr.c (avr_asm_only_p): New variable.
544 (avr_override_options): Set it here if AVR1.
545 (asm_file_start): Test it here, report an error if set.
547 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
549 * alias.c: Fix formatting.
550 * attribs.c: Likewise.
551 * bb-reorder.c: Likewise.
552 * bitmap.c: Likewise.
553 * bitmap.h: Likewise.
554 * builtins.c: Likewise.
556 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
558 * reload.c (find_valid_class): Accept new argument DEST,
559 choose class accordingly.
560 (push_reload): Update callers.
562 2002-05-26 Andreas Jaeger <aj@suse.de>
564 * combine.c (combine_instructions): Do not indent #if for
567 2002-05-25 Richard Henderson <rth@redhat.com>
569 * c-pragma.c (apply_pragma_weak): Convert value identifier to
570 string for decl_attributes.
571 (handle_pragma_weak): Call assemble_alias if we're modifying
574 2002-05-25 Richard Henderson <rth@redhat.com>
577 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
578 using rtl instead of fprintf.
579 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
580 * config/sparc/sparc-protos.h: Update.
582 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
584 * Makefile.in (C_COMMON_H): Fix.
585 Update other targets.
586 * c-common.c: Don't include c-lex.h.
587 (builtin_define_with_value): Make static and prototype.
588 (builtin_define_std): Move from c-lex.h.
589 * c-common.h (init_c_lex): Move from c-lex.h.
590 * c-decl.c: Don't include c-lex.h.
591 (make_pointer_declarator): Move from c-parse.in.
592 * c-lex.c: Don't include c-lex.h.
594 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
595 (make_pointer_declarator): Move to c-decl.c.
596 * c-pragma.c: Don't include c-lex.h.
597 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
598 * c-tree.h (make_pointer_declarator): New.
600 * passes.texi, tm.texi: Update.
602 * Make-lang.in: Update and correct.
603 * objc-act.c: Don't include c-lex.h or cpplib.h.
605 * treetree.c: Don't include c-lex.h.
607 * darwin-c.c: Don't include c-lex.h.
608 * c4x/c4x-c.c: Don't include c-lex.h.
610 * i370/i370-c.c: Don't include c-lex.h.
611 * i370/t-i370: Update.
612 * i960/i960-c.c: Don't include c-lex.h.
613 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
614 * i960/t-960bare: Update.
615 * i960/t-vxworks: Update.
616 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
617 * rs6000/t-darwin: Update.
618 * rs6000/t-rs6000-c-rule: Update.
619 * v850/v850-c.c: Don't include c-lex.h.
620 * v850/v850.c: Don't include c-lex.h or cpplib.h.
623 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
625 * tree.def: Fix typos.
626 * doc/install.texi: Likewise.
628 2002-05-25 Richard Henderson <rth@redhat.com>
630 * configure.in (HAVE_AS_TLS): Add ia64 test.
631 * configure: Rebuild.
632 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
633 (override_options): Set it.
634 (TARGET_HAVE_TLS): New.
635 (sdata_symbolic_operand): Look for 's'.
636 (tls_symbolic_operand): New.
637 (ia64_expand_load_address): Abort for tls symbols.
638 (gen_tls_get_addr): New.
639 (gen_thread_pointer): New.
640 (ia64_expand_move): Split out from movdi. Handle tls symbols.
641 (rtx_needs_barrier): Add new unspecs.
642 (ia64_encode_section_info): Handle tls symbols.
643 (ia64_strip_name_encoding): Strip two encoding chars.
644 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
645 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
646 (TARGET_OPTIONS): Add tls-size.
647 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
648 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
649 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
650 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
651 (movsf, movdf): Likewise.
652 (movdi_symbolic): Use match_scratch. Don't split if we won't
653 have a scratch availiable.
654 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
655 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
656 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
657 * config/ia64/ia64-protos.h: Update.
658 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
659 sdata_symbolic_operand.
660 (ASM_OUTPUT_LABELREF): Strip two characters.
662 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
664 * combine.c (simplify_set): Remove an unnecessary subreg.
666 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
668 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
670 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
672 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
674 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
676 2002-05-25 Roger Sayle <roger@eyesopen.com>
678 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
679 (cond (compare x y) 0) into the equivalent (cond x y).
681 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
683 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
685 2002-05-24 Zack Weinberg <zack@codesourcery.com>
687 * config.gcc: Remove all stanzas for previously obsoleted
688 systems. Where necessary, add explicit error stanzas to
689 prevent removed systems from being misidentified as something
690 else. Begin a fresh obsoletions list, with the systems that
691 were reprieved last round.
692 * doc/install.texi: Remove all mention of dead targets.
693 * fixinc/mkfixinc.sh: Likewise.
695 * config/arm/arm.h: Bit 31 of target_flags is no longer
698 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
699 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
700 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
701 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
702 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
703 config/alpha/osf12.h, config/alpha/osf2or3.h,
704 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
705 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
706 config/clipper/clipper-protos.h, config/clipper/clipper.c,
707 config/clipper/clipper.h, config/clipper/clipper.md,
708 config/clipper/clix.h, config/convex/convex-protos.h,
709 config/convex/convex.c, config/convex/convex.h,
710 config/convex/convex.md, config/convex/fixinc.convex,
711 config/convex/proto.h, config/elxsi/elxsi-protos.h,
712 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
713 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
714 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
715 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
716 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
717 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
718 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
719 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
720 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
721 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
722 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
723 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
724 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
725 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
726 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
727 config/m68k/altos3068.h, config/m68k/apollo68.h,
728 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
729 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
730 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
731 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
732 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
733 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
734 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
735 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
736 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
737 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
738 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
739 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
740 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
741 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
742 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
743 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
744 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
745 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
746 config/mips/dec-osf1.h, config/mips/elflorion.h,
747 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
748 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
749 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
750 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
751 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
752 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
753 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
754 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
755 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
756 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
757 config/ns32k/sequent.h, config/ns32k/tek6000.h,
758 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
759 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
760 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
761 config/sparc/rtems.h, config/we32k/we32k-protos.h,
762 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
765 2002-05-24 Richard Henderson <rth@redhat.com>
767 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
768 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
769 * config/i386/i386.c (tls_model_chars): Add leading space.
770 (tls_symbolic_operand): Don't bias by 1.
771 (legitimize_address): Don't unbias by 1.
773 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
775 * lcm.c (optimize_mode_switching): Change bb used as indices
778 2002-05-24 Richard Henderson <rth@redhat.com>
780 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
781 of update_life_info_in_dirty_blocks.
783 2002-05-24 Jakub Jelinek <jakub@redhat.com>
786 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
788 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
791 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
793 2002-05-24 Jim Blandy <jimb@redhat.com>
795 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
796 entry with a type code of zero, marking the end of the compilation
799 2002-05-24 Richard Henderson <rth@redhat.com>
801 * varasm.c (asm_output_bss): Always output one byte.
802 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
804 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
806 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
809 2002-05-24 Andreas Jaeger <aj@suse.de>
811 * ggc-page.c (alloc_page): Cast variables of type size_t to
812 unsigned long, adjust printf format string.
813 (ggc_alloc): Likewise.
814 (ggc_print_statistics): Likewise.
815 (ggc_print_statistics): Correct printf format string for SCALE to
818 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
820 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
822 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
823 Zack Weinberg <zack@codesourcery.com>
825 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
827 * dwarf2out.c (lookup_filename): Properly quote filename in .file
828 directive in assembly file.
829 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
830 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
831 * config/pj/pj.h (ASM_FILE_START): Likewise.
832 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
833 * config/avr/avr.c (asm_file_end): Likewise.
834 * toplev.c (output_quoted_string): Handle possibly signed plain
836 * toplev.h (output_clean_symbol_name): Declare
837 * toplev.c (output_clean_symbol_name): Define.
838 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
839 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
841 2002-05-24 Alan Modra <amodra@bigpond.net.au>
843 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
845 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
847 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
850 2002-05-23 Richard Henderson <rth@redhat.com>
852 * configure.in (HAVE_AS_TLS): New test.
853 * config.in, configure: Rebuild.
854 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
855 (ix86_tls_dialect_string, ix86_tls_dialect): New.
856 (override_options): Set it.
857 (tls_model_chars, tls_symbolic_operand): New.
858 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
859 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
860 (local_exec_symbolic_operand): New.
861 (get_pic_label_name): Merge into output_set_got.
862 (ix86_asm_file_end): Emit pic_label_name if defined.
863 (legitimate_constant_p, constant_address_p): New.
864 (legitimate_pic_operand_p): New.
865 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
866 (legitimate_address_p): Likewise.
867 (ix86_encode_section_info): Rename from i386_; handle tls decls.
868 (ix86_strip_name_encoding): New.
869 (get_thread_pointer): New.
870 (legitimize_address): Handle tls symbols.
871 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
873 (struct machine_function): Add some_ld_name.
874 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
875 (print_operand) [&]: Use it. Handle UNSPEC_TP.
876 (output_addr_const_extra): New.
877 (maybe_get_pool_constant): New.
878 (ix86_split_to_parts): Use it.
879 (ix86_expand_move): Handle tls symbols.
880 (ix86_tls_get_addr): New.
881 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
882 (TARGET_OPTIONS): Add tls-dialect.
883 (CONSTANT_ADDRESS_P): Use new out-of-line function.
884 (LEGITIMATE_CONSTANT_P): Likewise.
885 (LEGITIMATE_PIC_OPERAND_P): Likewise.
886 (TARGET_STRIP_NAME_ENCODING): New.
887 (ASM_OUTPUT_LABELREF): New.
888 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
889 (OUTPUT_ADDR_CONST_EXTRA): New.
890 (PREDICATE_CODES): Update.
891 (ix86_tls_dialect, ix86_tls_dialect_string): New.
892 * config/i386/i386.md: Regroup and renumber unspec constants.
893 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
894 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
895 (tls_global_dynamic, tls_local_dynamic_base): New.
896 (tls_local_dynamic_once): New.
897 * config/i386/i386-protos.h: Update.
899 2002-05-23 Richard Henderson <rth@redhat.com>
901 * genemit.c (gen_insn): Print file:lineno comment before function.
903 * gensupport.c (struct queue_elem): Add filename member.
904 (queue_pattern): Initialize it; update all callers.
905 (process_include): Don't free filename.
906 (read_md_rtx): Set read_rtx_filename.
908 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
910 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
912 2002-05-23 Richard Henderson <rth@redhat.com>
914 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
916 2002-05-23 Richard Henderson <rth@redhat.com>
918 * doc/extend.texi (C++98 Thread-Local Edits): Update with
919 commentary from Mark.
921 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
923 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
924 Use FOR_EACH_BB macros to iterate over basic block chain.
925 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
926 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
928 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
929 find_unreachable_blocks, create_edge_list, verify_edge_list,
930 remove_fake_edges, add_noreturn_fake_exit_edges,
931 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
933 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
934 find_sub_basic_blocks): Likewise.
935 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
937 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
939 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
941 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
942 commit_edge_insertions, commit_edge_insertions_watch_calls,
943 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
944 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
945 * conflict.c (conflict_graph_compute): Likewise.
946 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
947 df_modified_p, df_refs_unlink, df_dump): Likewise.
948 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
949 * final.c (compute_alignments): Likewise.
950 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
951 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
952 count_or_remove_death_notes): Likewise.
953 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
954 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
955 classic_gcse, compute_transp, cprop, compute_pre_data,
956 compute_transpout, invalidate_nonnull_info,
957 delete_null_pointer_checks_1, delete_null_pointer_checks,
958 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
959 compute_store_table, build_store_vectors, store_motion): Likewise.
960 * global.c (global_conflicts, mark_elimination): Likewise.
961 * graph.c (print_rtl_graph_with_bb): Likewise.
962 * haifa-sched.c (sched_init): Likewise.
963 * ifcvt.c (if_convert): Likewise.
964 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
965 compute_available, compute_nearerout, compute_rev_insert_delete,
966 optimize_mode_switching): Likewise.
967 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
968 * predict.c (estimate_probability, note_prediction_to_br_prob,
969 propagate_freq, counts_to_freqs, expensive_function_p,
970 estimate_bb_frequencies): Likewise.
971 * profile.c (instrument_edges, get_exec_counts,
972 compute_branch_probabilities, compute_checksum, branch_prob,
973 find_spanning_tree): Likewise.
974 * recog.c (split_all_insns, peephole2_optimize): Likewise.
975 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
977 * regclass.c (scan_one_insn, regclass): Likewise.
978 * regmove.c (mark_flags_life_zones, regmove_optimize,
979 record_stack_memrefs): Likewise.
980 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
981 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
982 * resource.c (find_basic_block): Likewise.
983 * sched-ebb.c (schedule_ebbs): Likewise.
984 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
985 find_single_block_region, find_rgns, schedule_insns)
986 * sibcall.c (optimize_sibling_and_tail_recursive_call)
987 * ssa-ccp.c (optimize_unexecutable_edges,
988 ssa_ccp_df_delete_unreachable_insns): Likewise.
989 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
990 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
991 rename_block, convert_to_ssa, compute_conservative_reg_partition,
992 compute_coalesced_reg_partition, rename_equivalent_regs,
993 convert_from_ssa): Likewise.
994 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
995 process_for_unwind_directive): Likewise.
997 * df.c (FOR_ALL_BBS): Removed.
998 * gcse.c (struct null_pointer_info): Type of current_block field
1000 (struct reg_avail_info): Type of last_bb field changed.
1001 * config/ia64/ia64.c (block_num): Removed.
1002 (need_copy_state): Type changed.
1005 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1007 * cppinit.c (mark_named_operators): Split out from init_builtins.
1008 (cpp_finish_options): Call it from here instead.
1010 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1012 * builtin-attrs.def: Update copyright years.
1013 (ATTR_NONNULL): New attribute identifier.
1014 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1015 attribute tree lists.
1016 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1018 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1019 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1020 attribute lists. Chain the appropriate nonnull attribute.
1021 * c-format.c (check_format_arg): Remove null format string
1023 * testsuite/gcc.dg/format/null-1.c: New test.
1025 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1027 * Makefile.in (ADAC): Define.
1029 (.SUFFIXES): Move before language makefile fragments.
1030 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1032 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1034 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1037 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1039 * cfg.c (dump_flow_info): Print results of
1040 maybe_hot/probably_never_executed predicates.
1041 * toplev.c (open_dump_file): Print function frequency.
1043 2002-05-23 David S. Miller <davem@redhat.com>
1045 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1048 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1050 * c-common.c (warn_nonnull): Declare.
1051 (c_common_attribute_table): Add "nonnull" attribute.
1052 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1053 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1054 check_function_arguments_recurse): New functions.
1055 * c-common.h (warn_nonnull): Declare extern.
1056 (check_function_arguments, check_function_arguments_recurse): New
1058 * c-decl.c (c_decode_option): Add -Wnonnull option.
1059 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1061 (format_check_context): New structure.
1062 (check_format_info_recurse): Remove recursion and rename to...
1063 (check_format_arg): ...this. Update comment.
1064 (check_format_info): Use check_function_arguments_recurse.
1065 * c-typeck.c (build_function_call): Call check_function_arguments
1066 instead of check_function_format.
1067 * doc/extend.texi: Document "nonnull" attribute.
1068 * doc/invoke.texi: Docuemnt -Wnonnull option.
1069 * testsuite/gcc.dg/nonnull-1.c: New test.
1070 * testsuite/gcc.dg/nonnull-2.c: New test.
1072 2002-05-23 David S. Miller <davem@redhat.com>
1074 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1075 * cfgcleanup.c (cleanup_cfg): If it is set do not
1076 attempt to delete trivially dead insns.
1077 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1078 * toplev.c (rest_of_compilation): Document non-trivial aspect
1079 the RTL before optimize_save_area_alloca is run.
1081 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1083 * c-lex.c (indent_level): Remove.
1084 (cb_file_change, c_lex): Remove indent level handling.
1085 * c-lex.h (indent_level): Remove.
1086 * input.h (struct file_stack): Remove indent_level.
1087 * toplev.c (push_srcloc): Remove indent_level handling.
1089 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1092 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1093 of x in constraints for clarity.
1094 (sse_mov?fcc split): abort if op2 == op3.
1095 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1096 sse_movsfcc_const0_4): Add earlyclobber.
1097 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1098 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1099 Use Y instead of x in constraints.
1101 2002-05-23 Richard Henderson <rth@redhat.com>
1103 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1104 (C++98 Thread-Local Edits): New subsection.
1106 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1107 (ix86_arch): Set type to enum processor_type.
1109 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1110 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1112 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1114 * configure.in: Fix as version test for binutils 2.12.1 releases
1116 * configure: Rebuilt.
1118 2002-05-23 Richard Henderson <rth@redhat.com>
1120 * config/i386/i386.c (get_pic_label_name): New.
1121 (load_pic_register): Remove.
1122 (output_set_got): New.
1123 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1124 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1125 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1126 (prologue_set_got, prologue_get_pc): Remove.
1127 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1128 (builtin_setjmp_receiver): Use gen_set_got.
1129 * config/i386/i386-protos.h: Update.
1131 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1133 * gcse.c (hash_expr): Do not use alias set for hashing.
1135 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1137 * dbxout.c (dbxout_class_name_qualifiers): New function.
1138 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1140 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1142 * cpperror.c (_cpp_begin_message): No special casing
1144 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1145 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1146 * cpplib.c (do_include_common): Use DL_ERROR.
1147 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1149 * fix-header.c (read_scan_file): Update.
1151 2002-05-22 Richard Henderson <rth@redhat.com>
1153 * config/i386/i386.c (ix86_expand_call): New function, extracted
1154 from md call patterns. Add pic_offset_table_rtx to
1155 CALL_INSN_FUNCTION_USAGE when needed.
1156 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1157 (call_value_pop, call_value, untyped_call): Likewise.
1158 (call_exp, call_value_exp): Remove.
1159 * config/i386/i386-protos.h: Update.
1161 2002-05-22 Richard Henderson <rth@redhat.com>
1163 * varasm.c (default_section_type_flags): Check for VAR_DECL
1164 before using DECL_THREAD_LOCAL.
1166 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1168 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1169 (STARTFILE_SPEC): Delete PE crt0.o.
1170 * config/rs6000/aix51.h: Same.
1171 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1172 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1173 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1174 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1175 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1177 2002-05-22 Richard Henderson <rth@redhat.com>
1179 * varasm.c (default_section_type_flags): Handle tls data and
1181 (default_unique_section): Handle tls sections.
1183 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1185 * configure.in (CROSS): Define NATIVE_CROSS.
1186 * configure: Regenerate.
1187 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1188 (startfile_prefix_spec): New var.
1189 (static_specs): Add startfile_prefix_spec.
1190 (do_spec_2): Split out from..
1192 (main): Process startfile_prefix_spec.
1193 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1195 (STARTFILE_PREFIX_SPEC): Define.
1196 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1199 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1201 * cpperror.c: Fix formatting.
1202 * cppexp.c: Likewise.
1203 * cppfiles.c: Likewise.
1204 * cpphash.c: Likewise.
1205 * cpphash.h: Likewise.
1206 * cppinit.c: Likewise.
1207 * cpplex.c: Likewise.
1208 * cpplib.c: Likewise.
1209 * cppmacro.c: Likewise.
1210 * cppmain.c: Likewise.
1211 * cppspec.c: Likewise.
1213 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1215 * combine.c (force_to_mode): Use gen_int_mode.
1216 Don't clear CONST_INT bits outside of mode.
1218 2002-05-22 Richard Henderson <rth@redhat.com>
1220 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1221 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1223 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1226 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1227 if DECL_SIZE_UNIT is INTEGER_CST.
1229 2002-05-22 Richard Henderson <rth@redhat.com>
1231 * flow.c (life_analysis): Delete broken reg_label check.
1233 2002-05-22 Richard Henderson <rth@redhat.com>
1235 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1236 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1238 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1240 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1241 (embed-bb.c): New rule.
1242 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1243 * config/sh/embed_bb.c: Delete.
1245 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1247 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1249 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1251 * config/h8300/h8300.md (*andorqi3): New.
1253 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
1255 PR preprocessor/6517
1256 * Makefile.in: Update.
1257 * c-common.c (c_common_post_options): Add preprocessor
1258 errors to the error count.
1259 * c-lang.c (c_post_options): Kill.
1260 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1261 * hooks.h: Add header guards.
1262 * langhooks-def.h: Include hooks.h.
1263 (LANG_HOOKS_POST_OPTIONS): Update.
1264 * langhooks.h (struct lang_hooks): Update post_options.
1265 * toplev.c (parse_options_and_default_flags): Update.
1267 * objc-lang.c (objc_post_options): Kill.
1268 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1270 2002-05-21 Bruce Korb <bkorb@gnu.org>
1272 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1273 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1274 * fixinc/fixincl.x: regen.
1276 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
1278 * cfgbuild.c: Fix formatting.
1280 * cfgcleanup.c: Likewise.
1281 * cfglayout.c: Likewise.
1282 * cfgloop.c: Likewise.
1283 * cfgrtl.c: Likewise.
1285 2002-05-21 Richard Henderson <rth@redhat.com>
1287 * c-common.h (enum rid): Add RID_THREAD.
1288 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1289 (grokdeclarator): Grok __thread.
1290 * c-parse.in (reswords): Add __thread.
1291 (rid_to_yy): Add RID_THREAD.
1293 * tree.h (DECL_THREAD_LOCAL): New.
1294 (struct tree_decl): Add thread_local_flag.
1295 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1296 * tree.c (staticp): TLS variables are not static.
1298 * target-def.h (TARGET_HAVE_TLS): New.
1299 * target.h (have_tls): New.
1300 * output.h (SECTION_TLS): New.
1301 * varasm.c (assemble_variable): TLS variables can't be common for now.
1302 (default_section_type_flags): Handle .tdata and .tbss.
1303 (default_elf_asm_named_section): Handle SECTION_TLS.
1304 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1306 * flags.h (flag_tls_default): Declare.
1307 * toplev.c (flag_tls_default): Define.
1308 (display_help): Display help for it.
1309 (decode_f_option): Set it.
1311 * doc/extend.texi (Thread-Local): New node describing language-level
1312 thread-local storage.
1313 * doc/invoke.texi (-ftls-model): Document.
1315 * fixinc/inclhack.def (thread_keyword): New.
1316 * fixinc/fixincl.x: Rebuild.
1318 2002-05-21 Jeffrey A Law <law@redhat.com>
1320 * optabs.c (expand_binop): For double-word integer multiplies,
1321 do not compute intermediate results into something that is
1322 not a register (such as a SUBREG or MEM).
1324 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1325 (ix86_sched_reorder): Make sure to initialize scheduling
1326 data even when there's only one insn in the ready queue.
1328 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1330 * genautomata.c (reserv_sets_hash_value): Fix a typo.
1332 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1334 * genautomata.c (reserv_sets_hash_value): Define hash_value as
1335 set_el_t. Transform the hash value into unsigned.
1336 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1337 (transform_3): Add code to process `(A,B)+(D,E)'.
1339 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
1341 * reload1.c (do_output_reload): Run delete_output_reload
1344 2002-05-21 Roger Sayle <roger@eyesopen.com>
1347 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1348 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
1349 (can_store_by_pieces): ... and here to limit the largest mode used.
1350 Add a comment to document this function.
1352 2002-05-21 Richard Henderson <rth@redhat.com>
1354 * flow.c (life_analysis): Fix test for deleted label.
1356 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
1358 * doc/tm.texi: Fix typo.
1360 2002-05-21 Zack Weinberg <zack@codesourcery.com>
1362 * c-common.c (c_common_init): Set options->unsigned_char from
1364 (cb_register_builtins): Define __STRICT_ANSI__ and
1365 __CHAR_UNSIGNED__ here...
1366 * cppinit.c (init_builtins): Not here.
1367 (cpp_create_reader): unsigned_char option defaults to 0, not
1368 !DEFAULT_SIGNED_CHAR.
1369 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1370 and -funsigned-char.
1372 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1373 * cpphash.c (_cpp_init_hashtable): Don't set it.
1374 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1375 directly. Clarify comment.
1377 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1379 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1380 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
1381 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
1382 BASIC_BLOCK (n_basic_blocks - 1).
1383 * cfganal.c (can_fallthru, flow_call_edges_add,
1384 flow_preorder_transversal_compute): Too.
1385 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1386 find_sub_basic_blocks): Too.
1387 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1388 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1389 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1390 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1391 * combine.c (this_basic_block): Type changed to basic_block.
1392 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1393 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1394 get_last_value, distribute_notes, distribute_links): Too.
1395 * final.c (compute_alignments): Too.
1396 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1397 * function.c (thread_prologue_and_epilogue_insns): Too.
1398 * gcse.c (compute_code_hoist_vbeinout): Too.
1399 * global.c (build_insn_chain): Too.
1400 * ifcvt.c (find_if_block, find_cond_trap): Too.
1401 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1402 * regmove.c (regmove_optimize): Too.
1403 * resource.c (find_basic_block): Too.
1404 * sched-ebb.c (schedule_ebbs): Too.
1405 * ssa-dce.c (find_control_dependence, find_pdom): Too.
1407 2002-05-21 Andreas Jaeger <aj@suse.de>
1409 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1411 2002-05-21 Richard Henderson <rth@redhat.com>
1413 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1414 unspec names, not numbers.
1416 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
1418 * doc/sourcebuild.texi: Mention snapshot-README and
1419 snapshot-index.html as needing updating for new front ends.
1421 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1423 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1424 disabling checking, and avoid multiple evaluation of RTX.
1426 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
1428 * bitmap.c (bitmap_find_bit): Return early if we have the correct
1431 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1433 * profile.c (gen_edge_profiler): Set alias set before the memory is
1436 2002-05-20 David S. Miller <davem@redhat.com>
1438 * cselib.c (max_value_regs): New.
1439 (cselib_lookup, cselib_invalidate_regno): Initialize it when
1440 adding new entries to the REG_VALUES table and we are dealing with
1442 (clear_table): Initialize it.
1443 (cselib_invalidate_regno): Use it to determine which hard
1444 registers to scan when mode is not VOIDmode.
1446 2002-05-20 Duraid Madina <duraid@fl.net.au>
1448 * tradcpp.c (fixup_newlines): Use old-style function header.
1450 2002-05-20 Krister Walfridsson <cato@df.lth.se>
1452 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1454 2002-05-20 H.J. Lu (hjl@gnu.org)
1456 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1458 * config/mips/mips.h (DFMODE_NAN): Defined.
1459 (SFMODE_NAN): Likewise.
1461 2002-05-20 Dale Johannesen <dalej@apple.com>
1463 * combine.c (cant_combine_insn_p): Back out my
1466 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1468 * params.c: Fix formatting.
1469 * params.h: Likewise.
1470 * predict.c: Likewise.
1471 * prefix.c: Likewise.
1472 * print-rtl.c: Likewise.
1473 * print-tree.c: Likewise.
1474 * profile.c: Likewise.
1476 2002-05-20 H.J. Lu (hjl@gnu.org)
1478 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1480 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
1482 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1483 switches straight on to the assembler, do not abbreviate them.
1484 * config/arm/elf.h (ASM_SPEC): As above.
1485 * config/arm/semi.h (ASM_SPEC): As above.
1486 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1487 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1488 -mcpu=xscale on to the assembler by default.
1489 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1491 2002-05-20 Richard Henderson <rth@redhat.com>
1493 * cse.c (canon_hash): Reorder do_not_record test. Always
1494 allow pic_offset_table_rtx.
1496 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
1498 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1499 (expand_binop): Ditto (3 times).
1501 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
1503 * Makefile.in (distclean): Remove QMTest stuff.
1504 (QMTEST_PATH): New variable.
1505 (QMTESTFLAGS): Likewise.
1506 (QMTESTRUNFLAGS): Likewise.
1508 (QMTEST_GPP_TESTS): Likewise.
1509 (QMTEST_DIR): Likewise.
1510 (QMTEST_DIR/context): New target.
1511 (qmtest-g++): Likeise.
1512 (qmtest-gui): Likewise.
1513 (QMTEST_DIR/gpp-expected.qmr): Likewise.
1515 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
1517 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1518 an altivec register if TARGET_ALTIVEC.
1520 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1521 to ALTIVEC_VECTOR_MODE.
1522 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1523 (rs6000_va_arg): Vectors may go in registers if they are not
1526 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
1528 * protoize.c: Fix formatting.
1530 2002-05-19 Richard Henderson <rth@redhat.com>
1532 * gensupport.c (init_include_reader): Merge into ...
1533 (process_include): ... here. Simplify composite path creation.
1534 Plug memory leaks. Fix file/line number tracking. Do not
1535 process_define_cond_exec. Return void.
1536 (process_rtx): Don't check process_include return value.
1538 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1540 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1542 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1543 traversing basic block chain.
1544 (create_basic_block_structure, create_basic_block): Declaration changed.
1545 (link_block, unlink_block): Declare.
1546 * cfg.c (entry_exit_blocks): Initialize new fields.
1547 (link_block, unlink_block): New.
1548 (expunge_block_nocompact): Unlink basic block.
1549 (dump_flow_info): Print prev_bb/next_bb fields.
1550 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1551 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1552 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1553 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1554 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1555 (verify_flow_info): Check that list agrees with numbering.
1557 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
1559 * c-common.c (preprocessing_asm): New macro.
1560 * c-lex.h (builtin_define, builtin_assert): Use pfile.
1564 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1565 (CPP_SPEC): Simplify.
1566 (TARGET_CPU_CPP_BUILTINS): Update.
1567 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1568 (CPP_SPEC): Simplify.
1569 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1570 (TARGET_OS_CPP_BUILTINS): Update.
1571 * osf.h (CPP_XFLOAT_SPEC): Kill.
1572 (TARGET_OS_CPP_BUILTINS): Update.
1573 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1574 * osf5.h (CPP_XFLOAT_SPEC): Kill.
1575 * vms.h (CPP_SUBTARGET_SPEC): Kill.
1576 (TARGET_OS_CPP_BUILTINS): Update.
1578 2002-05-19 Richard Henderson <rth@redhat.com>
1580 * varasm.c (default_binds_local_p): Fix typo.
1582 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1584 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1585 CONST_INT operand to the correct mode after adding 1 to it.
1587 2002-05-19 Mark Mitchell <mark@codesourcery.com>
1589 * config.gcc (powerpc-wrs-windiss*): New target.
1591 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1593 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1596 2002-05-18 Mark Mitchell <mark@codesourcery.com>
1598 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1600 * config.in: Regenerated.
1601 * configure: Regenerated.
1603 2002-05-19 Richard Henderson <rth@redhat.com>
1605 * target-def.h (TARGET_BINDS_LOCAL_P): New.
1606 * target.h (struct gcc_target): Move boolean fields to the end.
1608 * varasm.c (default_binds_local_p): New.
1609 * output.h: Declare it.
1611 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1612 * config/cris/cris.c (cris_encode_section_info): Likewise.
1613 * config/i386/i386.c (i386_encode_section_info): Likewise.
1614 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1615 * config/sh/sh.c (sh_encode_section_info): Likewise.
1617 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1618 (TARGET_BINDS_LOCAL_P): New.
1620 2002-05-19 Richard Henderson <rth@redhat.com>
1622 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1623 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1624 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1626 * toplev.c (display_help): Kill -a -ax help.
1628 * config/1750a/1750a.h, config/alpha/alpha.h,
1629 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1630 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1631 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1632 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1634 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1635 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1637 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1638 (ix86_output_function_block_profiler): Kill.
1639 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1640 (m68hc11_function_block_profiler): Kill.
1641 * config/m68hc11/m68hc11-protos.h: Update.
1642 * config/m88k/m88k.c (output_block_profiler): Kill.
1643 (output_function_block_profiler): Kill.
1644 * config/m88k/m88k-protos.h: Update.
1646 2002-05-19 Richard Henderson <rth@redhat.com>
1648 * system.h (STRIP_NAME_ENCODING): Poison it.
1649 * output.h (STRIP_NAME_ENCODING): Remove.
1650 (default_strip_name_encoding): Declare.
1651 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1652 * target.h (strip_name_encoding): New.
1653 * varasm.c (default_strip_name_encoding): New.
1655 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1656 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1657 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1658 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1659 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1660 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1661 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1662 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1663 config/v850/v850.h: Use the hook, not the macro.
1665 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1666 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1667 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1668 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1669 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1670 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1671 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1672 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1673 config/v850/v850.c, config/v850/v850.h:
1674 Move STRIP_NAME_ENCODING to out-of-line function and add
1675 TARGET_STRIP_NAME_ENCODING.
1677 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1678 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1679 with TARGET_STRIP_NAME_ENCODING referencing existing function;
1680 make function static.
1682 * xcoffout.c: Include target.h
1683 * Makefile.in (xcoffout.o): Update.
1685 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1686 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1687 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1688 reloc argument unused.
1689 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1691 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
1692 STRIP_NAME_ENCODING docs.
1694 2002-05-19 Andreas Jaeger <aj@suse.de>
1696 * gengenrtl.c: Add prototype for excluded_rtx.
1698 * real.h: Add prototype for exact_real_truncate.
1700 2002-05-18 Richard Henderson <rth@redhat.com>
1702 * system.h (ENCODE_SECTION_INFO): Poison it.
1703 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
1704 * target.h (encode_section_info): New.
1705 * varasm.c (make_decl_rtl, output_constant_def): Use it.
1706 * hooks.c (hook_tree_int_void): New.
1707 * hooks.h: Declare it.
1709 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1710 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
1711 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
1712 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
1713 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
1714 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
1715 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1716 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
1717 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1718 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1719 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
1720 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
1721 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
1722 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
1723 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
1724 referencing existing function. Make function static.
1726 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
1727 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
1728 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
1729 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
1730 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
1731 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
1732 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
1733 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
1734 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
1735 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
1736 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
1737 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
1738 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
1739 Move ENCODE_SECTION_INFO to out-of-line function and add
1740 TARGET_ENCODE_SECTION_INFO.
1742 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
1743 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1745 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
1747 (switch_to_section): Replace in_rdata case with in_readonly_data.
1749 * config/h8300/h8300.c (h8300_encode_label): Make static.
1750 * config/h8300/h8300-protos.h: Update.
1752 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
1753 from rs6000_encode_section_info; make static.
1754 (rs6000_xcoff_encode_section_info): New.
1756 * config/v850/v850.c (v850_encode_data_area): Make static.
1757 * config/v850/v850-protos.h: Update.
1759 * config/vax/vax.c: Include flags.h.
1760 (vms_select_section): Fix typo.
1762 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
1763 ENCODE_SECTION_INFO docs.
1765 2002-05-18 Richard Henderson <rth@redhat.com>
1767 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
1768 REGISTER_TARGET_PRAGMAS.
1769 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
1771 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
1773 2002-05-18 Richard Henderson <rth@redhat.com>
1775 * system.h (SELECT_RTX_SECTION): Poison.
1776 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
1777 * target.h (select_rtx_section): New.
1778 * varasm.c (output_constant_pool): Use it.
1779 (default_select_rtx_section, default_elf_select_rtx_section): New.
1780 * output.h: Declare them.
1782 * config/darwin.h (SELECT_RTX_SECTION): Move ...
1783 * config/darwin.c (machopic_select_rtx_section): ... here.
1784 * config/darwin-protos.h: Update.
1786 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
1787 * config/nextstep.c (machopic_select_rtx_section): ... here.
1788 (nextstep_select_section): Rename variable to avoid macro clash.
1789 * config/nextstep-protos.h: Update.
1791 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
1792 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
1793 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
1794 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
1795 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
1796 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
1797 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
1798 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
1799 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
1800 (SELECT_RTX_SECTION): Remove.
1802 * config/darwin.h, config/elfos.h, config/nextstep.h,
1803 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
1804 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
1805 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
1806 config/sparc/lynx.h, config/xtensa/xtensa.c
1807 (TARGET_ASM_SELECT_RTX_SECTION): New.
1809 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
1810 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
1811 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
1812 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
1813 (ia64_aix_select_rtx_section): New.
1814 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
1816 * config/mips/mips.c (mips_select_rtx_section): Make static.
1817 Support ELF SHF_MERGE features.
1818 * config/mips/mips-protos.h: Update.
1819 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
1820 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
1821 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
1822 make static, fall back to default_elf_select_rtx_section.
1823 * config/rs6000/rs6000-protos.h: Update.
1824 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
1825 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
1826 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
1827 * config/romp/romp.c (romp_select_rtx_section): New.
1828 * config/s390/s390.c (s390_select_rtx_section): New.
1829 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
1830 declarations before target macro definition.
1831 (xtensa_emit_call): Use static buffer.
1832 (xtensa_select_rtx_section): New.
1833 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
1834 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
1835 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
1837 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
1838 SELECT_RTX_SECTION docs.
1840 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1842 * i386.md (movsi/movdi): Fix template.
1843 (sse2 patterns): Set attributes consistently.
1845 * i386.md (pushqi2, ashrqi_*): Fix constraint.
1847 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
1849 * optabs.c (complex_part_zero_p): New.
1850 * (expand_cmplxdiv_straight): Use it.
1851 * (expand_cmplxdiv_wide): Ditto.
1852 * (expand_binop): Ditto.
1854 2002-05-18 Richard Henderson <rth@redhat.com>
1856 * final.c (HAVE_READONLY_DATA_SECTION): New.
1857 (shorten_branches): Use it instead of ifdefs.
1858 * varasm.c (enum in_section): Add in_readonly_data.
1859 (text_section, data_section): Tidy.
1860 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
1862 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
1863 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
1864 (READONLY_DATA_SECTION): Don't undef.
1866 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
1867 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
1868 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
1870 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
1871 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
1872 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
1873 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
1875 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
1876 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
1877 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1878 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
1879 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
1880 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
1881 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
1882 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
1883 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
1885 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
1886 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
1887 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
1888 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
1889 config/pa/pa64-hpux.h, config/sparc/litecoff.h
1890 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1892 * config/elfos.h, config/netware.h, config/svr3.h,
1893 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1894 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1895 config/h8300/h8300.h, config/i386/i386-interix.h,
1896 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1897 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
1899 * config/elfos.h, config/netware.h, config/svr3.h,
1900 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1901 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
1902 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1903 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
1905 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
1906 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
1907 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
1908 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
1909 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
1910 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
1911 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
1912 config/rs6000/sysv4.h, config/v850/v850.h
1913 (EXTRA_SECTIONS): Remove in_const/in_rdata.
1914 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
1916 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
1917 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
1918 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
1919 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
1920 * config/alpha/alpha.c (alpha_start_function): Likewise.
1921 (alpha_write_linkage): Likewise.
1922 * config/m32r/m32r.c (m32r_select_section): Likewise.
1923 * config/m88k/m88k.c (m88k_select_section): Likewise.
1924 * config/mips/mips.c (mips_select_rtx_section): Likewise.
1925 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
1926 (rs6000_elf_select_section): Likewise.
1927 * config/v850/v850.c (v850_select_section): Likewise.
1929 * config/1750a/1750a.h, config/i860/sysv3.h
1930 (READONLY_DATA_SECTION_ASM_OP): New.
1931 READONLY_DATA_SECTION_ASM_OP.
1932 * config/i386/interix.c, config/i386/winnt.c
1933 (i386_pe_unique_section): Always use .rdata prefix.
1934 * config/pa/som.h (readonly_data): Always switch to read-only section.
1935 (READONLY_DATA_SECTION): Predicate on flag_pic.
1936 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
1937 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
1938 (READONLY_DATA_SECTION): Update.
1940 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
1942 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
1943 is used without -Wformat.
1944 * c-common.h (warn_format_zero_length): Declare extern.
1945 * c-decl.c (warn_options): Add "format-zero-length".
1946 * c-format.c (warn_format_zero_length): Declare.
1947 (set_Wformat): Set warn_format_zero_length for -Wformat.
1948 (check_format_info): Only warn about zero-length formats if
1949 warn_format_zero_length is true. Include the format type
1950 name in the warning message.
1951 * doc/invoke.texi: Document -Wformat-zero-length.
1952 * testsuite/gcc.dg/format/zero-length-1.c: New test.
1954 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
1956 * timevar.c: Fix formatting.
1957 * tlink.c: Likewise.
1958 * toplev.c: Likewise.
1959 * tree-dump.c: Likewise.
1960 * tree-inline.c: Likewise.
1962 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
1964 * cppinit.c (cpp_post_options): If preprocessed, turn off
1965 traditional. If traditional, turn off column numbers.
1966 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
1967 * cpptrad.c (handle_newline): Update line_base.
1968 (skip_comment): Handle -Wcomment.
1970 2002-05-17 Zack Weinberg <zack@codesourcery.com>
1972 * cppinit.c (struct builtin): Remove unused fields.
1973 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
1974 (operator_array): New - was second half of builtin_array.
1975 (init_builtins): Simplify loop over builtin_array/operator_array.
1977 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
1979 * defaults.h (UNIQUE_SECTION): Remove.
1980 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
1982 2002-05-17 Richard Henderson <rth@redhat.com>
1984 * expr.c (init_expr_once): Don't use start/end_sequence.
1985 Use rtx_alloc instead of emit_insn.
1986 * toplev.c (lang_dependent_init): Run init_expr_once here ...
1987 (lang_independent_init): ... not here.
1989 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1991 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
1993 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1995 * config/avr/avr.c (avr_regs_to_save): New function. Also check
1996 for fixed registers, possibly used for global register variables.
1997 (initial_elimination_offset, avr_output_function_prologue,
1998 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2000 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2002 * Makefile.in: Update for cpptrad.c.
2003 * cpphash.h (struct cpp_buffer): New members for buffer
2005 (struct cpp_reader): New members for traditional output.
2006 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2007 * cppinit.c (cpp_create_reader): Set trad_line.
2008 (cpp_destroy): Free trad_out_base if used.
2009 (cpp_read_main_file): Overlay an empty buffer if traditional.
2010 (cpp_finish_options): Don't do builtins.
2011 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2012 (cpp_handle_option): Handle it.
2013 * cpplex.c (continue_after_nul): New.
2014 (_cpp_lex_direct): Use handle_nul.
2015 * cpplib.h (struct cpp_options): New traditional option.
2016 * cpptrad.c: New file.
2018 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2020 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2021 and set the options flag.
2022 * cppinit.c (lang_flags): Remove objc.
2023 (lang_defaults): Remove OBJC and OBJCXX.
2025 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2026 (cpp_handle_option): Remove -+ and -lang-objc++.
2027 For ObjC, just set a flag.
2028 (print_help): Update.
2029 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2031 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2033 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2034 bootstrap with -mips3.
2036 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2038 * final.c: Fix formatting.
2039 * fix-header.c: Likewise.
2041 * fold-const.c: Likewise.
2042 * function.c: Likewise.
2044 2002-05-17 David S. Miller <davem@redhat.com>
2046 PR c/6689, PR optimization/6615
2047 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2048 and make it a pointer to rtx. Update comments.
2049 (update_equiv_regs): When scanning for equivalences, record
2050 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2051 it while making the equiv replacements.
2053 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2055 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2057 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2059 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2060 when encoding visibility into SYMBOL_REF_FLAG.
2062 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2064 * expr.c (force_operand): Fix reversed move.
2066 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2068 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2069 that can be ignored.
2071 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2073 * doc/install.texi (Final install): Recommend to install into a
2074 "clean" target directory.
2076 2002-05-17 Richard Henderson <rth@redhat.com>
2078 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2079 for code blocks. Tidy whitespace.
2081 2002-05-17 Richard Henderson <rth@redhat.com>
2083 * hooks.c (hook_tree_bool_false): New.
2084 * hooks.h: Declare it.
2085 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2086 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2087 * target.h (select_section, unique_section): New.
2088 (in_small_data_p): New.
2089 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2090 (variable_section, output_constant_def_contents): Likewise.
2091 (default_select_section, default_unique_section): New.
2092 (categorize_decl_for_section, default_elf_select_section): New.
2093 * output.h: Declare them.
2095 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2096 (TARGET_ASM_SELECT_SECTION): New.
2097 (SELECT_SECTION): Move ...
2098 * config/darwin.c (machopic_select_section): ... here.
2099 * config/darwin-protos.h: Update.
2101 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2102 (SELECT_SECTION): Move ...
2103 * config/nextstep.c (nextstep_select_section): ... here.
2104 * config/nextstep-protos.h: Update.
2106 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2107 (TARGET_ASM_SELECT_SECTION): New.
2108 * config/svr3.h (SELECT_SECTION): Remove.
2110 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2111 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2112 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2113 (alpha_encode_section_info): Use it.
2114 * config/alpha/alpha-protos.h: Update.
2115 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2116 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2117 (TARGET_ASM_SELECT_SECTION): New.
2118 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2120 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2121 (TARGET_ASM_UNIQUE_SECTION): New.
2123 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2124 (avr_unique_section): Rename from unique_section; make static.
2125 * config/avr/avr-protos.h: Update.
2126 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2128 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2130 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2131 (TARGET_ASM_UNIQUE_SECTION): New.
2132 * config/i386/i386-interix.h: Likewise.
2133 * config/i386/win32.h: Likewise.
2134 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2135 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2136 * config/i386/sco5.h (SELECT_SECTION): Remove.
2137 (TARGET_ASM_SELECT_SECTION): New.
2138 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2140 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2141 instead of SELECT_SECTION.
2142 * config/m68k/dpx2.h: Likewise.
2143 * config/rs6000/lynx.h: Likewise.
2145 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2146 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2147 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2148 (ia64_in_small_data_p): New.
2149 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2150 (ia64_aix_select_section, ia64_aix_unique_section): New.
2151 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2152 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2154 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2155 (TARGET_ASM_SELECT_SECTION): New.
2156 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2157 * config/m32r/m32r-protos.h: Update.
2159 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2160 (SELECT_SECTION): Move ...
2161 * config/m88k/m88k.c (m88k_select_section): ... here.
2163 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2164 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2165 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2166 (mcore_unique_section): Make static.
2167 * config/mcore/mcore-protos.h: Update.
2169 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2170 (TARGET_ASM_UNIQUE_SECTION): New.
2171 * config/mips/elf64.h: Likewise.
2172 * config/mips/iris6gld.h: Likewise.
2173 * config/mips/linux.h: Likewise.
2174 * config/mips/mips-protos.h: Update.
2175 * config/mips/mips.c (mips_select_section): Add align argument.
2176 * config/mips/mips.h (SELECT_SECTION): Remove.
2177 (TARGET_ASM_SELECT_SECTION): New.
2179 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2180 * config/mmix/mmix.c (mmix_select_section): Remove.
2181 (mmix_unique_section): Remove.
2182 * config/mmix/mmix-protos.h: Update.
2184 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2185 (SELECT_SECTION): Move ...
2186 * config/pa/pa.c (pa_select_section): ... here.
2187 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2189 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2190 from rs6000_select_section and make static.
2191 (rs6000_elf_unique_section): Similarly.
2192 (rs6000_xcoff_select_section): From xcoff.h.
2193 (rs6000_xcoff_unique_section): Likewise.
2194 * config/rs6000/rs6000-protos.h: Update.
2195 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2196 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2197 * config/rs6000/xcoff.h: Likewise.
2199 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2200 (SELECT_SECTION): Move ...
2201 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2203 * config/v850/v850.h (SELECT_SECTION): Move ...
2204 * config/v850/v850.c (v850_select_section): ... here.
2205 (TARGET_ASM_SELECT_SECTION): New.
2207 * config/vax/vms.h (SELECT_SECTION): Move ...
2208 * config/vax/vax.c (vms_select_section): ... here.
2209 (TARGET_ASM_SELECT_SECTION): New.
2211 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2212 for the target hooks.
2214 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2216 * config/arm/arm.c (emit_multi_reg_push): Do not set
2217 RTX_FRAME_RELATED_P on the SEQUENCE.
2219 2002-05-16 Richard Henderson <rth@redhat.com>
2221 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2222 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2224 2002-05-16 Richard Henderson <rth@redhat.com>
2226 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2228 * config/ia64/ia64.c (saveable_obstack): Do not declare.
2230 2002-05-16 Richard Henderson <rth@redhat.com>
2232 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2233 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2234 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2235 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2236 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2237 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2238 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2239 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2240 Revert "Basic block renumbering removal", and two followup patches.
2242 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2244 * lcm.c (optimize_mode_switching): Revert previous change.
2246 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2248 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2249 with only extant block numbers.
2251 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2253 * lcm.c (optimize_mode_switching): Fix typo.
2255 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2257 * flow.c (calculate_global_regs_live): Queue blocks in program order.
2259 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2261 * doc/install.texi (Configuration): Document PWDCMD.
2263 2002-05-16 Dale Johannesen <dalej@apple.com>
2265 * combine.c (cant_combine_insn_p): Reenable combinations
2266 involving hard regs unless CLASS_LIKELY_SPILLED_P.
2268 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2270 * c-common.c (cb_register_builtins): Handle more built-ins
2271 here rather than in gcc.c specs.
2272 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2273 (cpp_options): Pass -O flags even when only preprocessing.
2274 * toplev.c (set_fast_math_flags): New prototype.
2275 (fast_math_flags_set_p): New.
2276 (set_no_fast_math_flags): Remove.
2277 (decode_f_option): Update.
2278 * toplev.h (set_fast_math_flags): Update.
2279 (fast_math_flags_set_p): New.
2280 (set_no_fast_math_flags): Remove.
2282 * c4x/c4x.c (c4x_override_options): Update.
2284 2002-05-16 Zack Weinberg <zack@codesourcery.com>
2286 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2287 Default-define here.
2288 (builtin_define_with_value): Can now wrap the expansion in
2289 quotation marks if such is wanted.
2290 (cb_register_builtins): Update calls to builtin_define_with_value.
2291 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2293 (c_common_init): Set options->stdc_0_in_system_headers.
2294 * c-lex.h: Update prototype of builtin_define_with_value.
2295 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2296 and REGISTER_PREFIX.
2298 * cppinit.c (VERS, ULP, C, X): Kill.
2299 (builtin_array): Remove entries for __VERSION__,
2300 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2301 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
2303 (init_builtins): Kill off a bunch of now-dead code.
2304 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2305 -fno-leading-underscore.
2306 (cpp_handle_option): Remove code to set user_label_prefix.
2307 (cpp_post_options): Likewise.
2309 * cpplib.h (struct cpp_options): Remove user_label_prefix.
2310 (stdc_0_in_system_headers): New.
2311 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2312 stdc_0_in_system_headers) too to decide the value of __STDC__.
2314 * tradcpp.c (user_label_prefix): Kill.
2315 (main): Remove code handling -f(no-)leading-underscore.
2316 (initialize_builtins): Don't define __REGISTER_PREFIX__
2317 or __USER_LABEL_PREFIX__.
2318 (install_value): Wrap compound statement in dummy loop so the
2319 macro works properly in an if statement.
2322 2002-05-16 Janis Johnson <janis187@us.ibm.com>
2324 * loop.h (struct loop_info): Add member has_prefetch.
2325 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2326 (prescan_loop): Initialize has_prefetch.
2327 (struct prefetch_info): Change prefetch_in_loop and
2328 prefetch_before_loop from bit fields to ints.
2329 (emit_prefetch_instructions): Several small fixes.
2330 (check_dbra_loop): Don't reverse loop that uses prefetch.
2332 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2334 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2335 * configure.in: Likewise.
2336 * fixinc/check.tpl: Likewise.
2337 * fixinc/fixinc.dgux: Likewise.
2338 * fixinc/fixinc.svr4: Likewise.
2339 * fixinc/fixinc.winnt: Likewise.
2340 * fixinc/fixincl.sh: Likewise.
2341 * fixproto: Likewise.
2342 * configure: Regenerate.
2344 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2346 Basic block renumbering removal:
2347 * basic_block.h (struct basic_block_def): Renamed index to sindex,
2348 added prev_bb and next_bb fields.
2349 (n_basic_blocks): Renamed to num_basic_blocks.
2350 (last_basic_block): New, index of last basic block.
2351 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2352 traversing basic block chain.
2353 (BLOCK_NUM): index -> sindex.
2354 (create_basic_block_structure, create_basic_block): Declaration changed.
2355 (debug_num2bb): Declare.
2356 (expunge_block_nocompact): Declaration removed.
2357 (link_block, unlink_block, compact_blocks): Declare.
2358 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2359 * cfg.c (entry_exit_blocks): Initialize new fields.
2360 (clear_edges, alloc_block, expunge_block, cached_make_edge,
2361 redirect_edge_pred, dump_flow_info, dump_edge_info,
2362 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2363 free_aux_for_edges): Modified.
2364 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2365 (expunge_block_nocompact): Removed.
2366 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2367 find_unreachable_blocks, create_edge_list, print_edge_list,
2368 verify_edge_list, flow_edge_list_print, remove_fake_successors,
2369 remove_fake_edges, flow_reverse_top_sort_order_compute,
2370 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2371 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2372 flow_dfs_compute_reverse_execute): Modified.
2373 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2374 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2376 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2377 merge_blocks_move_predecessor_nojumps,
2378 merge_blocks_move_successor_nojumps, merge_blocks,
2379 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2380 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2381 * cfglayout.c (skip_insns_after_block, label_for_bb,
2382 record_effective_endpoints, scope_to_insns_finalize,
2383 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2384 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2385 cfg_layout_duplicate_bb): Modified.
2386 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2387 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2388 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2389 flow_loops_find, flow_loop_outside_edge_p): Modified.
2390 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2391 flow_delete_block, compute_bb_for_insn, split_block,
2392 try_redirect_by_replacing_jump, redirect_edge_and_branch,
2393 force_nonfallthru_and_redirect, tidy_fallthru_edge,
2394 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2395 commit_edge_insertions, commit_edge_insertions_watch_calls,
2396 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2397 purge_all_dead_edges): Modified.
2398 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2399 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2400 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2402 * conflict.c (conflict_graph_compute): Modified.
2403 * df.c (FOR_ALL_BBS): Removed.
2404 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2405 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2406 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2407 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2408 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2409 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2410 * final.c (compute_alignments, final_scan_insn): Modified.
2411 * flow.c (verify_local_live_at_start, update_life_info,
2412 update_life_info_in_dirty_blocks, free_basic_block_vars,
2413 delete_noop_moves, calculate_global_regs_live,
2414 initialize_uninitialized_subregs, allocate_bb_life_data,
2415 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2416 mark_used_reg, count_or_remove_death_notes): Modified.
2417 * function.c (thread_prologue_and_epilogue_insns): Modified.
2418 * gcse.c (struct null_pointer_info): Change typo of current_block
2420 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2421 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2422 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2423 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2424 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2425 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2426 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2427 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2428 pre_delete, one_pre_gcse_pass, compute_transpout,
2429 invalidate_nonnull_info, delete_null_pointer_checks_1,
2430 free_code_hoist_mem, compute_code_hoist_vbeinout,
2431 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2432 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2433 compute_store_table, build_store_vectors, insert_insn_start_bb,
2434 insert_store, replace_store_insn, free_store_memory, store_motion):
2436 * global.c (global_alloc, global_conflicts, mark_elimination,
2437 build_insn_chain): Modified.
2438 * graph.c (print_rtl_graph_with_bb): Modified.
2439 * haifa-sched.c (sched_init): Modified.
2440 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2441 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2442 if_convert): Modified.
2443 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2444 compute_insert_delete, pre_edge_lcm, compute_available,
2445 compute_farthest, compute_nearerout, compute_rev_insert_delete,
2446 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2448 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2449 * loop.c (loop_dump_aux): Modified.
2450 * predict.c (combine_predictions_for_insn, estimate_probability,
2451 last_basic_block_p, process_note_prediction, process_note_predictions,
2452 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2453 expensive_function_p, estimate_bb_frequencies,
2454 compute_function_frequency): Modified.
2455 * print-rtl.c (print_rtx): Modified.
2456 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2457 get_exec_counts, compute_branch_probabilities, compute_checksum,
2458 branch_prob, find_spanning_tree): Modified.
2459 * recog.c (split_all_insns, peephole2_optimize): Modified.
2460 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2461 convert_regs_1, convert_regs_2, convert_regs): Modified.
2462 * regclass.c (scan_one_insn, regclass): Modified.
2463 * regmove.c (mark_flags_life_zones, regmove_optimize,
2464 combine_stack_adjustments): Modified.
2465 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2466 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2467 * reorg.c (dbr_schedule): Modified.
2468 * resource.c (find_basic_block, init_resource_info): Modified.
2469 * sbitmap.c (sbitmap_intersection_of_succs,
2470 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2471 sbitmap_union_of_preds): Modified.
2472 * sched-deps.c (init_dependency_caches): Modified.
2473 * sched-ebb.c (schedule_ebbs): Modified.
2474 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2475 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2476 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2477 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2478 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2479 ssa_const_prop): Modified.
2480 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2481 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2482 * ssa.c (remove_phi_alternative, find_evaluations,
2483 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2484 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2485 make_regs_equivalent_over_bad_edges,
2486 make_equivalent_phi_alternatives_equival,
2487 compute_conservative_reg_partition,
2488 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2489 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2492 2002-05-16 Mark Mitchell <mark@codesourcery.com>
2494 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2496 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2498 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2499 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2500 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2501 calling CONSTANT_POOL_ADDRESS_P.
2502 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2503 to decide whether to define __arm__ or __thumb.
2504 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2505 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2507 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2509 * config/arc/arc.h (CPP_PREDEFINES): Remove.
2511 (TARGET_CPU_CPP_BUILTINS): New.
2513 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2515 * cpphash.h (cpp_macro): Move here, and make expansion a union.
2516 * cppmacro.c (cpp_macro): Remove.
2517 (enter_macro_context, replace_args, warn_of_redefinition,
2518 _cpp_create_definition, cpp_macro_definition): Update.
2520 2002-05-16 Jason Merrill <jason@redhat.com>
2522 * config/mips/mips.c (mips_output_external): Don't do sdata
2523 optimization for a variable with DECL_COMDAT set.
2525 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2527 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2528 Cleanups for accepting modifiers on pointers.
2529 Fix predicate typos.
2530 Allow long pointers as well as int pointers.
2532 2002-05-15 Richard Henderson <rth@redhat.com>
2534 * varasm.c (merge_weak): Remove special case for extern and common.
2536 2002-05-15 Matt Hiller <hiller@redhat.com>
2538 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2540 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2541 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2542 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2543 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2544 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2545 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2547 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2549 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2551 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2553 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2554 ("altivec_mfvscr"): Read from VSCR.
2556 Add vscr sets for the following insns: altivec_vctuxs,
2557 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2558 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2559 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2560 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2561 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2562 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2563 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2564 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2565 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2566 altivec_vsum2sws, altivec_vsumsws.
2568 * config/rs6000/rs6000.h: Add VSCR fixed register.
2569 (CALL_REALLY_USED_REGISTERS): Add vscr.
2570 (CALL_USED_REGISTERS): Same.
2571 (FIXED_REGISTERS): Same.
2572 (REG_ALLOC_ORDER): Same.
2573 (reg_class): Add VSCR_REGS.
2574 (REG_CLASS_NAMES): Same.
2575 (REG_CLASS_CONTENTS): Same.
2577 (REGISTER_NAMES): Add vscr.
2578 (DEBUG_REGISTER_NAMES): Same.
2579 (ADDITIONAL_REGISTER_NAMES): Same.
2580 (FIRST_PSEUDO_REGISTER): Increment.
2581 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2583 2002-05-15 Jakub Jelinek <jakub@redhat.com>
2585 * fold-const.c (fold): Fix a typo.
2587 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
2589 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2590 comparison against the highest or lowest integer value before
2591 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2592 transformation and that of an unsigned comparison against 0
2595 2002-05-15 Richard Henderson <rth@redhat.com>
2597 * varasm.c (merge_weak): Error for any weakening after definition.
2598 Adjust weakening after use warning to catch more cases.
2599 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2600 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2602 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2604 * invoke.texi (-malign-double): Re-add lost warning.
2606 * i386-protos.h (x86_output_mi_thunk): Declare.
2607 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2608 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2610 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2611 when flag_asynchronous_unwind_tables is set.
2613 * flags.h (flag_reorder_functions): Declare.
2614 * function.c (prepare_function_start): Initialize frequnecy.
2615 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2616 * Makefile.in (predict.o): Add dependency on target.h and params.h
2617 * defaults.h (HOT_TEXT_SECTION_NAME,
2618 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2619 * predict.c (choose_function_section): New function.
2620 (estimate_bb_frequencies): Use it.
2621 * toplev.c (flag_reorder_functions): New global variable.
2622 (lang_independent_options): New.
2623 (parse_options_and_default_flags): Set.
2624 * varasm.c (assemble_start_function): Bypass functdion alignment
2625 for never executed functions.
2626 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2627 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2628 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2631 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
2633 * predict.c: Inlude profile.h
2634 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2635 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2636 Use the information about maximal counter in the program.
2638 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
2640 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2641 probably_never_executed_bb_p): New functions.
2642 * cfgcleanup.c (outgoing_edges_match): Use them.
2643 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2644 (maybe_hot_bb_p, probably_cold_bb_p,
2645 probably_never_executed_bb_p): New functions.
2647 * function.h (function): Add new field function_frequency.
2648 * predict.c (compute_function_frequency): New function.
2649 (estimate_probability): Call it.
2651 2002-03-09 Jakub Jelinek <jakub@redhat.com>
2653 PR optimization/5172, optimization/5200
2654 * gcse.c (gcse_main): Disable store_motion.
2656 2002-05-14 Zack Weinberg <zack@codesourcery.com>
2658 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2659 (c_common_nodes_and_builtins): Use it.
2660 (builtin_define_with_value): New function.
2661 (cb_register_builtins): Define __SIZE_TYPE__,
2662 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2663 using builtin_define_with_value. Use consistent notation when
2664 defining __GXX_WEAK__.
2665 (WCHAR_TYPE_SIZE): Don't redefine.
2666 (combine_strings): Don't use WCHAR_TYPE_SIZE.
2668 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2669 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2670 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2671 * tradcpp.c (initialize_builtins): Likewise.
2672 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2674 * c-lex.h (builtin_define_with_value): Prototype.
2675 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2676 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2677 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2679 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2680 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2681 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2682 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2683 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2684 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2685 config/sparc/sol2-bi.h, config/sparc/sparc.h:
2686 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
2687 to __SIZE_TYPE__ etc from all spec strings. When this makes
2688 extra specs empty, delete them.
2690 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
2692 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
2693 for PA8000 or generating dwarf2 call frame information.
2694 (output_call): Remove DO_FRAME_NOTES check from return pointer
2696 (following_call): Return 0 when scheduling for PA8000 or generating
2697 dwarf2 call frame information. Revise comment.
2699 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2702 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
2703 and __IEEE_FP_INEXACT as appropriate.
2704 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
2705 (CPP_SPEC): Remove ieee defines.
2706 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
2708 2002-05-14 Richard Henderson <rth@redhat.com>
2710 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
2711 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
2713 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2715 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
2717 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
2718 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
2719 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
2720 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
2721 (EXTRA_SPECS): Update.
2722 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2723 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
2724 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
2725 define TARGET_OS_CPP_BUILTINS if necessary.
2727 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2729 * gcc.c (cpp_options): Must pass -m* and -f* options
2730 to the front end even when only preprocessing.
2731 (cc1_options): Remove redundant -lang-c.
2732 * tradcpp.c (main): Ignore -m options.
2734 * lang-specs.h: Similarly.
2736 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
2738 * genautomata.c (transform_3): Add code for transformation
2739 `(A,B,...)+C -> A+C,B,...'.
2741 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
2743 * final.c (end_final): Do not output profile_arcs constructor, when
2744 no functions are instrumented.
2746 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
2748 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
2750 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2752 * doc/install.texi: Remove special markup originally required for
2753 HTML generation with texi2html.
2755 2002-05-14 Andreas Schwab <schwab@suse.de>
2757 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
2759 (UNIQUE_SECTION): Define to get small data correctly.
2761 * varasm.c (resolve_unique_section): Add third parameter
2762 flag_function_or_data_sections and use it instead of
2763 flag_function_sections.
2764 (assemble_start_function): Pass flag_function_sections.
2765 (asm_emit_uninitialised): Pass flag_data_sections.
2766 (assemble_variable): Likewise.
2768 2002-05-14 Richard Henderson <rth@redhat.com>
2770 * config/i386/i386.md: Use define_constants for unspec numbers.
2771 * config/i386/i386.c: Likewise.
2773 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2775 * doc/contrib.texi: Update my entry.
2777 2002-05-13 Mark Mitchell <mark@codesourcery.com>
2779 * fixinc/inclhack.def (winidss_valist): Limit applicability.
2780 * fixinc/fixincl.x: Regenerated.
2781 * fixinc/tests/base/math.h: Update.
2782 * fixinc/tests/base/testing.h: Likewise.
2784 2002-05-13 Zack Weinberg <zack@codesourcery.com>
2786 * genattr.c (gen_attr): Don't emit a comma after the last
2789 2002-05-13 Richard Henderson <rth@redhat.com>
2791 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
2793 * recog.c (peephole2_optimize): Likewise.
2795 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
2797 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
2800 2002-05-13 Jeffrey A Law (law@redhat.com)
2802 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
2803 Update prototype and callers.
2804 (propagate_one_insn): Stack pointer adjustments kill MEMs on
2805 the mem_set_list which reference the stack pointer, as do
2806 calls to constant functions as they may clobber outgoing
2809 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
2811 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2812 (ia32_multipass_dfa_lookahead): New function.
2814 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2816 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
2817 (translate_options): Remove 'V'.
2818 (process_command): Similarly.
2820 * invoke.texi: Remove documentation of 'V'.
2822 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2824 * config/s390/linux.h: Revert 2002-04-22 changes.
2826 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
2828 * config/fr30/fr30.md: Only allow splits of immediate loads
2829 if the destination is a register.
2831 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2833 * Makefile.in (c-common.o, cppinit.o): Update.
2834 * c-common.c: Include except.h.
2835 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
2836 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
2837 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
2838 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
2839 CPP_PREDEFINES): Handle here.
2841 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
2842 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
2843 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
2844 TARGET_OS_CPP_BUILTINS.
2845 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
2846 (CPP_SPEC, EXTRA_SPECS): Update.
2847 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
2848 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
2849 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
2850 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
2851 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
2853 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
2854 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
2856 2002-05-12 Zack Weinberg <zack@codesourcery.com>
2858 * emit-rtl.c (global_rtl): Update comment.
2859 (const_double_htab, const_double_htab_hash,
2860 const_double_htab_hash, lookup_const_double): New.
2861 (const_int_htab_hash, const_int_htab_eq): Remove const
2862 qualifiers, which cause tons of warnings with RTL checking on.
2863 (gen_rtx_CONST_DOUBLE): Deleted.
2864 (const_double_from_real_value): New function - bears some
2865 resemblance to the former immed_real_const_1.
2866 (immed_double_const): Moved here from varasm.c and
2868 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
2869 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
2870 (gen_rtx): Use immed_double_const.
2871 (init_emit_once): Initialize the const_double_htab. Use
2872 REAL_VALUE_FROM_INT where possible. Can now use
2873 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
2874 * varasm.c (struct varasm_status): Remove x_const_double_chain.
2875 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
2876 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
2877 (init_varasm_status, mark_varasm_status): Don't touch
2878 x_const_double_chain.
2880 * output.h: Delete prototype for clear_const_double_mem.
2881 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
2882 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
2883 const_double_from_real_value, not immed_real_const_1, and use
2884 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
2886 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
2887 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
2888 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
2889 (gen_rtx_REG): Second arg is unsigned.
2891 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
2892 (excluded_rtx): New, return true for CONST_DOUBLE.
2893 (genmacro): Write nothing for excluded codes.
2894 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
2895 * expr.c (expand_expr): Likewise.
2896 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
2898 * toplev.c (rest_of_compilation): Don't call
2899 clear_const_double_mem.
2901 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
2902 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
2903 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
2904 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
2905 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
2906 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
2907 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
2908 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
2910 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2912 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
2914 2002-05-12 Tom Tromey <tromey@redhat.com>
2916 * tree.h (copy_node): Don't mention TREE_PERMANENT.
2918 2002-05-12 Zack Weinberg <zack@codesourcery.com>
2920 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
2921 (scan_comma_elt): New function. Accepts whitespace in comma lists.
2922 * gensupport.h: Prototype new routines.
2923 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
2925 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
2926 (next_comma_elt): Use scan_comma_elt.
2928 * config/i386/i386.md: Use new attribute notation to break up
2929 long lines in define_attr forms.
2931 2002-05-12 Richard Henderson <rth@redhat.com>
2933 * expr.c (compress_float_constant): New.
2934 (emit_move_insn): Use it.
2935 (float_extend_from_mem): New.
2936 (init_expr_once): Initialize it.
2937 * real.c (exact_real_truncate): New.
2939 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
2940 dropped into memory; penalize for size.
2941 (RTX_COSTS): FLOAT_EXTEND is free.
2942 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
2943 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
2945 2002-05-12 Richard Henderson <rth@redhat.com>
2947 * profile.h (profile_info): Add missing extern to declaration.
2948 * profile.c (profile_info): Define it.
2950 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2952 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
2953 used for DImode and TImode.
2955 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
2957 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
2960 2002-05-11 Zack Weinberg <zack@codesourcery.com>
2962 * config/rs6000/rs6000.c (rs6000_default_long_calls,
2963 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
2964 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
2965 (rs6000_override_options): Handle -m(no-)longcall.
2966 (init_cumulative_args, output_mi_thunk): Check for both
2967 longcall and shortcall attributes on the function.
2968 (rs6000_attribute_table): Add "shortcall".
2969 (rs6000_handle_longcall_attribute): Update comment.
2970 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
2971 altivec_expand_ternop_builtin): Add default clauses to switches
2972 to silence warnings.
2974 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
2975 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
2976 (TARGET_OPTIONS): Add longcall and no-longcall.
2978 * config/rs6000/rs6000.md (call_nonlocal_sysv,
2979 call_value_nonlocal_sysv): Split by alternatives. One pair
2980 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
2981 the call cookie. The other pair accepts only LR/CTR and has
2984 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
2985 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
2987 * config/rs6000/rs6000-c.c: New file.
2988 * config/rs6000/t-rs6000-c-rule: New file.
2989 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
2990 Prototype rs6000_pragma_longcall.
2992 * doc/extend.texi: Document shortcall attribute.
2993 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
2995 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2997 * reorg.c (dbr_schedule): Remove unnecessary test.
2999 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3001 * i386.md (testsi to testqi spliters): New.
3003 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3005 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3007 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3009 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3010 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3011 that can be made fallthru.
3013 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3015 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3016 (cfg_layout_initialize): Use it.
3018 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3020 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3021 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3022 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3024 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3026 * dbxout.c: Fix formatting.
3027 * dependence.c: Likewise.
3029 * diagnostic.c: Likewise.
3030 * doloop.c: Likewise.
3031 * dominance.c: Likewise.
3032 * doschk.c: Likewise.
3033 * dwarf2asm.c: Likewise.
3034 * dwarf2out.c: Likewise.
3035 * dwarfout.c: Likewise.
3037 2002-05-10 Richard Henderson <rth@redhat.com>
3039 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3040 Convert integers constants as needed. Replace "nwords" field with
3042 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3043 * function.h: Fix typo in comment.
3044 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3046 2002-05-10 Roger Sayle <roger@eyesopen.com>
3048 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3049 into the equivalent (signed char)c > 0.
3051 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3053 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3054 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3055 (struct prefetch_info): Fix spelling of member bytes_accessed.
3056 (emit_prefetch_instructions): Make dump messages more regular;
3057 restructure code to add more dump messages; use new macros for
3058 heuristics. (There are no code generation changes in any of this).
3060 2002-05-10 David S. Miller <davem@redhat.com>
3062 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3063 (struct rtx_def): Update unchanging flag comment.
3064 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3065 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3066 to be handled to INSN too.
3067 (dbr_schedule): Likewise.
3068 * resource.c (next_insn_no_annul): Likewise.
3070 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3073 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3075 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3076 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3077 (possibly) work around broken /bin/sh.
3079 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3081 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3082 . as N64/N32 libgcc_s.so subdirs.
3084 2002-05-10 David S. Miller <davem@redhat.com>
3086 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3088 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3090 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3092 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3093 * doc/rtl.texi: Document these macros more accurately.
3094 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3095 JUMP_INSNs and CALL_INSNs.
3096 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3097 or INSN_FROM_TARGET_P if the code is appropriate.
3099 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3101 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3102 before using SYMBOL_REF_FLAG (addr).
3104 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3105 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3106 Make non-static. Update all callers.
3107 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3108 New insns to clear/set/test a single bit in I/O address space.
3110 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3112 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3114 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3116 * Makefile.in: Update.
3117 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3118 builtin_define_std): New.
3119 (c_common_init): Register CPP builtins callback.
3120 * c-common.h (flag_iso, flag_undef): New.
3121 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3122 * c-lex.c: Don't include target.h.
3123 (cb_register_builtins): Move to c-common.c.
3124 (init_c_lex): Don't register hook here.
3125 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3126 (cpp_define, cpp_assert): Remove.
3127 * gcc.c (cc1_options): Pass -undef to front end.
3128 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3129 (TARGET_INITIALIZER): Update.
3130 * target.h (struct cpp_reader): Don't predeclare.
3131 (struct gcc_target): Remove cpp builtin hook.
3132 * tree.c (default_register_cpp_builtins): Remove.
3136 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3138 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3140 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3142 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3143 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3145 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3147 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3148 * config/sparc/libgcc-sparc-glibc.ver: New file.
3149 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3150 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3152 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3155 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3156 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3157 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3159 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3160 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3161 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3162 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3164 2002-05-09 Richard Henderson <rth@redhat.com>
3166 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3167 * config/ia64/ia64.c: Likewise.
3169 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3171 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3172 (save_restore_insns): Likewise.
3173 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3174 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3176 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3178 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3179 * i386.md: Move scheduling information into new files.
3181 * i386.md (type attribute): Add "rotate" for rotate insns.
3182 (rotate insns): Set type to "rotate".
3183 (various attributes and function units): Treat rotate like shift.
3184 (pent_pair attribute): Only rotates by one bit position are
3186 (sbb insns): Explicitly set pent_pair attribute on a couple
3187 that were missing it.
3189 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3191 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3192 make sure that buffer starts on odd word address.
3193 (sh_va_arg): Skip odd fp registers when reading a double precision
3196 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3198 * tree.h (preserve_data, object_permanent_p, type_precision):
3201 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3203 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3204 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3206 * cpp.texi: Update for removal of obsolete features.
3208 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3209 Jeffrey A Law (law@redhat.com)
3211 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3212 the DFA interface for Pentium processors.
3213 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3214 (attr_pent_pair, ix86_pent_find_pair): Remove.
3215 (ix86_sched_reorder_pentium): Remove.
3216 (ix86_sched_reorder): Remove reordering for Pentium.
3217 * i386.md (Pentium scheduling): Rewrite using DFA description.
3219 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3221 * cfganal.c (can_fallthru): Fix fast path.
3222 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3223 with edges to the next block.
3225 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3226 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3228 * final.c (end_final): Use C trees to output data structures for profiling.
3230 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3231 (profile.o): New dependency profile.h
3232 (final.o): New dependency profile.h
3233 * profile.h: New file. New global structure profile_info.
3234 * final.h (count_edges_instrumented_now): Declare.
3235 (current_function_cfg_checksum): Declare.
3236 (function_list): New structure.
3237 (functions_head, functions_tail): New static variables.
3238 (end_final): Emits more data, removed some -ax stuff.
3239 (final): Stores function names and chcksums.
3240 * gcov-io.h (__write_gcov_string): New function.
3241 (__read_gcov_string): New function.
3242 * gcov.c (read_profile): New function.
3243 (create_program_flow_graph): Uses read_profile instead of reading
3245 (read_files): Removed da_file checking, it's done by read_profile now.
3246 * libgcc2.c (bb_function_info): New structure.
3247 (bb): New field in structure, removed some -ax stuff.
3248 (__bb_exit_func): Changed structure of da_file.
3249 * profile.c (count_edges_instrumented_now): New global variable.
3250 (current_function_cfg_checksum): New global variable.
3251 (max_counter_in_program): New global variable.
3252 (get_exec_counts): New function.
3253 (compute_checksum): New function.
3254 (instrument_edges): Sets count_edges_instrumented_now.
3255 (compute_branch_probabilities): Uses get_exec_counts instead of
3257 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3258 (init_branch_prob): Removed da_file checking, done in get_exec_counts
3260 (end_branch_prob): Removed da_file checking, done in get_exec_counts
3262 * gcov.texi: Updated information about gcov file format.
3264 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3266 * sbitmap.c: Fix formatting.
3268 * scan-decls.c: Likewise.
3269 * sched-deps.c: Likewise.
3270 * sched-ebb.c: Likewise.
3271 * sched-rgn.c: Likewise.
3272 * sched-vis.c: Likewise.
3273 * sdbout.c: Likewise.
3274 * sibcall.c: Likewise.
3275 * simplify-rtx.c: Likewise.
3277 * ssa-ccp.c: Likewise.
3278 * ssa-dce.c: Likewise.
3280 * stor-layout.c: Likewise.
3281 * stringpool.c: Likewise.
3283 2002-05-09 David S. Miller <davem@redhat.com>
3285 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3287 2002-05-07 David S. Miller <davem@redhat.com>
3289 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3290 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3291 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3292 library implementation clobbers the output before the inputs
3293 are fully consumed, use stack temporary for the output.
3295 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
3297 * config/netbsd.h (CPP_SPEC): Remove.
3298 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3299 * config/i386/netbsd.h (CPP_SPEC): Define.
3300 * config/ns32k/netbsd.h (CPP_SPEC): Define.
3301 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3302 * config/sparc/netbsd.h (CPP_SPEC): Define.
3303 * config/vax/netbsd.h (CPP_SPEC): Define.
3305 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3307 * read-rtl.c: Fix formatting.
3309 * recog.c: Likewise.
3310 * regclass.c: Likewise.
3311 * regmove.c: Likewise.
3312 * reg-stack.c: Likewise.
3313 * reload1.c: Likewise.
3314 * reload.c: Likewise.
3315 * resource.c: Likewise.
3316 * rtlanal.c: Likewise.
3318 * rtl-error.c: Likewise.
3320 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3322 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3323 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3325 2002-05-08 Bernd Schmidt <bernds@redhat.com>
3327 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3328 use __SSE2__ macro instead.
3329 * config/i386/xmmintrin.h: Likewise.
3331 2002-05-08 Janis Johnson <janis187@us.ibm.com>
3333 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3334 and use it in all invocations of these macros. Clean up comments.
3335 * rtl.c (rtl_check_failed_flag): Add an argument for the name
3336 of the flag access macro whose check failed.
3337 * doc/rtl.texi (Flags): Document additional flag uses.
3339 2002-05-08 Robert Spier <rspier@pobox.com>
3340 Neil Booth <neil@daikokuya.demon.co.uk>
3342 PR preprocessor/6521
3343 * cppfiles.c (handle_missing_header): Don't do anything
3344 different for <> includes.
3346 * cppopts.texi: Update documentation for -MG.
3348 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
3350 * cpplex.c (cpp_interpret_charconst): Truncate as well as
3353 * cpp.texi: Clarify multichar charconst valuation.
3355 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3357 * doc/invoke.texi: Document -mwindiss option.
3359 2002-05-08 Jason Merrill <jason@redhat.com>
3361 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3363 * dwarf2out.c (gen_type_die): Abort on broken recursion.
3366 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3369 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
3371 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3372 little-endian multilibs to override arm/thumb multilibs.
3373 Do not build hardware floating point multilibs, nor apcs-26
3374 multilibs for the Thumb.
3376 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3379 * varasm.c (mark_weak): New function.
3380 (merge_weak): Use it. Do not call declare_weak.
3381 (declare_weak): Use merge_weak.
3383 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3385 * cse.c (dead_libcall_p): Update counts.
3386 (delete_trivially_dead_insns): Update call of dead_libcall_p.
3388 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3390 * cfglayout.c (function_tail_eff_head): Rename to ...
3391 (function_footer): ... this one.
3392 (unlink_insn_chain): New functions.
3393 (label_for_bb): Only call block_label and emit debug message.
3394 (record_effective_endpoints): Actually unlink the headers and footers.
3395 (fixup_reorder_cahin): Re-insert the unlinked sequences.
3396 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3397 * cfglayout.h (struct reorder_block_def): New fields footer/header;
3398 remove eff_head/eff_end.
3399 * rtl.h (set_first_insn): Declare.
3400 * emit-rtl.c (set_first_insn): New function.
3402 * cfglayout.c (fixup_reorder_chain): Dump duplicated
3403 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3404 cfg_layout_duplicate_bb): New global function.
3405 (duplicate_insn_chain): New static function.
3406 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3407 cfg_layout_duplicate_bb): Declare.
3408 (struct reorder_block_def): Add "original" field.
3409 * emit-rtl.c (emit_copy_of_insn_after): New function.
3410 * rtl.h (emit_copy_of_insn_after): Declare.
3412 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3413 (fixup_reorder_chain): properly handle edges to exit block.
3415 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3416 Jan Hubicka <jh@suse.cz>
3418 * basic-block.h (note_prediction_to_br_prob): declare.
3419 * c-semantics.c: Inlucde predit.h
3420 (expand_stmt): predict GOTO_STMT as not taken.
3421 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3422 (cleanup_cfg): Do not free tail_recursion_list.
3423 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3424 (flow_delete_block): Kill predictions past end of basic block.
3425 * output.h (delete_unreachable_blocks): Declare.
3426 * predict.c (predicted_by_p, process_note_predictions,
3427 process_note_prediction, last_block_p): New function.
3428 (estimate_probability): Bypass loop on PRED_CONTINUE;
3429 do not handle noreturn heuristics; kill PRED_RETURN; add
3431 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3432 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3433 * predict.h (IS_TAKEN): New constant.
3434 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3435 * rtl.c (NOTE_INSN_PREDICTION): New.
3436 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3438 (insn_note): add NOTE_INSN_PREDICTION.
3439 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3440 CFG; free tail_recursion_label_list.
3441 * stmt.c: Include predict.h;
3442 (return_prediction): New.
3443 (expand_value_return): Use it.
3444 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3446 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
3448 * config/mips/mips.md: Name the unspecs with define_constant.
3449 (*HILO_delay): Rename to 'hilo_delay' (no star).
3450 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3451 (reload_outdi, reload_outsi): Likewise.
3453 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3455 * toplev.c: Fix formatting.
3457 2002-05-07 Janis Johnson <janis187@us.ibm.com>
3459 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3460 * configure.in (ac_rtlflag_checking): New.
3461 * doc/install.texi (--enable-checking): Document RTL flag checking.
3463 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3465 * c-common.c (c_common_init): Set options->unsigned_wchar.
3466 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3467 group target dependencies.
3468 (init_builtins, cpp_handle_option): Update.
3469 * cpplex.c (cpp_interpret_charconst): Update.
3470 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3471 signed_char to unsigned_char, group target dependencies.
3472 * defaults.h (WCHAR_UNSIGNED): Remove.
3473 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3475 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3476 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3477 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3478 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3479 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3481 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3483 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3485 * fixinc/inclhack.def (windiss_math1): New fix.
3486 (windiss_math2): Likewise.
3487 (windiss_valist): Likewise.
3488 * fixinc/fixincl.x: Regenerated.
3490 2002-05-07 Andreas Jaeger <aj@suse.de>
3492 * genautomata.c (output_internal_min_issue_delay_func): Add
3493 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3494 (output_internal_trans_func): Likewise.
3496 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
3498 * pa.c (hppa_profile_hook): Use force_reg to get the address
3499 of the profile hook into an appropriate pseudo register.
3501 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3503 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3504 (LINK_START_SPEC): Handle it.
3505 (LINK_OS_SPEC): Likewise.
3506 (CPP_SPEC): Likewise.
3507 (STARTFILE_SPEC): Likewise.
3508 (LIB_SPEC): Likewise.
3509 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
3511 (CRTSAVRES_DEFAULT_SPEC): New macro.
3512 (LIB_WINDISS_SPEC): New macro.
3513 (CPP_OS_WINDISS_SPEC): Likewise.
3514 (STARTFILE_WINDISS_SPEC): Likewise.
3515 (ENDFILE_WINDISS_SPEC): Likewise.
3516 (LINK_START_WINDISS_SPEC): Likewise.
3517 (LINK_OS_WINDISS_SPEC): Likewise.
3518 * config/rs6000/windiss.h: New file.
3520 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
3522 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3524 2002-05-06 David S. Miller <davem@redhat.com>
3526 * config/sparc/sparc.md (shift insns): Do not mask off
3527 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3530 2002-05-06 Richard Henderson <rth@redhat.com>
3533 * expr.c (highest_pow2_factor_for_type): New.
3534 (expand_assignment): Use it.
3536 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
3538 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3540 ("altivec_mfvscr"): Same.
3542 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3544 * rtl.h (struct rtx_def): Update comments.
3545 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
3546 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
3547 RTL_FLAG_CHECK macros with list of expected RTL codes.
3548 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3549 (rtl_check_failed_flag): New.
3550 * reload1.c (reload): Use REG macro before changing rtx to MEM.
3551 (reload_cse_noop_set_p): Check rtx code before using access macro.
3552 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3553 before using access macro.
3555 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3557 * doc/rtl.texi (Flags): Update to reflect current usage.
3559 2002-05-06 Roger Sayle <roger@eyesopen.com>
3562 * fold-const.c (sign_bit_p): New function.
3563 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3564 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3565 Reapply fold when converting (A & C) == C into (A & C) != 0.
3566 (fold_binary_op_with_conditional_arg): Fix typo in comment.
3568 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3570 * c-common.c (warn_multichar): New.
3571 (c_common_init): Set CPP's warn_multichar.
3572 * c-common.h (warn_multichar): New.
3573 * c-decl.c (warn_multichar): Remove.
3574 * c-lex.c (lex_charconst): Update.
3575 * c-tree.h (warn_multichar): Remove.
3576 * cppexp.c (eval_token): Sign-extend charconst value.
3577 * cppinit.c (cpp_create_reader): Set warn_multichar.
3578 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3579 each character. Update prototype. Sign-extend the result.
3580 * cpplib.h: Fix conditions.
3581 (struct cpp_options): Add new warning flag.
3582 (cpp_interpret_charconst): Update prototype.
3584 * cpp.texi: Update documentation.
3586 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
3588 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3589 Fix typo in usage of allof instead of unit.
3591 2002-05-06 Richard Henderson <rth@redhat.com>
3593 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3594 and any jump or call for IN.
3596 2002-05-06 Bernd Schmidt <bernds@redhat.com>
3598 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3600 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3602 2002-05-06 Roger Sayle <roger@eyesopen.com>
3604 * fold-const.c (lshift-double): Cast the high word to an unsigned
3605 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3606 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3607 avoid compiler warning. (fold): Remove redundant code from
3608 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3610 2002-05-06 Jeff Law <law@redhat.com>
3612 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3613 * pa.c (pa_adjust_cost): Remove all true dependency cost
3614 adjustments. Also remove support for non-DFA scheduling.
3615 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3616 to adjust true dependency costs. Update various comments.
3617 (7100lc, 7200, 7300 scheduling): Simplify by combining the
3618 FP ALU & MPY units into a single unit.
3620 2002-05-06 Catherine Moore <clm@redhat.com>
3622 * config/v850/v850.c (compute_register_save_size): Make sure
3623 to count all of the registers that will be saved.
3625 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3627 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3629 2002-05-06 David S. Miller <davem@redhat.com>
3631 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3632 allow result to overlap input operands in memory.
3634 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3637 * cpp.texi: Update multichar charconst docs.
3639 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3641 * cpplex.c (cpp_interpret_charconst): Sign-extend each
3642 character. Don't ignore excess characters. Treat
3643 multicharacter character constants as signed.
3644 (cpp_parse_escape): Clarify diagnostic.
3646 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3648 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3649 use add instead of shift.
3650 (ashldi3_sp64): Likewise.
3651 (ashlsi3_const1, ashldi3_const1): Remove.
3652 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3653 * config/sparc/sparc.c (const1_operand): New.
3655 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3657 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3659 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3662 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3664 2002-05-05 Richard Henderson <rth@redhat.com>
3666 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3667 memory latency adjustments.
3668 (alpha_variable_issue): Remove.
3669 (alpha_use_dfa_pipeline_interface): New.
3670 (alpha_multipass_dfa_lookahead): New.
3671 * config/alpha/alpha.md: Remove define_function_unit scheduling;
3672 include new dfa scheduling.
3673 (attr type): Add none.
3675 * config/alpha/ev4.md: New.
3676 * config/alpha/ev5.md: New.
3677 * config/alpha/ev6.md: New.
3679 2002-05-05 David S. Miller <davem@redhat.com>
3681 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3683 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
3685 * cse.c: Fix formatting.
3686 * emit-rtl.c: Likewise.
3688 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3690 * genautomata.c (initiate_states): Add additional guard to
3691 initialize `units_array'.
3693 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3695 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
3696 process_unit_to_form_the_same_automaton_unit_lists,
3697 form_the_same_automaton_unit_lists
3698 check_unit_distributions_to_automata): New prototypes and
3700 (check_automata): Rename it into `check_automata_insn_issues'.
3701 (unit_decl): New fields `the_same_automaton_unit' and
3702 `the_same_automaton_message_reported_p'.
3703 (unit_decl_t): New typedef.
3704 (the_same_automaton_lists): New gloval variable.
3705 (unit_regexp, unit_set_el, units_array, units_cmp,
3706 output_get_cpu_unit_code_func): Use the typedef.
3707 (evaluate_max_reserv_cycles): Increment
3708 `description->max_insn_reserv_cycles'.
3709 (initiate_states): Don't increment `max_cycles_num'.
3710 (transform_insn_regexps): Move code around transformation of
3711 regexps from `generate'.
3712 (generate): Remove call of `transform_insn_regexps'.
3713 (expand_automata): Call `transform_insn_regexps' and
3714 `check_unit_distributions_to_automata'. Check errors before
3717 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
3718 automaton `ultrasparc3_1'.
3720 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
3722 * c-common.c (c_common_init): Set up CPP arithmetic.
3723 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
3724 something reasonable for the host.
3725 (sanity_checks): Add checks.
3726 (cpp_read_main_file): Call sanity_checks() from here...
3727 (cpp_post_options): ... not here.
3728 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
3729 * cpplib.h (struct cpp_options): New member int_precision.
3731 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3733 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
3735 2002-05-04 David S. Miller <davem@redhat.com>
3737 * config/sparc/linux.h, config/sparc/linux64.h
3738 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
3740 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
3742 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
3744 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
3747 2002-05-05 Tim Josling <tej@melbpc.org.au>
3749 * treelang; New directory for new sample language treelang.
3751 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3753 * Makefile.in (c-lex.o): Update.
3754 * c-lex.c: Include target.h.
3755 (cb_register_builtins): New.
3756 (init_c_lex): Set builtins callback.
3757 * c-lex.h (cpp_define, cpp_assert): New prototypes.
3758 * cppinit.c (init_builtins): Use callback, including for
3760 * cpplib.h (struct cpp_callbacks): New member.
3761 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
3762 (TARGET_INITIALIZER): Update.
3763 * target.h (struct gcc_target): New hook.
3764 * tree.c (default_register_cpp_builtins): New.
3765 * tree.h (default_register_cpp_builtins): New.
3767 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
3769 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3771 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
3772 (cpp_post_options): Move sanity checks to...
3773 (sanity_checks): New.
3774 * cpplex.c (maybe_read_ucs): Fix prototype.
3775 (parse_string, cpp_parse_escape): Cast for %c format specifier.
3776 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
3779 2002-05-04 Bernd Schmidt <bernds@redhat.com>
3781 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
3782 builtins. Use V2DI patterns instead of TI for logical operations.
3783 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
3784 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
3785 (ix86_expand_builtins): Change the pattern used for movntdq.
3786 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
3787 sse2_nandv2di3): New patterns.
3788 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
3790 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
3791 (cvtdq2pd): Correct mode on operand 1.
3792 (sse2_umulsidi3): Describe without unspec.
3793 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
3795 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
3796 (ashlv2di3): Likewise, from sse2_ashlv2di3.
3797 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
3798 ashlv4si3, ashlv2di3): Use SImode for shift count.
3799 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
3800 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
3802 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
3804 (__m128i, __m128d): New macros.
3805 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
3806 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
3807 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
3808 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
3809 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
3810 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
3811 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
3812 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
3813 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
3814 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
3815 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
3816 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
3817 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
3818 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
3819 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
3820 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
3821 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
3822 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
3823 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
3824 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
3825 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
3826 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
3827 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
3828 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
3829 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
3830 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
3831 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
3832 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
3833 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
3834 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
3835 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
3836 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
3837 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
3838 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
3839 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
3840 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
3841 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
3843 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
3844 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
3846 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3848 * dwarf2out.c: Fix formatting.
3849 * varasm.c: Likewise.
3851 2002-05-04 David Edelsohn <edelsohn@gnu.org>
3854 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
3855 clobber and use result as temporary value.
3857 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3859 * expr.c (force_operand): Use expand_simple_* to handle more
3862 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3864 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
3866 (lex_charconst): Update for change in prototype of
3867 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
3869 * cpphash.h (BITS_PER_CPPCHAR_T): New.
3870 * cppinit.c (cpp_create_reader): Initialize them for no
3871 change in semantics.
3872 (cpp_post_options): Add sanity checks.
3873 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
3874 and truncation issues. Calculate in type cppchar_t.
3875 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
3876 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
3877 run-time dependent precision correctly. Return whether the
3878 result is signed or not.
3879 * cpplib.c (dequote_string): Use cppchar_t; update.
3880 * cpplib.h (cppchar_signed_t): New.
3881 struct cpp_options): New precision members.
3882 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
3883 * cppexp.c (eval_token): Update.
3885 2002-05-03 David S. Miller <davem@redhat.com>
3887 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
3888 * config/sparc/sparc.c (sparc_rtx_costs): New function
3889 implementing RTX_COSTS and CONST_COSTS.
3890 * config/sparc/sparc.h (CONST_COSTS): Delete.
3891 (RTX_COSTS_CASES): Define.
3892 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
3895 * config/sparc/sparc.md (DFA schedulers): Split out...
3896 * config/sparc/cypress.md, config/sparc/hypersparc.md,
3897 config/sparc/sparclet.md, config/sparc/supersparc.md,
3898 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
3900 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
3901 checks on it, always defined for Sparc.
3903 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
3904 Tweak, and add more detailed comments.
3906 2002-05-03 Zack Weinberg <zack@codesourcery.com>
3908 * Re-apply patch accidentally reverted with
3909 DFA scheduler merge: remove all rules and variables to slurp
3910 source files out of libiberty and rebuild them with HOST_CC.
3911 ($(HOST_PREFIX_1)varray.o): New rule.
3912 (genattrtab rule): Word wrap.
3914 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3916 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
3917 (CPP_SUBTARGET_SPEC): Define.
3918 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
3919 cpp_subtarget specs.
3920 (CPP_SPEC): Redefine to include %(cpp_subtarget).
3922 2002-05-03 David S. Miller <davem@redhat.com>
3924 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
3925 * target.h (struct gcc_target): Delete cycle_display member.
3927 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
3928 (rtx_needs_barrier): Delete reference to cycle_display unspec.
3929 (ia64_sched_reorder2): Mention need for cycle display handling
3930 once such notes exist.
3932 2002-05-03 Richard Henderson <rth@redhat.com>
3934 * real.c (etoasc): Strip most trailing zeros for clarity.
3935 * sched-vis.c: Include real.h.
3936 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
3937 * Makefile.in (sched-vis.o): Add real.h.
3939 2002-05-03 David S. Miller <davem@redhat.com>
3941 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
3944 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
3946 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
3947 when we get an out of range literal.
3948 (altivec_expand_ternop_builtin): Same.
3949 (altivec_expand_unop_builtin): Same.
3950 (altivec_expand_builtin): Same, for dss.
3951 (altivec_expand_builtin): Use trees instead of rtl when
3952 determining literal argument validity.
3954 2002-05-03 David S. Miller <davem@redhat.com>
3956 Delete cycle display scheduling hook.
3957 * config/ia64/ia64.c (ia64_cycle_display,
3958 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
3959 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
3960 and use emit_insn_before instead of ia64_emit_insn_before.
3961 * config/ia64/ia64.md (unspec usage): Delete cycle display.
3962 (cycle_display): Delete insn pattern.
3963 * config/sparc/sparc.md (unspec usage): Delete cycle display.
3964 (cycle_display): Delete insn pattern.
3965 * config/sparc/sparc.c (sparc_cycle_display,
3966 TARGET_SCHED_CYCLE_DISPLAY): Delete.
3967 * doc/md.texi (cycle_display): Don't mention.
3968 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
3970 2002-05-03 Richard Henderson <rth@redhat.com>
3972 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
3973 * recog.h: Declare them.
3975 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
3976 * config/sparc/sparc.md: Use store_data_bypass_p instead.
3977 * config/sparc/sparc-protos.h: Update.
3979 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3981 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
3982 -D__arch64__. Add -D_LP64.
3983 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
3985 (CPP_ARCH64_SPEC): Likewise.
3986 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
3987 (NO_BUILTIN_SIZE_TYPE): Undef.
3989 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
3991 * genautomata.c (min_issue_delay_pass_states): Change return type
3993 (min_issue_delay_pass_states): Change the algorithm.
3994 (min_issue_delay): Set up min_insn_issue_delay for the state.
3995 (output_min_issue_delay_table): Interchange the nested loops and
3996 and initiate min_insn_issue_delay for states.
3998 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4000 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4003 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4005 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4008 2002-05-03 Richard Henderson <rth@redhat.com>
4011 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4012 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4013 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4014 code before JUMP, not EARLIEST.
4016 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4018 * c-format.c (check_format_info_main): Don't check for presence of
4019 parameter for * width until after operand number has been read,
4020 and only check for it if format parameters are available.
4023 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4025 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4026 (LINK_SPEC): Undef before defining.
4028 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4030 PR preprocessor/6489
4031 * tradcpp.c (fixup_newlines): New.
4032 (main, finclude): Use it.
4034 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4036 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4037 * config/mips/mips.c (mips_unique_section): Strip encoding from
4040 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4042 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4045 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4047 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4048 (Specific): Removed buildstats references.
4049 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4050 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4051 Accomodate Solaris versions beyond 8.
4052 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4053 (Specific, *-*-solaris2.8): Removed, obsolete.
4055 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4058 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4059 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4060 fill leaf_reg_remap with identity.
4061 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4063 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4065 * config/h8300/crti.asm: Remove trailing spaces.
4066 * config/h8300/h8300.c: Likewise.
4067 * config/h8300/lib1funcs.asm: Likewise.
4069 2002-05-02 Jason Merrill <jason@redhat.com>
4071 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4072 * c-decl.c (c_init_decl_processing): Use it.
4073 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4074 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4075 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4077 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4079 * regrename.c: Fix formatting.
4082 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4084 * i386.md (attribute memory): Handle compares properly.
4086 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4088 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4091 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4093 * function.c: Fix formatting.
4095 2002-05-02 Jan Hubicka <jh@suse.cz>
4097 * haifa-sched.c (schedule_insn): Print table of instructions and
4099 (sched_block): Do not print ready list at verbosity level 1.
4100 * sched-vis.c (print_insn): Make global.
4101 * sched-ebb.c (ebb_print_insn): Rename from...
4102 (print_insn): ... this one.
4103 * sched-int.h (print_insn): Declare
4105 2002-05-02 Richard Henderson <rth@redhat.com>
4107 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4108 emitted by cycle_display.
4110 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4112 * doc/install.texi (*-*-freebsd*): Update to latest status.
4114 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4117 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4118 * config/float-sparc.h: Assume 128-bit long double if
4119 __LONG_DOUBLE_128__ is defined.
4121 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4123 * genattrtab.c (write_function_unit_info): Add a dummy element
4124 when num_units == 0.
4126 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4128 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4129 TYPE_MODE (double_type_node) instead of DFmode.
4131 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4133 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4135 * toplev.c (rest_of_compilation): Revert Richard's patch.
4137 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4139 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4141 2002-05-02 Catherine Moore <clm@redhat.com>
4143 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4145 2002-05-02 Kazu Hirata <kazu@hxi.com>
4147 * combine.c: Fix comment typos.
4149 * genautomata.c: Likewise.
4153 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4155 * doc/install.texi: State GNAT version requirements.
4157 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4159 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4160 of the frame pointer or arg pointer register which strict register
4161 checking is not enabled.
4163 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4165 * gcc.dg/altivec-8.c: New.
4167 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4168 PRE_INC and PRE_DEC for altivec modes.
4170 2002-05-01 Bruce Korb <bkorb@gnu.org>
4172 * fixinc/check.tpl(set-writable): make sure the function exists first
4173 * fixinc/inclhack.def(alpha_assert): fix test_text
4174 * fixinc/tests/base/assert.h: add in missing result
4176 2002-05-01 Jeff Law <law@redhat.com>
4178 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4181 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4183 * dbxout.c (dbxout_type): Emit size information for range types,
4184 as well, but only when using GDB extensions.
4186 2002-05-01 Richard Henderson <rth@redhat.com>
4188 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4189 target-independent gnu binutils date test.
4191 2002-05-01 Richard Henderson <rth@redhat.com>
4193 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4194 info before expunging the block.
4196 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4198 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4199 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4200 -M -or -MM is in effect.
4202 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4204 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4205 A29k configurations.
4206 * doc/install.texi: Update to match.
4208 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4211 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4212 for duplicates. Always loop over whole list.
4214 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4216 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4218 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4220 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4223 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4225 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4227 2002-05-01 David Edelsohn <edelsohn@gnu.org>
4229 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4230 (nabs_nopower): Same.
4231 (floatdisf2): New pattern.
4232 (absdi2): Convert to define_insn_and_split.
4237 (fix_trunctfdi2): Same.
4238 (fix_trunctfsi2): Same.
4240 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
4242 * doc/install.texi: Update Texinfo version requirement
4245 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4247 PR target/6512, PR target/5628
4248 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4249 when memory is not aligned.
4250 (movdf_insn_v9only_vis): Likewise.
4251 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4252 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4253 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4255 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
4257 * gcc.dg/altivec-7.c: New.
4259 * config/rs6000/altivec.h: Cleanup.
4261 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
4263 * doc/invoke.texi (Option Summary): Add -mvrsave=.
4264 (RS/6000 and PowerPC Options): Document -mvrsave=.
4266 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4267 (rs6000_altivec_vrsave_string): Same.
4268 (rs6000_override_options): Call rs6000_parse_vrsave_option.
4269 (rs6000_parse_vrsave_option): New.
4270 (rs6000_stack_info): Only generate vrsave instructions when
4271 TARGET_ALTIVEC_VRSAVE.
4273 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4274 (rs6000_altivec_vrsave_string): Define extern.
4275 (rs6000_altivec_vrsave): Same.
4276 (TARGET_ALTIVEC_VRSAVE): New.
4278 2002-04-30 Richard Henderson <rth@redhat.com>
4281 * toplev.c (rest_of_compilation): Don't run cross-jump before
4284 2002-04-30 Tom Rix <trix@redhat.com>
4286 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4287 check which_alternative.
4289 2002-04-30 Kazu Hirata <kazu@hxi.com>
4291 * cpplex.c: Fix comment formatting.
4292 * function.c: Likewise.
4293 * integrate.c: Likewise.
4294 * regrename.c: Likewise.
4295 * sibcall.c: Likewise.
4296 * simplify-rtx.c: Likewise.
4297 * tree-inline.c: Likewise.
4299 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4301 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4302 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4303 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4304 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4305 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4306 * pa/x-ada: New file. Define ADA_CFLAGS.
4308 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
4310 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4311 from MMIX_LAST_REGISTER_FILE_REGNUM.
4312 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4313 (struct machine_function): New member highest_saved_stack_register
4314 previously static variable in mmix.c.
4315 (MACHINE_DEPENDENT_REORG): Define.
4316 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4317 (MMIX_OUTPUT_REGNO): New.
4318 (mmix_target_asm_function_prologue): Move calculation of last used
4319 saved-stack-register into...
4320 (mmix_machine_dependent_reorg): New function. Update to also handle
4322 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4323 register names, simplify somewhat by new variable regno.
4324 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
4326 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4327 emitting register names.
4328 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4329 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4331 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4334 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4336 2002-04-30 Richard Henderson <rth@redhat.com>
4338 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4339 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4340 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4341 emit_tfmode_cvt): New.
4342 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4343 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4344 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4345 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4346 * config/sparc/sparc-protos.h: Update.
4348 2002-04-30 Janis Johnson <janis187@us.ibm.com>
4350 * install.texi (Final install): Add to the list of info to include
4351 in a report of a successful bootstrap, and add link to 3.1 list.
4353 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
4355 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4356 (mode): Add vector modes
4357 (i387): Kill attribute.
4358 (unit): New attribute.
4359 (length_immediate): Grok new types.
4360 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4361 (modrm): Use "unit".
4362 (memory): Handle MMX/SSE properly.
4363 (scheduling descriptions): Kill uses of fop1.
4364 (sse, mmx, fp patterns): Set type and mode properly.
4366 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
4368 * pa.c (override_options): Default to PA8000 scheduling.
4369 * doc/invoke.texi (HP-PA options): Mention newly added 7300
4370 scheduling parameter.
4372 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4373 handling of double precision multiplies.
4375 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4376 fpdiv and fpsqrt instructions.
4377 (7200 & 7300 scheduling): Fix typo in handling of
4378 store-load and store-store penalties.
4380 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4382 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4383 mips. Add two missing commas.
4385 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
4387 * doc/contrib.texi (Contributors): Update Paolo Carlini's
4388 and Benjamin Kosnik's entries.
4390 2002-04-29 David S. Miller <davem@redhat.com>
4392 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4393 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4394 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4395 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4397 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4399 * combine.c (find_split_point): Use gen_int_mode.
4401 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
4403 Merging code from dfa-branch:
4405 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
4407 * genautomata.c (output_reserv_sets): Fix typo.
4409 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
4411 * genautomata.c (output_reserv_sets): Remove
4412 next_cycle_output_flag.
4414 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
4416 * sched-rgn.c (init_ready_list): Make the DFA code handle
4417 USE/CLOBBER insns in the same way as the traditional
4419 (new_ready): Similarly..
4421 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
4423 * haifa-sched.c (schedule_block): Change the DFA state only after
4426 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
4428 * pa.c (hppa_use_dfa_pipeline_interface): New function.
4429 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4430 (override_options): Add PA7300 scheduling support.
4431 (pa_adjust_cost): Update various comments. Properly
4432 handle anti and output dependencies when using the
4434 (pa_issue_rate): Add PA7300 scheduling support.
4435 (pa_can_combine_p): Call extract_insn before calling
4436 constrain_operands (taken from mainline tree).
4437 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4438 * pa.md (cpu attr): Add 7300. Rewrite pipeline
4439 descriptions using DFA descriptions. Add PA7300
4442 2002-03-30 David S. Miller <davem@redhat.com>
4444 Add UltraSPARC-III DFA scheduling support.
4445 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4446 Update FP conditional move on register insn patterns to use it, as
4448 (define_attr cpu): Add ultrasparc3.
4449 (define_attr us3load_type): New, update integer load patterns to
4450 set it, as appropriate.
4451 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4452 (rest): Add UltraSPARC3 scheduling description.
4453 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4454 (PROCESSOR_ULTRASPARC3): New.
4455 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4456 ({ASM,CPP}_CPU_SPEC): Likewise.
4457 (REGISTER_MOVE_COST): Likewise.
4458 (RTX_COSTS): Likewise.
4459 * config/sparc/sparc.c (sparc_override_options,
4460 sparc_initialize_trampoline, sparc64_initialize_trampoline,
4461 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4462 sparc_issue_rate): Likewise.
4463 * config/sparc/sol2.h: Likewise.
4464 * config/sparc/sol2-sld-64.h: Likewise.
4465 * config/sparc/linux64.h: Likewise.
4467 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
4469 * doc/md.texi: Add comments about usage the latency time for the
4470 different dependencies and about case when two or more conditions
4471 in different define_insn_reservations returns TRUE for an insn.
4473 * doc/md.texi: Add reference for automaton based pipeline
4476 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
4478 * doc/passes.texi: Add missed information about genattrtab.
4480 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
4482 * genautomata.c (output_automata_list_transition_code): Check
4483 automata_list on NULL.
4485 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
4487 * genautomata.c (output_insn_code_cases,
4488 output_automata_list_min_issue_delay_code,
4489 output_automata_list_transition_code,
4490 output_automata_list_state_alts_code): Comment the functions.
4492 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
4494 * genautomata.c (automata_list_el_t): New typedef.
4495 (get_free_automata_list_el,free_automata_list_el,
4496 free_automata_list, automata_list_hash, automata_list_eq_p,
4497 initiate_automata_lists, automata_list_start, automata_list_add,
4498 automata_list_finish, finish_automata_lists,
4499 output_insn_code_cases, output_automata_list_min_issue_delay_code,
4500 output_automata_list_transition_code,
4501 output_automata_list_state_alts_code, add_automaton_state,
4502 form_important_insn_automata_lists): New functions and prototypes.
4503 (insn_reserv_decl): Add members important_automata_list and
4505 (ainsn): Add members important_p.
4506 (automata_list_el): New structure.
4507 (first_free_automata_list_el, current_automata_list,
4508 automata_list_table): New global variables.
4509 (create_ainsns): Initiate member important_p.
4510 (output_internal_min_issue_delay_func): Generate the switch and
4511 call output_insn_code_cases.
4512 (output_internal_trans_func, output_internal_state_alts_func):
4514 (generate): Call initiate_automata_lists.
4515 (automaton_states): New global variable.
4516 (expand_automata): Call form_important_insn_automata_lists.
4517 (write_automata): Call finish_automata_lists.
4519 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
4521 * genautomata.c (add_excls, add_presence_absence): Check that
4522 cpu units in the sets belong the same automaton.
4524 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4525 about that cpu units in the sets belong the same automaton.
4527 * doc/md.texi: Ditto.
4529 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
4530 Nitin Gupta <niting@noida.hcltech.com>
4532 * config/sh/sh.c (sh_use_dfa_interface): New function.
4534 (sh_issue_rate): New Function.
4535 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4536 TARGET_SCHED_ISSUE_RATE: define.
4538 * config/sh/sh.md: Add DFA based pipeline description for SH4.
4540 (define_attr insn_class): New attribute used for DFA
4542 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4543 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4544 cmpeqdi_t): Likewise.
4546 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4547 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4549 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4551 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4553 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4556 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4558 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4559 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4561 (output_dfa_start_func): Initiate new variable insn_codes_length,
4562 (write_automata): Output definition of the new variable.
4564 2001-10-02 David S. Miller <davem@redhat.com>
4566 * haifa-sched.c (advance_one_cycle): New function.
4567 (schedule_block): Use it.
4568 (queue_to_ready): Use it, and also make sure to advance the DFA
4569 state on all stall cycles, not just those where insn_queue links
4572 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
4574 * haifa-sched.c (max_issue): Remove last_p argument. Only return
4575 non-zero if the highest-priority instruction could be scheduled.
4576 (choose_ready): Remove last argument from max_issue call.
4578 2001-09-28 David S. Miller <davem@redhat.com>
4580 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4581 ultrasparc and 3 for other multi-issue sparcs.
4583 2001-09-27 David S. Miller <davem@redhat.com>
4585 * config/sparc/sparc.md (cycle_display): New pattern.
4586 * config/sparc/sparc.c (sparc_cycle_display): New.
4587 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4589 2001-09-25 David S. Miller <davem@redhat.com>
4591 Convert all of Sparc scheduling to DFA
4592 * config/sparc/sparc.md: Kill all define_function_unit
4593 directives and replace with DFA equivalent.
4594 * config/sparc/sparc.c (ultrasparc_adjust_cost,
4595 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4596 ultra_fpmode_conflict_exists, ultra_find_type,
4597 ultra_build_types_avail, ultra_flush_pipeline,
4598 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4599 ultrasparc_variable_issue, ultrasparc_sched_init,
4600 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4601 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4602 ultra_cur_hist, ultra_cycles_elapsed): Kill.
4603 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4604 ultrasparc_store_bypass_p): New.
4605 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4608 2001-09-24 David S. Miller <davem@redhat.com>
4610 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4611 ready->vec[foo] not ready[foo].
4613 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4615 * doc/md.texi: Correct examples for define_insn_reservations
4618 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4620 * genautomata.c (create_automata): Print message about creation of
4622 (generate): Remove printing meease about creation of
4625 2001-09-05 David S. Miller <davem@redhat.com>
4627 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4628 * config/sparc/linux64.h: Likewise.
4630 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
4632 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4633 schedule_block, sched_init, sched_finish): Add missed calls of
4634 use_dfa_pipeline_interface.
4636 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4639 * sched-vis.c (get_visual_tbl_length): Ditto.
4641 2001-08-27 Richard Henderson <rth@redhat.com>
4643 * genattr.c (main): Emit state_t even when not doing scheduling.
4645 2001-08-27 Richard Henderson <rth@redhat.com>
4647 * genautomata.c (expand_automata): Always create a description.
4649 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4651 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4652 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4653 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4656 * genattr.c (main): New variable num_insn_reservations. Increase
4657 it if there is DEFINE_INSN_RESERVATION. Output automaton based
4658 pipeline hazard recognizer interface.
4660 * genattrtab.h: New file.
4662 * genattrtab.c: Include genattrtab.h.
4663 (attr_printf, check_attr_test, make_internal_attr,
4664 make_numeric_value): Move protypes into genattrtab.h. Define them
4666 (num_dfa_decls): New global variable.
4667 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4668 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4669 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4670 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
4672 * genautomata.c: New file.
4674 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4676 * sched-int.h: (curr_state): Add the external definition for
4677 automaton pipeline interface.
4678 (haifa_insn_data): Add comments for members blockage and units.
4680 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4681 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4682 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4683 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4684 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4685 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4686 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4688 (TARGET_SCHED): Use the new macros.
4690 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
4691 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
4692 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
4693 dfa_bubble): New members in gcc_target.sched.
4695 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
4696 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
4697 (insn_queue): Redefine it as pointer to array.
4698 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
4700 (max_insn_queue_index_macro_value): New variable.
4701 (curr_state, dfa_state_size, ready_try): New varaibles for
4702 automaton interface.
4703 (ready_element, ready_remove, max_issue): New function prototypes
4704 for automaton interface.
4705 (choose_ready): New function prototype.
4706 (insn_unit, blockage_range): Add comments.
4707 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
4708 FUNCTION_UNITS_SIZE == 0.
4709 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
4710 actual_hazard, potential_hazard): Add comments.
4711 (insn_cost): Use cost -1 as undefined value. Remove
4712 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
4714 (ready_element, ready_remove): New functions for automaton
4716 (schedule_insn): Add new code for automaton pipeline interface.
4717 (queue_to_ready): Add new code for automaton pipeline interface.
4718 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
4719 (debug_ready_list): Print newline when the queue is empty.
4720 (max_issue): New function for automaton pipeline interface.
4721 (choose_ready): New function.
4722 (schedule_block): Add new code for automaton pipeline interface.
4723 Print ready list before scheduling each insn.
4724 (sched_init): Add new code for automaton pipeline interface.
4725 Initiate insn cost by -1.
4726 (sched_finish): Free the current automaton state and finalize
4727 automaton pipeline interface.
4729 * sched-rgn.c: Include target.h.
4730 (init_ready_list, new_ready, debug_dependencies): Add new code for
4731 automaton pipeline interface.
4733 * sched-vis.c: Include target.h.
4734 (get_visual_tbl_length): Add code for automaton interface.
4735 (target_units, print_block_visualization): Add comments.
4737 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
4738 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
4739 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
4740 (getruntime.o, genautomata.o): New entries.
4741 (genattrtab.o): Add new dependency file genattrtab.h.
4742 (genattrtab): Add new dependencies. Link it with `libm.a'.
4743 (getruntime.o, hashtab.o): New entries for canadian cross.
4745 * doc/md.texi: Description of automaton based model.
4747 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
4749 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4750 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4751 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4752 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4753 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4754 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4755 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
4757 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
4758 MAX_DFA_ISSUE_RATE): New macro descriptions.
4760 * doc/contrib.texi: Add dfa based scheduler contribution.
4762 * doc/gcc.texi: Add more information about genattrtab.
4764 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4766 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
4767 adjust_address_nv call.
4769 2002-04-29 Janis Johnson <janis187@us.ibm.com>
4771 * doc/install.texi (Testing): Provide additional information, and
4772 a stronger encouragement, for running the testsuites.
4774 2002-04-29 DJ Delorie <dj@redhat.com>
4776 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
4777 given in upper case.
4779 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4781 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
4782 Solaris 2 <widec.h> if missing.
4783 * fixinc/fixincl.x: Regenerate.
4784 * fixinc/tests/base/widec.h: New file.
4786 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
4788 * toplev.c (f_options): Add "profile" switch so that
4789 -fno-profile can be used to disable -p.
4791 2002-04-29 Bernd Schmidt <bernds@redhat.com>
4793 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
4795 * tree.c (build_common_tree_nodes_2): Likewise.
4796 * tree.h (enum tree_index): Likewise.
4797 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
4799 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
4801 (init_mmx_sse_builtins): Initialize SSE2 builtins.
4802 (ix86_expand_builtin): Add support for SSE2 builtins.
4803 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
4804 (VALID_SSE_REG_MODE): Use it.
4805 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
4806 (enum ix86_builtins): Add SSE2 builtins.
4807 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
4808 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
4809 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
4810 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
4811 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
4812 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
4813 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
4814 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
4815 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
4816 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
4817 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
4818 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
4819 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
4820 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
4821 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
4822 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
4823 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
4824 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
4825 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
4826 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
4827 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
4828 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
4829 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
4830 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
4831 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
4832 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
4833 lfence_insn): New patterns.
4834 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
4835 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
4837 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
4839 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
4841 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4843 * doc/contrib.texi (Contributors): Add Paolo Carlini and
4845 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
4846 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
4847 and CPU instead of cpu.
4849 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
4851 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
4853 (lang_independent_options): Add -fif-conversion, -fif-conversion2
4854 (rest_of_compilation): Do if conversion only when asked for.
4855 (parse_options_and_default_flags): Set new variables to 1 for -O1
4856 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
4858 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
4860 * i386.c (dbx64_register_map): Fix typo.
4862 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
4864 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
4865 real_one_half, real_bb_freq_max): New static variables.
4866 (debug_profile_bbauxs): Kill.
4867 (process_note_predictions): Kill unused variable.
4868 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
4870 (propagate_freq): Use REAL_ARITHMETICS.
4871 (estimate_bb_frequencies): Likevise; init new static variables.
4872 * Makefile.in (predict.o): Add dependency on real.h
4874 2002-04-28 David S. Miller <davem@redhat.com>
4877 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
4878 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
4879 several {reads,writes} instead.
4880 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
4883 2002-04-27 David S. Miller <davem@redhat.com>
4886 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
4889 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
4890 including signal.h and sys/ucontext.h, not needed.
4892 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
4894 * varasm.c (output_constant_def): Correct test for not calling
4895 ENCODE_SECTION_INFO for INTEGER_CST.
4897 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
4899 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
4900 keep most cases as function eval_token.
4901 (eval_token): New function.
4902 (_cpp_parse_expr): Read token here for improved diagnostics.
4903 Don't use op_as_text. Detect bad ':' here.
4904 (reduce): Don't detect bad ':' here.
4905 (op_as_text): Remove.
4906 * cpphash.h (_cpp_test_assertion): Change prototype.
4907 * cpplib.c (_cpp_test_assertion): Change prototype.
4909 2002-04-28 Richard Henderson <rth@redhat.com>
4912 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
4913 (ggc_mark_rtx_children): New.
4915 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4918 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
4919 after call peepholes for UltraSPARC.
4920 (call + jump 64-bit peepholes): Remove.
4922 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4925 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
4926 result as temporary value.
4928 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4931 * toplev.c (rest_of_compilation): Only run regrename and copy
4932 propagation if optimizing.
4934 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4936 PR optimization/6475
4937 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
4938 register of REGNO_DECL (i).
4939 * Makefile.in (reload1.o): Add $(TREE_H).
4941 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
4943 * cppexp.c (lex): Update to use state.skip_eval.
4944 (struct op): Remove prio and flags members.
4945 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
4946 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
4947 (LEFT_ASSOC): New macro.
4948 (optab): New table of operator priorities and flags.
4950 (_cpp_parse_expr): Clean up logic. Return bool. Use a
4951 malloc-ed parser stack.
4952 (reduce): New; reduce the operator stack.
4953 (_cpp_expand_op_stack): Expand the operator stack as necessary.
4954 * cpphash.h (struct op): Predeclare.
4955 (struct cpp_reader): New members op_stack, op_limit.
4956 (struct lexer_state): New member skip_eval.
4957 (_cpp_parse_expr): Update.
4958 (_cpp_expand_op_stack): New.
4959 * cpplib.c (do_if): Update.
4960 * cppinit.c (cpp_create_reader): Create op stack.
4961 (cpp_destroy): And destroy it.
4962 * cpplib.h (CPP_LAST_CPP_OP): Correct.
4963 (TTYPE_TABLE): Correct.
4965 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4968 * c-decl.c (duplicate_decls): Call merge_weak.
4969 * c-pragma.c (apply_pragma_weak): Warn about misuse.
4970 * output.h (merge_weak): Prototype merge_weak.
4971 * varasm.c (merge_weak): New function.
4972 (declare_weak): Make sure we don't give an error on VAR_DECLs.
4973 Mark RTL with SYMBOL_REF_WEAK.
4975 2002-04-27 Kurt Garloff <garloff@suse.de>
4977 * tree-inline.c (inlinable_function_p): Improve heuristics
4978 by using a smoother function to cut down allowable inlinable size.
4979 * param.def: Add parameters max-inline-insns-single,
4980 max-inline-slope, min-inline-insns that determine the exact
4981 shape of the above function.
4982 * param.h: Likewise.
4984 2002-04-26 Richard Henderson <rth@redhat.com>
4986 * c-parse.in (malloced_yyss, malloced_yyvs): New.
4987 (yyoverflow): Re-add. Set them.
4988 (free_parser_stacks): New.
4989 * c-common.h: Declare it.
4990 * c-lex.c (c_common_parse_file): Call it.
4992 2002-04-26 Richard Henderson <rth@redhat.com>
4994 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
4995 for fallthru search.
4997 2002-04-26 Eric Christopher <echristo@redhat.com>
4999 PR optimization/3700
5000 * config/mips/mips.c (mips_issue_rate): Define. New function.
5001 (TARGET_SCHED_ISSUE_RATE): Use.
5003 2002-04-25 David S. Miller <davem@redhat.com>
5006 * reorg.c (optimize_skip): Do not allow exception causing
5007 instructions to be considered for delay slots.
5008 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5009 (relax_delay_slots): Do not try to consider exception causing
5010 instructions as redundant.
5012 2002-04-26 Richard Henderson <rth@redhat.com>
5015 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5017 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5020 * config/i386/i386.md (untyped_call): Return the value in a float
5021 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5024 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5026 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5027 in unsigned-ness correctly.
5029 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5031 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5032 portable runtime model.
5034 2002-04-26 Richard Henderson <rth@redhat.com>
5036 * c-parse.in (yyoverflow): Revert.
5038 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5039 Richard Henderson <rth@redhat.com>
5041 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5042 result as temporary value.
5044 2002-04-26 Richard Henderson <rth@redhat.com>
5047 * c-common.c (fix_string_type): Split out of ...
5048 (combine_strings): ... here. Take a varray, not a tree list.
5049 (c_expand_builtin_printf): Use fix_string_type.
5050 * c-common.h: Update decls.
5051 * c-parse.in (string): Remove. Update all uses to use STRING
5052 instead, and not call combine_strings.
5055 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5056 (build_asm_stmt): Likewise.
5057 * objc/objc-act.c (my_build_string): Use fix_string_type.
5058 (build_objc_string_object): Build varray for combine_strings.
5060 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5062 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5065 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5067 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5068 (HAVE_NO_R_OPERAND): Remove.
5069 (HAVE_VALUE): Remove.
5070 (op_to_prio): Update.
5071 (UNARY): Don't alter flags.
5072 (_cpp_parse_expr): want_value used to indicate whether
5073 a number or unary operator is expected next. Distinguish
5074 unary and binary +/-.
5075 (op_as_text): Update for unary operators.
5077 2002-04-25 Richard Henderson <rth@redhat.com>
5080 * c-parse.in (yyoverflow): New.
5082 2002-04-25 Richard Henderson <rth@redhat.com>
5085 * c-common.c (shorten_compare): Simplfy conditions leading to
5086 the generation of a warning.
5088 2002-04-25 Richard Henderson <rth@redhat.com>
5091 * expmed.c (extract_bit_field): Fall through to generic code rather
5092 than aborting on subreg special case.
5094 2002-04-25 David S. Miller <davem@redhat.com>
5096 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5097 for DECL being NULL.
5099 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5101 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5103 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5105 * c-decl.c (grokdeclarator): Remove outdated ??? note
5106 on invalid declaration of flexible array members.
5108 2002-04-25 Richard Henderson <rth@redhat.com>
5110 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5112 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5114 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5115 needed by the compiler, even if they are used as global regs.
5117 2002-04-25 Matt Hiller <hiller@redhat.com>
5119 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5121 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5122 of the corresponding functions.
5123 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5126 2002-04-25 Matt Hiller <hiller@redhat.com>
5128 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5130 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5131 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5132 registers, adjust comment accordingly.
5133 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5134 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5135 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5136 for coprocessor registers.
5137 (ADDITIONAL_REGISTER_NAMES): Include
5138 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5140 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5141 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5142 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5143 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5144 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5146 (mips_char_to_class): Adjust comment to include coprocessor
5149 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5151 (mips_reg_names, mips_regno_to_class): Include coprocessor
5153 (mips_sw_reg_names): Ditto, make non-static.
5154 (mips_move_1word): Handle moves to and from coprocessor registers.
5155 (mips_move_2words): Handle moves to and from coprocessor
5157 (mips_class_max_nregs, mips_register_move_cost): Handle
5158 coprocessor register classes.
5159 (override_options): Initialize mips_char_to_class and
5160 mips_hard_regno_mode_ok properly for coprocessor registers.
5162 * config/mips/mips.md (movdi_internal, movdi_internal2,
5163 movsi_internal1, movsi_internal2): Add constraint-sets for
5164 coprocessor registers.
5165 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5166 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5168 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5169 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5171 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5172 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5174 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5175 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5178 * doc/tm.texi: Document feature.
5180 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5182 * integrate.c (function_attribute_inlinable_p): Simplify.
5183 Check the table pointer is not NULL.
5185 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5187 * doc/c-tree.texi: Fix typo in introduction.
5189 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5191 * c-common.h (c_common_parse_file): Update.
5192 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5193 * c-lex.c (YYDEBUG): Get from c-lex.h.
5194 (c_common_parse_file): Update.
5195 * c-lex.h (YYDEBUG, yydebug): New.
5196 * c-parse.in (YYDEBUG): Get from c-lex.h.
5197 (c_set_yydebug): Remove.
5198 * c-tree.h (c_set_yydebug): Remove.
5199 * langhooks-def.h (lhd_do_nothing_i): New.
5200 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5201 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5202 * langhooks.c (lhd_do_nothing_i): New.
5203 (lhd_set_yydebug): Remove.
5204 * langhooks.h (struct lang_hooks): Update.
5205 * toplev.c (set_yydebug): New.
5206 (compile_file): Update call to parse_file hook.
5207 (decode_d_option): Update.
5209 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5211 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5213 * loop.c (load_mems): Don't change the interface of called functions.
5215 * calls.c (expand_call): Take current_function_pretend_args_size
5216 into account when setting argblock for sibcalls.
5218 2002-04-24 Matt Hiller <hiller@redhat.com>
5220 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5223 * cpplex.c (skip_line_comment): Process comment one multibyte
5224 character at a time rather than one char at a time, if
5226 (parse_string): Process string one multibyte character at a time
5227 rather than one char at a time, if appropriate.
5228 * c-lex.c (lex_string): Lex and copy multibyte strings
5230 * cpplib.h (cppchar_t): Change to unsigned.
5232 2002-04-24 Richard Henderson <rth@redhat.com>
5235 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5238 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
5240 * sh.c (sh_va_arg): If argument was passed by reference,
5241 dereference the pointer.
5243 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5245 * sh.md (divsi3_i4_media): Use match_operand for input values
5246 rather than hard registers.
5247 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5248 unnecessarily through hard registers. Keep copies of pseudo
5249 registers outside of the libcall sequence.
5251 * sh.md (casesi_shift_media): Add modes.
5253 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5256 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
5258 * attribs.c (c_common_attribute_table): Move table and handlers
5260 (format_attribute_table, lang_attribute_table,
5261 lang_attribute_common): Remove.
5262 (init_attributes): Replace NULL pointers with pointers to the
5264 (handle_packed_attribute, handle_nocommon_attribute,
5265 handle_common_attribute, handle_noreturn_attribute,
5266 handle_noinline_attribute, handle_always_inline_attribute,
5267 handle_used_attribute, handle_unused_attribute,
5268 handle_const_attribute, handle_transparent_union_attribute,
5269 handle_constructor_attribute, handle_destructor_attribute,
5270 handle_mode_attribute, handle_section_attribute,
5271 handle_aligned_attribute, handle_weak_attribute,
5272 handle_alias_attribute, handle_visibility_attribute,
5273 handle_no_instrument_function_attribute, handle_malloc_attribute,
5274 handle_no_limit_stack_attribute, handle_pure_attribute,
5275 handle_deprecated_attribute, handle_vector_size_attribute,
5276 vector_size_helper): Move to c-common.c.
5277 * c-common.c (c_common_attribute_table,
5278 handle_packed_attribute, handle_nocommon_attribute,
5279 handle_common_attribute, handle_noreturn_attribute,
5280 handle_noinline_attribute, handle_always_inline_attribute,
5281 handle_used_attribute, handle_unused_attribute,
5282 handle_const_attribute, handle_transparent_union_attribute,
5283 handle_constructor_attribute, handle_destructor_attribute,
5284 handle_mode_attribute, handle_section_attribute,
5285 handle_aligned_attribute, handle_weak_attribute,
5286 handle_alias_attribute, handle_visibility_attribute,
5287 handle_no_instrument_function_attribute, handle_malloc_attribute,
5288 handle_no_limit_stack_attribute, handle_pure_attribute,
5289 handle_deprecated_attribute, handle_vector_size_attribute,
5290 vector_size_helper): Move from attribs.c.
5291 * c-common.h (c_common_attribute_table,
5292 c_common_format_attribute_table): New.
5293 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5294 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5295 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5296 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5297 (LANG_HOOKS_INITIALIZER): Update.
5298 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5299 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5300 * target.h: Update comment.
5301 * tree.c (default_target_attribute_table): Remove.
5302 * tree.h (default_target_attribute_table, format_attribute_table,
5303 lang_attribute_table, lang_attribute_common): Remove.
5305 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5306 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5308 2002-04-24 Jason Merrill <jason@redhat.com>
5310 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5311 * dwarf2out.c (dwarf_attr_name): Support it.
5312 (gen_array_type_die): Emit it.
5313 (lookup_type_die): No special handling for VECTOR_TYPE.
5314 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5316 2002-04-24 Richard Henderson <rth@redhat.com>
5318 * config/mips/mips.md (movdi_usd): Renumber.
5320 2002-04-24 David S. Miller <davem@redhat.com>
5323 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5324 32-bit Sparc and current_function_returns_struct is true.
5326 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5328 * loop.c (canonicalize_condition): Use gen_int_mode.
5330 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
5332 * config/rs6000/altivec.h: Cleanup file. Add non individual
5354 (vec_vcmpequb): New.
5355 (vec_vcmpequh): New.
5356 (vec_vcmpequw): New.
5357 (vec_vcmpeqfp): New.
5358 (vec_vcmpgefp): New.
5359 (vec_vcmpgtub): New.
5360 (vec_vcmpgtsb): New.
5361 (vec_vcmpgtuh): New.
5362 (vec_vcmpgtsh): New.
5363 (vec_vcmpgtuw): New.
5364 (vec_vcmpgtsw): New.
5365 (vec_vcmpgtfp): New.
5366 (vec_vcmpgefp): New.
5371 (vec_vexptefp): New.
5376 (vec_lde): Add vector float variant.
5381 (vec_vmhaddshs): New.
5403 (vec_vmladduhm): New.
5404 (vec_vmhraddshs): New.
5406 (vec_vmsummbm): New.
5407 (vec_vmsumuhm): New.
5408 (vec_vmsumshm): New.
5409 (vec_vmsumuhs): New.
5410 (vec_vmsumshs): New.
5419 (vec_vnmsubfp): New.
5437 (vec_vrsqrtefp): New.
5448 (vec_vspltisb): New.
5449 (vec_vspltish): New.
5450 (vec_vspltisw): New.
5475 (vec_vsum4ubs): New.
5476 (vec_vsum4sbs): New.
5477 (vec_vsum4shs): New.
5478 (vec_vsum2sws): New.
5489 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
5492 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5493 added literals from substracted literals.
5494 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5495 (fold) [associate]: Preserve MINUS_EXPR if needed.
5497 2002-04-23 Zack Weinberg <zack@codesourcery.com>
5499 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5502 2002-04-23 Tom Tromey <tromey@redhat.com>
5504 * gcc.c: Added --resource. For PR java/6314.
5506 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5508 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5509 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5512 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5514 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5516 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5518 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5520 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5521 (ix86_expand_clrstr): Fix typo.
5522 * loop.c (gen_load_of_final_value): New.
5523 (loop_givs_rescan, strength_reduce, check_dbra_loop):
5526 2002-04-23 Roger Sayle <roger@eyesopen.com>
5528 * builtins.c (builtin_memset_gen_str): New function.
5529 (expand_builtin_memset): Optimize the case of constant length, but
5532 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
5534 * config/rs6000/altivec.h (vec_step): Remove extraneous
5536 (vec_ctu): Cast return.
5538 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5541 * function.h: (struct function): Add profile_label_no field.
5542 (current_function_profile_label_no): Define.
5543 * function.c: (profile_label_no): New static var.
5544 (expand_function_start): Increment it, and copy to
5545 current_function_profile_label_no.
5546 * output.h (profile_label_no): Delete.
5547 * final.c (profile_label_no): Delete.
5548 (profile_function): Use current_function_profile_label_no.
5549 (final_end_function): Don't increment profile_label_no here.
5550 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5551 profile_label_no with current_function_profile_label_no.
5552 * config/pa/pa.c (current_function_number): Delete.
5553 (pa_output_function_prologue): Don't output profile label here.
5554 (hppa_profile_hook): Use label_no param rather than
5555 current_function_number.
5556 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5557 * config/pa/pa.h: .. here.
5558 (FUNCTION_PROFILER): Output profile label here.
5560 2002-04-22 Eric Christopher <echristo@redhat.com>
5562 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5563 patch of 2002-04-09 due to binutils issues.
5564 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5566 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5568 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5569 constraint to 'o' for m=r and r=m alternatives.
5570 ("*movv8hi_internal1"): Same.
5571 ("*movv16qi_internal1"): Same.
5572 ("*movv4sf_internal1"): Same.
5574 2002-04-22 Janis Johnson <janis187@us.ibm.com>
5576 * rtl.h (RTX_FLAG): New macro.
5577 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5578 * final.c (alter_subreg): Use macro to access rtx flag.
5579 * integrate.c (copy_rtx_and_substitute): Use new access macro.
5580 * print-rtl.c (print_rtx): Use new access macro.
5582 * cse.c (insert): Check rtx code before accessing flag.
5584 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5585 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5586 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5587 convert_const_symbol_ref, make_canonical, make_alternative_compare,
5588 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5589 simplify_test_exp, optimize_attrs, simplify_by_exploding,
5590 find_and_mark_used_attributes, unmark_used_attributes,
5591 add_values_to_cover, simplify_with_current_value,
5592 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5593 copy_rtx_unchanging, main): Use new access macros.
5595 2002-04-22 Tom Rix <trix@redhat.com>
5597 * expmed.c (init_expmed): Generate shifted constant once.
5599 2002-04-22 Zack Weinberg <zack@codesourcery.com>
5601 * c-lex.c (lex_charconst): Call convert to get constant in
5602 proper type; don't just smash the type field.
5605 * config.gcc: Add list of obsolete configurations. Disallow
5606 building these without --enable-obsolete.
5607 * doc/install.texi: Document --enable-obsolete and obsoletion
5608 policy. Mention obsoletion of individual targets in
5611 2002-04-22 Richard Henderson <rth@redhat.com>
5613 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5615 2002-04-22 Mark Mitchell <mark@codesourcery.com>
5618 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5619 (walk_fixup_memory_subreg): Likewise.
5620 (fixup_var_refs_insn): Adjust accordingly.
5621 (fixup_var_refs_1): Likewise.
5623 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
5625 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5626 LIBPATH_ARCH64_SPEC): Define.
5627 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5628 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5629 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5630 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5632 2002-04-22 Joel Sherrill <joel@OARcorp.com>
5634 * gthr-rtems.h: Correct prototypes to remove warnings.
5636 2002-04-22 Richard Henderson <rth@redhat.com>
5639 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5641 * gcse.c (free_insn_expr_list_list): New.
5642 (clear_modify_mem_tables): Use it. Fix bit set usage.
5643 (canon_list_insert): Use EXPR_LISTs for expressions.
5644 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5646 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
5648 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
5649 file change and include code to _cpp_pop_buffer.
5650 * cpphash.h (struct pending_option): Predeclare.
5651 (struct cpp_reader): New member next_include_file.
5652 (_cpp_pop_file_buffer): Update.
5653 (_cpp_push_next_buffer): Update, rename.
5654 * cppinit.c (cpp_destroy): Free include chain and pending here.
5655 (cpp_finish_options): Simplify.
5656 (_cpp_push_next_buffer): Rename and clean up.
5657 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5659 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5661 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5663 * config/rs6000/altivec.h (vec_xor): Add variant for both args
5664 being vector signed int.
5666 (vec_xor): Add variant for both args being vector signed char.
5667 Remove redundant variant.
5670 2002-04-21 David S. Miller <davem@redhat.com>
5672 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5673 compare mode in output RTL.
5675 2002-04-22 David Edelsohn <edelsohn@gnu.org>
5677 * config/rs6000/rs6000.c (rs6000_override_options): Correct
5678 style and formatting of previous patch.
5680 2002-04-22 Alan Modra <amodra@bigpond.net.au>
5682 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5683 flag_pic for ABI_AIX.
5685 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5687 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5688 * cppfiles.c (read_include_file): Similarly.
5689 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5690 uxstrdup ustrchr, ufputs): Similarly.
5691 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
5692 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
5693 cpp_ideq, parse_identifier, parse_number): Similarly.
5694 * cpplib.c (struct directive, dequote_string, D, run_directive,
5695 cpp_push_buffer): Similarly.
5696 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
5697 _cpp_create_definition, check_trad_stringification,
5698 cpp_macro_definition): Similarly.
5700 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5702 * cppmacro.c (funlike_invocation_p): Don't step back
5705 2002-04-21 David Edelsohn <edelsohn@gnu.org>
5707 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
5710 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
5712 * doc/invoke.texi: Remove Chill references.
5713 * doc/gcc.texi: Update last modified date.
5715 2002-04-20 Kazu Hirata <kazu@hxi.com>
5717 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
5718 push and pop. Replace add.l with add.w.
5720 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5722 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
5723 multiply instructions for H8/300H case.
5725 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5727 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
5728 Bum three instructions from each routine.
5730 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
5732 * Makefile.in: Update.
5733 * decl.c (push_c_function_context, pop_c_function_context,
5734 mark_c_function_context): Rename for consistency.
5735 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
5736 * c-tree.h (push_c_function_context, pop_c_function_context,
5737 mark_c_function_context): Rename for consistency.
5738 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5739 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5740 * function.c (init_lang_status, save_lang_status,
5741 restore_lang_status, mark_lang_status, free_lang_status):
5742 Move to langhooks.h.
5743 (push_function_context_to, pop_function_context_from,
5744 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
5746 * function.h (init_lang_status, save_lang_status,
5747 restore_lang_status, mark_lang_status, free_lang_status):
5748 Move to langhooks.h.
5749 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
5750 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
5751 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
5752 LANG_HOOKS_FUNCTION_INITIALIZER): New.
5753 (LANG_HOOKS_INITIALIZER): Update.
5754 (lhd_do_nothing_f): New.
5755 * langhooks.h (struct lang_hooks_for_functions): New.
5756 (struct lang_hooks): New hooks.
5757 * langhooks.c (lhd_do_nothing_f): New.
5759 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5760 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5762 2002-04-19 David S. Miller <davem@redhat.com>
5764 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
5765 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
5767 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5769 PR optimization/3756
5770 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
5771 x = ((int) y < 0) ? cst1 : cst2.
5773 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5776 * function.c: Reapply patch for c/6358.
5777 (expand_function_end): Copy decl_rtl's mode, not
5778 current_function_return_rtx mode.
5780 2002-04-19 Joel Sherrill <joel@OARcorp.com>
5782 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
5785 2002-04-19 Tom Tromey <tromey@redhat.com>
5787 * doc/install.texi (Specific): Update status of Solaris 2.8.
5790 2002-04-19 Andreas Schwab <schwab@suse.de>
5792 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
5793 (PUT_REAL): Restore old definition.
5795 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5796 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5798 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
5799 binutils 2.11.2 and higher generate smaller binaries than Sun's
5802 2002-04-19 Mark Mitchell <mark@codesourcery.com>
5805 * toplev.c (rest_of_compilation): Do not defer functions for which
5806 TREE_SYMBOL_REFERENCED has already been set.
5808 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
5810 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
5813 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
5815 * builtins.c: Include langhooks.h.
5816 (lang_type_promotes_to): Remove.
5817 (expand_builtin_va_arg): Use new hook.
5818 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
5819 (simple_type_promotes_to): Move to c-typeck.c.
5820 * c-common.h (simple_type_promotes_to): Remove.
5821 * c-decl.c (duplicate_decls, grokdeclarator): Update.
5822 * c-format.c: Include langhooks.h.
5823 (check_format_types): Update.
5824 * c-tree.h (c_type_promotes_to): New.
5825 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
5826 (type_lists_compatible_p): Update.
5827 * langhooks-def.h (lhd_type_promotes_to): New.
5828 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
5829 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5830 * langhooks.c (lhd_type_promotes_to): New.
5831 * langhooks.h (struct lang_hooks_for_types): New hook.
5832 * tree.h (lang_type_promotes_to): Remove.
5834 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
5836 2002-04-18 Richard Henderson <rth@redhat.com>
5838 * function.c: Revert patch for c/6358.
5840 2002-04-18 Richard Henderson <rth@redhat.com>
5842 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
5843 blocks. Handle multiple references to the TRAP block. Handle
5844 non-adjacent THEN and OTHER blocks.
5846 2002-04-18 Richard Henderson <rth@redhat.com>
5848 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
5849 crash with no type for by-mode libcalls.
5851 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
5853 2002-04-18 Bob Wilson <bob.wilson@acm.org>
5855 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
5856 __xtensa_nonlocal_goto): Use a syscall instructions to flush
5857 the register windows.
5859 2002-04-18 Zack Weinberg <zack@codesourcery.com>
5861 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
5862 appropriate. Document need for extended precision even when
5863 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
5864 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
5865 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
5866 instead of relying on later syntax error when REAL_WIDTH > 5.
5867 * real.c: Define NE based only on whether or not we have a
5868 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
5869 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
5870 define GET_REAL and PUT_REAL as simple memcpy operations; no
5871 need to byteswap or round.
5872 Use #error instead of #ifdef-ing out the entire file, for
5873 prompt error detection.
5875 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
5877 2002-04-18 David S. Miller <davem@redhat.com>
5879 * config/sparc/sparc.h (BRANCH_COST): Define.
5881 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
5884 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
5886 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
5887 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
5888 propagate_block calls after relaxation loop using new variable
5889 stabilized_prop_flags.
5891 2002-04-18 Richard Henderson <rth@redhat.com>
5893 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
5894 (ia64_va_arg): Expect variable sized types by reference.
5895 * config/ia64/ia64-protos.h: Update.
5896 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
5897 ia64_function_arg_pass_by_reference.
5899 2002-04-18 Richard Henderson <rth@redhat.com>
5901 * ifcvt.c: Include except.h.
5902 (block_has_only_trap): Break out from find_cond_trap.
5903 (find_cond_trap): Use it. Always delete the trap block.
5904 (merge_if_block): Allow then block null. Be less simplistic about
5905 what insns can end a block.
5906 * Makefile.in (ifcvt.o): Depend on except.h.
5908 * config/ia64/ia64.md (trap, conditional_trap): New.
5910 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5913 * function.c (assign_parms): Assign hard current_function_return_rtx
5915 (expand_function_end): ...not here.
5917 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
5919 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5920 * c-tree.h (c_incomplete_type_error): New.
5921 * c-typeck.c (require_complete_type, build_component_ref): Update.
5922 (incomplete_type_error): Rename.
5923 * langhooks-def.h (lhd_incomplete_type_error): New.
5924 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
5925 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5926 * langhooks.c (lhd_incomplete_type_error): New.
5927 * langhooks.h (struct lang_hooks_for_types): New hook.
5928 * tree.c (size_in_bytes): Use new hook.
5929 * tree.h (incomplete_type_error): Remove.
5931 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5933 2002-04-18 Zack Weinberg <zack@codesourcery.com>
5935 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
5936 TARGET_FLOAT_FORMAT blocks.
5938 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5940 * doc/install.texi (Downloading the source): Do not mention Chill
5941 any longer, but mention Ada.
5942 (Configuration): Do not mention Chill any longer.
5944 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
5946 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
5948 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
5950 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
5953 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5955 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
5956 instead of unsigned_type.
5958 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
5960 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
5961 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
5964 2002-04-18 Bernd Schmidt <bernds@redhat.com>
5966 * attribs.c (vector_type_node_list): New static variable.
5967 (handle_vector_size_attribute): Use it to avoid generating a
5968 new type node each time we are called.
5970 * combine.c (subst): Avoid trying to make a vector mode subreg of
5971 an integer constant.
5972 (gen_lowpart_for_combine): Likewise.
5974 2002-04-18 Roger Sayle <roger@eyesopen.com>
5975 Jakub Jelinek <jakub@redhat.com>
5977 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
5978 for integer constant c (if x has unsigned type or sign bit is not
5979 set in c). This folds the zero/sign extension into the bit-wise and
5982 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5985 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
5988 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
5990 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
5992 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
5994 * gcc.c (read_specs): Detect and fail if an attempt is made to
5995 rename a spec string to an already existing string.
5997 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5999 * config/s390/s390.c (legitimize_pic_address): Do not generate
6000 illegal address constant without CONST.
6002 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6004 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6005 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6007 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6009 PR optimization/6305
6010 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6011 to make sure previous reloads are taken into account. Generate
6012 better code if one operand is an in-range immediate constant.
6014 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6016 * doc/install.texi (Building): libgcj requires GNU make.
6018 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6021 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6022 even if hard quad and register is not floating.
6023 (movtf reg<-mem split): Disallow splitting if hard quad and
6024 register is floating.
6025 (movtf mem<-reg split): Likewise.
6026 * config/sparc/sparc.c (fp_register_operand): New predicate.
6027 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6029 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6031 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6032 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6033 (unprotoize.o): Ditto. Build from protoize.c. Define
6034 UNPROTOIZE on command line.
6035 * protoize.c: Include cppdefault.h. Delete include_defaults.
6036 (in_system_include_dir): Use cpp_include_defaults (defined in
6038 * unprotoize.c: Delete file.
6040 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6042 * config/rs6000/altivec.h (vec_ld): Add array variants.
6046 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6047 Aldy Hernandez <aldyh@redhat.com>
6049 * config/rs6000/altivec.h: Define __ALTIVEC__.
6056 Add parentheses to all macro arguments.
6058 2002-04-16 Richard Henderson <rth@redhat.com>
6061 * except.c (remove_eh_handler): Insert inner regions at beginning
6062 of sibling chain. Refactor expressions.
6064 2002-04-16 Richard Henderson <rth@redhat.com>
6066 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6067 * config/sparc/sol2-gas-bi.h: New file.
6068 * config.gcc (sparc*-solaris): Add it as needed.
6069 * configure.in (AS_SPARC64_FLAG): Remove check.
6070 * config.in, configure: Regenerate.
6072 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6074 2002-04-16 Richard Henderson <rth@redhat.com>
6076 * config/mips/mips.c (override_options): Don't override N32 for
6080 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6081 (HILO_delay): Set can_delay false.
6083 2002-04-16 Dale Johannesen <dalej@apple.com>
6085 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6086 instruction addresses.
6087 (rs6000_output_function_epilogue): Likewise.
6089 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6091 * c-parse.in (poplevel, compstmt_start,
6092 compstmt_primary_start): Add ending ';', in accordance
6095 2002-04-16 Richard Henderson <rth@redhat.com>
6097 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6098 Adjust tm_file order to get TARGET_DEFAULT set properly.
6099 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6100 * doc/install.texi (sparc-solaris): Update.
6102 2002-04-16 Dale Johannesen <dalej@apple.com>
6104 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6105 comparison operands do not match each other or if modes of
6106 conditions do not match result.
6108 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6111 * config/s390/s390.md (mulsidi3): Set both subregs of the
6114 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6116 * config/rs6000/altivec.h (vec_addc): Type check.
6118 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6121 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6123 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6125 2002-04-15 Richard Henderson <rth@redhat.com>
6127 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6128 call_really_used_regs too.
6130 2002-04-15 Richard Henderson <rth@redhat.com>
6132 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6134 2002-04-15 David S. Miller <davem@redhat.com>
6136 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6139 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6142 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6143 CONST_VECTOR is { 0, ... 0 }.
6145 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6147 * doc/install.texi (Installing GCC: Configuration): Clarify
6148 the only supported ways to configure gcc.
6150 2002-04-15 Roland McGrath <roland@frob.com>
6152 * config.gcc (alpha*-*-gnu*): New target configuration.
6153 * config/alpha/gnu.h: New file for it.
6154 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6156 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6158 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6159 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6160 * tree.h (expand_start_stmt_expr): Update prototype.
6161 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6162 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6163 on the STMT_EXPR created for the inline function.
6165 2002-04-15 Richard Henderson <rth@redhat.com>
6167 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6168 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6169 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6170 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6171 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6172 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6173 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6174 Define __gnu_linux__, not gnu_linux.
6175 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6177 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6179 Remove Chill front end.
6180 * gcc.c (default_compilers): Remove Chill entries.
6181 * ch: Remove directory.
6182 * doc/frontends.texi: Remove information about Chill.
6183 * doc/sourcebuild.texi: Likewise.
6184 * doc/standards.texi: Likewise.
6186 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6188 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6189 (LONGLONG_STANDALONE): Define.
6191 2002-04-15 David S. Miller <davem@redhat.com>
6193 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6194 Call emit_library_call with LCT_NORMAL.
6195 (sparc_initialize_trampoline): Use LCT_foo instead of
6196 magic constant in emit_library_call invocations.
6197 (sparc64_initialize_trampoline): Likewise.
6198 (sparc_profile_hook): Likewise.
6199 * config/sparc/sparc.md: Likewise.
6201 * config/sparc/sparc.c (sparc_extra_constraint_check):
6202 Fix type of argument 'c'.
6203 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6206 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6208 * diagnostic.h (output_buffer_state): Redefine.
6209 (output_format_decoder): New macro.
6210 (output_prefixing_rule): Likewise.
6211 (output_line_cutoff): Likewise.
6212 (diagnostic_format_decoder): Adjust.
6213 (diagnostic_prefixing_rule): Likewise.
6214 (diagnostic_line_cutoff): Likewise.
6215 (diagnostic_state): Likewise.
6216 (diagnostic_kind_count): Likewise.
6217 (diagnostic_buffer): Now a macro.
6219 * diagnostic.c (diagnostic_buffer): Remove definition.
6220 (output_is_line_wrapping): Adjust.
6221 (set_real_maximum_length): Likewise.
6222 (output_set_maximum_length): Likewise.
6223 (init_output_buffer): Likewise.
6224 (lhd_print_error_function): Likewise.
6225 (output_do_verbatim): Likewise.
6227 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
6229 * cpperror.c (print_location): Don't print include chain
6231 (cpp_begin_message): Update to use DL_ macros.
6232 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6233 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6234 cpp_notice, cpp_notice_from_errno): Remove.
6235 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6238 * cppexp.c (CPP_ICE): Remove.
6239 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6240 lex, integer_overflow, _cpp_parse_expr): Update.
6241 * cppfiles.c (read_include_file, find_include_file,
6242 handle_missing_header, _cpp_read_file, remap_filename): Update.
6243 * cpphash.h (enum error_type): Remove.
6244 (_cpp_begin_message): Update.
6245 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6246 cpp_handle_option, cpp_post_options): Update.
6247 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6248 skip_whitespace, parse_identifier, parse_slow, parse_string,
6249 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6250 cpp_interpret_charconst): Update.
6251 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6252 lex_macro_node, do_undef, glue_header_name, parse_include,
6253 do_include_common, read_flag, do_line, do_linemarker, do_ident,
6254 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6255 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6256 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6257 _cpp_pop_buffer, do_diagnostic): Update.
6258 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6259 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6260 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6261 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6262 cpp_notice, cpp_notice_from_errno): Remove.
6263 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6266 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6267 collect_args, enter_macro_context, save_parameter, parse_params,
6268 _cpp_create_definition, check_trad_stringification,
6269 cpp_macro_definition): Update.
6270 * cppmain.c (cpp_preprocess_file): Update.
6271 * fix-header.c (read_scan_file): Update.
6273 2002-04-14 Andreas Schwab <schwab@suse.de>
6275 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6277 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6279 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6281 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6283 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6286 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
6288 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6290 2002-04-13 Joel Sherrill <joel@OARcorp.com>
6292 * config/sparc/t-elf: Enable v8 multilibs. Impacts
6293 sparc-elf and sparc-rtems targets.
6295 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6297 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6298 defined, and __gnu_hurd__ wherever __GNU__ is defined.
6299 * arm/linux-elf.h: Likewise.
6300 * cris/aout.h: Likewise.
6301 * cris/linux.h: Likewise.
6302 * i370/linux.h: Likewise.
6303 * i386/gnu.h: Likewise.
6304 * i386/linux-aout.h: Likewise.
6305 * i386/linux-oldld.h: Likewise.
6306 * i386/linux.h: Likewise.
6307 * i386/linux64.h: Likewise.
6308 * ia64/linux.h: Likewise.
6309 * m68k/linux-aout.h: Likewise.
6310 * m68k/linux.h: Likewise.
6311 * mips/linux.h: Likewise.
6312 * pa/pa-linux.h: Likewise.
6313 * pj/linux.h: Likewise.
6314 * rs6000/sysv4.h: Likewise.
6315 * s390/linux.h: Likewise.
6316 * sh/linux.h: Likewise.
6317 * sparc/linux-aout.h: Likewise.
6318 * sparc/linux.h: Likewise.
6319 * sparc/linux64.h: Likewise.
6320 * xtensa/linux.h: Likewise.
6322 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
6324 * stmt.c (check_unique_operand_names): Expect operand names to
6325 be strings rather than identifiers. Use simple_cst_equal to
6327 (resolve_operand_name_1): Make same identifier to string change here.
6328 * c-parse.in (asm_operand): Convert a named operand into a string.
6329 * cp/parse.y (asm_operand): Likewise.
6331 2002-04-13 Andreas Schwab <schwab@suse.de>
6333 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6335 2002-04-12 Mark Mitchell <mark@codesourcery.com>
6337 Revert these changes:
6339 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6342 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6344 2002-04-12 Richard Henderson <rth@redhat.com>
6346 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6347 (sparc*-*-solaris): Clean up header files.
6348 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6349 and plan on generating 64-bit code.
6350 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6351 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6352 * config/sparc/sol2-sld-64.h: Rename ...
6353 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
6354 for AS_SPARC64_FLAG not defined.
6355 * config/sparc/sol2-gld-bi.h: New.
6356 * config/sparc/sol2-sld.h: Remove.
6357 * config/sparc/sol26-sld.h: New.
6358 * config/sparc/sol2.h: Tidy comments.
6359 * doc/install.texi: Document sparc-solaris configury changes.
6361 2002-04-12 Richard Henderson <rth@redhat.com>
6363 * recog.c (offsettable_address_p): Match the logic in adjust_address.
6365 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6366 in 64-bit mode only. Use only for 32-bit or MEDLOW.
6368 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6370 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6372 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
6374 * pa.c (pa_can_combine_p): Call extract_insn before calling
6377 2002-04-12 Douglas B Rupp <rupp@gnat.com>
6379 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6380 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6381 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6382 (CPP_PREDEFINES): Handle __declspec.
6383 * config/i386/t-interix (USER_H): Remove.
6385 2002-04-12 DJ Delorie <dj@redhat.com>
6387 * integrate.c (compare_blocks): Make comparisons safe for when
6388 sizeof(int) < sizeof(char *).
6389 (find_block): Likewise.
6391 2002-04-12 Jan Hubicka <jh@suse.cz>
6392 David Edelsohn <edelsohn@gnu.org>
6394 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6396 (symbol_ref_operand): New.
6397 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6398 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6400 2002-04-12 Andreas Schwab <schwab@suse.de>
6402 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6403 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6404 overrides the definition in config/svr4.h.
6406 2002-04-12 Eric Norum <eric.norum@usask.ca>
6408 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6409 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6410 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6411 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6412 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6413 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6414 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6415 definitions to config/rtems.h and make the targets more similar.
6417 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6419 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6420 POINTERS_EXTEND_UNSIGNED.
6421 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6422 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6424 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6427 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
6429 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6430 depends on TARGET_SHMEDIA, not TARGET_SH5.
6432 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
6434 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6435 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6437 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6439 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6442 2002-04-12 Andreas Schwab <schwab@suse.de>
6444 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6446 2002-04-12 Richard Henderson <rth@redhat.com>
6449 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6451 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6452 modes spanning multiple hard regs.
6454 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6456 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6458 * pa.c (pa_output_function_prologue): Don't accumulate the total
6459 number of code bytes when using TARGET_64BIT, or gas, SOM and not
6460 the portable runtime.
6461 (output_deferred_plabels): Handle 64bit plabels.
6462 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6463 generating pic code using the GAS assembler for object formats that
6464 are not SOM (ie., ELF32 and ELF64).
6465 (output_millicode_call): Check attribute type if attribute length is 28.
6466 Likewise use $PIC_pcrel$0. Only call get_attr_length and
6467 dbr_sequence_length once.
6468 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6469 dbr_sequence_length once.
6470 * pa.h (TARGET_SOM): Define if not defined.
6471 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6472 with GAS and not SOM.
6473 (jump, call_internal_reg, call_value_internal_reg): Likewise.
6474 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
6476 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6478 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6479 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6480 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6481 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6482 elfos.h and dbxelf.h values are fine now.
6483 * config/i386/freebsd.h, config/alpha/freebsd.h
6484 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6486 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6488 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6489 or set Acpu or Amachine. Reformat.
6490 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6492 (LINK_SPEC): Do not need to undef.
6493 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6494 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6495 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6497 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6498 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6499 (LINK_SPEC): Do not need to undef.
6500 (DONT_USE_BUILTIN_SETJMP): Do not define.
6501 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6502 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
6503 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6504 Remove trailing spaces.
6505 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6506 __ELF__, or set Acpu or Amachine. Reformat.
6507 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6510 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6512 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6513 all other *-*-freebsd* targets.
6515 2002-04-11 Richard Henderson <rth@redhat.com>
6517 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6519 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6521 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6522 Include {cpu}/{cpu}.h thru tm_file.
6523 (alpha*-*-linux*ecoff): Remove target.
6524 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6525 (LINK_SPEC): Remove, is not OS independent.
6526 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6527 (LINK_SPEC): Do not need to #undef any longer.
6528 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6530 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6532 (LINK_SPEC): Moved here from alpha/elf.h.
6533 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6535 * config/alpha/linux-ecoff.h: Remove.
6536 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6537 (CPP_SPEC): Define _POSIX_SOURCE as needed.
6538 (CPP_SUBTARGET_SPEC): Do not define.
6539 (LINK_SPEC): Do not need to #undef any longer.
6540 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6541 * config/alpha/vms.h: Likewise.
6543 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6545 * doc/extend.texi: Remove old claim that typedefs cannot have
6546 an alignment attribute.
6548 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6550 PR optimization/6177
6551 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6552 bitpos is 0 and bitsize CONCAT size.
6554 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6557 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6559 2002-04-10 David O'Brien <obrien@FreeBSD.org>
6561 * config/alpha/freebsd.h: Minor reformatting.
6562 (CPP_SPEC): Define ELF and add cpp_subtarget.
6563 (ASM_SPEC): No longer needed.
6565 2002-04-11 Richard Henderson <rth@redhat.com>
6567 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6568 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
6569 (dimode mem/zero splitter): New.
6571 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
6573 * config/cris/cris.c (cris_override_options): Tweak error message
6574 for PIC not implemented.
6576 * config/cris/cris.h: Tweak comments related to parameter-passing.
6578 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6580 2002-04-10 Richard Henderson <rth@redhat.com>
6582 * except.c (add_ehl_entry): Allow duplicates after landing pad
6585 2002-04-10 David Edelsohn <edelsohn@gnu.org>
6587 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6589 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
6591 * c-decl.c (c_init_decl_processing): Move generation of
6592 decls for g77_integer_type_node and friends from here ...
6593 * c-common.c (c_common_nodes_and_builtins): ... to here.
6595 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
6597 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6598 is only used as frame pointer when frame_pointer_needed is true.
6600 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
6603 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6604 for the fact that the pool entry uses two words.
6605 (movdf_hard_insn): Similarly. Also, ADR instruction can span
6607 (movdf_soft_insn): Similarly.
6608 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6609 for the fact that the pool entry uses three words.
6611 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
6613 * config/mips/mips.c (mips_va_arg): When using the struct version
6614 of the EABI va_list, allow arguments in the register save area to
6615 take up less room than a stack argument.
6617 2002-04-10 Richard Henderson <rth@redhat.com>
6619 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6620 if EXPAND_INITIALIZER.
6622 2002-04-09 Richard Henderson <rth@redhat.com>
6624 * config/alpha/alpha.md (movdi_er_maybe_g): New.
6625 * config/alpha/alpha.c (alpha_expand_mov): Use it.
6627 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6629 PR optimization/6233
6630 * rtlanal.c (pure_call_p): New function.
6631 * rtl.h (pure_call_p): Declare.
6632 * loop.c (prescan_loop): Use it to set has_nonconst_call.
6633 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6635 2002-04-09 Eric Christopher <echristo@redhat.com>
6637 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6638 information to .comm directive.
6640 2002-04-09 Richard Henderson <rth@redhat.com>
6643 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6645 2002-04-09 Richard Henderson <rth@redhat.com>
6647 * basic-block.h (flow_delete_block_noexpunge): Declare.
6648 (expunge_block_nocompact): Declare.
6649 * cfg.c (expunge_block_nocompact): Split out from ...
6650 (expunge_block): ... here.
6651 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6652 (flow_delete_block_noexpunge): Split out from ...
6653 (flow_delete_block): ... here.
6654 * cfgcleanup.c (delete_unreachable_blocks): Compact while
6655 removing dead blocks.
6656 * except.c (exception_handler_labels): Remove.
6657 (exception_handler_label_map): New.
6658 (struct eh_region): Add aka member.
6659 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6660 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6661 (for_each_eh_label, for_each_eh_label_1): New.
6662 (init_eh): Register exception_handler_label_map.
6663 (free_eh_status): Use free_region.
6664 (find_exception_handler_labels): Use the map, not the list.
6665 (remove_exception_handler_label): Likewise.
6666 (maybe_remove_eh_handler): Likewise.
6667 (remove_eh_handler): Use the region aka bitmap.
6668 * except.h (exception_handler_labels): Remove.
6669 (for_each_eh_label): Declare.
6670 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6671 * loop.c (invalidate_loops_containing_label): New.
6672 (find_and_verify_loops): Use it. Use for_each_eh_label.
6673 * sched-rgn.c (is_cfg_nonregular): Use
6674 current_function_has_exception_handlers.
6676 2002-04-09 Richard Henderson <rth@redhat.com>
6678 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6679 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6680 Do not return changed status.
6681 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6682 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6683 New functions that do return changed status.
6684 * sbitmap.h: Update decls.
6685 * gcse.c, lcm.c: Use _cg functions as needed.
6687 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6689 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6690 (sh64-*-elf*, sh-*-rtemself*): Likewise.
6691 * config/sh/embed_bb.c: New file.
6692 * config/sh/embed-elf.h: New file.
6693 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
6694 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
6695 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6697 (SUBTARGET_CPP_PTR_SPEC): Don't define.
6698 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
6699 Add subtarget_asm_endian_spec.
6700 (ASM_SPEC): Use subtarget_asm_endian_spec.
6701 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
6702 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
6703 (WCHAR_UNSIGNED): Define.
6704 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
6705 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6706 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
6708 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
6709 (sh_adjust_cost): Likewise.
6710 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6712 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
6713 (WCHAR_TYPE_SIZE): Likewise.
6714 (ASM_SPEC): Use subtarget_asm_endian_spec.
6715 (SH_ELF_WCHAR_TYPE): #undef/ #define.
6716 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
6717 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
6718 (MAX_WCHAR_TYPE_SIZE): Don't #define .
6719 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
6720 (USER_LABEL_PREFIX): Don't #undef /#define .
6721 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6722 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
6723 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
6724 (ASM_SPEC): Likewise.
6725 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
6726 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
6727 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
6728 (LIB2FUNCS_EXTRA): Define.
6729 * t-sh64 (LIB2FUNCS_EXTRA): Define.
6730 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
6731 (LIB1ASMFUNCS_CACHE): Define.
6732 (LIB2FUNCS_EXTRA): Redefine empty.
6734 2002-04-08 Richard Henderson <rth@redhat.com>
6736 * reorg.c (get_branch_condition): Use reversed_comparison_code.
6738 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6740 * config/m68hc11/larith.asm (__map_data_section): Fix condition
6741 and optimize for size.
6742 (__do_global_ctors): Fix pointer comparison.
6743 (__do_global_dtors): Likewise.
6745 2002-04-09 David S. Miller <davem@redhat.com>
6747 * config/sparc/sparc.c (sparc_extra_constraint_check): New
6748 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
6749 allow reloading pseudos.
6750 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
6751 * config/sparc/sparc-protos.h: Declare it.
6753 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
6754 unsigned comparison warning.
6755 (output_restore_regs): Mark leaf_function as unused.
6757 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6759 * expr.c (is_aligning_offset): New function.
6760 (expand_expr, case COMPONENT_EXPR): Call it.
6762 2002-04-08 David S. Miller <davem@redhat.com>
6765 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
6767 Make init_priority work on Sparc when using GNU ld.
6768 * config/sparc/linux.h, config/sparc/linux64.h,
6769 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
6770 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
6771 * config/sparc/sol2-gld.h: New file to do the same.
6772 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
6773 sparc/sol2-gld.h to tm_file.
6775 PR optimization/4328
6776 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
6777 * doc/md.texi: Document it.
6778 * config/sparc/sparc.md (movdi_insn_sp64_novis,
6779 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
6780 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
6781 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
6782 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
6784 2002-04-08 Andreas Jaeger <aj@suse.de>
6786 * stmt.c (expand_asm_operands): Revert last patch from Richard
6789 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6791 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
6792 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
6794 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6796 * doc/contrib.texi (Contributors): Add David O'Brien.
6798 2002-04-08 Alan Modra <amodra@bigpond.net.au>
6800 * configure.in (auto-build.h): Use target_alias and build_alias
6801 when running configure.
6802 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
6803 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
6804 * configure: Regenerate.
6806 2002-04-07 David S. Miller <davem@redhat.com>
6808 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
6810 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
6813 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
6814 generating 32-bit pic code.
6816 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
6818 * cppinit.c (cpp_create_reader): Initialize
6819 discard_comments_in_macro_exp.
6820 (COMMAND_LINE_OPTIONS): Add "-CC" option.
6821 (cpp_handle_option): Handle "-CC" option.
6822 * cpplex.c (save_comment): If saving a C++ comment in
6823 a directive, convert it to a C comment.
6824 (_cpp_lex_direct): Pass second comment start character to
6825 save_comment to indicate comment type.
6826 * cpplib.c (_cpp_handle_directive): If processing
6827 a "#define" directive and discard_comments_in_macro_exp
6828 is false, re-enable saving of comments.
6829 (lex_macro_node): If discard_comments_in_macro_exp is false,
6830 discard any comments before the macro identifier.
6831 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
6833 * cppmacro.c (cpp_get_token): If expanding a macro while
6834 processing a directive, discard any comments we might encounter.
6835 (parse_params): If discard_comments_in_macro_exp is false,
6836 ignore comments in the macro parameter list.
6837 * gcc.c (cpp_unique_options): Add "-CC" option.
6838 (option_map): Map "--comments-in-macros" to "-CC".
6839 * doc/cppopts.texi: Document "-CC" option.
6840 * f/lang-specs.h: Add "-CC" option.
6841 * testsuite/gcc.dg/cpp/maccom1.c: New test.
6842 * testsuite/gcc.dg/cpp/maccom2.c: New test.
6843 * testsuite/gcc.dg/cpp/maccom3.c: New test.
6844 * testsuite/gcc.dg/cpp/maccom4.c: New test.
6845 * testsuite/gcc.dg/cpp/maccom5.c: New test.
6846 * testsuite/gcc.dg/cpp/maccom6.c: New test.
6848 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
6851 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
6853 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6856 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6859 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
6860 RTX_UNCHANGING_P for the functions arguments when a tail call
6863 2002-04-06 Jason Merrill <jason@redhat.com>
6865 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
6866 (parse_options_and_default_flags): Set them appropriately.
6867 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
6869 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
6871 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
6874 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
6877 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
6878 types come in by-reference. Fix typo in comment.
6880 2002-04-05 David S. Miller <davem@redhat.com>
6882 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
6883 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
6884 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
6885 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
6887 2002-04-05 David S. Miller <davem@redhat.com>
6889 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
6890 are not going to emit return instructions, emit at least a nop
6891 for the sake of sane backtraces.
6893 2002-04-05 Richard Henderson <rth@redhat.com>
6895 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
6897 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
6899 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
6901 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
6903 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
6904 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
6905 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
6907 2002-04-05 Andreas Schwab <schwab@suse.de>
6909 * c-convert.c: Include c-common.h.
6910 * Makefile.in (c-convert.o): Updated.
6912 2002-04-05 Jakub Jelinek <jakub@redhat.com>
6914 * mklibgcc.in: Use separate libgcc.map for each multilib.
6915 * Makefile.in (distclean): Don't remove libgcc.map here.
6917 2002-04-05 Jakub Jelinek <jakub@redhat.com>
6919 * Makefile.in (s-mlib): Handle --disable-multilib by separate
6920 genmultilib invocation.
6922 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
6924 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
6925 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
6926 to num_gprs for symmetry.
6927 * config/mips/mips.c: Adjust accordingly.
6929 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
6931 * c-common.c (truthvalue_conversion): Rename, update.
6932 * c-common.h (c_common_truthvalue_conversion): New.
6933 * c-convert.c (convert): Update.
6934 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6935 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
6936 * c-typeck.c (build_binary_op, build_unary_op,
6937 build_conditional_expr): Update.
6938 * fold-const.c (constant_boolean_node, fold): Use langhook.
6939 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
6940 * langhooks.h (struct lang_hooks): New hook.
6941 * stmt.c (expand_decl_cleanup): Use langhook.
6942 * tree.h (truthvalue_conversion): Remove.
6944 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6946 2002-04-05 Alan Modra <amodra@bigpond.net.au>
6948 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
6949 Add rules to make null object file.
6951 2002-04-04 Jim Blandy <jimb@redhat.com>
6953 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
6954 macro formal parameter names.
6956 2002-04-04 David S. Miller <davem@redhat.com>
6958 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
6960 2002-04-04 Richard Henderson <rth@redhat.com>
6963 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
6964 Support copies into and out of memory. Don't accept allows_reg
6965 and allows_mem as gospel.
6967 2002-04-04 Richard Henderson <rth@redhat.com>
6970 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
6971 (write_dependence_p): Likewise.
6973 2002-04-04 Richard Henderson <rth@redhat.com>
6975 * predict.c (estimate_bb_frequencies): Do frequency calculation
6976 with a volatile temporary.
6978 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
6980 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
6982 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6985 * final.c (final_start_function): Don't bump profile_label_no here...
6986 (final_end_function): ...but here.
6988 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6990 * config/sparc/sparc.md (pic): New attribute.
6991 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
6993 (split after do_builtin_setjmp_setup): New.
6995 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6998 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7001 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7003 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7004 UNITS_PER_WORD for zero sized aggregates.
7006 2002-04-03 David S. Miller <davem@redhat.com>
7008 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7009 one-character spec for this, just use %(link_gcc_c_sequence).
7011 2002-04-03 David S. Miller <davem@redhat.com>
7013 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7016 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7018 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7019 (DWARF_FRAME_RETURN_COLUMN): Move.
7020 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7021 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7022 * pa.c (except.h, predict.h): Include.
7024 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7025 (output_ascii): Add cast.
7026 (store_reg_modify): Revise to add frame notes.
7027 (set_reg_plus_d): Likewise.
7028 (compute_frame_size): Include space for eh data registers in frame if
7029 the current function calls eh_return.
7030 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7031 function calls eh_return. Save eh data registers if the current
7032 function calls eh_return. Fix code to add frame notes. Emit
7033 blockage to prevent insns with frame notes being scheduled in the
7034 delay slot of calls.
7035 (hppa_expand_epilogue): Restore eh data registers and do final stack
7036 adjustment if the current function calls eh_return. Don't add frame
7038 (output_call): Revise for change in length of call insn. Don't do
7039 return pointer adjustment for an unconditional jump in the delay slot
7040 of a call when using frame notes.
7041 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7042 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7043 (ARG_POINTER_CFA_OFFSET): Define.
7044 * pa.md (return_external_pic): New pattern.
7045 (prologue): Correct formatting. Use return_external_pic if current
7046 function calls eh_return.
7047 (call_internal_symref, call_value_internal_symref,
7048 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7049 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7051 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7053 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7054 list of targets to check using "nop" insn.
7055 * configure: Rebuilt.
7057 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7059 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7061 2002-04-03 David S. Miller <davem@redhat.com>
7063 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7064 library sequence passed to the linker.
7065 (LINK_COMMAND_SPEC): Use it.
7066 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7067 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7068 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7070 2002-04-03 Jason Merrill <jason@redhat.com>
7072 * except.c (struct eh_status): Remove protect_list.
7073 (begin_protect_partials, end_protect_partials): Remove.
7074 (add_partial_entry): Remove.
7075 * except.h: Remove prototypes.
7077 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7078 expand_decl_cleanup_eh.
7081 * tree.h (CLEANUP_EH_ONLY): New macro.
7082 * stmt.c (expand_decl_cleanup_eh): New fn.
7083 (expand_cleanups): Check CLEANUP_EH_ONLY.
7084 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7085 Use expand_decl_cleanup_eh.
7086 (expand_stmt): Adjust.
7087 * c-common.h: Adjust prototype.
7089 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7091 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7092 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7093 (cris_target_asm_function_epilogue): Ditto.
7094 (cris_initial_frame_pointer_offset): Ditto.
7095 (cris_simple_epilogue): Ditto.
7096 (cris_expand_builtin_va_arg): Variable-size types come in
7099 2002-04-03 David S. Miller <davem@redhat.com>
7101 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7103 (set_fast_math): Correct 'fsr' type.
7105 2002-04-03 Richard Henderson <rth@redhat.com>
7108 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7109 * toplev.c (check_global_declarations): Use it.
7110 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7111 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7112 (LANG_HOOKS_DECLS): Add it.
7113 * langhooks.c (lhd_warn_unused_global_decl): New.
7114 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7115 * c-objc-common.c (c_warn_unused_global_decl): New.
7116 * c-tree.h (c_warn_unused_global_decl): Declare.
7117 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7119 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7121 * langhooks-def.h (lhd_set_decl_assembler_name,
7122 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7123 (LANG_HOOKS_INITIALIZER): Update.
7124 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7125 * langhooks.h (struct lang_hooks): New hook.
7126 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7127 (lang_set_decl_assembler_name): Remove.
7128 (init_obstacks): Don't set hook.
7129 (decl_assembler_name): New function.
7130 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7131 (decl_assembler_name): New.
7132 (lang_set_decl_assembler_name): Remove.
7134 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7136 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7137 works properly with .hidden symbols.
7138 * configure: Rebuilt.
7139 * config.in: Rebuilt.
7140 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7141 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7142 properly with .hidden symbols.
7144 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7147 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7150 2002-04-03 Richard Henderson <rth@redhat.com>
7153 * sched-rgn.c (sets_likely_spilled): New.
7154 (sets_likely_spilled_1): New.
7155 (add_branch_dependences): Use it.
7157 2002-04-02 Richard Henderson <rth@redhat.com>
7160 * loop.h (LOOP_FIRST_PASS): New.
7161 * loop.c (strength_reduce): Mind it when deciding to unroll.
7162 * toplev.c (rest_of_compilation): Set it.
7164 2002-04-02 David S. Miller <davem@redhat.com>
7166 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7167 mems_ok_for_ldd_peep when the order of the loads being examined
7169 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7170 existing comment to increase comprehension of this situation.
7172 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7174 * config/sh/sh.md: Don't use union real_extract.
7176 2002-04-02 Richard Henderson <rth@redhat.com>
7178 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7180 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7182 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7183 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7184 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7185 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7186 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7187 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7188 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7189 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7190 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7191 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7192 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7193 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7194 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7195 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7196 Include as many configury headers via tm_file as possible. This
7197 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7198 * config/openbsd-oldgas.h: New file.
7199 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7200 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7201 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7202 config/i386/i386-coff.h, config/i386/i386-interix.h,
7203 config/i386/iscdbx.h, config/i386/linux-aout.h,
7204 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7205 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7206 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7207 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7208 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7209 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7210 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7211 config/i386/vxi386.h: Do not directly include configury headers.
7212 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7213 Directly include configury headers that are no longer automatically
7214 included by the above headers.
7215 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7216 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7217 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7218 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7219 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7220 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7221 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7222 (TARGET_VERSION): Define.
7223 * config/i386/beos-elf.h, config/i386/freebsd.h,
7224 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7225 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7226 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7227 config/i386/sco5.h, config/i386/sysv4.h
7228 (TARGET_VERSION): Do not need to protect.
7229 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7230 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7231 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7232 config/i386/i386-interix.h, config/i386/linux-aout.h,
7233 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7234 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7235 (YES_UNDERSCORES): Do not define - not needed.
7236 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7237 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7238 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7239 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7240 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7241 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7242 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7243 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7245 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
7246 Richard Henderson <rth@redhat.com>
7249 * function.c (assign_temp): Accept either type or decl argument.
7250 Detect variables whose size is too large to fit into an integer.
7251 * stmt.c (expand_decl): Pass the decl, not the type.
7253 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7255 * protoize.c: Match include directory usage with cppdefault.c.
7257 2002-04-03 Jeffrey A Law (law@redhat.com)
7258 Hans-Peter Nilsson <hp@bitrange.com>
7260 * combine.c (simplify_comparison): Avoid narrowing a comparison
7261 with a paradoxical subreg when doing so would drop signficant bits.
7263 2002-04-02 Steve Ellcey <sje@cup.hp.com>
7265 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7266 if POINTERS_EXTEND_UNSIGNED is defined.
7268 2002-04-02 Richard Henderson <rth@redhat.com>
7271 * local-alloc.c (contains_replace_regs): LO_SUM may contain
7274 2002-04-02 Richard Henderson <rth@redhat.com>
7276 * doc/standards.texi: Document required freestanding libc entry points.
7278 2002-04-02 Alan Modra <amodra@bigpond.net.au>
7280 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7281 associated splitter. Remove MQ constraint.
7282 (ctrdi_internal4): Correct CCmode clobber.
7284 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7286 * milli64.S ($$dyncall): New function.
7287 * t-linux (LIB1ASMFUNCS): Revise module list.
7288 (LIB1ASMSRC): Use pa/milli64.S.
7290 2002-04-02 Richard Henderson <rth@redhat.com>
7292 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7293 rename solaris_sys_varargs_h.
7295 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7297 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7298 the same mode as its component.
7300 2002-04-02 Richard Henderson <rth@redhat.com>
7303 * final.c (this_is_asm_operands): Export.
7304 * output.h (this_is_asm_operands): Declare.
7305 * config/i386/i386.c (print_operand): Error odd asm operands.
7307 2002-04-02 Richard Henderson <rth@redhat.com>
7310 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7312 2002-04-01 Richard Henderson <rth@redhat.com>
7315 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7316 * fixinc/fixincl.x: Rebuild.
7318 2002-04-01 Richard Henderson <rth@redhat.com>
7320 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7321 (atomic_alloc, atomic_free): New.
7322 (SIZE, MASK_FOR, PTR_IN): New.
7323 (emergency_reg_state, emergency_reg_state_free): New.
7324 (emergency_labeled_state, emergency_labeled_state_free): New.
7325 (reg_state_alloced, labeled_state_alloced): New.
7326 (alloc_reg_state, free_reg_state): New.
7327 (alloc_label_state, free_label_state, free_label_states): New.
7328 (push, pop, dup_state_stack, free_state_stack): Use them.
7329 (desc_label_state): Likewise.
7330 (uw_frame_state_for): Free label states and state stack.
7331 (uw_update_reg_address): Eliminate warnings.
7333 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
7335 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7336 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7338 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7340 * c-decl.c (grokdeclarator): Update.
7341 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7342 * c-tree.h (c_mark_addressable): New.
7343 * c-typeck.c (default_function_array_conversion, build_unary_op,
7344 build_array_ref, convert_for_assignment): Update.
7345 (mark_addressable): Rename.
7346 * calls.c (try_to_integrate, expand_call): Use langhook.
7347 * expr.c (expand_expr): Use langhook.
7348 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7349 * langhooks.h (struct lang_hooks): New hook.
7350 * stmt.c (expand_asm_operands): Use langhook.
7351 * tree.h (mark_addressable): Remove.
7353 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7355 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7357 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7360 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7362 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7363 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7365 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7367 * c-common.c (unsigned_conversion_warning, convert_and_check,
7368 unsigned_type, signed_type, shorten_compare,
7369 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7370 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7371 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7373 * c-decl.c (grokdeclarator): Update.
7374 * c-format.c (check_format_types): Update.
7375 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7376 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7377 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7378 * convert.c (convert_to_integer): Use new hooks.
7379 * expmed.c (make_tree): Use new hooks.
7380 * expr.c (store_expr): Use new hooks.
7381 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7382 all_ones_mask_p, unextend, fold): Use new hooks.
7383 * langhooks.h (struct lang_hooks_for_types): New hooks.
7384 * tree.h (signed_or_unsigned_type, signed_type,
7385 unsigned_type): Remove.
7387 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7388 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7390 2002-03-31 Richard Henderson <rth@redhat.com>
7392 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7393 (desc_frgr_mem): Fix reference to f16-f31.
7395 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7397 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7398 RTVEC_ELT): Const-ify.
7399 * varray.h (VARRAY_CHECK): Const-ify.
7400 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7401 ggc_mark_rtvec, ggc_mark): Const-ify.
7403 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7405 * diagnostic.c: Include langhooks-def.h.
7406 * Makefile.in (diagnostic.o): Update.
7408 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7410 * c-common.c (c_unsafe_for_reeval): Rename.
7411 * c-common.h (c_unsafe_for_reeval): Rename.
7412 * c-decl.c (finish_incomplete_decl): Rename.
7413 (c_init_decl_processing): Don't set langhook.
7414 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7415 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7416 * c-objc-common.c (c_objc_common_init): Don't set langhook.
7417 * c-tree.h (finish_incomplete_decl): Rename.
7418 * langhooks-def.h (lhd_unsafe_for_reeval): New.
7419 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7420 (LANG_HOOKS_INITIALIZER): Update.
7421 * langhooks.c (lhd_unsafe_For_reeval): New.
7422 * langhooks.h (struct langhooks): New hooks.
7423 * toplev.c (incomplete_decl_finalize_hook): Remove.
7424 (wrapup_global_declarations): Update.
7425 * tree.c (lang_unsafe_for_reeval): Remove.
7426 (unsafe_for_reeval): Update.
7427 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7430 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7431 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7433 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7435 * diagnostic.c (print_error_function): Remove.
7436 (default_print_error_function): Rename.
7437 (report_error_function): Update.
7438 * diagnostic.h (print_error_function): Remove.
7439 (default_print_error_function): Remove.
7440 * langhooks-def.h (struct diagnostic_context): Predeclare.
7441 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7442 (LANG_HOOKS_INITIALIZER): Update.
7443 * langhooks.h (struct diagnostic context): Predeclare.
7444 (struct lang_hooks): New hook.
7446 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7448 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7449 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7451 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7452 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7453 of PIC_OFFSET_TABLE_REGNUM thruout.
7454 * config/rs6000/rs6000.md: Likewise.
7455 * config/rs6000/darwin.h: Likewise.
7457 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7459 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7460 unsigned HOST_WIDE_INT, not unsigned int.
7462 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7464 PR middle-end/6096, middle-end/6098, middle-end/6099
7465 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7467 (fill_slots_from_thread): Likewise.
7469 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7471 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7472 floating fields in float regs.
7473 (function_arg_record_value_2): Likewise.
7475 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7477 * config/mmix/mmix.md (define_constants): Remove misleading
7478 FIXME. Add MMIX_fp_rO_OFFSET.
7479 ("nonlocal_goto_receiver"): Don't have stack-frame address of
7480 saved rO as part of the pattern. Remove FIXME.
7481 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
7482 here, at output-time.
7484 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7487 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7489 (output_v9branch): Likewise.
7491 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7493 * gcc.c: Revert previous patch for now.
7494 * config/i386/djgpp.h: Likewise.
7496 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7498 * config/mmix/crti.asm (_init): Register _fini with atexit.
7499 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7501 2002-03-31 Richard Henderson <rth@redhat.com>
7504 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7505 (ASM_OUTPUT_DEF_FROM_DECLS): New.
7507 2002-03-31 Richard Henderson <rth@redhat.com>
7509 * libgcc2.c (__bb_exit_func): Make static.
7511 * config/alpha/alpha.md (trap): New.
7513 2002-03-31 Richard Henderson <rth@redhat.com>
7515 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7516 promoted argument types; build trap.
7517 (expand_builtin_trap): New.
7518 (expand_builtin): Use it.
7519 * stmt.c (expand_nl_goto_receivers): Likewise.
7520 * expr.h (expand_builtin_trap): Declare.
7521 * libfuncs.h (LTI_abort, abort_libfunc): New.
7522 * optabs.c (init_optabs): Init abort_libfunc.
7524 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7526 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7527 (LINK_COMMAND_SPEC): ... from here.
7528 (init_gcc_specs): Duplicate it here too, omitting
7529 shared_name in the second copy.
7530 (init_spec): Test for duplicate
7531 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7533 2002-03-30 David S. Miller <davem@redhat.com>
7535 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7536 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7538 2002-03-30 Roger Sayle <roger@eyesopen.com>
7539 Richard Henderson <rth@redhat.com>
7541 * regmove.c (combine_stack_adjustments_for_block): Avoid
7542 emitting a stack adjustment of zero bytes. Let delete_insn
7545 2002-03-30 Richard Henderson <rth@redhat.com>
7547 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7548 (sparc_emitting_epilogue): New.
7549 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7550 * config/sparc/sparc-protos.h: Update.
7551 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7552 (TARGET_SWITCHES): Update.
7553 * config/sparc/sparc.md (return): Remove.
7554 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7555 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7556 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7557 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7558 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7559 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7560 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7561 Remove MASK_EPILOGUE.
7562 * doc/invoke.texi: Update.
7564 2002-03-30 Daniel Berlin <dan@dberlin.org>
7566 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7567 CPP will start the file for us.
7569 2002-03-30 Richard Henderson <rth@redhat.com>
7572 * config/ia64/ia64.c (group_barrier_needed_p): Special case
7573 prologue_allocate_stack.
7574 (ia64_single_set): Use insn codes for recognition of special
7575 cases, not rtl matching.
7576 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7578 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
7580 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7582 2002-03-30 Richard Henderson <rth@redhat.com>
7585 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7586 or -fomit-frame-pointer with profiling.
7587 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7588 (FUNCTION_PROFILER): Do nothing.
7589 (PROFILE_HOOK): New.
7590 * config/sparc/sparc.c (sparc_override_options): Don't check
7591 code models for profiling.
7592 (sparc_function_profiler): Remove.
7593 (sparc_profile_hook): New.
7594 * config/sparc/sparc-protos.h: Update.
7596 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7598 PR optimization/6086
7599 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7600 of SUBREG of volatile MEM or because the MEM was mode dependent,
7601 return CLOBBER instead of unmodified SUBREG.
7603 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7605 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7606 when not optimizing.
7608 * toplev.c (rest_of_compilation): Cann mark_constant_function
7609 only when optimizing.
7611 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7614 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7615 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7616 (try_optimize_cfg): clear all AUX fields.
7618 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7619 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7620 (ix86_address_cost): Be prepared for SUBREGed registers.
7621 (legitimate_address_p): Accept SUBREGed registers.
7623 2002-03-29 Richard Henderson <rth@redhat.com>
7626 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7628 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7630 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7631 for aggregate and TFmode types.
7633 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7635 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7637 2002-03-29 Richard Henderson <rth@redhat.com>
7640 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7641 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7643 2002-03-29 Richard Henderson <rth@redhat.com>
7646 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7647 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7648 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7649 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7651 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7653 2002-03-29 Dale Johannesen <dalej@apple.com>
7655 * loop.c (combine_movables): Do allow combination of pseudos.
7657 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
7659 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7660 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7661 No functional change except ...
7662 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
7663 * doc/install.texi (*-*-freebsd*): Document port configuration.
7665 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7667 * Makefile.in (convert.o, calls.o, expmed.o): Update.
7668 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7670 * builtin-types.def (BT_PTRMODE): Update.
7671 * c-common.c (type_for_size): Rename c_common_type_for_size.
7672 (type_for_mode): Similarly.
7673 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7675 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7676 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7677 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7679 * c-typeck.c (common_type, comptypes, default_conversion):
7681 * calls.c: Include langhooks.h.
7682 (emit_library_call_value_1): Use new hooks. Avoid redundant
7684 * convert.c: Include langhooks.h
7685 (convert_to_pointer, convert_to_integer): Use new hooks.
7686 * except.c (init_eh): Similarly.
7687 * expmed.c: Include langhooks.h.
7688 (expand_mult_add): Use new hooks.
7689 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7690 try_casesi): Similarly.
7691 * fold-const.c (optimize_bit_field_compare, make_range,
7692 decode_field_reference, fold_truthop, fold): Similarly.
7693 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
7694 put_var_into_stack): Similarly.
7695 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
7696 LANG_HOOKS_TYPE_FOR_SIZE): New.
7697 (LANG_HOOKS_TYPES_INITIALIZER): Update.
7698 * langhooks.h (lang_hooks_for_types): New hooks.
7699 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
7700 * tree.c (get_unwidened, get_narrower): Similarly.
7701 * tree.h (type_for_mode, type_for_size): Remove.
7702 * varasm.c (force_const_mem): Use new hooks.
7703 * utils2.c (nonbinary_modular_operation): Update.
7705 * objc-act.c (handle_impent): Update.
7706 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
7709 2002-03-29 Steve Ellcey <sje@cup.hp.com>
7711 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
7712 * config/ia64/ia64.c (basereg_operand): New.
7713 * config/ia64/ia64-protos.h (basereg_operand): Declare.
7714 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
7716 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7718 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
7719 unwind information when frame_pointer_needed.
7720 (mmix_assemble_integer): Tweak wording in comment.
7722 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7724 * Makefile.in (except.o): Update.
7725 * except.c: Include langhooks.h.
7726 (init_eh): Use langhook.
7727 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
7728 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
7729 (LANG_HOOKS_INITIALIZER): Update.
7730 * langhooks.h (lang_hooks_for_types): New.
7731 (struct lang_hooks): Add it.
7732 * tree.c (make_lang_type_fn, make_lang_type): Remove.
7733 * tree.h (make_lang_type_fn, make_lang_type): Remove.
7735 * alpha/alpha.c: Include langhooks.h.
7736 (alpha_build_va_list): Use langhook.
7737 * d30v/d30v.c: Include langhooks.h.
7738 (d30v_build_va_list): Use langhook.
7739 * i386/i386.c: Include langhooks.h.
7740 (ix86_build_va_list): Use langhook.
7741 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
7742 * s390/s390.c: Include langhooks.h.
7743 (s390_build_va_list): Use langhook.
7744 * stormy16/stormy16.c: Include langhooks.h.
7745 (stormy16_build_va_list): Use langhook.
7747 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7750 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
7752 (length): Compute variable length for branches/calls/jumps here.
7753 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
7754 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
7755 define branch_type attribute.
7756 (divsi3_sp32): Maximum length is 6 not 7.
7757 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
7758 call_address_untyped_struct_value_sp32,
7759 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
7760 * config/sparc/sparc.c (empty_delay_slot): New function.
7761 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
7762 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
7764 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7766 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
7767 nonzero_bits if not needed.
7768 (nonzero_bits) [XOR]: Likewise.
7769 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
7770 reg_last_set_mode and mode are both MODE_INT, but not equal.
7771 (record_value_for_reg): Compute reg_last_set_nonzero_bits
7772 in nonzero_bits_mode for MODE_INT modes.
7774 2002-03-28 Richard Henderson <rth@redhat.com>
7777 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
7778 to GAS. Correct drift between alternatives.
7780 2002-03-28 Richard Henderson <rth@redhat.com>
7783 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
7785 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
7787 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
7788 emulation to the linker.
7790 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
7792 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
7793 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
7795 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
7797 * combine.c (simplify_and_const_int): Make sure to apply mask
7798 when force_to_mode returns a constant integer. PR3311.
7800 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7802 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
7804 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7806 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
7807 and Objective-C Dialect Options.
7809 2002-03-28 Richard Henderson <rth@redhat.com>
7811 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
7812 comparison should be done vs !=0 not >0 return code. Tidy cases.
7814 2002-03-28 Richard Henderson <rth@redhat.com>
7816 * c-decl.c (finish_function): New arg can_defer_p. Pass it
7817 on to c_expand_body.
7818 * c-tree.h (finish_function): Update decl.
7819 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
7821 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
7823 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
7825 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
7827 * rtlanal.c: Include flags.h
7828 (may_trap_p): Do not mark FP operations if trapping
7829 if !flag_trapping_math
7830 * Makefile.in (rtlanal.o): Add dependency on flag.h
7831 * ifcvt.c (noce_operand_ok): Avoid the lameness.
7833 2002-03-27 Zack Weinberg <zack@codesourcery.com>
7835 * mips.md: Use dconst1, not 1.0, as first argument of
7836 REAL_VALUE_LDEXP. Don't use union real_extract.
7838 2002-03-28 Alan Modra <amodra@bigpond.net.au>
7840 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
7841 rather than $target. Heed program_prefix and
7842 program_transform_name. Search for gas in cross-compiler case too.
7843 "test -x" rather than "test -f".
7844 (gcc_cv_ld): Likewise.
7845 (gcc_cv_nm): Heed program_prefix and program_transform_name.
7846 (gcc_cv_objdump): Likewise.
7847 * configure: Regenerate.
7849 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7851 * Makefile.in (attribs.o): Update.
7852 * attribs.c: Include langhooks.h.
7853 (decl_attributes): Use langhook.
7854 * c-decl.c (insert_default_attributes): Rename.
7855 * c-tree.h (c_insert_default_attributes): New.
7856 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
7857 (LANG_HOOKS_INITIALIZER): Update.
7858 * langhooks.h (struct lang_hooks): New hook.
7859 * tree.h (insert_default_attributes): Remove.
7861 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
7863 2002-03-27 Andreas Schwab <schwab@suse.de>
7865 * config/i386/i386.c (classify_argument): Also check for
7868 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7870 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
7873 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
7875 * i960.md (ret): Set PC.
7876 (nonlocal_goto): Fix expander.
7877 * builtins.c (epxand_builin_longjmp): Check that we've emitted
7880 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
7882 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
7885 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7887 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
7888 assigning to BLOCK_FOR_INSN directly.
7890 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
7892 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
7894 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7896 * c-common.c (c_expand_expr): Fix prototype.
7897 * c-common.h (c_expand_expr): Always declare, update.
7898 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7899 * c-objc-common.c (c_objc_common_init): No global hook.
7900 * expr.c (expand_expr): Use langhook.
7901 * expr.h (enum expand_modifier): Conditionally declare.
7902 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
7903 (LANG_HOOKS_INITIALIZER): Update.
7904 * langhooks.c (lhd_expand_expr): New.
7905 * langhooks.h (struct lang_hooks): New hook.
7906 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
7907 (lang_independent_init): Don't default hook.
7909 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7911 2002-03-27 Richard Henderson <rth@redhat.com>
7914 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
7915 TARGET_CONST_GP. Simplify conditions.
7917 2002-03-27 Richard Henderson <rth@redhat.com>
7919 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7920 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
7921 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
7923 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
7925 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
7926 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
7927 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
7928 Remove unnecessary masks.
7929 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
7930 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
7931 -mwindows, -mdll switches and their negations.
7933 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7935 * gcc-common.c (lang_mark_false_label_stack): Remove.
7936 * ggc.h (lang_mark_false_label_stack): Similarly.
7938 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
7940 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
7942 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
7943 or __rtems_ is defined.
7945 2002-03-26 Richard Henderson <rth@redhat.com>
7947 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
7948 if a non-trivial load was emitted.
7949 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
7950 in high+extra+low case.
7952 2002-03-26 Richard Henderson <rth@redhat.com>
7954 * config.gcc (sparc*-solaris): Use float_format=sparc.
7956 2002-03-26 Richard Henderson <rth@redhat.com>
7958 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7959 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
7960 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
7961 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
7962 (WINT_TYPE_SIZE): Fix at 32.
7964 2002-03-26 Richard Henderson <rth@redhat.com>
7966 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
7967 until after eh landing pad generation.
7968 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
7969 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
7971 2002-03-26 Richard Henderson <rth@redhat.com>
7973 * expr.h (ADD_PARM_SIZE): One more convert for INC.
7975 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
7977 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
7978 and warning switches.
7979 (cc1_options): Likewise.
7981 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
7983 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
7984 Restore more of the signal context. Set no_reg_stack_frame.
7985 * config/ia64/unwind-ia64.c (unw_state_record):
7986 Add no_reg_stack_frame, comments.
7987 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
7988 (uw_update_context): Adjust bsp when unwinding from leaf,
7989 but not signal frame.
7991 2002-03-26 David Edelsohn <edelsohn@gnu.org>
7993 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
7995 2002-03-26 Bob Wilson <bob.wilson@acm.org>
7997 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
7999 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8002 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8003 "Add a pool_range attribute", which was lost during the ARM/Thumb
8006 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8008 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8009 a register into the MAC16 accumulator.
8011 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8013 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8014 (Warning Options): Document -Wswitch-enum.
8015 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8017 (warn_switch_enum): Define variables.
8018 * flags.h (warn_switch_enum): Declare variables.
8019 * stmt.c (expand_end_case_type): When warn_switch_enum /
8020 -Wswitch-enum, perform switch checks.
8023 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8025 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8026 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8027 (reload_muladdsi_compare0_scratch): Delete.
8029 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8031 * doc/install.texi (*-*-freebsd*): Update.
8033 2002-03-26 Richard Henderson <rth@redhat.com>
8035 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8036 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8038 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8039 types from the normal argument frame.
8041 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8042 variable sized objects by reference.
8043 (sparc_va_arg): Receive them by reference too.
8045 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8047 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8048 code to not restoring global registers.
8050 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8052 * Makefile.in (ggc-common.o): Update.
8053 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8054 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8055 * c-tree.h (c_mark_tree): New.
8056 * ggc-common.c: Include langhooks.h.
8057 (gcc_mark_trees): Use new langhook.
8058 * ggc-callbacks.c: Delete file.
8059 * ggc.h (lang_mark_tree): Remove.
8060 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8061 (LANG_HOOKS_INITIALIZER): Update.
8062 * langhooks.h (struct lang_hooks): New hook.
8064 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8066 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8068 * doc/cpp.texi: Exclude entire Top node from printed manual.
8069 Move option index after directive index. Insert page breaks
8070 before GFDL and concept index. Index environment variables
8071 with command line options.
8072 * doc/cppenv.texi: Use @vtable for environment variable list.
8073 Add paragraph explaining semantics of empty elements in path
8074 variables. Exclude a cross-reference to Fishkill from the
8075 manpage. Remove an unnecessary cross-reference of the entry
8076 right above the referer. Don't use @anchor in text that goes
8078 * doc/cppopts.texi: Cross-reference the environment variables
8079 section, not the specific environment variable, for consistency.
8081 2002-03-25 Richard Henderson <rth@redhat.com>
8083 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8084 anywhere in the block. Don't refer to insns that have been
8085 removed from the chain. Iterate backward through the new insns.
8086 Don't refer to edges that have been removed.
8088 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8090 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8091 test for overflow of constant.
8093 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8096 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8097 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8098 these patterns on arm_archv4.
8100 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8102 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8105 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8107 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8108 float_handled, float_handler, float_signal, set_float_handler,
8109 and do_float_handler. Set handler for SIGFPE to crash_signal.
8110 * toplev.h: Don't prototype do_float_handler.
8112 * c-lex.c: Fold parse_float into lex_number. Make warning
8113 about portability of hex float constants more informative, and
8114 don't issue it on top of a syntax error.
8115 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8117 * real.h: Define REAL_VALUE_ABS here...
8118 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8119 simplify_unary_real, simplify_binary_real, and
8120 simplify_binary_is2orm1 into their callers.
8121 * tree.c: Fold build_real_from_int_cst_1 into caller.
8123 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8125 * tsystem.h: Include float.h here...
8126 * libgcc2.c: ... not here.
8128 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8130 Fixes for: PR bootstrap/3591, target/5676
8131 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8132 defined. Do not disable exceptions or rtti.
8133 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8134 mcore.h. Disable exceptions and rtti, since they are not
8137 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8139 * c-decl.c (maybe_build_cleanup): Remove.
8140 * expr.c (expand_expr): Use langhook.
8141 * langhooks-def.h (lhd_return_null_tree,
8142 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8143 (LANGHOOKS_INITIALIZER): Update.
8144 * langhooks.c (lhd_return_null_tree): New.
8145 * langhooks.h (struct lang_hooks): New hook.
8146 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8147 * tree.h (maybe_build_cleanup): Remove.
8149 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8151 * regrename.c (build_def_use): Move recog_memoized
8152 before extract_insn.
8154 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8157 * expr.c (emit_group_store): Handle storing into CONCAT.
8159 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8161 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8162 corresponding MATCH_DUP.
8164 2002-03-24 Richard Henderson <rth@redhat.com>
8166 * unroll.c (unroll_loop): Zero label_map.
8168 * gcse.c: Include except.h.
8169 * Makefile.in (gcse.o): Update.
8171 2002-03-24 Richard Henderson <rth@redhat.com>
8173 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8174 Do resolve_unique_section before shared data clause.
8176 2002-03-24 Richard Henderson <rth@redhat.com>
8178 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8180 2002-03-24 Richard Henderson <rth@redhat.com>
8182 * recog.c (peephole2_optimize): Split blocks when EH insns are
8183 generated in the middle of a block. Do global life update if
8186 2002-03-24 Richard Henderson <rth@redhat.com>
8188 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8190 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8193 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8194 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8195 (init_dependency_output): Don't make no_output decision here.
8197 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8199 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8200 warn_switch. Update description.
8201 (expand_end_case_type): Call check_for_full_enumeration_handling
8204 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8206 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8207 (m68hc11_split_move): Call it to see if the source and destination
8208 operands use the same direction auto inc/dec mode, otherwise make the
8209 source an offsetable memory operand and generate an add.
8211 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8213 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8214 register for operand 2.
8215 ("*subsi3_zero_extendqi"): Likewise.
8216 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8217 bits so that it is compatible with a pop.
8218 ("*andhi3_gen"): Likewise.
8219 ("xorhi3"): Likewise.
8221 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8223 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8225 (cpp_post_options): ... not here.
8227 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8228 Aldy Hernandez <aldyh@redhat.com>
8230 Removal of separate preprocessor cpp0.
8232 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8233 cpp0, install-common): Update.
8234 * c-common.c (flag_preprocess_only): New.
8235 (c_common_init): Preprocess for -E.
8236 * c-common.h (flag_preprocess_only): New.
8237 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8238 * c-objc-common.c (c_init_decl_processing): Exit quickly
8239 for NULL return from c_common_init.
8240 * cpplib.h (cpp_preprocess_file): New.
8241 * cppmain.c (main, general_init, pfile, progname): Remove.
8242 (do_preprocessing): Rename cpp_preprocess_file, don't call
8243 cpp_finish. Don't close stdout here.
8244 (setup_callbacks): Update prototype.
8245 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8247 * tradcpp.c (main): Ignore -quiet.
8249 * lang-specs.h (default_compilers): Preprocess with cc1obj.
8251 2002-03-24 Richard Henderson <rth@redhat.com>
8253 PR optimization/5742
8254 * machmode.def: Add inner mode field to complex modes.
8255 * config/mips/mips.c (mips_function_value): Always define. Add
8256 new argument to handle libcalls.
8257 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8258 (FUNCTION_VALUE): Likewise.
8259 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8260 * config/mips/mips-protos.h: Update.
8262 2002-03-23 Richard Henderson <rth@redhat.com>
8264 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8265 * config/sparc/sparc-protos.h: Update.
8266 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8268 2002-03-23 Richard Henderson <rth@redhat.com>
8270 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8271 _start or _init begins the text segment.
8273 2002-03-23 David Edelsohn <edelsohn@gnu.org>
8275 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
8276 not HOST_WIDEST_INT.
8277 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8279 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
8282 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8283 operand argument to output_return_instruction.
8284 * arm.c (arm_print_operand, case 'd'): If the operand is
8285 const_true_rtx then just return.
8286 (arm_print_operand, case 'D'): If the operand is const_true_rtx
8289 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8291 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8292 (Warning Options): Document -Wswitch-default.
8293 * toplev.c (W_options): Add -Wswitch-default. Update comment on
8295 (warn_switch_default): Define variable.
8296 (warn_switch): Update comment.
8297 * flags.h (warn_switch_default): Declare variable.
8298 (warn_switch): Update comment.
8299 * stmt.c (expand_end_case): Check for and, when
8300 warn_switch_no_default, warn of a missing default case.
8302 2002-03-23 Alan Modra <amodra@bigpond.net.au>
8304 * real.h (N): Special case 128 bit doubles.
8306 * combine.c (simplify_comparison): When widening modes, ignore
8307 sign extension on CONST_INTs.
8309 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8311 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8312 passed to adjust_address. Fix comment formatting.
8315 2002-03-22 Zack Weinberg <zack@codesourcery.com>
8317 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8318 Always make REAL_VALUE_TYPE a struct containing an array of
8319 HOST_WIDE_INT, not a double. Tidy up the code deciding how
8320 big it is. Don't declare or use union real_extract.
8322 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8323 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8324 (print_operand), config/arm/arm.c (output_move_double),
8325 config/arm/arm.md (consttable_4, consttable_8),
8326 config/romp/romp.c (output_fpops), config/s390/s390.h
8327 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8328 (xtensa_output_literal): Don't use union real_extract.
8330 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8331 (sfmode_constant_to_ulong), config/ns32k/merlin.h
8332 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8333 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8334 (PRINT_OPERAND): Don't use local version of union
8337 * config/convex/convex.c (check_float_value), config/vax/vax.c
8338 (vax_float_literal), config/m88k/m88k.md (divdf3),
8339 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8340 config/pdp11/pdp11.c (output_move_quad): Don't do host
8341 arithmetic on target floating point quantities.
8343 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8344 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8346 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8347 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8349 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8350 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8352 * print-rtl.c (print_rtx): Disable code which needs
8353 floating-point emulator.
8354 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8355 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8356 depending on HOST_FLOAT_FORMAT to be defined properly.
8358 * config/1750a/1750a.c (get_double, float_label): Delete.
8359 (print_operand): Delete huge commented-out chunk. Use
8360 REAL_VALUE_TO_DECIMAL.
8361 * config/1750a/1750a-protos.h: Delete prototypes of deleted
8363 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8365 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8366 Use REAL_VALUE_TO_DECIMAL as ELF version does.
8367 * config/m88k/m88k.c (real_power_of_2_operand,
8368 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8369 real_extract out of the union; run the input through
8370 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8371 from that into the union.
8372 * config/pdp11/pdp11.c (output_move_double): Rearrange
8373 parentheses to make automatic indenter happy.
8375 * doc/tm.texi (Cross-compilation): Rename node to "Floating
8376 Point" and rewrite to describe current situation. Also adjust
8377 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8379 * doc/rtl.texi: Adjust cross reference.
8381 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8383 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8384 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8385 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8386 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8387 prevent use of sp as a reload register.
8388 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8389 non_acc_reg_operand.
8390 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8391 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8392 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8393 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8395 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8397 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8398 * cpplex.c (unterminated): Delete.
8399 (parse_string): No string literal may extend over multiple
8400 lines. Suppress the error when preprocessing assembly.
8401 * cppmain.c (scan_translation_unit): Strings are single-line.
8403 * doc/cpp.texi: Update to match.
8405 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8407 PR optimization/5854
8408 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8410 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8411 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8412 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8413 const0 if scratch register was not allocated.
8414 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8415 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8417 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8418 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8419 with GEN_INT (...) everywhere. Remove constraints in define_split
8421 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8422 require scratch register for setting 0 into regs/non-pushable memory.
8424 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8426 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8427 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8429 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
8431 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
8432 * cppinit.c (cpp_create_reader): On by default.
8433 (cpp_handle_option): Handle -W[no-]endif-labels.
8434 (cpp_post_options): Also enable if -pedantic.
8435 * cpplib.c (do_else): Use it.
8436 (do_endif): Likewise.
8437 * doc/cppopts.texi: Document new option.
8438 * doc/invoke.texi: Document new option.
8440 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
8442 * config/i386/i386.c, config/i386/i386.md: Change all occurences
8443 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8445 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8447 * flow.c (calculate_global_regs_live): Clear aux fields of
8450 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8452 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8453 REG or MEM subregs, pass rtx * instead of rtx to it.
8454 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8455 rtx * instead of rtx to alter_subreg.
8456 * config/m32r/m32r.c (gen_split_move_double): Likewise.
8457 * config/pj/pj.c (pj_output_rval): Likewise.
8459 2002-03-22 Richard Henderson <rth@redhat.com>
8462 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8463 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8464 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8465 (ia64_expand_prologue): Look at int_regs, not words, for number
8466 of incomming int regs.
8468 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
8470 * expr.c (expand_expr): A RESULT_DECL is part of a call.
8472 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
8474 * toplev.c (flag_loop_optimize, flag_crossjumping):
8475 New static variables.
8476 (rest_of_compilation): Conditionalize crossjumping and
8478 (parse_options_and_default_flags): Default loop_optimize and
8480 (lang_independent_options): Add -fcrossjumping and -floop-optimize
8481 * invoke.texi (crossjumping, loop-optimize): Document.
8483 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8485 * real.c (eiisneg): Move outside #ifdef NANS.
8487 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
8489 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8490 frequencies match; avoid match on different loop depths.
8491 (try_crossjump_to_bb): Kill tests that no longer brings time
8493 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8495 (split_edge): Likewise.
8497 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8500 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8501 * cfgrtl.c: Include insn-config.h
8502 (split_block) Dirtify block in presence of conditional execution
8504 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8506 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8507 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8508 (function_arg): Constify CUMULATIVE_ARGS.
8509 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8510 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8511 (UNITS_PER_DOUBLE): New macro.
8512 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
8513 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
8514 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
8515 fp_regs and stack_words.
8516 (EABI_FLOAT_VARARGS_P): New macro.
8517 * config/mips/mips.c (struct mips_arg_info): New.
8518 (mips_arg_info): New function.
8519 (function_arg_advance): Use it. Add adjustment instructions here
8520 rather than in function_arg.
8521 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
8522 for VOIDmode at the beginning of the function.
8523 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
8524 (function_arg_pass_by_reference): Likewise.
8525 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8526 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8527 (mips_va_start): Likewise. Use the new stack_words field of
8528 CUMULATIVE_ARGS to set up overflow area. Reformat.
8529 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
8530 doubles and other types, aligning the overflow pointer for non-doubles
8531 too. Remove some code duplication. Replace hard-coded constants.
8533 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8535 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8536 (CLASS_UNITS): Undefine.
8537 (CLASS_MAX_NREGS): Use FP_INC.
8538 * config/mips/mips.c (compute_frame_size): Likewise.
8539 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8541 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8543 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8544 prototype, and handle lexing numbers and identifiers.
8545 (parse_identifier): Update to new form of parse_slow.
8546 (parse_number): Fast path only, use parse_slow otherwise.
8547 (_cpp_lex_direct): Update calls to parse_number.
8549 2002-03-21 DJ Delorie <dj@redhat.com>
8551 * bb-reorder.c (make_reorder_chain_1): Protect against
8552 when redundant edges are omitted.
8553 * predict.c (dump_prediction): Likewise.
8555 2002-03-21 Richard Henderson <rth@redhat.com>
8558 * fixinc/inclhack.def (solaris_stdio_tag): New.
8559 * fixinc/fixincl.x: Regenerate.
8561 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8564 * c-typeck.c (process_init_element): Flag non-static
8565 initialization of a flexible array member as illegal.
8567 2002-03-22 Alan Modra <amodra@bigpond.net.au>
8569 * config/rs6000/t-linux64: New.
8570 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8571 t-ppccomm. Use t-rs6000 and t-linux64.
8572 (powerpc64-*-gnu* <tmake_file>): Likewise.
8573 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8574 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8575 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8577 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
8579 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8580 flag_really_no_inline instead of optimize == 0.
8582 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8584 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8586 * flags.h (flag_really_no_inline): New.
8588 * c-common.c (c_common_post_options): Initialize
8589 flag_really_no_inline.
8591 * toplev.c (flag_really_no_inline): New.
8593 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8595 * config/avr/avr.md (length): Fix length computation for
8596 conditional branches.
8598 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
8600 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8601 sdbout.o, profile.o): Update.
8602 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8604 * c-common.h (gettags): Move here from tree.h.
8605 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8606 insert_block, getdecls, kept_level_p, global_bindings_p): New.
8607 * dbxout.c (dbxout_init): Use getdecls langhook.
8608 * expr.c (expand_expr): Use insert_block langhook.
8609 * fold-const.c: Include langhooks.h.
8610 (fold_range_test, fold_binary_op_with_conditional_arg,
8611 fold): Use global_bindings_p langhook.
8612 * integrate.c (expand_inline_function): Use insert_block langhook.
8613 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8614 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8615 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8616 LANG_HOOKS_GETDECLS): New.
8617 (LANG_HOOKS_INITIALIZER): Update.
8618 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8620 * langhooks.h (struct lang_hooks_for_decls): New.
8621 (struct lang_hooks): Update.
8622 * profile.c: Include langhooks.h.
8623 (output_func_start_profiler): Use new langhooks.
8624 * sdbout.c: Include langhooks.h.
8625 (sdbout_init, sdbout_finish): Use getdecls langhook.
8626 * stmt.c: Include langhooks.h.
8627 (expand_fixup, fixup_gotos): Use new langhooks.
8628 * stor-layout.c: Include langhooks.h.
8629 (variable_size): Use global_bindings_p langhook.
8630 * toplev.c (compile_file): Use getdecls langhook.
8631 * tree-inline.c (remap_block): Use insert_block langhook.
8632 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8633 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8635 2002-03-21 Richard Henderson <rth@redhat.com>
8637 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8638 constants in .data when -fpic.
8640 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8642 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8645 2002-03-21 Tom Tromey <tromey@redhat.com>
8647 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
8649 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8651 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8653 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8655 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8656 Richard Henderson <rth@redhat.com>
8659 * c-common.c (c_expand_expr): Preserve result of a statement
8660 expression if needed.
8662 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8665 * genrecog.c (maybe_both_true_mode): Remove.
8666 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8667 * machmode.def (Pmode): Likewise.
8669 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
8671 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8672 (nonlocal_mentioned_p_1): New function.
8673 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8674 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8675 (mark_constant_function): Recognize pure functions.
8676 * rtl.h (global_reg_mentioned_p): New prototype.
8677 * rtlanal.c (global_reg_mentioned_p,
8678 global_reg_mentioned_p_1): New function.
8680 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8682 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8684 * fixinc/fixincl.x: Regenerate.
8686 2002-03-20 Jason Merrill <jason@redhat.com>
8688 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8690 2002-03-20 Michael Meissner <meissner@redhat.com>
8692 * doc/invoke.texi (Optimize Options): Document that -O2 sets
8695 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8697 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
8698 ".literal_position" directive before the constant pool.
8700 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8702 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
8703 Add Craig Rodrigues.
8704 Add Brad Lucier to testers.
8706 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8709 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
8711 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
8712 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
8713 instead of insn_extract.
8715 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8718 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
8720 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
8721 stmt if some case has been output.
8723 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8726 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
8727 movsfcc_1, movdfcc_1): Add %O2.
8728 * config/i386/i386.c (print_operand): Handle %ON.
8729 Print . before float condition codes in Sun as cmov syntax.
8730 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
8731 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
8734 2002-03-20 Philip Blundell <pb@nexus.co.uk>
8736 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
8737 return instruction if PC was popped.
8739 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8741 * config/xtensa/xtensa.md: Remove unused type attributes.
8742 (adddi_carry, subddi_carry): Change type attribute to "multi".
8744 2002-03-19 Dale Johannesen <dalej@apple.com>
8746 PR optimization/5999, middle-end/5731
8747 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
8748 multiplications by reciprocals.
8750 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
8752 * Makefile.in: Update.
8753 * c-common.c: Include langhooks.h.
8754 (inline_forbidden_p): Use new hook.
8755 * diagnostic.c: Include langhooks.h.
8756 (format_with_decl, announce_function,
8757 default_print_error_function): Use new hook.
8758 * dwarf2out.c (dwarf2_name): Use new hook.
8759 * function.c: Include langhooks.h.
8760 (init_function_start): Use new hook.
8761 * langhooks-def.h (lhd_decl_printable_name): New.
8762 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
8763 (LANGHOOKS_INITIALIZER): Update.
8764 * langhooks.c (lhd_decl_printable_name): New.
8765 * langhooks.h (struct lang_hooks): New hook.
8766 * toplev.c (decl_name, decl_printable_name): Remove.
8767 (open_dump_file): Use new hook.
8768 (process_options): Remove old hook.
8769 * tree.h (decl_printable_name): Remove.
8771 * objc-act.c (objc_init): Remove old hook.
8772 (objc_printable_name): Export.
8773 * objc-act.h (objc_printable_name): New.
8774 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
8776 2002-03-19 Jim Blandy <jimb@redhat.com>
8778 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
8779 the start_source_file debug hook, not the current line number.
8781 2002-03-19 Richard Henderson <rth@redhat.com>
8783 * flow.c (EH_USES): Provide default.
8784 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
8785 * doc/tm.texi (EH_USES): New.
8787 * config/ia64/ia64.c (ia64_eh_uses): New.
8788 * config/ia64/ia64-protos.h: Update.
8789 * config/ia64/ia64.h (EH_USES): New.
8791 2002-03-19 Richard Henderson <rth@redhat.com>
8793 * varasm.c (output_constant_def): Fix stupid typo.
8795 2002-03-19 Richard Henderson <rth@redhat.com>
8798 * except.c (current_function_has_exception_handlers): New.
8799 * except.h: Declare it.
8800 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
8801 Combine tests that disable all sibcalls for the function.
8803 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
8805 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
8808 2002-03-19 Richard Henderson <rth@redhat.com>
8811 * config/ia64/ia64.c: Revert 2002-03-01 patch.
8812 * config/ia64/ia64.h (INIT_EXPANDERS): New.
8814 2002-03-19 Jim Blandy <jimb@redhat.com>
8816 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
8817 name, even if the replacement list contains no tokens, as required
8820 2002-03-19 Jason Merrill <jason@redhat.com>
8822 * varasm.c (globalize_decl): Get the name from the RTL, not
8823 DECL_ASSEMBLER_NAME.
8825 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
8827 2002-03-19 Bob Wilson <bob.wilson@acm.org>
8829 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
8830 subdi_carry): Define.
8832 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8834 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
8835 about -fpic/-fPIC if extra_warnings set.
8837 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8839 * expr.c (expand_expr): Sign-extend CONST_INT generated from
8840 TREE_STRING_POINTER.
8841 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
8843 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8845 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
8846 in favor of SP if FRAME_POINTER_REQUIRED is false.
8848 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
8850 * emit-rtl.c (gen_int_mode): New function.
8851 * rtl.h: Prototype for it.
8852 * combine.c (make_extraction, simplify_comparison), expmed.c
8853 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
8854 (convert_modes, store_field), optabs.c (expand_fix),
8855 simplify-rtx.c (neg_const_int, simplify_unary_real),
8857 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
8858 Use it instead of GEN_INT (trunc_int_for_mode (...)).
8860 2002-03-19 Jakub Jelinek <jakub@redhat.com>
8863 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
8864 convert_parm_for_inlining.
8865 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
8867 * langhooks-def.h: Likewise.
8868 * objc/objc-lang.c: Likewise.
8869 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
8871 * tree-inline.c (initialize_inlined_parameters):
8872 Call convert_parm_for_inlining lang hook if needed.
8873 * c-typeck.c (c_convert_parm_for_inlining): New function.
8874 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
8876 2002-03-18 Mark Mitchell <mark@codesourcery.com>
8878 * calls.c (precompute_arguments): Do not assume that temporaries
8879 can be destroyed after expanding the argument.
8880 (expand_call): Likewise.
8882 2002-03-15 Eric Christopher <echristo@redhat.com>
8884 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
8885 Fix register preference on last change.
8886 * config/mips/mips.c (mips_return_in_memory): New function.
8887 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
8888 * config/mips/mips-protos.h: Declare.
8889 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
8890 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
8892 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
8894 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
8896 (anddi3, iorsi3): Likewise.
8898 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
8899 use %gprel for symbols that are going to be placed in linkonce
8902 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
8903 RETURN_ADDRESS_POINTER_REGNUM to $ra.
8904 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
8905 not needed. Disregard leaf_function_p().
8906 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
8907 mips16 frame pointer.
8908 * config/mips/mips.md (store ra): Only to small SP offsets.
8909 2001-08-22 Graham Stott <grahams@redhat.com>
8910 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
8911 return a REG rtx for the return address register.
8913 2002-03-18 Bob Wilson <bob.wilson@acm.org>
8915 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
8916 constant-pool addresses as "mode-dependent".
8917 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
8919 2002-03-18 Jakub Jelinek <jakub@redhat.com>
8922 * expr.c (emit_group_load): Use extract_bit_field if
8923 needed for CONCAT arguments.
8925 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
8928 * arm.md (tablejump): Make this a define_expand. For PIC add the
8929 offset to the base of the table.
8930 (thumb_tablejump): Matcher for Thumb tablejump insn.
8931 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
8932 as the difference of two labels.
8933 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8934 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
8936 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
8937 * arm.c (get_jump_table_size): If the table is not in the text
8938 section, return zero.
8940 2002-03-18 Bernd Schmidt <bernds@redhat.com>
8942 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
8944 (arm_reload_out_hi): Use gen_lowpart instead of
8945 gen_rtx_SUBREG to access QImode components.
8946 * config/arm/arm.md: Disable zero_extend split for QImode
8947 subregs in BIG_ENDIAN mode.
8948 (storehi_bigend): Match use of least significant byte.
8949 (storeinthi): Remove extraneous SUBREG.
8950 Add missing construction of operands[2].
8951 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
8952 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
8953 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
8955 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
8957 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
8960 2002-03-17 Richard Henderson <rth@redhat.com>
8962 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
8965 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
8967 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
8968 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
8970 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8972 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
8974 * predict.c (estimate_bb_frequencies): Delete unused variables.
8976 2002-03-17 Richard Henderson <rth@redhat.com>
8978 * config/ia64/ia64.c (ia64_attribute_table): Move before
8979 targetm definition. Make static.
8981 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
8983 * c-common.h (yyparse, c_common_parse_file): New.
8984 * c-lang.c: Include c-common.h.
8985 (LANG_HOOKS_PARSE_FILE): Redefine.
8986 * c-lex.c: Include c-common.h.
8987 (yyparse): Rename c_common_parse_file. Call yyparse.
8988 * c-parse.in (yyparse): Remove macro.
8989 * c-tree.h (yyparse_1): Remove.
8990 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
8991 (LANG_HOOKS_INITIALIZER): Update.
8992 * langhooks.h (struct lang_hoooks): New hook parse_file.
8993 * toplev.c (compile_file): Use parse_file hook.
8994 * tree.h (yyparse): Remove.
8995 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
8997 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
8999 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9000 float_truncate, not fix.
9001 ("*truncdfsf2_real"): Ditto.
9002 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9004 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9006 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9008 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9009 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9010 where appropriate. Make the second reference to
9011 leaf_function_p a function call, as intended. Reindented.
9013 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9014 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9016 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9017 add register to non-constant into sp.
9019 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9020 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9021 (mips16_gp_pseudo_rtx): Lose.
9022 (INIT_EXPANDERS): Deleted.
9023 * config/mips/mips.c (mips_init_machine_status): New.
9024 (mips_free_machine_status): New.
9025 (mips_mark_machine_status): New.
9026 (override_options): Set them.
9027 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9028 (struct machine_function): ... new. Replaced all references.
9029 (mips_add_gc_roots): Don't mark them.
9030 (embedded_pic_fnaddr_reg): New, extracted from...
9031 (embedded_pic_offset): ... here.
9032 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9035 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9037 * cppinit.c: Revert -MD removal.
9039 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9041 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9042 soft registers by default for 68HC12.
9043 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9044 when compiling with -fomit-frame-pointer.
9045 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9046 (expand_epilogue): Likewise.
9047 (m68hc11_gen_rotate): Use exg when rotating by 8.
9049 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9051 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9052 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9053 (splits): Remove unused add splits.
9054 ("*addhi3_68hc12"): Tune constraints.
9055 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9056 constant fits in 8-bits and D is dead use abx/aby instructions.
9057 ("*addhi3"): Remove extern declaration of ix_reg.
9058 ("*subsi3"): Optimize and provide new split.
9059 ("subhi3"): Cleanup.
9060 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9061 (arith splits): For 68hc12 save the address register on the stack
9062 and do the arithmetic operation with a pop.
9064 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9066 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9067 allocating QImode in address registers.
9068 ("*movqi_m68hc11"): Likewise.
9070 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9072 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9074 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9076 * cppinit.c (print_help): Display -MD and -MMD.
9077 Don't display usage string. Update assertion syntax and
9079 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9080 (cpp_handle_option): Update.
9082 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9084 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9085 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9086 and define it so that regardless of target CPU size,
9087 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9088 of "int" rather than "long."
9090 2002-03-15 Richard Henderson <rth@redhat.com>
9092 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9095 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9097 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9098 ("tstqi" split): Avoid using memory for tstqi on address register.
9099 (splits): Remove constraints.
9100 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9101 ("cmpdf", "cmpsf"): Remove since not used.
9102 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9103 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9105 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9107 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9108 ("neghi2"): Tighten constraints.
9109 ("one_cmplsi2"): Optimize and simplify split.
9110 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9112 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9114 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9115 and split of AND operation to clear the upper bits.
9116 ("*logicalsi3_zextqi"): Likewise.
9117 ("*logicallhi3_zexthi_ashift8"): Likewise.
9118 ("*logicalsi3_silshr16"): Likewise.
9119 ("logicalsi3_silshl16"): Likewise.
9120 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9122 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9124 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9125 (m68hc11_indirect_p): New function.
9126 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9127 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9129 (asm_print_register): Likewise.
9130 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9131 (m68hc11_indirect_p): Declare.
9132 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9133 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9134 (TARGET_SWITCHES): New option -mrelax.
9135 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9137 ("iorsi3", "xorsi3"): Likewise.
9138 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9139 ("*andhi3_mem"): New to handle destination in memory with bclr
9140 and a scratch register.
9141 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9142 ("*andhi3_const"): New when operand2 is constant.
9143 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9144 ("*andhi3_gen"): Cleanup of the old "andhi3".
9145 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9146 ("xorqi3"): Update constraints.
9148 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9150 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9151 for reg_equiv_memory_loc when the operand is a register that does
9152 not get a hard register (stack location).
9153 (tst_operand): After reload, accept all memory operand.
9154 (symbolic_memory_operand): Fix detection of symbolic references.
9155 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9156 accept symbols and any constant.
9158 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9160 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9161 note on the insn that sets the soft frame register.
9162 (must_parenthesize): ix and iy are also reserved names.
9163 (print_operand_address): One more place where parenthesis are required
9164 to avoid confusion with register names.
9165 (m68hc11_gen_movhi): Allow push of stack pointer.
9166 (m68hc11_check_z_replacement): Fix handling of parallel with a
9168 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9169 the replacement register is.
9170 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9171 and D8_REGS classes.
9172 (MODES_TIEABLE_P): All modes are tieable except QImode.
9174 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9176 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9177 (___subdi3): Likewise.
9178 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9179 (__map_data_section): Optimize 68hc11 case.
9181 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9183 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9184 than a shift to avoid adding a register with itself.
9185 (m68hc11_memory_move_cost): Take into account NO_REGS.
9186 (m68hc11_register_move_cost): Update and use memory move cost
9188 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9189 it gives more opportunities to cse to optimize.
9190 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9191 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9193 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9195 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9196 * c-common.def (CLEANUP_STMT): New tree node.
9197 * c-common.h (CLEANUP_DECL): New macro.
9198 (CLEANUP_EXPR): Likewise.
9199 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9200 * expr.c (expand_expr): Tidy.
9201 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9202 * tree-inline.c (initialize_inlined_parameters): Clean up
9203 new local variables.
9205 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9208 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9209 before movrXX only, use reg_overlap_mentioned_p.
9210 Only special case NE if just one insn can be generated.
9212 2002-03-15 Jason Merrill <jason@redhat.com>
9214 * varasm.c (assemble_variable): Call resolve_unique_section before
9215 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9218 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9221 * arm.md (split pattern for thumb shiftable immediates): Add comment
9222 explaining non-obvious test.
9224 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9227 * arm.md (movaddr, movaddr_insn): Delete.
9229 2002-03-15 Jason Merrill <jason@redhat.com>
9231 * toplev.c (wrapup_global_declarations): Clarify variable handling.
9232 -fkeep-static-consts doesn't apply to comdats.
9234 2002-03-14 Richard Henderson <rth@redhat.com>
9236 * c-decl.c: Include c-pragma.h.
9237 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9238 (finish_function): Tidy.
9239 * c-pragma.c: Include c-common.h.
9240 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9241 (handle_pragma_weak): Use them.
9242 (init_pragma): Register pending_weaks.
9243 * c-pragma.h (maybe_apply_pragma_weak): Declare.
9244 * print-tree.c (print_node): Print DECL_WEAK.
9245 * varasm.c (mark_weak_decls): Remove.
9246 (remove_from_pending_weak_list): Remove.
9248 (asm_emit_uninitialised): Call globalize_decl for weak commons.
9249 (weak_decls): Make a tree_list.
9250 (declare_weak): Cons weak_decls directly.
9251 (globalize_decl): Remove weak_decls elements directly.
9252 (weak_finish): Simplify weak_decls walk. Don't weaken unused
9253 symbols. Don't pretend to handle aliases.
9254 (init_varasm_once): Update weak_decls registry.
9255 * Makefile.in: Update dependencies.
9257 2002-03-14 Richard Henderson <rth@redhat.com>
9260 * config/ia64/ia64.c: Include tm_p.h last.
9261 (gen_nop_type): Remove duplicate definition.
9262 (cycle_end_fill_slots): Set sched_data for second L slot.
9263 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9264 (nop_cycles_until): Fix typos.
9266 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9268 PR optimization/5891
9269 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9271 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9273 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9274 descriptors correctly.
9276 2002-03-14 Michael Meissner <meissner@redhat.com>
9278 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9279 100, allowing MAX_UNROLLED_INSNS to be overridden.
9281 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9284 * unroll.c (params.h): Include.
9285 (MAX_UNROLLED_INSNS): Delete, now in params.h.
9287 * doc/invoke.texi (--param max-unroll-insns): Document.
9289 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9291 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9293 * arm.md: Fix warnings about constraints in peepholes and splits.
9295 2002-03-14 Zack Weinberg <zack@codesourcery.com>
9297 * cpphash.h (struct lexer_state): Remove line_extension member.
9298 * cpplib.c (dequote_string, do_linemarker): New functions.
9299 (linemarker_dir): New data object.
9300 (DIRECTIVE_TABLE): No longer need to interpret #line in
9301 preprocessed source. Delete obsolete comment about return
9303 (end_directive, directive_diagnostics, _cpp_handle_directive):
9304 Don't muck with line_extension.
9305 (directive_diagnostics): No need to issue warnings for
9307 (_cpp_handle_directive): Issue warnings for linemarkers here,
9308 when appropriate. Dispatch linemarkers to do_linemarker, not
9310 (do_line): Code to handle linemarkers split out to do_linemarker.
9311 Convert escape sequences in filename argument, both places.
9313 * cppmacro.c (quote_string): Rename cpp_quote_string and
9314 export. All callers changed.
9315 * cpplib.h (cpp_quote_string): Prototype.
9316 * cppmain.c (print_line): Call cpp_quote_string on to_file
9319 * doc/cpp.texi: Document that escapes are now interpreted in
9320 #line and in linemarkers, and that non-printing characters are
9321 converted to octal escapes when linemarkers are generated.
9323 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
9325 * emit-rtl.c (try_split): Use delete_insns.
9326 * recog.c (split_all_insns): Fix terminating condition.
9328 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9329 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9332 * arm.c (arm_output_epilogue): Fix floating-point register save
9333 adjustment when using a frame pointer.
9335 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
9337 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9338 * config/mips/mips.c (compute_frame_size): Retrofit them here.
9339 (save_restore_insns, mips_expand_epilogue): And here.
9340 (build_mips16_call_stub): And here.
9341 (mips_function_value): Use the new macros to decide whether a single
9342 or complex float can be returned in floating-point registers. Return
9343 a parallel rtx in the complex case.
9345 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
9347 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9348 call after liveness analysis.
9350 * recog.c (split_insn): Use delete_insn_and_edges.
9352 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9353 instructions to have branch prediction notes.
9354 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9356 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
9358 * configure.in: Don't pass -Wno-long-long to a ADA compiler
9359 that doesn't support it.
9360 * configure: Regenerate.
9362 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9365 * config/sparc/sparc.md (normal_branch, inverted_branch,
9366 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9367 inverted_fp_branch): Adjust calls to output_cbranch.
9368 Set length attribute.
9369 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9370 output_v9branch. Set length attribute.
9371 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9373 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9374 (output_cbranch): Likewise. Handle far branches.
9375 (output_v9branch): Handle far branches.
9376 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9378 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9379 noov_compare64_op predicates.
9381 2002-03-13 Jason Merrill <jason@redhat.com>
9383 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9384 into the function and constify it.
9385 * gthr-dce.h, gthr-solaris.h: Likewise.
9387 2002-03-13 David Edelsohn <edelsohn@gnu.org>
9389 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9390 * config/rs6000/rs6000.c (rs6000_va_arg): Use
9391 std_expand_builtin_va_arg if not ABI_V4.
9393 2002-03-13 Jason Merrill <jason@redhat.com>
9395 * varasm.c (globalize_decl): New fn.
9396 (assemble_start_function): Use it.
9397 (asm_emit_uninitialized): Use it.
9398 (assemble_alias): Use it.
9399 (assemble_variable): Use it.
9401 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
9403 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9404 2002-03-12 internal visibility change.
9405 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9406 visibility into SYMBOL_REF_FLAG.
9408 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
9410 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9411 VOIDmode operand. Add compile-time optimization for constant results.
9413 2002-03-12 Jason Merrill <jason@redhat.com>
9415 * c-typeck.c (convert_for_assignment): Don't allow conversions
9416 between pointers and references. Only allow lvalues to convert to
9419 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
9421 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9422 before prologue, to avoid scheduling problems.
9424 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9426 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9427 (ELIMINABLE_REGS): Add sfp->sp.
9428 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9430 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9432 PR optimization/5892
9433 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9435 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9437 * loop.c (basic_induction_var): Don't call convert_modes if mode
9438 classes are different.
9440 2002-03-12 Richard Henderson <rth@redhat.com>
9442 PR optimization/5901
9443 * function.c (reposition_prologue_and_epilogue_notes): Position
9444 the markers after/before the last/first insn not deleted.
9446 2002-03-12 Richard Henderson <rth@redhat.com>
9448 PR optimization/5878
9449 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9450 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9451 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9453 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9454 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9455 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9457 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9458 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9459 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9460 also. Don't set it if not flag_pic.
9461 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9462 to be INVALID_REGNUM when not used.
9464 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
9466 * expmed.c (store_bit_field): Reset alias set for memory.
9467 (extract_bit_field): Same.
9469 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9471 * c-common.c (c_tree_code_type, c_tree_code_length,
9472 c_tree_code_name, add_c_tree_codes): Delete.
9473 * c-common.h (add_c_tree_codes): Delete.
9474 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9476 * c-objc-common.c (c_objc_common_init): Don't call
9477 add_c_tree_codes, instead set lang_unsafe_for_reeval.
9478 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9479 objc_tree_code_name, add_objc_tree_codes): Delete.
9480 (objc_init): Don't call add_objc_tree_codes.
9481 * objc/objc-lang.c (tree_code_type, tree_code_length,
9482 tree_code_name): Define.
9483 * toplev.c (lang_independent_init): Don't set
9484 tree_code_length[IDENTIFIER_NODE].
9485 * tree.c (tree_code_type, tree_code_length, tree_code_name):
9486 Delete definitions, moved to language front-ends.
9487 * tree.def (IDENTIFIER_NODE): Hardwire the length.
9488 * tree.h (tree_code_type, tree_code_length, tree_code_name):
9490 (tree_code_length): Change type to unsigned char.
9492 2002-03-12 Richard Henderson <rth@redhat.com>
9494 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9495 internal visibility change.
9497 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9499 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9500 validize_mem() instead of change_address to avoid clobbering
9503 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
9505 * c-lex.h (position_after_whitespace): Remove.
9507 2002-03-12 Jakub Jelinek <jakub@redhat.com>
9509 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9510 (lex_string): Use unsigned char pointers.
9512 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9514 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9515 is not a valid memory_operand.
9517 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9519 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9520 * config/xtensa/lib1funcs.asm: Fix copyright to include
9521 special case for libgcc files.
9522 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9523 (__divsi3): Likewise.
9524 (__umodsi3): Likewise.
9525 (__modsi3): Likewise.
9526 * config/xtensa/lib2funcs.S: Fix copyright to include
9527 special case for libgcc files.
9529 2002-03-12 Tom Rix <trix@redhat.com>
9531 * collect2.c (resolve_lib_name): Move outside of
9532 OBJECT_FORMAT_COFF ifdef.
9533 (ignore_library): Same.
9535 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9537 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9539 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9541 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9542 to function_section before writing out the constant pool.
9544 2002-03-12 David Edelsohn <edelsohn@gnu.org>
9546 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9548 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9550 2002-03-12 Alan Modra <amodra@bigpond.net.au>
9552 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9556 (cmpsi splitter): Likewise.
9557 (modsi3): Fail if <= 0.
9558 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9559 redundant test when HOST_BITS_PER_WIDE_INT != 32.
9560 (reg_or_sub_cint64_operand): Likewise.
9561 (num_insns_constant_wide): Optimize sign extension.
9562 (rs6000_legitimize_address): Likewise.
9564 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9566 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9567 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9569 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9571 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9572 address calculation.
9574 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9576 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9577 scratch register to DImode / TImode.
9578 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9579 register used does not overlap the target.
9581 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9583 * Makefile.in (debug.o): Depend on debug.h.
9584 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9585 * debug.c (do_nothing_debug_hooks): Likewise.
9586 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9587 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9588 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9589 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9590 * dwarfout.c (dwarf_debug_hooks): Likewise.
9591 * integrate.c (output_inline_function): Likewise.
9592 * objc/objc-act.c (synth_module_prologue): Likewise.
9593 * sdbout.c (sdb_debug_hooks): Likewise.
9594 * toplev.c (debug_hooks): Likewise.
9595 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9597 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9599 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9600 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9601 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9602 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9603 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9604 * defaults.h (POINTER_SIZE): Define.
9605 * doc/tm.texi (POINTER_SIZE): Document default.
9607 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9609 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9611 2002-03-11 Richard Henderson <rth@redhat.com>
9613 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9614 if rebuild_label_notes_after_reload.
9616 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
9618 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
9619 emit pic register load if "internal" visibility.
9620 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9621 (cris_expand_builtin_va_arg): Do all computations on trees.
9623 2002-03-11 Richard Henderson <rth@redhat.com>
9625 * rtlanal.c: Include recog.h.
9626 (keep_with_call_p): Fix thinko.
9627 * Makefile.in (rtlanal.o): Update dependencies.
9629 2002-03-11 Chris Meyer <cmeyer@gatan.com>
9631 * genflags.c (gen_insn): Use IS_VSPACE.
9632 * genoutput.c (output_insn_data): Likewise.
9633 (process_template): Likewise.
9635 2002-03-11 Richard Henderson <rth@redhat.com>
9637 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9639 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
9641 * Makefile.in: Update.
9642 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9643 Update documentation.
9644 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9645 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9647 2002-03-11 Zack Weinberg <zack@codesourcery.com>
9649 * Makefile.in: Give texi2pod its input file as a command line
9650 argument, not on stdin.
9652 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
9653 Daniel Berlin <dan@dberlin.org>
9655 C++ alias analysis improvement.
9656 * alias.c (record_component_aliases): Record aliases for base
9659 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
9661 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9663 2002-03-11 Douglas B Rupp <rupp@gnat.com>
9665 * toplev.c (vms_fopen): Remove, not needed.
9667 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9669 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9671 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9672 for FP, already done later.
9674 * toplev.c (debug_args): Add entry for VMS_DEBUG.
9675 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9677 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
9679 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9680 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9681 LARGEST_EXPONENT_IS_NORMAL for the given mode.
9682 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9683 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9684 (ediv, emul, eldexp, esqrt): Likewise.
9685 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9686 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9687 (saturate): New function.
9688 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9689 (make_nan): Use a saturation value instead of a NaN if
9690 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
9691 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
9692 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
9693 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
9694 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
9695 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
9696 !ROUND_TOWARDS_ZERO.
9697 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
9698 (ROUND_TOWARDS_ZERO): Document.
9700 2002-03-11 Andreas Jaeger <aj@suse.de>
9702 * cfg.c (dump_flow_info): Remove unused variable.
9704 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
9706 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
9707 computations on trees.
9709 2002-03-10 Richard Henderson <rth@redhat.com>
9712 * reload.c (copy_replacements_1): New.
9713 (copy_replacements): Use it to recurse through the rtx.
9715 2002-03-10 Richard Henderson <rth@redhat.com>
9717 * loop.c (strength_reduce): Compute number of iterations as
9718 unsigned HOST_WIDE_INT.
9720 2002-03-10 Richard Henderson <rth@redhat.com>
9722 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
9723 to move away from the end of the block.
9725 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
9727 PR preprocessor/5899
9728 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
9730 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9732 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
9734 * attribs.c (decl_attributes): Fix signed/unsigned warning.
9736 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
9738 * config/mmix/mmix.c: Improve comments.
9739 (mmix_target_asm_function_prologue): Drop variable
9740 empty_stack_frame. Don't allocate unused slot above fp.
9741 (mmix_target_asm_function_epilogue): Mirror prologue changes.
9742 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
9743 brace in first column.
9744 (enum reg_class): Ditto.
9745 (FIRST_PARM_OFFSET): Now 0.
9746 (USER_LABEL_PREFIX): Remove #if 0:d definition.
9748 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9750 * combine.c (make_extraction): Fix error in last change.
9752 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9754 * c4x.c (c4x_fp_reglist): Const-ify.
9755 * cris.c (cris_print_operand): Likewise.
9756 * i386.c (ix86_va_arg): Likewise.
9757 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
9758 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
9759 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
9760 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
9761 * mcore.h (regno_reg_class): Likewise.
9762 * mips.c (gen_int_relational): Likewise.
9763 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
9764 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
9765 * pdp11.c (move_costs): Likewise.
9766 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
9767 * s390.c (s390_branch_condition_mnemonic, regclass_map):
9769 * s390.h (regclass_map): Likewise.
9770 * sh.c (shift_amounts): Likewise.
9771 * sh.md (rotlsi3): Likewise.
9773 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9775 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
9776 (ne0+5): Use new clobber to generate proper shift pattern.
9777 Patch by Michael Matz <matz@kde.org>.
9779 2002-03-09 Andreas Schwab <schwab@suse.de>
9781 * gcc.c (validate_all_switches): Also handle `%W{...}'.
9783 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9785 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
9787 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9790 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
9791 even for non-representable constants.
9793 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9795 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
9796 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
9797 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
9798 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
9799 (pop_function_context): Compute MAY_SHARE parameter for
9801 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
9802 (gen_mem_addressof): Call fixup_var_refs with new parm.
9804 * combine.c (make_extraction): Don't make extension of CONST_INT.
9806 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9808 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
9809 in o32 and o64 ABIs.
9810 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
9811 but getting fixed-size structs passed in registers regardless of
9812 padding in o32 and o64 ABIs.
9814 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
9815 offset before loading address of argument passed by transparent
9818 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
9820 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
9822 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9824 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
9825 marker such that registers after it are saved.
9827 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9829 * sparc.c (arith_4096_operand): Fix error in last change.
9831 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9833 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
9836 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9838 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
9841 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9843 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
9845 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
9847 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
9848 removed; fix return value.
9849 * combine.c (combine_instructions): Dirtify blocks where we failed to
9850 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
9851 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
9853 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9855 * gcse.c (insert_insn_end_bb): Fix typo in last change.
9857 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
9859 * recog.c (peephole2_optimize): Re-distribute EH edges.
9861 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
9863 * expr.c (expand_expr): Use unsave lang hook.
9864 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
9865 (LANG_HOOKS_INITIALIZER): Update.
9866 * langhooks.h (struct lang_hooks): New hook unsave.
9867 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
9868 (unsave_expr_1): Remove unused lang_unsave_expr_now.
9869 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
9870 (unsave_expr_now): Remove.
9871 * tree.h (unsave_expr_now, lang_unsave,
9872 lang_unsave_expr_now): Remove.
9875 2002-03-08 Andreas Jaeger <aj@suse.de>
9877 * flow.c (propagate_block_delete_insn): Remove unused variable.
9879 2002-03-08 Kazu Hirata <kazu@hxi.com>
9881 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
9882 insn length for memory load/store.
9884 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
9886 * doc/install.texi (--with-libiconv-prefix): Document.
9888 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
9890 * doc/sourcebuild.texi: Fix typo.
9892 2002-03-08 Jakub Jelinek <jakub@redhat.com>
9895 * builtins.c (std_expand_builtin_va_arg): Do all computations on
9898 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9900 * rtl.c (copy_most_rtx): Move from here ...
9901 * emit-rtl.c (copy_most_rtx): ... to here.
9903 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9905 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
9906 SUBTARGET_CPP_SIZE_SPEC.
9907 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
9909 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
9911 2002-03-07 Matt Hiller <hiller@redhat.com>
9913 * gensupport.c (first_dir_md_include): Renamed from include;
9914 change all references.
9915 (last_dir_md_include): Renamed from last_include; change all
9917 (init_md_reader): Unconditionally initialize base_dir whether or
9918 not filename is a relative path.
9920 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
9922 * config/fp-bit.c (_unord_f2): Compile it in even if
9923 US_SOFTWARE_GOFAST is enabled.
9925 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
9926 NULL_RTX. Set all HFmode operations as NULL_RTX.
9927 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
9928 NULL_RTX, try reversing the comparison and the operands.
9930 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
9932 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
9933 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
9936 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
9938 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
9940 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
9942 * basic-block.h (fixup_abnormal_edges): Declare.
9943 * reload1.c (fixup_abnormal_edges): New function.
9944 * reg-stack.c (convert_regs): Use it.
9946 * gcse.c (insert_insn_end_bb): Handle trapping insns.
9948 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
9950 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
9952 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
9953 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
9954 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
9955 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
9956 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
9957 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
9958 unless x and y could be infinite.
9959 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
9960 Check that the common type of both arguments is a real, even for
9961 targets without unordered comparisons. Allow an integer argument
9962 to be compared against a real.
9963 (expand_tree_builtin): Use expand_unordered_cmp.
9964 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
9965 * cse.c (fold_rtx): Likewise. Fix indentation.
9966 * fold-const.c (fold_real_zero_addition_p): New.
9967 (fold): Use it, and the new HONOR_... macros.
9968 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
9969 * jump.c (reversed_comparison_code_parts): After searching for
9970 the true comparison mode, use HONOR_NANS to decide whether it
9971 can be safely reversed.
9972 (reverse_condition_maybe_unordered): Remove IEEE check.
9973 * simplify-rtx.c (simplify_binary_operation): Use the new macros
9974 to decide which simplifications are valid. Allow the following
9975 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
9976 and (a - -b) to (a + b).
9977 (simplify_relational_operation): Use HONOR_NANS.
9978 * doc/tm.texi: Document the MODE_HAS_... macros.
9980 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9982 * combine.c (simplify_comparison): If simplifying a logical shift
9983 right and compare with constant, force the comparison to unsigned.
9985 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
9987 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
9989 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
9991 (alt_reg_names): Remove % for vrsave.
9993 2002-03-06 Richard Henderson <rth@redhat.com>
9995 PR optimization/5844
9996 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
9997 if used indicates we've already emitted one copy of an operand.
9998 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
9999 (gen_split): Supply a non-null used.
10001 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10003 * reload1.c (reload): Unshare all rtl after reload is done.
10005 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10006 but simply fail if the expression is too complex to simplify.
10007 (simplify_gen_binary): Handle simplify_plus_minus failures.
10009 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10011 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10012 consistently call delete_trivially_dead_insns after CSE and GCSE;
10013 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10014 after liveness2; update comment in last crossjumping.
10015 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10017 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10019 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10020 after completing fast dead code elimination.
10022 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10025 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10027 * version.c: Fix misplaced leading blanks on first line.
10029 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10031 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10033 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10035 * cfgcleanup.c (mentions_nonequal_regs): New function.
10036 (thread_jump): Use it.
10037 * toplev.c (rest_of_compilation): Run jump threading after
10040 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10042 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10045 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10047 * predict.c (estimate_bb_frequencies): Do not reload the
10048 frequencies from notes.
10050 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10052 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10053 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10055 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10056 delete_noop_moves): Return indeger.
10057 * flow.c (ndead): New variable.
10058 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10059 BB argument; update callers.
10060 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10061 (life_analysis): Do not call purge_all_dead_edges.
10062 (update_life_info): Return number of deleted insns; print statistics.
10063 (update_life_info_in_dirty_blocks): likewise.
10064 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10065 return number of insns deleted.
10067 * cse.c: Include timevar.h
10068 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10069 iterate until stabilizes; print statistics; return number of killed
10071 * Makefile.in: (cse.o): Add timevar.h dependency
10072 * rtl.h (delete_trivially_dead_insns): New.
10073 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10074 * toplev.c (rest_of_compilation): Update callers.
10076 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10077 (try_optimize_cfg): Do not update liveness.
10078 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10079 removal stabilizes; use delete_trivially_dead_insns.
10081 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10083 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10085 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10086 callbacks when processing assembly language.
10088 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10090 * pa.h (ASM_FILE_END): Define.
10091 * som.h (ASM_FILE_END): Delete.
10093 * pa.c (function_arg): Don't pass floats in general registers in
10094 indirect calls if TARGET_ELF32.
10096 2002-03-05 Richard Henderson <rth@redhat.com>
10098 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10100 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10102 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10104 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10106 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10107 -r command line. Don't hide any symbols if not building
10110 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10112 * cfg.c (dump_flow_info): Warn about profile mismatches.
10113 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10114 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10116 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10118 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10119 wide volatile memory by parts.
10121 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10123 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10126 2002-03-05 Richard Henderson <rth@redhat.com>
10128 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10130 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10132 * toplev.c (documented_lang_options): Document more
10133 language-specific options.
10134 * doc/invoke.texi (Warning Options): Correct documentation for
10135 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10136 * c-decl.c (c_decode_option): Use a table to handle warning options.
10138 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10140 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10141 parameter to mmix_encode_section_info.
10142 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10143 relocatably. Always produce ELF, not mmo if linking relocatably.
10144 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10145 first is non-zero, don't add symbol prefix.
10146 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10147 prototype accordingly.
10149 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10151 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10153 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10155 * configure.in: Increase required makeinfo version to 4.1.
10156 * configure: Regenerate.
10158 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10160 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10163 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10165 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10166 * doc/invoke.texi: Fix @math uses.
10168 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10170 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10173 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10175 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10176 (powerpc-*-eabisimaltivec*): Same.
10178 * config/rs6000/t-ppcendian: New.
10180 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10182 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10183 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10184 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10186 2002-03-03 Richard Henderson <rth@redhat.com>
10188 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10190 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10192 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10193 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10194 tree.c, config/m68k/m68k.c:
10195 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10196 REAL_ARITHMETIC blocks unconditional. Delete some further
10197 #ifdef blocks predicated on REAL_ARITHMETIC.
10198 * flags.h, toplev.c: Delete remaining references to
10199 flag_pretend_float.
10201 * doc/invoke.texi: Remove documentation of -fpretend-float.
10202 * doc/tm.texi: Describe the various REAL_* macros as provided by
10203 real.h, not by the target configuration files.
10205 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10206 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10207 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10208 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10209 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10210 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10211 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10212 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10213 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10214 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10215 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10216 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10217 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10218 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10219 config/xtensa/xtensa.h:
10220 Do not define, undefine, or mention in comments any of
10221 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10222 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10223 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10224 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10225 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10226 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10227 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10228 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10229 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10231 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10233 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10234 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10235 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10236 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10237 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10238 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10240 * defaults.h (BITS_PER_WORD): Define.
10241 * doc/tm.texi (BITS_PER_WORD): Document default value.
10243 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10244 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10245 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10247 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10249 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10250 lieu of explicit sizeof/sizeof.
10251 * i386.c (override_options, ix86_init_mmx_sse_builtins,
10252 ix86_expand_builtin): Likewise.
10253 * mips.c (mips_add_gc_roots): Likewise.
10254 * mmix.c (mmix_output_condition): Likewise.
10255 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10256 altivec_init_builtins): Likewise.
10257 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10258 * cppexp.c (Nsuff, parse_number): Likewise.
10259 * cppinit.c (builtin_array_end): Likewise.
10260 * gcc.c (n_default_compilers, process_command): Likewise.
10261 * genpreds.c (output_predicate_decls): Likewise.
10262 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10263 * lcm.c (N_ENTITIES): Likewise.
10264 * stor-layout.c (set_sizetype): Likewise.
10266 2002-03-03 Richard Henderson <rth@redhat.com>
10268 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10269 for types or labels.
10271 2002-03-03 Richard Henderson <rth@redhat.com>
10273 * c-decl.c (start_decl): Initialized variables are not common.
10275 2002-03-02 Per Bothner <per@bothner.com>
10277 * gcc.c (option_map): Suport new --bootclasspath option.
10278 --CLASSPATH is now just an alias for --classpath.
10280 2002-03-02 Richard Henderson <rth@redhat.com>
10282 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10283 load if "internal" visibility.
10284 * doc/extend.texi: Document visibility meanings.
10286 2002-03-02 Richard Henderson <rth@redhat.com>
10288 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10289 to functions as well.
10291 2002-03-02 Richard Henderson <rth@redhat.com>
10293 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10294 (handle_visibility_attribute): Don't call assemble_visibility.
10295 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10296 without asmspec. Invoke assemble_alias when needed.
10297 * varasm.c (maybe_assemble_visibility): New.
10298 (assemble_start_function, assemble_variable, assemble_alias): Use it.
10300 2002-03-02 Richard Henderson <rth@redhat.com>
10302 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10303 invoke ENCODE_SECTION_INFO with first call flag.
10305 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10306 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10307 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10308 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10309 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10310 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10311 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10312 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10313 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10314 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10315 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10316 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10317 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10318 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10319 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10320 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10321 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10322 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10323 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10324 config/sh/sh.h, config/sparc/sparc.h,
10325 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10326 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10327 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10328 FIRST argument. As needed, examine it and do nothing.
10330 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10331 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10332 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10334 * config/arm/t-pe (pe.o): Add dependencies.
10336 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10338 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10339 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10340 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10341 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10342 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10343 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10344 * defaults.h (BITS_PER_UNIT): Define.
10345 * doc/tm.texi (BITS_PER_UNIT): Document default value.
10347 2002-03-02 Kazu Hirata <kazu@hxi.com>
10349 * config/h8300/h8300-protos.h: Add a prototype for
10350 compute_a_shift_length.
10351 * config/h8300/h8300.c (h8300_asm_insn_count): New.
10352 (compute_a_shift_length): Likewise.
10353 (h8300_adjust_insn_length): Do not adjust insn length of shift
10355 * config/h8300/h8300.md (anonymous shift patterns): Use
10356 compute_a_shift_length.
10358 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10360 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10361 trunc_int_for_mode.
10363 * emit-rtl.c (offset_address): Call update_temp_slot_address.
10365 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10367 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10368 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10369 * flags.h (flag_zero_initialized_in_bss): Declare.
10370 * toplev.c (flag_zero_initialized_in_bss): New flag.
10371 (lang_independent_options): Add flag_zero_initialized_in_bss.
10372 * tree.c (initializer_zerop): New function.
10373 * tree.h (initializer_zerop): Declare.
10374 * varasm.c (assemble_variable): If we can emit bss, put zero
10375 initializers in the bss section.
10377 2002-03-02 Alan Modra <amodra@bigpond.net.au>
10379 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10380 like more than one symbol per .weak directive.
10382 2002-03-01 Richard Henderson <rth@redhat.com>
10384 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10385 adjust argument_pointer by pretend_args_size.
10386 (ia64_va_start): Adjust va_start address by -pretend_args_size.
10388 2002-03-01 Kazu Hirata <kazu@hxi.com>
10390 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10392 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
10394 * toplev.c (rest_of_compilation): Delete dead jumptables before
10396 * flow.c (delete_dead_jumptables): Make global.
10397 * rtl.h (delete_dead_jumptables): Declare.
10399 2002-03-01 David Edelsohn <edelsohn@gnu.org>
10401 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10402 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10403 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10405 2002-03-01 Kazu Hirata <kazu@hxi.com>
10407 * config/h8300/h8300-protos.h: Fix formatting.
10408 * config/h8300/h8300.c: Likewise.
10409 * config/h8300/h8300.h: Likewise.
10411 2002-03-01 Kazu Hirata <kazu@hxi.com>
10413 * config/h8300/h8300.c (print_operand): Support 16-bit
10414 constant addresses.
10415 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10417 2002-02-28 Richard Henderson <rth@redhat.com>
10419 * expmed.c (store_bit_field): Prevent generation of CONCATs;
10420 pun complex values as integers; use gen_lowpart instead of
10422 (extract_bit_field): Likewise.
10424 2002-03-01 Alan Modra <amodra@bigpond.net.au>
10425 David Edelsohn <edelsohn@gnu.org>
10427 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10428 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10429 (SUPPORTS_WEAK): Likewise.
10430 * output.h (add_weak): Add tree param.
10431 * varasm.c (add_weak): Likewise. Save decl.
10432 (struct weak_syms): Add decl field.
10433 (mark_weak_decls): New function.
10434 (init_varasm_once): ggc_add_root mark_weak_decls.
10435 (assemble_start_function): Use ASM_WEAKEN_DECL.
10436 (assemble_variable): Likewise.
10437 (assemble_alias): Likewise.
10438 (declare_weak): Pass decl to add_weak.
10439 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10440 (remove_from_pending_weak_list): Declare and define for
10442 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10443 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10444 * defaults.h (SUPPORTS_WEAK): Likewise.
10445 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10446 .weak for code sym. Do emit .size for descriptor sym.
10447 (ASM_DECLARE_FUNCTION_SIZE): Define.
10448 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10449 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
10450 .lglobl unless TARGET_XCOFF. Formatting fixes.
10451 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10452 .weak for code sym.
10453 (HANDLE_PRAGMA_WEAK): Remove.
10454 (ASM_WEAKEN_LABEL): Remove.
10455 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10457 2002-03-01 Jason Merrill <jason@redhat.com>
10459 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10460 (TARGET_EXPR_CLEANUP): New macro.
10462 2002-02-28 Steve Ellcey <sje@cup.hp.com>
10464 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10465 to take ptr_extend into account as third type of extension.
10466 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10467 fields used by SUBREG_PROMOTED_UNSIGNED_P.
10468 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10469 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10470 * calls.c (precompute_arguments): Use new macro.
10471 (expand_call): Ditto.
10472 * combine.c (nonzero_bits): Ditto.
10473 (record_promoted_value): Ditto.
10474 * expr.c (store_expr): Ditto.
10475 (expand_expr): Ditto.
10476 * function.c (assign_parms): Ditto.
10478 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
10480 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10481 override -shared and -shared-libgcc.
10483 2002-02-28 David O'Brien <obrien@FreeBSD.org>
10485 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10487 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
10490 2002-02-28 Richard Henderson <rth@redhat.com>
10492 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10493 4 cycle latency from MM producers.
10494 (ia64_internal_sched_reorder): Likewise with pipeline flush.
10496 2002-02-28 Jakub Jelinek <jakub@redhat.com>
10498 * mklibgcc.in: Don't use GNU make extension.
10500 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10502 * c-parse.in (STATIC): New terminal.
10503 (scspec): New non-terminal. Update productions accordingly.
10504 (program): Remove bogus ifc / end ifc.
10505 (array_declarator): Simplify production using STATIC.
10507 2002-02-28 Jim Meyering <meyering@lucent.com>
10509 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10510 \a still means TARGET_BELL.
10512 2002-02-28 Richard Henderson <rth@redhat.com>
10514 * haifa-sched.c (sched_emit_insn): New.
10515 (schedule_block): Use last_scheduled_insn to track last insn.
10516 * sched-int.h (sched_emit_insn): Prototype.
10517 * config/ia64/ia64.c (last_issued): Remove.
10518 (ia64_variable_issue): Don't set it.
10519 (nop_cycles_until): Use sched_emit_insn.
10521 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
10523 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10524 extended constants.
10526 2002-02-28 Kazu Hirata <kazu@hxi.com>
10528 * config/h8300/h8300.c: Fix formatting.
10529 * config/h8300/h8300.h: Likewise.
10531 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
10533 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10534 which may overwrite the high byte of the frame pointer.
10536 2002-02-28 Bo Thorsen <bo@suse.de>
10538 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10539 (STARTFILE_SPEC): Add 64 bit files.
10540 (ENDFILE_SPEC): Likewise.
10542 2002-02-28 Jason Merrill <jason@redhat.com>
10544 * c-decl.c (finish_function): Only warn about missing return
10545 statement with -Wreturn-type.
10547 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
10549 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10551 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10552 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10554 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
10556 * basic-block.h (BB_REACHABLE): Renumber.
10557 (BB_DIRTY, BB_NEW): New flags.
10558 (clear_bb_flags): Declare.
10559 (update_life_info_in_dirty_blocks): Declare.
10560 * cfg.c (clear_bb_flags): New function.
10561 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10562 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10563 reorder_insns, emit_insn_after): Mark block as dirty.
10564 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10565 (update_life_info_in_dirty_blocks): New function.
10566 * recog.c (apply_change_group): Dirtify block.
10568 * cse.c (cse_insn): Reorder emitting of jump insn to keep
10570 * gcse.c (delete_null_pointer_checks): Likewise.
10572 * toplev.c (dump_file_index): Move cse2 after bp,
10574 (dump_file_info): Similary.
10575 (rest_of_compilation): Avoid most of CFG rebuilds;
10576 do first if converision after null pointer checks, do cse2
10577 after branch prediction; avoid full liveness rebuild after
10578 initializing subregs.
10579 * invoke.texi (-d options): Document -du, renumber.
10581 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10582 (notice_new_block): Do not set BB_UPDATE_LIFE.
10583 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10584 merge_blocks_move_successor_nojumps, merge_blocks,
10585 try_crossjump_to_edge): Likewise.
10586 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10587 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10588 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10589 (merge_of_block): Do not use life_data_ok.
10590 (find_if_case_1): Do not use SET_UPDATE_LIFE.
10591 (if_convert): Use BB_DIRTY mechanizm to update life.
10592 * lcm.c (optimize_mode_switching): Update
10593 update_life_info_in_dirty_blocks
10595 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10597 * Makefile.in (integrate.o): Update.
10598 * c-decl.c (copy_lang_decl): Rename.
10599 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10600 * integrate.c: Include langhooks.h.
10601 (copy_decl_for_inlining): Update to use langhook.
10602 * langhooks-def.h (lhd_do_nothing_t,
10603 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10604 (LANG_HOOKS_INITIALIZER): Update.
10605 * langhooks.c (lhd_do_nothing_t): New.
10606 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10607 * tree.h (copy_lang_decl): Remove.
10609 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10611 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
10613 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10614 POST_DEC, and POST_MODIFY.
10616 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10618 * c-typeck.c (digest_init): Remove unused parameter; all
10621 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
10623 * expmed.c (expand_shift): Correctly test for low part of a
10626 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10628 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10629 insn UIDs with insn addresses.
10631 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10633 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10634 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10635 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10636 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10637 gcc.c, toplev.c: Delete code implementing -traditional mode.
10639 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10640 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10641 Document removal of -traditional mode for compilation, and
10642 remove documentation only relevant to that mode.
10644 * config/nextstep.h, config/ptx4.h, config/svr4.h,
10645 config/convex/convex.h, config/d30v/d30v.h,
10646 config/i386/dgux.h, config/i386/osf1elf.h,
10647 config/i386/osfelf.h, config/i386/osfrose.h,
10648 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10649 config/m68k/hp310.h, config/m88k/dgux.h,
10650 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10651 config/m88k/m88k.h, config/m88k/openbsd.h,
10652 config/mips/abi64.h, config/mips/osfrose.h,
10653 config/mips/svr4-5.h, config/mips/svr4-t.h,
10654 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10655 config/stormy16/stormy16.h: Remove all references to
10656 -traditional from target specs. Delete all mention of the
10657 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
10658 delete a couple of commented-out definitions of
10659 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10662 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10663 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10665 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10667 * mklibgcc.in: Don't use \n in a line subject to
10668 interpretation by echo.
10670 2002-02-27 Graham Stott <grahams@redhat.com>
10672 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10675 * loop.c (prescan_loop): Handle PARALLEL.
10677 * unroll.c (loop_iterations): Return 0 if the add_val for
10680 * final.c (output_operand_lossage): Constify PFX_STR.
10682 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10684 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
10686 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10687 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10689 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
10691 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10693 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
10695 * cpplex.c (_cpp_lex_token): Handle directives in macro
10697 * cpplib.c (_cpp_handle_directive): Save and restore state
10698 if parsing macro args when entering a directive.
10699 * cppmacro.c (collect_args): No need to handle directives
10700 in macro arguments.
10701 (enter_macro_context, replace_args): Use the original macro
10702 definition in case it was redefined whilst collecting arguments.
10704 * cpp.texi: Update.
10706 2002-02-26 David Edelsohn <edelsohn@gnu.org>
10708 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
10709 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
10710 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
10712 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
10713 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
10714 (load_toc_v4_PIC_2): Same.
10716 2002-02-26 Alan Modra <amodra@bigpond.net.au>
10718 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
10720 2002-02-26 Richard Henderson <rth@redhat.com>
10722 * config/alpha/alpha.md (ashldi_se): Re-enable.
10724 2002-02-26 Richard Henderson <rth@redhat.com>
10726 * config/alpha/alpha.c (alpha_encode_section_info): Examine
10727 MODULE_LOCAL_P; improve commentary.
10729 2002-02-26 Zack Weinberg <zack@codesourcery.com>
10731 * doc/cpp.texi: Clarify documentation of relationship between
10732 #line and #include.
10734 2002-02-26 Kazu Hirata <kazu@hxi.com>
10736 * config/h8300/h8300-protos.h: Update the prototype for
10737 compute_logical_op_length. Add the prototype for
10738 compute_logical_op_cc.
10739 * config/h8300/h8300.c (compute_logical_op_length): Figure out
10740 code from operands.
10741 (compute_logical_op_cc): New.
10742 * config/h8300/h8300.md: Combine all the logical op patterns
10743 in HImode and SImode. Use compute_logical_op_cc.
10745 2002-02-26 Kelley Cook <kelleycook@comcast.net>
10747 * config/i386/i386.c (print_operand): Don't append ATT-style
10748 length suffixs to x87 opcodes when in Intel mode.
10750 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
10752 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
10753 (init_emit_once): Update calls.
10754 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
10755 (init_syntax_once): Prototype.
10757 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
10759 * pa-linux.h (LIB_SPEC): Update definition.
10760 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10762 2002-02-26 Richard Henderson <rth@redhat.com>
10764 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
10765 if we emitted a stop bit.
10767 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10769 * configure.in (libgcc_visibility): Substitute.
10770 * configure: Rebuilt.
10771 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
10772 defined symbols .hidden.
10774 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10776 * attribs.c (c_common_attribute_table): Add visibility.
10777 (handle_visibility_attribute): New function.
10778 * varasm.c (assemble_visibility): New function.
10779 * output.h (assemble_visibility): Add prototype.
10780 * tree.h (MODULE_LOCAL_P): Define.
10781 * crtstuff.c (__dso_handle): Use visibility attribute.
10782 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
10783 for MODULE_LOCAL_P symbols too.
10784 * config/ia64/ia64.c (ia64_encode_section_info): Handle
10785 MODULE_LOCAL_P symbols the same way as local symbols.
10786 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
10787 into .sdata/.sbss by the user.
10788 * doc/extend.texi (Function Attributes): Document visibility
10791 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10794 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
10795 STRING_CST initializer spanning the whole variable without
10797 If expand_expr returned MEM, don't use it.
10799 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
10801 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
10802 generate a die for the lexical block.
10804 2002-02-26 Kazu Hirata <kazu@hxi.com>
10806 * config/h8300/h8300-protos.h: Add a prototype for
10807 compute_logical_op_length.
10808 * config/h8300/h8300.c (compute_logical_op_length): New.
10809 * config/h8300/h8300.md (anonymous logical patterns): Use
10810 compute_logical_op_length for length.
10812 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10814 * dwarf2out.c (modified_type_die): Do not call type_main_variant
10816 (gen_type_die): Same.
10818 * attribs.c (handle_vector_size_attribute): Set debug information.
10820 2002-02-26 Daniel Egger <degger@fhm.edu>
10822 * config/rs6000/rs6000.md: Swap define_insn attributes to
10823 fix incorrect generation of merge high instructions instead
10826 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10828 * c-typeck.c (really_start_incremental_init): Use
10829 bitsize_zero_node for vectors.
10831 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10833 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
10834 ("*set_vrsave_internal"): Same.
10836 2002-02-25 Richard Henderson <rth@redhat.com>
10838 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
10839 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
10841 2002-02-25 Jakub Jelinek <jakub@redhat.com>
10844 * config/i386/i386.c (ix86_return_pops_args): Only pop
10845 fake structure return argument if it was passed on the stack.
10847 2002-02-25 Jason Merrill <jason@redhat.com>
10849 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
10852 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
10854 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
10855 link with shared_name only.
10856 * doc/invoke.texi (Link Options): Document new behavior.
10858 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
10860 * c-typeck.c (push_init_level): Handle vectors.
10862 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
10864 * config/sparc/sparc.c (const64_high_operand): Zero-extend
10865 operands of SPARC_SETHI_P.
10866 (input_operand): Likewise.
10867 (sparc_emit_set_const32): Likewise.
10868 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
10869 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
10870 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
10871 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
10872 (movdi_insn_sp64_vis): Likewise.
10873 (movdi split, movdf split): Use SETHI32.
10874 * doc/md.texi: Document SPARC constraints L, M and N.
10876 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
10878 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
10879 ("*set_vrsave_internal"): use mfspr for Darwin.
10881 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
10882 gen_get_vrsave_internal.
10884 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10886 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
10888 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
10890 * cpplex.c (cpp_interpret_charconst): Get signedness or
10891 otherwise of wide character constants correct.
10892 * cppexp.c (lex): Get signedness of wide charconsts correct.
10894 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10896 * optabs.c (widen_operand): Only call convert_modes for
10897 promoted SUBREG if signedness matches.
10898 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
10900 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10902 * cpplib.c (glue_header_name): Use local buffer to build up
10905 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10907 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
10909 2002-02-23 Kazu Hirata <kazu@hxi.com>
10911 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
10912 H8/300[HS] separately.
10913 * config/h8300/h8300.md: Remove the early clobber constraint
10914 from bit field patterns.
10916 2002-02-23 Kazu Hirata <kazu@hxi.com>
10918 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
10920 (mulhisi3): Likewise.
10921 (umulqisi3): Likewise.
10922 (umulhisi3): Likewise.
10924 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10926 * cppinit.c (output_deps): Correct test for stdout output.
10927 (init_dependency_output): Cure warning.
10929 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10931 * expr.c (store_expr): When converting expression to promoted
10932 equivalent type, allow using SUBREG_REG of TARGET as the target
10933 of the expansion of EXP.
10934 * loop.c (basic_induction_var, case SUBREG): Always look inside.
10935 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
10936 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
10937 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
10938 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
10940 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
10942 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
10943 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
10944 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
10946 2002-02-23 Jakub Jelinek <jakub@redhat.com>
10948 PR optimization/5747
10949 * loop.c (scan_loop): Update reg info if move_movables created new
10952 2002-02-23 David Edelsohn <edelsohn@gnu.org>
10954 * gcc.c (init_gcc_spec): Revert last change.
10956 2002-02-23 David Edelsohn <edelsohn@gnu.org>
10958 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
10959 gpc_reg_operand constraint.
10961 2002-02-23 Alan Modra <amodra@bigpond.net.au>
10963 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
10964 Simplify comparison of `low'.
10965 (add_operand): Fix formatting.
10966 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
10967 (mask_operand): Disallow mask to wrap in 64-bit mode.
10968 (rs6000_stack_info): Remove redundant test setting push_p.
10969 (output_toc): Fix formatting.
10970 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
10971 cc_reg_not_cr0_operand constraint.
10972 (booldi3, boolcdi3 splitters): Same.
10974 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
10976 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
10978 2002-02-22 David Edelsohn <edelsohn@gnu.org>
10980 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
10981 gcc invoked with -shared-libgcc.
10983 2002-02-22 Jakub Jelinek <jakub@redhat.com>
10986 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
10987 decl if any of elements was TREE_USED.
10989 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
10991 * config/sparc/sol2.h: Don't include sys/mman.h.
10992 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
10993 (arith_4096_operand): Don't throw high bits away.
10994 (const64_operand): Take sign extension of CONST_INTs into account.
10995 (const64_high_operand, sparc_emit_set_const32): Likewise.
10996 (GEN_HIGHINT64): Likewise.
10997 (sparc_emit_set_const64_quick1): Likewise.
10998 (const64_is_2insns): Likewise.
10999 (print_operand): Use trunc_int_for_mode for sign extension.
11000 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11001 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11002 chars. Assume CONST_INT is already properly sign-extended.
11003 (movdi split): Sign-extend each SImode part.
11004 (andsi3 split): Don't mask high bits off, so that result
11005 remains properly sign-extend.
11006 (iorsi3 split): Likewise.
11007 (xorsi3 split): Likewise.
11009 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11011 * fold-const.c (fold): Fix typo in comments.
11013 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11015 * Makefile.in (langhooks.o): Update dependencies.
11017 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11019 * langhooks.c: Include flags.h.
11021 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11023 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11025 * c-common.c (c_common_post_options): Set inline trees by
11028 * doc/extend.texi (Function Attributes): Document always_inline
11030 Update documentation about inlining when not optimizing.
11032 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11034 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11035 unless DECL_ALWAYS_INLINE.
11037 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11038 unless DECL_ALWAYS_INLINE.
11039 (c_disregard_inline_limits): Disregard if always_inline set.
11041 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11042 Disregard if always_inline set.
11043 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11044 unless DECL_ALWAYS_INLINE.
11046 * attribs.c (handle_always_inline_attribute): New.
11047 (c_common_attribute_table): Add always_inline.
11049 * config/rs6000/altivec.h: Add prototypes for builtins
11050 requiring the always_inline attribute.
11052 2002-02-21 Eric Christopher <echristo@redhat.com>
11054 * expmed.c (store_bit_field): Try to simplify the subreg
11055 before generating a new one when when the mode size of
11056 value is less than maxmode.
11058 2002-02-21 Richard Henderson <rth@redhat.com>
11060 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11061 than gen_rtx_PLUS to form the sum.
11062 * explow.c (force_reg): Rearrange to not allocate new pseudo
11063 when force_operand returns a register.
11064 * expr.c (expand_assignment): Allow offset_rtx expansion to
11065 return a sum. Do not force addresses into registers.
11066 (expand_expr): Likewise.
11067 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11068 to canonicalize arithmetic that didn't simpify.
11069 (simplify_plus_minus): New argument force; update
11070 all callers. Don't split CONST unless we can do something with it,
11071 and wouldn't lose the constness of the operands.
11073 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11074 that we generated earlier.
11076 2002-02-21 Tom Tromey <tromey@redhat.com>
11078 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11079 (output_line_info): Use constant `1', with a long explanatory
11081 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11083 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11085 * jump.c (redirect_jump): If old label has no UID, don't try to
11088 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11090 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11091 If input is constant, do shifts at compile time.
11093 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11095 * doc/extend.texi: Fix some more overfull hboxes.
11097 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11099 PR optimization/4994
11100 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11103 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11106 * expr.h (expand_and): Add mode argument.
11107 * expmed.c (expand_and): Add mode argument.
11108 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11109 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11110 * except.c (expand_builtin_extract_return_addr): Likewise.
11111 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11112 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11113 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11114 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11115 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11116 gen_rtx (CONST_INT, VOIDmode, x).
11118 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11121 * stmt.c (warn_if_unused_value): Move side effects test once more.
11123 2002-02-20 Torbjorn Granlund <tege@swox.com>
11125 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11126 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11128 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11130 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11131 SUBREG or ZERO_EXTEND.
11133 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11135 * sh.h (current_function_anonymous_args): Remove.
11136 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11137 of current_function_varargs and current_function_stdarg is set.
11138 * sh.c (sh_expand_prologue): Check current_function_varargs /
11139 current_function_stdarg / TARGET_SH5 instead of
11140 current_function_anonymous_args.
11142 * sh64.h (TARGET_VERSION): Define.
11144 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11146 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11147 VRSAVE_REGNO on TARGET_ALTIVEC.
11149 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11151 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11152 bits of SImode const_int.
11153 (includes_rshift_p): Likewise.
11154 (print_operand): Call mask_operand and mask64_operand with correct
11156 (rs6000_output_function_epilogue): Pad traceback table to word.
11157 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11158 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11159 mask64_operand with correct mode.
11160 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11162 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11165 * varasm.c (get_pool_constant_mark): New.
11166 * rtl.h (get_pool_constant_mark): Add prototype.
11167 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11168 be represented if it has not been output.
11170 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11172 * combine.c (do_SUBST): Sanity check substitutions of
11173 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11174 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11175 CONST_INT into its operand.
11176 (known_cond): Likewise, for ZERO_EXTEND.
11177 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11178 allow for simplification of wide modes. Reject CONST_INTs in
11179 ZERO_EXTEND when their actual mode is not given.
11181 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11183 * c-decl.c (pushdecl): If no global declaration is found for an
11184 extern declaration in block scope, try a limbo one.
11186 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11189 * c-common.c (pointer_int_sum): Moved from...
11190 * c-typeck.c (pointer_int_sum): ...here.
11191 * c-common.h (pointer_int_sum): Add prototype.
11193 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11196 * c-decl.c (duplicate_decls): Return 0 if issued error about
11199 2002-02-20 Roger Sayle <roger@eyesopen.com>
11200 Jakub Jelinek <jakub@redhat.com>
11203 * tree.c (host_integerp): Ensure that the constant integer is
11204 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11205 when pos is zero or non-zero respectively. Clarify comment.
11206 * c-format.c (check_format_info_recurse): Fix host_integerp
11207 usage; the pos argument should be zero when assigning to a
11208 signed HOST_WIDE_INT.
11210 2002-02-20 Richard Henderson <rth@redhat.com>
11212 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11213 of the operand, rather than assuming TImode.
11214 (ix86_expand_binop_builtin): Cope with commutative patterns
11215 using nonimmediate_operand for both operands.
11216 (ix86_expand_timode_binop_builtin): Likewise.
11217 (ix86_expand_store_builtin): Validate operand 1.
11218 (ix86_expand_unop1_builtin): Likewise.
11220 2002-02-20 Philip Blundell <philb@gnu.org>
11223 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11225 2002-02-20 Richard Henderson <rth@redhat.com>
11228 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11230 2002-02-20 Tom Tromey <tromey@redhat.com>
11232 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11233 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11234 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11235 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11236 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11239 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11241 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11242 for (const_int 0) in X not just INTVAL.
11244 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
11246 * doc/extend.texi: Avoid or reduce overfull hboxes.
11248 2002-02-20 Diego Novillo <dnovillo@redhat.com>
11250 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11251 operations if the field does not start at a mode boundary.
11253 2001-02-20 Joel Sherrill <joel@OARcorp.com>
11255 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11256 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11257 Also done for -Acpu and -Amachine.
11259 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
11261 * cppinit.c (init_dependency_output): Take deps output file
11262 from -o if none given with -MF. Suppress normal output.
11263 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11264 * doc/cpp.texi, doc/invoke.texi: Update.
11266 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11268 * toplev.c (output_quoted_string): Write unprintable
11269 characters with octal escapes.
11271 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11273 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11274 really_call_used[VRSAVE_REGNO] if not Altivec.
11276 2002-02-19 Alan Modra <amodra@bigpond.net.au>
11278 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11280 (constant_pool_expr_1): Fix formatting.
11281 (rs6000_legitimize_reload_address): Likewise.
11283 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11285 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11286 now that we have one.
11288 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11290 * tree.h (struct tree_common): Remove aux. Add unused_0 at
11291 end of first block of bitfields (which was only seven bits);
11292 rename dummy to unused_1; remove comment which is no longer true.
11294 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11296 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11298 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11301 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11305 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11306 arm_is_longcall_p rather than inspecting call-type cookie
11308 (call_value_insn) [TARGET_THUMB]: Likewise.
11310 2002-02-19 Graham Stott <grahams@redhat.com>
11312 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11314 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11316 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11317 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11318 (FP_SAVE_INLINE): Delete.
11320 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11321 * config/rs6000/eabi.asm: Remove ABI save restore routines.
11322 * config/rs6000/t-ppccomm: Build crtsavres.o.
11323 * config/rs6000/crtsavres.asm: New file.
11325 2002-02-19 Philip Blundell <philb@gnu.org>
11327 * config/arm/arm.c (use_return_insn): Don't reject interrupt
11329 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11330 (output_return_instruction): Allow interrupt functions to return with
11331 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
11332 (arm_expand_prologue): Subtract 4 before stacking LR in an
11333 interrupt function.
11335 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11337 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11338 decl, not just FUNCTION_DECL.
11339 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11340 (arm_assemble_integer): Likewise.
11341 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11344 2002-02-19 matthew green <mrg@eterna.com.au>
11346 * config.gcc (sparc-*-netbsdelf*): Enable target.
11347 (sparc64-*-netbsd*): New target.
11348 * config/sparc/netbsd-elf.h: New file.
11349 * config/sparc/t-netbsd64: New file.
11351 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11353 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11355 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
11357 * doc/invoke.texi: explicitly list the style guidelines that
11358 -Weffc++ checks for.
11360 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
11362 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11364 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
11367 * gcc.c (cpp_unique_options): Treat -o as indicating object file
11368 only if not -E. If -E, pass -o through to the preprocessor.
11370 2002-02-19 Kazu Hirata <kazu@hxi.com>
11372 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11373 register number with an appropriate macro.
11375 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11377 * doc/rtl.texi (Constants): Close @code tag.
11379 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
11381 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11382 ("mmx_uavgv4hi3"): Same.
11383 ("pmulhrwv4hi3"): Same.
11385 * tree-inline.c (walk_tree): Handle vectors.
11387 * c-common.c (constant_expression_warning): Handle vectors.
11388 (overflow_warning): Same.
11390 * sched-deps.c (sched_analyze_2): Handle vectors.
11392 * rtlanal.c (rtx_unstable_p): Handle vectors.
11393 (rtx_varies_p): Same.
11394 (count_occurrences): Same.
11395 (regs_set_between_p): Same.
11396 (modified_between_p): Same.
11397 (modified_in_p): Same.
11398 (volatile_insn_p): Same.
11399 (volatile_refs_p): Same.
11400 (side_effects_p): Same.
11401 (may_trap_p): Same.
11402 (inequality_comparisons_p): Same.
11403 (replace_regs): Same.
11404 (computed_jump_p_1): Same.
11406 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11408 (inner_mode_array): New.
11409 (copy_rtx): Handle vectors.
11410 (copy_most_rtx): Same.
11411 (rtx_equal_p): Same.
11412 (get_mode_alignment): Adjust for vectors.
11414 * resource.c (mark_referenced_resources): Handle vectors.
11415 (mark_set_resources): Same.
11417 * reload1.c (eliminate_regs): Handle vectors.
11418 (elimination_effects): Same.
11419 (scan_paradoxical_subregs): Same.
11421 * reload.c (subst_reg_equivs): Handle vectors.
11423 * regrename.c (scan_rtx): Handle vectors.
11425 * regclass.c (reg_scan_mark_refs): Handle vectors.
11427 * recog.c (find_single_use_1): Handle vectors.
11429 * local-alloc.c (equiv_init_varies_p): Handle vectors.
11430 (contains_replace_regs): Same.
11431 (memref_referenced_p): Same.
11433 * integrate.c (copy_rtx_and_substitute): Handle vectors.
11434 (subst_constants): Same.
11436 * genattrtab.c (attr_copy_rtx): Handle vectors.
11437 (encode_units_mask): Same.
11438 (clear_struct_flag): Same.
11439 (count_sub_rtxs): Same.
11441 * gcse.c (want_to_gcse_p): Handle vectors.
11442 (oprs_unchanged_p): Same.
11443 (hash_expr_1): Same.
11444 (oprs_not_set_p): Same.
11445 (expr_killed_p): Same.
11446 (compute_transp): Same.
11447 (store_ops_ok): Same.
11449 * function.c (purge_addressof_1): Do not allow paradoxical subregs
11451 (fixup_var_refs_1): Same.
11452 (instantiate_virtual_regs_1): Same.
11454 * fold-const.c (operand_equal_p): Handle vectors.
11456 (rtl_expr_nonnegative_p): Same.
11458 * flow.c (mark_used_regs): Handle vectors.
11460 * df.c (df_uses_record): Handle vectors.
11462 * cselib.c (cselib_subst_to_values): Handle vectors.
11463 (cselib_mem_conflict_p): Same.
11466 * cse.c (canon_reg): Handle vectors.
11468 (cse_process_notes): Same.
11469 (count_reg_usage): Same.
11470 (canon_hash): Same.
11472 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11474 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11476 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11477 (gen_rtx): Handle CONST_VECTOR.
11478 (gen_const_vector_0): New.
11479 (copy_rtx_if_shared): CONST_VECTORs can be shared.
11480 (reset_used_flags): Same.
11481 (copy_insn_1): Same.
11482 (initializer_constant_valid_p): Handle VECTOR_CST.
11484 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11486 * doc/rtl.texi (Constants): Document const_vector.
11487 (CONST0_RTX): Update for vectors.
11488 (RTL sharing): Same.
11490 * print-tree.c (print_node): Add case for VECTOR_CST.
11492 * tree.h (TREE_VECTOR_CST_ELTS): New.
11493 (struct tree_vector): New.
11494 (union tree_node): Add vector node.
11495 (build_vector): Add prototype.
11497 * tree.def (VECTOR_CST): New.
11499 * tree.c (build_vector): New.
11501 * expmed.c (make_tree): Handle CONST_VECTOR.
11503 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11504 (CONST_VECTOR_ELT): New.
11505 (CONST_VECTOR_NUNITS): New.
11507 * machmode.h (GET_MODE_INNER): New.
11508 (DEF_MACHMODE): Accept 8th arg.
11510 * machmode.def: Add 8th argument for vector inner mode.
11511 Add inner vector modes for vectors.
11513 * rtl.def (VEC_CONST): Remove.
11514 (CONST_VECTOR): New.
11516 * expr.c (clear_storage): Allow vectors.
11517 (is_zeros_p): Handle VECTOR_CST.
11519 * varasm.c (output_constant_pool): Handle vectors.
11520 (rtx_const): Add veclo and vechi fields.
11521 (kind): Add RTX_VECTOR.
11522 (decode_rtx_const): Add case for vector.
11524 * config/rs6000/rs6000-protos.h: Add zero_constant.
11526 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11527 constants. Force easy vector constants into memory.
11528 (easy_vector_constant): New.
11529 (emit_easy_vector_constant): New.
11530 (rs6000_legitimize_reload_address): Do not generate bad reloads on
11533 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11535 ("altivec_lvxl"): Same.
11536 (altivec_lvebx): Same.
11537 (altivec_lvehx): Same.
11538 (altivec_lvewx): Same.
11539 ("*movv4si_const0"): New.
11540 ("*movv4sf_const0"): New.
11541 ("*movv8hi_const0"): New.
11542 ("*movv16qi_const0"): New.
11544 2002-02-18 Kazu Hirata <kazu@hxi.com>
11546 * config/h8300/h8300.c (notice_update_cc): Use
11549 2002-02-18 Kazu Hirata <kazu@hxi.com>
11551 * config/h8300/h8300.md (divmod patterns): Change the
11552 constraints for operands[1] to register_operand.
11554 2002-02-18 Kazu Hirata <kazu@hxi.com>
11556 * config/h8300/h8300-protos.h: Remove the prototype for
11558 * config/h8300/h8300.c (p_operand): Remove.
11559 * config/h8300/h8300.md: Replace p_operand with
11562 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11564 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11566 (output_return_instruction): Allow use of LDR to unstack
11567 return addresss even for interrupt handlers or when
11568 interworking. If compiling for ARMv5, use interworking-safe
11569 return instructions by default. Remove duplicated code and
11570 lengthy "strcat" sequences.
11572 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11574 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11575 (LINK_EH_SPEC): Define.
11576 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11578 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11580 * config/s390/s390.c (s390_emit_prologue): Do not set the
11581 frame_related flag for call-clobbered registers.
11583 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
11585 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11586 (construct_container): Fix handling of SSE operands.
11587 (ix86_expand_builtin): Fix handling of 64bit pointers.
11588 (mmx_maskmovq_rex): New pattern.
11590 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
11592 * regrename.c (kill_set_value): Handle subregs properly.
11594 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
11596 * objc/objc-act.c (handle_impent): Remove leading '*'
11597 from objc_class_name.
11599 2002-02-17 Richard Henderson <rth@redhat.com>
11601 * config/alpha/alpha.c (some_small_symbolic_operand,
11602 some_small_symbolic_operand_1, split_small_symbolic_operand,
11603 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11604 Handle small SYMBOL_REFs anywhere, not just inside memories.
11605 * config/alpha/alpha-protos.h: Update.
11606 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11607 * config/alpha/alpha.md (small symbolic operand splitter): Update.
11609 2002-02-17 Roland McGrath <roland@frob.com>
11611 * config.gcc (powerpc-*-gnu-gnualtivec*,
11612 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11613 * config/rs6000/gnu.h: New file.
11614 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11615 Grok "gnu" in rs6000_abi_name.
11616 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11617 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11618 Grok -mcall-gnu analogous to -mcall-linux et al.
11619 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11620 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11621 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11623 2002-02-17 Jakub Jelinek <jakub@redhat.com>
11626 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11629 2002-02-17 Philipp Thomas <pthomas@suse.de>
11631 * config/cris/cris.h: Undefine STARTFILE_SPEC and
11632 ENDFILE_SPEC before (re)defining them.
11634 2002-02-17 Kazu Hirata <kazu@hxi.com>
11636 * config/h8300/h8300.c: Fix formatting.
11637 * config/h8300/h8300.h: Likewise.
11639 2002-02-17 Philipp Thomas <pthomas@suse.de>
11641 * doc/tm.texi: Explain why empty strings should not be
11642 marked for translation.
11644 2002-02-17 Philipp Thomas <pthomas@suse.de>
11646 * final.c (output_operand_lossage): Changed to accept
11647 printf style arguments. Change calls where necessary.
11648 * output.h (output_operand_lossage): Change declaration
11649 accordingly. Update copyright.
11650 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11651 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11652 Update copyright date where necessary.
11654 * config/i386/i386.c (print_operand): Likewise. Remove use of
11657 * config/cris/cris.c (cris_operand_lossage): Likewise.
11658 Rename parameter so that exgettext recognizes it as
11659 translatable message.
11660 (LOSE_AND_RETURN): Rename parameter to msgid.
11662 2002-02-17 Kazu Hirata <kazu@hxi.com>
11664 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11665 hard coded register number with an appropriate macro.
11666 (HARD_REGNO_MODE_OK): Likewise.
11667 (ARG_POINTER_REGNUM): Likewise.
11668 (STATIC_CHAIN_REGNUM): Likewise.
11669 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11670 * config/h8300/h8300.md (define_constants): Define more
11673 2002-02-17 Philipp Thomas <pthomas@suse.de>
11675 * config/i386/i386.h: Don't mark empty strings for translation.
11677 2002-02-16 H.J. Lu <hjl@gnu.org>
11679 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11681 2002-02-16 Zack Weinberg <zack@codesourcery.com>
11683 * cppinit.c (merge_include_chains): Check for brack being
11684 NULL before attempting to merge it with qtail.
11686 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11688 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11691 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11693 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
11695 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11697 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
11698 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
11699 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
11701 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11703 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
11704 now only if !TARGET_FIX.
11705 (*movsi_nt_vms_fix): New pattern.
11707 2002-02-16 Douglas B Rupp <rupp@gnat.com>
11709 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
11710 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
11711 (alpha_sa_mask, alpha_sa_size): Reflect above change.
11712 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
11713 (alpha_start_function, alpha_expand_epilogue): Likewise.
11714 (unicosmk_gen_dsib): Likewise.
11716 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11718 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
11720 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
11722 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
11723 check_and_change_labels, s390_final_chunkify): Delete.
11724 (s390_split_branches, s390_chunkify_pool): New functions.
11725 (s390_function_prologue): Call them.
11727 * config/s390/s390.h (S390_REL_MAX): Delete.
11728 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
11730 * config/s390/s390.md (cjump, icjump, jump): Fix length
11731 attribute calculation.
11734 2002-02-15 David Edelsohn <edelsohn@gnu.org>
11736 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
11737 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
11739 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11741 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
11742 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
11743 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
11745 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11747 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
11749 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11751 * reload.c (find_dummy_reload): Check that an output register
11752 is valid for its mode.
11754 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
11756 * combine.c (known_cond): After replacing the REG of a SUBREG, try
11759 * function.c (assign_parms): Demote promoted argument passed by
11760 transparent reference.
11762 2001-02-14 Joel Sherrill <joel@OARcorp.com>
11764 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
11765 -Acpu() and -Amachine() to eliminate warnings.
11767 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
11769 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
11771 2002-02-14 Kazu Hirata <kazu@hxi.com>
11773 * config/h8300/h8300-protos.h: Update the prototype for
11775 * config/h8300/h8300.c (const_costs): Treat SET as a little
11776 more expensive operation.
11777 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
11778 reference to const_costs.
11780 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
11782 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
11784 2002-02-14 Jakub Jelinek <jakub@redhat.com>
11787 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
11788 use arguments from newtype.
11790 2002-02-13 Eric Christopher <echristo@redhat.com>
11792 * config/mips/mips.c (override_options): Add check for march/mipsX
11793 on the same command line. Fix error message in cpu processing.
11794 Remove architecture and ISA checks.
11796 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11798 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
11800 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
11802 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11804 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
11806 ("*movv8hi_internal1"): Same.
11807 ("*movv16qi_internal1"): Same.
11808 ("*movv4sf_internal1"): Same.
11810 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
11811 not push_reload for altivec modes.
11813 2002-02-13 Joel Sherrill <joel@OARcorp.com>
11815 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
11816 all RTEMS targets including removal of #includes from config/*/rtems*.h
11817 file and adding them to tm_file setting. Added xm_defines=POSIX to
11819 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
11820 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
11821 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
11822 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
11823 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
11824 config/m68k/rtemself.h: Ditto.
11825 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
11826 config/mips/rtems64.h: Ditto.
11827 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
11828 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
11830 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
11831 config/sparc/rtemself.h: Ditto.
11832 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
11833 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
11834 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
11836 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
11837 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
11838 target made more similar to i386-elf.
11839 * config/i386/t-rtems-i386: Added soft float support and multilibs.
11840 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
11841 be similar to config/m68k/t-m68kelf.
11842 * gthr-rtems.h: Encapsulate with extern "C" for C++.
11844 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
11846 * regmove.c (kill_value): Handle subregs.
11848 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
11850 * i386.md (mul patterns): Allow memory operand to be first;
11851 add expanders where needed; fix constraints.
11852 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
11853 Allow memory operand to be the first.
11855 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
11858 2002-02-13 Jakub Jelinek <jakub@redhat.com>
11861 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
11864 2002-02-13 Jakub Jelinek <jakub@redhat.com>
11866 PR optimization/5547:
11867 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
11868 all valid IA-32 address modes involving non-scaled %ebx and
11869 GOT/GOTOFF as displacement.
11871 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
11873 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
11874 after emitting ltorg insns.
11876 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
11877 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
11878 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
11879 *abssf2): Fix "op_type" attribute.
11881 2002-02-13 Douglas B Rupp <rupp@gnat.com>
11883 * mkconfig.sh: Avoid using a subshell redirect.
11884 ($output.T): Change to $(output)T.
11885 (ENABLE_NLS): Remove unneeded undef.
11887 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
11888 * config/alpha/x-vms (libsubdir): Define.
11890 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
11891 register frame procedures. Optimize retrieving context.
11893 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
11894 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
11895 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
11897 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11899 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
11900 Make same change as for find_base_value.
11902 2002-02-13 Kazu Hirata <kazu@hxi.com>
11904 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
11905 of QImode and SImode.
11907 2002-02-13 Kazu Hirata <kazu@hxi.com>
11909 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
11910 length computation of movsi.
11911 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
11913 2002-02-13 Kazu Hirata <kazu@hxi.com>
11915 * config/h8300/h8300.md (subqi3): Tighten the predicate for
11916 operands[2] to register_operand.
11918 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
11920 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
11922 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
11924 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
11925 for altivec_lvx* and altivec_stvx*.
11926 ("*movv4si_internal"): Add constraint for loading from GPRs.
11927 ("*movv8hi_internal1"): Same.
11928 ("*movv16qi_internal1"): Same.
11929 ("*movv4sf_internal1"): Same.
11931 * config/rs6000/rs6000.c (altivec_register_operand): New.
11933 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
11934 altivec_register_operand.
11936 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
11938 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
11941 2002-02-13 Stan Shebs <shebs@apple.com>
11943 * c-typeck.c (digest_init): Handle vectors.
11944 (really_start_incremental_init): Same.
11945 (pop_init_level): Same.
11946 (process_init_element): Same.
11948 * varasm.c (output_constant): Same.
11950 * expr.c (clear_storage): Same.
11951 (store_constructor): Same.
11953 2002-02-12 Eric Christopher <echristo@redhat.com>
11955 * explow.c (hard_function_value): Add comment explaining
11956 signed/unsigned comparison.
11958 2002-02-12 Jakub Jelinek <jakub@redhat.com>
11960 * jump.c (never_reached_warning): Add finish argument.
11961 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
11962 real insn after end.
11963 * rtl.h (never_reached_warning): Adjust prototype.
11964 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
11965 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
11966 never_reached_warning.
11968 2002-02-12 Graham Stott <grahams@redhat.com>
11970 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
11972 2002-02-12 Kazu Hirata <kazu@hxi.com>
11974 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
11975 logical shifts on H8/300.
11976 (shift_alg_si): Improve several shifts on H8/300.
11977 (get_shift_alg): Likewise.
11979 2002-02-12 Graham Stott <grahams@redhat.com>
11981 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
11983 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11985 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
11986 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
11988 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
11990 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
11991 non-CONST_INT through default_assemble_integer.
11992 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
11993 <case 8>: Abort for CONST_DOUBLE.
11995 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
11997 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
11999 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12000 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12002 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12004 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12006 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12008 * regrename.c (regrename_optimize): Don't accept a
12009 part-clobbered register if the replaced register is not part
12012 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12013 take padding into account when computing the argument value.
12015 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12017 * combine.c (try_combine): Apply substitutions in
12018 CALL_INSN_FUNCTION_USAGE too.
12020 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12022 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12023 __builtin_altivec_abs*.
12026 * config/rs6000/rs6000.h (rs6000_builtins): Add
12027 ALTIVEC_BUILTIN_ABS*.
12029 * config/rs6000/altivec.h: Use const char for builtins expecting
12031 (vec_abs): New versions for C and C++.
12034 2002-02-10 Kazu Hirata <kazu@hxi.com>
12036 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12039 2002-02-10 Kazu Hirata <kazu@hxi.com>
12041 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12042 constant definition from h8300.md.
12043 (FRAME_POINTER_REGNUM): Likewise.
12044 * config/h8300/h8300.md (define_constants): Add FP_REG.
12046 2002-02-10 Kazu Hirata <kazu@hxi.com>
12048 * config/h8300/h8300.c (print_operand): Remove redundant code.
12050 2002-02-10 Kazu Hirata <kazu@hxi.com>
12052 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12053 * config/h8300/h8300.c (byte_reg): Make it static.
12055 2002-02-10 Richard Henderson <rth@redhat.com>
12058 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12060 2002-02-10 Richard Henderson <rth@redhat.com>
12063 * tree.c (append_random_chars): Don't abort if main_input_filename
12066 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12068 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12070 2002-02-10 Kazu Hirata <kazu@hxi.com>
12072 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12073 (pushhi1): Likewise.
12075 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12077 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12078 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12080 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12082 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12084 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12086 2002-02-09 Kazu Hirata <kazu@hxi.com>
12088 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12089 a half of an SImode register on H8/300.
12091 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12093 * i386.md (movdi_2): Add missing '!'.
12095 2002-02-09 Kazu Hirata <kazu@hxi.com>
12097 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12100 2002-02-09 Kazu Hirata <kazu@hxi.com>
12102 * config/h8300/h8300.md (length): Correct the distance valid
12103 for the short branch.
12105 2002-02-09 Kazu Hirata <kazu@hxi.com>
12107 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12109 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12111 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12112 registers in SImode.
12113 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12116 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12119 Contribute sh64-elf.
12120 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12121 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12122 (sh_cannot_modify_jumps_p): New function.
12123 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12124 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12125 (sh_ms_bitfield_layout_p): New function.
12126 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12127 Zack Weinberg <zack@codesourcery.com>
12128 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12129 expand_simple_binop instead of expand_binop.
12130 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12131 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12132 use of .quad and .uaquad.
12133 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12134 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12135 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12136 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12137 movdi_const_16bit): Make sure all CONSTs have modes.
12138 (sym2PIC): Ditto, but by adjusting all callers.
12139 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12140 if the prologue calls the SHmedia argument decoder or register
12142 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12143 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12144 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12145 (sh_expand_epilogue): Don't emit USE of return target register.
12146 (prepare_move_operands): Legitimize DImode PIC addresses.
12147 (sh_media_register_for_return): Skip tr0, used to initialize the
12149 (sh_expand_prologue): Remove explicit USE of return register.
12150 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12151 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12152 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12153 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12154 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12155 EXTRA_CONSTRAINT_T.
12156 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12157 (MOVI_SHORI_BASE_OPERAND_P): New.
12158 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12159 (EXTRA_CONSTRAINT_T): Define in terms of them.
12160 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12161 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12162 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12163 alternatives supporting TARGET_REGS.
12164 (UNSPEC_GOTPLT): New constant.
12165 (movdi split): Move incrementing of LABEL_NUSES...
12166 (movdi_const, movdi_const_32bit): Here. Use
12167 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12168 (movdi_const_16bit): New.
12169 (call, call_value) [flag_pic]: Use GOTPLT.
12170 (call_pop, call_value_pop): New expands.
12171 (call_pop_compact, call_pop_rettramp): New insns.
12172 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12173 (sibcall) [flag_pic]: Use GOT.
12174 (builtint_setjmp_receiver): Remove bogus, unused expand.
12175 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12176 (*pt, *ptb, ptrel): New insns.
12177 (sym2GOT): Handle DImode GOT.
12178 (sym2GOTPLT, symGOTPLT2reg): New expands.
12179 (sym2PIC): New expand.
12180 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12181 (shcompact_return_tramp_i): Use return register explicitly.
12182 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12183 disable flag_reorder_blocks.
12184 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12185 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12186 clobbers, for clarity.
12187 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12188 restoring of r0 in macl as MAYBE_DEAD.
12189 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12190 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12191 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12192 alter_subreg all over.
12193 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12194 reload, instead of emitting instructions that would require
12196 (casesi_load_media): Add missing modes.
12197 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12198 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12199 as used if the argument decoder is called.
12200 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12201 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12202 Pmode, then extend it to DImode if necessary.
12203 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12204 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12205 constants in FPU-enabled SHmedia, let them be loaded from memory.
12206 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12207 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12208 Adjust whitespace in assembly output templates.
12209 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12210 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12211 mode of if_then_else.
12212 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12213 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12215 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12216 Joern Rennecke <amylaar@redhat.com>
12217 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12218 (SUBTARGET_CPP_PTR_SPEC): New.
12219 (SUBTARGET_CPP_SPEC): Remove.
12220 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12221 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12222 Fix typo in previous checkin.
12223 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12224 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12225 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
12226 Alexandre Oliva <aoliva@redhat.com>
12227 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12228 what single FP register can hold for SHmedia target.
12229 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12230 Alexandre Oliva <aoliva@redhat.com>
12231 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12232 Do not split into SUBREG.
12233 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
12234 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12235 and added new functions as specified in SH5 ABI r9.
12236 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
12237 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12239 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
12240 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12241 gen_consttable_4 and gen_consttable_8. Emit multiple labels
12242 and consttable_window_ends.
12243 2001-06-03 Graham Stott <grahams@redhat,com>
12244 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12245 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
12246 * config/sh/sh.c (print_operand): Handle floating-point pair,
12247 vector and matrix registers.
12248 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12249 vector modes into account.
12250 * config/sh/sh.md (movv2sf): Split move between registers into
12252 (movv4sf, movv16sf): Introduce insns that get split only after
12254 * config/sh/shmedia.h: Fix Copyright dates.
12255 * config/sh/ushmedia.h: Likewise. Move loop counter
12256 declarations into conditionals that uses them.
12257 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12259 * config/sh/sshmedia.h: Fix Copyright dates.
12260 (sh_media_PUTCFG): Fix constraints.
12261 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
12262 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12263 ptrmemfunc_vbit_in_delta for SH5.
12264 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
12265 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12266 * invoke.texi: Likewise.
12267 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
12268 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12269 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12270 GCC_pop_shmedia_regs_nofpu): New global symbols.
12271 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12272 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12273 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12274 compact function with nonlocal labels.
12275 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12276 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12277 (initial_elimination_offset): Account for their stack space.
12278 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12279 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12280 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12281 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12282 least one of the operands to be a register.
12283 (movv2sf): Likewise. Renamed to movv2sf_i.
12284 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12285 prepare_move_operands() before emitting SHmedia insns.
12286 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
12287 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12288 Don't save nor initialize r12. Don't mis-align the stack.
12289 Pad the code with a nop.
12290 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
12292 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
12293 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12294 [__SHMEDIA__]: Implement.
12295 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
12296 * config/sh/sh.md: Set latency of `pt' closer to reality.
12297 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12298 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12299 Set move, load and store type attributes.
12300 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12301 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12303 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12304 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12305 * config/sh/sh.c (sh_media_register_for_return): New function.
12306 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12307 branch-target register.
12308 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12309 * config/sh/sh.md (return_media_i): Use any call-clobbered
12310 branch-target register.
12311 (return_media): If r18 wasn't copied in the prologue, copy it
12313 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12314 Clear class FP0_REGS.
12315 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12317 2001-03-08 DJ Delorie <dj@redhat.com>
12318 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12319 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
12320 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12321 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
12322 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12323 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
12324 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12325 return value correctly for call_cookie.
12326 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
12327 * config/sh/crt1.asm (start): Modified so as to call
12328 ___setup_argv_and_call_main.
12329 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
12330 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12332 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
12333 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12334 (STRIP_NAME_ENCODING): Use it.
12335 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
12336 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
12337 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12338 prepare_scc_operands().
12339 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12340 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12341 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
12342 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12343 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
12344 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12345 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12346 used in shcompact_incoming_args.
12347 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12349 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12351 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12352 Adjust accordingly.
12353 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12354 Simplify. Adjust. Add sanity check.
12355 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12357 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12359 (udivsi3, divsi3): Use them.
12360 (force_mode_for_call): New insn.
12361 (call, call_value, sibcall_value): Emit it before SHcompact
12363 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
12364 * config/sh/sh.md (call, call_value, sibcall): Make sure the
12365 call cookie is non-NULL before taking its value.
12366 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
12367 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12368 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
12369 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12371 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12372 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12373 temporary for stack adjusts. Use MACL and MACH to pass
12374 arguments to shcompact_incoming_args.
12375 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
12377 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12378 (nested_trampoline): Load static chain address into r1.
12379 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12380 2001-01-07 Alexandre Oliva <aoliva@redhat.com
12381 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12382 fp_arith_reg_operand().
12383 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
12384 * config/sh/sh.md (casesi): Sign-extend the first two operands,
12385 and use signed compares for them.
12386 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12387 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
12388 ones properly aligned.
12389 (find_barrier): Account for extra alignment needed for 8-byte wide
12391 (machine_dependent_reorg): Require a label for the second 4-byte
12392 constant after an 8-byte one.
12393 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12395 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12396 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12397 last_float when switching float modes.
12398 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12399 auto-increment for general-purpose registers.
12400 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12402 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12404 * config/sh/sh.c (sh_builtin_saveregs): Support using all
12405 registers for varargs.
12406 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
12407 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12408 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12409 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12410 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12411 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
12412 call_cookie accordingly.
12413 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12414 (SHCOMPACT_BYREF): Likewise.
12415 (SHCOMPACT_FORCE_ON_STACK): New macro.
12416 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12417 (sh_builtin_saveregs): Likewise.
12418 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12419 shcompact_incoming_args): Use new shift values. Support
12420 sequences of consecutive and non-consecutive pushes/pops.
12421 * config/sh/sh.md (return): Don't explicitly use PR_REG.
12422 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
12423 * config/sh/sh.h (TEXT_SECTION): Define.
12424 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12425 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12426 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12427 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12428 return values on FPU-enabled SHmedia.
12429 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12430 FPU-enabled SHmedia.
12431 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12432 value is returned in a non-FP reg and is not returned by
12434 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12436 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
12437 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12438 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12439 quad-aligned to be passed by callee-copy reference.
12440 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
12441 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12442 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12443 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
12444 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12445 copying low-numbered FP regs to r7 and r8.
12446 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12447 FP regs to general-purpose regs only if the copy was passed on the
12449 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12450 copying FP reg to r9.
12451 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12452 copy FP regs to general-purpose regs only in outgoing calls.
12453 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12454 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
12456 * config/sh/sh.h (struct sh_args): Document all fields.
12457 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12458 passed partially on the stack should not consider making
12460 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12461 stack_regs only for incoming calls. When passing FP args,
12462 make sure there are FP regs available before modifying
12464 (SHCOMPACT_BYREF): Pass double args in general-purpose
12465 registers by reference.
12466 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
12467 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12468 attempt to generate sibcalls if the caller got any arguments
12470 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12471 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12472 to 8-byte boundaries.
12473 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12474 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12475 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12476 stored in the stack.
12477 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12478 for the offsets to have the ISA bit set.
12479 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
12480 invocation. Use beq instead of bgt to mark end of sequence of
12482 (shcompact_incoming_args): Fix store of r2. Use beq instead of
12483 bgt to mark end of sequence of stores.
12484 * config/sh/sh.c (arith_operand): Don't check whether
12485 CONST_OK_FOR_J for now.
12486 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12487 instead of long for conversion.
12488 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
12489 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12490 before passing it to fprintf.
12491 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
12492 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12493 Call set_fpscr before reading/writing SR.
12494 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12496 * config/sh/lib1funcs.asm: Add `.align 2' directives before
12498 (FMOVD_WORKS): Define on SH5 with FPU.
12499 (set_fpscr): Define on SH5. Remove separate _fpscr_values
12501 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12503 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
12504 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12506 (ia_main_table): Ditto.
12507 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
12508 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12509 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12510 the definitions from sh.h.
12511 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12513 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12514 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12515 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12516 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
12517 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12518 Increment LABEL_NUSES.
12520 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12522 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12524 * config/sh/elf.h (SIZE_TYPE): Likewise.
12525 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12526 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12527 shcompact_incoming_args): Load switch table addresses using
12529 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12530 (NO_BUILTIN_SIZE_TYPE): Define.
12531 (SIZE_TYPE): Don't define.
12532 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12533 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12534 definition of __SH5__=32 for -m5-compact-nofpu.
12535 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12537 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
12538 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12539 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
12540 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12541 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12542 (INSN_LENGTH_ALIGNMENT): Likewise.
12543 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12544 * config/sh/sh.md (call, call_value, sibcall): Simplify
12545 copying of non-branch-target register.
12546 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12547 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
12548 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12549 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12550 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12551 floating-point values as structs.
12552 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12553 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12554 general-purpose register.
12555 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12556 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12557 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12558 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12559 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12560 (ENCODE_SECTION_INFO): Enclose variables and constants in
12562 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12563 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12564 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12565 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12566 only for LABEL_REFs. For SYMBOL_REFs, prepend
12567 SH_DATALABEL_ENCODING to the symbol name.
12568 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12570 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12571 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12573 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12574 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12575 (DATALABEL_REF_P): Don't require CONST.
12576 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12578 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
12579 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12581 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12582 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12583 Use shallow_copy_rtx and PUT_MODE to change the mode of
12584 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12585 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12586 on SHmedia using GENERAL_REGs.
12587 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12588 bltu_media_i): Fix reversion of conditions.
12589 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12590 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12591 * config/sh/sh.c (output_far_jump): Save r13 in macl.
12592 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
12593 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12594 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
12595 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12596 (GCC_nested_trampoline): Likewise.
12597 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12598 * config/sh/sh.c (gen_datalabel_ref): Define.
12599 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12600 (INITIALIZE_TRAMPOLINE): Likewise.
12601 (TRAMPOLINE_ADJUST_ADDRESS): Define.
12602 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12603 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12604 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12605 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12606 (ic_invalidate): Adjust for SH5.
12607 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12608 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12609 _nested_trampoline.
12610 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
12611 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12612 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12613 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12614 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12615 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12616 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12617 * config/sh/sh.c (target_reg_operand): Match only target-branch
12618 registers and pseudos that aren't virtual registers.
12619 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12620 Copy operands that don't match target_reg_operand to pseudos.
12621 (call_media, call_value_media, sibcall_media): Use
12622 target_reg_operand instead of target_operand.
12623 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
12624 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12625 * config/sh/sh.c (target_reg_operand): Match hardware registers
12626 other than branch-target registers.
12627 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12628 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12629 (fpscr_values) [SH5 == 32]: Define.
12630 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12631 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12632 Handle function addresses coming in SUBREGs.
12633 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
12634 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12635 shcompact_return_trampoline): Use datalabel where appropriate.
12636 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
12637 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12638 general-purpose register to copy one branch-target register to
12640 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12641 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12642 SYMBOL_REFs with VOIDmode.
12643 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12644 bltu_media_i): New insns.
12645 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12646 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12647 (INIT_CUMULATIVE_ARGS): Likewise.
12648 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
12649 * machmode.def (V16SFmode): New mode.
12650 * c-common.c (type_for_mode): Support V2SF and V16SF.
12651 * tree.c (build_common_tree_nodes_2): Likewise.
12652 * tree.h (tree_index): Likewise.
12653 * calls.c (emit_call_1): Take args_so_far. Adjust all
12654 callers. Introduce CALL_POPS_ARGS.
12655 * tm.texi (CALL_POPS_ARGS): Document.
12656 * config/sh/crt1.asm: Implement in SHmedia mode.
12657 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12658 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12659 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12660 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12661 Implement divsi and udivsi in SHmedia mode. Introduce
12662 SHcompact trampolines.
12663 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12665 (regno_reg_class): Rewrite.
12666 (fp_reg_names): Remove.
12667 (sh_register_names, sh_additional_register_names): New.
12668 (print_operand): Added `u'. Support SUBREGs in addresses.
12669 Add parentheses around shifted CONSTs.
12670 (output_file_start): Output .mode and .abi directives.
12671 (shiftcosts, addsubcosts, multcosts): Adjust.
12672 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
12673 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
12674 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
12675 bytes, not registers. Take into account the need for the
12676 SHcompact incoming args trampoline. Adjust all callers.
12677 (sh_expand_prologue): Take stack_regs into account. Call
12678 incoming args trampoline. Keep stack aligned as per SH5 ABI.
12679 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
12680 stack aligned as per SH5 ABI.
12681 (sh_builtin_saveregs): Support SH5 ABI.
12682 (sh_build_va_list, sh_va_start): Likewise.
12683 (initial_elimination_offset): Take alignment into account.
12684 Compute location of PR according to the SH5 stack frame.
12685 (arith_reg_operand): Reject branch-target registers.
12686 (shmedia_6bit_operand): New.
12687 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12688 (target_reg_operand): Match DImode only. Accept SUBREGs.
12689 (target_operand): New.
12690 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
12691 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
12692 SIBCALL_REGS for SHmedia.
12693 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
12694 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
12695 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
12696 (TARGET_SWITCHES): New SH5 flags.
12697 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
12698 VALID_REGISTER_P to disable unsupported registers.
12699 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
12700 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
12701 (FUNCTION_ARG_PADDING): Define.
12702 (FASTEST_ALIGNMENT): Adjust.
12703 (SH_REGISTER_NAMES_INITIALIZER): New.
12704 (sh_register_names): Declare.
12705 (DEBUG_REGISTER_NAMES): Define.
12706 (REGISTER_NAMES): Define based on sh_register_names.
12707 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
12708 (sh_additional_register_names): Declare.
12709 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
12710 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
12711 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
12712 (REGISTER_NATURAL_MODE): Define.
12713 (FIRST_PSEUDO_REGISTER): Adjust.
12714 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
12715 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
12716 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
12717 (VECTOR_MODE_SUPPORTED_P): Define.
12718 (REG_CLASS_CONTENTS): Adjust.
12719 (SMALL_REGISTER_CLASSES): Adjust.
12720 (REG_ALLOC_ORDER): Adjust.
12721 (INDEX_REG_CLASS): Adjust.
12722 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
12723 (CONST_OK_FOR_LETTER_P): Adjust.
12724 (PREFERRED_RELOAD_CLASS): Adjust.
12725 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
12726 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
12727 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
12728 (FIRST_FP_PARM_REG): Adjust.
12729 (CALL_POPS_ARGS): Define.
12730 (FUNCTION_ARG_REGNO_P): Adjust.
12731 (struct sh_args): New fields.
12732 (GET_SH_ARG_CLASS): Adjust.
12733 (INIT_CUMULATIVE_ARGS): Adjust.
12734 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
12735 (FUNCTION_ARG_ADVANCE): Adjust.
12736 (FUNCTION_ARG): Adjust.
12737 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
12738 (FUNCTION_ARG_CALLEE_COPIES): Define.
12739 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
12740 (STRICT_ARGUMENT_NAMING): Define.
12741 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
12742 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
12743 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
12744 (SETUP_INCOMING_VARARGS): Adjust.
12745 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
12746 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
12747 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
12748 (SUBREG_OK_FOR_INDEX_P): Adjust.
12749 (EXTRA_CONSTRAINT_S): Update.
12750 (EXTRA_CONSTRAINT_T): New.
12751 (EXTRA_CONSTRAINT): Adjust.
12752 (GO_IF_LEGITIMATE_INDEX): Adjust.
12753 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
12754 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
12755 (MOVE_MAX): Adjust.
12756 (MAX_MOVE_MAX): Define.
12758 (CONST_COSTS): Adjust.
12759 (REGISTER_MOVE_COST): Adjust.
12760 (BRANCH_COST): Adjust.
12761 (TEXT_SECTION_ASM_OP): Adjust.
12762 (DBX_REGISTER_NUMBER): Adjust.
12763 (ASM_OUTPUT_DOUBLE_INT): New.
12764 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
12765 (PREDICATE_CODES): Adjust.
12766 (PROMOTE_MODE): Adjust.
12767 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
12768 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
12769 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
12770 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
12771 (DR0_REG, DR2_REG, DR4_REG): Renumber.
12772 (TR0_REG, TR1_REG, TR2_REG): New.
12773 (XD0_REG): Renumber.
12774 (UNSPEC_COMPACT_ARGS): New.
12775 (type): Added pt and ptabs.
12776 (length): Default to 4 on SHmedia. Default pt length to 12
12777 and 20 on SHmedia32 and SHmedia64, respectively.
12778 (pt): New function unit.
12779 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
12780 Add whitespace between operands of SHmedia instructions.
12782 (adddi3_media, addsi3_media): Adjust constraints.
12783 (subsi3) [SHmedia]: Force operand 1 into a register.
12784 (udivsi3_i1_media, udivsi3_i4_media): New.
12785 (udivsi3): Support SHmedia.
12786 (divsi3_i1_media, divsi3_i4_media): New.
12787 (divsi3): Support SHmedia.
12788 (anddi3, iordi3, xordi3): Adjust constraints.
12789 (zero_extendhidi2, zero_extendqidi2): New.
12790 (extendsidi2, extendhidi2, extendqidi2): New.
12791 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
12792 (pop_e, pop_fpul, pop_4): Likewise.
12793 (movsi_media): Support FP and BT registers.
12794 (movsi_media_nofpu): New. Adjust splits to DImode.
12795 (lduw, ldub): Renamed to zero_extend* above.
12796 (movqi_media): Fix typo.
12797 (movdi_media): Support FP and BT registers.
12798 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
12799 (movdi_const_32bit): New.
12800 (shori_media): Require immediate operand. Use `u' for output.
12801 (movdf_media, movsf_media): Simplified.
12802 (movdf_media_nofpu, movsf_media_nofpu): New.
12803 (movdf, movsf): Adjust
12804 (movv2sf, movv2sf, movv16sf): New.
12805 (beq_media, beq_media_i): Adjust constraints. Don't use
12806 scratch BT register.
12807 (bne_media, bne_media_i): Likewise.
12808 (bgt_media, bgt_media_i): Likewise.
12809 (bge_media, bge_media_i): Likewise.
12810 (bgtu_media, bgtu_media_i): Likewise.
12811 (bgeu_media, bgeu_media_i): Likewise.
12812 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
12813 bunordered): Emit jump insn. Force operands to registers when
12815 (jump_media, jump): Simplify.
12816 (call_compact, call_compact_rettramp): New.
12817 (call_value_compact, call_value_compact_rettramp): New.
12818 (call_media, call_value_media): Simplify.
12819 (sibcall_compact, sibcall_media): New.
12820 (call, call_value): Adjust for SHmedia and SHcompact.
12821 (sibcall, sibcall_value, untyped_call): Likewise.
12822 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
12823 (indirect_jump): Adjust for SHmedia.
12824 (casesi_jump_media): New.
12825 (nop): Re-enable for SHmedia.
12826 (call_site): Restrict to SH1.
12827 (casesi): Adjust for SHmedia.
12828 (casesi_shift_media, casesi_load_media): New.
12829 (return): Explicitly use PR register. Call return trampoline
12831 (return_i): Explicitly use PR register.
12832 (shcompact_return_tramp, shcompact_return_tramp_i): New.
12833 (return_media): Adjust.
12834 (shcompact_incoming_args): New.
12835 (epilogue): Adjust.
12836 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12837 (movstrsi): Disable on SH5.
12838 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
12839 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
12840 (subsf3, subsf3_media): Likewise.
12841 (mulsf3, mulsf3_media, mac_media): Likewise.
12842 (divsf3, divsf3_media): Likewise.
12843 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
12844 (floatsisf2, fux_truncsfsi2): Likewise.
12845 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
12847 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
12848 (cmpunsf_media, cmpsf): Likewise.
12849 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
12850 (abssf2, abssf2_media): Likewise.
12851 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
12852 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
12853 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
12854 (floatsidf2, fix_truncdfsi2): Likewise.
12855 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
12857 (cmpeqdf_media, cmpgtdf_media): Likewise.
12858 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
12859 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
12860 (absdf2, absdf2_media): Likewise.
12861 (extendsfdf2, extendsfdf2_media): Likewise.
12862 (truncsfdf2, truncsfdf2_media): Likewise.
12863 * config/sh/sh64.h: New file.
12864 * config/sh/t-sh64: New file.
12865 * config/sh/shmedia.h: New file.
12866 * config/sh/ushmedia.h: New file.
12867 * config/sh/sshmedia.h: New file.
12868 * configure.in: Added sh64-*-elf.
12869 * configure: Rebuilt.
12870 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
12871 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
12872 (reg_class_from_letter): Use `b' for TARGET_REGS.
12873 (print_operand): Support `%M', `%m', `AND' and
12874 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
12875 (andcosts): Adjust for SHmedia.
12876 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
12878 (target_reg_operand): New function.
12879 * config/sh/sh-protos.h (target_reg_operand): Declare.
12880 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
12881 FP registers on SH5.
12882 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
12884 (TARGET_REGISTER_P): New macro.
12885 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
12886 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
12887 (EXTRA_CONSTRAINT_S): New macro.
12888 (EXTRA_CONSTRAINT): Adjust.
12889 (FLOAT_TYPE_SIZE): Define to 32.
12890 (Pmode): DImode on SHmedia.
12891 (CONST_COSTS): Adjust for SHmedia literals.
12892 (PREDICATE_CODES): Added target_reg_operand.
12893 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
12894 * config/sh/sh.md: Remove all attrs from SHmedia insns.
12895 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
12896 (cmpdi): Accept SHmedia.
12897 (movdicc_false, movdicc_true): New insns.
12898 (movdicc): New expand.
12899 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
12901 (addsi3_media): Match `S' constraint.
12902 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
12903 (negdi2): Expand for SHmedia.
12904 (one_cmpldi2): New expand.
12905 (zero_extendsidi2): Change from expand to insn.
12906 (extendsidi2): Add constraints.
12907 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
12908 LD/ST address. Fix SI immediate loading split.
12909 (movhi_media, movqi_media, lduw, ldub): New insns.
12910 (movhi, movqi): Accept SHmedia.
12911 (shori_media, movdi_media): Relax input constraints. Split
12912 symbolic constants.
12913 (movdf_media, movsf_media): New insn. New split to movdi.
12914 (movdf, movsf): Match on SHmedia.
12915 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
12916 bgeu_media): New insns and splits. New insns with `_i' suffix.
12917 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
12918 (bunordered): New expand.
12919 (jump_compact): Renamed from `jump'.
12920 (jump_media): New insn.
12921 (jump): New expand.
12922 (call_media, call_value_media): New insns.
12923 (call, call_value): Adjust.
12924 (indirect_jump_compact): Renamed from `indirect_jump'.
12925 (indirect_jump_media): New insn.
12926 (indirect_jump): New expand.
12927 (untyped_call, return): Accept SHmedia.
12928 (return_media): New insn.
12929 (prologue, epilogue, blockage): Accept SHmedia.
12930 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12931 (sunordered): New expand.
12932 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
12933 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
12934 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
12935 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
12936 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
12937 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
12938 abssf2_media): New insns.
12939 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
12940 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
12941 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
12942 floatdidf2, floatsidf2_media, fix_truncdfdi2,
12943 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
12944 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
12945 absdf2_media): New insns.
12946 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
12947 (extendsfdf2_media, truncdfsf2_media): New insns.
12948 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
12949 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
12950 * config/sh/sh.h (CONST_OK_FOR_J): Document.
12951 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
12952 * config/sh/sh.md (adddi3): New expand.
12953 (adddi3_media, adddi3z_media): New insns.
12954 (adddi3_compact): Renamed from adddi3.
12955 (addsi3_media): Use add.l r63 to add constant zero.
12956 (subdi3): New expand.
12957 (subdi3_media): New insn.
12958 (subdi3_compact): Renamed from subdi3.
12959 (mulsidi3): New expand.
12960 (mulsidi3_media): New insn.
12961 (mulsidi3_compact): Renamed from mulsidi3.
12962 (umulsidi3): New expand.
12963 (umulsidi3_media): New insn.
12964 (umulsidi3_compact): Renamed from umulsidi3.
12965 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
12966 (ashlsi3, ashrsi3, lshrsi3): Use them.
12967 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
12968 (ashldi3, ashrdi3, lshrdi3): Use them.
12969 (zero_extendsidi2): New expand.
12970 (extendsidi2): New insn.
12971 (movsi_media): New insn. Split to movdi to load constants.
12972 (movsi): Enable for shmedia.
12973 (movdi_media): New insn. Use shori_media to load wide constants.
12974 (short_media): New insn.
12975 (movdi): Enable for shmedia.
12976 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
12977 * config/sh/sh.h (CPP_SPEC): Added `m5'.
12978 (SUBTARGET_CPP_SPEC): Added `!m5'.
12979 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
12980 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
12981 to all other SH variants.
12982 (TARGET_DEFAULT): Set to SH1_BIT.
12983 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
12984 (BITS_PER_WORD): Raise to 64 on shmedia.
12985 (MAX_BITS_PER_WORD): Change to 64.
12986 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
12987 (INT_TYPE_SIZE): Keep as 32.
12988 (UNITS_PER_WORD): Raise to 8 on shmedia.
12989 (MIN_UNITS_PER_WORD): Keep as 4.
12990 (POINTER_SIZE): Raise to 64 on shmedia.
12991 (CONST_OK_FOR_J): New macro.
12992 (CONST_OK_FOR_LETTER_P): Use it.
12993 (processor_type): Add PROCESSOR_SH5.
12994 * config/sh/sh.md: Conditionalize all expands, insns and
12995 splits to TARGET_SH1.
12997 (addsi3_compact): Renamed from...
12998 (addsi3): Now an expand.
12999 (addsi3_media, subsi3_media): New insns.
13000 (subsi3): Don't negate constants with SHmedia.
13002 * hooks.c: New file.
13003 * hooks.h: New file.
13004 * Makefile.in (HOOKS_H): New.
13005 (TARGET_DEF_H): Added $(HOOKS_H).
13006 (OBJS): Added hooks.o.
13007 (cfgcleanup.o, bb-reorder.o): Added target.h.
13008 (hooks.o): Added dependencies.
13009 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13010 (TARGET_INITIALIZER): this.
13011 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13012 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13013 * bb-reorder.c: Include target.h.
13014 (reorder_basic_blocks): Skip if cannot modify jumps.
13015 * cfgcleanup.c: Include target.h.
13016 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13018 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13020 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13021 Protect jump delay slot instructions with .set noreorder and
13024 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13026 * config/mips/mips.md (casesi_internal_di): Calculate
13027 the index into the target offset table correctly.
13029 2002-02-08 Richard Henderson <rth@redhat.com>
13031 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13032 * final.c (output_addr_const): Accept and discard SUBREG.
13033 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13034 mark them unknown instead.
13035 (simplify_subtraction): Handle RTX_UNKNOWN.
13036 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13038 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13040 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13042 2002-02-08 Richard Henderson <rth@redhat.com>
13044 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13046 2002-02-08 Andreas Jaeger <aj@suse.de>
13048 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13049 * config/i386/t-linux64: New file.
13051 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13053 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13054 * c-parse.in (compstmt): Clear last_expr_type.
13056 2002-02-07 Richard Henderson <rth@redhat.com>
13058 * loop.c (strength_reduce): Sink final_value when not
13061 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13063 * config/sparc/freebsd.h: Fix mismatched spec {.
13065 2002-02-07 Richard Henderson <rth@redhat.com>
13067 * cfgrtl.c: Include recog.h and insn-config.h.
13068 (keep_with_call_p): Fix general_operand invocation.
13069 * Makefile.in (cfgrtl.o): Update dependencies.
13071 2002-02-07 Kazu Hirata <kazu@hxi.com>
13073 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13074 comment. Accept HImode only if TARGET_H8300.
13076 2002-02-07 Eric Christopher <echristo@redhat.com>
13078 * config/mips/crtn.asm: Cleanup #ifdefs.
13080 2002-02-07 Eric Christopher <echristo@redhat.com>
13082 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13083 register 7 as RA instead of $31.
13084 * config/mips/crtn.asm: Ditto.
13085 * config/mips/mips.c (mips_move_2words): Add case for
13086 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13087 (compute_frame_size): Fix typo.
13088 (save_restore_insns): Ditto. Make documentation about using
13089 register $7 as return register more precise.
13090 (mips_expand_epilogue): Fix comment. Add code to work around not
13091 being able to add to the stack pointer directly.
13092 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13093 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13096 2002-02-07 Tom Rix <trix@redhat.com>
13098 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13099 immediates in ldu and stdu DS opcode field.
13100 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13101 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13102 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13104 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13106 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13107 offset for stack bias.
13109 2002-02-07 H.J. Lu <hjl@gnu.org>
13111 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13113 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13115 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13117 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13119 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13120 * i386.c (x86_order_regs_for_local_alloc): New global function.
13121 * i386.h (REG_ALLOC_ORDER): CLeanup.
13122 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13124 2002-02-07 Richard Henderson <rth@redhat.com>
13126 PR optimization/2463
13127 * alias.c (find_base_value): Recall base values for fixed hard regs.
13128 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13130 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13132 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13135 2002-02-06 Richard Henderson <rth@redhat.com>
13138 * stmt.c (resolve_operand_name_1): Take more care with mixed
13139 named and unnamed operands.
13141 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13142 Jan Hubicka <jh@suse.cz>
13144 * loop.c (remove_constant_addition): Avoid clobbering a shared
13147 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13149 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13150 * config/s390/t-linux64: New file.
13151 * config/s390/libgcc-glibc.ver: New file.
13153 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13155 * config/s390/linux64.h: Delete file.
13156 * config/s390/s390x.h: New file.
13157 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13158 as target header file.
13159 * config/s390/linux.h (TARGET_VERSION): Define depending on
13160 DEFAULT_TARGET_64BIT.
13161 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13162 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13163 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13164 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13165 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13166 (EXTRA_SPEC): New define.
13167 * config/s390/s390.h (TARGET_VERSION): Define depending on
13168 DEFAULT_TARGET_64BIT.
13169 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13171 2002-02-06 Jason Merrill <jason@redhat.com>
13173 * c-decl.c (finish_function): Warn about a non-void function with
13174 no return statement and no abnormal exit.
13175 (current_function_returns_abnormally): New variable.
13176 (start_function): Clear it.
13177 (struct c_language_function): Add returns_abnormally.
13178 (push_c_function_context): Save it.
13179 (pop_c_function_context): Restore it.
13180 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13181 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13182 an explicit return type.
13183 * c-tree.h: Declare current_function_returns_abnormally.
13184 (C_FUNCTION_IMPLICIT_INT): New macro.
13185 * c-typeck.c (build_function_call): Set it.
13186 (c_expand_return): Set current_function_returns_value even if the
13187 value is erroneous.
13189 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13192 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13193 unsafe for reevaluation.
13195 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13198 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13199 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13201 2002-02-06 Richard Henderson <rth@redhat.com>
13203 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13204 be a general_operand. Dest for function value must be a pseudo.
13206 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13208 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13209 as SYMBOL_REFs from the constant pool.
13211 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13213 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13214 passed by invisible reference.
13216 2002-02-05 Richard Henderson <rth@redhat.com>
13218 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13220 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13222 Implement using "base addresses" in insn operands as default.
13223 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13224 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13225 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13226 used to read the rtx value.
13227 (mmix_target_asm_function_epilogue): Fix spacing.
13228 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13229 (mmix_legitimate_address): Ditto.
13230 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13231 should be loaded with a GETA insn. Don't allocate needless extra
13232 char for nul termination and fix misleading comment.
13233 (mmix_print_operand_address): Handle constants if
13234 TARGET_BASE_ADDRESSES.
13235 (mmix_output_register_setting): Use base addressing if
13236 TARGET_BASE_ADDRESSES and the number of insns is 3.
13237 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13238 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13239 to use R as constraint, add LDA to match s.
13240 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13241 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13242 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13243 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13244 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13245 order with other fixed registers.
13246 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13247 other parameter/call-clobbered registers.
13248 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13249 -mbase-addresses, -mno-base-addresses.
13250 (MMIX Options): Ditto.
13252 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13254 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13256 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
13258 * config/rs6000/altivec.h: Change elem to _S_elem.
13260 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13262 * config/netbsd.h (WCHAR_TYPE): Define.
13263 (WCHAR_TYPE_SIZE): Ditto.
13264 (WINT_TYPE): Ditto.
13265 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13266 (WCHAR_UNSIGNED): Ditto.
13267 (WCHAR_TYPE_SIZE): Ditto.
13268 (WINT_TYPE): Ditto.
13269 * config/arm/netbsd.h: Likewise.
13270 * config/i386/netbsd-elf.h: Likewise.
13271 * config/i386/netbsd.h: Likewise.
13272 * config/m68k/netbsd-elf.h: Likewise.
13273 * config/m68k/netbsd.h: Likewise.
13274 * config/ns32k/netbsd.h: Likewise.
13275 * config/sparc/netbsd.h: Likewise.
13276 * config/vax/netbsd.: Likewise.
13278 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
13280 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13281 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
13282 (TARGET_INITIALIZER): this.
13283 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13284 (BITFIELD_NBYTES_LIMITED): Markup fix.
13285 * tree.h (default_ms_bitfield_layout_p): Declare.
13286 (record_layout_info): Added prev_field.
13287 * tree.c (default_ms_bitfield_layout_p): New fn.
13288 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13289 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13290 * stor-layout.c: Include target.h.
13291 (start_record_layout): Initialize prev_field.
13292 (place_field): Handle MS bit-field layout, and disregard
13293 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13294 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
13295 * Makefile.in (stor-layout.o): Adjust dependencies.
13297 2002-02-05 Jason Merrill <jason@redhat.com>
13299 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13301 2002-02-05 Andreas Jaeger <aj@suse.de>
13303 * crtstuff.c: Fix comments.
13305 2002-02-05 Richard Henderson <rth@redhat.com>
13308 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13309 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13312 * config/mips/mips.c (function_arg): Handle TImode.
13313 (function_arg_advance): Likewise.
13315 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13317 * config/rs6000/altivec.h (vec_step_help): Rename to
13320 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13322 * config/rs6000/altivec.h: Fix typos.
13324 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13326 * config/arm/netbsd.h: Correct a comment.
13328 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13330 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13331 building void typed builtins.
13333 * config/rs6000/altivec.h (vec_ld*): Fix typos.
13334 (vec_step): Implement for C++.
13336 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13338 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13340 2002-02-04 Richard Henderson <rth@redhat.com>
13342 * combine.c (nonzero_bits): Re-introduce special case for
13343 sp/fp/ap wrt REGNO_POINTER_ALIGN.
13345 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13347 * doc/extend.texi: Warn about unsupported usage of altivec
13350 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13351 (altivec_predicate_*): New.
13353 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13354 Add C++ version of vec_*() functions.
13356 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13357 (bdesc_2arg): Remove altivec predicates.
13358 (altivec_expand_builtin): Handle predicates.
13359 (altivec_init_builtins): Handle predicates.
13360 (altivec_expand_predicate_builtin): New.
13362 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13364 * pa.c (DO_FRAME_NOTES): Move forward.
13365 (store_reg): Revise handling of frame notes.
13366 (load_reg): Likewise.
13367 (set_reg_plus_d): Likewise.
13368 (hppa_expand_prologue): Likewise.
13369 (hppa_expand_epilogue): Likewise.
13371 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13373 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13375 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13377 PR c/4475, c++/3780:
13378 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13379 * c-common.h (SWITCH_TYPE): Define.
13380 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13381 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13382 Rename spareness variable to sparseness.
13383 (expand_end_case_type): Renamed from expand_end_case, use orig_type
13384 if non-NULL instead of TREE_TYPE (orig_index).
13385 * tree.h (expand_end_case_type): Renamed from expand_end_case.
13386 (expand_end_case): Define using expand_end_case_type.
13387 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13388 to expand_end_case_type.
13389 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13391 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13393 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13394 (BIGGEST_ALIGNMENT): Change to 128.
13396 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13398 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13400 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13402 * pa.md (call_internal_reg_64bit): Remove unused variable.
13404 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
13406 * config/arm/arm.h (machine_function): Add uses_anonymous_args
13408 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13409 * config/arm/arm.c (current_function_anonymous_args): Delete,
13410 replace uses with cfun->machine->uses_anonymous_args.
13411 (arm_reorg): Do not reset uses_anonymous_args.
13413 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13414 any geenral register.
13416 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
13418 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13421 2002-02-04 Richard Henderson <rth@redhat.com>
13423 * combine.c (force_to_mode): Remove STACK_BIAS code.
13424 (nonzero_bits): Likewise. Replace sp/fp special case with
13425 REGNO_POINTER_ALIGN.
13427 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13428 (HARD_FRAME_POINTER_REGNUM): New.
13429 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13430 (FIXED_REGS, CALL_USED_REGS): Update.
13431 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13432 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13433 (HARD_REGNO_NREGS): Update for SFP.
13434 (STACK_POINTER_OFFSET): Include bias here ...
13435 (FIRST_PARM_OFFSET): ... not here.
13436 (STACK_BIAS): Remove.
13437 (INIT_EXPANDERS): New.
13438 (STARTING_FRAME_OFFSET): Do not include bias.
13439 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13440 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13441 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13442 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13443 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13444 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13445 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13446 (MUST_SAVE_REGISTER): Likewise.
13447 (sparc_flat_function_prologue): Likewise.
13448 (sparc_flat_function_epilogue): Likewise.
13449 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13450 (sparc_init_modes): SFP is GENERAL_REGS.
13451 (sparc_builtin_saveregs): SFP does not have bias applied.
13453 2002-02-04 Richard Henderson <rth@redhat.com>
13455 * config/alpha/alpha.c (current_function_is_thunk): Don't check
13456 current_function_is_thunk.
13457 (alpha_sa_mask): Distinguish between current_function_is_thunk
13458 called from ASM_OUTPUT_MI_THUNK and not.
13459 (alpha_does_function_need_gp): Thunks always need gp.
13460 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13461 (alpha_output_mi_thunk_osf): New.
13462 * config/alpha/alpha-protos.h: Update.
13463 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13465 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
13467 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13468 function types, not when they're taken away.
13470 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
13472 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13473 CODE_LABEL and jump table when replacing a table jump with a
13476 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13478 * config/s390/s390-protos.h (legitimize_la_operand,
13479 s390_secondary_input_reload_class, s390_plus_operand,
13480 s390_expand_plus_operand): Add prototypes.
13482 config/s390/s390.c (s390_secondary_input_reload_class,
13483 s390_plus_operand, s390_expand_plus_operand): New functions.
13485 (struct s390_address): New member 'pointer'.
13486 (s390_decompose_address): Compute it.
13487 (legitimate_la_operand_p): Use it.
13488 (legitimize_la_operand): New function.
13489 (movti, movdi, movdf splitters): Call it.
13491 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13492 (PREDICATE_CODES): Add s390_plus_operand.
13494 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13495 (la_ccclobber): Allow GENERAL_REGS as output operand.
13497 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13498 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13499 (*la_64, *la_31, reload_indi, reload_insi): ... these.
13501 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13503 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13504 register names for regular asm () construct.
13506 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13508 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13511 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13513 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13516 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
13518 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13519 constant pool to be identical by string address and index.
13521 2002-02-04 Anthony Green <green@redhat.com>
13523 * output.h (SECTION_OVERRIDE): Define.
13524 * varasm.c (named_section): Obey SECTION_OVERRIDE.
13526 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13528 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13529 by existing arm*-*-netbsd* (a.out) target.
13530 (ns32k-*-netbsdelf*): Likewise.
13531 (sparc-*-netbsdelf*): Likewise.
13532 (vax-*-netbsdelf*): Likewise.
13534 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
13536 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13537 headers and libobjc headers.
13539 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
13541 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13542 (_mingw.h): Remove duplicate include.
13544 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13546 * config.gcc: Set cpu_type to m68k for 68010, as well.
13547 (m68010-*-netbsdelf*): New...
13548 (m68k*-*-netbsdelf*): ...targets.
13549 * config/m68k/netbsd-elf.h: New file.
13551 2002-02-02 Kazu Hirata <kazu@hxi.com>
13553 * config/h8300/h8300.c (hand_list): Move inside function_arg.
13555 2002-02-02 Kazu Hirata <kazu@hxi.com>
13557 * config/h8300/h8300.c (h8_push_ops): Move inside
13559 (h8_pop_ops): Likewise.
13560 (h8_move_ops): Likewise.
13562 2002-02-02 Kazu Hirata <kazu@hxi.com>
13564 * config/h8300/h8300.c (os_task): Make it static.
13565 (monitor): Likewise.
13566 (pragma_saveall): Likewise.
13568 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
13570 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13571 constant is a valid sign-extension for Pmode.
13573 2002-02-02 Kazu Hirata <kazu@hxi.com>
13575 * config/h8300/h8300.c: Fix formatting.
13577 2002-02-02 Kazu Hirata <kazu@hxi.com>
13579 * config/h8300/h8300.md: Fix formatting.
13581 2002-02-02 Kazu Hirata <kazu@hxi.com>
13583 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13584 predicates of operands[1]. Split the patterns for each
13587 2002-02-02 Kazu Hirata <kazu@hxi.com>
13589 * config/h8300/h8300.md (xor patterns): Tighten the predicates
13590 of operands[1] to register_operand.
13592 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13594 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13595 * cpphash.c (_cpp_init_hashtable): Similarly.
13596 * cppinit.c (cpp_create_reader): Default the signed_char flag.
13597 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13598 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13599 (cpp_handle_option): Handle the new options.
13600 * cpplex.c (cpp_interpret_charconst): Use new flag.
13601 * cpplib.h (struct cpp_options): New member signed_char.
13602 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13603 (cpp_options): Handle -fsigned-char and -funsigned-char.
13604 (static_specs): Remove signed_char_spec.
13605 (do_spec1): Don't handle %c.
13606 * system.h: Poison SIGNED_CHAR_SPEC.
13607 * tradcif.y (yylex): Use flag_signed_char.
13608 * tradcpp.h (flag_signed_char): New.
13609 * tradcpp.c (flag_signed_char): New.
13610 (main): Handle new command-line options.
13611 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13613 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13614 * avr/avr.h: Remove old comments.
13615 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13616 (CC1_SPEC): Pass -fsigned-char if -mic*.
13617 (SIGNED_CHAR_SPEC): Remove.
13619 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13621 2002-02-01 Eric Christopher <echristo@redhat.com>
13623 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13624 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13625 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13626 (ASM_OUTPUT_REG_POP): Ditto.
13628 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13630 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13633 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13635 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13637 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13640 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13643 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13645 * cfganal.c: Include tm_p.h.
13646 (keep_with_call_p): Fix the test that determines if a register holds
13647 the return value of a call.
13649 2002-02-01 DJ Delorie <dj@redhat.com>
13651 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13652 we are given conflicting registers, switch to the other one we
13653 had allocated for us.
13654 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13655 as TImode so we know when the "other" register is available.
13657 2002-02-01 David O'Brien <obrien@FreeBSD.org>
13659 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13662 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13664 * cfganal.c (keep_with_call_p): New function.
13665 (flow_call_edges_add): Prevent splitting a block between a call and
13666 a single-set instruction that should be kept in the same block.
13668 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
13670 * doc/install.texi (avr): Update outdated URL.
13672 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
13674 * config/stormy16/stormy16.md (pushqi): New.
13678 (movhi): Remove stack operands.
13680 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13681 nonimmediate_nonstack_operand.
13682 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13684 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13687 2002-01-31 Jason Merrill <jason@redhat.com>
13689 * Makefile.in (c-parse.c): Handle .output file.
13690 * objc/Make-lang.in (objc-parse.c): Likewise.
13692 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
13694 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
13695 the -me[lb] option is given. Don't output the default flag
13698 2002-01-31 Zack Weinberg <zack@codesourcery.com>
13700 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
13701 the primary source file; this has not been done yet.
13702 * c-decl.c (c_expand_body): Reset input_filename from
13703 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
13705 2002-01-31 Kazu Hirata <kazu@hxi.com>
13707 * rtlanal.c (subreg_regno_offset): Do not use
13708 SUBREG_REGNO_OFFSET.
13709 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
13710 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
13712 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13714 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
13715 version rather than GNATS version in --version output.
13717 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
13719 * ifcvt.c (noce_process_if_block): Make a copy of the destination
13720 when copying back from a temporary.
13722 2002-01-30 Richard Henderson <rth@redhat.com>
13724 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
13725 and new_dest are the same.
13727 2002-01-30 Richard Henderson <rth@redhat.com>
13730 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
13731 * rtl.c (note_insn_name): Update.
13732 * emit-rtl.c (remove_unnecessary_notes): Kill it.
13733 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
13734 to perform loop rotation.
13735 (expand_exit_loop_top_cond): New.
13736 * tree.h (expand_exit_loop_top_cond): Declare it.
13737 * c-semantics.c (genrtl_while_stmt): Use it.
13738 (genrtl_for_stmt): Likewise.
13740 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
13742 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
13743 arguments to 64-bit boundaries on 64-bit ABIs.
13745 2002-01-30 Steve Ellcey <sje@cup.hp.com>
13747 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
13749 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13751 * c-decl.c (grokdeclarator): Handle type being a typedef for an
13754 2002-01-30 David O'Brien <obrien@FreeBSD.org>
13756 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
13757 * config/sparc/sparc_bi.h: Remove file.
13758 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
13760 2002-01-30 Richard Henderson <rth@redhat.com>
13762 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
13764 2002-01-30 Zack Weinberg <zack@codesourcery.com>
13766 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
13768 2002-01-30 Jason Merrill <jason@redhat.com>
13770 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
13771 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
13772 (reg_save): Use DW_CFA_offset_extended_sf instead.
13774 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
13776 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13778 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
13781 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
13783 * rs6000.md ("*call_value_local32"): Remove constraints.
13784 ("*call_value_local64"): Same.
13785 ("*call_value_indirect_nonlocal_aix32"): Same.
13786 ("*call_value_nonlocal_aix32"): Same.
13787 ("*call_value_indirect_nonlocal_aix64"): Same.
13788 ("*call_value_nonlocal_aix64"): Same.
13789 ("*call_value_nonlocal_sysv"): Same.
13791 2002-01-29 Richard Henderson <rth@redhat.com>
13793 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
13795 2002-01-29 Richard Henderson <rth@redhat.com>
13797 * expr.c (force_operand): Ignore flag_pic for detecting pic
13799 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
13800 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
13801 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
13802 instead of open-coded loop.
13803 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
13804 be fixed when in use.
13806 2002-01-29 Richard Henderson <rth@redhat.com>
13808 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
13809 * sched-rgn.c (propagate_deps): Update them.
13810 * sched-deps.c (sched_analyze_insn): Update them. Flush the
13811 clobbers list when either gets too long.
13813 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13815 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
13816 and INDEX_REGS the same as GENERAL_REGS.
13817 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
13819 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13821 * tree.c (build_nonstandard_integer_type): Correct prototype.
13823 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
13825 * config/s390/s390.md (movstrsico, movstrdix_64,
13826 movstrsix_31): Remove, replace by ...
13827 (movstrdi_short, movstrsi_short, movstrdi_long,
13828 movstrsi_long): ... these. New.
13829 (movstrdi, movstrsi): Adapt.
13831 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
13832 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
13833 Remove unnecessary CC clobber.
13834 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
13835 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
13837 (divmoddi4): Don't partially initialize TImode register.
13839 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
13841 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
13843 2002-01-29 Richard Henderson <rth@redhat.com>
13845 * flow.c (print_rtl_and_abort): Remove.
13846 (print_rtl_and_abort_fcn): Remove.
13847 (verify_local_live_at_start): Use dump_bb instead.
13848 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
13849 (verify_wide_reg_1): Return 2 on mode test failure.
13851 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13853 PR c/3325, c/3326, c/2511, c/3347
13854 * c-decl.c (enum_decl_context): Remove BITFIELD.
13855 (grokdeclarator): Take bitfield width as an input.
13856 Ensure bitfields are given the correct type. Perform
13857 bitfield width validation with build_bitfield_integer_type
13858 rather than waiting for finish_struct.
13859 (grok_typename, grok_typename_in_parm_context, start_decl,
13860 push_parmdecl, grokfield, start_function): Update calls to
13862 (build_bitfield_integer_type): New function.
13863 (finish_struct): Move bitfield validation to grokdeclarator
13864 and build_bitfield_integer_type.
13865 * tree.c (build_nonstandard_integer_type): New function.
13866 * tree.h (build_nonstandard_integer_type): New prototype.
13868 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
13870 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13873 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
13874 don't ignore unrecognized -W* options.
13875 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
13876 * cpplib.h (cpp_handle_option): Adjust prototype.
13877 * c-decl.c (c_decode_options): Pass 0 as last argument to
13881 * gcc.c (cpp_unique_options): Split from cpp_options.
13882 (cpp_options): Source cpp_unique_options.
13883 (default_compilers): Use cpp_unique_options instead of cpp_options
13884 when used together with cc1_options.
13885 (static_specs): Add cpp_unique_options.
13886 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
13887 when used together with cc1_options.
13889 2002-01-29 Kazu Hirata <kazu@hxi.com>
13891 * config/h8300/h8300-protos.h: Update the prototype of
13893 * config/h8300/h8300.c (output_a_shift): Remove an unused
13894 argument 'insn'. Remove redundant code.
13895 * config/h8300/h8300.md: Adust to the new prototype of
13898 2002-01-29 Kazu Hirata <kazu@hxi.com>
13900 * config/h8300/h8300-protos.h: Update the prototypes of
13901 emit_a_rotate and expand_a_rotate.
13902 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
13903 first argument to 'enum rtx_code'.
13904 (expand_a_rotate): Likewise.
13906 2002-01-28 Kazu Hirata <kazu@hxi.com>
13908 * config/h8300/h8300-protos.h: Update the prototype of
13910 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
13912 * config/h8300/h8300.md: Adjust to the new prototype.
13914 2002-01-28 Kazu Hirata <kazu@hxi.com>
13916 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
13919 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
13921 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
13922 is a fixed register before returning pic_offset_table_rtx.
13923 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
13924 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
13926 2002-01-28 Jason Merrill <jason@redhat.com>
13928 * dwarf2.h: Sync with src version.
13930 2002-01-28 Paul Koning <pkoning@equallogic.com>
13932 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
13933 BT_FN_VOID_PTR_VAR.
13934 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
13935 * doc/extend.texi (__builtin_prefetch): Update documentation:
13936 first argument is now const void ptr.
13938 2002-01-28 Kazu Hirata <kazu@hxi.com>
13940 * config/h8300/h8300-protos.h: Remove an unused prototype.
13942 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
13944 * toplev.c (lang_independent_init): Round up identifier size.
13946 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
13948 * config.gcc: Revert previous change.
13950 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
13952 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
13954 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
13956 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
13957 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
13958 other non-elf netbsd config frags.
13959 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
13960 collect2 will does that.
13961 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
13962 shared-lib frobbing will work.
13964 2002-01-28 Kazu Hirata <kazu@hxi.com>
13966 * config/h8300/h8300.h: Fix formatting.
13967 * config/h8300/h8300.md: Likewise.
13969 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
13971 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
13972 the old, removed AAA_standards fix.
13973 * fixinc/fixincl.x: Rebuilt.
13975 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
13977 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
13978 atexit call in crtbegin, hooked in after call to frame_dummy;
13979 register EH before registering __fini__start.
13981 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
13983 * config/rs6000/altivec.h: Remove spurious semicolons.
13985 2002-01-27 Kazu Hirata <kazu@hxi.com>
13987 * config/h8300/h8300.md: Replace dead bit extraction patterns
13988 with ones that work.
13990 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13992 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
13993 if not STRICT_ALIGNMENT.
13994 * rtl.h (MEM_ALIGN): Likewise.
13996 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
13998 * doc/invoke.texi (-fdump-translation-unit): Revert this
13999 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14001 2002-01-27 Kazu Hirata <kazu@hxi.com>
14003 * config/h8300/h8300.md (define_constants): New.
14004 (anonymous patterns) Use defined constants appropriately.
14006 2002-01-27 Kazu Hirata <kazu@hxi.com>
14008 * config/h8300/h8300.c (function_arg): Remove redundant code.
14010 2002-01-26 Richard Henderson <rth@redhat.com>
14012 * sched-deps.c (reg_pending_uses_head): New.
14013 (reg_pending_barrier): Rename from reg_pending_sets_all.
14014 (find_insn_list): Don't mark inline.
14015 (find_insn_mem_list): Remove.
14016 (add_dependence_list, add_dependence_list_and_free): New.
14017 (flush_pending_lists): Replace only_write param with separate
14018 for_read and for_write parameters. Update all callers. Use
14019 add_dependence_list_and_free.
14020 (sched_analyze_1): Do not add reg dependencies here; just set
14021 the pending bits. Use add_dependence_list.
14022 (sched_analyze_2): Likewise.
14023 (sched_analyze_insn): Replace schedule_barrier_found with
14024 reg_pending_barrier. Add all dependencies for pending reg
14025 uses, sets, and clobbers.
14026 (sched_analyze): Don't add reg dependencies for calls, just
14027 set pending bits. Use regs_invalidated_by_call. Treat
14028 sched_before_next_call as a normal list, not a fake insn.
14029 (init_deps): No funny init for sched_before_next_call.
14030 (free_deps): Free pending mems lists. Don't zero reg_last.
14031 (init_deps_global): Init reg_pending_uses.
14032 (finish_deps_global): Free it.
14033 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14034 (find_insn_mem_list): Remove.
14035 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14036 (propagate_deps): Use them. Zero temp mem lists.
14038 2002-01-26 Richard Henderson <rth@redhat.com>
14040 * Makefile.in (CRTSTUFF_CFLAGS): New.
14041 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14042 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14043 crtstuff.c instead of alpha assembly version.
14044 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14045 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14046 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14047 (__do_global_dtors_aux): Mark used.
14048 (frame_dummy, __do_global_ctors_aux): Mark used.
14049 (fini_dummy, init_dummy): Remove.
14051 * config/alpha/crtbegin.asm: Remove file.
14052 * config/alpha/crtend.asm: Remove file.
14053 * config/alpha/t-crtbe: Remove file.
14054 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14055 (LINK_EH_SPEC): New.
14057 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14058 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14059 calling constructors.
14060 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14062 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14063 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14064 CRT_END_INIT_DUMMY hack.
14065 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14066 FORCE_{INIT,FINI}_SECTION_ALIGN.
14068 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14069 FORCE_{INIT,FINI}_SECTION_ALIGN.
14071 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14072 invocation sequence.
14073 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14075 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14076 (FORCE_CODE_SECTION_ALIGN): New.
14078 2002-01-26 Richard Henderson <rth@redhat.com>
14080 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14082 2002-01-26 Richard Henderson <rth@redhat.com>
14084 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14085 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14087 2002-01-26 Kazu Hirata <kazu@hxi.com>
14089 * config/h8300/h8300.md: Remove bit extraction patterns that
14090 cannot be triggered.
14091 Restrict each bit extraction pattern to a variant on which the
14094 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14096 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14098 2002-01-26 Kazu Hirata <kazu@hxi.com>
14100 * config/h8300/h8300.md: Remove bit test patterns that cannot
14102 Restrict each bit test pattern to a variant on which the
14105 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14107 * builtins.c (expand_builtin_strncat): Remove redundant check for
14110 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14112 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14114 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14117 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14119 * dbxout.c (dbxout_init): Use assemble_name rather than just
14120 stripping off the first character.
14121 (dbxout_source_file): Likewise.
14123 2002-01-25 DJ Delorie <dj@redhat.com>
14125 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14126 using rtx_equal_p, not by comparing pointers.
14128 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14130 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14131 for PIC_OFFSET_TABLE_REGNUM.
14132 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14134 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14136 * config.gcc (x86_64-*-freebsd*): New target.
14137 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14139 (i[34567]86-*-freebsd*): Don't include svr4.h.
14140 * config/i386/freebsd64.h: New file.
14142 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14144 * config/alpha/x-vms (version): Make static.
14146 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14147 in previous checkin.
14149 * Makefile.in (install-headers-cp): New target.
14150 * config.gcc (alpha-dec-*vms*): Install headers with
14153 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14155 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14158 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14160 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14161 of compare_tree_int.
14162 (expand_builtin_strncat): Likewise.
14163 * c-decl.c (finish_struct): Use tree_low_cst.
14164 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14165 * tree.c (compare_tree_int): Likewise.
14167 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14169 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14170 adjustments even if they are implemented by more than two insns.
14172 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14174 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14175 * df.h (struct ref): Kill B.
14176 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14178 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14179 * flow.c (propagate_one_insn): Use it.
14180 (mark_used_regs): Handle NIL.
14182 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14184 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14187 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14189 * rs6000.md (prefetch): Make address V4SI mode so that the address
14190 is restricted to legitimate form for instruction.
14192 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14194 * doc/install.texi (xtensa-*-elf): New target.
14195 (xtensa-*-linux*): New target.
14196 * doc/contrib.texi: Add myself.
14198 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14200 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14201 purpose register to hold an SImode (or smaller) value.
14203 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14205 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14207 * crtstuff.c: Likewise.
14209 2002-01-25 Kazu Hirata <kazu@hxi.com>
14211 * config/h8300/h8300.md (negation patterns): Tighten
14212 predicates to register_operand.
14214 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14216 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14219 * builtins.c (expand_builtin_prefetch): Same.
14221 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14223 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14226 2002-01-24 Kazu Hirata <kazu@hxi.com>
14228 * config/h8300/h8300.c (print_operand): Remove support for
14229 operand character 'A'.
14230 * config/h8300/h8300.md (three anonymous patterns): Replace
14231 operand character 'A' with either 'T' or 'S'.
14233 2002-01-24 Kazu Hirata <kazu@hxi.com>
14235 * config/h8300/h8300.c (print_operand): Remove support for
14236 operand character 'U'.
14238 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
14240 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14242 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
14244 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14245 values to be assigned to the stack pointer.
14247 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14249 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14250 to const_double needs to be done right for big-endian systems.
14252 2002-01-24 Jason Merrill <jason@redhat.com>
14255 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14256 to can_throw_internal.
14258 2002-01-23 Richard Henderson <rth@redhat.com>
14260 * fold-const.c (fold): Change UINT_MAX test to check vs precision
14261 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
14263 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14265 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14266 (symGOT2reg): Use them, then set as GOT value as unchanging.
14267 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
14268 as a temporary, if possible.
14269 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
14270 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14272 2002-01-23 Kazu Hirata <kazu@hxi.com>
14274 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14275 accept to accept 0x80 as operands[2].
14277 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14279 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14281 2002-01-23 Richard Henderson <rth@redhat.com>
14283 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14285 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
14287 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14288 (parmlist_or_identifiers_1): Verify that only a parmlist follows
14291 2002-01-23 Richard Henderson <rth@redhat.com>
14293 * expr.c (move_by_pieces_1): Extend size before negation.
14295 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14296 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14297 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14298 * config/m68k/t-m68kelf: Likewise.
14300 2002-01-23 Bob Wilson <bob.wilson@acm.org>
14302 * config/xtensa/elf.h: New file.
14303 * config/xtensa/lib1funcs.asm: New file.
14304 * config/xtensa/lib2funcs.S: New file.
14305 * config/xtensa/linux.h: New file.
14306 * config/xtensa/t-xtensa: New file.
14307 * config/xtensa/xtensa-config.h: New file.
14308 * config/xtensa/xtensa-protos.h: New file.
14309 * config/xtensa/xtensa.c: New file.
14310 * config/xtensa/xtensa.h: New file.
14311 * config/xtensa/xtensa.md: New file.
14312 * config.gcc (xtensa-*-elf*): New target.
14313 (xtensa-*-linux*): New target.
14314 * cse.c (canon_hash): Compare rtx pointers instead of register
14315 numbers. This is required for the Xtensa port.
14316 * integrate.c (copy_insn_list): Handle case where the static
14317 chain is in memory and the memory address has to be copied to
14319 * doc/invoke.texi (Option Summary): Add Xtensa options.
14320 (Xtensa Options): New node.
14321 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14323 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14325 * diagnostic.c (internal_error): Do ICE suppression only
14326 when ENABLE_CHECKING is not defined.
14328 * c-typeck.c (require_complete_type): Return error_mark_node
14329 if type is error_mark_node.
14331 2002-01-23 Janis Johnson <janis187@us.ibm.com>
14333 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14334 -Os and issue a warning.
14336 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14338 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14339 current (lack of) need for host configuration by hand.
14341 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14342 references. Documentation of some target macros moved from
14343 hostconfig.texi to tm.texi.
14345 2002-01-23 Will Cohen <wcohen@redhat.com>
14347 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14350 2002-01-23 Kazu Hirata <kazu@hxi.com>
14352 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14355 2002-01-23 Jason Merrill <jason@redhat.com>
14357 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14359 * function.c (assign_parms): Don't put args of inline functions
14360 into registers when not optimizing.
14362 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
14364 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14365 (prologue_use): New pattern.
14366 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14367 preference to gen_rtx_USE.
14368 (thumb_expand_prologue): Use gen_prologue_use in preference to
14370 (thumb_expand_epilogue): Use gen_prologue_use in preference to
14373 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
14375 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14377 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
14380 * doc/extend.texi: Correct documentation of __alignof__.
14382 2002-01-22 Zack Weinberg <zack@codesourcery.com>
14384 * params.h: Rename arguments of DEFPARAM so that it will be
14385 recognized as a translation keyword.
14387 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14389 * extend.texi: Document altivec functions.
14390 Fix N-bit adjectives in X86 builtin documentation.
14392 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14394 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14395 auto_inc_dec values.
14397 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
14399 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14401 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14403 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14405 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14407 2002-01-22 Richard Henderson <rth@redhat.com>
14409 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14410 copy_insn not copy_rtx.
14412 2002-01-23 Alan Modra <amodra@bigpond.net.au>
14414 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14415 "nonzero" as that might add "1" bits. Ensure "constop" is
14416 properly sign extened.
14417 (force_to_mode): Tweak for sign extended constop.
14419 2002-01-22 Richard Henderson <rth@redhat.com>
14421 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14422 for_each_rtx instead of assuming we're already looking at the MEM.
14423 (split_small_symbolic_mem_operand): Likewise.
14424 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14425 * config/alpha/alpha.md (small symbolic memory splitters): Update.
14427 2002-01-22 Richard Henderson <rth@redhat.com>
14429 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14430 sequence number for the literal.
14431 (divmoddi_internal_er): Likewise.
14433 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14436 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14437 in LIBICONV variable.
14438 * configure: Regenerated.
14440 2002-01-22 Krister Walfridsson <cato@df.lth.se>
14442 * dependence.c (build_def_use): Remove array_idx.
14444 * dwarfout.c (last_filename): Remove.
14445 (output_compile_unit_die): Remove last_filename.
14447 2002-01-22 Roger Sayle <roger@eyesopen.com>
14448 Richard Henderson <rth@redhat.com>
14451 * fold-const.c (fold): Optimize unsigned comparisons against
14452 UINT_MAX (and similar unsigned constants).
14454 2002-01-22 Janis Johnson <janis187@us.ibm.com>
14456 * Makefile.in (loop.o): Depend on OPTABS_H.
14457 * loop.c (emit_prefetch_instructions): Check the prefetch operand
14458 against the predicate.
14461 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14462 for the address operand.
14464 2002-01-22 Richard Henderson <rth@redhat.com>
14466 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14468 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14471 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14472 preprocessor flags.
14474 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
14476 * config.gcc (x86_64-*-netbsd*): New target.
14477 * config/i386/netbsd64.h: New file.
14479 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14481 * regrename.c (kill_value): Fix typo.
14483 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14485 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14487 * config/rs6000/rs6000.h: Same.
14489 * function.c (instantiate_virtual_regs): Remove
14490 STARTING_FRAME_PHASE.
14491 (assign_stack_local_1): Same.
14492 Calculate frame phase.
14494 2002-01-22 Nick Clifton <nickc@redhat.com>
14496 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14497 variable declaration to outer scope in order to simplify
14499 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14500 arm_hard_regno_mode_ok.
14501 * config/arm/arm-protos.h: Add a prototype for
14502 arm_hard_regno_mode_ok.
14503 * config/arm/arm.c (soft_df_operand): Remove now redundant
14504 check for DImode values using IP_REGNUM.
14505 (nonimmediate_soft_df_operand): Remove now redundant check for
14506 DImode values using IP_REGNUM.
14507 (arm_hard_regno_mode_ok): New function. New check: make sure
14508 that DImode values are not stored in IP_REGNUM.
14510 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14512 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14514 2002-01-22 Jason Merrill <jason@redhat.com>
14516 * c-semantics.c (genrtl_compound_stmt): Only check nesting
14517 consistency if this COMPOUND_STMT is scoped.
14519 2002-01-22 Kazu Hirata <kazu@hxi.com>
14521 * predict.c: Fix formatting.
14522 * print-tree.c: Likewise.
14523 * protoize.c: Likewise.
14524 * real.h: Likewise.
14526 * sbitmap.h: Likewise.
14527 * scan.c: Likewise.
14528 * sched-deps.c: Likewise.
14529 * sched-vis.c: Likewise.
14530 * sdbout.c: Likewise.
14531 * sibcall.c: Likewise.
14533 * ssa-ccp.c: Likewise.
14534 * ssa-dce.c: Likewise.
14535 * stmt.c: Likewise.
14536 * stor-layout.c: Likewise.
14537 * system.h: Likewise.
14539 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14541 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14542 if fits in bounds of base type.
14544 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14545 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14546 (add_bound_info, default): If can't find a context, make a
14548 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14550 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
14552 * c-typeck.c (parser_build_binary_op): If result from
14553 build_binary_op is ERROR_MARK just return error_mark_node without
14554 further processing.
14556 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
14558 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14559 Split a.out-specific bits into...
14560 * config/netbsd-aout.h: ...this.
14561 * config/netbsd-elf.h: New file.
14562 * config/alpha/netbsd-elf.h: Remove.
14563 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14564 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14565 (STARTFILE_SPEC): Remove redundant definition.
14566 (ENDFILE_SPEC): Likewise.
14567 (LINK_SPEC): Likewise.
14568 (CPP_SPEC): Likewise.
14569 (ASM_SPEC): Likewise.
14570 (LIB_SPEC): Likewise.
14571 (SWITCH_TAKES_ARG): Likewise.
14572 (TARGET_MEM_FUNCTIONS): Likewise.
14573 (CPP_PREDEFINES): Redefine.
14574 (ASM_FINAL_SPEC): Remove redefinition.
14575 (ASM_COMMENT_START): Redefine.
14576 (FUNCTION_PROFILER): Define.
14577 (TARGET_VERSION): Redefine.
14578 Comment and formatting cleanup.
14579 * config/i386/netbsd.h: Include <netbsd-aout.h>.
14580 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14581 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14582 big- or little-endian.
14583 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14584 * config.gcc (*-*-netbsd*): Add definitions common to all
14586 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14587 gnu_ld definitions. Add netbsd-elf.h to and remove
14588 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
14589 tmake_file, and don't lose previous tmake_file contents.
14590 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14591 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14592 gnu_ld definitions. Add netbsd-elf.h to tm_file.
14593 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14594 (mipsel-*-netbsd*): Rename this to...
14595 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
14596 mips/little.h to tm_file for mips*el-*.
14597 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14598 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14599 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14601 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14603 * pa-protos.h (reg_before_reload_operand): New function prototype.
14604 * pa.c (reg_before_reload_operand): New function implementation.
14605 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
14606 contraints to "*m".
14608 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14610 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14612 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14614 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14615 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14616 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14617 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14618 (ENDFILE_SPEC): Undefine.
14619 (STARTFILE_SPEC): Redefine for PA.
14621 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14623 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14625 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
14627 * config.gcc: Add entries to supported PowerPC --with-cpu
14630 2002-01-21 Jakub Jelinek <jakub@redhat.com>
14632 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14633 true for 64-bit mode only SSE registers in 32-bit mode.
14635 2002-01-21 Kazu Hirata <kazu@hxi.com>
14637 * unwind-dw2.c: Fix formatting.
14638 * unwind-dw2-fde.c: Likewise.
14639 * unwind-dw2-fde.h: Likewise.
14640 * unwind-pe.h: Likewise.
14641 * varasm.c: Likewise.
14642 * varray.h: Likewise.
14644 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
14646 Remove workaround for register stack overwrite bug in mmix.
14647 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14648 support for TARGET_REG_STACK_FILL_BUG.
14649 * config/mmix/mmix.h: Remove member has_call_without_parameters.
14650 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14652 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14653 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14654 -mno-reg-stack-fill-bug-workaround.
14655 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14656 machine member has_call_without_parameters.
14657 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14658 -mreg-stack-fill-bug-workaround and
14659 -mno-reg-stack-fill-bug-workaround.
14660 (MMIX Options): Ditto.
14662 2002-01-21 Kazu Hirata <kazu@hxi.com>
14664 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14666 Remove redundant code.
14668 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
14670 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14671 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14672 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14673 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14674 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14675 out target macro definitions and non-target-specific comments
14676 mostly taken from old versions of the manual.
14678 2002-01-20 Kazu Hirata <kazu@hxi.com>
14680 * config/h8300/h8300.h: Fix comment formatting.
14681 * config/ia64/aix.h: Likewise.
14682 * config/ia64/ia64-protos.h: Likewise.
14683 * config/ia64/ia64.c: Likewise.
14684 * config/ia64/ia64.h: Likewise.
14685 * config/ia64/ia64intrin.h: Likewise.
14686 * config/ia64/linux.h: Likewise.
14687 * config/ia64/unwind-aix.c: Likewise.
14688 * config/ia64/unwind-ia64.c: Likewise.
14690 2002-01-20 Kazu Hirata <kazu@hxi.com>
14692 * config/h8300/h8300.c: Revise comments about shift code.
14694 2002-01-20 Kazu Hirata <kazu@hxi.com>
14696 * config/h8300/h8300.c (function_arg): Update a comment.
14698 2002-01-20 Kazu Hirata <kazu@hxi.com>
14700 * config/h8300/h8300.md: Update the comments at the beginning
14703 2002-01-20 Kazu Hirata <kazu@hxi.com>
14705 * config/i370/i370.c: Fix comment formatting.
14706 * config/i370/i370.h: Likewise.
14707 * config/i370/i370.md: Likewise.
14708 * config/i370/linux.h: Likewise.
14710 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14712 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
14714 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
14715 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
14716 in incomplete case.
14718 2002-01-20 Graham Stott <grahams@redhat.com>
14720 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
14722 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
14724 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
14726 2002-01-19 Tom Rix <trix@redhat.com>
14728 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
14730 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
14732 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
14734 * function.c (assign_stack_local_1): Adjust x_frame_offset with
14735 STARTING_FRAME_PHASE.
14736 (STARTING_FRAME_PHASE): New.
14737 (instantiate_virtual_regs): Check saneness of
14738 STARTING_FRAME_PHASE.
14740 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
14742 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14744 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
14746 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
14748 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
14749 be used for bootstrapping GCC 3.0.
14751 2002-01-18 Kazu Hirata <kazu@hxi.com>
14753 * config/h8300/h8300.md: Fix an insn length.
14755 2002-01-18 Kazu Hirata <kazu@hxi.com>
14757 * bitmap.h: Fix comment formatting.
14758 * combine.c: Likewise.
14759 * cppfiles.c: Likewise.
14760 * c-pragma.h: Likewise.
14761 * c-typeck.c: Likewise.
14763 * dwarf2out.c: Likewise.
14764 * function.c: Likewise.
14766 * genattrtab.c: Likewise.
14767 * gthr-win32.h: Likewise.
14768 * haifa-sched.c: Likewise.
14769 * predict.c: Likewise.
14770 * rtlanal.c: Likewise.
14772 * unwind-dw2-fde.h: Likewise.
14773 * unwind-pe.h: Likewise.
14774 * vmsdbgout.c: Likewise.
14776 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14778 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
14779 if type_required and passed decl.
14781 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
14783 * config.gcc (cpu_type): Include altivec.h in powerpc
14787 * config/rs6000/altivec.h: New.
14789 2002-01-17 David Edelsohn <edelsohn@gnu.org>
14791 * doc/install.texi (*-ibm-aix*): Update assembler and exception
14792 handling information.
14793 * doc/trouble.texi (Interoperation): Add libstdc++ information
14795 (Misunderstandings): Add template instantiation and static template
14796 member information for AIX.
14798 2002-01-17 Jason Merrill <jason@redhat.com>
14800 * dbxout.c (dbxout_type): Support const and volatile.
14802 * except.c (add_partial_entry): Remove backwards compatibility code.
14803 (end_protect_partials): Likewise.
14805 2002-01-17 Jakub Jelinek <jakub@redhat.com>
14807 * config/ia64/ia64.md (prologue_use): New.
14808 * config/ia64/ia64.c (ia64_expand_prologue): Use
14809 gen_prologue_use instead of gen_rtx_USE.
14810 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
14811 as CODE_FOR_pred_rel_mutex.
14812 (ia64_sched_reorder2): Likewise.
14814 2002-01-16 Eric Christopher <echristo@redhat.com>
14816 * config/mips/r3900.h: Reformat.
14817 (SUBTARGET_CPP_SIZE_SPEC): Remove.
14818 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
14819 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
14820 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
14821 * config/mips/t-elf: Remove mips3 multilib.
14823 2002-01-16 H.J. Lu <hjl@gnu.org>
14825 * config/mips/linux.h: Include "mips/abi64.h".
14827 2002-01-16 H.J. Lu <hjl@gnu.org>
14829 * config/mips/t-linux: New.
14831 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
14833 * config/mips/linux.h: Don't include "gofast.h".
14834 (INIT_SUBTARGET_OPTABS): Removed.
14836 2002-01-16 Kazu Hirata <kazu@hxi.com>
14838 * config/h8300/h8300-protos.h: Replace emit_a_shift with
14840 * config/h8300/h8300.c: Likewise.
14841 * config/h8300/h8300.md: Likewise.
14843 2002-01-16 Kazu Hirata <kazu@hxi.com>
14845 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
14846 spaces after an opcode name.
14847 (pushqi1_h8300hs): Likewise.
14848 (pushhi1_h8300hs): Likewise.
14850 2002-01-16 Kazu Hirata <kazu@hxi.com>
14852 * doc/extend.texi: Replace "option" with "attribute"
14855 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14857 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
14858 (and:DI () (const_int -8)).
14859 (split_small_symbolic_mem_operand): Split
14860 (mem (and:DI () (const_int -8)).
14862 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14865 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
14866 same way as TYPE_IMUL.
14867 (ultrasparc_sched_reorder): Likewise.
14868 * config/sparc/sparc.md (type): Add comment to update
14869 ultrasparc_sched_reorder when making changes.
14871 2002-01-16 Kazu Hirata <kazu@hxi.com>
14873 * doc/invoke.texi: Change the dump file name of block
14874 reordering pass from 28.bbro to 29.bbro.
14875 Mention -dk option.
14877 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
14879 * i386.md (minsf splitter): Fix pasto.
14881 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
14883 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
14884 to frame pointer initialisation instruction.
14885 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
14886 initialisation instruction.
14887 (soft_df_operand): Do not accept the IP register.
14888 (nonimmediate_soft_df_operand): Do not accept the IP register.
14890 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14893 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
14894 MASK_V8 being both set.
14896 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
14898 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
14899 insn for GOT register; add REG_MAYBE_DEAD notes instead.
14900 config/s390/s390.md (call, call_value): Add GOT register to
14901 CALL_INSN_FUNCTION_USAGE where needed.
14902 (call_exp, call_value_exp): New.
14904 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
14906 * config/arm/arm.c: General formatting tidy up.
14908 2002-01-16 Graham Stott <grahams@redhat.com>
14910 * calls.c (try_to_integrate): Use "(size_t)" intermediate
14911 cast and when casting an integer literal to "rtx" pointer.
14912 (expand_call): Likewise.
14913 * flow.c (try_pre_increment): Likewise.
14914 (find_use_as_address): Likewise.
14915 * integrate.c (expand_iline_function): Likewise.
14916 * regmove.c (try_auto_increment): Likewise.
14918 2002-01-16 Graham Stott <grahams@redhat.com>
14920 * sched-rgn.c (passed): Use sbitmap_free.
14921 (header): Likewise.
14923 (in_queue): Likewise.
14924 (in_stack): Likewise.
14926 2002-01-15 Eric Christopher <echristo@redhat.com>
14928 * flow.c (propagate_one_insn): Change to use fatal_insn.
14930 2002-01-15 Kazu Hirata <kazu@hxi.com>
14932 * expmed.c (extract_fixed_bit_field): Remove unused code.
14933 * system.h: Poison SLOW_ZERO_EXTEND.
14934 * doc/tm.texi: Remove.
14935 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
14936 * config/arm/arm.h: Likewise.
14937 * config/avr/avr.h: Likewise.
14938 * config/clipper/clipper.h: Likewise.
14939 * config/convex/convex.h: Likewise.
14940 * config/d30v/d30v.h: Likewise.
14941 * config/dsp16xx/dsp16xx.h: Likewise.
14942 * config/elxsi/elxsi.h: Likewise.
14943 * config/fr30/fr30.h: Likewise.
14944 * config/h8300/h8300.h: Likewise.
14945 * config/i370/i370.h: Likewise.
14946 * config/i386/i386.h: Likewise.
14947 * config/m68k/m68k.h: Likewise.
14948 * config/mips/mips.h: Likewise.
14949 * config/ns32k/ns32k.h: Likewise.
14950 * config/pdp11/pdp11.h: Likewise.
14951 * config/pj/pj.h: Likewise.
14952 * config/s390/s390.h: Likewise.
14953 * config/sh/sh.h: Likewise.
14954 * config/stormy16/stormy16.h: Likewise.
14955 * config/v850/v850.h: Likewise.
14956 * config/vax/vax.h: Likewise.
14957 * config/we32k/we32k.h: Likewise.
14959 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
14961 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
14962 (altivec_lvsl): Change constraint to b.
14963 (altivec_lvsr): Same.
14964 (altivec_lvebx): Same.
14965 (altivec_lvehx): Same.
14966 (altivec_lvewx): Same.
14967 (altivec_lvxl): Same.
14968 (altivec_lvx): Same.
14969 (altivec_stvx): Add parallel.
14970 (altivec_stvxl): Same.
14971 (altivec_stvehx): Same.
14972 (altivec_stvebx): Same.
14973 (altivec_stvebx): Same.
14975 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
14977 * config.gcc: Change altivec.h to altivec-defs.h.
14979 * config/rs6000/altivec.h: Delete.
14981 * config/rs6000/altivec-defs.h: Add.
14983 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14985 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
14988 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
14989 less than or equal to eight bytes.
14991 * vax.md (andsi3): Remove constraints and change SET destination
14992 operand type to nonimmediate_operand.
14993 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
14994 when it is a CONST_INT.
14996 2002-01-15 Jason Merrill <jason@redhat.com>
14998 * c-common.def (FILE_STMT): New code.
14999 * c-common.c (statement_code_p): It's a statement.
15000 * c-common.h (stmt_tree_s): Add x_last_filename.
15001 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15002 (last_expr_filename): New macro.
15003 * c-semantics.c (begin_stmt_tree): Initialize it.
15004 (add_stmt): If the filename changed, also insert a
15006 (expand_stmt): Handle seeing one.
15008 2002-01-15 Eric Christopher <echristo@redhat.com>
15010 * flow.c (propagate_one_insn): Add error message and print out
15011 insn for debugging.
15013 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15015 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15016 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15017 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15018 TRAMPOLINE_ALIGNMENT.
15019 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15021 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15022 PCC_BITFIELD_TYPE_MATTERS.
15023 * config/interix.h (STDC_VALUE): Remove. Use
15024 STDC_0_IN_SYSTEM_HEADERS.
15025 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15026 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15027 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15029 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15031 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15032 not work on this platform currently.
15034 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15036 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15037 readonly_warning in _().
15039 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15041 * gcc.c (delete_if_ordinary): Backout previous change.
15043 2002-01-15 Kazu Hirata <kazu@hxi.com>
15045 * config/h8300/h8300.c (print_operand): Remove support for
15046 unused operand characters.
15048 * read-rtl.c: Fix formatting.
15049 * real.c: Likewise.
15050 * recog.c: Likewise.
15051 * regclass.c: Likewise.
15052 * regmove.c: Likewise.
15053 * reg-stack.c: Likewise.
15054 * reload1.c: Likewise.
15055 * rtlanal.c: Likewise.
15057 2002-01-15 Kazu Hirata <kazu@hxi.com>
15059 * config/i386/i386.c: Fix formatting.
15061 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15063 * c-typeck.c (process_init_element): Don't save_expr
15064 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15066 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15068 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15069 emit optional traceback table if optimize_size or TARGET_ELF.
15070 * config/rs6000/rs6000.md (prefetch): New.
15072 2002-01-15 Andreas Jaeger <aj@suse.de>
15074 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15076 2002-01-15 Kazu Hirata <kazu@hxi.com>
15078 * mips-tfile.c: Fix formatting.
15080 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15082 * unroll.c (final_reg_note_copy): Fix previous commit.
15084 2002-01-14 Kazu Hirata <kazu@hxi.com>
15086 * config/h8300/h8300-protos.h: Remove the prototype for
15088 * config/h8300/h8300.c (eq_operator): Remove.
15090 2002-01-14 Richard Henderson <rth@redhat.com>
15092 * config/i386/i386.md (prefetch): Tidy.
15093 (prefetch_3dnow): Fix locality operand.
15095 2002-01-14 Richard Henderson <rth@redhat.com>
15097 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15098 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15100 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15102 * reload1.c (reload_combine): Pass reg_sum replacement through
15103 copy_rtx in loop performing multiple changes.
15105 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15107 * except.c (remove_unreachable_regions): New.
15108 (free_eh_status): Clear exception_handler_labels.
15109 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15110 (find_exception_handler_labels): Don't add the same label more than
15112 (remove_exception_handler_label): Don't die if
15113 find_exception_handler_labels hasn't been called for the current
15116 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15118 * toplev.c (rest_of_compilation): Rebuild jump labels after
15121 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15123 * doc/extend.texi: Move documentation of X86 built-in functions
15125 * doc/invoke.texi: From here.
15126 * doc/sourcebuild.texi: Document location of documentation for
15127 machine built-in functions.
15129 2002-01-13 Christopher Faylor <cgf@redhat.com>
15131 * cppfiles.c (TEST_THRESHOLD): New macro.
15132 (SHOULD_MMAP): Ditto.
15133 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15136 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15138 * unroll.c (final_reg_note_copy): Properly handle
15140 (unroll_loops): Fix LOOP_CONDITION heuristics.
15142 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15144 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15145 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15147 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15149 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15152 2002-01-14 Tom Rix <trix@redhat.com>
15154 * config/rs6000/rs6000.md: Fix typo with sradi.
15156 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15158 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15159 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15160 (clrstrdi, clrstrsi): Adapt callers.
15162 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15164 (movti splitter): Never use register 0 as base register.
15166 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15168 * combine.c (simplify_shift_const): Always generate new rtx
15169 for shift expression instead of reusing given expression.
15171 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15173 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15174 alpha_legitimize_address unless mode is Pmode.
15176 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15178 * doc/md.texi (Modifiers): Document the '*' constraint for the
15181 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15182 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15185 2002-01-13 Richard Henderson <rth@redhat.com>
15187 * reload.c (find_reloads): Use a hard reg destination as reload reg
15188 for an input reload of the source.
15190 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15192 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15195 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15197 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15198 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15200 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15202 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15204 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15206 2002-01-12 Tom Rix <trix@redhat.com>
15208 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15211 2002-01-12 Richard Henderson <rth@redhat.com>
15213 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15215 * doc/invoke.texi: Update Alpha options.
15217 * doc/invoke.texi: Update i386 built-in function lists.
15219 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15221 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15222 referencing outside.
15224 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15226 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15227 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15228 offsets, and change line folding.
15229 * optabs.c (expand_binop): Remove warnings.
15230 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15232 2002-01-12 Graham Stott <grahams@redhat.com>
15234 * attribs.c (handle_deprecated_attribute): constify WHAT.
15235 * diagnostic.c (warn_deprecated_use): Add braces, fixes
15236 dangling else warning and constify WHAT.
15237 * except.h (struct function, struct inline_remap): Move
15238 struct tag forward defs before all prototypes.
15239 (duplicate_eh_regions): Whitespace.
15241 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
15243 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15244 MODE_BASE_REG_CLASS.
15245 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15247 2002-01-12 Richard Henderson <rth@redhat.com>
15249 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15250 (ix86_expand_vector_move): New.
15251 (bdesc_2arg): Remove andps, andnps, orps, xorps.
15252 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
15253 Remove old prefetch builtins. Special case the logicals removed above.
15254 (ix86_expand_builtin): Likewise.
15255 (safe_vector_operand): Use V4SFmode, not TImode.
15256 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
15257 (ix86_expand_timode_binop_builtin): New.
15258 * config/i386/i386-protos.h: Update.
15259 * config/i386/i386.h (enum ix86_builtins): Update.
15260 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15261 Use ix86_expand_vector_move in vector move expanders.
15262 (movti_internal, movti_rex64): Add xorps alternative.
15263 (sse_clrv4sf): Rename and adjust from sse_clrti.
15264 (prefetch): Don't work so hard.
15265 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15266 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15267 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15269 2002-01-11 Richard Henderson <rth@redhat.com>
15271 * config/i386/mmintrin.h: New file.
15272 * config/i386/xmmintrin.h: New file.
15273 * config.gcc (i?86-*-*): Add extra_headers.
15274 * simplify-rtx.c (simplify_unary_operation): Handle saturating
15276 (simplify_binary_operation): Handle saturating arithmetic codes.
15277 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15278 not the lowpart subreg.
15279 (ix86_expand_builtin): Return a TImode dummy register instead of 0
15281 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15283 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15285 * conflict.c (conflict_graph_compute): Free regsets when finished.
15286 * ssa.c (compute_coalesced_reg_partition): Likewise.
15288 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15290 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15291 every where we allocate a register.
15293 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15295 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15296 * lcm.c (compute_earliest, compute_farthest): Likewise.
15298 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15300 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15302 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15304 * doc/rtl.texi (Insns): Fix 2 typos.
15306 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
15308 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
15309 options. Use @table @gcctabopt for MMIX options. Add index
15310 entries for MMIX options. Start new paragraph with first
15311 heading of the machine-dependent options.
15313 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
15316 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15317 * combine.c (force_to_mode): Same.
15318 * reload1.c (clear_reload_reg_in_use): Same.
15320 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
15322 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15325 2002-01-11 Andreas Jaeger <aj@suse.de>,
15326 Brad Lucier <lucier@math.purdue.edu>
15328 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15331 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
15333 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15334 Protect with IN_LIBGCC.
15335 (LINK_EH_SPEC): Add required trailing space.
15337 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
15339 * c-tree.h: Move function declarations so that they are listed
15340 under the filename which contains them.
15341 (check_identifier, finish_decl_top_level,
15342 lookup_name_current_level_global, shadow_record_fields): Remove.
15344 2002-01-11 Andreas Jaeger <aj@suse.de>
15346 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15349 2002-01-10 Richard Henderson <rth@redhat.com>
15351 * config/alpha/alpha.c (print_operand): Add 'J'.
15352 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15353 new operand with the sequence number for the lituse. When splitting
15354 the insns, use gen_movdi_er_high_g and generate a sequence number.
15355 (gen_movdi_er_high_g): Print the sequence number if non-zero.
15357 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
15359 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15360 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15362 (altivec_expand_builtin): Same.
15363 (altivec_expand_stv_builtin): New.
15365 * config/rs6000/rs6000.h (rs6000_builtins): Same.
15367 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15368 ("altivec_lvehx"): New.
15369 ("altivec_lvewx"): New.
15370 ("altivec_lvxl"): New.
15371 ("altivec_lvx"): New.
15372 ("altivec_stvx"): New.
15373 ("altivec_stvebx"): New.
15374 ("altivec_stvehx"): New.
15375 ("altivec_stvewx"): New.
15376 ("altivec_stvxl"): New.
15378 2002-01-10 Richard Henderson <rth@redhat.com>
15380 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15381 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
15382 care not to delete instructions twice.
15384 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15386 * toplev.c: Don't declare environ (it's not used anywhere).
15387 * configure.in: Don't check for declaration of environ.
15388 * config/i386/xm-mingw32.h: Don't #define environ.
15389 * config.in, configure: Regenerate.
15391 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15393 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15394 * configure: Regenerate.
15396 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15397 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15398 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15400 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15401 LIMITS_H_TEST here, not in m68k/x-next.
15402 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15403 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15405 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15406 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15407 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
15409 * config/i386/x-djgpp: Renamed i386/t-djgpp.
15410 * config/m88k/x-dolph: Renamed m88k/t-dolph.
15411 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15412 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
15413 replacement of quadlib.asm with quadlib.c.
15415 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15416 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15417 config/rs6000/xm-beos.h: Delete file.
15419 * config.gcc: Update to match above changes.
15421 2002-01-10 Kazu Hirata <kazu@hxi.com>
15423 * config/h8300/h8300.h: Fix comment typos.
15424 * config/h8300/h8300.md: Likewise.
15425 * config/h8300/lib1funcs.asm: Likewise.
15427 2002-01-10 Dale Johannesen <dalej@apple.com>
15429 PR optimization/5269
15430 * unroll.c (precondition_loop_p): Make *increment be the correct
15431 sign when n_iterations known, to avoid confusing caller.
15433 2002-01-10 Kazu Hirata <kazu@hxi.com>
15435 * doc/extend.texi (deprecated): Fix a typo.
15437 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
15439 * basic-block.h (update_br_prob_note): Declare.
15440 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15441 (try_forward_edges): Care negative frequencies and update note.
15442 (outgoing_edges_match): Tweek conditional merging heuristics.
15443 (try_crossjump_to_edge): use update_br_prob_note.
15444 * cfglayout.c (fixup_reorder_chain): Likewise.
15445 * cfrtl.c (update_br_prob_note): New.
15446 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15448 * i386.c (ix86_decompose_address): Return -1 if address contains
15450 (legitimate_address_p): Require ix86_decompose_address to return 1.
15452 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15453 (cprop_insn): Likewise.
15455 2002-01-10 Kazu Hirata <kazu@hxi.com>
15457 * toplev.c: Fix formatting.
15458 * tree.c: Likewise.
15459 * tree-dump.c: Likewise.
15460 * unroll.c: Likewise.
15461 * unwind-dw2.c: Likewise.
15462 * unwind-dw2-fde.c: Likewise.
15463 * unwind-dw2-fde-glibc.c: Likewise.
15464 * unwind-sjlj.c: Likewise.
15466 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15468 * doc/invoke.texi: Document PDP-11 options.
15470 2002-01-10 Kazu Hirata <kazu@hxi.com>
15472 * config/h8300/h8300.h: Fix formatting.
15474 2002-01-10 Ira Ruben <ira@apple.com>
15476 Add __attribute__ ((deprecated)).
15477 * extend.texi: Document __attribute__ ((deprecated)).
15478 * invoke.texi: Document -Wno-deprecated-declarations.
15479 * testsuite/g++.dg/other/deprecated.C: New C++ test.
15480 * testsuite/gcc.dg/deprecated.c: New C test.
15481 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15482 (c_common_attribute_table): Add "deprecated" entry.
15483 (handle_deprecated_attribute): New function.
15484 * c-decl.c (deprecated_states): New enum.
15485 deprecated_state: State of "deprecated" handling.
15486 (start_decl): Set deprecated_state based on attributes.
15487 (grokdeclarator): Test for deprecated uses, propagate attribute.
15488 * c-typeck.c (build_component_ref): Test for deprecated fields.
15489 (build_external_ref): Test for deprecated primaries.
15490 * diagnostic.c (warn_deprecated_use) New function to issue
15491 warnings about __attribute__ ((depricated)) references.
15492 * flags.h (warn_deprecated_decl): Extern declared for
15493 -W[no-]deprecated-declarations option.
15494 * print-tree.c (print_node): Show deprecated flag status.
15495 * toplev.c (warn_deprecated_decl): Defined.
15496 (W_options): Added "deprecated-declaration".
15497 * toplev.h (warn_deprecated_use): Extern declared.
15498 * tree.h (struct tree_common): Define deprecated_flag.
15499 (TREE_DEPRECATED): New macro to access flag.
15500 * cp/call.c (build_call): Test for deprecated calls.
15501 * cp/class.c (add_implicitly_declared_members): Set global
15502 flag to tell grokdeclarator to not issue deprecated warnings.
15503 * cp/cp-tree.h: Add extern for adding_implicit_members.
15504 * cp/decl.c (deprecated_states): New enum.
15505 (start_decl): Set deprecated_state based on attributes.
15506 (grokdeclarator): Test for deprecated uses, propagate attribute.
15507 * cp/lex.c (do_identifier): Test for deprecated primaries.
15508 * cp/typeck.c (build_component_ref): Test for deprecated fields.
15510 2002-01-10 Ira Ruben <ira@apple.com>
15512 Fix to assign attributes to inline member functions.
15513 * cp/decl.c (start_method): Handle attrlist.
15515 2002-01-10 Kazu Hirata <kazu@hxi.com>
15517 * combine.c (expand_field_assignment): Use subreg_lsb().
15519 2002-01-10 David Edelsohn <edelsohn@gnu.org>
15521 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15522 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15523 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15524 Recurse for any operand of AND as long as constant is non-zero.
15526 2002-01-10 Kazu Hirata <kazu@hxi.com>
15528 * config/h8300/h8300.md: Remove constraints from expanders.
15530 2002-01-10 Kazu Hirata <kazu@hxi.com>
15532 * varasm.c: Fix formatting.
15533 * varray.c: Likewise.
15534 * vmsdbgout.c: Likewise.
15535 * xcoffout.c: Likewise.
15537 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
15539 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15540 update edge probabilities to match.
15542 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15544 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15546 * doc/languages.texi, doc/sourcebuild.texi: New files.
15547 * doc/configfiles.texi: Make a subsubsection. Update.
15548 * doc/configterms.texi: Add @node. Remove warning that this isn't
15549 instructions for building GCC.
15550 * doc/makefile.texi: Make a subsection.
15551 * doc/gccint.texi: Update.
15553 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
15555 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15557 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
15559 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15561 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
15563 * optabs.c (expand_fix): Look for wider integer modes first.
15565 * i386.md (mov?f): Avoid the fake const double trick for medium
15567 (min?f*/max?f*): Prohibit memory operands for i387 variant.
15568 (fop_df_4): Disable for SSE compilation.
15570 2002-01-10 Graham Stott <grahams@redhat.com>
15572 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15573 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15575 2002-01-10 Richard Henderson <rth@redhat.com>
15577 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15579 2002-01-10 Richard Henderson <rth@redhat.com>
15581 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15582 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
15584 2002-01-10 Kazu Hirata <kazu@hxi.com>
15586 * combine.c (can_combine_p): Fix a comment typo.
15588 2002-01-09 Zack Weinberg <zack@codesourcery.com>
15590 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15591 empty list correctly. Change loop index $t to $f for
15592 consistency with rest of Makefile.
15594 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
15596 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15597 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15599 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15600 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15601 (altivec_init_builtins): Same.
15602 (altivec_expand_unop_builtin): Return NULL_RTX on error.
15603 (altivec_expand_binop_builtin): Same.
15604 (altivec_expand_ternop_builtin): Same.
15607 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15608 ("altivec_vctuxs"): Fix typo.
15609 ("altivec_vnmsubfp"): Same.
15610 ("altivec_dssall"): New.
15611 ("altivec_mfvscr"): New.
15612 ("altivec_dss"): New.
15613 ("altivec_lvsl"): New.
15614 ("altivec_lvsr"): New.
15615 ("altivec_dstt"): New.
15616 ("altivec_dstst"): New.
15617 ("altivec_dststt"): New.
15618 ("altivec_dst"): New.
15620 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15621 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15623 2002-01-09 Richard Henderson <rth@redhat.com>
15625 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15627 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
15629 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15631 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15633 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15635 2002-01-09 Kazu Hirata <kazu@hxi.com>
15637 * read-rtl.c: Fix formatting.
15638 * real.c: Likewise.
15639 * regclass.c: Likewise.
15640 * regrename.c: Likewise.
15641 * reg-stack.c: Likewise.
15642 * reload1.c: Likewise.
15643 * reload.c: Likewise.
15646 2002-01-09 Kazu Hirata <kazu@hxi.com>
15648 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15649 to extract items in the expr_list chain.
15651 2002-01-09 Richard Henderson <rth@redhat.com>
15653 * config/vax/vax.c (vax_rtx_cost): Never abort.
15655 * config/vax/vax.h (REAL_ARITHMETIC): Define.
15657 2002-01-09 Jan Hubicka <jh@suse.cz>
15659 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15661 2002-01-09 Richard Henderson <rth@redhat.com>
15663 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15664 Unify code from various alternatives.
15666 2002-01-09 Richard Henderson <rth@redhat.com>
15668 * regrename.c (copy_value): Ignore the copy if the source register
15669 is present in the value chain with a narrower mode.
15671 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15673 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15674 for the c4x target. Also improve layout.
15676 2002-01-09 Richard Henderson <rth@redhat.com>
15678 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15679 * config/m32r/m32r.md (and ior xor splitters): Swap operands
15680 to match insn patterns.
15682 2002-01-09 Richard Henderson <rth@redhat.com>
15684 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15685 (copyprop_hardreg_forward_1): Likewise.
15687 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
15689 * pa.md (decrement_and_branch_until_zero): Change predicate for
15690 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
15692 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15694 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
15695 gets undefined. For Darwin.
15697 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15699 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
15701 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15703 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
15705 2002-01-08 Richard Henderson <rth@redhat.com>
15707 * regrename.c (copy_value): Ignore overlapping copies.
15709 2002-01-08 Richard Henderson <rth@redhat.com>
15711 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
15712 as needed to avoid shared structure.
15714 2002-01-08 Kazu Hirata <kazu@hxi.com>
15716 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
15719 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15721 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
15722 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
15723 documentation of obsolete macros.
15724 * system.h: Poison these macros.
15725 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
15726 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
15727 config/c4x/c4x.h, config/clipper/clipper.h,
15728 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
15729 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
15730 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
15731 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
15732 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
15733 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
15734 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15735 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
15736 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
15737 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15738 config/sparc/sparc.h, config/stormy16/stormy16.h,
15739 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
15740 definitions and commented out definitions of obsolete macros.
15741 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
15742 of MAX_INT_TYPE_SIZE.
15744 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15746 * config/s390/s390.c (s390_preferred_reload_class): Never
15747 return ADDR_REGS if it isn't a subset of the given class.
15748 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
15749 FP_REGS, but all superclasses as well.
15751 * config/s390/s390.c (s390_function_profiler): Fix thinko.
15753 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
15754 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
15755 must not be a const_int.
15757 2002-01-08 Richard Henderson <rth@redhat.com>
15759 * Makefile.in (toplev.o): Depend on options.h.
15760 (gcc.o): Depend on specs.h.
15762 2002-01-08 Jakub Jelinek <jakub@redhat.com>
15764 * expr.c (store_expr): Convert VOIDmode constants back to target's
15767 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15769 * doc/invoke.texi: Markup gcc as @command. Refer to
15770 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
15771 of http://gcc.gnu.org/thanks.html.
15773 2002-01-08 Dale Johannesen <dalej@apple.com>
15775 * config/rs6000/rs6000.md: Add missing int register
15776 target case to movdf_low.
15778 2002-01-08 Zack Weinberg <zack@codesourcery.com>
15780 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
15781 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
15782 (cppinit.o): Depend on except.h.
15783 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
15784 s-specs): New rules.
15786 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
15787 Don't create specs.h/options.h/gencheck.h here. Remove
15788 unnecessary variable settings from last argument of AC_OUTPUT.
15789 * config.in, configure: Regenerate.
15790 * intl.c: Hardcode package name as "gcc".
15792 * cppinit.c: Include except.h.
15793 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
15795 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
15796 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
15797 (!)USING_SJLJ_EXCEPTIONS.
15798 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
15800 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15802 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
15803 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
15804 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
15805 documentation of obsolete macros.
15806 * system.h: Poison these macros.
15807 * config/d30v/d30v.h, config/ns32k/encore.h,
15808 config/stormy16/stormy16.h: Remove definitions and commented out
15809 definitions of obsolete macros.
15811 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
15813 * objc/objc-act.c (handle_class_ref): Mark the declaration of
15814 %sobjc_class_ref_%s as used - to prevent unwanted compiler
15817 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15819 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
15820 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
15821 to insn adjusting stack/frame pointer.
15822 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
15823 accept operands that cause the insn to be non-splittable.
15825 2002-01-08 Graham Stott <grahams@redhat.com>
15827 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
15828 (C_TYPE_FIELDS_VOLATILE): Likewise.
15829 (C_TYPE_BEING_DEFINED): Likewise.
15830 (C_IS_RESERVED_WORD): Likewise.
15831 (C_TYPE_VARIABLE_SIZE): Likewise.
15832 (C_DECL_VARIABLE_SIZE): Likewise.
15833 (C_MISSING_PROTOTYPE_WARNED): Likewise.
15834 (C_SET_EXP_ORIGINAL_CODE): Likewise.
15835 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
15837 (C_DECL_ANTICIPATED): Likewise.
15838 (c_build_type_variant): Add parenthesis.
15840 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15842 * gcc.c (option_map): Remove --version.
15843 (process_command): Handle -fversion following the GNU Coding
15844 Standards. Partially addresses PR other/704.
15846 2002-01-08 Graham Stott <grahams@redhat.com>
15848 * combine.c (combine_instructions): Fix typo.
15850 2002-01-08 Graham Stott <grahams@redhat.com>
15852 * debug.h: Use "tree" and "rtx" throughout.
15854 * debug.c: Likewise.
15856 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
15858 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
15859 constant pool, use the pool's version of the symbol instead.
15861 2002-01-07 Richard Henderson <rth@redhat.com>
15863 * regrename.c (find_oldest_value_reg): Ignore the value chain if
15864 the original register was copied in a mode with a fewer number of
15865 hard registers than the desired mode.
15866 (copyprop_hardreg_forward_1): Likewise.
15867 (debug_value_data): Fix loop test.
15868 * toplev.c (parse_options_and_default_flags): Reenable
15869 -fcprop-registers at -O1.
15871 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15873 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
15874 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
15876 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
15879 * config/rs6000/rs6000.md: Add altivec predicate patterns.
15881 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
15883 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
15884 (pa_output_function_prologue): Output local label at the beginning of
15885 the prologue when profiling.
15886 (hppa_profile_hook): Use the local label rather than the function label.
15887 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
15889 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15891 * config/rs6000/rs6000.c (print_operand): Remove extra space.
15892 (altivec_expand_unop_builtin): Fix thinko.
15893 (altivec_expand_binop_builtin): Same.
15894 (altivec_expand_ternop_builtin): Same.
15895 (altivec_expand_builtin): Same.
15897 2002-01-07 Richard Henderson <rth@redhat.com>
15899 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
15901 2002-01-07 Jason Merrill <jason@redhat.com>
15903 * unwind-dw2.c (execute_cfa_program): Use < again.
15905 2002-01-07 Jakub Jelinek <jakub@redhat.com>
15907 * predict.c (combine_predictions_for_insn): Avoid division by zero.
15909 2002-01-07 Jakub Jelinek <jakub@redhat.com>
15911 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
15912 Don't allow -1 - x -> ~x simplifications in the first pass.
15914 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15916 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
15918 (altivec_expand_binop_builtin): Same.
15919 (altivec_expand_unop_builtin): Same.
15920 (print_operand): Fix typo.
15921 (bdesc_1arg): Add vupk* variants.
15923 * rs6000.h (rs6000_builtins): Add vupk* enums.
15925 * rs6000.md: Add altivec_vupk* variants.
15927 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
15929 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
15930 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
15931 and last update dates.
15933 2002-01-07 Janis Johnson <janis187@us.ibm.com>
15935 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
15937 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
15939 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
15940 * config/avr/avr.h (CPP_SPEC): Likewise.
15941 (LINK_SPEC): Likewise.
15942 (CRT_BINUTILS_SPECS): Likewise.
15943 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15944 * doc/invoke.texi (AVR Options): Document them.
15946 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
15948 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
15951 2002-01-07 Graham Stott <grahams@redhat.com>
15953 * config/i386/i386.h: Update copyright date.
15954 (HALF_PIC_PTR): Add parenthesis.
15955 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
15956 (CONSTANT_ALIGNMENT): Add parenthesis.
15957 (DATA_ALIGNMENT): Likewise.
15958 (LOCAL_ALIGNMENT): Likewise.
15959 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
15960 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
15961 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
15962 (HARD_REGNO_NREGS): Add paranethesis.
15963 (VALID_SSE_REG_MODE): Whitespace.
15964 (VALID_MMX_REG_MODE): Whitespace.
15965 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
15966 (ix86_hard_regno_mode_ok): Add parenthesis.
15967 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
15968 (RETURN_IN_MEMORY): Whitespace.
15969 (N_REG_CLASSES): Add parenthesis.
15970 (INTEGER_CLASS_P): Add parenthesis and wrap.
15971 (FLOAT_CLASS_P): Likewise.
15972 (SSE_CLASS_P): Likewise.
15973 (MMX_CLASS_P): Likewise.
15974 (MAYBE_INTEGER_CLASS_P): Likewise.
15975 (MAYBE_FLOAT_CLASS_P): Likewise.
15976 (MAYBE_SSE_CLASS_P): Likewise.
15977 (MAYBE_MMX_CLASS_P): Likewise.
15978 (Q_CLASS_P): Likewise.
15979 (GENERAL_REGNO_P): Uppercase macro parameter.
15980 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
15981 (FP_REGNO_P): Likewise.
15982 (ANY_FP_REGNO_P): Uppercase macro parameter.
15983 (SSE_REGNO_P): Likewise.
15984 (SSE_REGNO): Likewise.
15985 (SSE_REG_P): Likewise.
15986 (SSE_FLOAT_MODE_P): Likewise.
15987 (MMX_REGNO_P): Likewise.
15988 (MMX_REG_P):Likewise.
15989 (STACK_REG_P): Likewise.
15990 (NON_STACK_REG_P): Likewise.
15991 (STACK_TOP_P): Likewise.
15992 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
15993 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
15994 (SECONDARY_MEMORY_NEEDED): Likewise.
15995 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
15996 (MD_ASM_CLOBBERS): Whitespace and wrap.
15997 (MUST_PASS_IN_STACK): Whitespace and wrap.
15998 (RETURN_POPS_ARGS): Add parenthesis.
15999 (INIT_CUMULATIVE_ARGS): Likewise.
16000 (FUNCTION_ARG): Likewise.
16001 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16002 (SETUP_INCOMING_VARARGS): Likewise.
16003 (BUILD_VA_LIST_TYPE): Add parenthesis.
16004 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16006 (EXPAND_BUILTIN_VA_ARG): Likewise.
16007 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16008 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16009 (INITIAL_ELIMINATION_OFFSET): Likewise.
16010 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16011 (REGNO_OK_FOR_BASE_P): Likewise.
16012 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16013 (REGNO_OK_FOR_DIREG_P): Likewise.
16014 (REG_OK_FOR_INDEX_P): Whitespace.
16015 (REG_OK_FOR_BASE_P): Whitespace.
16016 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16018 (FIND_BASE_TERM): Fix typo.
16019 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16020 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16021 (SYMBOLIC_CONST; Whitespace.
16022 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16023 (ENCODE_SECTION_INFO): Whitespace.
16024 (FINALIZE_PIC): Remove do { ... } while (0).
16025 (PROMOTE_MODE): Wrap in do { ... } while (0).
16026 (CONST_COSTS): Whitespace.
16027 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16028 (REGISTER_MOVE_COST): Add parenthesis.
16029 (MEMORY_MOVE_COST): Likewise.
16030 (EXTRA_CC_MODES): Whitespace.
16031 (SELECT_CC_MODE): Add parenthesis and whitespace.
16032 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16033 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16034 (ASM_OUTPUT_LABEL): Add paramethesis.
16035 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16036 (ASM_OUTPUT_REG_POP): Likewise.
16037 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16038 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16040 * config/i386/i386.c: Update copyright.
16041 (CHECK_STACK_LIMIT): Add parenthesis.
16042 (AT_BP): Uppercase macro parameter.
16043 (x86_64_int_parameter_registers): Constify.
16044 (x86_64_int_return_registers): Likewise.
16045 (ix86_compare_op0): Use rtx.
16046 (construct_container): Constify INTREG parameter.
16047 (function_arg): Use rtx.
16049 * diagnostic.h: Update copyright date.
16050 (output_buffer_state): Add parenthesis.
16051 (output_buffer_format_args): Likewise.
16053 * combine.c (combine_instructions): Replace XEXP (links, 0)
16056 2002-01-06 H.J. Lu <hjl@gnu.org>
16058 * cfgcleanup.c (thread_jump): Fix 2 typos.
16060 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16062 * config.gcc: Add support for --enable-altivec.
16064 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16066 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16068 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16070 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16071 __objc_class_name_*.
16073 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16075 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16077 2002-01-06 Richard Henderson <rth@redhat.com>
16079 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16080 nop them out. Increment label reference count for REG_LABEL.
16081 (fill_slots_from_thread): Frob label reference count around
16082 delete_related_insns.
16084 2002-01-05 Richard Henderson <rth@redhat.com>
16086 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16089 2002-01-05 Richard Henderson <rth@redhat.com>
16091 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16092 * integrate.c (output_inline_function): Likewise.
16093 * toplev.c (rest_of_compilation): Do it here instead. Move call
16094 to remove_unnecessary_notes after emitting abstract instance.
16095 Force an emitted nested function to have its parent emited as well.
16096 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16098 (rtl_for_decl_location): Do not look at reload data structures
16099 before reload has run.
16101 2002-01-05 Kazu Hirata <kazu@hxi.com>
16103 * cse.c: Fix formatting.
16104 * dwarf2asm.c: Likewise.
16105 * dwarf2out.c: Likewise.
16106 * explow.c: Likewise.
16107 * expmed.c: Likewise.
16108 * function.c: Likewise.
16109 * gcov.c: Likewise.
16110 * gencheck.c: Likewise.
16111 * genrecog.c: Likewise.
16112 * ggc-common.c: Likewise.
16113 * ggc-page.c: Likewise.
16114 * global.c: Likewise.
16116 2002-01-05 Kazu Hirata <kazu@hxi.com>
16118 * combine.c: Fix formatting.
16120 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16123 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16125 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16127 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16128 as 1 for __powerpc64__ as well.
16130 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16132 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16135 2002-01-05 Daniel Berlin <dan@dberlin.org>
16137 * lcm.c: Revert change, due to performance regression it causes on
16138 SPEC because it's slightly more conservative (sigh, I hate
16141 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16143 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16145 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16147 * doc/cppinternals.texi: Update.
16149 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16151 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16152 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16154 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16155 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16156 kludge for pre-october-14th mmix versions to handle new-found bug
16157 with PUSHJ/PUSHGO and the register stack.
16158 * config/mmix/mmix.h (struct machine_function): Rename member
16159 has_call_value_without_parameters to has_call_without_parameters.
16160 All referers changed.
16161 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16162 TARGET_MASK_BRANCH_PREDICT): New macros.
16163 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16164 -mno-reg-stack-fill-bug-workaround.
16165 * config/mmix/mmix.md ("call"): Set struct machine member
16166 has_call_without_parameters.
16168 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16170 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16172 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16174 * cfgcleanup.c: Include tm_p.h
16175 (mark_effect): Fix handling of hard register; fix handling of SET
16177 2002-01-04 Kazu Hirata <kazu@hxi.com>
16179 * config/h8300/h8300.md (anonymous patterns): Check that
16180 operands are registers before using REGNO on them.
16182 2002-01-03 Roland McGrath <roland@frob.com>
16184 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16186 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16188 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16189 * c-common.h (genrtl_expr_stmt_value): Likewise.
16190 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16191 (expand_expr_stmt_value): Add maybe_last argument.
16192 Don't warn about statement with no effect if it is the last statement
16193 in expression statement.
16194 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16195 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16196 expand_expr_stmt_value.
16197 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16198 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16199 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16200 as maybe_last to expand_expr_stmt_value.
16202 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16204 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16205 be passed in, do not build it.
16206 (c_begin_if_stmt): New function.
16207 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16208 * c-common.h (c_expand_start_cond): Update prototype.
16209 (c_begin_if_stmt): Prototype new function.
16210 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16211 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16212 c_begin_while_stmt and c_finish_while_stmt_cond.
16214 2002-01-04 William Cohen <wcohen@redhat.com>
16216 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16217 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16218 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16219 * config/pa/som.h (ASM_FILE_START): Likewise.
16221 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16223 * lcm.c: Include df.h.
16224 Add available_transfer_function prototype.
16225 (compute_available): Rework to use iterative dataflow framework.
16226 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16227 with bb_info in df.h
16228 (available_transfer_function): New function.
16230 * Makefile.in (lcm.o): add df.h to dependencies.
16232 2002-01-04 Richard Henderson <rth@redhat.com>
16234 * config/alpha/alpha.c (some_operand): Accept HIGH.
16235 (input_operand): Likewise; accept simple references to globals.
16236 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16237 (alpha_const_double_ok_for_letter_p): Likewise.
16238 (alpha_extra_constraint): Likewise.
16239 (alpha_preferred_reload_class): Likewise. Do not force
16240 symbolic constants to memory.
16241 (alpha_legitimate_address_p): Accept simple references
16242 to small_symbolic_operand.
16243 (alpha_legitimize_address): New arg scratch. Be prepared to be
16244 called when no_new_pseudos. Emit simple symbolic references.
16245 Split integers into low, high, and rest.
16246 (alpha_expand_mov): Use alpha_legitimize_address.
16247 (some_small_symbolic_mem_operand): New.
16248 (split_small_symbolic_mem_operand): New.
16249 * config/alpha/alpha-protos.h: Update.
16250 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16251 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16252 (EXTRA_CONSTRAINT): Likewise.
16253 (PREFERRED_RELOAD_CLASS): Likewise.
16254 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16255 (PREDICATE_CODES): Update.
16256 * config/alpha/alpha.md: New post-reload splitters to convert
16257 simplfied symbolic operands to the form that references $29.
16258 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16259 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16261 2002-01-03 Richard Henderson <rth@redhat.com>
16263 * local-alloc.c (function_invariant_p): Update commentary.
16265 2002-01-04 H.J. Lu <hjl@gnu.org>
16267 * toplev.c (rest_of_compilation): Fix a typo when calling
16270 2002-01-03 Kazu Hirata <kazu@hxi.com>
16272 * c-common.c: Fix formatting.
16273 * diagnostic.c: Likewise.
16274 * doloop.c: Likewise.
16275 * dwarf2out.c: Likewise.
16277 2002-01-03 Kazu Hirata <kazu@hxi.com>
16279 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16280 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16282 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16284 * cpperror.c: Update comments and copyright.
16285 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16286 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16288 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
16290 * collect2.c (main): Use strcmp when testing for "-shared".
16292 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16294 * cppmacro.c: Don't include intl.h. Update comments.
16295 (new_number_token): Allocate enough buffer for 64-bit unsigned
16296 integers; update prototype.
16297 * cppmain.c: Update comments.
16299 2002-01-03 William Cohen <wcohen@redhat.com>
16301 * function.h (struct function): Add profile.
16302 (current_function_profile): New.
16303 doc/extend.texi: Update documentation.
16304 * final.c (final_start_function): Use current_function_profile
16305 instead of profile_flag.
16306 (profile_after_prologue): Likewise.
16307 * function.c (expand_function_start): Likewise.
16308 (expand_function_start): Likewise.
16309 * config/alpha/alpha.c (direct_call_operand):
16310 (alpha_does_function_need_gp): Likewise.
16311 (alpha_expand_prologue): Likewise.
16312 * config/arm/arm.c (arm_expand_prologue): Likewise.
16313 thumb_expand_prologue: Likewise.
16314 * config/d30v/d30v.c (d30v_stack_info): Likewise.
16315 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16316 (fr30_expand_prologue): Likewise.
16317 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16318 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16319 * config/i386/i386.h (FINALIZE_PIC): Likewise.
16320 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16321 * config/i960/i960.c (i960_output_function_prologue): Likewise.
16322 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16323 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16324 (m32r_expand_prologue): Likewise.
16325 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16326 (m88k_expand_prologue): Likewise.
16327 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16328 * config/mips/mips.c (compute_frame_size): Likewise.
16329 (mips_expand_prologue): Likewise.
16330 (mips_can_use_return_insn): Likewise.
16331 * config/pa/elf.h (ASM_FILE_START): Likewise.
16332 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16333 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16334 * config/pa/som.h (ASM_FILE_START): Likewise.
16335 * config/romp/romp.c (romp_using_r14): Likewise.
16336 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16337 (rs6000_stack_info): Likewise.
16338 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16339 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16340 * config/v850/v850.c (compute_register_save_size): Likewise.
16342 2002-01-03 Jakub Jelinek <jakub@redhat.com>
16344 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16345 gen_lowpart_common fails, use gen_lowpart_SUBREG.
16347 2002-01-03 Turly O'Connor <turly@apple.com>
16349 * darwin.c (machopic_output_possible_stub_label): Don't generate
16350 stub routines for pseudo-stubs which we've just defined.
16352 2002-01-03 Kazu Hirata <kazu@hxi.com>
16354 * builtins.c: Fix formatting.
16355 * c-typeck.c: Likewise.
16356 * combine.c: Likewise.
16357 * expr.c: Likewise.
16358 * loop.c: Likewise.
16360 2002-01-03 Andreas Schwab <schwab@suse.de>
16362 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16363 and return true if _cpp_push_next_buffer pushed a new include
16365 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16366 _cpp_pop_file_buffer did not push a new file.
16367 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16369 2002-01-02 Eric Christopher <echristo@redhat.com>
16371 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16372 FIND_REG_INC_NOTE call. Update copyright.
16373 * loop.c (canonicalize_condition): Ditto.
16374 * reorg.c (delete_scheduled_jump): Ditto.
16376 2002-01-03 Kazu Hirata <kazu@hxi.com>
16378 * gcse.c: Fix formatting.
16380 2002-01-03 Graham Stott <grahams@redhat.com>
16382 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16383 forward defs for struct tags rtx_def, union_tree, rtvec_def
16384 also output corresponding typedefs for rtx, tree, and rtvec.
16386 * system.h: Move forward defs for struct tags rtx_def, union_tree,
16387 rtvec_def along with corresponding typedefs for rtx, tree, and
16388 rtvec to config.h, hconfig.h, tconfig.h.
16390 2002-01-03 Graham Stott <grahams@redhat.com>
16392 * tree.h: Update copyright date.
16393 (IS_EXPR_CODE_CLASS): Add parenthesis.
16394 (TREE_SET_CODE): Add whitespace.
16395 (TREE_CHECK): Add parenthesis.
16396 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16397 (CST_OR_CONSTRUCTOR_CHECK):
16398 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16399 (TREE_SYMBOL_REFERENCED): Whitespace.
16400 (INT_CST_LT): Likewise.
16401 (INT_CST_LT_UNSIGNED): Likewise.
16402 (tree_real_cst): Unwrap comment.
16403 (tree_string): Likewise.
16404 (tree_complex): Likewise.
16405 (IDENTIFIER_POINTER): correct cast.
16406 (SAVE_EXPR_CONTEXT): Whitespace.
16407 (EXPR_WFL_FILENAME_NODE): Likewise.
16408 (EXPR_WFL_FILENAME): Remove parenthesis.
16409 (DECL_ORIGIN): Add parenthesis.
16410 (DECL_FROM_INLINE): Use NULL_TREE.
16411 (build_int_2): Whitespace.
16412 (build_type_variant): Add parenthesis.
16414 * gcc/jcf-parse.c: Update copyright date.
16415 (yyparse): Constify resource_filename.
16417 2002-01-03 Graham Stott <grahams@redhat.com>
16419 * rtl.h: Update copyright date.
16420 (RTL_CHECK1): Wrap long line.
16421 (RTL_CHECK2): Likewise.
16422 (RTL_CHECKC1): Wrap long line and whitespace.
16423 (RTL_CHECKC2): Likewise.
16424 (XWINT): Whitespace.
16430 (XBITMAP): Likewise.
16432 (XBBDEF): Likewise.
16434 (X0WINT): Likewise.
16436 (X0UINT): Likewise.
16440 (X0MODE): Likewise.
16441 (X0BITMAP): Likewise.
16442 (X0TREE): Likewise.
16443 (X0BBDEF): Likewise.
16444 (X0ADVFLAGS): Likewise.
16445 (X0CSELIB): Likewise.
16446 (X0MEMATTR): Likewise.
16447 (XCWINT): Likewise.
16449 (XCUINT): Likewise.
16453 (XCMODE): Likewise.
16454 (XCBITMAP): Likewise.
16455 (XCTREE): Likewise.
16456 (XCBBDEF): Likewise.
16457 (XCADVFLAGS): Likewise.
16458 (XCCSELIB): Likewise.
16459 (XC2EXP): Likewise.
16460 (INSN_UID): Likewise.
16461 (PREV_INSN): Likewise.
16462 (PATTERN): Likewise.
16463 (INSN_CODE): Likewise.
16464 (PUT_REG_NOTE_KIND): Likewise.
16465 (CODE_LABEL_NUMBER): Likewise.
16466 (NOTE_SOURCE_FILE): Likewise.
16467 (NOTE_BLOCK): Likewise.
16468 (NOTE_EH_HANDLER): Likewise.
16469 (NOTE_RANGE_INFO): Likewise.
16470 (NOTE_LIVE_INFO): Likewise.
16471 (NOTE_BASIC_BLOCK): Likewise.
16472 (NOTE_EXPECTED_VALUE): Likewise.
16473 (NOTE_LINE_NUMBER): Likewise.
16474 (LABEL_NAME): Likewise.
16475 (LABEL_NUSES): Likewise.
16476 (LABEL_ALTERNATE_NAME): Likewise.
16477 (ADDRESSOF_DECL): Likewise.
16478 (JUMP_LABEL): Likewise.
16479 (LABEL_NEXTREF): Likewise.
16481 (ORIGINAL_REGNO: Likewise.
16482 (HARD_REGISTER_NUM_P): Add parenthesis.
16483 (SUBREG_REG): Whitespace.
16484 (SUBREG_BYTE): Likewise.
16485 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16486 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16487 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16488 (ASM_OPERANDS_INPUT_VEC): Likewise.
16489 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16490 (ASM_OPERANDS_INPUT): Likewise.
16491 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16492 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16493 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16494 (ASM_OPERANDS_INPUT_MODE): Likewise.
16495 (ASM_OPERANDS_SOURCE_FILE): Likewise.
16496 (ASM_OPERANDS_SOURCE_LINE): Likewise.
16497 (MEM_SET_IN_STRUCT_P): Minor reformat.
16498 (TRAP_CONDITION): Whitespace.
16499 (TRAP_CODE): Likewise.
16500 (COND_EXEC_TEST): Likewise.
16501 (COND_EXEC_CODE): Likewise.
16502 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16503 (PHI_NODE_P): Add parenthesis.
16504 (plus_constant): Whitespace and add parenthesis.
16506 2002-01-03 Kazu Hirata <kazu@hxi.com>
16508 * config/avr/avr.c: Fix comment typos.
16509 * config/c4x/c4x.md: Likewise.
16510 * config/dsp16xx/dsp16xx.h: Likewise.
16511 * config/dsp16xx/dsp16xx.md: Likewise.
16512 * config/i386/i386.md: Likewise.
16513 * config/ia64/ia64.c: Likewise.
16514 * config/m32r/m32r.h: Likewise.
16515 * config/m68hc11/m68hc11.md: Likewise.
16516 * config/mmix/mmix.c: Likewise.
16517 * config/mn10200/mn10200.c: Likewise.
16518 * config/romp/romp.c: Likewise.
16519 * config/sh/sh.c: Likewise.
16520 * config/stormy16/stormy16.c: Likewise.
16521 * config/stormy16/stormy16.h: Likewise.
16522 * config/stormy16/stormy16.md: Likewise.
16524 2002-01-03 Graham Stott <grahams@redhat.com>
16526 * loop.h: Update copyright date.
16527 (LOOP_MOVABLES): Fix typo.
16528 (LOOP_REGS): Likewise.
16529 (LOOP_IVS): Likewise.
16531 2002-01-03 Graham Stott <grahams@redhat.com>
16533 * cppinit.c: Update copyright date.
16534 Don't include output.h
16535 * Makefile.in: Update copyright date.
16538 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
16541 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16542 (-pthread) Add to RS/6000 options.
16544 2002-01-02 Kazu Hirata <kazu@hxi.com>
16546 * except.c: Fix comment typos.
16547 * loop.c: Likewise.
16548 * varasm.c: Likewise.
16549 * doc/tm.texi: Fix a typo.
16551 2002-01-02 Jakub Jelinek <jakub@redhat.com>
16553 * c-typeck.c (output_init_element): Allow initializing static storage
16554 duration objects with compound literals.
16556 2002-01-02 Richard Henderson <rth@redhat.com>
16558 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16561 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16563 * gcc.c (default_compilers): Const-ify.
16564 * mips-tdump.c (stab_names): Likewise.
16565 * mips-tfile.c (map_coff_types, map_coff_storage,
16566 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16567 pseudo_ops_t, pseudo_ops): Likewise.
16568 * protoize.c (default_include): Likewise
16570 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16571 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16572 Add array size in declaration.
16573 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16574 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16575 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16576 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16577 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16578 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16579 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16580 emtens, make_nan): Const-ify.
16581 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16582 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16584 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
16586 * config.gcc (ia64-*-*): Set extra_headers.
16587 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
16588 * config/alpha/t-osf: Remove.
16589 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16591 2002-01-02 David Edelsohn <edelsohn@gnu.org>
16593 * config/rs6000/t-aix43: Revert previous change.
16595 2002-01-02 Jason Merrill <jason@redhat.com>
16597 * c-decl.c (c_expand_body): Call outlining_inline_function when
16598 emitting an inline function out of line.
16600 2002-01-02 Richard Henderson <rth@redhat.com>
16602 * dwarf2out.c (limbo_die_node): Add created_for member.
16603 (new_die): New argument created_for. Update all callers.
16604 (mark_limbo_die_list): New.
16605 (dwarf2out_init): Register limbo_die_list as a root.
16606 (dwarf2out_finish): Force insert limbo dies into their function
16609 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
16612 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16614 2002-01-02 Kazu Hirata <kazu@hxi.com>
16616 * config/h8300/fixunssfsi.c: Update copyright.
16619 * config/h8300/h8300.c: Update copyright.
16620 Eliminate warnings.
16622 2002-01-02 Kazu Hirata <kazu@hxi.com>
16624 * config/romp/romp.c: Fix comment formatting.
16625 * config/romp/romp.h: Likewise.
16626 * config/romp/romp.md: Likewise.
16627 * config/s390/s390.c: Likewise.
16628 * config/stormy16/stormy16.c: Likewise.
16629 * config/stormy16/stormy16.h: Likewise.
16631 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
16633 * c-common.h (genrtl_expr_stmt_value): Declare.
16634 * c-semantics.c (genrtl_goto_stmt): Redirect to...
16635 (genrtl_goto_stmt_value): ... this new function. Pass new
16636 argument down to expand_expr_stmt_value, taking
16637 TREE_ADDRESSABLE into account.
16638 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16639 STMT_EXPR as addressable, i.e., one whose result we want.
16640 * expr.c (expand_expr): Don't save expression statement value
16641 of labeled_blocks or loop_exprs.
16642 * stmt.c (expand_expr_stmt): Redirect to...
16643 (expand_expr_stmt_value): ... this new function. Use new
16644 argument to tell whether to save expression value.
16645 (expand_end_stmt_expr): Reset last_expr_type and
16646 last_expr_value if we don't have either.
16647 * tree-inline.c (declare_return_variable): Mark its use
16648 statement as addressable.
16649 * tree.h: Document new use of TREE_ADDRESSABLE.
16650 (expand_expr_stmt_value): Declare.
16652 2002-01-01 Tom Rix <trix@redhat.com>
16654 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16655 rs6000_emit_allocate_stack.
16657 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
16659 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16660 ${srcdir}/ginclude/ to every entry in extra_headers.
16661 * configure: Regenerate.
16662 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16663 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16664 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16665 * ginclude/proto.h: Rename to config/convex/proto.h.
16667 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16669 * attribs.c (handle_vector_size_attribute): Use host_integerp
16670 and tree_int_cst; remove warnings.
16671 * caller-save.c (insert_restore): Add cast to get rid of warning.
16672 (insert_save): Likewise.
16673 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16674 * regmove.c (find_matches): Add temporary var to kill a warning.
16676 2002-01-01 Douglas B Rupp <rupp@gnat.com>
16678 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16679 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16680 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16681 (vms-dwarf2eh.o): Add Makefile rule.
16682 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16683 * config/alpha/vms-dwarf2eh.asm: New file.
16685 * gcc.c (delete_if_ordinary): Delete all versions.
16687 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
16689 * config/mmix/mmix.md: Update FIXME to not mention
16691 (MMIX_rJ_REGNUM): New define_constants constant.
16692 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
16693 "*movdicc_real"): Adjust contraints formatting.
16694 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
16695 for branch prediction.
16696 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
16698 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
16699 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
16700 number. Delete related FIXMEs.
16701 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
16702 from number to MMIX_rJ_REGNUM.
16703 (TARGET_MASK_BRANCH_PREDICT): New.
16704 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
16705 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
16706 value. Add -mbranch-predict and -mno-branch-predict.
16707 (TARGET_VERSION): Drop date.
16708 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
16709 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
16710 for finding out global symbols.
16711 (mmix_asm_output_labelref): Revert condition for global symbol.
16712 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
16713 (mmix_print_operand_punct_valid_p): A '+' is valid.
16715 See ChangeLog.6 for earlier changes.