1 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4 (CPP_PREDEFINES): Remove.
5 (SUBTARGET_EXTRA_SPECS): Define.
6 (CPP_SPEC): Use %(netbsd_cpp_spec).
7 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
8 (CPP_PREDEFINES): Remove.
9 (SUBTARGET_EXTRA_SPECS): Define.
10 (CPP_SPEC): Use %(netbsd_cpp_spec).
11 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
12 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
13 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
15 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
17 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
18 Zack Weinberg <zack@codesourcery.com>
20 * cppexp.c (cpp_num): Move to cpplib.h.
22 (interpret_float_suffix, interpret_int_suffix): New.
23 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
24 (cpp_classify_number, cpp_interpret_integer): New.
25 (interpret_number): Remove.
26 (eval_token): Update to use new routines.
27 * cpphash.h (cpp_num_part): Move to cpplib.h.
28 * cppinit.c (cpp_post_options): Set warn_long_long.
29 * cpplib.h (struct cpp_options): Add warn_long_long.
30 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
31 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
32 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
33 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
34 cpp_interpret_integer): New.
36 2002-05-29 Joel Sherrill <joel@OARcorp.com>
38 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
40 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
42 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
43 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
44 (CPP_SUBTARGET_SPEC): Define.
45 (SUBTARGET_EXTRA_SPECS): Define.
48 2002-05-29 Dale Johannesen <dalej@apple.com>
49 Michael Matz <matz@kde.org>
50 David Edelsohn <edesohn@gnu.org>
51 Jeff Law <law@redhat.com>
53 * haifa-sched.c (schedule_block): Do not count USE and CLOBBER
54 insns against the issue rate.
56 * sched-deps.c (sched_create_groups_for_libcalls): New function.
57 (sched_analyze): Use it.
59 2002-05-29 Chris Lattner <sabre@nondot.org>
61 * ssa.c (rename_insn_1): Rename uses of undefined registers to
62 prevent confusion if/when the register is defined.
64 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
67 * config/cris/cris.md: Fix typos and thinkos in comments.
68 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
70 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
71 ("*mov_sideqi_mem"): Similar, but for operand 3.
72 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
73 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
74 Remove spurious mode specifier on operand 2.
76 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
78 * config/h8300/h8300-protos.h: Remove the prototype for
80 Add prototypes for single_one_operand and single_zero_operand.
81 * config/h8300/h8300.c (o_operand): Remove.
82 (single_one_operand): New.
83 (single_zero_operand): Likewise.
84 (print_operand): For 'V' operand, and the operand with 0xff.
85 For 'V' and 'W' operands, do not and the bit position with 7.
86 * config/h8300/h8300.md (various anonymous patterns): Replace
87 use of exact_log2 with single_one_operand/single_zero_operand.
89 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
91 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
93 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
95 * config/s390/s390.c (legitimate_pic_operand_p): Do not
96 accept symbolic LARL operands.
97 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
100 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
102 * config/s390/s390.md (cmpstr_64/31): Mark whole
103 input registers as used.
105 2002-05-28 Richard Henderson <rth@redhat.com>
107 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
108 not current_function_uses_pic_offset_table and
109 current_function_uses_const_pool; examine current_function_profile.
110 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
111 input to blockage if needed.
112 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
113 (legitimize_pic_address): Likewise. Set regs_ever_live for
114 pic_offset_table_rtx when invoked during reload.
115 * config/i386/i386.h (FINALIZE_PIC): Remove.
116 * config/i386/i386.md (tablejump): Reformat. Do not set
117 current_function_uses_pic_offset_table.
118 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
119 (blockage): Accept anything as operand 0.
121 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
123 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
124 common CPP built-ins for all NetBSD a.out targets.
125 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
126 common CPP built-ins for all NetBSD ELF targets.
127 * config/netbsd.h: Add missing notice.
128 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
129 for all NetBSD targets.
130 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
131 for all NetBSD targets using an LP64 code model.
132 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
135 2002-05-28 Richard Henderson <rth@redhat.com>
137 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
138 update if UPDATE_LIFE_LOCAL.
140 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
142 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
144 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
145 Jason R. Thorpe <thorpej@wasabisystems.com>
147 config/sh reorganization to factor out endianness and coff:
149 * config/sh/little.h: New file.
150 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
151 defined, define to 0 to select big-endian.
152 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
153 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
154 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
155 * config/sh/t-be: New file.
156 * config/sh/t-le: New file.
158 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
159 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
160 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
161 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
162 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
163 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
164 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
165 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
166 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
167 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
168 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
169 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
170 (LINK_SPEC): Define to SH_LINK_SPEC.
171 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
172 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
173 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
174 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
175 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
176 * config/sh/coff.h: New file.
177 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
178 (TARGET_OBJFMT_CPP_BUILTINS): Define.
179 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
180 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
181 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
182 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
183 (PTRDIFF_TYPE): Likewise.
184 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
185 (CPP_PREDEFINES): Don't define.
186 (TARGET_OBJFMT_CPP_BUILTINS): Define.
187 (LINK_SPEC): Define to SH_LINK_SPEC.
188 (LINK_EMUL_PREFIX): Redefine.
189 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
190 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
191 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
192 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
193 (TARGET_OS_CPP_BUILTINS): Define.
194 (TARGET_DEFAULT): Redefine.
195 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
196 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
197 (LINK_SPEC): Don't redefine.
198 (LINK_DEFAULT_CPU_EMUL): Redefine.
199 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
200 * sh.c (sh_asm_named_section): Don't declare / define.
201 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
202 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
203 (sh64-*-elf* tm_file): Likewise.
204 (sh-*-rtemself* tm_file): Likewise.
205 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
206 (sh-*-linux* tmake_file): Add sh/t-le.
207 (sh-*-rtems* tm_file): Add sh/coff.h
208 (sh-*-* tm_file): Likewise.
210 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
212 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
213 CONSTANT_POOL_ADDRESS_P.
215 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
217 2002-05-22 David Edelsohn <edelsohn@gnu.org>
218 Jeff Law <law@redhat.com>
220 * optabs.c (expand_binop): Fix nwords sign warnings.
221 generate pseudo for add_optab.
223 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
224 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
226 2002-05-28 Marc Espie <espie@openbsd.org>
228 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
229 inherited from gas.h.
230 (ASM_QUAD): Undef. OpenBSD does not support it.
232 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
234 * doc/install.texi (binaries): Change mingw binaries
235 link to www.mingw.org.
237 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
239 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
241 2002-05-28 Richard Henderson <rth@redhat.com>
243 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
244 bottom alignment for leaf functions.
246 2002-05-28 Zack Weinberg <zack@codesourcery.com>
248 * config/pa/milli32.S, config/pa/lib1funcs.asm,
249 config/sparc/sol2-g1.asm: Delete unused files.
251 2002-05-28 Richard Henderson <rth@redhat.com>
253 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
255 * flow.c (calculate_global_regs_live): Rename call_used to
256 invalidated_by_call. Initialize from regs_invalidated_by_call
257 instead of call_used_regs.
259 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
262 2002-05-28 Zack Weinberg <zack@codesourcery.com>
264 * tree.h: Forward-declare struct realvaluetype.
265 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
267 (TREE_REAL_CST_PTR): New accessor.
268 (TREE_REAL_CST): Update.
269 * real.h: Include machmode.h.
270 (realvaluetype): Make it struct realvaluetype, not a typedef.
271 (build_real): Prototype here.
273 * tree.c: Include real.h.
274 (build_real): Allocate the REAL_VALUE_TYPE as a separate
275 object in GC memory, set TREE_REAL_CST_PTR to point to it.
276 (build_real_from_int_cst): Use build_real.
277 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
280 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
281 fold-const.c, print-tree.c, real.c: Include real.h.
282 * Makefile.in: Update dependency lists.
284 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
286 * basic-block.h (last_basic_block): Declare.
287 (expunge_block_nocompact): Declaration removed.
288 (compact_blocks): Declare.
289 * cfg.c (last_basic_block): New variable.
290 (expunge_block_nocompact): Removed.
291 (expunge_block): Do not compact basic blocks.
292 (compact_blocks): New.
293 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
295 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
297 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
298 real positions of blocks.
299 (delete_unreachable_blocks): Simplified -- quadratic behavior now
301 (cleanup_cfg): Compact blocks.
302 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
303 basic_block_info varray.
304 (flow_delete_block): Comment update.
305 (back_edge_of_syntactic_loop_p): Modify position check code.
306 (verify_flow_info): Update checking.
307 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
308 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
309 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
310 indices no longer change.
311 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
313 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
314 * profile.c (branch_prob): Compact blocks.
315 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
318 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
320 * config/h8300/h8300.md (two anonymous patterns): New.
322 2002-05-28 David S. Miller <davem@redhat.com>
324 * config/sparc/sparc.md (cpu): Tidy.
325 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
327 (in_call_delay): Delete reference to 'return' type.
328 (eligible_for_return_delay, in_return_delay, define_delay
329 referencing those): Delete.
330 (rest of file): Use new type attributes as appropriate.
331 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
332 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
333 * config/sparc/ultra1_2.md (us1_single): New reservation.
334 (us1_ialuX): Likewise.
335 * config/sparc/ultra3.md (us3_single): Likewise.
336 (us3_ialuX): Likewise.
337 (us3_imul, us3_idiv): Tweak.
339 2002-05-28 Richard Henderson <rth@redhat.com>
341 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
344 2002-05-28 Richard Henderson <rth@redhat.com>
346 * config.gcc: Obsolete mn10200.
348 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
350 * cppexp.c (interpret_number): Optimize for single-digit
351 and less-than-half-precision cases.
352 (num_trim, num_positive, num_div_op): Cast constants.
354 2002-05-27 Bo Thorsen <bo@suse.de>
356 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
357 3.1 branch. The file was made by Jakub Jelinek.
358 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
359 support so multilib doesn't break. And don't define this at all
360 when -Dinhibit_libc is used.
361 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
362 * config/i386/t-linux64: Implement full multilib support. Patch
363 originally done by Andreas Jaeger and Jakub Jelinek.
365 2002-05-27 Roger Sayle <roger@eyesopen.com>
367 * c-common.c: Add support for __attribute__((nothrow)) to specify
368 that a function cannot throw an exception (using TREE_NOTHROW).
369 (handle_nothrow_attribute): New function to process this attribute.
371 * doc/extend.texi: Document the new nothrow function attribute.
373 2002-05-27 H.J. Lu (hjl@gnu.org)
375 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
376 (num_positive): Likewise.
377 (num_div_op): Likewise.
379 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
381 * c-common.c (c_common_init): Always use intmax_t.
383 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
385 * c-common.c (c_common_init): Use intmax_t for now.
387 2002-05-24 Andrew Haley <aph@redhat.com>
389 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
390 if T is a boolean type.
392 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
394 * basic-block.h (last_basic_block): Defined as synonym for
396 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
397 flow_depth_first_order_compute, flow_preorder_transversal_compute,
398 flow_dfs_compute_reverse_init): Replaced relevant occurences of
399 n_basic_blocks with last_basic_block.
400 * cfgbuild.c (make_edges): Likewise.
401 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
402 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
403 * combine.c (combine_instructions): Likewise.
404 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
405 iterative_dataflow_bitmap): Likewise.
406 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
407 calc_idoms, idoms_to_doms): Likewise.
408 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
410 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
411 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
412 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
413 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
414 delete_null_pointer_checks, compute_code_hoist_vbeinout,
415 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
416 compute_store_table, build_store_vectors): Likewise.
417 * haifa-sched.c (sched_init): Likewise.
418 * ifcvt.c (if_convert): Likewise.
419 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
420 pre_edge_lcm, compute_available, compute_nearerout,
421 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
423 * predict.c (estimate_probability, process_note_prediction,
424 note_prediction_to_br_prob): Likewise.
425 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
426 * recog.c (split_all_insns, peephole2_optimize): Likewise.
427 * regrename.c (copyprop_hardreg_forward): Likewise.
428 * resource.c (init_resource_info): Likewise.
429 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
430 init_regions, schedule_insns): Likewise.
431 * ssa-ccp.c (ssa_const_prop): Likewise.
432 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
433 * ssa.c (compute_dominance_frontiers,
434 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
436 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
437 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
440 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
442 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
444 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
445 hoist_insn_after, hoist_insn_to_edge): New.
447 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
449 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
450 (PROP_FINAL): Include.
451 * flow.c (life_analysis, update_life_info,
452 init_propagate_block_info, mark_set_1, mark_used_rgs):
453 Support SCAN_DEAD_STORE.
455 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
457 * c-common.c (c_common_init): Set CPP arithmetic precision.
458 * cppexp.c (cpp_num_part): Move typedef ...
459 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
460 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
461 (sanity_checks): Update.
463 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
465 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
466 (mkheaders): New rule.
467 (install-mkheaders): New rule.
468 * configure.in (all_outputs): Add mkheaders.
469 * configure: Regenerate.
470 * mkheaders.in: New file.
472 2002-05-26 Jakub Jelinek <jakub@redhat.com>
474 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
476 2002-05-26 Andreas Jaeger <aj@suse.de>
478 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
480 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
482 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
483 right_shift): Remove.
484 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
486 (struct op): Use cpp_num.
487 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
488 num_part_mul, num_unary_op, num_binary_op, num_negate,
489 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
490 num_div_op, num_lshift, num_rshift, append_digit): New.
491 (interpret_number, parse_defined, eval_token, reduce): Update
492 for two-integer arithmetic.
493 (binary_handler): New typedef.
495 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
496 (_cpp_parse_expr, reduce): Update to handle two-integers.
497 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
499 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
501 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
502 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
503 branch insn into account, do not assume 1.
504 (avr_out_sbxx_branch): New function. Optimize cases of skipping
505 over single word insn. Handle upper half of I/O space too.
506 * config/avr/avr.md (*sbrx_branch): Use it.
507 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
508 (*sbix_branch, *sbix_branch_bit7): Likewise.
509 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
510 Use RTL peepholes to optimize register operand sign tests.
512 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
514 * config/avr/avr.c (avr_asm_only_p): New variable.
515 (avr_override_options): Set it here if AVR1.
516 (asm_file_start): Test it here, report an error if set.
518 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
520 * alias.c: Fix formatting.
521 * attribs.c: Likewise.
522 * bb-reorder.c: Likewise.
523 * bitmap.c: Likewise.
524 * bitmap.h: Likewise.
525 * builtins.c: Likewise.
527 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
529 * reload.c (find_valid_class): Accept new argument DEST,
530 choose class accordingly.
531 (push_reload): Update callers.
533 2002-05-26 Andreas Jaeger <aj@suse.de>
535 * combine.c (combine_instructions): Do not indent #if for
538 2002-05-25 Richard Henderson <rth@redhat.com>
540 * c-pragma.c (apply_pragma_weak): Convert value identifier to
541 string for decl_attributes.
542 (handle_pragma_weak): Call assemble_alias if we're modifying
545 2002-05-25 Richard Henderson <rth@redhat.com>
548 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
549 using rtl instead of fprintf.
550 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
551 * config/sparc/sparc-protos.h: Update.
553 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
555 * Makefile.in (C_COMMON_H): Fix.
556 Update other targets.
557 * c-common.c: Don't include c-lex.h.
558 (builtin_define_with_value): Make static and prototype.
559 (builtin_define_std): Move from c-lex.h.
560 * c-common.h (init_c_lex): Move from c-lex.h.
561 * c-decl.c: Don't include c-lex.h.
562 (make_pointer_declarator): Move from c-parse.in.
563 * c-lex.c: Don't include c-lex.h.
565 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
566 (make_pointer_declarator): Move to c-decl.c.
567 * c-pragma.c: Don't include c-lex.h.
568 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
569 * c-tree.h (make_pointer_declarator): New.
571 * passes.texi, tm.texi: Update.
573 * Make-lang.in: Update and correct.
574 * objc-act.c: Don't include c-lex.h or cpplib.h.
576 * treetree.c: Don't include c-lex.h.
578 * darwin-c.c: Don't include c-lex.h.
579 * c4x/c4x-c.c: Don't include c-lex.h.
581 * i370/i370-c.c: Don't include c-lex.h.
582 * i370/t-i370: Update.
583 * i960/i960-c.c: Don't include c-lex.h.
584 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
585 * i960/t-960bare: Update.
586 * i960/t-vxworks: Update.
587 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
588 * rs6000/t-darwin: Update.
589 * rs6000/t-rs6000-c-rule: Update.
590 * v850/v850-c.c: Don't include c-lex.h.
591 * v850/v850.c: Don't include c-lex.h or cpplib.h.
594 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
596 * tree.def: Fix typos.
597 * doc/install.texi: Likewise.
599 2002-05-25 Richard Henderson <rth@redhat.com>
601 * configure.in (HAVE_AS_TLS): Add ia64 test.
602 * configure: Rebuild.
603 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
604 (override_options): Set it.
605 (TARGET_HAVE_TLS): New.
606 (sdata_symbolic_operand): Look for 's'.
607 (tls_symbolic_operand): New.
608 (ia64_expand_load_address): Abort for tls symbols.
609 (gen_tls_get_addr): New.
610 (gen_thread_pointer): New.
611 (ia64_expand_move): Split out from movdi. Handle tls symbols.
612 (rtx_needs_barrier): Add new unspecs.
613 (ia64_encode_section_info): Handle tls symbols.
614 (ia64_strip_name_encoding): Strip two encoding chars.
615 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
616 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
617 (TARGET_OPTIONS): Add tls-size.
618 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
619 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
620 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
621 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
622 (movsf, movdf): Likewise.
623 (movdi_symbolic): Use match_scratch. Don't split if we won't
624 have a scratch availiable.
625 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
626 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
627 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
628 * config/ia64/ia64-protos.h: Update.
629 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
630 sdata_symbolic_operand.
631 (ASM_OUTPUT_LABELREF): Strip two characters.
633 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
635 * combine.c (simplify_set): Remove an unnecessary subreg.
637 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
639 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
641 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
643 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
645 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
647 2002-05-25 Roger Sayle <roger@eyesopen.com>
649 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
650 (cond (compare x y) 0) into the equivalent (cond x y).
652 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
654 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
656 2002-05-24 Zack Weinberg <zack@codesourcery.com>
658 * config.gcc: Remove all stanzas for previously obsoleted
659 systems. Where necessary, add explicit error stanzas to
660 prevent removed systems from being misidentified as something
661 else. Begin a fresh obsoletions list, with the systems that
662 were reprieved last round.
663 * doc/install.texi: Remove all mention of dead targets.
664 * fixinc/mkfixinc.sh: Likewise.
666 * config/arm/arm.h: Bit 31 of target_flags is no longer
669 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
670 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
671 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
672 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
673 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
674 config/alpha/osf12.h, config/alpha/osf2or3.h,
675 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
676 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
677 config/clipper/clipper-protos.h, config/clipper/clipper.c,
678 config/clipper/clipper.h, config/clipper/clipper.md,
679 config/clipper/clix.h, config/convex/convex-protos.h,
680 config/convex/convex.c, config/convex/convex.h,
681 config/convex/convex.md, config/convex/fixinc.convex,
682 config/convex/proto.h, config/elxsi/elxsi-protos.h,
683 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
684 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
685 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
686 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
687 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
688 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
689 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
690 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
691 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
692 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
693 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
694 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
695 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
696 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
697 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
698 config/m68k/altos3068.h, config/m68k/apollo68.h,
699 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
700 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
701 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
702 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
703 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
704 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
705 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
706 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
707 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
708 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
709 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
710 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
711 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
712 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
713 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
714 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
715 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
716 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
717 config/mips/dec-osf1.h, config/mips/elflorion.h,
718 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
719 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
720 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
721 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
722 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
723 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
724 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
725 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
726 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
727 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
728 config/ns32k/sequent.h, config/ns32k/tek6000.h,
729 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
730 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
731 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
732 config/sparc/rtems.h, config/we32k/we32k-protos.h,
733 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
736 2002-05-24 Richard Henderson <rth@redhat.com>
738 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
739 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
740 * config/i386/i386.c (tls_model_chars): Add leading space.
741 (tls_symbolic_operand): Don't bias by 1.
742 (legitimize_address): Don't unbias by 1.
744 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
746 * lcm.c (optimize_mode_switching): Change bb used as indices
749 2002-05-24 Richard Henderson <rth@redhat.com>
751 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
752 of update_life_info_in_dirty_blocks.
754 2002-05-24 Jakub Jelinek <jakub@redhat.com>
757 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
759 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
762 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
764 2002-05-24 Jim Blandy <jimb@redhat.com>
766 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
767 entry with a type code of zero, marking the end of the compilation
770 2002-05-24 Richard Henderson <rth@redhat.com>
772 * varasm.c (asm_output_bss): Always output one byte.
773 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
775 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
777 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
780 2002-05-24 Andreas Jaeger <aj@suse.de>
782 * ggc-page.c (alloc_page): Cast variables of type size_t to
783 unsigned long, adjust printf format string.
784 (ggc_alloc): Likewise.
785 (ggc_print_statistics): Likewise.
786 (ggc_print_statistics): Correct printf format string for SCALE to
789 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
791 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
793 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
794 Zack Weinberg <zack@codesourcery.com>
796 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
798 * dwarf2out.c (lookup_filename): Properly quote filename in .file
799 directive in assembly file.
800 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
801 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
802 * config/pj/pj.h (ASM_FILE_START): Likewise.
803 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
804 * config/avr/avr.c (asm_file_end): Likewise.
805 * toplev.c (output_quoted_string): Handle possibly signed plain
807 * toplev.h (output_clean_symbol_name): Declare
808 * toplev.c (output_clean_symbol_name): Define.
809 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
810 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
812 2002-05-24 Alan Modra <amodra@bigpond.net.au>
814 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
816 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
818 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
821 2002-05-23 Richard Henderson <rth@redhat.com>
823 * configure.in (HAVE_AS_TLS): New test.
824 * config.in, configure: Rebuild.
825 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
826 (ix86_tls_dialect_string, ix86_tls_dialect): New.
827 (override_options): Set it.
828 (tls_model_chars, tls_symbolic_operand): New.
829 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
830 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
831 (local_exec_symbolic_operand): New.
832 (get_pic_label_name): Merge into output_set_got.
833 (ix86_asm_file_end): Emit pic_label_name if defined.
834 (legitimate_constant_p, constant_address_p): New.
835 (legitimate_pic_operand_p): New.
836 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
837 (legitimate_address_p): Likewise.
838 (ix86_encode_section_info): Rename from i386_; handle tls decls.
839 (ix86_strip_name_encoding): New.
840 (get_thread_pointer): New.
841 (legitimize_address): Handle tls symbols.
842 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
844 (struct machine_function): Add some_ld_name.
845 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
846 (print_operand) [&]: Use it. Handle UNSPEC_TP.
847 (output_addr_const_extra): New.
848 (maybe_get_pool_constant): New.
849 (ix86_split_to_parts): Use it.
850 (ix86_expand_move): Handle tls symbols.
851 (ix86_tls_get_addr): New.
852 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
853 (TARGET_OPTIONS): Add tls-dialect.
854 (CONSTANT_ADDRESS_P): Use new out-of-line function.
855 (LEGITIMATE_CONSTANT_P): Likewise.
856 (LEGITIMATE_PIC_OPERAND_P): Likewise.
857 (TARGET_STRIP_NAME_ENCODING): New.
858 (ASM_OUTPUT_LABELREF): New.
859 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
860 (OUTPUT_ADDR_CONST_EXTRA): New.
861 (PREDICATE_CODES): Update.
862 (ix86_tls_dialect, ix86_tls_dialect_string): New.
863 * config/i386/i386.md: Regroup and renumber unspec constants.
864 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
865 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
866 (tls_global_dynamic, tls_local_dynamic_base): New.
867 (tls_local_dynamic_once): New.
868 * config/i386/i386-protos.h: Update.
870 2002-05-23 Richard Henderson <rth@redhat.com>
872 * genemit.c (gen_insn): Print file:lineno comment before function.
874 * gensupport.c (struct queue_elem): Add filename member.
875 (queue_pattern): Initialize it; update all callers.
876 (process_include): Don't free filename.
877 (read_md_rtx): Set read_rtx_filename.
879 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
881 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
883 2002-05-23 Richard Henderson <rth@redhat.com>
885 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
887 2002-05-23 Richard Henderson <rth@redhat.com>
889 * doc/extend.texi (C++98 Thread-Local Edits): Update with
890 commentary from Mark.
892 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
894 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
895 Use FOR_EACH_BB macros to iterate over basic block chain.
896 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
897 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
899 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
900 find_unreachable_blocks, create_edge_list, verify_edge_list,
901 remove_fake_edges, add_noreturn_fake_exit_edges,
902 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
904 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
905 find_sub_basic_blocks): Likewise.
906 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
908 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
910 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
912 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
913 commit_edge_insertions, commit_edge_insertions_watch_calls,
914 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
915 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
916 * conflict.c (conflict_graph_compute): Likewise.
917 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
918 df_modified_p, df_refs_unlink, df_dump): Likewise.
919 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
920 * final.c (compute_alignments): Likewise.
921 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
922 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
923 count_or_remove_death_notes): Likewise.
924 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
925 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
926 classic_gcse, compute_transp, cprop, compute_pre_data,
927 compute_transpout, invalidate_nonnull_info,
928 delete_null_pointer_checks_1, delete_null_pointer_checks,
929 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
930 compute_store_table, build_store_vectors, store_motion): Likewise.
931 * global.c (global_conflicts, mark_elimination): Likewise.
932 * graph.c (print_rtl_graph_with_bb): Likewise.
933 * haifa-sched.c (sched_init): Likewise.
934 * ifcvt.c (if_convert): Likewise.
935 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
936 compute_available, compute_nearerout, compute_rev_insert_delete,
937 optimize_mode_switching): Likewise.
938 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
939 * predict.c (estimate_probability, note_prediction_to_br_prob,
940 propagate_freq, counts_to_freqs, expensive_function_p,
941 estimate_bb_frequencies): Likewise.
942 * profile.c (instrument_edges, get_exec_counts,
943 compute_branch_probabilities, compute_checksum, branch_prob,
944 find_spanning_tree): Likewise.
945 * recog.c (split_all_insns, peephole2_optimize): Likewise.
946 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
948 * regclass.c (scan_one_insn, regclass): Likewise.
949 * regmove.c (mark_flags_life_zones, regmove_optimize,
950 record_stack_memrefs): Likewise.
951 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
952 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
953 * resource.c (find_basic_block): Likewise.
954 * sched-ebb.c (schedule_ebbs): Likewise.
955 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
956 find_single_block_region, find_rgns, schedule_insns)
957 * sibcall.c (optimize_sibling_and_tail_recursive_call)
958 * ssa-ccp.c (optimize_unexecutable_edges,
959 ssa_ccp_df_delete_unreachable_insns): Likewise.
960 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
961 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
962 rename_block, convert_to_ssa, compute_conservative_reg_partition,
963 compute_coalesced_reg_partition, rename_equivalent_regs,
964 convert_from_ssa): Likewise.
965 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
966 process_for_unwind_directive): Likewise.
968 * df.c (FOR_ALL_BBS): Removed.
969 * gcse.c (struct null_pointer_info): Type of current_block field
971 (struct reg_avail_info): Type of last_bb field changed.
972 * config/ia64/ia64.c (block_num): Removed.
973 (need_copy_state): Type changed.
976 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
978 * cppinit.c (mark_named_operators): Split out from init_builtins.
979 (cpp_finish_options): Call it from here instead.
981 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
983 * builtin-attrs.def: Update copyright years.
984 (ATTR_NONNULL): New attribute identifier.
985 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
986 attribute tree lists.
987 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
989 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
990 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
991 attribute lists. Chain the appropriate nonnull attribute.
992 * c-format.c (check_format_arg): Remove null format string
994 * testsuite/gcc.dg/format/null-1.c: New test.
996 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
998 * Makefile.in (ADAC): Define.
1000 (.SUFFIXES): Move before language makefile fragments.
1001 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1003 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1005 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1008 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1010 * cfg.c (dump_flow_info): Print results of
1011 maybe_hot/probably_never_executed predicates.
1012 * toplev.c (open_dump_file): Print function frequency.
1014 2002-05-23 David S. Miller <davem@redhat.com>
1016 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1019 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1021 * c-common.c (warn_nonnull): Declare.
1022 (c_common_attribute_table): Add "nonnull" attribute.
1023 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1024 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1025 check_function_arguments_recurse): New functions.
1026 * c-common.h (warn_nonnull): Declare extern.
1027 (check_function_arguments, check_function_arguments_recurse): New
1029 * c-decl.c (c_decode_option): Add -Wnonnull option.
1030 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1032 (format_check_context): New structure.
1033 (check_format_info_recurse): Remove recursion and rename to...
1034 (check_format_arg): ...this. Update comment.
1035 (check_format_info): Use check_function_arguments_recurse.
1036 * c-typeck.c (build_function_call): Call check_function_arguments
1037 instead of check_function_format.
1038 * doc/extend.texi: Document "nonnull" attribute.
1039 * doc/invoke.texi: Docuemnt -Wnonnull option.
1040 * testsuite/gcc.dg/nonnull-1.c: New test.
1041 * testsuite/gcc.dg/nonnull-2.c: New test.
1043 2002-05-23 David S. Miller <davem@redhat.com>
1045 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1046 * cfgcleanup.c (cleanup_cfg): If it is set do not
1047 attempt to delete trivially dead insns.
1048 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1049 * toplev.c (rest_of_compilation): Document non-trivial aspect
1050 the RTL before optimize_save_area_alloca is run.
1052 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1054 * c-lex.c (indent_level): Remove.
1055 (cb_file_change, c_lex): Remove indent level handling.
1056 * c-lex.h (indent_level): Remove.
1057 * input.h (struct file_stack): Remove indent_level.
1058 * toplev.c (push_srcloc): Remove indent_level handling.
1060 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1063 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1064 of x in constraints for clarity.
1065 (sse_mov?fcc split): abort if op2 == op3.
1066 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1067 sse_movsfcc_const0_4): Add earlyclobber.
1068 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1069 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1070 Use Y instead of x in constraints.
1072 2002-05-23 Richard Henderson <rth@redhat.com>
1074 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1075 (C++98 Thread-Local Edits): New subsection.
1077 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1078 (ix86_arch): Set type to enum processor_type.
1080 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1081 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1083 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1085 * configure.in: Fix as version test for binutils 2.12.1 releases
1087 * configure: Rebuilt.
1089 2002-05-23 Richard Henderson <rth@redhat.com>
1091 * config/i386/i386.c (get_pic_label_name): New.
1092 (load_pic_register): Remove.
1093 (output_set_got): New.
1094 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1095 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1096 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1097 (prologue_set_got, prologue_get_pc): Remove.
1098 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1099 (builtin_setjmp_receiver): Use gen_set_got.
1100 * config/i386/i386-protos.h: Update.
1102 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1104 * gcse.c (hash_expr): Do not use alias set for hashing.
1106 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1108 * dbxout.c (dbxout_class_name_qualifiers): New function.
1109 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1111 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1113 * cpperror.c (_cpp_begin_message): No special casing
1115 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1116 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1117 * cpplib.c (do_include_common): Use DL_ERROR.
1118 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1120 * fix-header.c (read_scan_file): Update.
1122 2002-05-22 Richard Henderson <rth@redhat.com>
1124 * config/i386/i386.c (ix86_expand_call): New function, extracted
1125 from md call patterns. Add pic_offset_table_rtx to
1126 CALL_INSN_FUNCTION_USAGE when needed.
1127 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1128 (call_value_pop, call_value, untyped_call): Likewise.
1129 (call_exp, call_value_exp): Remove.
1130 * config/i386/i386-protos.h: Update.
1132 2002-05-22 Richard Henderson <rth@redhat.com>
1134 * varasm.c (default_section_type_flags): Check for VAR_DECL
1135 before using DECL_THREAD_LOCAL.
1137 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1139 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1140 (STARTFILE_SPEC): Delete PE crt0.o.
1141 * config/rs6000/aix51.h: Same.
1142 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1143 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1144 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1145 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1146 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1148 2002-05-22 Richard Henderson <rth@redhat.com>
1150 * varasm.c (default_section_type_flags): Handle tls data and
1152 (default_unique_section): Handle tls sections.
1154 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1156 * configure.in (CROSS): Define NATIVE_CROSS.
1157 * configure: Regenerate.
1158 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1159 (startfile_prefix_spec): New var.
1160 (static_specs): Add startfile_prefix_spec.
1161 (do_spec_2): Split out from..
1163 (main): Process startfile_prefix_spec.
1164 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1166 (STARTFILE_PREFIX_SPEC): Define.
1167 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1170 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1172 * cpperror.c: Fix formatting.
1173 * cppexp.c: Likewise.
1174 * cppfiles.c: Likewise.
1175 * cpphash.c: Likewise.
1176 * cpphash.h: Likewise.
1177 * cppinit.c: Likewise.
1178 * cpplex.c: Likewise.
1179 * cpplib.c: Likewise.
1180 * cppmacro.c: Likewise.
1181 * cppmain.c: Likewise.
1182 * cppspec.c: Likewise.
1184 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1186 * combine.c (force_to_mode): Use gen_int_mode.
1187 Don't clear CONST_INT bits outside of mode.
1189 2002-05-22 Richard Henderson <rth@redhat.com>
1191 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1192 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1194 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1197 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1198 if DECL_SIZE_UNIT is INTEGER_CST.
1200 2002-05-22 Richard Henderson <rth@redhat.com>
1202 * flow.c (life_analysis): Delete broken reg_label check.
1204 2002-05-22 Richard Henderson <rth@redhat.com>
1206 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1207 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1209 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1211 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1212 (embed-bb.c): New rule.
1213 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1214 * config/sh/embed_bb.c: Delete.
1216 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1218 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1220 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1222 * config/h8300/h8300.md (*andorqi3): New.
1224 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
1226 PR preprocessor/6517
1227 * Makefile.in: Update.
1228 * c-common.c (c_common_post_options): Add preprocessor
1229 errors to the error count.
1230 * c-lang.c (c_post_options): Kill.
1231 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1232 * hooks.h: Add header guards.
1233 * langhooks-def.h: Include hooks.h.
1234 (LANG_HOOKS_POST_OPTIONS): Update.
1235 * langhooks.h (struct lang_hooks): Update post_options.
1236 * toplev.c (parse_options_and_default_flags): Update.
1238 * objc-lang.c (objc_post_options): Kill.
1239 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1241 2002-05-21 Bruce Korb <bkorb@gnu.org>
1243 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1244 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1245 * fixinc/fixincl.x: regen.
1247 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
1249 * cfgbuild.c: Fix formatting.
1251 * cfgcleanup.c: Likewise.
1252 * cfglayout.c: Likewise.
1253 * cfgloop.c: Likewise.
1254 * cfgrtl.c: Likewise.
1256 2002-05-21 Richard Henderson <rth@redhat.com>
1258 * c-common.h (enum rid): Add RID_THREAD.
1259 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1260 (grokdeclarator): Grok __thread.
1261 * c-parse.in (reswords): Add __thread.
1262 (rid_to_yy): Add RID_THREAD.
1264 * tree.h (DECL_THREAD_LOCAL): New.
1265 (struct tree_decl): Add thread_local_flag.
1266 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1267 * tree.c (staticp): TLS variables are not static.
1269 * target-def.h (TARGET_HAVE_TLS): New.
1270 * target.h (have_tls): New.
1271 * output.h (SECTION_TLS): New.
1272 * varasm.c (assemble_variable): TLS variables can't be common for now.
1273 (default_section_type_flags): Handle .tdata and .tbss.
1274 (default_elf_asm_named_section): Handle SECTION_TLS.
1275 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1277 * flags.h (flag_tls_default): Declare.
1278 * toplev.c (flag_tls_default): Define.
1279 (display_help): Display help for it.
1280 (decode_f_option): Set it.
1282 * doc/extend.texi (Thread-Local): New node describing language-level
1283 thread-local storage.
1284 * doc/invoke.texi (-ftls-model): Document.
1286 * fixinc/inclhack.def (thread_keyword): New.
1287 * fixinc/fixincl.x: Rebuild.
1289 2002-05-21 Jeffrey A Law <law@redhat.com>
1291 * optabs.c (expand_binop): For double-word integer multiplies,
1292 do not compute intermediate results into something that is
1293 not a register (such as a SUBREG or MEM).
1295 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1296 (ix86_sched_reorder): Make sure to initialize scheduling
1297 data even when there's only one insn in the ready queue.
1299 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1301 * genautomata.c (reserv_sets_hash_value): Fix a typo.
1303 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1305 * genautomata.c (reserv_sets_hash_value): Define hash_value as
1306 set_el_t. Transform the hash value into unsigned.
1307 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1308 (transform_3): Add code to process `(A,B)+(D,E)'.
1310 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
1312 * reload1.c (do_output_reload): Run delete_output_reload
1315 2002-05-21 Roger Sayle <roger@eyesopen.com>
1318 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1319 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
1320 (can_store_by_pieces): ... and here to limit the largest mode used.
1321 Add a comment to document this function.
1323 2002-05-21 Richard Henderson <rth@redhat.com>
1325 * flow.c (life_analysis): Fix test for deleted label.
1327 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
1329 * doc/tm.texi: Fix typo.
1331 2002-05-21 Zack Weinberg <zack@codesourcery.com>
1333 * c-common.c (c_common_init): Set options->unsigned_char from
1335 (cb_register_builtins): Define __STRICT_ANSI__ and
1336 __CHAR_UNSIGNED__ here...
1337 * cppinit.c (init_builtins): Not here.
1338 (cpp_create_reader): unsigned_char option defaults to 0, not
1339 !DEFAULT_SIGNED_CHAR.
1340 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1341 and -funsigned-char.
1343 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1344 * cpphash.c (_cpp_init_hashtable): Don't set it.
1345 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1346 directly. Clarify comment.
1348 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1350 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1351 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
1352 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
1353 BASIC_BLOCK (n_basic_blocks - 1).
1354 * cfganal.c (can_fallthru, flow_call_edges_add,
1355 flow_preorder_transversal_compute): Too.
1356 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1357 find_sub_basic_blocks): Too.
1358 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1359 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1360 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1361 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1362 * combine.c (this_basic_block): Type changed to basic_block.
1363 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1364 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1365 get_last_value, distribute_notes, distribute_links): Too.
1366 * final.c (compute_alignments): Too.
1367 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1368 * function.c (thread_prologue_and_epilogue_insns): Too.
1369 * gcse.c (compute_code_hoist_vbeinout): Too.
1370 * global.c (build_insn_chain): Too.
1371 * ifcvt.c (find_if_block, find_cond_trap): Too.
1372 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1373 * regmove.c (regmove_optimize): Too.
1374 * resource.c (find_basic_block): Too.
1375 * sched-ebb.c (schedule_ebbs): Too.
1376 * ssa-dce.c (find_control_dependence, find_pdom): Too.
1378 2002-05-21 Andreas Jaeger <aj@suse.de>
1380 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1382 2002-05-21 Richard Henderson <rth@redhat.com>
1384 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1385 unspec names, not numbers.
1387 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
1389 * doc/sourcebuild.texi: Mention snapshot-README and
1390 snapshot-index.html as needing updating for new front ends.
1392 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1394 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1395 disabling checking, and avoid multiple evaluation of RTX.
1397 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
1399 * bitmap.c (bitmap_find_bit): Return early if we have the correct
1402 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1404 * profile.c (gen_edge_profiler): Set alias set before the memory is
1407 2002-05-20 David S. Miller <davem@redhat.com>
1409 * cselib.c (max_value_regs): New.
1410 (cselib_lookup, cselib_invalidate_regno): Initialize it when
1411 adding new entries to the REG_VALUES table and we are dealing with
1413 (clear_table): Initialize it.
1414 (cselib_invalidate_regno): Use it to determine which hard
1415 registers to scan when mode is not VOIDmode.
1417 2002-05-20 Duraid Madina <duraid@fl.net.au>
1419 * tradcpp.c (fixup_newlines): Use old-style function header.
1421 2002-05-20 Krister Walfridsson <cato@df.lth.se>
1423 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1425 2002-05-20 H.J. Lu (hjl@gnu.org)
1427 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1429 * config/mips/mips.h (DFMODE_NAN): Defined.
1430 (SFMODE_NAN): Likewise.
1432 2002-05-20 Dale Johannesen <dalej@apple.com>
1434 * combine.c (cant_combine_insn_p): Back out my
1437 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1439 * params.c: Fix formatting.
1440 * params.h: Likewise.
1441 * predict.c: Likewise.
1442 * prefix.c: Likewise.
1443 * print-rtl.c: Likewise.
1444 * print-tree.c: Likewise.
1445 * profile.c: Likewise.
1447 2002-05-20 H.J. Lu (hjl@gnu.org)
1449 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1451 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
1453 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1454 switches straight on to the assembler, do not abbreviate them.
1455 * config/arm/elf.h (ASM_SPEC): As above.
1456 * config/arm/semi.h (ASM_SPEC): As above.
1457 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1458 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1459 -mcpu=xscale on to the assembler by default.
1460 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1462 2002-05-20 Richard Henderson <rth@redhat.com>
1464 * cse.c (canon_hash): Reorder do_not_record test. Always
1465 allow pic_offset_table_rtx.
1467 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
1469 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1470 (expand_binop): Ditto (3 times).
1472 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
1474 * Makefile.in (distclean): Remove QMTest stuff.
1475 (QMTEST_PATH): New variable.
1476 (QMTESTFLAGS): Likewise.
1477 (QMTESTRUNFLAGS): Likewise.
1479 (QMTEST_GPP_TESTS): Likewise.
1480 (QMTEST_DIR): Likewise.
1481 (QMTEST_DIR/context): New target.
1482 (qmtest-g++): Likeise.
1483 (qmtest-gui): Likewise.
1484 (QMTEST_DIR/gpp-expected.qmr): Likewise.
1486 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
1488 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1489 an altivec register if TARGET_ALTIVEC.
1491 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1492 to ALTIVEC_VECTOR_MODE.
1493 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1494 (rs6000_va_arg): Vectors may go in registers if they are not
1497 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
1499 * protoize.c: Fix formatting.
1501 2002-05-19 Richard Henderson <rth@redhat.com>
1503 * gensupport.c (init_include_reader): Merge into ...
1504 (process_include): ... here. Simplify composite path creation.
1505 Plug memory leaks. Fix file/line number tracking. Do not
1506 process_define_cond_exec. Return void.
1507 (process_rtx): Don't check process_include return value.
1509 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1511 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1513 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1514 traversing basic block chain.
1515 (create_basic_block_structure, create_basic_block): Declaration changed.
1516 (link_block, unlink_block): Declare.
1517 * cfg.c (entry_exit_blocks): Initialize new fields.
1518 (link_block, unlink_block): New.
1519 (expunge_block_nocompact): Unlink basic block.
1520 (dump_flow_info): Print prev_bb/next_bb fields.
1521 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1522 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1523 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1524 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1525 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1526 (verify_flow_info): Check that list agrees with numbering.
1528 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
1530 * c-common.c (preprocessing_asm): New macro.
1531 * c-lex.h (builtin_define, builtin_assert): Use pfile.
1535 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1536 (CPP_SPEC): Simplify.
1537 (TARGET_CPU_CPP_BUILTINS): Update.
1538 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1539 (CPP_SPEC): Simplify.
1540 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1541 (TARGET_OS_CPP_BUILTINS): Update.
1542 * osf.h (CPP_XFLOAT_SPEC): Kill.
1543 (TARGET_OS_CPP_BUILTINS): Update.
1544 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1545 * osf5.h (CPP_XFLOAT_SPEC): Kill.
1546 * vms.h (CPP_SUBTARGET_SPEC): Kill.
1547 (TARGET_OS_CPP_BUILTINS): Update.
1549 2002-05-19 Richard Henderson <rth@redhat.com>
1551 * varasm.c (default_binds_local_p): Fix typo.
1553 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1555 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1556 CONST_INT operand to the correct mode after adding 1 to it.
1558 2002-05-19 Mark Mitchell <mark@codesourcery.com>
1560 * config.gcc (powerpc-wrs-windiss*): New target.
1562 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1564 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1567 2002-05-18 Mark Mitchell <mark@codesourcery.com>
1569 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1571 * config.in: Regenerated.
1572 * configure: Regenerated.
1574 2002-05-19 Richard Henderson <rth@redhat.com>
1576 * target-def.h (TARGET_BINDS_LOCAL_P): New.
1577 * target.h (struct gcc_target): Move boolean fields to the end.
1579 * varasm.c (default_binds_local_p): New.
1580 * output.h: Declare it.
1582 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1583 * config/cris/cris.c (cris_encode_section_info): Likewise.
1584 * config/i386/i386.c (i386_encode_section_info): Likewise.
1585 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1586 * config/sh/sh.c (sh_encode_section_info): Likewise.
1588 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1589 (TARGET_BINDS_LOCAL_P): New.
1591 2002-05-19 Richard Henderson <rth@redhat.com>
1593 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1594 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1595 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1597 * toplev.c (display_help): Kill -a -ax help.
1599 * config/1750a/1750a.h, config/alpha/alpha.h,
1600 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1601 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1602 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1603 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1605 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1606 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1608 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1609 (ix86_output_function_block_profiler): Kill.
1610 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1611 (m68hc11_function_block_profiler): Kill.
1612 * config/m68hc11/m68hc11-protos.h: Update.
1613 * config/m88k/m88k.c (output_block_profiler): Kill.
1614 (output_function_block_profiler): Kill.
1615 * config/m88k/m88k-protos.h: Update.
1617 2002-05-19 Richard Henderson <rth@redhat.com>
1619 * system.h (STRIP_NAME_ENCODING): Poison it.
1620 * output.h (STRIP_NAME_ENCODING): Remove.
1621 (default_strip_name_encoding): Declare.
1622 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1623 * target.h (strip_name_encoding): New.
1624 * varasm.c (default_strip_name_encoding): New.
1626 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1627 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1628 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1629 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1630 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1631 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1632 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1633 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1634 config/v850/v850.h: Use the hook, not the macro.
1636 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1637 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1638 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1639 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1640 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1641 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1642 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1643 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1644 config/v850/v850.c, config/v850/v850.h:
1645 Move STRIP_NAME_ENCODING to out-of-line function and add
1646 TARGET_STRIP_NAME_ENCODING.
1648 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1649 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1650 with TARGET_STRIP_NAME_ENCODING referencing existing function;
1651 make function static.
1653 * xcoffout.c: Include target.h
1654 * Makefile.in (xcoffout.o): Update.
1656 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1657 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1658 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1659 reloc argument unused.
1660 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1662 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
1663 STRIP_NAME_ENCODING docs.
1665 2002-05-19 Andreas Jaeger <aj@suse.de>
1667 * gengenrtl.c: Add prototype for excluded_rtx.
1669 * real.h: Add prototype for exact_real_truncate.
1671 2002-05-18 Richard Henderson <rth@redhat.com>
1673 * system.h (ENCODE_SECTION_INFO): Poison it.
1674 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
1675 * target.h (encode_section_info): New.
1676 * varasm.c (make_decl_rtl, output_constant_def): Use it.
1677 * hooks.c (hook_tree_int_void): New.
1678 * hooks.h: Declare it.
1680 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1681 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
1682 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
1683 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
1684 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
1685 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
1686 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1687 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
1688 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1689 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1690 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
1691 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
1692 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
1693 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
1694 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
1695 referencing existing function. Make function static.
1697 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
1698 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
1699 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
1700 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
1701 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
1702 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
1703 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
1704 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
1705 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
1706 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
1707 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
1708 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
1709 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
1710 Move ENCODE_SECTION_INFO to out-of-line function and add
1711 TARGET_ENCODE_SECTION_INFO.
1713 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
1714 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1716 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
1718 (switch_to_section): Replace in_rdata case with in_readonly_data.
1720 * config/h8300/h8300.c (h8300_encode_label): Make static.
1721 * config/h8300/h8300-protos.h: Update.
1723 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
1724 from rs6000_encode_section_info; make static.
1725 (rs6000_xcoff_encode_section_info): New.
1727 * config/v850/v850.c (v850_encode_data_area): Make static.
1728 * config/v850/v850-protos.h: Update.
1730 * config/vax/vax.c: Include flags.h.
1731 (vms_select_section): Fix typo.
1733 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
1734 ENCODE_SECTION_INFO docs.
1736 2002-05-18 Richard Henderson <rth@redhat.com>
1738 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
1739 REGISTER_TARGET_PRAGMAS.
1740 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
1742 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
1744 2002-05-18 Richard Henderson <rth@redhat.com>
1746 * system.h (SELECT_RTX_SECTION): Poison.
1747 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
1748 * target.h (select_rtx_section): New.
1749 * varasm.c (output_constant_pool): Use it.
1750 (default_select_rtx_section, default_elf_select_rtx_section): New.
1751 * output.h: Declare them.
1753 * config/darwin.h (SELECT_RTX_SECTION): Move ...
1754 * config/darwin.c (machopic_select_rtx_section): ... here.
1755 * config/darwin-protos.h: Update.
1757 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
1758 * config/nextstep.c (machopic_select_rtx_section): ... here.
1759 (nextstep_select_section): Rename variable to avoid macro clash.
1760 * config/nextstep-protos.h: Update.
1762 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
1763 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
1764 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
1765 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
1766 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
1767 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
1768 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
1769 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
1770 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
1771 (SELECT_RTX_SECTION): Remove.
1773 * config/darwin.h, config/elfos.h, config/nextstep.h,
1774 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
1775 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
1776 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
1777 config/sparc/lynx.h, config/xtensa/xtensa.c
1778 (TARGET_ASM_SELECT_RTX_SECTION): New.
1780 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
1781 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
1782 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
1783 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
1784 (ia64_aix_select_rtx_section): New.
1785 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
1787 * config/mips/mips.c (mips_select_rtx_section): Make static.
1788 Support ELF SHF_MERGE features.
1789 * config/mips/mips-protos.h: Update.
1790 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
1791 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
1792 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
1793 make static, fall back to default_elf_select_rtx_section.
1794 * config/rs6000/rs6000-protos.h: Update.
1795 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
1796 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
1797 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
1798 * config/romp/romp.c (romp_select_rtx_section): New.
1799 * config/s390/s390.c (s390_select_rtx_section): New.
1800 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
1801 declarations before target macro definition.
1802 (xtensa_emit_call): Use static buffer.
1803 (xtensa_select_rtx_section): New.
1804 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
1805 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
1806 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
1808 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
1809 SELECT_RTX_SECTION docs.
1811 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1813 * i386.md (movsi/movdi): Fix template.
1814 (sse2 patterns): Set attributes consistently.
1816 * i386.md (pushqi2, ashrqi_*): Fix constraint.
1818 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
1820 * optabs.c (complex_part_zero_p): New.
1821 * (expand_cmplxdiv_straight): Use it.
1822 * (expand_cmplxdiv_wide): Ditto.
1823 * (expand_binop): Ditto.
1825 2002-05-18 Richard Henderson <rth@redhat.com>
1827 * final.c (HAVE_READONLY_DATA_SECTION): New.
1828 (shorten_branches): Use it instead of ifdefs.
1829 * varasm.c (enum in_section): Add in_readonly_data.
1830 (text_section, data_section): Tidy.
1831 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
1833 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
1834 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
1835 (READONLY_DATA_SECTION): Don't undef.
1837 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
1838 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
1839 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
1841 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
1842 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
1843 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
1844 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
1846 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
1847 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
1848 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1849 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
1850 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
1851 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
1852 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
1853 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
1854 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
1856 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
1857 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
1858 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
1859 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
1860 config/pa/pa64-hpux.h, config/sparc/litecoff.h
1861 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1863 * config/elfos.h, config/netware.h, config/svr3.h,
1864 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1865 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1866 config/h8300/h8300.h, config/i386/i386-interix.h,
1867 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1868 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
1870 * config/elfos.h, config/netware.h, config/svr3.h,
1871 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1872 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
1873 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1874 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
1876 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
1877 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
1878 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
1879 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
1880 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
1881 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
1882 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
1883 config/rs6000/sysv4.h, config/v850/v850.h
1884 (EXTRA_SECTIONS): Remove in_const/in_rdata.
1885 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
1887 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
1888 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
1889 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
1890 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
1891 * config/alpha/alpha.c (alpha_start_function): Likewise.
1892 (alpha_write_linkage): Likewise.
1893 * config/m32r/m32r.c (m32r_select_section): Likewise.
1894 * config/m88k/m88k.c (m88k_select_section): Likewise.
1895 * config/mips/mips.c (mips_select_rtx_section): Likewise.
1896 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
1897 (rs6000_elf_select_section): Likewise.
1898 * config/v850/v850.c (v850_select_section): Likewise.
1900 * config/1750a/1750a.h, config/i860/sysv3.h
1901 (READONLY_DATA_SECTION_ASM_OP): New.
1902 READONLY_DATA_SECTION_ASM_OP.
1903 * config/i386/interix.c, config/i386/winnt.c
1904 (i386_pe_unique_section): Always use .rdata prefix.
1905 * config/pa/som.h (readonly_data): Always switch to read-only section.
1906 (READONLY_DATA_SECTION): Predicate on flag_pic.
1907 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
1908 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
1909 (READONLY_DATA_SECTION): Update.
1911 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
1913 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
1914 is used without -Wformat.
1915 * c-common.h (warn_format_zero_length): Declare extern.
1916 * c-decl.c (warn_options): Add "format-zero-length".
1917 * c-format.c (warn_format_zero_length): Declare.
1918 (set_Wformat): Set warn_format_zero_length for -Wformat.
1919 (check_format_info): Only warn about zero-length formats if
1920 warn_format_zero_length is true. Include the format type
1921 name in the warning message.
1922 * doc/invoke.texi: Document -Wformat-zero-length.
1923 * testsuite/gcc.dg/format/zero-length-1.c: New test.
1925 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
1927 * timevar.c: Fix formatting.
1928 * tlink.c: Likewise.
1929 * toplev.c: Likewise.
1930 * tree-dump.c: Likewise.
1931 * tree-inline.c: Likewise.
1933 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
1935 * cppinit.c (cpp_post_options): If preprocessed, turn off
1936 traditional. If traditional, turn off column numbers.
1937 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
1938 * cpptrad.c (handle_newline): Update line_base.
1939 (skip_comment): Handle -Wcomment.
1941 2002-05-17 Zack Weinberg <zack@codesourcery.com>
1943 * cppinit.c (struct builtin): Remove unused fields.
1944 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
1945 (operator_array): New - was second half of builtin_array.
1946 (init_builtins): Simplify loop over builtin_array/operator_array.
1948 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
1950 * defaults.h (UNIQUE_SECTION): Remove.
1951 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
1953 2002-05-17 Richard Henderson <rth@redhat.com>
1955 * expr.c (init_expr_once): Don't use start/end_sequence.
1956 Use rtx_alloc instead of emit_insn.
1957 * toplev.c (lang_dependent_init): Run init_expr_once here ...
1958 (lang_independent_init): ... not here.
1960 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1962 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
1964 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1966 * config/avr/avr.c (avr_regs_to_save): New function. Also check
1967 for fixed registers, possibly used for global register variables.
1968 (initial_elimination_offset, avr_output_function_prologue,
1969 avr_output_function_epilogue): Move common code to avr_regs_to_save.
1971 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
1973 * Makefile.in: Update for cpptrad.c.
1974 * cpphash.h (struct cpp_buffer): New members for buffer
1976 (struct cpp_reader): New members for traditional output.
1977 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
1978 * cppinit.c (cpp_create_reader): Set trad_line.
1979 (cpp_destroy): Free trad_out_base if used.
1980 (cpp_read_main_file): Overlay an empty buffer if traditional.
1981 (cpp_finish_options): Don't do builtins.
1982 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
1983 (cpp_handle_option): Handle it.
1984 * cpplex.c (continue_after_nul): New.
1985 (_cpp_lex_direct): Use handle_nul.
1986 * cpplib.h (struct cpp_options): New traditional option.
1987 * cpptrad.c: New file.
1989 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
1991 * c-common.c (c_common_init_options): Use C89 for Objective-C,
1992 and set the options flag.
1993 * cppinit.c (lang_flags): Remove objc.
1994 (lang_defaults): Remove OBJC and OBJCXX.
1996 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
1997 (cpp_handle_option): Remove -+ and -lang-objc++.
1998 For ObjC, just set a flag.
1999 (print_help): Update.
2000 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2002 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2004 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2005 bootstrap with -mips3.
2007 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2009 * final.c: Fix formatting.
2010 * fix-header.c: Likewise.
2012 * fold-const.c: Likewise.
2013 * function.c: Likewise.
2015 2002-05-17 David S. Miller <davem@redhat.com>
2017 PR c/6689, PR optimization/6615
2018 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2019 and make it a pointer to rtx. Update comments.
2020 (update_equiv_regs): When scanning for equivalences, record
2021 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2022 it while making the equiv replacements.
2024 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2026 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2028 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2030 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2031 when encoding visibility into SYMBOL_REF_FLAG.
2033 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2035 * expr.c (force_operand): Fix reversed move.
2037 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2039 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2040 that can be ignored.
2042 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2044 * doc/install.texi (Final install): Recommend to install into a
2045 "clean" target directory.
2047 2002-05-17 Richard Henderson <rth@redhat.com>
2049 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2050 for code blocks. Tidy whitespace.
2052 2002-05-17 Richard Henderson <rth@redhat.com>
2054 * hooks.c (hook_tree_bool_false): New.
2055 * hooks.h: Declare it.
2056 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2057 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2058 * target.h (select_section, unique_section): New.
2059 (in_small_data_p): New.
2060 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2061 (variable_section, output_constant_def_contents): Likewise.
2062 (default_select_section, default_unique_section): New.
2063 (categorize_decl_for_section, default_elf_select_section): New.
2064 * output.h: Declare them.
2066 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2067 (TARGET_ASM_SELECT_SECTION): New.
2068 (SELECT_SECTION): Move ...
2069 * config/darwin.c (machopic_select_section): ... here.
2070 * config/darwin-protos.h: Update.
2072 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2073 (SELECT_SECTION): Move ...
2074 * config/nextstep.c (nextstep_select_section): ... here.
2075 * config/nextstep-protos.h: Update.
2077 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2078 (TARGET_ASM_SELECT_SECTION): New.
2079 * config/svr3.h (SELECT_SECTION): Remove.
2081 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2082 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2083 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2084 (alpha_encode_section_info): Use it.
2085 * config/alpha/alpha-protos.h: Update.
2086 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2087 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2088 (TARGET_ASM_SELECT_SECTION): New.
2089 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2091 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2092 (TARGET_ASM_UNIQUE_SECTION): New.
2094 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2095 (avr_unique_section): Rename from unique_section; make static.
2096 * config/avr/avr-protos.h: Update.
2097 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2099 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2101 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2102 (TARGET_ASM_UNIQUE_SECTION): New.
2103 * config/i386/i386-interix.h: Likewise.
2104 * config/i386/win32.h: Likewise.
2105 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2106 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2107 * config/i386/sco5.h (SELECT_SECTION): Remove.
2108 (TARGET_ASM_SELECT_SECTION): New.
2109 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2111 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2112 instead of SELECT_SECTION.
2113 * config/m68k/dpx2.h: Likewise.
2114 * config/rs6000/lynx.h: Likewise.
2116 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2117 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2118 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2119 (ia64_in_small_data_p): New.
2120 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2121 (ia64_aix_select_section, ia64_aix_unique_section): New.
2122 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2123 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2125 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2126 (TARGET_ASM_SELECT_SECTION): New.
2127 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2128 * config/m32r/m32r-protos.h: Update.
2130 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2131 (SELECT_SECTION): Move ...
2132 * config/m88k/m88k.c (m88k_select_section): ... here.
2134 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2135 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2136 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2137 (mcore_unique_section): Make static.
2138 * config/mcore/mcore-protos.h: Update.
2140 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2141 (TARGET_ASM_UNIQUE_SECTION): New.
2142 * config/mips/elf64.h: Likewise.
2143 * config/mips/iris6gld.h: Likewise.
2144 * config/mips/linux.h: Likewise.
2145 * config/mips/mips-protos.h: Update.
2146 * config/mips/mips.c (mips_select_section): Add align argument.
2147 * config/mips/mips.h (SELECT_SECTION): Remove.
2148 (TARGET_ASM_SELECT_SECTION): New.
2150 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2151 * config/mmix/mmix.c (mmix_select_section): Remove.
2152 (mmix_unique_section): Remove.
2153 * config/mmix/mmix-protos.h: Update.
2155 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2156 (SELECT_SECTION): Move ...
2157 * config/pa/pa.c (pa_select_section): ... here.
2158 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2160 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2161 from rs6000_select_section and make static.
2162 (rs6000_elf_unique_section): Similarly.
2163 (rs6000_xcoff_select_section): From xcoff.h.
2164 (rs6000_xcoff_unique_section): Likewise.
2165 * config/rs6000/rs6000-protos.h: Update.
2166 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2167 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2168 * config/rs6000/xcoff.h: Likewise.
2170 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2171 (SELECT_SECTION): Move ...
2172 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2174 * config/v850/v850.h (SELECT_SECTION): Move ...
2175 * config/v850/v850.c (v850_select_section): ... here.
2176 (TARGET_ASM_SELECT_SECTION): New.
2178 * config/vax/vms.h (SELECT_SECTION): Move ...
2179 * config/vax/vax.c (vms_select_section): ... here.
2180 (TARGET_ASM_SELECT_SECTION): New.
2182 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2183 for the target hooks.
2185 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2187 * config/arm/arm.c (emit_multi_reg_push): Do not set
2188 RTX_FRAME_RELATED_P on the SEQUENCE.
2190 2002-05-16 Richard Henderson <rth@redhat.com>
2192 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2193 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2195 2002-05-16 Richard Henderson <rth@redhat.com>
2197 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2199 * config/ia64/ia64.c (saveable_obstack): Do not declare.
2201 2002-05-16 Richard Henderson <rth@redhat.com>
2203 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2204 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2205 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2206 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2207 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2208 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2209 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2210 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2211 Revert "Basic block renumbering removal", and two followup patches.
2213 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2215 * lcm.c (optimize_mode_switching): Revert previous change.
2217 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2219 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2220 with only extant block numbers.
2222 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2224 * lcm.c (optimize_mode_switching): Fix typo.
2226 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2228 * flow.c (calculate_global_regs_live): Queue blocks in program order.
2230 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2232 * doc/install.texi (Configuration): Document PWDCMD.
2234 2002-05-16 Dale Johannesen <dalej@apple.com>
2236 * combine.c (cant_combine_insn_p): Reenable combinations
2237 involving hard regs unless CLASS_LIKELY_SPILLED_P.
2239 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2241 * c-common.c (cb_register_builtins): Handle more built-ins
2242 here rather than in gcc.c specs.
2243 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2244 (cpp_options): Pass -O flags even when only preprocessing.
2245 * toplev.c (set_fast_math_flags): New prototype.
2246 (fast_math_flags_set_p): New.
2247 (set_no_fast_math_flags): Remove.
2248 (decode_f_option): Update.
2249 * toplev.h (set_fast_math_flags): Update.
2250 (fast_math_flags_set_p): New.
2251 (set_no_fast_math_flags): Remove.
2253 * c4x/c4x.c (c4x_override_options): Update.
2255 2002-05-16 Zack Weinberg <zack@codesourcery.com>
2257 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2258 Default-define here.
2259 (builtin_define_with_value): Can now wrap the expansion in
2260 quotation marks if such is wanted.
2261 (cb_register_builtins): Update calls to builtin_define_with_value.
2262 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2264 (c_common_init): Set options->stdc_0_in_system_headers.
2265 * c-lex.h: Update prototype of builtin_define_with_value.
2266 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2267 and REGISTER_PREFIX.
2269 * cppinit.c (VERS, ULP, C, X): Kill.
2270 (builtin_array): Remove entries for __VERSION__,
2271 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2272 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
2274 (init_builtins): Kill off a bunch of now-dead code.
2275 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2276 -fno-leading-underscore.
2277 (cpp_handle_option): Remove code to set user_label_prefix.
2278 (cpp_post_options): Likewise.
2280 * cpplib.h (struct cpp_options): Remove user_label_prefix.
2281 (stdc_0_in_system_headers): New.
2282 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2283 stdc_0_in_system_headers) too to decide the value of __STDC__.
2285 * tradcpp.c (user_label_prefix): Kill.
2286 (main): Remove code handling -f(no-)leading-underscore.
2287 (initialize_builtins): Don't define __REGISTER_PREFIX__
2288 or __USER_LABEL_PREFIX__.
2289 (install_value): Wrap compound statement in dummy loop so the
2290 macro works properly in an if statement.
2293 2002-05-16 Janis Johnson <janis187@us.ibm.com>
2295 * loop.h (struct loop_info): Add member has_prefetch.
2296 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2297 (prescan_loop): Initialize has_prefetch.
2298 (struct prefetch_info): Change prefetch_in_loop and
2299 prefetch_before_loop from bit fields to ints.
2300 (emit_prefetch_instructions): Several small fixes.
2301 (check_dbra_loop): Don't reverse loop that uses prefetch.
2303 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2305 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2306 * configure.in: Likewise.
2307 * fixinc/check.tpl: Likewise.
2308 * fixinc/fixinc.dgux: Likewise.
2309 * fixinc/fixinc.svr4: Likewise.
2310 * fixinc/fixinc.winnt: Likewise.
2311 * fixinc/fixincl.sh: Likewise.
2312 * fixproto: Likewise.
2313 * configure: Regenerate.
2315 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2317 Basic block renumbering removal:
2318 * basic_block.h (struct basic_block_def): Renamed index to sindex,
2319 added prev_bb and next_bb fields.
2320 (n_basic_blocks): Renamed to num_basic_blocks.
2321 (last_basic_block): New, index of last basic block.
2322 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2323 traversing basic block chain.
2324 (BLOCK_NUM): index -> sindex.
2325 (create_basic_block_structure, create_basic_block): Declaration changed.
2326 (debug_num2bb): Declare.
2327 (expunge_block_nocompact): Declaration removed.
2328 (link_block, unlink_block, compact_blocks): Declare.
2329 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2330 * cfg.c (entry_exit_blocks): Initialize new fields.
2331 (clear_edges, alloc_block, expunge_block, cached_make_edge,
2332 redirect_edge_pred, dump_flow_info, dump_edge_info,
2333 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2334 free_aux_for_edges): Modified.
2335 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2336 (expunge_block_nocompact): Removed.
2337 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2338 find_unreachable_blocks, create_edge_list, print_edge_list,
2339 verify_edge_list, flow_edge_list_print, remove_fake_successors,
2340 remove_fake_edges, flow_reverse_top_sort_order_compute,
2341 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2342 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2343 flow_dfs_compute_reverse_execute): Modified.
2344 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2345 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2347 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2348 merge_blocks_move_predecessor_nojumps,
2349 merge_blocks_move_successor_nojumps, merge_blocks,
2350 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2351 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2352 * cfglayout.c (skip_insns_after_block, label_for_bb,
2353 record_effective_endpoints, scope_to_insns_finalize,
2354 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2355 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2356 cfg_layout_duplicate_bb): Modified.
2357 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2358 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2359 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2360 flow_loops_find, flow_loop_outside_edge_p): Modified.
2361 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2362 flow_delete_block, compute_bb_for_insn, split_block,
2363 try_redirect_by_replacing_jump, redirect_edge_and_branch,
2364 force_nonfallthru_and_redirect, tidy_fallthru_edge,
2365 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2366 commit_edge_insertions, commit_edge_insertions_watch_calls,
2367 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2368 purge_all_dead_edges): Modified.
2369 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2370 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2371 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2373 * conflict.c (conflict_graph_compute): Modified.
2374 * df.c (FOR_ALL_BBS): Removed.
2375 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2376 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2377 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2378 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2379 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2380 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2381 * final.c (compute_alignments, final_scan_insn): Modified.
2382 * flow.c (verify_local_live_at_start, update_life_info,
2383 update_life_info_in_dirty_blocks, free_basic_block_vars,
2384 delete_noop_moves, calculate_global_regs_live,
2385 initialize_uninitialized_subregs, allocate_bb_life_data,
2386 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2387 mark_used_reg, count_or_remove_death_notes): Modified.
2388 * function.c (thread_prologue_and_epilogue_insns): Modified.
2389 * gcse.c (struct null_pointer_info): Change typo of current_block
2391 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2392 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2393 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2394 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2395 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2396 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2397 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2398 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2399 pre_delete, one_pre_gcse_pass, compute_transpout,
2400 invalidate_nonnull_info, delete_null_pointer_checks_1,
2401 free_code_hoist_mem, compute_code_hoist_vbeinout,
2402 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2403 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2404 compute_store_table, build_store_vectors, insert_insn_start_bb,
2405 insert_store, replace_store_insn, free_store_memory, store_motion):
2407 * global.c (global_alloc, global_conflicts, mark_elimination,
2408 build_insn_chain): Modified.
2409 * graph.c (print_rtl_graph_with_bb): Modified.
2410 * haifa-sched.c (sched_init): Modified.
2411 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2412 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2413 if_convert): Modified.
2414 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2415 compute_insert_delete, pre_edge_lcm, compute_available,
2416 compute_farthest, compute_nearerout, compute_rev_insert_delete,
2417 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2419 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2420 * loop.c (loop_dump_aux): Modified.
2421 * predict.c (combine_predictions_for_insn, estimate_probability,
2422 last_basic_block_p, process_note_prediction, process_note_predictions,
2423 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2424 expensive_function_p, estimate_bb_frequencies,
2425 compute_function_frequency): Modified.
2426 * print-rtl.c (print_rtx): Modified.
2427 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2428 get_exec_counts, compute_branch_probabilities, compute_checksum,
2429 branch_prob, find_spanning_tree): Modified.
2430 * recog.c (split_all_insns, peephole2_optimize): Modified.
2431 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2432 convert_regs_1, convert_regs_2, convert_regs): Modified.
2433 * regclass.c (scan_one_insn, regclass): Modified.
2434 * regmove.c (mark_flags_life_zones, regmove_optimize,
2435 combine_stack_adjustments): Modified.
2436 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2437 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2438 * reorg.c (dbr_schedule): Modified.
2439 * resource.c (find_basic_block, init_resource_info): Modified.
2440 * sbitmap.c (sbitmap_intersection_of_succs,
2441 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2442 sbitmap_union_of_preds): Modified.
2443 * sched-deps.c (init_dependency_caches): Modified.
2444 * sched-ebb.c (schedule_ebbs): Modified.
2445 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2446 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2447 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2448 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2449 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2450 ssa_const_prop): Modified.
2451 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2452 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2453 * ssa.c (remove_phi_alternative, find_evaluations,
2454 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2455 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2456 make_regs_equivalent_over_bad_edges,
2457 make_equivalent_phi_alternatives_equival,
2458 compute_conservative_reg_partition,
2459 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2460 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2463 2002-05-16 Mark Mitchell <mark@codesourcery.com>
2465 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2467 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2469 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2470 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2471 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2472 calling CONSTANT_POOL_ADDRESS_P.
2473 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2474 to decide whether to define __arm__ or __thumb.
2475 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2476 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2478 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2480 * config/arc/arc.h (CPP_PREDEFINES): Remove.
2482 (TARGET_CPU_CPP_BUILTINS): New.
2484 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2486 * cpphash.h (cpp_macro): Move here, and make expansion a union.
2487 * cppmacro.c (cpp_macro): Remove.
2488 (enter_macro_context, replace_args, warn_of_redefinition,
2489 _cpp_create_definition, cpp_macro_definition): Update.
2491 2002-05-16 Jason Merrill <jason@redhat.com>
2493 * config/mips/mips.c (mips_output_external): Don't do sdata
2494 optimization for a variable with DECL_COMDAT set.
2496 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2498 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2499 Cleanups for accepting modifiers on pointers.
2500 Fix predicate typos.
2501 Allow long pointers as well as int pointers.
2503 2002-05-15 Richard Henderson <rth@redhat.com>
2505 * varasm.c (merge_weak): Remove special case for extern and common.
2507 2002-05-15 Matt Hiller <hiller@redhat.com>
2509 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2511 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2512 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2513 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2514 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2515 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2516 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2518 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2520 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2522 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2524 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2525 ("altivec_mfvscr"): Read from VSCR.
2527 Add vscr sets for the following insns: altivec_vctuxs,
2528 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2529 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2530 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2531 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2532 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2533 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2534 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2535 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2536 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2537 altivec_vsum2sws, altivec_vsumsws.
2539 * config/rs6000/rs6000.h: Add VSCR fixed register.
2540 (CALL_REALLY_USED_REGISTERS): Add vscr.
2541 (CALL_USED_REGISTERS): Same.
2542 (FIXED_REGISTERS): Same.
2543 (REG_ALLOC_ORDER): Same.
2544 (reg_class): Add VSCR_REGS.
2545 (REG_CLASS_NAMES): Same.
2546 (REG_CLASS_CONTENTS): Same.
2548 (REGISTER_NAMES): Add vscr.
2549 (DEBUG_REGISTER_NAMES): Same.
2550 (ADDITIONAL_REGISTER_NAMES): Same.
2551 (FIRST_PSEUDO_REGISTER): Increment.
2552 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2554 2002-05-15 Jakub Jelinek <jakub@redhat.com>
2556 * fold-const.c (fold): Fix a typo.
2558 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
2560 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2561 comparison against the highest or lowest integer value before
2562 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2563 transformation and that of an unsigned comparison against 0
2566 2002-05-15 Richard Henderson <rth@redhat.com>
2568 * varasm.c (merge_weak): Error for any weakening after definition.
2569 Adjust weakening after use warning to catch more cases.
2570 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2571 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2573 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2575 * invoke.texi (-malign-double): Re-add lost warning.
2577 * i386-protos.h (x86_output_mi_thunk): Declare.
2578 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2579 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2581 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2582 when flag_asynchronous_unwind_tables is set.
2584 * flags.h (flag_reorder_functions): Declare.
2585 * function.c (prepare_function_start): Initialize frequnecy.
2586 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2587 * Makefile.in (predict.o): Add dependency on target.h and params.h
2588 * defaults.h (HOT_TEXT_SECTION_NAME,
2589 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2590 * predict.c (choose_function_section): New function.
2591 (estimate_bb_frequencies): Use it.
2592 * toplev.c (flag_reorder_functions): New global variable.
2593 (lang_independent_options): New.
2594 (parse_options_and_default_flags): Set.
2595 * varasm.c (assemble_start_function): Bypass functdion alignment
2596 for never executed functions.
2597 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2598 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2599 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2602 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
2604 * predict.c: Inlude profile.h
2605 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2606 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2607 Use the information about maximal counter in the program.
2609 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
2611 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2612 probably_never_executed_bb_p): New functions.
2613 * cfgcleanup.c (outgoing_edges_match): Use them.
2614 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2615 (maybe_hot_bb_p, probably_cold_bb_p,
2616 probably_never_executed_bb_p): New functions.
2618 * function.h (function): Add new field function_frequency.
2619 * predict.c (compute_function_frequency): New function.
2620 (estimate_probability): Call it.
2622 2002-03-09 Jakub Jelinek <jakub@redhat.com>
2624 PR optimization/5172, optimization/5200
2625 * gcse.c (gcse_main): Disable store_motion.
2627 2002-05-14 Zack Weinberg <zack@codesourcery.com>
2629 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2630 (c_common_nodes_and_builtins): Use it.
2631 (builtin_define_with_value): New function.
2632 (cb_register_builtins): Define __SIZE_TYPE__,
2633 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2634 using builtin_define_with_value. Use consistent notation when
2635 defining __GXX_WEAK__.
2636 (WCHAR_TYPE_SIZE): Don't redefine.
2637 (combine_strings): Don't use WCHAR_TYPE_SIZE.
2639 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2640 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2641 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2642 * tradcpp.c (initialize_builtins): Likewise.
2643 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2645 * c-lex.h (builtin_define_with_value): Prototype.
2646 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2647 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2648 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2650 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2651 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2652 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2653 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2654 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2655 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2656 config/sparc/sol2-bi.h, config/sparc/sparc.h:
2657 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
2658 to __SIZE_TYPE__ etc from all spec strings. When this makes
2659 extra specs empty, delete them.
2661 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
2663 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
2664 for PA8000 or generating dwarf2 call frame information.
2665 (output_call): Remove DO_FRAME_NOTES check from return pointer
2667 (following_call): Return 0 when scheduling for PA8000 or generating
2668 dwarf2 call frame information. Revise comment.
2670 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2673 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
2674 and __IEEE_FP_INEXACT as appropriate.
2675 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
2676 (CPP_SPEC): Remove ieee defines.
2677 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
2679 2002-05-14 Richard Henderson <rth@redhat.com>
2681 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
2682 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
2684 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2686 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
2688 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
2689 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
2690 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
2691 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
2692 (EXTRA_SPECS): Update.
2693 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2694 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
2695 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
2696 define TARGET_OS_CPP_BUILTINS if necessary.
2698 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2700 * gcc.c (cpp_options): Must pass -m* and -f* options
2701 to the front end even when only preprocessing.
2702 (cc1_options): Remove redundant -lang-c.
2703 * tradcpp.c (main): Ignore -m options.
2705 * lang-specs.h: Similarly.
2707 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
2709 * genautomata.c (transform_3): Add code for transformation
2710 `(A,B,...)+C -> A+C,B,...'.
2712 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
2714 * final.c (end_final): Do not output profile_arcs constructor, when
2715 no functions are instrumented.
2717 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
2719 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
2721 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2723 * doc/install.texi: Remove special markup originally required for
2724 HTML generation with texi2html.
2726 2002-05-14 Andreas Schwab <schwab@suse.de>
2728 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
2730 (UNIQUE_SECTION): Define to get small data correctly.
2732 * varasm.c (resolve_unique_section): Add third parameter
2733 flag_function_or_data_sections and use it instead of
2734 flag_function_sections.
2735 (assemble_start_function): Pass flag_function_sections.
2736 (asm_emit_uninitialised): Pass flag_data_sections.
2737 (assemble_variable): Likewise.
2739 2002-05-14 Richard Henderson <rth@redhat.com>
2741 * config/i386/i386.md: Use define_constants for unspec numbers.
2742 * config/i386/i386.c: Likewise.
2744 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2746 * doc/contrib.texi: Update my entry.
2748 2002-05-13 Mark Mitchell <mark@codesourcery.com>
2750 * fixinc/inclhack.def (winidss_valist): Limit applicability.
2751 * fixinc/fixincl.x: Regenerated.
2752 * fixinc/tests/base/math.h: Update.
2753 * fixinc/tests/base/testing.h: Likewise.
2755 2002-05-13 Zack Weinberg <zack@codesourcery.com>
2757 * genattr.c (gen_attr): Don't emit a comma after the last
2760 2002-05-13 Richard Henderson <rth@redhat.com>
2762 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
2764 * recog.c (peephole2_optimize): Likewise.
2766 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
2768 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
2771 2002-05-13 Jeffrey A Law (law@redhat.com)
2773 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
2774 Update prototype and callers.
2775 (propagate_one_insn): Stack pointer adjustments kill MEMs on
2776 the mem_set_list which reference the stack pointer, as do
2777 calls to constant functions as they may clobber outgoing
2780 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
2782 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2783 (ia32_multipass_dfa_lookahead): New function.
2785 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2787 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
2788 (translate_options): Remove 'V'.
2789 (process_command): Similarly.
2791 * invoke.texi: Remove documentation of 'V'.
2793 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2795 * config/s390/linux.h: Revert 2002-04-22 changes.
2797 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
2799 * config/fr30/fr30.md: Only allow splits of immediate loads
2800 if the destination is a register.
2802 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2804 * Makefile.in (c-common.o, cppinit.o): Update.
2805 * c-common.c: Include except.h.
2806 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
2807 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
2808 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
2809 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
2810 CPP_PREDEFINES): Handle here.
2812 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
2813 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
2814 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
2815 TARGET_OS_CPP_BUILTINS.
2816 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
2817 (CPP_SPEC, EXTRA_SPECS): Update.
2818 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
2819 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
2820 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
2821 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
2822 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
2824 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
2825 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
2827 2002-05-12 Zack Weinberg <zack@codesourcery.com>
2829 * emit-rtl.c (global_rtl): Update comment.
2830 (const_double_htab, const_double_htab_hash,
2831 const_double_htab_hash, lookup_const_double): New.
2832 (const_int_htab_hash, const_int_htab_eq): Remove const
2833 qualifiers, which cause tons of warnings with RTL checking on.
2834 (gen_rtx_CONST_DOUBLE): Deleted.
2835 (const_double_from_real_value): New function - bears some
2836 resemblance to the former immed_real_const_1.
2837 (immed_double_const): Moved here from varasm.c and
2839 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
2840 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
2841 (gen_rtx): Use immed_double_const.
2842 (init_emit_once): Initialize the const_double_htab. Use
2843 REAL_VALUE_FROM_INT where possible. Can now use
2844 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
2845 * varasm.c (struct varasm_status): Remove x_const_double_chain.
2846 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
2847 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
2848 (init_varasm_status, mark_varasm_status): Don't touch
2849 x_const_double_chain.
2851 * output.h: Delete prototype for clear_const_double_mem.
2852 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
2853 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
2854 const_double_from_real_value, not immed_real_const_1, and use
2855 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
2857 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
2858 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
2859 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
2860 (gen_rtx_REG): Second arg is unsigned.
2862 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
2863 (excluded_rtx): New, return true for CONST_DOUBLE.
2864 (genmacro): Write nothing for excluded codes.
2865 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
2866 * expr.c (expand_expr): Likewise.
2867 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
2869 * toplev.c (rest_of_compilation): Don't call
2870 clear_const_double_mem.
2872 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
2873 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
2874 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
2875 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
2876 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
2877 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
2878 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
2879 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
2881 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2883 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
2885 2002-05-12 Tom Tromey <tromey@redhat.com>
2887 * tree.h (copy_node): Don't mention TREE_PERMANENT.
2889 2002-05-12 Zack Weinberg <zack@codesourcery.com>
2891 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
2892 (scan_comma_elt): New function. Accepts whitespace in comma lists.
2893 * gensupport.h: Prototype new routines.
2894 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
2896 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
2897 (next_comma_elt): Use scan_comma_elt.
2899 * config/i386/i386.md: Use new attribute notation to break up
2900 long lines in define_attr forms.
2902 2002-05-12 Richard Henderson <rth@redhat.com>
2904 * expr.c (compress_float_constant): New.
2905 (emit_move_insn): Use it.
2906 (float_extend_from_mem): New.
2907 (init_expr_once): Initialize it.
2908 * real.c (exact_real_truncate): New.
2910 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
2911 dropped into memory; penalize for size.
2912 (RTX_COSTS): FLOAT_EXTEND is free.
2913 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
2914 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
2916 2002-05-12 Richard Henderson <rth@redhat.com>
2918 * profile.h (profile_info): Add missing extern to declaration.
2919 * profile.c (profile_info): Define it.
2921 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2923 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
2924 used for DImode and TImode.
2926 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
2928 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
2931 2002-05-11 Zack Weinberg <zack@codesourcery.com>
2933 * config/rs6000/rs6000.c (rs6000_default_long_calls,
2934 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
2935 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
2936 (rs6000_override_options): Handle -m(no-)longcall.
2937 (init_cumulative_args, output_mi_thunk): Check for both
2938 longcall and shortcall attributes on the function.
2939 (rs6000_attribute_table): Add "shortcall".
2940 (rs6000_handle_longcall_attribute): Update comment.
2941 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
2942 altivec_expand_ternop_builtin): Add default clauses to switches
2943 to silence warnings.
2945 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
2946 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
2947 (TARGET_OPTIONS): Add longcall and no-longcall.
2949 * config/rs6000/rs6000.md (call_nonlocal_sysv,
2950 call_value_nonlocal_sysv): Split by alternatives. One pair
2951 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
2952 the call cookie. The other pair accepts only LR/CTR and has
2955 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
2956 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
2958 * config/rs6000/rs6000-c.c: New file.
2959 * config/rs6000/t-rs6000-c-rule: New file.
2960 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
2961 Prototype rs6000_pragma_longcall.
2963 * doc/extend.texi: Document shortcall attribute.
2964 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
2966 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2968 * reorg.c (dbr_schedule): Remove unnecessary test.
2970 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
2972 * i386.md (testsi to testqi spliters): New.
2974 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
2976 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
2978 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
2980 * basic-block.h: New flag EDGE_CAN_FALLTHRU
2981 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
2982 that can be made fallthru.
2984 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
2986 * cfglayout.c (cleanup_unconditional_jumps): New static function.
2987 (cfg_layout_initialize): Use it.
2989 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
2991 * config/avr/avr.c (avr_mcu_types): Update supported devices.
2992 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2993 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2995 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2997 * dbxout.c: Fix formatting.
2998 * dependence.c: Likewise.
3000 * diagnostic.c: Likewise.
3001 * doloop.c: Likewise.
3002 * dominance.c: Likewise.
3003 * doschk.c: Likewise.
3004 * dwarf2asm.c: Likewise.
3005 * dwarf2out.c: Likewise.
3006 * dwarfout.c: Likewise.
3008 2002-05-10 Richard Henderson <rth@redhat.com>
3010 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3011 Convert integers constants as needed. Replace "nwords" field with
3013 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3014 * function.h: Fix typo in comment.
3015 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3017 2002-05-10 Roger Sayle <roger@eyesopen.com>
3019 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3020 into the equivalent (signed char)c > 0.
3022 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3024 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3025 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3026 (struct prefetch_info): Fix spelling of member bytes_accessed.
3027 (emit_prefetch_instructions): Make dump messages more regular;
3028 restructure code to add more dump messages; use new macros for
3029 heuristics. (There are no code generation changes in any of this).
3031 2002-05-10 David S. Miller <davem@redhat.com>
3033 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3034 (struct rtx_def): Update unchanging flag comment.
3035 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3036 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3037 to be handled to INSN too.
3038 (dbr_schedule): Likewise.
3039 * resource.c (next_insn_no_annul): Likewise.
3041 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3044 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3046 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3047 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3048 (possibly) work around broken /bin/sh.
3050 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3052 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3053 . as N64/N32 libgcc_s.so subdirs.
3055 2002-05-10 David S. Miller <davem@redhat.com>
3057 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3059 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3061 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3063 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3064 * doc/rtl.texi: Document these macros more accurately.
3065 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3066 JUMP_INSNs and CALL_INSNs.
3067 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3068 or INSN_FROM_TARGET_P if the code is appropriate.
3070 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3072 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3073 before using SYMBOL_REF_FLAG (addr).
3075 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3076 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3077 Make non-static. Update all callers.
3078 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3079 New insns to clear/set/test a single bit in I/O address space.
3081 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3083 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3085 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3087 * Makefile.in: Update.
3088 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3089 builtin_define_std): New.
3090 (c_common_init): Register CPP builtins callback.
3091 * c-common.h (flag_iso, flag_undef): New.
3092 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3093 * c-lex.c: Don't include target.h.
3094 (cb_register_builtins): Move to c-common.c.
3095 (init_c_lex): Don't register hook here.
3096 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3097 (cpp_define, cpp_assert): Remove.
3098 * gcc.c (cc1_options): Pass -undef to front end.
3099 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3100 (TARGET_INITIALIZER): Update.
3101 * target.h (struct cpp_reader): Don't predeclare.
3102 (struct gcc_target): Remove cpp builtin hook.
3103 * tree.c (default_register_cpp_builtins): Remove.
3107 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3109 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3111 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3113 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3114 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3116 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3118 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3119 * config/sparc/libgcc-sparc-glibc.ver: New file.
3120 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3121 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3123 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3126 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3127 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3128 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3130 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3131 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3132 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3133 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3135 2002-05-09 Richard Henderson <rth@redhat.com>
3137 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3138 * config/ia64/ia64.c: Likewise.
3140 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3142 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3143 (save_restore_insns): Likewise.
3144 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3145 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3147 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3149 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3150 * i386.md: Move scheduling information into new files.
3152 * i386.md (type attribute): Add "rotate" for rotate insns.
3153 (rotate insns): Set type to "rotate".
3154 (various attributes and function units): Treat rotate like shift.
3155 (pent_pair attribute): Only rotates by one bit position are
3157 (sbb insns): Explicitly set pent_pair attribute on a couple
3158 that were missing it.
3160 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3162 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3163 make sure that buffer starts on odd word address.
3164 (sh_va_arg): Skip odd fp registers when reading a double precision
3167 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3169 * tree.h (preserve_data, object_permanent_p, type_precision):
3172 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3174 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3175 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3177 * cpp.texi: Update for removal of obsolete features.
3179 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3180 Jeffrey A Law (law@redhat.com)
3182 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3183 the DFA interface for Pentium processors.
3184 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3185 (attr_pent_pair, ix86_pent_find_pair): Remove.
3186 (ix86_sched_reorder_pentium): Remove.
3187 (ix86_sched_reorder): Remove reordering for Pentium.
3188 * i386.md (Pentium scheduling): Rewrite using DFA description.
3190 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3192 * cfganal.c (can_fallthru): Fix fast path.
3193 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3194 with edges to the next block.
3196 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3197 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3199 * final.c (end_final): Use C trees to output data structures for profiling.
3201 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3202 (profile.o): New dependency profile.h
3203 (final.o): New dependency profile.h
3204 * profile.h: New file. New global structure profile_info.
3205 * final.h (count_edges_instrumented_now): Declare.
3206 (current_function_cfg_checksum): Declare.
3207 (function_list): New structure.
3208 (functions_head, functions_tail): New static variables.
3209 (end_final): Emits more data, removed some -ax stuff.
3210 (final): Stores function names and chcksums.
3211 * gcov-io.h (__write_gcov_string): New function.
3212 (__read_gcov_string): New function.
3213 * gcov.c (read_profile): New function.
3214 (create_program_flow_graph): Uses read_profile instead of reading
3216 (read_files): Removed da_file checking, it's done by read_profile now.
3217 * libgcc2.c (bb_function_info): New structure.
3218 (bb): New field in structure, removed some -ax stuff.
3219 (__bb_exit_func): Changed structure of da_file.
3220 * profile.c (count_edges_instrumented_now): New global variable.
3221 (current_function_cfg_checksum): New global variable.
3222 (max_counter_in_program): New global variable.
3223 (get_exec_counts): New function.
3224 (compute_checksum): New function.
3225 (instrument_edges): Sets count_edges_instrumented_now.
3226 (compute_branch_probabilities): Uses get_exec_counts instead of
3228 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3229 (init_branch_prob): Removed da_file checking, done in get_exec_counts
3231 (end_branch_prob): Removed da_file checking, done in get_exec_counts
3233 * gcov.texi: Updated information about gcov file format.
3235 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3237 * sbitmap.c: Fix formatting.
3239 * scan-decls.c: Likewise.
3240 * sched-deps.c: Likewise.
3241 * sched-ebb.c: Likewise.
3242 * sched-rgn.c: Likewise.
3243 * sched-vis.c: Likewise.
3244 * sdbout.c: Likewise.
3245 * sibcall.c: Likewise.
3246 * simplify-rtx.c: Likewise.
3248 * ssa-ccp.c: Likewise.
3249 * ssa-dce.c: Likewise.
3251 * stor-layout.c: Likewise.
3252 * stringpool.c: Likewise.
3254 2002-05-09 David S. Miller <davem@redhat.com>
3256 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3258 2002-05-07 David S. Miller <davem@redhat.com>
3260 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3261 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3262 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3263 library implementation clobbers the output before the inputs
3264 are fully consumed, use stack temporary for the output.
3266 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
3268 * config/netbsd.h (CPP_SPEC): Remove.
3269 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3270 * config/i386/netbsd.h (CPP_SPEC): Define.
3271 * config/ns32k/netbsd.h (CPP_SPEC): Define.
3272 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3273 * config/sparc/netbsd.h (CPP_SPEC): Define.
3274 * config/vax/netbsd.h (CPP_SPEC): Define.
3276 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3278 * read-rtl.c: Fix formatting.
3280 * recog.c: Likewise.
3281 * regclass.c: Likewise.
3282 * regmove.c: Likewise.
3283 * reg-stack.c: Likewise.
3284 * reload1.c: Likewise.
3285 * reload.c: Likewise.
3286 * resource.c: Likewise.
3287 * rtlanal.c: Likewise.
3289 * rtl-error.c: Likewise.
3291 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3293 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3294 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3296 2002-05-08 Bernd Schmidt <bernds@redhat.com>
3298 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3299 use __SSE2__ macro instead.
3300 * config/i386/xmmintrin.h: Likewise.
3302 2002-05-08 Janis Johnson <janis187@us.ibm.com>
3304 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3305 and use it in all invocations of these macros. Clean up comments.
3306 * rtl.c (rtl_check_failed_flag): Add an argument for the name
3307 of the flag access macro whose check failed.
3308 * doc/rtl.texi (Flags): Document additional flag uses.
3310 2002-05-08 Robert Spier <rspier@pobox.com>
3311 Neil Booth <neil@daikokuya.demon.co.uk>
3313 PR preprocessor/6521
3314 * cppfiles.c (handle_missing_header): Don't do anything
3315 different for <> includes.
3317 * cppopts.texi: Update documentation for -MG.
3319 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
3321 * cpplex.c (cpp_interpret_charconst): Truncate as well as
3324 * cpp.texi: Clarify multichar charconst valuation.
3326 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3328 * doc/invoke.texi: Document -mwindiss option.
3330 2002-05-08 Jason Merrill <jason@redhat.com>
3332 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3334 * dwarf2out.c (gen_type_die): Abort on broken recursion.
3337 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3340 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
3342 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3343 little-endian multilibs to override arm/thumb multilibs.
3344 Do not build hardware floating point multilibs, nor apcs-26
3345 multilibs for the Thumb.
3347 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3350 * varasm.c (mark_weak): New function.
3351 (merge_weak): Use it. Do not call declare_weak.
3352 (declare_weak): Use merge_weak.
3354 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3356 * cse.c (dead_libcall_p): Update counts.
3357 (delete_trivially_dead_insns): Update call of dead_libcall_p.
3359 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3361 * cfglayout.c (function_tail_eff_head): Rename to ...
3362 (function_footer): ... this one.
3363 (unlink_insn_chain): New functions.
3364 (label_for_bb): Only call block_label and emit debug message.
3365 (record_effective_endpoints): Actually unlink the headers and footers.
3366 (fixup_reorder_cahin): Re-insert the unlinked sequences.
3367 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3368 * cfglayout.h (struct reorder_block_def): New fields footer/header;
3369 remove eff_head/eff_end.
3370 * rtl.h (set_first_insn): Declare.
3371 * emit-rtl.c (set_first_insn): New function.
3373 * cfglayout.c (fixup_reorder_chain): Dump duplicated
3374 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3375 cfg_layout_duplicate_bb): New global function.
3376 (duplicate_insn_chain): New static function.
3377 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3378 cfg_layout_duplicate_bb): Declare.
3379 (struct reorder_block_def): Add "original" field.
3380 * emit-rtl.c (emit_copy_of_insn_after): New function.
3381 * rtl.h (emit_copy_of_insn_after): Declare.
3383 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3384 (fixup_reorder_chain): properly handle edges to exit block.
3386 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3387 Jan Hubicka <jh@suse.cz>
3389 * basic-block.h (note_prediction_to_br_prob): declare.
3390 * c-semantics.c: Inlucde predit.h
3391 (expand_stmt): predict GOTO_STMT as not taken.
3392 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3393 (cleanup_cfg): Do not free tail_recursion_list.
3394 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3395 (flow_delete_block): Kill predictions past end of basic block.
3396 * output.h (delete_unreachable_blocks): Declare.
3397 * predict.c (predicted_by_p, process_note_predictions,
3398 process_note_prediction, last_block_p): New function.
3399 (estimate_probability): Bypass loop on PRED_CONTINUE;
3400 do not handle noreturn heuristics; kill PRED_RETURN; add
3402 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3403 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3404 * predict.h (IS_TAKEN): New constant.
3405 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3406 * rtl.c (NOTE_INSN_PREDICTION): New.
3407 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3409 (insn_note): add NOTE_INSN_PREDICTION.
3410 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3411 CFG; free tail_recursion_label_list.
3412 * stmt.c: Include predict.h;
3413 (return_prediction): New.
3414 (expand_value_return): Use it.
3415 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3417 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
3419 * config/mips/mips.md: Name the unspecs with define_constant.
3420 (*HILO_delay): Rename to 'hilo_delay' (no star).
3421 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3422 (reload_outdi, reload_outsi): Likewise.
3424 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3426 * toplev.c: Fix formatting.
3428 2002-05-07 Janis Johnson <janis187@us.ibm.com>
3430 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3431 * configure.in (ac_rtlflag_checking): New.
3432 * doc/install.texi (--enable-checking): Document RTL flag checking.
3434 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3436 * c-common.c (c_common_init): Set options->unsigned_wchar.
3437 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3438 group target dependencies.
3439 (init_builtins, cpp_handle_option): Update.
3440 * cpplex.c (cpp_interpret_charconst): Update.
3441 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3442 signed_char to unsigned_char, group target dependencies.
3443 * defaults.h (WCHAR_UNSIGNED): Remove.
3444 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3446 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3447 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3448 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3449 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3450 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3452 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3454 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3456 * fixinc/inclhack.def (windiss_math1): New fix.
3457 (windiss_math2): Likewise.
3458 (windiss_valist): Likewise.
3459 * fixinc/fixincl.x: Regenerated.
3461 2002-05-07 Andreas Jaeger <aj@suse.de>
3463 * genautomata.c (output_internal_min_issue_delay_func): Add
3464 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3465 (output_internal_trans_func): Likewise.
3467 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
3469 * pa.c (hppa_profile_hook): Use force_reg to get the address
3470 of the profile hook into an appropriate pseudo register.
3472 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3474 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3475 (LINK_START_SPEC): Handle it.
3476 (LINK_OS_SPEC): Likewise.
3477 (CPP_SPEC): Likewise.
3478 (STARTFILE_SPEC): Likewise.
3479 (LIB_SPEC): Likewise.
3480 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
3482 (CRTSAVRES_DEFAULT_SPEC): New macro.
3483 (LIB_WINDISS_SPEC): New macro.
3484 (CPP_OS_WINDISS_SPEC): Likewise.
3485 (STARTFILE_WINDISS_SPEC): Likewise.
3486 (ENDFILE_WINDISS_SPEC): Likewise.
3487 (LINK_START_WINDISS_SPEC): Likewise.
3488 (LINK_OS_WINDISS_SPEC): Likewise.
3489 * config/rs6000/windiss.h: New file.
3491 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
3493 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3495 2002-05-06 David S. Miller <davem@redhat.com>
3497 * config/sparc/sparc.md (shift insns): Do not mask off
3498 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3501 2002-05-06 Richard Henderson <rth@redhat.com>
3504 * expr.c (highest_pow2_factor_for_type): New.
3505 (expand_assignment): Use it.
3507 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
3509 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3511 ("altivec_mfvscr"): Same.
3513 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3515 * rtl.h (struct rtx_def): Update comments.
3516 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
3517 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
3518 RTL_FLAG_CHECK macros with list of expected RTL codes.
3519 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3520 (rtl_check_failed_flag): New.
3521 * reload1.c (reload): Use REG macro before changing rtx to MEM.
3522 (reload_cse_noop_set_p): Check rtx code before using access macro.
3523 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3524 before using access macro.
3526 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3528 * doc/rtl.texi (Flags): Update to reflect current usage.
3530 2002-05-06 Roger Sayle <roger@eyesopen.com>
3533 * fold-const.c (sign_bit_p): New function.
3534 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3535 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3536 Reapply fold when converting (A & C) == C into (A & C) != 0.
3537 (fold_binary_op_with_conditional_arg): Fix typo in comment.
3539 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3541 * c-common.c (warn_multichar): New.
3542 (c_common_init): Set CPP's warn_multichar.
3543 * c-common.h (warn_multichar): New.
3544 * c-decl.c (warn_multichar): Remove.
3545 * c-lex.c (lex_charconst): Update.
3546 * c-tree.h (warn_multichar): Remove.
3547 * cppexp.c (eval_token): Sign-extend charconst value.
3548 * cppinit.c (cpp_create_reader): Set warn_multichar.
3549 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3550 each character. Update prototype. Sign-extend the result.
3551 * cpplib.h: Fix conditions.
3552 (struct cpp_options): Add new warning flag.
3553 (cpp_interpret_charconst): Update prototype.
3555 * cpp.texi: Update documentation.
3557 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
3559 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3560 Fix typo in usage of allof instead of unit.
3562 2002-05-06 Richard Henderson <rth@redhat.com>
3564 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3565 and any jump or call for IN.
3567 2002-05-06 Bernd Schmidt <bernds@redhat.com>
3569 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3571 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3573 2002-05-06 Roger Sayle <roger@eyesopen.com>
3575 * fold-const.c (lshift-double): Cast the high word to an unsigned
3576 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3577 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3578 avoid compiler warning. (fold): Remove redundant code from
3579 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3581 2002-05-06 Jeff Law <law@redhat.com>
3583 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3584 * pa.c (pa_adjust_cost): Remove all true dependency cost
3585 adjustments. Also remove support for non-DFA scheduling.
3586 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3587 to adjust true dependency costs. Update various comments.
3588 (7100lc, 7200, 7300 scheduling): Simplify by combining the
3589 FP ALU & MPY units into a single unit.
3591 2002-05-06 Catherine Moore <clm@redhat.com>
3593 * config/v850/v850.c (compute_register_save_size): Make sure
3594 to count all of the registers that will be saved.
3596 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3598 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3600 2002-05-06 David S. Miller <davem@redhat.com>
3602 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3603 allow result to overlap input operands in memory.
3605 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3608 * cpp.texi: Update multichar charconst docs.
3610 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3612 * cpplex.c (cpp_interpret_charconst): Sign-extend each
3613 character. Don't ignore excess characters. Treat
3614 multicharacter character constants as signed.
3615 (cpp_parse_escape): Clarify diagnostic.
3617 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3619 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3620 use add instead of shift.
3621 (ashldi3_sp64): Likewise.
3622 (ashlsi3_const1, ashldi3_const1): Remove.
3623 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3624 * config/sparc/sparc.c (const1_operand): New.
3626 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3628 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3630 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3633 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3635 2002-05-05 Richard Henderson <rth@redhat.com>
3637 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3638 memory latency adjustments.
3639 (alpha_variable_issue): Remove.
3640 (alpha_use_dfa_pipeline_interface): New.
3641 (alpha_multipass_dfa_lookahead): New.
3642 * config/alpha/alpha.md: Remove define_function_unit scheduling;
3643 include new dfa scheduling.
3644 (attr type): Add none.
3646 * config/alpha/ev4.md: New.
3647 * config/alpha/ev5.md: New.
3648 * config/alpha/ev6.md: New.
3650 2002-05-05 David S. Miller <davem@redhat.com>
3652 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3654 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
3656 * cse.c: Fix formatting.
3657 * emit-rtl.c: Likewise.
3659 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3661 * genautomata.c (initiate_states): Add additional guard to
3662 initialize `units_array'.
3664 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3666 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
3667 process_unit_to_form_the_same_automaton_unit_lists,
3668 form_the_same_automaton_unit_lists
3669 check_unit_distributions_to_automata): New prototypes and
3671 (check_automata): Rename it into `check_automata_insn_issues'.
3672 (unit_decl): New fields `the_same_automaton_unit' and
3673 `the_same_automaton_message_reported_p'.
3674 (unit_decl_t): New typedef.
3675 (the_same_automaton_lists): New gloval variable.
3676 (unit_regexp, unit_set_el, units_array, units_cmp,
3677 output_get_cpu_unit_code_func): Use the typedef.
3678 (evaluate_max_reserv_cycles): Increment
3679 `description->max_insn_reserv_cycles'.
3680 (initiate_states): Don't increment `max_cycles_num'.
3681 (transform_insn_regexps): Move code around transformation of
3682 regexps from `generate'.
3683 (generate): Remove call of `transform_insn_regexps'.
3684 (expand_automata): Call `transform_insn_regexps' and
3685 `check_unit_distributions_to_automata'. Check errors before
3688 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
3689 automaton `ultrasparc3_1'.
3691 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
3693 * c-common.c (c_common_init): Set up CPP arithmetic.
3694 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
3695 something reasonable for the host.
3696 (sanity_checks): Add checks.
3697 (cpp_read_main_file): Call sanity_checks() from here...
3698 (cpp_post_options): ... not here.
3699 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
3700 * cpplib.h (struct cpp_options): New member int_precision.
3702 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3704 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
3706 2002-05-04 David S. Miller <davem@redhat.com>
3708 * config/sparc/linux.h, config/sparc/linux64.h
3709 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
3711 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
3713 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
3715 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
3718 2002-05-05 Tim Josling <tej@melbpc.org.au>
3720 * treelang; New directory for new sample language treelang.
3722 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3724 * Makefile.in (c-lex.o): Update.
3725 * c-lex.c: Include target.h.
3726 (cb_register_builtins): New.
3727 (init_c_lex): Set builtins callback.
3728 * c-lex.h (cpp_define, cpp_assert): New prototypes.
3729 * cppinit.c (init_builtins): Use callback, including for
3731 * cpplib.h (struct cpp_callbacks): New member.
3732 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
3733 (TARGET_INITIALIZER): Update.
3734 * target.h (struct gcc_target): New hook.
3735 * tree.c (default_register_cpp_builtins): New.
3736 * tree.h (default_register_cpp_builtins): New.
3738 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
3740 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3742 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
3743 (cpp_post_options): Move sanity checks to...
3744 (sanity_checks): New.
3745 * cpplex.c (maybe_read_ucs): Fix prototype.
3746 (parse_string, cpp_parse_escape): Cast for %c format specifier.
3747 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
3750 2002-05-04 Bernd Schmidt <bernds@redhat.com>
3752 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
3753 builtins. Use V2DI patterns instead of TI for logical operations.
3754 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
3755 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
3756 (ix86_expand_builtins): Change the pattern used for movntdq.
3757 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
3758 sse2_nandv2di3): New patterns.
3759 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
3761 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
3762 (cvtdq2pd): Correct mode on operand 1.
3763 (sse2_umulsidi3): Describe without unspec.
3764 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
3766 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
3767 (ashlv2di3): Likewise, from sse2_ashlv2di3.
3768 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
3769 ashlv4si3, ashlv2di3): Use SImode for shift count.
3770 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
3771 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
3773 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
3775 (__m128i, __m128d): New macros.
3776 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
3777 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
3778 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
3779 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
3780 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
3781 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
3782 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
3783 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
3784 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
3785 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
3786 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
3787 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
3788 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
3789 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
3790 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
3791 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
3792 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
3793 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
3794 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
3795 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
3796 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
3797 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
3798 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
3799 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
3800 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
3801 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
3802 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
3803 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
3804 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
3805 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
3806 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
3807 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
3808 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
3809 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
3810 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
3811 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
3812 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
3814 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
3815 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
3817 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3819 * dwarf2out.c: Fix formatting.
3820 * varasm.c: Likewise.
3822 2002-05-04 David Edelsohn <edelsohn@gnu.org>
3825 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
3826 clobber and use result as temporary value.
3828 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3830 * expr.c (force_operand): Use expand_simple_* to handle more
3833 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3835 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
3837 (lex_charconst): Update for change in prototype of
3838 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
3840 * cpphash.h (BITS_PER_CPPCHAR_T): New.
3841 * cppinit.c (cpp_create_reader): Initialize them for no
3842 change in semantics.
3843 (cpp_post_options): Add sanity checks.
3844 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
3845 and truncation issues. Calculate in type cppchar_t.
3846 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
3847 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
3848 run-time dependent precision correctly. Return whether the
3849 result is signed or not.
3850 * cpplib.c (dequote_string): Use cppchar_t; update.
3851 * cpplib.h (cppchar_signed_t): New.
3852 struct cpp_options): New precision members.
3853 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
3854 * cppexp.c (eval_token): Update.
3856 2002-05-03 David S. Miller <davem@redhat.com>
3858 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
3859 * config/sparc/sparc.c (sparc_rtx_costs): New function
3860 implementing RTX_COSTS and CONST_COSTS.
3861 * config/sparc/sparc.h (CONST_COSTS): Delete.
3862 (RTX_COSTS_CASES): Define.
3863 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
3866 * config/sparc/sparc.md (DFA schedulers): Split out...
3867 * config/sparc/cypress.md, config/sparc/hypersparc.md,
3868 config/sparc/sparclet.md, config/sparc/supersparc.md,
3869 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
3871 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
3872 checks on it, always defined for Sparc.
3874 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
3875 Tweak, and add more detailed comments.
3877 2002-05-03 Zack Weinberg <zack@codesourcery.com>
3879 * Re-apply patch accidentally reverted with
3880 DFA scheduler merge: remove all rules and variables to slurp
3881 source files out of libiberty and rebuild them with HOST_CC.
3882 ($(HOST_PREFIX_1)varray.o): New rule.
3883 (genattrtab rule): Word wrap.
3885 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3887 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
3888 (CPP_SUBTARGET_SPEC): Define.
3889 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
3890 cpp_subtarget specs.
3891 (CPP_SPEC): Redefine to include %(cpp_subtarget).
3893 2002-05-03 David S. Miller <davem@redhat.com>
3895 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
3896 * target.h (struct gcc_target): Delete cycle_display member.
3898 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
3899 (rtx_needs_barrier): Delete reference to cycle_display unspec.
3900 (ia64_sched_reorder2): Mention need for cycle display handling
3901 once such notes exist.
3903 2002-05-03 Richard Henderson <rth@redhat.com>
3905 * real.c (etoasc): Strip most trailing zeros for clarity.
3906 * sched-vis.c: Include real.h.
3907 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
3908 * Makefile.in (sched-vis.o): Add real.h.
3910 2002-05-03 David S. Miller <davem@redhat.com>
3912 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
3915 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
3917 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
3918 when we get an out of range literal.
3919 (altivec_expand_ternop_builtin): Same.
3920 (altivec_expand_unop_builtin): Same.
3921 (altivec_expand_builtin): Same, for dss.
3922 (altivec_expand_builtin): Use trees instead of rtl when
3923 determining literal argument validity.
3925 2002-05-03 David S. Miller <davem@redhat.com>
3927 Delete cycle display scheduling hook.
3928 * config/ia64/ia64.c (ia64_cycle_display,
3929 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
3930 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
3931 and use emit_insn_before instead of ia64_emit_insn_before.
3932 * config/ia64/ia64.md (unspec usage): Delete cycle display.
3933 (cycle_display): Delete insn pattern.
3934 * config/sparc/sparc.md (unspec usage): Delete cycle display.
3935 (cycle_display): Delete insn pattern.
3936 * config/sparc/sparc.c (sparc_cycle_display,
3937 TARGET_SCHED_CYCLE_DISPLAY): Delete.
3938 * doc/md.texi (cycle_display): Don't mention.
3939 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
3941 2002-05-03 Richard Henderson <rth@redhat.com>
3943 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
3944 * recog.h: Declare them.
3946 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
3947 * config/sparc/sparc.md: Use store_data_bypass_p instead.
3948 * config/sparc/sparc-protos.h: Update.
3950 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3952 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
3953 -D__arch64__. Add -D_LP64.
3954 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
3956 (CPP_ARCH64_SPEC): Likewise.
3957 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
3958 (NO_BUILTIN_SIZE_TYPE): Undef.
3960 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
3962 * genautomata.c (min_issue_delay_pass_states): Change return type
3964 (min_issue_delay_pass_states): Change the algorithm.
3965 (min_issue_delay): Set up min_insn_issue_delay for the state.
3966 (output_min_issue_delay_table): Interchange the nested loops and
3967 and initiate min_insn_issue_delay for states.
3969 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
3971 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
3974 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
3976 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
3979 2002-05-03 Richard Henderson <rth@redhat.com>
3982 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3983 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
3984 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
3985 code before JUMP, not EARLIEST.
3987 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
3989 * c-format.c (check_format_info_main): Don't check for presence of
3990 parameter for * width until after operand number has been read,
3991 and only check for it if format parameters are available.
3994 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3996 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
3997 (LINK_SPEC): Undef before defining.
3999 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4001 PR preprocessor/6489
4002 * tradcpp.c (fixup_newlines): New.
4003 (main, finclude): Use it.
4005 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4007 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4008 * config/mips/mips.c (mips_unique_section): Strip encoding from
4011 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4013 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4016 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4018 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4019 (Specific): Removed buildstats references.
4020 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4021 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4022 Accomodate Solaris versions beyond 8.
4023 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4024 (Specific, *-*-solaris2.8): Removed, obsolete.
4026 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4029 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4030 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4031 fill leaf_reg_remap with identity.
4032 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4034 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4036 * config/h8300/crti.asm: Remove trailing spaces.
4037 * config/h8300/h8300.c: Likewise.
4038 * config/h8300/lib1funcs.asm: Likewise.
4040 2002-05-02 Jason Merrill <jason@redhat.com>
4042 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4043 * c-decl.c (c_init_decl_processing): Use it.
4044 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4045 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4046 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4048 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4050 * regrename.c: Fix formatting.
4053 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4055 * i386.md (attribute memory): Handle compares properly.
4057 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4059 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4062 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4064 * function.c: Fix formatting.
4066 2002-05-02 Jan Hubicka <jh@suse.cz>
4068 * haifa-sched.c (schedule_insn): Print table of instructions and
4070 (sched_block): Do not print ready list at verbosity level 1.
4071 * sched-vis.c (print_insn): Make global.
4072 * sched-ebb.c (ebb_print_insn): Rename from...
4073 (print_insn): ... this one.
4074 * sched-int.h (print_insn): Declare
4076 2002-05-02 Richard Henderson <rth@redhat.com>
4078 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4079 emitted by cycle_display.
4081 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4083 * doc/install.texi (*-*-freebsd*): Update to latest status.
4085 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4088 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4089 * config/float-sparc.h: Assume 128-bit long double if
4090 __LONG_DOUBLE_128__ is defined.
4092 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4094 * genattrtab.c (write_function_unit_info): Add a dummy element
4095 when num_units == 0.
4097 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4099 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4100 TYPE_MODE (double_type_node) instead of DFmode.
4102 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4104 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4106 * toplev.c (rest_of_compilation): Revert Richard's patch.
4108 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4110 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4112 2002-05-02 Catherine Moore <clm@redhat.com>
4114 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4116 2002-05-02 Kazu Hirata <kazu@hxi.com>
4118 * combine.c: Fix comment typos.
4120 * genautomata.c: Likewise.
4124 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4126 * doc/install.texi: State GNAT version requirements.
4128 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4130 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4131 of the frame pointer or arg pointer register which strict register
4132 checking is not enabled.
4134 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4136 * gcc.dg/altivec-8.c: New.
4138 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4139 PRE_INC and PRE_DEC for altivec modes.
4141 2002-05-01 Bruce Korb <bkorb@gnu.org>
4143 * fixinc/check.tpl(set-writable): make sure the function exists first
4144 * fixinc/inclhack.def(alpha_assert): fix test_text
4145 * fixinc/tests/base/assert.h: add in missing result
4147 2002-05-01 Jeff Law <law@redhat.com>
4149 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4152 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4154 * dbxout.c (dbxout_type): Emit size information for range types,
4155 as well, but only when using GDB extensions.
4157 2002-05-01 Richard Henderson <rth@redhat.com>
4159 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4160 target-independent gnu binutils date test.
4162 2002-05-01 Richard Henderson <rth@redhat.com>
4164 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4165 info before expunging the block.
4167 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4169 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4170 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4171 -M -or -MM is in effect.
4173 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4175 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4176 A29k configurations.
4177 * doc/install.texi: Update to match.
4179 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4182 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4183 for duplicates. Always loop over whole list.
4185 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4187 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4189 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4191 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4194 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4196 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4198 2002-05-01 David Edelsohn <edelsohn@gnu.org>
4200 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4201 (nabs_nopower): Same.
4202 (floatdisf2): New pattern.
4203 (absdi2): Convert to define_insn_and_split.
4208 (fix_trunctfdi2): Same.
4209 (fix_trunctfsi2): Same.
4211 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
4213 * doc/install.texi: Update Texinfo version requirement
4216 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4218 PR target/6512, PR target/5628
4219 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4220 when memory is not aligned.
4221 (movdf_insn_v9only_vis): Likewise.
4222 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4223 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4224 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4226 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
4228 * gcc.dg/altivec-7.c: New.
4230 * config/rs6000/altivec.h: Cleanup.
4232 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
4234 * doc/invoke.texi (Option Summary): Add -mvrsave=.
4235 (RS/6000 and PowerPC Options): Document -mvrsave=.
4237 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4238 (rs6000_altivec_vrsave_string): Same.
4239 (rs6000_override_options): Call rs6000_parse_vrsave_option.
4240 (rs6000_parse_vrsave_option): New.
4241 (rs6000_stack_info): Only generate vrsave instructions when
4242 TARGET_ALTIVEC_VRSAVE.
4244 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4245 (rs6000_altivec_vrsave_string): Define extern.
4246 (rs6000_altivec_vrsave): Same.
4247 (TARGET_ALTIVEC_VRSAVE): New.
4249 2002-04-30 Richard Henderson <rth@redhat.com>
4252 * toplev.c (rest_of_compilation): Don't run cross-jump before
4255 2002-04-30 Tom Rix <trix@redhat.com>
4257 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4258 check which_alternative.
4260 2002-04-30 Kazu Hirata <kazu@hxi.com>
4262 * cpplex.c: Fix comment formatting.
4263 * function.c: Likewise.
4264 * integrate.c: Likewise.
4265 * regrename.c: Likewise.
4266 * sibcall.c: Likewise.
4267 * simplify-rtx.c: Likewise.
4268 * tree-inline.c: Likewise.
4270 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4272 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4273 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4274 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4275 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4276 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4277 * pa/x-ada: New file. Define ADA_CFLAGS.
4279 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
4281 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4282 from MMIX_LAST_REGISTER_FILE_REGNUM.
4283 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4284 (struct machine_function): New member highest_saved_stack_register
4285 previously static variable in mmix.c.
4286 (MACHINE_DEPENDENT_REORG): Define.
4287 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4288 (MMIX_OUTPUT_REGNO): New.
4289 (mmix_target_asm_function_prologue): Move calculation of last used
4290 saved-stack-register into...
4291 (mmix_machine_dependent_reorg): New function. Update to also handle
4293 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4294 register names, simplify somewhat by new variable regno.
4295 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
4297 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4298 emitting register names.
4299 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4300 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4302 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4305 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4307 2002-04-30 Richard Henderson <rth@redhat.com>
4309 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4310 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4311 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4312 emit_tfmode_cvt): New.
4313 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4314 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4315 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4316 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4317 * config/sparc/sparc-protos.h: Update.
4319 2002-04-30 Janis Johnson <janis187@us.ibm.com>
4321 * install.texi (Final install): Add to the list of info to include
4322 in a report of a successful bootstrap, and add link to 3.1 list.
4324 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
4326 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4327 (mode): Add vector modes
4328 (i387): Kill attribute.
4329 (unit): New attribute.
4330 (length_immediate): Grok new types.
4331 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4332 (modrm): Use "unit".
4333 (memory): Handle MMX/SSE properly.
4334 (scheduling descriptions): Kill uses of fop1.
4335 (sse, mmx, fp patterns): Set type and mode properly.
4337 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
4339 * pa.c (override_options): Default to PA8000 scheduling.
4340 * doc/invoke.texi (HP-PA options): Mention newly added 7300
4341 scheduling parameter.
4343 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4344 handling of double precision multiplies.
4346 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4347 fpdiv and fpsqrt instructions.
4348 (7200 & 7300 scheduling): Fix typo in handling of
4349 store-load and store-store penalties.
4351 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4353 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4354 mips. Add two missing commas.
4356 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
4358 * doc/contrib.texi (Contributors): Update Paolo Carlini's
4359 and Benjamin Kosnik's entries.
4361 2002-04-29 David S. Miller <davem@redhat.com>
4363 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4364 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4365 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4366 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4368 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4370 * combine.c (find_split_point): Use gen_int_mode.
4372 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
4374 Merging code from dfa-branch:
4376 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
4378 * genautomata.c (output_reserv_sets): Fix typo.
4380 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
4382 * genautomata.c (output_reserv_sets): Remove
4383 next_cycle_output_flag.
4385 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
4387 * sched-rgn.c (init_ready_list): Make the DFA code handle
4388 USE/CLOBBER insns in the same way as the traditional
4390 (new_ready): Similarly..
4392 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
4394 * haifa-sched.c (schedule_block): Change the DFA state only after
4397 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
4399 * pa.c (hppa_use_dfa_pipeline_interface): New function.
4400 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4401 (override_options): Add PA7300 scheduling support.
4402 (pa_adjust_cost): Update various comments. Properly
4403 handle anti and output dependencies when using the
4405 (pa_issue_rate): Add PA7300 scheduling support.
4406 (pa_can_combine_p): Call extract_insn before calling
4407 constrain_operands (taken from mainline tree).
4408 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4409 * pa.md (cpu attr): Add 7300. Rewrite pipeline
4410 descriptions using DFA descriptions. Add PA7300
4413 2002-03-30 David S. Miller <davem@redhat.com>
4415 Add UltraSPARC-III DFA scheduling support.
4416 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4417 Update FP conditional move on register insn patterns to use it, as
4419 (define_attr cpu): Add ultrasparc3.
4420 (define_attr us3load_type): New, update integer load patterns to
4421 set it, as appropriate.
4422 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4423 (rest): Add UltraSPARC3 scheduling description.
4424 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4425 (PROCESSOR_ULTRASPARC3): New.
4426 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4427 ({ASM,CPP}_CPU_SPEC): Likewise.
4428 (REGISTER_MOVE_COST): Likewise.
4429 (RTX_COSTS): Likewise.
4430 * config/sparc/sparc.c (sparc_override_options,
4431 sparc_initialize_trampoline, sparc64_initialize_trampoline,
4432 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4433 sparc_issue_rate): Likewise.
4434 * config/sparc/sol2.h: Likewise.
4435 * config/sparc/sol2-sld-64.h: Likewise.
4436 * config/sparc/linux64.h: Likewise.
4438 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
4440 * doc/md.texi: Add comments about usage the latency time for the
4441 different dependencies and about case when two or more conditions
4442 in different define_insn_reservations returns TRUE for an insn.
4444 * doc/md.texi: Add reference for automaton based pipeline
4447 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
4449 * doc/passes.texi: Add missed information about genattrtab.
4451 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
4453 * genautomata.c (output_automata_list_transition_code): Check
4454 automata_list on NULL.
4456 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
4458 * genautomata.c (output_insn_code_cases,
4459 output_automata_list_min_issue_delay_code,
4460 output_automata_list_transition_code,
4461 output_automata_list_state_alts_code): Comment the functions.
4463 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
4465 * genautomata.c (automata_list_el_t): New typedef.
4466 (get_free_automata_list_el,free_automata_list_el,
4467 free_automata_list, automata_list_hash, automata_list_eq_p,
4468 initiate_automata_lists, automata_list_start, automata_list_add,
4469 automata_list_finish, finish_automata_lists,
4470 output_insn_code_cases, output_automata_list_min_issue_delay_code,
4471 output_automata_list_transition_code,
4472 output_automata_list_state_alts_code, add_automaton_state,
4473 form_important_insn_automata_lists): New functions and prototypes.
4474 (insn_reserv_decl): Add members important_automata_list and
4476 (ainsn): Add members important_p.
4477 (automata_list_el): New structure.
4478 (first_free_automata_list_el, current_automata_list,
4479 automata_list_table): New global variables.
4480 (create_ainsns): Initiate member important_p.
4481 (output_internal_min_issue_delay_func): Generate the switch and
4482 call output_insn_code_cases.
4483 (output_internal_trans_func, output_internal_state_alts_func):
4485 (generate): Call initiate_automata_lists.
4486 (automaton_states): New global variable.
4487 (expand_automata): Call form_important_insn_automata_lists.
4488 (write_automata): Call finish_automata_lists.
4490 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
4492 * genautomata.c (add_excls, add_presence_absence): Check that
4493 cpu units in the sets belong the same automaton.
4495 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4496 about that cpu units in the sets belong the same automaton.
4498 * doc/md.texi: Ditto.
4500 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
4501 Nitin Gupta <niting@noida.hcltech.com>
4503 * config/sh/sh.c (sh_use_dfa_interface): New function.
4505 (sh_issue_rate): New Function.
4506 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4507 TARGET_SCHED_ISSUE_RATE: define.
4509 * config/sh/sh.md: Add DFA based pipeline description for SH4.
4511 (define_attr insn_class): New attribute used for DFA
4513 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4514 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4515 cmpeqdi_t): Likewise.
4517 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4518 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4520 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4522 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4524 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4527 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4529 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4530 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4532 (output_dfa_start_func): Initiate new variable insn_codes_length,
4533 (write_automata): Output definition of the new variable.
4535 2001-10-02 David S. Miller <davem@redhat.com>
4537 * haifa-sched.c (advance_one_cycle): New function.
4538 (schedule_block): Use it.
4539 (queue_to_ready): Use it, and also make sure to advance the DFA
4540 state on all stall cycles, not just those where insn_queue links
4543 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
4545 * haifa-sched.c (max_issue): Remove last_p argument. Only return
4546 non-zero if the highest-priority instruction could be scheduled.
4547 (choose_ready): Remove last argument from max_issue call.
4549 2001-09-28 David S. Miller <davem@redhat.com>
4551 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4552 ultrasparc and 3 for other multi-issue sparcs.
4554 2001-09-27 David S. Miller <davem@redhat.com>
4556 * config/sparc/sparc.md (cycle_display): New pattern.
4557 * config/sparc/sparc.c (sparc_cycle_display): New.
4558 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4560 2001-09-25 David S. Miller <davem@redhat.com>
4562 Convert all of Sparc scheduling to DFA
4563 * config/sparc/sparc.md: Kill all define_function_unit
4564 directives and replace with DFA equivalent.
4565 * config/sparc/sparc.c (ultrasparc_adjust_cost,
4566 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4567 ultra_fpmode_conflict_exists, ultra_find_type,
4568 ultra_build_types_avail, ultra_flush_pipeline,
4569 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4570 ultrasparc_variable_issue, ultrasparc_sched_init,
4571 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4572 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4573 ultra_cur_hist, ultra_cycles_elapsed): Kill.
4574 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4575 ultrasparc_store_bypass_p): New.
4576 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4579 2001-09-24 David S. Miller <davem@redhat.com>
4581 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4582 ready->vec[foo] not ready[foo].
4584 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4586 * doc/md.texi: Correct examples for define_insn_reservations
4589 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4591 * genautomata.c (create_automata): Print message about creation of
4593 (generate): Remove printing meease about creation of
4596 2001-09-05 David S. Miller <davem@redhat.com>
4598 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4599 * config/sparc/linux64.h: Likewise.
4601 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
4603 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4604 schedule_block, sched_init, sched_finish): Add missed calls of
4605 use_dfa_pipeline_interface.
4607 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4610 * sched-vis.c (get_visual_tbl_length): Ditto.
4612 2001-08-27 Richard Henderson <rth@redhat.com>
4614 * genattr.c (main): Emit state_t even when not doing scheduling.
4616 2001-08-27 Richard Henderson <rth@redhat.com>
4618 * genautomata.c (expand_automata): Always create a description.
4620 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4622 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4623 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4624 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4627 * genattr.c (main): New variable num_insn_reservations. Increase
4628 it if there is DEFINE_INSN_RESERVATION. Output automaton based
4629 pipeline hazard recognizer interface.
4631 * genattrtab.h: New file.
4633 * genattrtab.c: Include genattrtab.h.
4634 (attr_printf, check_attr_test, make_internal_attr,
4635 make_numeric_value): Move protypes into genattrtab.h. Define them
4637 (num_dfa_decls): New global variable.
4638 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4639 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4640 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4641 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
4643 * genautomata.c: New file.
4645 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4647 * sched-int.h: (curr_state): Add the external definition for
4648 automaton pipeline interface.
4649 (haifa_insn_data): Add comments for members blockage and units.
4651 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4652 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4653 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4654 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4655 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4656 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4657 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4659 (TARGET_SCHED): Use the new macros.
4661 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
4662 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
4663 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
4664 dfa_bubble): New members in gcc_target.sched.
4666 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
4667 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
4668 (insn_queue): Redefine it as pointer to array.
4669 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
4671 (max_insn_queue_index_macro_value): New variable.
4672 (curr_state, dfa_state_size, ready_try): New varaibles for
4673 automaton interface.
4674 (ready_element, ready_remove, max_issue): New function prototypes
4675 for automaton interface.
4676 (choose_ready): New function prototype.
4677 (insn_unit, blockage_range): Add comments.
4678 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
4679 FUNCTION_UNITS_SIZE == 0.
4680 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
4681 actual_hazard, potential_hazard): Add comments.
4682 (insn_cost): Use cost -1 as undefined value. Remove
4683 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
4685 (ready_element, ready_remove): New functions for automaton
4687 (schedule_insn): Add new code for automaton pipeline interface.
4688 (queue_to_ready): Add new code for automaton pipeline interface.
4689 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
4690 (debug_ready_list): Print newline when the queue is empty.
4691 (max_issue): New function for automaton pipeline interface.
4692 (choose_ready): New function.
4693 (schedule_block): Add new code for automaton pipeline interface.
4694 Print ready list before scheduling each insn.
4695 (sched_init): Add new code for automaton pipeline interface.
4696 Initiate insn cost by -1.
4697 (sched_finish): Free the current automaton state and finalize
4698 automaton pipeline interface.
4700 * sched-rgn.c: Include target.h.
4701 (init_ready_list, new_ready, debug_dependencies): Add new code for
4702 automaton pipeline interface.
4704 * sched-vis.c: Include target.h.
4705 (get_visual_tbl_length): Add code for automaton interface.
4706 (target_units, print_block_visualization): Add comments.
4708 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
4709 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
4710 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
4711 (getruntime.o, genautomata.o): New entries.
4712 (genattrtab.o): Add new dependency file genattrtab.h.
4713 (genattrtab): Add new dependencies. Link it with `libm.a'.
4714 (getruntime.o, hashtab.o): New entries for canadian cross.
4716 * doc/md.texi: Description of automaton based model.
4718 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
4720 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4721 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4722 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4723 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4724 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4725 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4726 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
4728 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
4729 MAX_DFA_ISSUE_RATE): New macro descriptions.
4731 * doc/contrib.texi: Add dfa based scheduler contribution.
4733 * doc/gcc.texi: Add more information about genattrtab.
4735 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4737 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
4738 adjust_address_nv call.
4740 2002-04-29 Janis Johnson <janis187@us.ibm.com>
4742 * doc/install.texi (Testing): Provide additional information, and
4743 a stronger encouragement, for running the testsuites.
4745 2002-04-29 DJ Delorie <dj@redhat.com>
4747 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
4748 given in upper case.
4750 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4752 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
4753 Solaris 2 <widec.h> if missing.
4754 * fixinc/fixincl.x: Regenerate.
4755 * fixinc/tests/base/widec.h: New file.
4757 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
4759 * toplev.c (f_options): Add "profile" switch so that
4760 -fno-profile can be used to disable -p.
4762 2002-04-29 Bernd Schmidt <bernds@redhat.com>
4764 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
4766 * tree.c (build_common_tree_nodes_2): Likewise.
4767 * tree.h (enum tree_index): Likewise.
4768 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
4770 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
4772 (init_mmx_sse_builtins): Initialize SSE2 builtins.
4773 (ix86_expand_builtin): Add support for SSE2 builtins.
4774 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
4775 (VALID_SSE_REG_MODE): Use it.
4776 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
4777 (enum ix86_builtins): Add SSE2 builtins.
4778 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
4779 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
4780 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
4781 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
4782 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
4783 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
4784 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
4785 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
4786 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
4787 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
4788 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
4789 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
4790 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
4791 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
4792 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
4793 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
4794 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
4795 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
4796 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
4797 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
4798 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
4799 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
4800 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
4801 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
4802 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
4803 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
4804 lfence_insn): New patterns.
4805 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
4806 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
4808 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
4810 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
4812 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4814 * doc/contrib.texi (Contributors): Add Paolo Carlini and
4816 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
4817 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
4818 and CPU instead of cpu.
4820 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
4822 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
4824 (lang_independent_options): Add -fif-conversion, -fif-conversion2
4825 (rest_of_compilation): Do if conversion only when asked for.
4826 (parse_options_and_default_flags): Set new variables to 1 for -O1
4827 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
4829 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
4831 * i386.c (dbx64_register_map): Fix typo.
4833 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
4835 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
4836 real_one_half, real_bb_freq_max): New static variables.
4837 (debug_profile_bbauxs): Kill.
4838 (process_note_predictions): Kill unused variable.
4839 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
4841 (propagate_freq): Use REAL_ARITHMETICS.
4842 (estimate_bb_frequencies): Likevise; init new static variables.
4843 * Makefile.in (predict.o): Add dependency on real.h
4845 2002-04-28 David S. Miller <davem@redhat.com>
4848 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
4849 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
4850 several {reads,writes} instead.
4851 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
4854 2002-04-27 David S. Miller <davem@redhat.com>
4857 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
4860 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
4861 including signal.h and sys/ucontext.h, not needed.
4863 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
4865 * varasm.c (output_constant_def): Correct test for not calling
4866 ENCODE_SECTION_INFO for INTEGER_CST.
4868 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
4870 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
4871 keep most cases as function eval_token.
4872 (eval_token): New function.
4873 (_cpp_parse_expr): Read token here for improved diagnostics.
4874 Don't use op_as_text. Detect bad ':' here.
4875 (reduce): Don't detect bad ':' here.
4876 (op_as_text): Remove.
4877 * cpphash.h (_cpp_test_assertion): Change prototype.
4878 * cpplib.c (_cpp_test_assertion): Change prototype.
4880 2002-04-28 Richard Henderson <rth@redhat.com>
4883 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
4884 (ggc_mark_rtx_children): New.
4886 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4889 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
4890 after call peepholes for UltraSPARC.
4891 (call + jump 64-bit peepholes): Remove.
4893 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4896 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
4897 result as temporary value.
4899 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4902 * toplev.c (rest_of_compilation): Only run regrename and copy
4903 propagation if optimizing.
4905 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4907 PR optimization/6475
4908 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
4909 register of REGNO_DECL (i).
4910 * Makefile.in (reload1.o): Add $(TREE_H).
4912 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
4914 * cppexp.c (lex): Update to use state.skip_eval.
4915 (struct op): Remove prio and flags members.
4916 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
4917 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
4918 (LEFT_ASSOC): New macro.
4919 (optab): New table of operator priorities and flags.
4921 (_cpp_parse_expr): Clean up logic. Return bool. Use a
4922 malloc-ed parser stack.
4923 (reduce): New; reduce the operator stack.
4924 (_cpp_expand_op_stack): Expand the operator stack as necessary.
4925 * cpphash.h (struct op): Predeclare.
4926 (struct cpp_reader): New members op_stack, op_limit.
4927 (struct lexer_state): New member skip_eval.
4928 (_cpp_parse_expr): Update.
4929 (_cpp_expand_op_stack): New.
4930 * cpplib.c (do_if): Update.
4931 * cppinit.c (cpp_create_reader): Create op stack.
4932 (cpp_destroy): And destroy it.
4933 * cpplib.h (CPP_LAST_CPP_OP): Correct.
4934 (TTYPE_TABLE): Correct.
4936 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4939 * c-decl.c (duplicate_decls): Call merge_weak.
4940 * c-pragma.c (apply_pragma_weak): Warn about misuse.
4941 * output.h (merge_weak): Prototype merge_weak.
4942 * varasm.c (merge_weak): New function.
4943 (declare_weak): Make sure we don't give an error on VAR_DECLs.
4944 Mark RTL with SYMBOL_REF_WEAK.
4946 2002-04-27 Kurt Garloff <garloff@suse.de>
4948 * tree-inline.c (inlinable_function_p): Improve heuristics
4949 by using a smoother function to cut down allowable inlinable size.
4950 * param.def: Add parameters max-inline-insns-single,
4951 max-inline-slope, min-inline-insns that determine the exact
4952 shape of the above function.
4953 * param.h: Likewise.
4955 2002-04-26 Richard Henderson <rth@redhat.com>
4957 * c-parse.in (malloced_yyss, malloced_yyvs): New.
4958 (yyoverflow): Re-add. Set them.
4959 (free_parser_stacks): New.
4960 * c-common.h: Declare it.
4961 * c-lex.c (c_common_parse_file): Call it.
4963 2002-04-26 Richard Henderson <rth@redhat.com>
4965 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
4966 for fallthru search.
4968 2002-04-26 Eric Christopher <echristo@redhat.com>
4970 PR optimization/3700
4971 * config/mips/mips.c (mips_issue_rate): Define. New function.
4972 (TARGET_SCHED_ISSUE_RATE): Use.
4974 2002-04-25 David S. Miller <davem@redhat.com>
4977 * reorg.c (optimize_skip): Do not allow exception causing
4978 instructions to be considered for delay slots.
4979 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
4980 (relax_delay_slots): Do not try to consider exception causing
4981 instructions as redundant.
4983 2002-04-26 Richard Henderson <rth@redhat.com>
4986 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
4988 2002-04-26 Mark Mitchell <mark@codesourcery.com>
4991 * config/i386/i386.md (untyped_call): Return the value in a float
4992 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
4995 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
4997 * tree.c (tree_int_cst_lt): Compare constants whose types differ
4998 in unsigned-ness correctly.
5000 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5002 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5003 portable runtime model.
5005 2002-04-26 Richard Henderson <rth@redhat.com>
5007 * c-parse.in (yyoverflow): Revert.
5009 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5010 Richard Henderson <rth@redhat.com>
5012 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5013 result as temporary value.
5015 2002-04-26 Richard Henderson <rth@redhat.com>
5018 * c-common.c (fix_string_type): Split out of ...
5019 (combine_strings): ... here. Take a varray, not a tree list.
5020 (c_expand_builtin_printf): Use fix_string_type.
5021 * c-common.h: Update decls.
5022 * c-parse.in (string): Remove. Update all uses to use STRING
5023 instead, and not call combine_strings.
5026 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5027 (build_asm_stmt): Likewise.
5028 * objc/objc-act.c (my_build_string): Use fix_string_type.
5029 (build_objc_string_object): Build varray for combine_strings.
5031 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5033 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5036 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5038 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5039 (HAVE_NO_R_OPERAND): Remove.
5040 (HAVE_VALUE): Remove.
5041 (op_to_prio): Update.
5042 (UNARY): Don't alter flags.
5043 (_cpp_parse_expr): want_value used to indicate whether
5044 a number or unary operator is expected next. Distinguish
5045 unary and binary +/-.
5046 (op_as_text): Update for unary operators.
5048 2002-04-25 Richard Henderson <rth@redhat.com>
5051 * c-parse.in (yyoverflow): New.
5053 2002-04-25 Richard Henderson <rth@redhat.com>
5056 * c-common.c (shorten_compare): Simplfy conditions leading to
5057 the generation of a warning.
5059 2002-04-25 Richard Henderson <rth@redhat.com>
5062 * expmed.c (extract_bit_field): Fall through to generic code rather
5063 than aborting on subreg special case.
5065 2002-04-25 David S. Miller <davem@redhat.com>
5067 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5068 for DECL being NULL.
5070 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5072 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5074 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5076 * c-decl.c (grokdeclarator): Remove outdated ??? note
5077 on invalid declaration of flexible array members.
5079 2002-04-25 Richard Henderson <rth@redhat.com>
5081 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5083 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5085 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5086 needed by the compiler, even if they are used as global regs.
5088 2002-04-25 Matt Hiller <hiller@redhat.com>
5090 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5092 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5093 of the corresponding functions.
5094 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5097 2002-04-25 Matt Hiller <hiller@redhat.com>
5099 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5101 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5102 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5103 registers, adjust comment accordingly.
5104 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5105 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5106 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5107 for coprocessor registers.
5108 (ADDITIONAL_REGISTER_NAMES): Include
5109 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5111 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5112 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5113 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5114 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5115 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5117 (mips_char_to_class): Adjust comment to include coprocessor
5120 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5122 (mips_reg_names, mips_regno_to_class): Include coprocessor
5124 (mips_sw_reg_names): Ditto, make non-static.
5125 (mips_move_1word): Handle moves to and from coprocessor registers.
5126 (mips_move_2words): Handle moves to and from coprocessor
5128 (mips_class_max_nregs, mips_register_move_cost): Handle
5129 coprocessor register classes.
5130 (override_options): Initialize mips_char_to_class and
5131 mips_hard_regno_mode_ok properly for coprocessor registers.
5133 * config/mips/mips.md (movdi_internal, movdi_internal2,
5134 movsi_internal1, movsi_internal2): Add constraint-sets for
5135 coprocessor registers.
5136 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5137 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5139 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5140 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5142 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5143 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5145 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5146 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5149 * doc/tm.texi: Document feature.
5151 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5153 * integrate.c (function_attribute_inlinable_p): Simplify.
5154 Check the table pointer is not NULL.
5156 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5158 * doc/c-tree.texi: Fix typo in introduction.
5160 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5162 * c-common.h (c_common_parse_file): Update.
5163 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5164 * c-lex.c (YYDEBUG): Get from c-lex.h.
5165 (c_common_parse_file): Update.
5166 * c-lex.h (YYDEBUG, yydebug): New.
5167 * c-parse.in (YYDEBUG): Get from c-lex.h.
5168 (c_set_yydebug): Remove.
5169 * c-tree.h (c_set_yydebug): Remove.
5170 * langhooks-def.h (lhd_do_nothing_i): New.
5171 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5172 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5173 * langhooks.c (lhd_do_nothing_i): New.
5174 (lhd_set_yydebug): Remove.
5175 * langhooks.h (struct lang_hooks): Update.
5176 * toplev.c (set_yydebug): New.
5177 (compile_file): Update call to parse_file hook.
5178 (decode_d_option): Update.
5180 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5182 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5184 * loop.c (load_mems): Don't change the interface of called functions.
5186 * calls.c (expand_call): Take current_function_pretend_args_size
5187 into account when setting argblock for sibcalls.
5189 2002-04-24 Matt Hiller <hiller@redhat.com>
5191 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5194 * cpplex.c (skip_line_comment): Process comment one multibyte
5195 character at a time rather than one char at a time, if
5197 (parse_string): Process string one multibyte character at a time
5198 rather than one char at a time, if appropriate.
5199 * c-lex.c (lex_string): Lex and copy multibyte strings
5201 * cpplib.h (cppchar_t): Change to unsigned.
5203 2002-04-24 Richard Henderson <rth@redhat.com>
5206 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5209 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
5211 * sh.c (sh_va_arg): If argument was passed by reference,
5212 dereference the pointer.
5214 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5216 * sh.md (divsi3_i4_media): Use match_operand for input values
5217 rather than hard registers.
5218 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5219 unnecessarily through hard registers. Keep copies of pseudo
5220 registers outside of the libcall sequence.
5222 * sh.md (casesi_shift_media): Add modes.
5224 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5227 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
5229 * attribs.c (c_common_attribute_table): Move table and handlers
5231 (format_attribute_table, lang_attribute_table,
5232 lang_attribute_common): Remove.
5233 (init_attributes): Replace NULL pointers with pointers to the
5235 (handle_packed_attribute, handle_nocommon_attribute,
5236 handle_common_attribute, handle_noreturn_attribute,
5237 handle_noinline_attribute, handle_always_inline_attribute,
5238 handle_used_attribute, handle_unused_attribute,
5239 handle_const_attribute, handle_transparent_union_attribute,
5240 handle_constructor_attribute, handle_destructor_attribute,
5241 handle_mode_attribute, handle_section_attribute,
5242 handle_aligned_attribute, handle_weak_attribute,
5243 handle_alias_attribute, handle_visibility_attribute,
5244 handle_no_instrument_function_attribute, handle_malloc_attribute,
5245 handle_no_limit_stack_attribute, handle_pure_attribute,
5246 handle_deprecated_attribute, handle_vector_size_attribute,
5247 vector_size_helper): Move to c-common.c.
5248 * c-common.c (c_common_attribute_table,
5249 handle_packed_attribute, handle_nocommon_attribute,
5250 handle_common_attribute, handle_noreturn_attribute,
5251 handle_noinline_attribute, handle_always_inline_attribute,
5252 handle_used_attribute, handle_unused_attribute,
5253 handle_const_attribute, handle_transparent_union_attribute,
5254 handle_constructor_attribute, handle_destructor_attribute,
5255 handle_mode_attribute, handle_section_attribute,
5256 handle_aligned_attribute, handle_weak_attribute,
5257 handle_alias_attribute, handle_visibility_attribute,
5258 handle_no_instrument_function_attribute, handle_malloc_attribute,
5259 handle_no_limit_stack_attribute, handle_pure_attribute,
5260 handle_deprecated_attribute, handle_vector_size_attribute,
5261 vector_size_helper): Move from attribs.c.
5262 * c-common.h (c_common_attribute_table,
5263 c_common_format_attribute_table): New.
5264 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5265 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5266 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5267 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5268 (LANG_HOOKS_INITIALIZER): Update.
5269 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5270 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5271 * target.h: Update comment.
5272 * tree.c (default_target_attribute_table): Remove.
5273 * tree.h (default_target_attribute_table, format_attribute_table,
5274 lang_attribute_table, lang_attribute_common): Remove.
5276 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5277 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5279 2002-04-24 Jason Merrill <jason@redhat.com>
5281 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5282 * dwarf2out.c (dwarf_attr_name): Support it.
5283 (gen_array_type_die): Emit it.
5284 (lookup_type_die): No special handling for VECTOR_TYPE.
5285 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5287 2002-04-24 Richard Henderson <rth@redhat.com>
5289 * config/mips/mips.md (movdi_usd): Renumber.
5291 2002-04-24 David S. Miller <davem@redhat.com>
5294 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5295 32-bit Sparc and current_function_returns_struct is true.
5297 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5299 * loop.c (canonicalize_condition): Use gen_int_mode.
5301 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
5303 * config/rs6000/altivec.h: Cleanup file. Add non individual
5325 (vec_vcmpequb): New.
5326 (vec_vcmpequh): New.
5327 (vec_vcmpequw): New.
5328 (vec_vcmpeqfp): New.
5329 (vec_vcmpgefp): New.
5330 (vec_vcmpgtub): New.
5331 (vec_vcmpgtsb): New.
5332 (vec_vcmpgtuh): New.
5333 (vec_vcmpgtsh): New.
5334 (vec_vcmpgtuw): New.
5335 (vec_vcmpgtsw): New.
5336 (vec_vcmpgtfp): New.
5337 (vec_vcmpgefp): New.
5342 (vec_vexptefp): New.
5347 (vec_lde): Add vector float variant.
5352 (vec_vmhaddshs): New.
5374 (vec_vmladduhm): New.
5375 (vec_vmhraddshs): New.
5377 (vec_vmsummbm): New.
5378 (vec_vmsumuhm): New.
5379 (vec_vmsumshm): New.
5380 (vec_vmsumuhs): New.
5381 (vec_vmsumshs): New.
5390 (vec_vnmsubfp): New.
5408 (vec_vrsqrtefp): New.
5419 (vec_vspltisb): New.
5420 (vec_vspltish): New.
5421 (vec_vspltisw): New.
5446 (vec_vsum4ubs): New.
5447 (vec_vsum4sbs): New.
5448 (vec_vsum4shs): New.
5449 (vec_vsum2sws): New.
5460 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
5463 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5464 added literals from substracted literals.
5465 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5466 (fold) [associate]: Preserve MINUS_EXPR if needed.
5468 2002-04-23 Zack Weinberg <zack@codesourcery.com>
5470 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5473 2002-04-23 Tom Tromey <tromey@redhat.com>
5475 * gcc.c: Added --resource. For PR java/6314.
5477 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5479 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5480 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5483 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5485 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5487 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5489 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5491 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5492 (ix86_expand_clrstr): Fix typo.
5493 * loop.c (gen_load_of_final_value): New.
5494 (loop_givs_rescan, strength_reduce, check_dbra_loop):
5497 2002-04-23 Roger Sayle <roger@eyesopen.com>
5499 * builtins.c (builtin_memset_gen_str): New function.
5500 (expand_builtin_memset): Optimize the case of constant length, but
5503 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
5505 * config/rs6000/altivec.h (vec_step): Remove extraneous
5507 (vec_ctu): Cast return.
5509 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5512 * function.h: (struct function): Add profile_label_no field.
5513 (current_function_profile_label_no): Define.
5514 * function.c: (profile_label_no): New static var.
5515 (expand_function_start): Increment it, and copy to
5516 current_function_profile_label_no.
5517 * output.h (profile_label_no): Delete.
5518 * final.c (profile_label_no): Delete.
5519 (profile_function): Use current_function_profile_label_no.
5520 (final_end_function): Don't increment profile_label_no here.
5521 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5522 profile_label_no with current_function_profile_label_no.
5523 * config/pa/pa.c (current_function_number): Delete.
5524 (pa_output_function_prologue): Don't output profile label here.
5525 (hppa_profile_hook): Use label_no param rather than
5526 current_function_number.
5527 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5528 * config/pa/pa.h: .. here.
5529 (FUNCTION_PROFILER): Output profile label here.
5531 2002-04-22 Eric Christopher <echristo@redhat.com>
5533 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5534 patch of 2002-04-09 due to binutils issues.
5535 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5537 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5539 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5540 constraint to 'o' for m=r and r=m alternatives.
5541 ("*movv8hi_internal1"): Same.
5542 ("*movv16qi_internal1"): Same.
5543 ("*movv4sf_internal1"): Same.
5545 2002-04-22 Janis Johnson <janis187@us.ibm.com>
5547 * rtl.h (RTX_FLAG): New macro.
5548 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5549 * final.c (alter_subreg): Use macro to access rtx flag.
5550 * integrate.c (copy_rtx_and_substitute): Use new access macro.
5551 * print-rtl.c (print_rtx): Use new access macro.
5553 * cse.c (insert): Check rtx code before accessing flag.
5555 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5556 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5557 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5558 convert_const_symbol_ref, make_canonical, make_alternative_compare,
5559 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5560 simplify_test_exp, optimize_attrs, simplify_by_exploding,
5561 find_and_mark_used_attributes, unmark_used_attributes,
5562 add_values_to_cover, simplify_with_current_value,
5563 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5564 copy_rtx_unchanging, main): Use new access macros.
5566 2002-04-22 Tom Rix <trix@redhat.com>
5568 * expmed.c (init_expmed): Generate shifted constant once.
5570 2002-04-22 Zack Weinberg <zack@codesourcery.com>
5572 * c-lex.c (lex_charconst): Call convert to get constant in
5573 proper type; don't just smash the type field.
5576 * config.gcc: Add list of obsolete configurations. Disallow
5577 building these without --enable-obsolete.
5578 * doc/install.texi: Document --enable-obsolete and obsoletion
5579 policy. Mention obsoletion of individual targets in
5582 2002-04-22 Richard Henderson <rth@redhat.com>
5584 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5586 2002-04-22 Mark Mitchell <mark@codesourcery.com>
5589 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5590 (walk_fixup_memory_subreg): Likewise.
5591 (fixup_var_refs_insn): Adjust accordingly.
5592 (fixup_var_refs_1): Likewise.
5594 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
5596 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5597 LIBPATH_ARCH64_SPEC): Define.
5598 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5599 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5600 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5601 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5603 2002-04-22 Joel Sherrill <joel@OARcorp.com>
5605 * gthr-rtems.h: Correct prototypes to remove warnings.
5607 2002-04-22 Richard Henderson <rth@redhat.com>
5610 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5612 * gcse.c (free_insn_expr_list_list): New.
5613 (clear_modify_mem_tables): Use it. Fix bit set usage.
5614 (canon_list_insert): Use EXPR_LISTs for expressions.
5615 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5617 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
5619 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
5620 file change and include code to _cpp_pop_buffer.
5621 * cpphash.h (struct pending_option): Predeclare.
5622 (struct cpp_reader): New member next_include_file.
5623 (_cpp_pop_file_buffer): Update.
5624 (_cpp_push_next_buffer): Update, rename.
5625 * cppinit.c (cpp_destroy): Free include chain and pending here.
5626 (cpp_finish_options): Simplify.
5627 (_cpp_push_next_buffer): Rename and clean up.
5628 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5630 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5632 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5634 * config/rs6000/altivec.h (vec_xor): Add variant for both args
5635 being vector signed int.
5637 (vec_xor): Add variant for both args being vector signed char.
5638 Remove redundant variant.
5641 2002-04-21 David S. Miller <davem@redhat.com>
5643 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5644 compare mode in output RTL.
5646 2002-04-22 David Edelsohn <edelsohn@gnu.org>
5648 * config/rs6000/rs6000.c (rs6000_override_options): Correct
5649 style and formatting of previous patch.
5651 2002-04-22 Alan Modra <amodra@bigpond.net.au>
5653 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5654 flag_pic for ABI_AIX.
5656 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5658 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5659 * cppfiles.c (read_include_file): Similarly.
5660 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5661 uxstrdup ustrchr, ufputs): Similarly.
5662 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
5663 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
5664 cpp_ideq, parse_identifier, parse_number): Similarly.
5665 * cpplib.c (struct directive, dequote_string, D, run_directive,
5666 cpp_push_buffer): Similarly.
5667 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
5668 _cpp_create_definition, check_trad_stringification,
5669 cpp_macro_definition): Similarly.
5671 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5673 * cppmacro.c (funlike_invocation_p): Don't step back
5676 2002-04-21 David Edelsohn <edelsohn@gnu.org>
5678 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
5681 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
5683 * doc/invoke.texi: Remove Chill references.
5684 * doc/gcc.texi: Update last modified date.
5686 2002-04-20 Kazu Hirata <kazu@hxi.com>
5688 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
5689 push and pop. Replace add.l with add.w.
5691 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5693 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
5694 multiply instructions for H8/300H case.
5696 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5698 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
5699 Bum three instructions from each routine.
5701 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
5703 * Makefile.in: Update.
5704 * decl.c (push_c_function_context, pop_c_function_context,
5705 mark_c_function_context): Rename for consistency.
5706 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
5707 * c-tree.h (push_c_function_context, pop_c_function_context,
5708 mark_c_function_context): Rename for consistency.
5709 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5710 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5711 * function.c (init_lang_status, save_lang_status,
5712 restore_lang_status, mark_lang_status, free_lang_status):
5713 Move to langhooks.h.
5714 (push_function_context_to, pop_function_context_from,
5715 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
5717 * function.h (init_lang_status, save_lang_status,
5718 restore_lang_status, mark_lang_status, free_lang_status):
5719 Move to langhooks.h.
5720 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
5721 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
5722 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
5723 LANG_HOOKS_FUNCTION_INITIALIZER): New.
5724 (LANG_HOOKS_INITIALIZER): Update.
5725 (lhd_do_nothing_f): New.
5726 * langhooks.h (struct lang_hooks_for_functions): New.
5727 (struct lang_hooks): New hooks.
5728 * langhooks.c (lhd_do_nothing_f): New.
5730 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5731 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5733 2002-04-19 David S. Miller <davem@redhat.com>
5735 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
5736 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
5738 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5740 PR optimization/3756
5741 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
5742 x = ((int) y < 0) ? cst1 : cst2.
5744 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5747 * function.c: Reapply patch for c/6358.
5748 (expand_function_end): Copy decl_rtl's mode, not
5749 current_function_return_rtx mode.
5751 2002-04-19 Joel Sherrill <joel@OARcorp.com>
5753 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
5756 2002-04-19 Tom Tromey <tromey@redhat.com>
5758 * doc/install.texi (Specific): Update status of Solaris 2.8.
5761 2002-04-19 Andreas Schwab <schwab@suse.de>
5763 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
5764 (PUT_REAL): Restore old definition.
5766 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5767 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5769 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
5770 binutils 2.11.2 and higher generate smaller binaries than Sun's
5773 2002-04-19 Mark Mitchell <mark@codesourcery.com>
5776 * toplev.c (rest_of_compilation): Do not defer functions for which
5777 TREE_SYMBOL_REFERENCED has already been set.
5779 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
5781 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
5784 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
5786 * builtins.c: Include langhooks.h.
5787 (lang_type_promotes_to): Remove.
5788 (expand_builtin_va_arg): Use new hook.
5789 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
5790 (simple_type_promotes_to): Move to c-typeck.c.
5791 * c-common.h (simple_type_promotes_to): Remove.
5792 * c-decl.c (duplicate_decls, grokdeclarator): Update.
5793 * c-format.c: Include langhooks.h.
5794 (check_format_types): Update.
5795 * c-tree.h (c_type_promotes_to): New.
5796 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
5797 (type_lists_compatible_p): Update.
5798 * langhooks-def.h (lhd_type_promotes_to): New.
5799 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
5800 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5801 * langhooks.c (lhd_type_promotes_to): New.
5802 * langhooks.h (struct lang_hooks_for_types): New hook.
5803 * tree.h (lang_type_promotes_to): Remove.
5805 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
5807 2002-04-18 Richard Henderson <rth@redhat.com>
5809 * function.c: Revert patch for c/6358.
5811 2002-04-18 Richard Henderson <rth@redhat.com>
5813 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
5814 blocks. Handle multiple references to the TRAP block. Handle
5815 non-adjacent THEN and OTHER blocks.
5817 2002-04-18 Richard Henderson <rth@redhat.com>
5819 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
5820 crash with no type for by-mode libcalls.
5822 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
5824 2002-04-18 Bob Wilson <bob.wilson@acm.org>
5826 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
5827 __xtensa_nonlocal_goto): Use a syscall instructions to flush
5828 the register windows.
5830 2002-04-18 Zack Weinberg <zack@codesourcery.com>
5832 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
5833 appropriate. Document need for extended precision even when
5834 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
5835 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
5836 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
5837 instead of relying on later syntax error when REAL_WIDTH > 5.
5838 * real.c: Define NE based only on whether or not we have a
5839 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
5840 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
5841 define GET_REAL and PUT_REAL as simple memcpy operations; no
5842 need to byteswap or round.
5843 Use #error instead of #ifdef-ing out the entire file, for
5844 prompt error detection.
5846 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
5848 2002-04-18 David S. Miller <davem@redhat.com>
5850 * config/sparc/sparc.h (BRANCH_COST): Define.
5852 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
5855 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
5857 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
5858 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
5859 propagate_block calls after relaxation loop using new variable
5860 stabilized_prop_flags.
5862 2002-04-18 Richard Henderson <rth@redhat.com>
5864 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
5865 (ia64_va_arg): Expect variable sized types by reference.
5866 * config/ia64/ia64-protos.h: Update.
5867 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
5868 ia64_function_arg_pass_by_reference.
5870 2002-04-18 Richard Henderson <rth@redhat.com>
5872 * ifcvt.c: Include except.h.
5873 (block_has_only_trap): Break out from find_cond_trap.
5874 (find_cond_trap): Use it. Always delete the trap block.
5875 (merge_if_block): Allow then block null. Be less simplistic about
5876 what insns can end a block.
5877 * Makefile.in (ifcvt.o): Depend on except.h.
5879 * config/ia64/ia64.md (trap, conditional_trap): New.
5881 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5884 * function.c (assign_parms): Assign hard current_function_return_rtx
5886 (expand_function_end): ...not here.
5888 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
5890 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5891 * c-tree.h (c_incomplete_type_error): New.
5892 * c-typeck.c (require_complete_type, build_component_ref): Update.
5893 (incomplete_type_error): Rename.
5894 * langhooks-def.h (lhd_incomplete_type_error): New.
5895 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
5896 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5897 * langhooks.c (lhd_incomplete_type_error): New.
5898 * langhooks.h (struct lang_hooks_for_types): New hook.
5899 * tree.c (size_in_bytes): Use new hook.
5900 * tree.h (incomplete_type_error): Remove.
5902 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5904 2002-04-18 Zack Weinberg <zack@codesourcery.com>
5906 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
5907 TARGET_FLOAT_FORMAT blocks.
5909 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5911 * doc/install.texi (Downloading the source): Do not mention Chill
5912 any longer, but mention Ada.
5913 (Configuration): Do not mention Chill any longer.
5915 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
5917 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
5919 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
5921 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
5924 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5926 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
5927 instead of unsigned_type.
5929 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
5931 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
5932 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
5935 2002-04-18 Bernd Schmidt <bernds@redhat.com>
5937 * attribs.c (vector_type_node_list): New static variable.
5938 (handle_vector_size_attribute): Use it to avoid generating a
5939 new type node each time we are called.
5941 * combine.c (subst): Avoid trying to make a vector mode subreg of
5942 an integer constant.
5943 (gen_lowpart_for_combine): Likewise.
5945 2002-04-18 Roger Sayle <roger@eyesopen.com>
5946 Jakub Jelinek <jakub@redhat.com>
5948 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
5949 for integer constant c (if x has unsigned type or sign bit is not
5950 set in c). This folds the zero/sign extension into the bit-wise and
5953 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5956 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
5959 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
5961 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
5963 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
5965 * gcc.c (read_specs): Detect and fail if an attempt is made to
5966 rename a spec string to an already existing string.
5968 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5970 * config/s390/s390.c (legitimize_pic_address): Do not generate
5971 illegal address constant without CONST.
5973 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5975 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
5976 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
5978 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5980 PR optimization/6305
5981 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
5982 to make sure previous reloads are taken into account. Generate
5983 better code if one operand is an in-range immediate constant.
5985 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
5987 * doc/install.texi (Building): libgcj requires GNU make.
5989 2002-04-17 Jakub Jelinek <jakub@redhat.com>
5992 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
5993 even if hard quad and register is not floating.
5994 (movtf reg<-mem split): Disallow splitting if hard quad and
5995 register is floating.
5996 (movtf mem<-reg split): Likewise.
5997 * config/sparc/sparc.c (fp_register_operand): New predicate.
5998 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6000 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6002 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6003 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6004 (unprotoize.o): Ditto. Build from protoize.c. Define
6005 UNPROTOIZE on command line.
6006 * protoize.c: Include cppdefault.h. Delete include_defaults.
6007 (in_system_include_dir): Use cpp_include_defaults (defined in
6009 * unprotoize.c: Delete file.
6011 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6013 * config/rs6000/altivec.h (vec_ld): Add array variants.
6017 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6018 Aldy Hernandez <aldyh@redhat.com>
6020 * config/rs6000/altivec.h: Define __ALTIVEC__.
6027 Add parentheses to all macro arguments.
6029 2002-04-16 Richard Henderson <rth@redhat.com>
6032 * except.c (remove_eh_handler): Insert inner regions at beginning
6033 of sibling chain. Refactor expressions.
6035 2002-04-16 Richard Henderson <rth@redhat.com>
6037 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6038 * config/sparc/sol2-gas-bi.h: New file.
6039 * config.gcc (sparc*-solaris): Add it as needed.
6040 * configure.in (AS_SPARC64_FLAG): Remove check.
6041 * config.in, configure: Regenerate.
6043 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6045 2002-04-16 Richard Henderson <rth@redhat.com>
6047 * config/mips/mips.c (override_options): Don't override N32 for
6051 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6052 (HILO_delay): Set can_delay false.
6054 2002-04-16 Dale Johannesen <dalej@apple.com>
6056 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6057 instruction addresses.
6058 (rs6000_output_function_epilogue): Likewise.
6060 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6062 * c-parse.in (poplevel, compstmt_start,
6063 compstmt_primary_start): Add ending ';', in accordance
6066 2002-04-16 Richard Henderson <rth@redhat.com>
6068 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6069 Adjust tm_file order to get TARGET_DEFAULT set properly.
6070 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6071 * doc/install.texi (sparc-solaris): Update.
6073 2002-04-16 Dale Johannesen <dalej@apple.com>
6075 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6076 comparison operands do not match each other or if modes of
6077 conditions do not match result.
6079 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6082 * config/s390/s390.md (mulsidi3): Set both subregs of the
6085 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6087 * config/rs6000/altivec.h (vec_addc): Type check.
6089 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6092 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6094 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6096 2002-04-15 Richard Henderson <rth@redhat.com>
6098 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6099 call_really_used_regs too.
6101 2002-04-15 Richard Henderson <rth@redhat.com>
6103 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6105 2002-04-15 David S. Miller <davem@redhat.com>
6107 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6110 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6113 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6114 CONST_VECTOR is { 0, ... 0 }.
6116 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6118 * doc/install.texi (Installing GCC: Configuration): Clarify
6119 the only supported ways to configure gcc.
6121 2002-04-15 Roland McGrath <roland@frob.com>
6123 * config.gcc (alpha*-*-gnu*): New target configuration.
6124 * config/alpha/gnu.h: New file for it.
6125 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6127 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6129 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6130 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6131 * tree.h (expand_start_stmt_expr): Update prototype.
6132 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6133 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6134 on the STMT_EXPR created for the inline function.
6136 2002-04-15 Richard Henderson <rth@redhat.com>
6138 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6139 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6140 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6141 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6142 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6143 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6144 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6145 Define __gnu_linux__, not gnu_linux.
6146 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6148 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6150 Remove Chill front end.
6151 * gcc.c (default_compilers): Remove Chill entries.
6152 * ch: Remove directory.
6153 * doc/frontends.texi: Remove information about Chill.
6154 * doc/sourcebuild.texi: Likewise.
6155 * doc/standards.texi: Likewise.
6157 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6159 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6160 (LONGLONG_STANDALONE): Define.
6162 2002-04-15 David S. Miller <davem@redhat.com>
6164 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6165 Call emit_library_call with LCT_NORMAL.
6166 (sparc_initialize_trampoline): Use LCT_foo instead of
6167 magic constant in emit_library_call invocations.
6168 (sparc64_initialize_trampoline): Likewise.
6169 (sparc_profile_hook): Likewise.
6170 * config/sparc/sparc.md: Likewise.
6172 * config/sparc/sparc.c (sparc_extra_constraint_check):
6173 Fix type of argument 'c'.
6174 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6177 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6179 * diagnostic.h (output_buffer_state): Redefine.
6180 (output_format_decoder): New macro.
6181 (output_prefixing_rule): Likewise.
6182 (output_line_cutoff): Likewise.
6183 (diagnostic_format_decoder): Adjust.
6184 (diagnostic_prefixing_rule): Likewise.
6185 (diagnostic_line_cutoff): Likewise.
6186 (diagnostic_state): Likewise.
6187 (diagnostic_kind_count): Likewise.
6188 (diagnostic_buffer): Now a macro.
6190 * diagnostic.c (diagnostic_buffer): Remove definition.
6191 (output_is_line_wrapping): Adjust.
6192 (set_real_maximum_length): Likewise.
6193 (output_set_maximum_length): Likewise.
6194 (init_output_buffer): Likewise.
6195 (lhd_print_error_function): Likewise.
6196 (output_do_verbatim): Likewise.
6198 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
6200 * cpperror.c (print_location): Don't print include chain
6202 (cpp_begin_message): Update to use DL_ macros.
6203 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6204 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6205 cpp_notice, cpp_notice_from_errno): Remove.
6206 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6209 * cppexp.c (CPP_ICE): Remove.
6210 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6211 lex, integer_overflow, _cpp_parse_expr): Update.
6212 * cppfiles.c (read_include_file, find_include_file,
6213 handle_missing_header, _cpp_read_file, remap_filename): Update.
6214 * cpphash.h (enum error_type): Remove.
6215 (_cpp_begin_message): Update.
6216 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6217 cpp_handle_option, cpp_post_options): Update.
6218 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6219 skip_whitespace, parse_identifier, parse_slow, parse_string,
6220 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6221 cpp_interpret_charconst): Update.
6222 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6223 lex_macro_node, do_undef, glue_header_name, parse_include,
6224 do_include_common, read_flag, do_line, do_linemarker, do_ident,
6225 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6226 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6227 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6228 _cpp_pop_buffer, do_diagnostic): Update.
6229 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6230 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6231 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6232 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6233 cpp_notice, cpp_notice_from_errno): Remove.
6234 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6237 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6238 collect_args, enter_macro_context, save_parameter, parse_params,
6239 _cpp_create_definition, check_trad_stringification,
6240 cpp_macro_definition): Update.
6241 * cppmain.c (cpp_preprocess_file): Update.
6242 * fix-header.c (read_scan_file): Update.
6244 2002-04-14 Andreas Schwab <schwab@suse.de>
6246 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6248 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6250 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6252 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6254 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6257 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
6259 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6261 2002-04-13 Joel Sherrill <joel@OARcorp.com>
6263 * config/sparc/t-elf: Enable v8 multilibs. Impacts
6264 sparc-elf and sparc-rtems targets.
6266 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6268 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6269 defined, and __gnu_hurd__ wherever __GNU__ is defined.
6270 * arm/linux-elf.h: Likewise.
6271 * cris/aout.h: Likewise.
6272 * cris/linux.h: Likewise.
6273 * i370/linux.h: Likewise.
6274 * i386/gnu.h: Likewise.
6275 * i386/linux-aout.h: Likewise.
6276 * i386/linux-oldld.h: Likewise.
6277 * i386/linux.h: Likewise.
6278 * i386/linux64.h: Likewise.
6279 * ia64/linux.h: Likewise.
6280 * m68k/linux-aout.h: Likewise.
6281 * m68k/linux.h: Likewise.
6282 * mips/linux.h: Likewise.
6283 * pa/pa-linux.h: Likewise.
6284 * pj/linux.h: Likewise.
6285 * rs6000/sysv4.h: Likewise.
6286 * s390/linux.h: Likewise.
6287 * sh/linux.h: Likewise.
6288 * sparc/linux-aout.h: Likewise.
6289 * sparc/linux.h: Likewise.
6290 * sparc/linux64.h: Likewise.
6291 * xtensa/linux.h: Likewise.
6293 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
6295 * stmt.c (check_unique_operand_names): Expect operand names to
6296 be strings rather than identifiers. Use simple_cst_equal to
6298 (resolve_operand_name_1): Make same identifier to string change here.
6299 * c-parse.in (asm_operand): Convert a named operand into a string.
6300 * cp/parse.y (asm_operand): Likewise.
6302 2002-04-13 Andreas Schwab <schwab@suse.de>
6304 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6306 2002-04-12 Mark Mitchell <mark@codesourcery.com>
6308 Revert these changes:
6310 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6313 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6315 2002-04-12 Richard Henderson <rth@redhat.com>
6317 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6318 (sparc*-*-solaris): Clean up header files.
6319 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6320 and plan on generating 64-bit code.
6321 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6322 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6323 * config/sparc/sol2-sld-64.h: Rename ...
6324 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
6325 for AS_SPARC64_FLAG not defined.
6326 * config/sparc/sol2-gld-bi.h: New.
6327 * config/sparc/sol2-sld.h: Remove.
6328 * config/sparc/sol26-sld.h: New.
6329 * config/sparc/sol2.h: Tidy comments.
6330 * doc/install.texi: Document sparc-solaris configury changes.
6332 2002-04-12 Richard Henderson <rth@redhat.com>
6334 * recog.c (offsettable_address_p): Match the logic in adjust_address.
6336 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6337 in 64-bit mode only. Use only for 32-bit or MEDLOW.
6339 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6341 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6343 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
6345 * pa.c (pa_can_combine_p): Call extract_insn before calling
6348 2002-04-12 Douglas B Rupp <rupp@gnat.com>
6350 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6351 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6352 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6353 (CPP_PREDEFINES): Handle __declspec.
6354 * config/i386/t-interix (USER_H): Remove.
6356 2002-04-12 DJ Delorie <dj@redhat.com>
6358 * integrate.c (compare_blocks): Make comparisons safe for when
6359 sizeof(int) < sizeof(char *).
6360 (find_block): Likewise.
6362 2002-04-12 Jan Hubicka <jh@suse.cz>
6363 David Edelsohn <edelsohn@gnu.org>
6365 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6367 (symbol_ref_operand): New.
6368 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6369 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6371 2002-04-12 Andreas Schwab <schwab@suse.de>
6373 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6374 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6375 overrides the definition in config/svr4.h.
6377 2002-04-12 Eric Norum <eric.norum@usask.ca>
6379 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6380 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6381 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6382 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6383 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6384 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6385 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6386 definitions to config/rtems.h and make the targets more similar.
6388 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6390 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6391 POINTERS_EXTEND_UNSIGNED.
6392 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6393 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6395 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6398 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
6400 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6401 depends on TARGET_SHMEDIA, not TARGET_SH5.
6403 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
6405 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6406 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6408 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6410 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6413 2002-04-12 Andreas Schwab <schwab@suse.de>
6415 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6417 2002-04-12 Richard Henderson <rth@redhat.com>
6420 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6422 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6423 modes spanning multiple hard regs.
6425 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6427 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6429 * pa.c (pa_output_function_prologue): Don't accumulate the total
6430 number of code bytes when using TARGET_64BIT, or gas, SOM and not
6431 the portable runtime.
6432 (output_deferred_plabels): Handle 64bit plabels.
6433 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6434 generating pic code using the GAS assembler for object formats that
6435 are not SOM (ie., ELF32 and ELF64).
6436 (output_millicode_call): Check attribute type if attribute length is 28.
6437 Likewise use $PIC_pcrel$0. Only call get_attr_length and
6438 dbr_sequence_length once.
6439 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6440 dbr_sequence_length once.
6441 * pa.h (TARGET_SOM): Define if not defined.
6442 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6443 with GAS and not SOM.
6444 (jump, call_internal_reg, call_value_internal_reg): Likewise.
6445 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
6447 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6449 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6450 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6451 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6452 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6453 elfos.h and dbxelf.h values are fine now.
6454 * config/i386/freebsd.h, config/alpha/freebsd.h
6455 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6457 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6459 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6460 or set Acpu or Amachine. Reformat.
6461 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6463 (LINK_SPEC): Do not need to undef.
6464 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6465 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6466 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6468 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6469 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6470 (LINK_SPEC): Do not need to undef.
6471 (DONT_USE_BUILTIN_SETJMP): Do not define.
6472 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6473 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
6474 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6475 Remove trailing spaces.
6476 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6477 __ELF__, or set Acpu or Amachine. Reformat.
6478 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6481 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6483 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6484 all other *-*-freebsd* targets.
6486 2002-04-11 Richard Henderson <rth@redhat.com>
6488 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6490 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6492 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6493 Include {cpu}/{cpu}.h thru tm_file.
6494 (alpha*-*-linux*ecoff): Remove target.
6495 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6496 (LINK_SPEC): Remove, is not OS independent.
6497 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6498 (LINK_SPEC): Do not need to #undef any longer.
6499 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6501 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6503 (LINK_SPEC): Moved here from alpha/elf.h.
6504 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6506 * config/alpha/linux-ecoff.h: Remove.
6507 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6508 (CPP_SPEC): Define _POSIX_SOURCE as needed.
6509 (CPP_SUBTARGET_SPEC): Do not define.
6510 (LINK_SPEC): Do not need to #undef any longer.
6511 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6512 * config/alpha/vms.h: Likewise.
6514 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6516 * doc/extend.texi: Remove old claim that typedefs cannot have
6517 an alignment attribute.
6519 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6521 PR optimization/6177
6522 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6523 bitpos is 0 and bitsize CONCAT size.
6525 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6528 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6530 2002-04-10 David O'Brien <obrien@FreeBSD.org>
6532 * config/alpha/freebsd.h: Minor reformatting.
6533 (CPP_SPEC): Define ELF and add cpp_subtarget.
6534 (ASM_SPEC): No longer needed.
6536 2002-04-11 Richard Henderson <rth@redhat.com>
6538 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6539 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
6540 (dimode mem/zero splitter): New.
6542 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
6544 * config/cris/cris.c (cris_override_options): Tweak error message
6545 for PIC not implemented.
6547 * config/cris/cris.h: Tweak comments related to parameter-passing.
6549 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6551 2002-04-10 Richard Henderson <rth@redhat.com>
6553 * except.c (add_ehl_entry): Allow duplicates after landing pad
6556 2002-04-10 David Edelsohn <edelsohn@gnu.org>
6558 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6560 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
6562 * c-decl.c (c_init_decl_processing): Move generation of
6563 decls for g77_integer_type_node and friends from here ...
6564 * c-common.c (c_common_nodes_and_builtins): ... to here.
6566 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
6568 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6569 is only used as frame pointer when frame_pointer_needed is true.
6571 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
6574 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6575 for the fact that the pool entry uses two words.
6576 (movdf_hard_insn): Similarly. Also, ADR instruction can span
6578 (movdf_soft_insn): Similarly.
6579 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6580 for the fact that the pool entry uses three words.
6582 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
6584 * config/mips/mips.c (mips_va_arg): When using the struct version
6585 of the EABI va_list, allow arguments in the register save area to
6586 take up less room than a stack argument.
6588 2002-04-10 Richard Henderson <rth@redhat.com>
6590 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6591 if EXPAND_INITIALIZER.
6593 2002-04-09 Richard Henderson <rth@redhat.com>
6595 * config/alpha/alpha.md (movdi_er_maybe_g): New.
6596 * config/alpha/alpha.c (alpha_expand_mov): Use it.
6598 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6600 PR optimization/6233
6601 * rtlanal.c (pure_call_p): New function.
6602 * rtl.h (pure_call_p): Declare.
6603 * loop.c (prescan_loop): Use it to set has_nonconst_call.
6604 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6606 2002-04-09 Eric Christopher <echristo@redhat.com>
6608 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6609 information to .comm directive.
6611 2002-04-09 Richard Henderson <rth@redhat.com>
6614 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6616 2002-04-09 Richard Henderson <rth@redhat.com>
6618 * basic-block.h (flow_delete_block_noexpunge): Declare.
6619 (expunge_block_nocompact): Declare.
6620 * cfg.c (expunge_block_nocompact): Split out from ...
6621 (expunge_block): ... here.
6622 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6623 (flow_delete_block_noexpunge): Split out from ...
6624 (flow_delete_block): ... here.
6625 * cfgcleanup.c (delete_unreachable_blocks): Compact while
6626 removing dead blocks.
6627 * except.c (exception_handler_labels): Remove.
6628 (exception_handler_label_map): New.
6629 (struct eh_region): Add aka member.
6630 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6631 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6632 (for_each_eh_label, for_each_eh_label_1): New.
6633 (init_eh): Register exception_handler_label_map.
6634 (free_eh_status): Use free_region.
6635 (find_exception_handler_labels): Use the map, not the list.
6636 (remove_exception_handler_label): Likewise.
6637 (maybe_remove_eh_handler): Likewise.
6638 (remove_eh_handler): Use the region aka bitmap.
6639 * except.h (exception_handler_labels): Remove.
6640 (for_each_eh_label): Declare.
6641 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6642 * loop.c (invalidate_loops_containing_label): New.
6643 (find_and_verify_loops): Use it. Use for_each_eh_label.
6644 * sched-rgn.c (is_cfg_nonregular): Use
6645 current_function_has_exception_handlers.
6647 2002-04-09 Richard Henderson <rth@redhat.com>
6649 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6650 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6651 Do not return changed status.
6652 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6653 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6654 New functions that do return changed status.
6655 * sbitmap.h: Update decls.
6656 * gcse.c, lcm.c: Use _cg functions as needed.
6658 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6660 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6661 (sh64-*-elf*, sh-*-rtemself*): Likewise.
6662 * config/sh/embed_bb.c: New file.
6663 * config/sh/embed-elf.h: New file.
6664 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
6665 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
6666 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6668 (SUBTARGET_CPP_PTR_SPEC): Don't define.
6669 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
6670 Add subtarget_asm_endian_spec.
6671 (ASM_SPEC): Use subtarget_asm_endian_spec.
6672 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
6673 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
6674 (WCHAR_UNSIGNED): Define.
6675 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
6676 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6677 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
6679 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
6680 (sh_adjust_cost): Likewise.
6681 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6683 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
6684 (WCHAR_TYPE_SIZE): Likewise.
6685 (ASM_SPEC): Use subtarget_asm_endian_spec.
6686 (SH_ELF_WCHAR_TYPE): #undef/ #define.
6687 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
6688 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
6689 (MAX_WCHAR_TYPE_SIZE): Don't #define .
6690 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
6691 (USER_LABEL_PREFIX): Don't #undef /#define .
6692 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6693 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
6694 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
6695 (ASM_SPEC): Likewise.
6696 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
6697 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
6698 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
6699 (LIB2FUNCS_EXTRA): Define.
6700 * t-sh64 (LIB2FUNCS_EXTRA): Define.
6701 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
6702 (LIB1ASMFUNCS_CACHE): Define.
6703 (LIB2FUNCS_EXTRA): Redefine empty.
6705 2002-04-08 Richard Henderson <rth@redhat.com>
6707 * reorg.c (get_branch_condition): Use reversed_comparison_code.
6709 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6711 * config/m68hc11/larith.asm (__map_data_section): Fix condition
6712 and optimize for size.
6713 (__do_global_ctors): Fix pointer comparison.
6714 (__do_global_dtors): Likewise.
6716 2002-04-09 David S. Miller <davem@redhat.com>
6718 * config/sparc/sparc.c (sparc_extra_constraint_check): New
6719 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
6720 allow reloading pseudos.
6721 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
6722 * config/sparc/sparc-protos.h: Declare it.
6724 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
6725 unsigned comparison warning.
6726 (output_restore_regs): Mark leaf_function as unused.
6728 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6730 * expr.c (is_aligning_offset): New function.
6731 (expand_expr, case COMPONENT_EXPR): Call it.
6733 2002-04-08 David S. Miller <davem@redhat.com>
6736 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
6738 Make init_priority work on Sparc when using GNU ld.
6739 * config/sparc/linux.h, config/sparc/linux64.h,
6740 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
6741 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
6742 * config/sparc/sol2-gld.h: New file to do the same.
6743 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
6744 sparc/sol2-gld.h to tm_file.
6746 PR optimization/4328
6747 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
6748 * doc/md.texi: Document it.
6749 * config/sparc/sparc.md (movdi_insn_sp64_novis,
6750 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
6751 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
6752 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
6753 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
6755 2002-04-08 Andreas Jaeger <aj@suse.de>
6757 * stmt.c (expand_asm_operands): Revert last patch from Richard
6760 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6762 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
6763 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
6765 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6767 * doc/contrib.texi (Contributors): Add David O'Brien.
6769 2002-04-08 Alan Modra <amodra@bigpond.net.au>
6771 * configure.in (auto-build.h): Use target_alias and build_alias
6772 when running configure.
6773 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
6774 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
6775 * configure: Regenerate.
6777 2002-04-07 David S. Miller <davem@redhat.com>
6779 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
6781 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
6784 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
6785 generating 32-bit pic code.
6787 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
6789 * cppinit.c (cpp_create_reader): Initialize
6790 discard_comments_in_macro_exp.
6791 (COMMAND_LINE_OPTIONS): Add "-CC" option.
6792 (cpp_handle_option): Handle "-CC" option.
6793 * cpplex.c (save_comment): If saving a C++ comment in
6794 a directive, convert it to a C comment.
6795 (_cpp_lex_direct): Pass second comment start character to
6796 save_comment to indicate comment type.
6797 * cpplib.c (_cpp_handle_directive): If processing
6798 a "#define" directive and discard_comments_in_macro_exp
6799 is false, re-enable saving of comments.
6800 (lex_macro_node): If discard_comments_in_macro_exp is false,
6801 discard any comments before the macro identifier.
6802 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
6804 * cppmacro.c (cpp_get_token): If expanding a macro while
6805 processing a directive, discard any comments we might encounter.
6806 (parse_params): If discard_comments_in_macro_exp is false,
6807 ignore comments in the macro parameter list.
6808 * gcc.c (cpp_unique_options): Add "-CC" option.
6809 (option_map): Map "--comments-in-macros" to "-CC".
6810 * doc/cppopts.texi: Document "-CC" option.
6811 * f/lang-specs.h: Add "-CC" option.
6812 * testsuite/gcc.dg/cpp/maccom1.c: New test.
6813 * testsuite/gcc.dg/cpp/maccom2.c: New test.
6814 * testsuite/gcc.dg/cpp/maccom3.c: New test.
6815 * testsuite/gcc.dg/cpp/maccom4.c: New test.
6816 * testsuite/gcc.dg/cpp/maccom5.c: New test.
6817 * testsuite/gcc.dg/cpp/maccom6.c: New test.
6819 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
6822 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
6824 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6827 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6830 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
6831 RTX_UNCHANGING_P for the functions arguments when a tail call
6834 2002-04-06 Jason Merrill <jason@redhat.com>
6836 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
6837 (parse_options_and_default_flags): Set them appropriately.
6838 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
6840 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
6842 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
6845 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
6848 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
6849 types come in by-reference. Fix typo in comment.
6851 2002-04-05 David S. Miller <davem@redhat.com>
6853 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
6854 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
6855 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
6856 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
6858 2002-04-05 David S. Miller <davem@redhat.com>
6860 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
6861 are not going to emit return instructions, emit at least a nop
6862 for the sake of sane backtraces.
6864 2002-04-05 Richard Henderson <rth@redhat.com>
6866 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
6868 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
6870 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
6872 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
6874 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
6875 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
6876 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
6878 2002-04-05 Andreas Schwab <schwab@suse.de>
6880 * c-convert.c: Include c-common.h.
6881 * Makefile.in (c-convert.o): Updated.
6883 2002-04-05 Jakub Jelinek <jakub@redhat.com>
6885 * mklibgcc.in: Use separate libgcc.map for each multilib.
6886 * Makefile.in (distclean): Don't remove libgcc.map here.
6888 2002-04-05 Jakub Jelinek <jakub@redhat.com>
6890 * Makefile.in (s-mlib): Handle --disable-multilib by separate
6891 genmultilib invocation.
6893 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
6895 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
6896 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
6897 to num_gprs for symmetry.
6898 * config/mips/mips.c: Adjust accordingly.
6900 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
6902 * c-common.c (truthvalue_conversion): Rename, update.
6903 * c-common.h (c_common_truthvalue_conversion): New.
6904 * c-convert.c (convert): Update.
6905 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6906 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
6907 * c-typeck.c (build_binary_op, build_unary_op,
6908 build_conditional_expr): Update.
6909 * fold-const.c (constant_boolean_node, fold): Use langhook.
6910 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
6911 * langhooks.h (struct lang_hooks): New hook.
6912 * stmt.c (expand_decl_cleanup): Use langhook.
6913 * tree.h (truthvalue_conversion): Remove.
6915 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6917 2002-04-05 Alan Modra <amodra@bigpond.net.au>
6919 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
6920 Add rules to make null object file.
6922 2002-04-04 Jim Blandy <jimb@redhat.com>
6924 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
6925 macro formal parameter names.
6927 2002-04-04 David S. Miller <davem@redhat.com>
6929 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
6931 2002-04-04 Richard Henderson <rth@redhat.com>
6934 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
6935 Support copies into and out of memory. Don't accept allows_reg
6936 and allows_mem as gospel.
6938 2002-04-04 Richard Henderson <rth@redhat.com>
6941 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
6942 (write_dependence_p): Likewise.
6944 2002-04-04 Richard Henderson <rth@redhat.com>
6946 * predict.c (estimate_bb_frequencies): Do frequency calculation
6947 with a volatile temporary.
6949 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
6951 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
6953 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6956 * final.c (final_start_function): Don't bump profile_label_no here...
6957 (final_end_function): ...but here.
6959 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6961 * config/sparc/sparc.md (pic): New attribute.
6962 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
6964 (split after do_builtin_setjmp_setup): New.
6966 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6969 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
6972 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6974 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
6975 UNITS_PER_WORD for zero sized aggregates.
6977 2002-04-03 David S. Miller <davem@redhat.com>
6979 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
6980 one-character spec for this, just use %(link_gcc_c_sequence).
6982 2002-04-03 David S. Miller <davem@redhat.com>
6984 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
6987 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
6989 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
6990 (DWARF_FRAME_RETURN_COLUMN): Move.
6991 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6992 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
6993 * pa.c (except.h, predict.h): Include.
6995 (store_reg_modify, set_reg_plus_d): Revise prototypes.
6996 (output_ascii): Add cast.
6997 (store_reg_modify): Revise to add frame notes.
6998 (set_reg_plus_d): Likewise.
6999 (compute_frame_size): Include space for eh data registers in frame if
7000 the current function calls eh_return.
7001 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7002 function calls eh_return. Save eh data registers if the current
7003 function calls eh_return. Fix code to add frame notes. Emit
7004 blockage to prevent insns with frame notes being scheduled in the
7005 delay slot of calls.
7006 (hppa_expand_epilogue): Restore eh data registers and do final stack
7007 adjustment if the current function calls eh_return. Don't add frame
7009 (output_call): Revise for change in length of call insn. Don't do
7010 return pointer adjustment for an unconditional jump in the delay slot
7011 of a call when using frame notes.
7012 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7013 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7014 (ARG_POINTER_CFA_OFFSET): Define.
7015 * pa.md (return_external_pic): New pattern.
7016 (prologue): Correct formatting. Use return_external_pic if current
7017 function calls eh_return.
7018 (call_internal_symref, call_value_internal_symref,
7019 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7020 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7022 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7024 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7025 list of targets to check using "nop" insn.
7026 * configure: Rebuilt.
7028 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7030 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7032 2002-04-03 David S. Miller <davem@redhat.com>
7034 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7035 library sequence passed to the linker.
7036 (LINK_COMMAND_SPEC): Use it.
7037 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7038 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7039 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7041 2002-04-03 Jason Merrill <jason@redhat.com>
7043 * except.c (struct eh_status): Remove protect_list.
7044 (begin_protect_partials, end_protect_partials): Remove.
7045 (add_partial_entry): Remove.
7046 * except.h: Remove prototypes.
7048 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7049 expand_decl_cleanup_eh.
7052 * tree.h (CLEANUP_EH_ONLY): New macro.
7053 * stmt.c (expand_decl_cleanup_eh): New fn.
7054 (expand_cleanups): Check CLEANUP_EH_ONLY.
7055 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7056 Use expand_decl_cleanup_eh.
7057 (expand_stmt): Adjust.
7058 * c-common.h: Adjust prototype.
7060 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7062 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7063 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7064 (cris_target_asm_function_epilogue): Ditto.
7065 (cris_initial_frame_pointer_offset): Ditto.
7066 (cris_simple_epilogue): Ditto.
7067 (cris_expand_builtin_va_arg): Variable-size types come in
7070 2002-04-03 David S. Miller <davem@redhat.com>
7072 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7074 (set_fast_math): Correct 'fsr' type.
7076 2002-04-03 Richard Henderson <rth@redhat.com>
7079 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7080 * toplev.c (check_global_declarations): Use it.
7081 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7082 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7083 (LANG_HOOKS_DECLS): Add it.
7084 * langhooks.c (lhd_warn_unused_global_decl): New.
7085 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7086 * c-objc-common.c (c_warn_unused_global_decl): New.
7087 * c-tree.h (c_warn_unused_global_decl): Declare.
7088 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7090 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7092 * langhooks-def.h (lhd_set_decl_assembler_name,
7093 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7094 (LANG_HOOKS_INITIALIZER): Update.
7095 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7096 * langhooks.h (struct lang_hooks): New hook.
7097 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7098 (lang_set_decl_assembler_name): Remove.
7099 (init_obstacks): Don't set hook.
7100 (decl_assembler_name): New function.
7101 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7102 (decl_assembler_name): New.
7103 (lang_set_decl_assembler_name): Remove.
7105 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7107 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7108 works properly with .hidden symbols.
7109 * configure: Rebuilt.
7110 * config.in: Rebuilt.
7111 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7112 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7113 properly with .hidden symbols.
7115 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7118 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7121 2002-04-03 Richard Henderson <rth@redhat.com>
7124 * sched-rgn.c (sets_likely_spilled): New.
7125 (sets_likely_spilled_1): New.
7126 (add_branch_dependences): Use it.
7128 2002-04-02 Richard Henderson <rth@redhat.com>
7131 * loop.h (LOOP_FIRST_PASS): New.
7132 * loop.c (strength_reduce): Mind it when deciding to unroll.
7133 * toplev.c (rest_of_compilation): Set it.
7135 2002-04-02 David S. Miller <davem@redhat.com>
7137 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7138 mems_ok_for_ldd_peep when the order of the loads being examined
7140 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7141 existing comment to increase comprehension of this situation.
7143 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7145 * config/sh/sh.md: Don't use union real_extract.
7147 2002-04-02 Richard Henderson <rth@redhat.com>
7149 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7151 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7153 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7154 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7155 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7156 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7157 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7158 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7159 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7160 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7161 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7162 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7163 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7164 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7165 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7166 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7167 Include as many configury headers via tm_file as possible. This
7168 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7169 * config/openbsd-oldgas.h: New file.
7170 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7171 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7172 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7173 config/i386/i386-coff.h, config/i386/i386-interix.h,
7174 config/i386/iscdbx.h, config/i386/linux-aout.h,
7175 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7176 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7177 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7178 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7179 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7180 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7181 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7182 config/i386/vxi386.h: Do not directly include configury headers.
7183 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7184 Directly include configury headers that are no longer automatically
7185 included by the above headers.
7186 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7187 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7188 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7189 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7190 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7191 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7192 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7193 (TARGET_VERSION): Define.
7194 * config/i386/beos-elf.h, config/i386/freebsd.h,
7195 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7196 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7197 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7198 config/i386/sco5.h, config/i386/sysv4.h
7199 (TARGET_VERSION): Do not need to protect.
7200 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7201 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7202 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7203 config/i386/i386-interix.h, config/i386/linux-aout.h,
7204 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7205 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7206 (YES_UNDERSCORES): Do not define - not needed.
7207 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7208 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7209 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7210 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7211 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7212 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7213 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7214 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7216 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
7217 Richard Henderson <rth@redhat.com>
7220 * function.c (assign_temp): Accept either type or decl argument.
7221 Detect variables whose size is too large to fit into an integer.
7222 * stmt.c (expand_decl): Pass the decl, not the type.
7224 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7226 * protoize.c: Match include directory usage with cppdefault.c.
7228 2002-04-03 Jeffrey A Law (law@redhat.com)
7229 Hans-Peter Nilsson <hp@bitrange.com>
7231 * combine.c (simplify_comparison): Avoid narrowing a comparison
7232 with a paradoxical subreg when doing so would drop signficant bits.
7234 2002-04-02 Steve Ellcey <sje@cup.hp.com>
7236 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7237 if POINTERS_EXTEND_UNSIGNED is defined.
7239 2002-04-02 Richard Henderson <rth@redhat.com>
7242 * local-alloc.c (contains_replace_regs): LO_SUM may contain
7245 2002-04-02 Richard Henderson <rth@redhat.com>
7247 * doc/standards.texi: Document required freestanding libc entry points.
7249 2002-04-02 Alan Modra <amodra@bigpond.net.au>
7251 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7252 associated splitter. Remove MQ constraint.
7253 (ctrdi_internal4): Correct CCmode clobber.
7255 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7257 * milli64.S ($$dyncall): New function.
7258 * t-linux (LIB1ASMFUNCS): Revise module list.
7259 (LIB1ASMSRC): Use pa/milli64.S.
7261 2002-04-02 Richard Henderson <rth@redhat.com>
7263 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7264 rename solaris_sys_varargs_h.
7266 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7268 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7269 the same mode as its component.
7271 2002-04-02 Richard Henderson <rth@redhat.com>
7274 * final.c (this_is_asm_operands): Export.
7275 * output.h (this_is_asm_operands): Declare.
7276 * config/i386/i386.c (print_operand): Error odd asm operands.
7278 2002-04-02 Richard Henderson <rth@redhat.com>
7281 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7283 2002-04-01 Richard Henderson <rth@redhat.com>
7286 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7287 * fixinc/fixincl.x: Rebuild.
7289 2002-04-01 Richard Henderson <rth@redhat.com>
7291 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7292 (atomic_alloc, atomic_free): New.
7293 (SIZE, MASK_FOR, PTR_IN): New.
7294 (emergency_reg_state, emergency_reg_state_free): New.
7295 (emergency_labeled_state, emergency_labeled_state_free): New.
7296 (reg_state_alloced, labeled_state_alloced): New.
7297 (alloc_reg_state, free_reg_state): New.
7298 (alloc_label_state, free_label_state, free_label_states): New.
7299 (push, pop, dup_state_stack, free_state_stack): Use them.
7300 (desc_label_state): Likewise.
7301 (uw_frame_state_for): Free label states and state stack.
7302 (uw_update_reg_address): Eliminate warnings.
7304 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
7306 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7307 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7309 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7311 * c-decl.c (grokdeclarator): Update.
7312 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7313 * c-tree.h (c_mark_addressable): New.
7314 * c-typeck.c (default_function_array_conversion, build_unary_op,
7315 build_array_ref, convert_for_assignment): Update.
7316 (mark_addressable): Rename.
7317 * calls.c (try_to_integrate, expand_call): Use langhook.
7318 * expr.c (expand_expr): Use langhook.
7319 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7320 * langhooks.h (struct lang_hooks): New hook.
7321 * stmt.c (expand_asm_operands): Use langhook.
7322 * tree.h (mark_addressable): Remove.
7324 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7326 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7328 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7331 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7333 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7334 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7336 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7338 * c-common.c (unsigned_conversion_warning, convert_and_check,
7339 unsigned_type, signed_type, shorten_compare,
7340 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7341 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7342 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7344 * c-decl.c (grokdeclarator): Update.
7345 * c-format.c (check_format_types): Update.
7346 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7347 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7348 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7349 * convert.c (convert_to_integer): Use new hooks.
7350 * expmed.c (make_tree): Use new hooks.
7351 * expr.c (store_expr): Use new hooks.
7352 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7353 all_ones_mask_p, unextend, fold): Use new hooks.
7354 * langhooks.h (struct lang_hooks_for_types): New hooks.
7355 * tree.h (signed_or_unsigned_type, signed_type,
7356 unsigned_type): Remove.
7358 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7359 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7361 2002-03-31 Richard Henderson <rth@redhat.com>
7363 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7364 (desc_frgr_mem): Fix reference to f16-f31.
7366 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7368 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7369 RTVEC_ELT): Const-ify.
7370 * varray.h (VARRAY_CHECK): Const-ify.
7371 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7372 ggc_mark_rtvec, ggc_mark): Const-ify.
7374 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7376 * diagnostic.c: Include langhooks-def.h.
7377 * Makefile.in (diagnostic.o): Update.
7379 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7381 * c-common.c (c_unsafe_for_reeval): Rename.
7382 * c-common.h (c_unsafe_for_reeval): Rename.
7383 * c-decl.c (finish_incomplete_decl): Rename.
7384 (c_init_decl_processing): Don't set langhook.
7385 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7386 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7387 * c-objc-common.c (c_objc_common_init): Don't set langhook.
7388 * c-tree.h (finish_incomplete_decl): Rename.
7389 * langhooks-def.h (lhd_unsafe_for_reeval): New.
7390 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7391 (LANG_HOOKS_INITIALIZER): Update.
7392 * langhooks.c (lhd_unsafe_For_reeval): New.
7393 * langhooks.h (struct langhooks): New hooks.
7394 * toplev.c (incomplete_decl_finalize_hook): Remove.
7395 (wrapup_global_declarations): Update.
7396 * tree.c (lang_unsafe_for_reeval): Remove.
7397 (unsafe_for_reeval): Update.
7398 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7401 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7402 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7404 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7406 * diagnostic.c (print_error_function): Remove.
7407 (default_print_error_function): Rename.
7408 (report_error_function): Update.
7409 * diagnostic.h (print_error_function): Remove.
7410 (default_print_error_function): Remove.
7411 * langhooks-def.h (struct diagnostic_context): Predeclare.
7412 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7413 (LANG_HOOKS_INITIALIZER): Update.
7414 * langhooks.h (struct diagnostic context): Predeclare.
7415 (struct lang_hooks): New hook.
7417 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7419 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7420 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7422 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7423 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7424 of PIC_OFFSET_TABLE_REGNUM thruout.
7425 * config/rs6000/rs6000.md: Likewise.
7426 * config/rs6000/darwin.h: Likewise.
7428 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7430 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7431 unsigned HOST_WIDE_INT, not unsigned int.
7433 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7435 PR middle-end/6096, middle-end/6098, middle-end/6099
7436 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7438 (fill_slots_from_thread): Likewise.
7440 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7442 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7443 floating fields in float regs.
7444 (function_arg_record_value_2): Likewise.
7446 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7448 * config/mmix/mmix.md (define_constants): Remove misleading
7449 FIXME. Add MMIX_fp_rO_OFFSET.
7450 ("nonlocal_goto_receiver"): Don't have stack-frame address of
7451 saved rO as part of the pattern. Remove FIXME.
7452 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
7453 here, at output-time.
7455 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7458 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7460 (output_v9branch): Likewise.
7462 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7464 * gcc.c: Revert previous patch for now.
7465 * config/i386/djgpp.h: Likewise.
7467 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7469 * config/mmix/crti.asm (_init): Register _fini with atexit.
7470 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7472 2002-03-31 Richard Henderson <rth@redhat.com>
7475 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7476 (ASM_OUTPUT_DEF_FROM_DECLS): New.
7478 2002-03-31 Richard Henderson <rth@redhat.com>
7480 * libgcc2.c (__bb_exit_func): Make static.
7482 * config/alpha/alpha.md (trap): New.
7484 2002-03-31 Richard Henderson <rth@redhat.com>
7486 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7487 promoted argument types; build trap.
7488 (expand_builtin_trap): New.
7489 (expand_builtin): Use it.
7490 * stmt.c (expand_nl_goto_receivers): Likewise.
7491 * expr.h (expand_builtin_trap): Declare.
7492 * libfuncs.h (LTI_abort, abort_libfunc): New.
7493 * optabs.c (init_optabs): Init abort_libfunc.
7495 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7497 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7498 (LINK_COMMAND_SPEC): ... from here.
7499 (init_gcc_specs): Duplicate it here too, omitting
7500 shared_name in the second copy.
7501 (init_spec): Test for duplicate
7502 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7504 2002-03-30 David S. Miller <davem@redhat.com>
7506 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7507 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7509 2002-03-30 Roger Sayle <roger@eyesopen.com>
7510 Richard Henderson <rth@redhat.com>
7512 * regmove.c (combine_stack_adjustments_for_block): Avoid
7513 emitting a stack adjustment of zero bytes. Let delete_insn
7516 2002-03-30 Richard Henderson <rth@redhat.com>
7518 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7519 (sparc_emitting_epilogue): New.
7520 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7521 * config/sparc/sparc-protos.h: Update.
7522 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7523 (TARGET_SWITCHES): Update.
7524 * config/sparc/sparc.md (return): Remove.
7525 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7526 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7527 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7528 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7529 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7530 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7531 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7532 Remove MASK_EPILOGUE.
7533 * doc/invoke.texi: Update.
7535 2002-03-30 Daniel Berlin <dan@dberlin.org>
7537 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7538 CPP will start the file for us.
7540 2002-03-30 Richard Henderson <rth@redhat.com>
7543 * config/ia64/ia64.c (group_barrier_needed_p): Special case
7544 prologue_allocate_stack.
7545 (ia64_single_set): Use insn codes for recognition of special
7546 cases, not rtl matching.
7547 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7549 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
7551 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7553 2002-03-30 Richard Henderson <rth@redhat.com>
7556 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7557 or -fomit-frame-pointer with profiling.
7558 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7559 (FUNCTION_PROFILER): Do nothing.
7560 (PROFILE_HOOK): New.
7561 * config/sparc/sparc.c (sparc_override_options): Don't check
7562 code models for profiling.
7563 (sparc_function_profiler): Remove.
7564 (sparc_profile_hook): New.
7565 * config/sparc/sparc-protos.h: Update.
7567 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7569 PR optimization/6086
7570 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7571 of SUBREG of volatile MEM or because the MEM was mode dependent,
7572 return CLOBBER instead of unmodified SUBREG.
7574 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7576 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7577 when not optimizing.
7579 * toplev.c (rest_of_compilation): Cann mark_constant_function
7580 only when optimizing.
7582 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7585 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7586 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7587 (try_optimize_cfg): clear all AUX fields.
7589 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7590 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7591 (ix86_address_cost): Be prepared for SUBREGed registers.
7592 (legitimate_address_p): Accept SUBREGed registers.
7594 2002-03-29 Richard Henderson <rth@redhat.com>
7597 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7599 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7601 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7602 for aggregate and TFmode types.
7604 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7606 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7608 2002-03-29 Richard Henderson <rth@redhat.com>
7611 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7612 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7614 2002-03-29 Richard Henderson <rth@redhat.com>
7617 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7618 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7619 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7620 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7622 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7624 2002-03-29 Dale Johannesen <dalej@apple.com>
7626 * loop.c (combine_movables): Do allow combination of pseudos.
7628 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
7630 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7631 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7632 No functional change except ...
7633 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
7634 * doc/install.texi (*-*-freebsd*): Document port configuration.
7636 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7638 * Makefile.in (convert.o, calls.o, expmed.o): Update.
7639 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7641 * builtin-types.def (BT_PTRMODE): Update.
7642 * c-common.c (type_for_size): Rename c_common_type_for_size.
7643 (type_for_mode): Similarly.
7644 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7646 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7647 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7648 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7650 * c-typeck.c (common_type, comptypes, default_conversion):
7652 * calls.c: Include langhooks.h.
7653 (emit_library_call_value_1): Use new hooks. Avoid redundant
7655 * convert.c: Include langhooks.h
7656 (convert_to_pointer, convert_to_integer): Use new hooks.
7657 * except.c (init_eh): Similarly.
7658 * expmed.c: Include langhooks.h.
7659 (expand_mult_add): Use new hooks.
7660 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7661 try_casesi): Similarly.
7662 * fold-const.c (optimize_bit_field_compare, make_range,
7663 decode_field_reference, fold_truthop, fold): Similarly.
7664 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
7665 put_var_into_stack): Similarly.
7666 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
7667 LANG_HOOKS_TYPE_FOR_SIZE): New.
7668 (LANG_HOOKS_TYPES_INITIALIZER): Update.
7669 * langhooks.h (lang_hooks_for_types): New hooks.
7670 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
7671 * tree.c (get_unwidened, get_narrower): Similarly.
7672 * tree.h (type_for_mode, type_for_size): Remove.
7673 * varasm.c (force_const_mem): Use new hooks.
7674 * utils2.c (nonbinary_modular_operation): Update.
7676 * objc-act.c (handle_impent): Update.
7677 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
7680 2002-03-29 Steve Ellcey <sje@cup.hp.com>
7682 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
7683 * config/ia64/ia64.c (basereg_operand): New.
7684 * config/ia64/ia64-protos.h (basereg_operand): Declare.
7685 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
7687 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7689 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
7690 unwind information when frame_pointer_needed.
7691 (mmix_assemble_integer): Tweak wording in comment.
7693 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7695 * Makefile.in (except.o): Update.
7696 * except.c: Include langhooks.h.
7697 (init_eh): Use langhook.
7698 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
7699 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
7700 (LANG_HOOKS_INITIALIZER): Update.
7701 * langhooks.h (lang_hooks_for_types): New.
7702 (struct lang_hooks): Add it.
7703 * tree.c (make_lang_type_fn, make_lang_type): Remove.
7704 * tree.h (make_lang_type_fn, make_lang_type): Remove.
7706 * alpha/alpha.c: Include langhooks.h.
7707 (alpha_build_va_list): Use langhook.
7708 * d30v/d30v.c: Include langhooks.h.
7709 (d30v_build_va_list): Use langhook.
7710 * i386/i386.c: Include langhooks.h.
7711 (ix86_build_va_list): Use langhook.
7712 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
7713 * s390/s390.c: Include langhooks.h.
7714 (s390_build_va_list): Use langhook.
7715 * stormy16/stormy16.c: Include langhooks.h.
7716 (stormy16_build_va_list): Use langhook.
7718 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7721 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
7723 (length): Compute variable length for branches/calls/jumps here.
7724 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
7725 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
7726 define branch_type attribute.
7727 (divsi3_sp32): Maximum length is 6 not 7.
7728 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
7729 call_address_untyped_struct_value_sp32,
7730 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
7731 * config/sparc/sparc.c (empty_delay_slot): New function.
7732 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
7733 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
7735 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7737 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
7738 nonzero_bits if not needed.
7739 (nonzero_bits) [XOR]: Likewise.
7740 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
7741 reg_last_set_mode and mode are both MODE_INT, but not equal.
7742 (record_value_for_reg): Compute reg_last_set_nonzero_bits
7743 in nonzero_bits_mode for MODE_INT modes.
7745 2002-03-28 Richard Henderson <rth@redhat.com>
7748 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
7749 to GAS. Correct drift between alternatives.
7751 2002-03-28 Richard Henderson <rth@redhat.com>
7754 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
7756 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
7758 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
7759 emulation to the linker.
7761 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
7763 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
7764 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
7766 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
7768 * combine.c (simplify_and_const_int): Make sure to apply mask
7769 when force_to_mode returns a constant integer. PR3311.
7771 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7773 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
7775 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7777 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
7778 and Objective-C Dialect Options.
7780 2002-03-28 Richard Henderson <rth@redhat.com>
7782 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
7783 comparison should be done vs !=0 not >0 return code. Tidy cases.
7785 2002-03-28 Richard Henderson <rth@redhat.com>
7787 * c-decl.c (finish_function): New arg can_defer_p. Pass it
7788 on to c_expand_body.
7789 * c-tree.h (finish_function): Update decl.
7790 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
7792 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
7794 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
7796 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
7798 * rtlanal.c: Include flags.h
7799 (may_trap_p): Do not mark FP operations if trapping
7800 if !flag_trapping_math
7801 * Makefile.in (rtlanal.o): Add dependency on flag.h
7802 * ifcvt.c (noce_operand_ok): Avoid the lameness.
7804 2002-03-27 Zack Weinberg <zack@codesourcery.com>
7806 * mips.md: Use dconst1, not 1.0, as first argument of
7807 REAL_VALUE_LDEXP. Don't use union real_extract.
7809 2002-03-28 Alan Modra <amodra@bigpond.net.au>
7811 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
7812 rather than $target. Heed program_prefix and
7813 program_transform_name. Search for gas in cross-compiler case too.
7814 "test -x" rather than "test -f".
7815 (gcc_cv_ld): Likewise.
7816 (gcc_cv_nm): Heed program_prefix and program_transform_name.
7817 (gcc_cv_objdump): Likewise.
7818 * configure: Regenerate.
7820 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7822 * Makefile.in (attribs.o): Update.
7823 * attribs.c: Include langhooks.h.
7824 (decl_attributes): Use langhook.
7825 * c-decl.c (insert_default_attributes): Rename.
7826 * c-tree.h (c_insert_default_attributes): New.
7827 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
7828 (LANG_HOOKS_INITIALIZER): Update.
7829 * langhooks.h (struct lang_hooks): New hook.
7830 * tree.h (insert_default_attributes): Remove.
7832 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
7834 2002-03-27 Andreas Schwab <schwab@suse.de>
7836 * config/i386/i386.c (classify_argument): Also check for
7839 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7841 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
7844 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
7846 * i960.md (ret): Set PC.
7847 (nonlocal_goto): Fix expander.
7848 * builtins.c (epxand_builin_longjmp): Check that we've emitted
7851 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
7853 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
7856 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7858 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
7859 assigning to BLOCK_FOR_INSN directly.
7861 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
7863 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
7865 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7867 * c-common.c (c_expand_expr): Fix prototype.
7868 * c-common.h (c_expand_expr): Always declare, update.
7869 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7870 * c-objc-common.c (c_objc_common_init): No global hook.
7871 * expr.c (expand_expr): Use langhook.
7872 * expr.h (enum expand_modifier): Conditionally declare.
7873 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
7874 (LANG_HOOKS_INITIALIZER): Update.
7875 * langhooks.c (lhd_expand_expr): New.
7876 * langhooks.h (struct lang_hooks): New hook.
7877 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
7878 (lang_independent_init): Don't default hook.
7880 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7882 2002-03-27 Richard Henderson <rth@redhat.com>
7885 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
7886 TARGET_CONST_GP. Simplify conditions.
7888 2002-03-27 Richard Henderson <rth@redhat.com>
7890 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7891 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
7892 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
7894 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
7896 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
7897 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
7898 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
7899 Remove unnecessary masks.
7900 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
7901 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
7902 -mwindows, -mdll switches and their negations.
7904 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7906 * gcc-common.c (lang_mark_false_label_stack): Remove.
7907 * ggc.h (lang_mark_false_label_stack): Similarly.
7909 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
7911 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
7913 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
7914 or __rtems_ is defined.
7916 2002-03-26 Richard Henderson <rth@redhat.com>
7918 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
7919 if a non-trivial load was emitted.
7920 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
7921 in high+extra+low case.
7923 2002-03-26 Richard Henderson <rth@redhat.com>
7925 * config.gcc (sparc*-solaris): Use float_format=sparc.
7927 2002-03-26 Richard Henderson <rth@redhat.com>
7929 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7930 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
7931 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
7932 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
7933 (WINT_TYPE_SIZE): Fix at 32.
7935 2002-03-26 Richard Henderson <rth@redhat.com>
7937 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
7938 until after eh landing pad generation.
7939 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
7940 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
7942 2002-03-26 Richard Henderson <rth@redhat.com>
7944 * expr.h (ADD_PARM_SIZE): One more convert for INC.
7946 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
7948 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
7949 and warning switches.
7950 (cc1_options): Likewise.
7952 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
7954 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
7955 Restore more of the signal context. Set no_reg_stack_frame.
7956 * config/ia64/unwind-ia64.c (unw_state_record):
7957 Add no_reg_stack_frame, comments.
7958 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
7959 (uw_update_context): Adjust bsp when unwinding from leaf,
7960 but not signal frame.
7962 2002-03-26 David Edelsohn <edelsohn@gnu.org>
7964 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
7966 2002-03-26 Bob Wilson <bob.wilson@acm.org>
7968 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
7970 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
7973 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
7974 "Add a pool_range attribute", which was lost during the ARM/Thumb
7977 2002-03-26 Bob Wilson <bob.wilson@acm.org>
7979 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
7980 a register into the MAC16 accumulator.
7982 2002-03-26 Andrew Cagney <ac131313@redhat.com>
7984 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
7985 (Warning Options): Document -Wswitch-enum.
7986 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
7988 (warn_switch_enum): Define variables.
7989 * flags.h (warn_switch_enum): Declare variables.
7990 * stmt.c (expand_end_case_type): When warn_switch_enum /
7991 -Wswitch-enum, perform switch checks.
7994 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
7996 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
7997 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
7998 (reload_muladdsi_compare0_scratch): Delete.
8000 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8002 * doc/install.texi (*-*-freebsd*): Update.
8004 2002-03-26 Richard Henderson <rth@redhat.com>
8006 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8007 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8009 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8010 types from the normal argument frame.
8012 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8013 variable sized objects by reference.
8014 (sparc_va_arg): Receive them by reference too.
8016 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8018 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8019 code to not restoring global registers.
8021 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8023 * Makefile.in (ggc-common.o): Update.
8024 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8025 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8026 * c-tree.h (c_mark_tree): New.
8027 * ggc-common.c: Include langhooks.h.
8028 (gcc_mark_trees): Use new langhook.
8029 * ggc-callbacks.c: Delete file.
8030 * ggc.h (lang_mark_tree): Remove.
8031 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8032 (LANG_HOOKS_INITIALIZER): Update.
8033 * langhooks.h (struct lang_hooks): New hook.
8035 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8037 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8039 * doc/cpp.texi: Exclude entire Top node from printed manual.
8040 Move option index after directive index. Insert page breaks
8041 before GFDL and concept index. Index environment variables
8042 with command line options.
8043 * doc/cppenv.texi: Use @vtable for environment variable list.
8044 Add paragraph explaining semantics of empty elements in path
8045 variables. Exclude a cross-reference to Fishkill from the
8046 manpage. Remove an unnecessary cross-reference of the entry
8047 right above the referer. Don't use @anchor in text that goes
8049 * doc/cppopts.texi: Cross-reference the environment variables
8050 section, not the specific environment variable, for consistency.
8052 2002-03-25 Richard Henderson <rth@redhat.com>
8054 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8055 anywhere in the block. Don't refer to insns that have been
8056 removed from the chain. Iterate backward through the new insns.
8057 Don't refer to edges that have been removed.
8059 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8061 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8062 test for overflow of constant.
8064 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8067 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8068 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8069 these patterns on arm_archv4.
8071 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8073 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8076 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8078 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8079 float_handled, float_handler, float_signal, set_float_handler,
8080 and do_float_handler. Set handler for SIGFPE to crash_signal.
8081 * toplev.h: Don't prototype do_float_handler.
8083 * c-lex.c: Fold parse_float into lex_number. Make warning
8084 about portability of hex float constants more informative, and
8085 don't issue it on top of a syntax error.
8086 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8088 * real.h: Define REAL_VALUE_ABS here...
8089 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8090 simplify_unary_real, simplify_binary_real, and
8091 simplify_binary_is2orm1 into their callers.
8092 * tree.c: Fold build_real_from_int_cst_1 into caller.
8094 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8096 * tsystem.h: Include float.h here...
8097 * libgcc2.c: ... not here.
8099 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8101 Fixes for: PR bootstrap/3591, target/5676
8102 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8103 defined. Do not disable exceptions or rtti.
8104 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8105 mcore.h. Disable exceptions and rtti, since they are not
8108 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8110 * c-decl.c (maybe_build_cleanup): Remove.
8111 * expr.c (expand_expr): Use langhook.
8112 * langhooks-def.h (lhd_return_null_tree,
8113 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8114 (LANGHOOKS_INITIALIZER): Update.
8115 * langhooks.c (lhd_return_null_tree): New.
8116 * langhooks.h (struct lang_hooks): New hook.
8117 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8118 * tree.h (maybe_build_cleanup): Remove.
8120 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8122 * regrename.c (build_def_use): Move recog_memoized
8123 before extract_insn.
8125 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8128 * expr.c (emit_group_store): Handle storing into CONCAT.
8130 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8132 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8133 corresponding MATCH_DUP.
8135 2002-03-24 Richard Henderson <rth@redhat.com>
8137 * unroll.c (unroll_loop): Zero label_map.
8139 * gcse.c: Include except.h.
8140 * Makefile.in (gcse.o): Update.
8142 2002-03-24 Richard Henderson <rth@redhat.com>
8144 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8145 Do resolve_unique_section before shared data clause.
8147 2002-03-24 Richard Henderson <rth@redhat.com>
8149 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8151 2002-03-24 Richard Henderson <rth@redhat.com>
8153 * recog.c (peephole2_optimize): Split blocks when EH insns are
8154 generated in the middle of a block. Do global life update if
8157 2002-03-24 Richard Henderson <rth@redhat.com>
8159 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8161 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8164 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8165 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8166 (init_dependency_output): Don't make no_output decision here.
8168 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8170 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8171 warn_switch. Update description.
8172 (expand_end_case_type): Call check_for_full_enumeration_handling
8175 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8177 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8178 (m68hc11_split_move): Call it to see if the source and destination
8179 operands use the same direction auto inc/dec mode, otherwise make the
8180 source an offsetable memory operand and generate an add.
8182 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8184 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8185 register for operand 2.
8186 ("*subsi3_zero_extendqi"): Likewise.
8187 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8188 bits so that it is compatible with a pop.
8189 ("*andhi3_gen"): Likewise.
8190 ("xorhi3"): Likewise.
8192 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8194 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8196 (cpp_post_options): ... not here.
8198 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8199 Aldy Hernandez <aldyh@redhat.com>
8201 Removal of separate preprocessor cpp0.
8203 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8204 cpp0, install-common): Update.
8205 * c-common.c (flag_preprocess_only): New.
8206 (c_common_init): Preprocess for -E.
8207 * c-common.h (flag_preprocess_only): New.
8208 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8209 * c-objc-common.c (c_init_decl_processing): Exit quickly
8210 for NULL return from c_common_init.
8211 * cpplib.h (cpp_preprocess_file): New.
8212 * cppmain.c (main, general_init, pfile, progname): Remove.
8213 (do_preprocessing): Rename cpp_preprocess_file, don't call
8214 cpp_finish. Don't close stdout here.
8215 (setup_callbacks): Update prototype.
8216 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8218 * tradcpp.c (main): Ignore -quiet.
8220 * lang-specs.h (default_compilers): Preprocess with cc1obj.
8222 2002-03-24 Richard Henderson <rth@redhat.com>
8224 PR optimization/5742
8225 * machmode.def: Add inner mode field to complex modes.
8226 * config/mips/mips.c (mips_function_value): Always define. Add
8227 new argument to handle libcalls.
8228 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8229 (FUNCTION_VALUE): Likewise.
8230 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8231 * config/mips/mips-protos.h: Update.
8233 2002-03-23 Richard Henderson <rth@redhat.com>
8235 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8236 * config/sparc/sparc-protos.h: Update.
8237 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8239 2002-03-23 Richard Henderson <rth@redhat.com>
8241 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8242 _start or _init begins the text segment.
8244 2002-03-23 David Edelsohn <edelsohn@gnu.org>
8246 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
8247 not HOST_WIDEST_INT.
8248 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8250 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
8253 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8254 operand argument to output_return_instruction.
8255 * arm.c (arm_print_operand, case 'd'): If the operand is
8256 const_true_rtx then just return.
8257 (arm_print_operand, case 'D'): If the operand is const_true_rtx
8260 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8262 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8263 (Warning Options): Document -Wswitch-default.
8264 * toplev.c (W_options): Add -Wswitch-default. Update comment on
8266 (warn_switch_default): Define variable.
8267 (warn_switch): Update comment.
8268 * flags.h (warn_switch_default): Declare variable.
8269 (warn_switch): Update comment.
8270 * stmt.c (expand_end_case): Check for and, when
8271 warn_switch_no_default, warn of a missing default case.
8273 2002-03-23 Alan Modra <amodra@bigpond.net.au>
8275 * real.h (N): Special case 128 bit doubles.
8277 * combine.c (simplify_comparison): When widening modes, ignore
8278 sign extension on CONST_INTs.
8280 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8282 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8283 passed to adjust_address. Fix comment formatting.
8286 2002-03-22 Zack Weinberg <zack@codesourcery.com>
8288 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8289 Always make REAL_VALUE_TYPE a struct containing an array of
8290 HOST_WIDE_INT, not a double. Tidy up the code deciding how
8291 big it is. Don't declare or use union real_extract.
8293 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8294 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8295 (print_operand), config/arm/arm.c (output_move_double),
8296 config/arm/arm.md (consttable_4, consttable_8),
8297 config/romp/romp.c (output_fpops), config/s390/s390.h
8298 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8299 (xtensa_output_literal): Don't use union real_extract.
8301 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8302 (sfmode_constant_to_ulong), config/ns32k/merlin.h
8303 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8304 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8305 (PRINT_OPERAND): Don't use local version of union
8308 * config/convex/convex.c (check_float_value), config/vax/vax.c
8309 (vax_float_literal), config/m88k/m88k.md (divdf3),
8310 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8311 config/pdp11/pdp11.c (output_move_quad): Don't do host
8312 arithmetic on target floating point quantities.
8314 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8315 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8317 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8318 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8320 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8321 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8323 * print-rtl.c (print_rtx): Disable code which needs
8324 floating-point emulator.
8325 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8326 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8327 depending on HOST_FLOAT_FORMAT to be defined properly.
8329 * config/1750a/1750a.c (get_double, float_label): Delete.
8330 (print_operand): Delete huge commented-out chunk. Use
8331 REAL_VALUE_TO_DECIMAL.
8332 * config/1750a/1750a-protos.h: Delete prototypes of deleted
8334 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8336 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8337 Use REAL_VALUE_TO_DECIMAL as ELF version does.
8338 * config/m88k/m88k.c (real_power_of_2_operand,
8339 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8340 real_extract out of the union; run the input through
8341 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8342 from that into the union.
8343 * config/pdp11/pdp11.c (output_move_double): Rearrange
8344 parentheses to make automatic indenter happy.
8346 * doc/tm.texi (Cross-compilation): Rename node to "Floating
8347 Point" and rewrite to describe current situation. Also adjust
8348 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8350 * doc/rtl.texi: Adjust cross reference.
8352 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8354 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8355 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8356 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8357 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8358 prevent use of sp as a reload register.
8359 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8360 non_acc_reg_operand.
8361 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8362 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8363 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8364 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8366 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8368 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8369 * cpplex.c (unterminated): Delete.
8370 (parse_string): No string literal may extend over multiple
8371 lines. Suppress the error when preprocessing assembly.
8372 * cppmain.c (scan_translation_unit): Strings are single-line.
8374 * doc/cpp.texi: Update to match.
8376 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8378 PR optimization/5854
8379 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8381 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8382 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8383 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8384 const0 if scratch register was not allocated.
8385 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8386 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8388 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8389 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8390 with GEN_INT (...) everywhere. Remove constraints in define_split
8392 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8393 require scratch register for setting 0 into regs/non-pushable memory.
8395 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8397 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8398 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8400 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
8402 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
8403 * cppinit.c (cpp_create_reader): On by default.
8404 (cpp_handle_option): Handle -W[no-]endif-labels.
8405 (cpp_post_options): Also enable if -pedantic.
8406 * cpplib.c (do_else): Use it.
8407 (do_endif): Likewise.
8408 * doc/cppopts.texi: Document new option.
8409 * doc/invoke.texi: Document new option.
8411 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
8413 * config/i386/i386.c, config/i386/i386.md: Change all occurences
8414 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8416 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8418 * flow.c (calculate_global_regs_live): Clear aux fields of
8421 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8423 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8424 REG or MEM subregs, pass rtx * instead of rtx to it.
8425 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8426 rtx * instead of rtx to alter_subreg.
8427 * config/m32r/m32r.c (gen_split_move_double): Likewise.
8428 * config/pj/pj.c (pj_output_rval): Likewise.
8430 2002-03-22 Richard Henderson <rth@redhat.com>
8433 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8434 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8435 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8436 (ia64_expand_prologue): Look at int_regs, not words, for number
8437 of incomming int regs.
8439 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
8441 * expr.c (expand_expr): A RESULT_DECL is part of a call.
8443 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
8445 * toplev.c (flag_loop_optimize, flag_crossjumping):
8446 New static variables.
8447 (rest_of_compilation): Conditionalize crossjumping and
8449 (parse_options_and_default_flags): Default loop_optimize and
8451 (lang_independent_options): Add -fcrossjumping and -floop-optimize
8452 * invoke.texi (crossjumping, loop-optimize): Document.
8454 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8456 * real.c (eiisneg): Move outside #ifdef NANS.
8458 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
8460 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8461 frequencies match; avoid match on different loop depths.
8462 (try_crossjump_to_bb): Kill tests that no longer brings time
8464 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8466 (split_edge): Likewise.
8468 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8471 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8472 * cfgrtl.c: Include insn-config.h
8473 (split_block) Dirtify block in presence of conditional execution
8475 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8477 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8478 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8479 (function_arg): Constify CUMULATIVE_ARGS.
8480 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8481 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8482 (UNITS_PER_DOUBLE): New macro.
8483 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
8484 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
8485 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
8486 fp_regs and stack_words.
8487 (EABI_FLOAT_VARARGS_P): New macro.
8488 * config/mips/mips.c (struct mips_arg_info): New.
8489 (mips_arg_info): New function.
8490 (function_arg_advance): Use it. Add adjustment instructions here
8491 rather than in function_arg.
8492 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
8493 for VOIDmode at the beginning of the function.
8494 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
8495 (function_arg_pass_by_reference): Likewise.
8496 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8497 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8498 (mips_va_start): Likewise. Use the new stack_words field of
8499 CUMULATIVE_ARGS to set up overflow area. Reformat.
8500 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
8501 doubles and other types, aligning the overflow pointer for non-doubles
8502 too. Remove some code duplication. Replace hard-coded constants.
8504 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8506 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8507 (CLASS_UNITS): Undefine.
8508 (CLASS_MAX_NREGS): Use FP_INC.
8509 * config/mips/mips.c (compute_frame_size): Likewise.
8510 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8512 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8514 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8515 prototype, and handle lexing numbers and identifiers.
8516 (parse_identifier): Update to new form of parse_slow.
8517 (parse_number): Fast path only, use parse_slow otherwise.
8518 (_cpp_lex_direct): Update calls to parse_number.
8520 2002-03-21 DJ Delorie <dj@redhat.com>
8522 * bb-reorder.c (make_reorder_chain_1): Protect against
8523 when redundant edges are omitted.
8524 * predict.c (dump_prediction): Likewise.
8526 2002-03-21 Richard Henderson <rth@redhat.com>
8529 * fixinc/inclhack.def (solaris_stdio_tag): New.
8530 * fixinc/fixincl.x: Regenerate.
8532 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8535 * c-typeck.c (process_init_element): Flag non-static
8536 initialization of a flexible array member as illegal.
8538 2002-03-22 Alan Modra <amodra@bigpond.net.au>
8540 * config/rs6000/t-linux64: New.
8541 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8542 t-ppccomm. Use t-rs6000 and t-linux64.
8543 (powerpc64-*-gnu* <tmake_file>): Likewise.
8544 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8545 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8546 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8548 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
8550 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8551 flag_really_no_inline instead of optimize == 0.
8553 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8555 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8557 * flags.h (flag_really_no_inline): New.
8559 * c-common.c (c_common_post_options): Initialize
8560 flag_really_no_inline.
8562 * toplev.c (flag_really_no_inline): New.
8564 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8566 * config/avr/avr.md (length): Fix length computation for
8567 conditional branches.
8569 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
8571 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8572 sdbout.o, profile.o): Update.
8573 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8575 * c-common.h (gettags): Move here from tree.h.
8576 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8577 insert_block, getdecls, kept_level_p, global_bindings_p): New.
8578 * dbxout.c (dbxout_init): Use getdecls langhook.
8579 * expr.c (expand_expr): Use insert_block langhook.
8580 * fold-const.c: Include langhooks.h.
8581 (fold_range_test, fold_binary_op_with_conditional_arg,
8582 fold): Use global_bindings_p langhook.
8583 * integrate.c (expand_inline_function): Use insert_block langhook.
8584 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8585 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8586 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8587 LANG_HOOKS_GETDECLS): New.
8588 (LANG_HOOKS_INITIALIZER): Update.
8589 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8591 * langhooks.h (struct lang_hooks_for_decls): New.
8592 (struct lang_hooks): Update.
8593 * profile.c: Include langhooks.h.
8594 (output_func_start_profiler): Use new langhooks.
8595 * sdbout.c: Include langhooks.h.
8596 (sdbout_init, sdbout_finish): Use getdecls langhook.
8597 * stmt.c: Include langhooks.h.
8598 (expand_fixup, fixup_gotos): Use new langhooks.
8599 * stor-layout.c: Include langhooks.h.
8600 (variable_size): Use global_bindings_p langhook.
8601 * toplev.c (compile_file): Use getdecls langhook.
8602 * tree-inline.c (remap_block): Use insert_block langhook.
8603 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8604 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8606 2002-03-21 Richard Henderson <rth@redhat.com>
8608 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8609 constants in .data when -fpic.
8611 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8613 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8616 2002-03-21 Tom Tromey <tromey@redhat.com>
8618 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
8620 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8622 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8624 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8626 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8627 Richard Henderson <rth@redhat.com>
8630 * c-common.c (c_expand_expr): Preserve result of a statement
8631 expression if needed.
8633 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8636 * genrecog.c (maybe_both_true_mode): Remove.
8637 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8638 * machmode.def (Pmode): Likewise.
8640 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
8642 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8643 (nonlocal_mentioned_p_1): New function.
8644 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8645 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8646 (mark_constant_function): Recognize pure functions.
8647 * rtl.h (global_reg_mentioned_p): New prototype.
8648 * rtlanal.c (global_reg_mentioned_p,
8649 global_reg_mentioned_p_1): New function.
8651 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8653 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8655 * fixinc/fixincl.x: Regenerate.
8657 2002-03-20 Jason Merrill <jason@redhat.com>
8659 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8661 2002-03-20 Michael Meissner <meissner@redhat.com>
8663 * doc/invoke.texi (Optimize Options): Document that -O2 sets
8666 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8668 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
8669 ".literal_position" directive before the constant pool.
8671 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8673 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
8674 Add Craig Rodrigues.
8675 Add Brad Lucier to testers.
8677 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8680 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
8682 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
8683 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
8684 instead of insn_extract.
8686 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8689 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
8691 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
8692 stmt if some case has been output.
8694 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8697 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
8698 movsfcc_1, movdfcc_1): Add %O2.
8699 * config/i386/i386.c (print_operand): Handle %ON.
8700 Print . before float condition codes in Sun as cmov syntax.
8701 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
8702 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
8705 2002-03-20 Philip Blundell <pb@nexus.co.uk>
8707 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
8708 return instruction if PC was popped.
8710 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8712 * config/xtensa/xtensa.md: Remove unused type attributes.
8713 (adddi_carry, subddi_carry): Change type attribute to "multi".
8715 2002-03-19 Dale Johannesen <dalej@apple.com>
8717 PR optimization/5999, middle-end/5731
8718 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
8719 multiplications by reciprocals.
8721 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
8723 * Makefile.in: Update.
8724 * c-common.c: Include langhooks.h.
8725 (inline_forbidden_p): Use new hook.
8726 * diagnostic.c: Include langhooks.h.
8727 (format_with_decl, announce_function,
8728 default_print_error_function): Use new hook.
8729 * dwarf2out.c (dwarf2_name): Use new hook.
8730 * function.c: Include langhooks.h.
8731 (init_function_start): Use new hook.
8732 * langhooks-def.h (lhd_decl_printable_name): New.
8733 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
8734 (LANGHOOKS_INITIALIZER): Update.
8735 * langhooks.c (lhd_decl_printable_name): New.
8736 * langhooks.h (struct lang_hooks): New hook.
8737 * toplev.c (decl_name, decl_printable_name): Remove.
8738 (open_dump_file): Use new hook.
8739 (process_options): Remove old hook.
8740 * tree.h (decl_printable_name): Remove.
8742 * objc-act.c (objc_init): Remove old hook.
8743 (objc_printable_name): Export.
8744 * objc-act.h (objc_printable_name): New.
8745 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
8747 2002-03-19 Jim Blandy <jimb@redhat.com>
8749 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
8750 the start_source_file debug hook, not the current line number.
8752 2002-03-19 Richard Henderson <rth@redhat.com>
8754 * flow.c (EH_USES): Provide default.
8755 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
8756 * doc/tm.texi (EH_USES): New.
8758 * config/ia64/ia64.c (ia64_eh_uses): New.
8759 * config/ia64/ia64-protos.h: Update.
8760 * config/ia64/ia64.h (EH_USES): New.
8762 2002-03-19 Richard Henderson <rth@redhat.com>
8764 * varasm.c (output_constant_def): Fix stupid typo.
8766 2002-03-19 Richard Henderson <rth@redhat.com>
8769 * except.c (current_function_has_exception_handlers): New.
8770 * except.h: Declare it.
8771 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
8772 Combine tests that disable all sibcalls for the function.
8774 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
8776 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
8779 2002-03-19 Richard Henderson <rth@redhat.com>
8782 * config/ia64/ia64.c: Revert 2002-03-01 patch.
8783 * config/ia64/ia64.h (INIT_EXPANDERS): New.
8785 2002-03-19 Jim Blandy <jimb@redhat.com>
8787 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
8788 name, even if the replacement list contains no tokens, as required
8791 2002-03-19 Jason Merrill <jason@redhat.com>
8793 * varasm.c (globalize_decl): Get the name from the RTL, not
8794 DECL_ASSEMBLER_NAME.
8796 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
8798 2002-03-19 Bob Wilson <bob.wilson@acm.org>
8800 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
8801 subdi_carry): Define.
8803 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8805 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
8806 about -fpic/-fPIC if extra_warnings set.
8808 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8810 * expr.c (expand_expr): Sign-extend CONST_INT generated from
8811 TREE_STRING_POINTER.
8812 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
8814 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8816 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
8817 in favor of SP if FRAME_POINTER_REQUIRED is false.
8819 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
8821 * emit-rtl.c (gen_int_mode): New function.
8822 * rtl.h: Prototype for it.
8823 * combine.c (make_extraction, simplify_comparison), expmed.c
8824 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
8825 (convert_modes, store_field), optabs.c (expand_fix),
8826 simplify-rtx.c (neg_const_int, simplify_unary_real),
8828 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
8829 Use it instead of GEN_INT (trunc_int_for_mode (...)).
8831 2002-03-19 Jakub Jelinek <jakub@redhat.com>
8834 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
8835 convert_parm_for_inlining.
8836 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
8838 * langhooks-def.h: Likewise.
8839 * objc/objc-lang.c: Likewise.
8840 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
8842 * tree-inline.c (initialize_inlined_parameters):
8843 Call convert_parm_for_inlining lang hook if needed.
8844 * c-typeck.c (c_convert_parm_for_inlining): New function.
8845 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
8847 2002-03-18 Mark Mitchell <mark@codesourcery.com>
8849 * calls.c (precompute_arguments): Do not assume that temporaries
8850 can be destroyed after expanding the argument.
8851 (expand_call): Likewise.
8853 2002-03-15 Eric Christopher <echristo@redhat.com>
8855 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
8856 Fix register preference on last change.
8857 * config/mips/mips.c (mips_return_in_memory): New function.
8858 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
8859 * config/mips/mips-protos.h: Declare.
8860 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
8861 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
8863 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
8865 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
8867 (anddi3, iorsi3): Likewise.
8869 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
8870 use %gprel for symbols that are going to be placed in linkonce
8873 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
8874 RETURN_ADDRESS_POINTER_REGNUM to $ra.
8875 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
8876 not needed. Disregard leaf_function_p().
8877 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
8878 mips16 frame pointer.
8879 * config/mips/mips.md (store ra): Only to small SP offsets.
8880 2001-08-22 Graham Stott <grahams@redhat.com>
8881 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
8882 return a REG rtx for the return address register.
8884 2002-03-18 Bob Wilson <bob.wilson@acm.org>
8886 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
8887 constant-pool addresses as "mode-dependent".
8888 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
8890 2002-03-18 Jakub Jelinek <jakub@redhat.com>
8893 * expr.c (emit_group_load): Use extract_bit_field if
8894 needed for CONCAT arguments.
8896 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
8899 * arm.md (tablejump): Make this a define_expand. For PIC add the
8900 offset to the base of the table.
8901 (thumb_tablejump): Matcher for Thumb tablejump insn.
8902 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
8903 as the difference of two labels.
8904 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8905 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
8907 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
8908 * arm.c (get_jump_table_size): If the table is not in the text
8909 section, return zero.
8911 2002-03-18 Bernd Schmidt <bernds@redhat.com>
8913 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
8915 (arm_reload_out_hi): Use gen_lowpart instead of
8916 gen_rtx_SUBREG to access QImode components.
8917 * config/arm/arm.md: Disable zero_extend split for QImode
8918 subregs in BIG_ENDIAN mode.
8919 (storehi_bigend): Match use of least significant byte.
8920 (storeinthi): Remove extraneous SUBREG.
8921 Add missing construction of operands[2].
8922 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
8923 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
8924 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
8926 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
8928 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
8931 2002-03-17 Richard Henderson <rth@redhat.com>
8933 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
8936 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
8938 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
8939 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
8941 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8943 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
8945 * predict.c (estimate_bb_frequencies): Delete unused variables.
8947 2002-03-17 Richard Henderson <rth@redhat.com>
8949 * config/ia64/ia64.c (ia64_attribute_table): Move before
8950 targetm definition. Make static.
8952 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
8954 * c-common.h (yyparse, c_common_parse_file): New.
8955 * c-lang.c: Include c-common.h.
8956 (LANG_HOOKS_PARSE_FILE): Redefine.
8957 * c-lex.c: Include c-common.h.
8958 (yyparse): Rename c_common_parse_file. Call yyparse.
8959 * c-parse.in (yyparse): Remove macro.
8960 * c-tree.h (yyparse_1): Remove.
8961 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
8962 (LANG_HOOKS_INITIALIZER): Update.
8963 * langhooks.h (struct lang_hoooks): New hook parse_file.
8964 * toplev.c (compile_file): Use parse_file hook.
8965 * tree.h (yyparse): Remove.
8966 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
8968 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
8970 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
8971 float_truncate, not fix.
8972 ("*truncdfsf2_real"): Ditto.
8973 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
8975 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
8977 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
8979 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
8980 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
8981 where appropriate. Make the second reference to
8982 leaf_function_p a function call, as intended. Reindented.
8984 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
8985 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
8987 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
8988 add register to non-constant into sp.
8990 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
8991 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
8992 (mips16_gp_pseudo_rtx): Lose.
8993 (INIT_EXPANDERS): Deleted.
8994 * config/mips/mips.c (mips_init_machine_status): New.
8995 (mips_free_machine_status): New.
8996 (mips_mark_machine_status): New.
8997 (override_options): Set them.
8998 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
8999 (struct machine_function): ... new. Replaced all references.
9000 (mips_add_gc_roots): Don't mark them.
9001 (embedded_pic_fnaddr_reg): New, extracted from...
9002 (embedded_pic_offset): ... here.
9003 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9006 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9008 * cppinit.c: Revert -MD removal.
9010 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9012 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9013 soft registers by default for 68HC12.
9014 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9015 when compiling with -fomit-frame-pointer.
9016 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9017 (expand_epilogue): Likewise.
9018 (m68hc11_gen_rotate): Use exg when rotating by 8.
9020 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9022 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9023 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9024 (splits): Remove unused add splits.
9025 ("*addhi3_68hc12"): Tune constraints.
9026 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9027 constant fits in 8-bits and D is dead use abx/aby instructions.
9028 ("*addhi3"): Remove extern declaration of ix_reg.
9029 ("*subsi3"): Optimize and provide new split.
9030 ("subhi3"): Cleanup.
9031 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9032 (arith splits): For 68hc12 save the address register on the stack
9033 and do the arithmetic operation with a pop.
9035 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9037 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9038 allocating QImode in address registers.
9039 ("*movqi_m68hc11"): Likewise.
9041 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9043 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9045 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9047 * cppinit.c (print_help): Display -MD and -MMD.
9048 Don't display usage string. Update assertion syntax and
9050 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9051 (cpp_handle_option): Update.
9053 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9055 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9056 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9057 and define it so that regardless of target CPU size,
9058 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9059 of "int" rather than "long."
9061 2002-03-15 Richard Henderson <rth@redhat.com>
9063 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9066 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9068 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9069 ("tstqi" split): Avoid using memory for tstqi on address register.
9070 (splits): Remove constraints.
9071 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9072 ("cmpdf", "cmpsf"): Remove since not used.
9073 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9074 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9076 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9078 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9079 ("neghi2"): Tighten constraints.
9080 ("one_cmplsi2"): Optimize and simplify split.
9081 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9083 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9085 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9086 and split of AND operation to clear the upper bits.
9087 ("*logicalsi3_zextqi"): Likewise.
9088 ("*logicallhi3_zexthi_ashift8"): Likewise.
9089 ("*logicalsi3_silshr16"): Likewise.
9090 ("logicalsi3_silshl16"): Likewise.
9091 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9093 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9095 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9096 (m68hc11_indirect_p): New function.
9097 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9098 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9100 (asm_print_register): Likewise.
9101 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9102 (m68hc11_indirect_p): Declare.
9103 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9104 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9105 (TARGET_SWITCHES): New option -mrelax.
9106 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9108 ("iorsi3", "xorsi3"): Likewise.
9109 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9110 ("*andhi3_mem"): New to handle destination in memory with bclr
9111 and a scratch register.
9112 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9113 ("*andhi3_const"): New when operand2 is constant.
9114 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9115 ("*andhi3_gen"): Cleanup of the old "andhi3".
9116 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9117 ("xorqi3"): Update constraints.
9119 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9121 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9122 for reg_equiv_memory_loc when the operand is a register that does
9123 not get a hard register (stack location).
9124 (tst_operand): After reload, accept all memory operand.
9125 (symbolic_memory_operand): Fix detection of symbolic references.
9126 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9127 accept symbols and any constant.
9129 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9131 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9132 note on the insn that sets the soft frame register.
9133 (must_parenthesize): ix and iy are also reserved names.
9134 (print_operand_address): One more place where parenthesis are required
9135 to avoid confusion with register names.
9136 (m68hc11_gen_movhi): Allow push of stack pointer.
9137 (m68hc11_check_z_replacement): Fix handling of parallel with a
9139 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9140 the replacement register is.
9141 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9142 and D8_REGS classes.
9143 (MODES_TIEABLE_P): All modes are tieable except QImode.
9145 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9147 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9148 (___subdi3): Likewise.
9149 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9150 (__map_data_section): Optimize 68hc11 case.
9152 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9154 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9155 than a shift to avoid adding a register with itself.
9156 (m68hc11_memory_move_cost): Take into account NO_REGS.
9157 (m68hc11_register_move_cost): Update and use memory move cost
9159 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9160 it gives more opportunities to cse to optimize.
9161 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9162 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9164 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9166 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9167 * c-common.def (CLEANUP_STMT): New tree node.
9168 * c-common.h (CLEANUP_DECL): New macro.
9169 (CLEANUP_EXPR): Likewise.
9170 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9171 * expr.c (expand_expr): Tidy.
9172 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9173 * tree-inline.c (initialize_inlined_parameters): Clean up
9174 new local variables.
9176 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9179 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9180 before movrXX only, use reg_overlap_mentioned_p.
9181 Only special case NE if just one insn can be generated.
9183 2002-03-15 Jason Merrill <jason@redhat.com>
9185 * varasm.c (assemble_variable): Call resolve_unique_section before
9186 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9189 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9192 * arm.md (split pattern for thumb shiftable immediates): Add comment
9193 explaining non-obvious test.
9195 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9198 * arm.md (movaddr, movaddr_insn): Delete.
9200 2002-03-15 Jason Merrill <jason@redhat.com>
9202 * toplev.c (wrapup_global_declarations): Clarify variable handling.
9203 -fkeep-static-consts doesn't apply to comdats.
9205 2002-03-14 Richard Henderson <rth@redhat.com>
9207 * c-decl.c: Include c-pragma.h.
9208 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9209 (finish_function): Tidy.
9210 * c-pragma.c: Include c-common.h.
9211 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9212 (handle_pragma_weak): Use them.
9213 (init_pragma): Register pending_weaks.
9214 * c-pragma.h (maybe_apply_pragma_weak): Declare.
9215 * print-tree.c (print_node): Print DECL_WEAK.
9216 * varasm.c (mark_weak_decls): Remove.
9217 (remove_from_pending_weak_list): Remove.
9219 (asm_emit_uninitialised): Call globalize_decl for weak commons.
9220 (weak_decls): Make a tree_list.
9221 (declare_weak): Cons weak_decls directly.
9222 (globalize_decl): Remove weak_decls elements directly.
9223 (weak_finish): Simplify weak_decls walk. Don't weaken unused
9224 symbols. Don't pretend to handle aliases.
9225 (init_varasm_once): Update weak_decls registry.
9226 * Makefile.in: Update dependencies.
9228 2002-03-14 Richard Henderson <rth@redhat.com>
9231 * config/ia64/ia64.c: Include tm_p.h last.
9232 (gen_nop_type): Remove duplicate definition.
9233 (cycle_end_fill_slots): Set sched_data for second L slot.
9234 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9235 (nop_cycles_until): Fix typos.
9237 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9239 PR optimization/5891
9240 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9242 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9244 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9245 descriptors correctly.
9247 2002-03-14 Michael Meissner <meissner@redhat.com>
9249 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9250 100, allowing MAX_UNROLLED_INSNS to be overridden.
9252 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9255 * unroll.c (params.h): Include.
9256 (MAX_UNROLLED_INSNS): Delete, now in params.h.
9258 * doc/invoke.texi (--param max-unroll-insns): Document.
9260 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9262 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9264 * arm.md: Fix warnings about constraints in peepholes and splits.
9266 2002-03-14 Zack Weinberg <zack@codesourcery.com>
9268 * cpphash.h (struct lexer_state): Remove line_extension member.
9269 * cpplib.c (dequote_string, do_linemarker): New functions.
9270 (linemarker_dir): New data object.
9271 (DIRECTIVE_TABLE): No longer need to interpret #line in
9272 preprocessed source. Delete obsolete comment about return
9274 (end_directive, directive_diagnostics, _cpp_handle_directive):
9275 Don't muck with line_extension.
9276 (directive_diagnostics): No need to issue warnings for
9278 (_cpp_handle_directive): Issue warnings for linemarkers here,
9279 when appropriate. Dispatch linemarkers to do_linemarker, not
9281 (do_line): Code to handle linemarkers split out to do_linemarker.
9282 Convert escape sequences in filename argument, both places.
9284 * cppmacro.c (quote_string): Rename cpp_quote_string and
9285 export. All callers changed.
9286 * cpplib.h (cpp_quote_string): Prototype.
9287 * cppmain.c (print_line): Call cpp_quote_string on to_file
9290 * doc/cpp.texi: Document that escapes are now interpreted in
9291 #line and in linemarkers, and that non-printing characters are
9292 converted to octal escapes when linemarkers are generated.
9294 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
9296 * emit-rtl.c (try_split): Use delete_insns.
9297 * recog.c (split_all_insns): Fix terminating condition.
9299 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9300 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9303 * arm.c (arm_output_epilogue): Fix floating-point register save
9304 adjustment when using a frame pointer.
9306 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
9308 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9309 * config/mips/mips.c (compute_frame_size): Retrofit them here.
9310 (save_restore_insns, mips_expand_epilogue): And here.
9311 (build_mips16_call_stub): And here.
9312 (mips_function_value): Use the new macros to decide whether a single
9313 or complex float can be returned in floating-point registers. Return
9314 a parallel rtx in the complex case.
9316 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
9318 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9319 call after liveness analysis.
9321 * recog.c (split_insn): Use delete_insn_and_edges.
9323 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9324 instructions to have branch prediction notes.
9325 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9327 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
9329 * configure.in: Don't pass -Wno-long-long to a ADA compiler
9330 that doesn't support it.
9331 * configure: Regenerate.
9333 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9336 * config/sparc/sparc.md (normal_branch, inverted_branch,
9337 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9338 inverted_fp_branch): Adjust calls to output_cbranch.
9339 Set length attribute.
9340 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9341 output_v9branch. Set length attribute.
9342 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9344 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9345 (output_cbranch): Likewise. Handle far branches.
9346 (output_v9branch): Handle far branches.
9347 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9349 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9350 noov_compare64_op predicates.
9352 2002-03-13 Jason Merrill <jason@redhat.com>
9354 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9355 into the function and constify it.
9356 * gthr-dce.h, gthr-solaris.h: Likewise.
9358 2002-03-13 David Edelsohn <edelsohn@gnu.org>
9360 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9361 * config/rs6000/rs6000.c (rs6000_va_arg): Use
9362 std_expand_builtin_va_arg if not ABI_V4.
9364 2002-03-13 Jason Merrill <jason@redhat.com>
9366 * varasm.c (globalize_decl): New fn.
9367 (assemble_start_function): Use it.
9368 (asm_emit_uninitialized): Use it.
9369 (assemble_alias): Use it.
9370 (assemble_variable): Use it.
9372 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
9374 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9375 2002-03-12 internal visibility change.
9376 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9377 visibility into SYMBOL_REF_FLAG.
9379 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
9381 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9382 VOIDmode operand. Add compile-time optimization for constant results.
9384 2002-03-12 Jason Merrill <jason@redhat.com>
9386 * c-typeck.c (convert_for_assignment): Don't allow conversions
9387 between pointers and references. Only allow lvalues to convert to
9390 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
9392 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9393 before prologue, to avoid scheduling problems.
9395 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9397 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9398 (ELIMINABLE_REGS): Add sfp->sp.
9399 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9401 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9403 PR optimization/5892
9404 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9406 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9408 * loop.c (basic_induction_var): Don't call convert_modes if mode
9409 classes are different.
9411 2002-03-12 Richard Henderson <rth@redhat.com>
9413 PR optimization/5901
9414 * function.c (reposition_prologue_and_epilogue_notes): Position
9415 the markers after/before the last/first insn not deleted.
9417 2002-03-12 Richard Henderson <rth@redhat.com>
9419 PR optimization/5878
9420 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9421 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9422 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9424 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9425 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9426 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9428 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9429 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9430 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9431 also. Don't set it if not flag_pic.
9432 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9433 to be INVALID_REGNUM when not used.
9435 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
9437 * expmed.c (store_bit_field): Reset alias set for memory.
9438 (extract_bit_field): Same.
9440 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9442 * c-common.c (c_tree_code_type, c_tree_code_length,
9443 c_tree_code_name, add_c_tree_codes): Delete.
9444 * c-common.h (add_c_tree_codes): Delete.
9445 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9447 * c-objc-common.c (c_objc_common_init): Don't call
9448 add_c_tree_codes, instead set lang_unsafe_for_reeval.
9449 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9450 objc_tree_code_name, add_objc_tree_codes): Delete.
9451 (objc_init): Don't call add_objc_tree_codes.
9452 * objc/objc-lang.c (tree_code_type, tree_code_length,
9453 tree_code_name): Define.
9454 * toplev.c (lang_independent_init): Don't set
9455 tree_code_length[IDENTIFIER_NODE].
9456 * tree.c (tree_code_type, tree_code_length, tree_code_name):
9457 Delete definitions, moved to language front-ends.
9458 * tree.def (IDENTIFIER_NODE): Hardwire the length.
9459 * tree.h (tree_code_type, tree_code_length, tree_code_name):
9461 (tree_code_length): Change type to unsigned char.
9463 2002-03-12 Richard Henderson <rth@redhat.com>
9465 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9466 internal visibility change.
9468 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9470 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9471 validize_mem() instead of change_address to avoid clobbering
9474 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
9476 * c-lex.h (position_after_whitespace): Remove.
9478 2002-03-12 Jakub Jelinek <jakub@redhat.com>
9480 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9481 (lex_string): Use unsigned char pointers.
9483 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9485 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9486 is not a valid memory_operand.
9488 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9490 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9491 * config/xtensa/lib1funcs.asm: Fix copyright to include
9492 special case for libgcc files.
9493 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9494 (__divsi3): Likewise.
9495 (__umodsi3): Likewise.
9496 (__modsi3): Likewise.
9497 * config/xtensa/lib2funcs.S: Fix copyright to include
9498 special case for libgcc files.
9500 2002-03-12 Tom Rix <trix@redhat.com>
9502 * collect2.c (resolve_lib_name): Move outside of
9503 OBJECT_FORMAT_COFF ifdef.
9504 (ignore_library): Same.
9506 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9508 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9510 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9512 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9513 to function_section before writing out the constant pool.
9515 2002-03-12 David Edelsohn <edelsohn@gnu.org>
9517 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9519 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9521 2002-03-12 Alan Modra <amodra@bigpond.net.au>
9523 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9527 (cmpsi splitter): Likewise.
9528 (modsi3): Fail if <= 0.
9529 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9530 redundant test when HOST_BITS_PER_WIDE_INT != 32.
9531 (reg_or_sub_cint64_operand): Likewise.
9532 (num_insns_constant_wide): Optimize sign extension.
9533 (rs6000_legitimize_address): Likewise.
9535 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9537 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9538 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9540 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9542 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9543 address calculation.
9545 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9547 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9548 scratch register to DImode / TImode.
9549 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9550 register used does not overlap the target.
9552 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9554 * Makefile.in (debug.o): Depend on debug.h.
9555 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9556 * debug.c (do_nothing_debug_hooks): Likewise.
9557 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9558 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9559 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9560 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9561 * dwarfout.c (dwarf_debug_hooks): Likewise.
9562 * integrate.c (output_inline_function): Likewise.
9563 * objc/objc-act.c (synth_module_prologue): Likewise.
9564 * sdbout.c (sdb_debug_hooks): Likewise.
9565 * toplev.c (debug_hooks): Likewise.
9566 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9568 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9570 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9571 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9572 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9573 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9574 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9575 * defaults.h (POINTER_SIZE): Define.
9576 * doc/tm.texi (POINTER_SIZE): Document default.
9578 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9580 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9582 2002-03-11 Richard Henderson <rth@redhat.com>
9584 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9585 if rebuild_label_notes_after_reload.
9587 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
9589 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
9590 emit pic register load if "internal" visibility.
9591 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9592 (cris_expand_builtin_va_arg): Do all computations on trees.
9594 2002-03-11 Richard Henderson <rth@redhat.com>
9596 * rtlanal.c: Include recog.h.
9597 (keep_with_call_p): Fix thinko.
9598 * Makefile.in (rtlanal.o): Update dependencies.
9600 2002-03-11 Chris Meyer <cmeyer@gatan.com>
9602 * genflags.c (gen_insn): Use IS_VSPACE.
9603 * genoutput.c (output_insn_data): Likewise.
9604 (process_template): Likewise.
9606 2002-03-11 Richard Henderson <rth@redhat.com>
9608 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9610 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
9612 * Makefile.in: Update.
9613 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9614 Update documentation.
9615 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9616 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9618 2002-03-11 Zack Weinberg <zack@codesourcery.com>
9620 * Makefile.in: Give texi2pod its input file as a command line
9621 argument, not on stdin.
9623 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
9624 Daniel Berlin <dan@dberlin.org>
9626 C++ alias analysis improvement.
9627 * alias.c (record_component_aliases): Record aliases for base
9630 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
9632 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9634 2002-03-11 Douglas B Rupp <rupp@gnat.com>
9636 * toplev.c (vms_fopen): Remove, not needed.
9638 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9640 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9642 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9643 for FP, already done later.
9645 * toplev.c (debug_args): Add entry for VMS_DEBUG.
9646 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9648 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
9650 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9651 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9652 LARGEST_EXPONENT_IS_NORMAL for the given mode.
9653 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9654 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9655 (ediv, emul, eldexp, esqrt): Likewise.
9656 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9657 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9658 (saturate): New function.
9659 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9660 (make_nan): Use a saturation value instead of a NaN if
9661 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
9662 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
9663 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
9664 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
9665 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
9666 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
9667 !ROUND_TOWARDS_ZERO.
9668 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
9669 (ROUND_TOWARDS_ZERO): Document.
9671 2002-03-11 Andreas Jaeger <aj@suse.de>
9673 * cfg.c (dump_flow_info): Remove unused variable.
9675 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
9677 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
9678 computations on trees.
9680 2002-03-10 Richard Henderson <rth@redhat.com>
9683 * reload.c (copy_replacements_1): New.
9684 (copy_replacements): Use it to recurse through the rtx.
9686 2002-03-10 Richard Henderson <rth@redhat.com>
9688 * loop.c (strength_reduce): Compute number of iterations as
9689 unsigned HOST_WIDE_INT.
9691 2002-03-10 Richard Henderson <rth@redhat.com>
9693 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
9694 to move away from the end of the block.
9696 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
9698 PR preprocessor/5899
9699 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
9701 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9703 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
9705 * attribs.c (decl_attributes): Fix signed/unsigned warning.
9707 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
9709 * config/mmix/mmix.c: Improve comments.
9710 (mmix_target_asm_function_prologue): Drop variable
9711 empty_stack_frame. Don't allocate unused slot above fp.
9712 (mmix_target_asm_function_epilogue): Mirror prologue changes.
9713 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
9714 brace in first column.
9715 (enum reg_class): Ditto.
9716 (FIRST_PARM_OFFSET): Now 0.
9717 (USER_LABEL_PREFIX): Remove #if 0:d definition.
9719 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9721 * combine.c (make_extraction): Fix error in last change.
9723 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9725 * c4x.c (c4x_fp_reglist): Const-ify.
9726 * cris.c (cris_print_operand): Likewise.
9727 * i386.c (ix86_va_arg): Likewise.
9728 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
9729 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
9730 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
9731 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
9732 * mcore.h (regno_reg_class): Likewise.
9733 * mips.c (gen_int_relational): Likewise.
9734 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
9735 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
9736 * pdp11.c (move_costs): Likewise.
9737 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
9738 * s390.c (s390_branch_condition_mnemonic, regclass_map):
9740 * s390.h (regclass_map): Likewise.
9741 * sh.c (shift_amounts): Likewise.
9742 * sh.md (rotlsi3): Likewise.
9744 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9746 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
9747 (ne0+5): Use new clobber to generate proper shift pattern.
9748 Patch by Michael Matz <matz@kde.org>.
9750 2002-03-09 Andreas Schwab <schwab@suse.de>
9752 * gcc.c (validate_all_switches): Also handle `%W{...}'.
9754 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9756 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
9758 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9761 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
9762 even for non-representable constants.
9764 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9766 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
9767 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
9768 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
9769 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
9770 (pop_function_context): Compute MAY_SHARE parameter for
9772 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
9773 (gen_mem_addressof): Call fixup_var_refs with new parm.
9775 * combine.c (make_extraction): Don't make extension of CONST_INT.
9777 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9779 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
9780 in o32 and o64 ABIs.
9781 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
9782 but getting fixed-size structs passed in registers regardless of
9783 padding in o32 and o64 ABIs.
9785 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
9786 offset before loading address of argument passed by transparent
9789 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
9791 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
9793 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9795 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
9796 marker such that registers after it are saved.
9798 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9800 * sparc.c (arith_4096_operand): Fix error in last change.
9802 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9804 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
9807 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9809 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
9812 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9814 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
9816 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
9818 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
9819 removed; fix return value.
9820 * combine.c (combine_instructions): Dirtify blocks where we failed to
9821 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
9822 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
9824 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9826 * gcse.c (insert_insn_end_bb): Fix typo in last change.
9828 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
9830 * recog.c (peephole2_optimize): Re-distribute EH edges.
9832 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
9834 * expr.c (expand_expr): Use unsave lang hook.
9835 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
9836 (LANG_HOOKS_INITIALIZER): Update.
9837 * langhooks.h (struct lang_hooks): New hook unsave.
9838 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
9839 (unsave_expr_1): Remove unused lang_unsave_expr_now.
9840 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
9841 (unsave_expr_now): Remove.
9842 * tree.h (unsave_expr_now, lang_unsave,
9843 lang_unsave_expr_now): Remove.
9846 2002-03-08 Andreas Jaeger <aj@suse.de>
9848 * flow.c (propagate_block_delete_insn): Remove unused variable.
9850 2002-03-08 Kazu Hirata <kazu@hxi.com>
9852 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
9853 insn length for memory load/store.
9855 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
9857 * doc/install.texi (--with-libiconv-prefix): Document.
9859 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
9861 * doc/sourcebuild.texi: Fix typo.
9863 2002-03-08 Jakub Jelinek <jakub@redhat.com>
9866 * builtins.c (std_expand_builtin_va_arg): Do all computations on
9869 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9871 * rtl.c (copy_most_rtx): Move from here ...
9872 * emit-rtl.c (copy_most_rtx): ... to here.
9874 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9876 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
9877 SUBTARGET_CPP_SIZE_SPEC.
9878 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
9880 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
9882 2002-03-07 Matt Hiller <hiller@redhat.com>
9884 * gensupport.c (first_dir_md_include): Renamed from include;
9885 change all references.
9886 (last_dir_md_include): Renamed from last_include; change all
9888 (init_md_reader): Unconditionally initialize base_dir whether or
9889 not filename is a relative path.
9891 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
9893 * config/fp-bit.c (_unord_f2): Compile it in even if
9894 US_SOFTWARE_GOFAST is enabled.
9896 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
9897 NULL_RTX. Set all HFmode operations as NULL_RTX.
9898 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
9899 NULL_RTX, try reversing the comparison and the operands.
9901 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
9903 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
9904 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
9907 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
9909 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
9911 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
9913 * basic-block.h (fixup_abnormal_edges): Declare.
9914 * reload1.c (fixup_abnormal_edges): New function.
9915 * reg-stack.c (convert_regs): Use it.
9917 * gcse.c (insert_insn_end_bb): Handle trapping insns.
9919 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
9921 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
9923 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
9924 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
9925 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
9926 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
9927 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
9928 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
9929 unless x and y could be infinite.
9930 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
9931 Check that the common type of both arguments is a real, even for
9932 targets without unordered comparisons. Allow an integer argument
9933 to be compared against a real.
9934 (expand_tree_builtin): Use expand_unordered_cmp.
9935 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
9936 * cse.c (fold_rtx): Likewise. Fix indentation.
9937 * fold-const.c (fold_real_zero_addition_p): New.
9938 (fold): Use it, and the new HONOR_... macros.
9939 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
9940 * jump.c (reversed_comparison_code_parts): After searching for
9941 the true comparison mode, use HONOR_NANS to decide whether it
9942 can be safely reversed.
9943 (reverse_condition_maybe_unordered): Remove IEEE check.
9944 * simplify-rtx.c (simplify_binary_operation): Use the new macros
9945 to decide which simplifications are valid. Allow the following
9946 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
9947 and (a - -b) to (a + b).
9948 (simplify_relational_operation): Use HONOR_NANS.
9949 * doc/tm.texi: Document the MODE_HAS_... macros.
9951 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9953 * combine.c (simplify_comparison): If simplifying a logical shift
9954 right and compare with constant, force the comparison to unsigned.
9956 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
9958 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
9960 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
9962 (alt_reg_names): Remove % for vrsave.
9964 2002-03-06 Richard Henderson <rth@redhat.com>
9966 PR optimization/5844
9967 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
9968 if used indicates we've already emitted one copy of an operand.
9969 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
9970 (gen_split): Supply a non-null used.
9972 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
9974 * reload1.c (reload): Unshare all rtl after reload is done.
9976 * simplify-rtx.c (simplify_plus_minus): Do not abort,
9977 but simply fail if the expression is too complex to simplify.
9978 (simplify_gen_binary): Handle simplify_plus_minus failures.
9980 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
9982 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
9983 consistently call delete_trivially_dead_insns after CSE and GCSE;
9984 fix DFI_life dumping; do jump threading after liveness; do crossjumping
9985 after liveness2; update comment in last crossjumping.
9986 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
9988 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
9990 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
9991 after completing fast dead code elimination.
9993 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
9996 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
9998 * version.c: Fix misplaced leading blanks on first line.
10000 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10002 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10004 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10006 * cfgcleanup.c (mentions_nonequal_regs): New function.
10007 (thread_jump): Use it.
10008 * toplev.c (rest_of_compilation): Run jump threading after
10011 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10013 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10016 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10018 * predict.c (estimate_bb_frequencies): Do not reload the
10019 frequencies from notes.
10021 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10023 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10024 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10026 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10027 delete_noop_moves): Return indeger.
10028 * flow.c (ndead): New variable.
10029 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10030 BB argument; update callers.
10031 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10032 (life_analysis): Do not call purge_all_dead_edges.
10033 (update_life_info): Return number of deleted insns; print statistics.
10034 (update_life_info_in_dirty_blocks): likewise.
10035 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10036 return number of insns deleted.
10038 * cse.c: Include timevar.h
10039 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10040 iterate until stabilizes; print statistics; return number of killed
10042 * Makefile.in: (cse.o): Add timevar.h dependency
10043 * rtl.h (delete_trivially_dead_insns): New.
10044 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10045 * toplev.c (rest_of_compilation): Update callers.
10047 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10048 (try_optimize_cfg): Do not update liveness.
10049 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10050 removal stabilizes; use delete_trivially_dead_insns.
10052 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10054 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10056 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10057 callbacks when processing assembly language.
10059 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10061 * pa.h (ASM_FILE_END): Define.
10062 * som.h (ASM_FILE_END): Delete.
10064 * pa.c (function_arg): Don't pass floats in general registers in
10065 indirect calls if TARGET_ELF32.
10067 2002-03-05 Richard Henderson <rth@redhat.com>
10069 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10071 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10073 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10075 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10077 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10078 -r command line. Don't hide any symbols if not building
10081 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10083 * cfg.c (dump_flow_info): Warn about profile mismatches.
10084 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10085 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10087 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10089 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10090 wide volatile memory by parts.
10092 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10094 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10097 2002-03-05 Richard Henderson <rth@redhat.com>
10099 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10101 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10103 * toplev.c (documented_lang_options): Document more
10104 language-specific options.
10105 * doc/invoke.texi (Warning Options): Correct documentation for
10106 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10107 * c-decl.c (c_decode_option): Use a table to handle warning options.
10109 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10111 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10112 parameter to mmix_encode_section_info.
10113 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10114 relocatably. Always produce ELF, not mmo if linking relocatably.
10115 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10116 first is non-zero, don't add symbol prefix.
10117 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10118 prototype accordingly.
10120 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10122 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10124 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10126 * configure.in: Increase required makeinfo version to 4.1.
10127 * configure: Regenerate.
10129 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10131 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10134 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10136 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10137 * doc/invoke.texi: Fix @math uses.
10139 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10141 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10144 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10146 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10147 (powerpc-*-eabisimaltivec*): Same.
10149 * config/rs6000/t-ppcendian: New.
10151 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10153 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10154 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10155 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10157 2002-03-03 Richard Henderson <rth@redhat.com>
10159 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10161 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10163 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10164 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10165 tree.c, config/m68k/m68k.c:
10166 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10167 REAL_ARITHMETIC blocks unconditional. Delete some further
10168 #ifdef blocks predicated on REAL_ARITHMETIC.
10169 * flags.h, toplev.c: Delete remaining references to
10170 flag_pretend_float.
10172 * doc/invoke.texi: Remove documentation of -fpretend-float.
10173 * doc/tm.texi: Describe the various REAL_* macros as provided by
10174 real.h, not by the target configuration files.
10176 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10177 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10178 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10179 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10180 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10181 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10182 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10183 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10184 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10185 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10186 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10187 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10188 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10189 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10190 config/xtensa/xtensa.h:
10191 Do not define, undefine, or mention in comments any of
10192 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10193 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10194 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10195 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10196 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10197 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10198 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10199 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10200 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10202 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10204 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10205 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10206 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10207 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10208 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10209 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10211 * defaults.h (BITS_PER_WORD): Define.
10212 * doc/tm.texi (BITS_PER_WORD): Document default value.
10214 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10215 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10216 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10218 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10220 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10221 lieu of explicit sizeof/sizeof.
10222 * i386.c (override_options, ix86_init_mmx_sse_builtins,
10223 ix86_expand_builtin): Likewise.
10224 * mips.c (mips_add_gc_roots): Likewise.
10225 * mmix.c (mmix_output_condition): Likewise.
10226 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10227 altivec_init_builtins): Likewise.
10228 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10229 * cppexp.c (Nsuff, parse_number): Likewise.
10230 * cppinit.c (builtin_array_end): Likewise.
10231 * gcc.c (n_default_compilers, process_command): Likewise.
10232 * genpreds.c (output_predicate_decls): Likewise.
10233 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10234 * lcm.c (N_ENTITIES): Likewise.
10235 * stor-layout.c (set_sizetype): Likewise.
10237 2002-03-03 Richard Henderson <rth@redhat.com>
10239 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10240 for types or labels.
10242 2002-03-03 Richard Henderson <rth@redhat.com>
10244 * c-decl.c (start_decl): Initialized variables are not common.
10246 2002-03-02 Per Bothner <per@bothner.com>
10248 * gcc.c (option_map): Suport new --bootclasspath option.
10249 --CLASSPATH is now just an alias for --classpath.
10251 2002-03-02 Richard Henderson <rth@redhat.com>
10253 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10254 load if "internal" visibility.
10255 * doc/extend.texi: Document visibility meanings.
10257 2002-03-02 Richard Henderson <rth@redhat.com>
10259 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10260 to functions as well.
10262 2002-03-02 Richard Henderson <rth@redhat.com>
10264 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10265 (handle_visibility_attribute): Don't call assemble_visibility.
10266 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10267 without asmspec. Invoke assemble_alias when needed.
10268 * varasm.c (maybe_assemble_visibility): New.
10269 (assemble_start_function, assemble_variable, assemble_alias): Use it.
10271 2002-03-02 Richard Henderson <rth@redhat.com>
10273 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10274 invoke ENCODE_SECTION_INFO with first call flag.
10276 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10277 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10278 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10279 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10280 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10281 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10282 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10283 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10284 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10285 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10286 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10287 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10288 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10289 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10290 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10291 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10292 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10293 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10294 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10295 config/sh/sh.h, config/sparc/sparc.h,
10296 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10297 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10298 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10299 FIRST argument. As needed, examine it and do nothing.
10301 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10302 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10303 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10305 * config/arm/t-pe (pe.o): Add dependencies.
10307 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10309 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10310 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10311 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10312 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10313 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10314 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10315 * defaults.h (BITS_PER_UNIT): Define.
10316 * doc/tm.texi (BITS_PER_UNIT): Document default value.
10318 2002-03-02 Kazu Hirata <kazu@hxi.com>
10320 * config/h8300/h8300-protos.h: Add a prototype for
10321 compute_a_shift_length.
10322 * config/h8300/h8300.c (h8300_asm_insn_count): New.
10323 (compute_a_shift_length): Likewise.
10324 (h8300_adjust_insn_length): Do not adjust insn length of shift
10326 * config/h8300/h8300.md (anonymous shift patterns): Use
10327 compute_a_shift_length.
10329 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10331 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10332 trunc_int_for_mode.
10334 * emit-rtl.c (offset_address): Call update_temp_slot_address.
10336 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10338 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10339 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10340 * flags.h (flag_zero_initialized_in_bss): Declare.
10341 * toplev.c (flag_zero_initialized_in_bss): New flag.
10342 (lang_independent_options): Add flag_zero_initialized_in_bss.
10343 * tree.c (initializer_zerop): New function.
10344 * tree.h (initializer_zerop): Declare.
10345 * varasm.c (assemble_variable): If we can emit bss, put zero
10346 initializers in the bss section.
10348 2002-03-02 Alan Modra <amodra@bigpond.net.au>
10350 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10351 like more than one symbol per .weak directive.
10353 2002-03-01 Richard Henderson <rth@redhat.com>
10355 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10356 adjust argument_pointer by pretend_args_size.
10357 (ia64_va_start): Adjust va_start address by -pretend_args_size.
10359 2002-03-01 Kazu Hirata <kazu@hxi.com>
10361 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10363 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
10365 * toplev.c (rest_of_compilation): Delete dead jumptables before
10367 * flow.c (delete_dead_jumptables): Make global.
10368 * rtl.h (delete_dead_jumptables): Declare.
10370 2002-03-01 David Edelsohn <edelsohn@gnu.org>
10372 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10373 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10374 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10376 2002-03-01 Kazu Hirata <kazu@hxi.com>
10378 * config/h8300/h8300-protos.h: Fix formatting.
10379 * config/h8300/h8300.c: Likewise.
10380 * config/h8300/h8300.h: Likewise.
10382 2002-03-01 Kazu Hirata <kazu@hxi.com>
10384 * config/h8300/h8300.c (print_operand): Support 16-bit
10385 constant addresses.
10386 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10388 2002-02-28 Richard Henderson <rth@redhat.com>
10390 * expmed.c (store_bit_field): Prevent generation of CONCATs;
10391 pun complex values as integers; use gen_lowpart instead of
10393 (extract_bit_field): Likewise.
10395 2002-03-01 Alan Modra <amodra@bigpond.net.au>
10396 David Edelsohn <edelsohn@gnu.org>
10398 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10399 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10400 (SUPPORTS_WEAK): Likewise.
10401 * output.h (add_weak): Add tree param.
10402 * varasm.c (add_weak): Likewise. Save decl.
10403 (struct weak_syms): Add decl field.
10404 (mark_weak_decls): New function.
10405 (init_varasm_once): ggc_add_root mark_weak_decls.
10406 (assemble_start_function): Use ASM_WEAKEN_DECL.
10407 (assemble_variable): Likewise.
10408 (assemble_alias): Likewise.
10409 (declare_weak): Pass decl to add_weak.
10410 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10411 (remove_from_pending_weak_list): Declare and define for
10413 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10414 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10415 * defaults.h (SUPPORTS_WEAK): Likewise.
10416 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10417 .weak for code sym. Do emit .size for descriptor sym.
10418 (ASM_DECLARE_FUNCTION_SIZE): Define.
10419 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10420 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
10421 .lglobl unless TARGET_XCOFF. Formatting fixes.
10422 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10423 .weak for code sym.
10424 (HANDLE_PRAGMA_WEAK): Remove.
10425 (ASM_WEAKEN_LABEL): Remove.
10426 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10428 2002-03-01 Jason Merrill <jason@redhat.com>
10430 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10431 (TARGET_EXPR_CLEANUP): New macro.
10433 2002-02-28 Steve Ellcey <sje@cup.hp.com>
10435 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10436 to take ptr_extend into account as third type of extension.
10437 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10438 fields used by SUBREG_PROMOTED_UNSIGNED_P.
10439 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10440 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10441 * calls.c (precompute_arguments): Use new macro.
10442 (expand_call): Ditto.
10443 * combine.c (nonzero_bits): Ditto.
10444 (record_promoted_value): Ditto.
10445 * expr.c (store_expr): Ditto.
10446 (expand_expr): Ditto.
10447 * function.c (assign_parms): Ditto.
10449 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
10451 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10452 override -shared and -shared-libgcc.
10454 2002-02-28 David O'Brien <obrien@FreeBSD.org>
10456 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10458 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
10461 2002-02-28 Richard Henderson <rth@redhat.com>
10463 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10464 4 cycle latency from MM producers.
10465 (ia64_internal_sched_reorder): Likewise with pipeline flush.
10467 2002-02-28 Jakub Jelinek <jakub@redhat.com>
10469 * mklibgcc.in: Don't use GNU make extension.
10471 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10473 * c-parse.in (STATIC): New terminal.
10474 (scspec): New non-terminal. Update productions accordingly.
10475 (program): Remove bogus ifc / end ifc.
10476 (array_declarator): Simplify production using STATIC.
10478 2002-02-28 Jim Meyering <meyering@lucent.com>
10480 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10481 \a still means TARGET_BELL.
10483 2002-02-28 Richard Henderson <rth@redhat.com>
10485 * haifa-sched.c (sched_emit_insn): New.
10486 (schedule_block): Use last_scheduled_insn to track last insn.
10487 * sched-int.h (sched_emit_insn): Prototype.
10488 * config/ia64/ia64.c (last_issued): Remove.
10489 (ia64_variable_issue): Don't set it.
10490 (nop_cycles_until): Use sched_emit_insn.
10492 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
10494 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10495 extended constants.
10497 2002-02-28 Kazu Hirata <kazu@hxi.com>
10499 * config/h8300/h8300.c: Fix formatting.
10500 * config/h8300/h8300.h: Likewise.
10502 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
10504 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10505 which may overwrite the high byte of the frame pointer.
10507 2002-02-28 Bo Thorsen <bo@suse.de>
10509 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10510 (STARTFILE_SPEC): Add 64 bit files.
10511 (ENDFILE_SPEC): Likewise.
10513 2002-02-28 Jason Merrill <jason@redhat.com>
10515 * c-decl.c (finish_function): Only warn about missing return
10516 statement with -Wreturn-type.
10518 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
10520 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10522 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10523 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10525 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
10527 * basic-block.h (BB_REACHABLE): Renumber.
10528 (BB_DIRTY, BB_NEW): New flags.
10529 (clear_bb_flags): Declare.
10530 (update_life_info_in_dirty_blocks): Declare.
10531 * cfg.c (clear_bb_flags): New function.
10532 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10533 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10534 reorder_insns, emit_insn_after): Mark block as dirty.
10535 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10536 (update_life_info_in_dirty_blocks): New function.
10537 * recog.c (apply_change_group): Dirtify block.
10539 * cse.c (cse_insn): Reorder emitting of jump insn to keep
10541 * gcse.c (delete_null_pointer_checks): Likewise.
10543 * toplev.c (dump_file_index): Move cse2 after bp,
10545 (dump_file_info): Similary.
10546 (rest_of_compilation): Avoid most of CFG rebuilds;
10547 do first if converision after null pointer checks, do cse2
10548 after branch prediction; avoid full liveness rebuild after
10549 initializing subregs.
10550 * invoke.texi (-d options): Document -du, renumber.
10552 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10553 (notice_new_block): Do not set BB_UPDATE_LIFE.
10554 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10555 merge_blocks_move_successor_nojumps, merge_blocks,
10556 try_crossjump_to_edge): Likewise.
10557 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10558 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10559 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10560 (merge_of_block): Do not use life_data_ok.
10561 (find_if_case_1): Do not use SET_UPDATE_LIFE.
10562 (if_convert): Use BB_DIRTY mechanizm to update life.
10563 * lcm.c (optimize_mode_switching): Update
10564 update_life_info_in_dirty_blocks
10566 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10568 * Makefile.in (integrate.o): Update.
10569 * c-decl.c (copy_lang_decl): Rename.
10570 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10571 * integrate.c: Include langhooks.h.
10572 (copy_decl_for_inlining): Update to use langhook.
10573 * langhooks-def.h (lhd_do_nothing_t,
10574 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10575 (LANG_HOOKS_INITIALIZER): Update.
10576 * langhooks.c (lhd_do_nothing_t): New.
10577 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10578 * tree.h (copy_lang_decl): Remove.
10580 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10582 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
10584 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10585 POST_DEC, and POST_MODIFY.
10587 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10589 * c-typeck.c (digest_init): Remove unused parameter; all
10592 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
10594 * expmed.c (expand_shift): Correctly test for low part of a
10597 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10599 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10600 insn UIDs with insn addresses.
10602 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10604 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10605 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10606 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10607 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10608 gcc.c, toplev.c: Delete code implementing -traditional mode.
10610 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10611 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10612 Document removal of -traditional mode for compilation, and
10613 remove documentation only relevant to that mode.
10615 * config/nextstep.h, config/ptx4.h, config/svr4.h,
10616 config/convex/convex.h, config/d30v/d30v.h,
10617 config/i386/dgux.h, config/i386/osf1elf.h,
10618 config/i386/osfelf.h, config/i386/osfrose.h,
10619 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10620 config/m68k/hp310.h, config/m88k/dgux.h,
10621 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10622 config/m88k/m88k.h, config/m88k/openbsd.h,
10623 config/mips/abi64.h, config/mips/osfrose.h,
10624 config/mips/svr4-5.h, config/mips/svr4-t.h,
10625 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10626 config/stormy16/stormy16.h: Remove all references to
10627 -traditional from target specs. Delete all mention of the
10628 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
10629 delete a couple of commented-out definitions of
10630 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10633 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10634 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10636 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10638 * mklibgcc.in: Don't use \n in a line subject to
10639 interpretation by echo.
10641 2002-02-27 Graham Stott <grahams@redhat.com>
10643 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10646 * loop.c (prescan_loop): Handle PARALLEL.
10648 * unroll.c (loop_iterations): Return 0 if the add_val for
10651 * final.c (output_operand_lossage): Constify PFX_STR.
10653 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10655 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
10657 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10658 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10660 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
10662 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10664 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
10666 * cpplex.c (_cpp_lex_token): Handle directives in macro
10668 * cpplib.c (_cpp_handle_directive): Save and restore state
10669 if parsing macro args when entering a directive.
10670 * cppmacro.c (collect_args): No need to handle directives
10671 in macro arguments.
10672 (enter_macro_context, replace_args): Use the original macro
10673 definition in case it was redefined whilst collecting arguments.
10675 * cpp.texi: Update.
10677 2002-02-26 David Edelsohn <edelsohn@gnu.org>
10679 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
10680 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
10681 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
10683 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
10684 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
10685 (load_toc_v4_PIC_2): Same.
10687 2002-02-26 Alan Modra <amodra@bigpond.net.au>
10689 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
10691 2002-02-26 Richard Henderson <rth@redhat.com>
10693 * config/alpha/alpha.md (ashldi_se): Re-enable.
10695 2002-02-26 Richard Henderson <rth@redhat.com>
10697 * config/alpha/alpha.c (alpha_encode_section_info): Examine
10698 MODULE_LOCAL_P; improve commentary.
10700 2002-02-26 Zack Weinberg <zack@codesourcery.com>
10702 * doc/cpp.texi: Clarify documentation of relationship between
10703 #line and #include.
10705 2002-02-26 Kazu Hirata <kazu@hxi.com>
10707 * config/h8300/h8300-protos.h: Update the prototype for
10708 compute_logical_op_length. Add the prototype for
10709 compute_logical_op_cc.
10710 * config/h8300/h8300.c (compute_logical_op_length): Figure out
10711 code from operands.
10712 (compute_logical_op_cc): New.
10713 * config/h8300/h8300.md: Combine all the logical op patterns
10714 in HImode and SImode. Use compute_logical_op_cc.
10716 2002-02-26 Kelley Cook <kelleycook@comcast.net>
10718 * config/i386/i386.c (print_operand): Don't append ATT-style
10719 length suffixs to x87 opcodes when in Intel mode.
10721 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
10723 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
10724 (init_emit_once): Update calls.
10725 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
10726 (init_syntax_once): Prototype.
10728 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
10730 * pa-linux.h (LIB_SPEC): Update definition.
10731 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10733 2002-02-26 Richard Henderson <rth@redhat.com>
10735 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
10736 if we emitted a stop bit.
10738 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10740 * configure.in (libgcc_visibility): Substitute.
10741 * configure: Rebuilt.
10742 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
10743 defined symbols .hidden.
10745 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10747 * attribs.c (c_common_attribute_table): Add visibility.
10748 (handle_visibility_attribute): New function.
10749 * varasm.c (assemble_visibility): New function.
10750 * output.h (assemble_visibility): Add prototype.
10751 * tree.h (MODULE_LOCAL_P): Define.
10752 * crtstuff.c (__dso_handle): Use visibility attribute.
10753 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
10754 for MODULE_LOCAL_P symbols too.
10755 * config/ia64/ia64.c (ia64_encode_section_info): Handle
10756 MODULE_LOCAL_P symbols the same way as local symbols.
10757 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
10758 into .sdata/.sbss by the user.
10759 * doc/extend.texi (Function Attributes): Document visibility
10762 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10765 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
10766 STRING_CST initializer spanning the whole variable without
10768 If expand_expr returned MEM, don't use it.
10770 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
10772 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
10773 generate a die for the lexical block.
10775 2002-02-26 Kazu Hirata <kazu@hxi.com>
10777 * config/h8300/h8300-protos.h: Add a prototype for
10778 compute_logical_op_length.
10779 * config/h8300/h8300.c (compute_logical_op_length): New.
10780 * config/h8300/h8300.md (anonymous logical patterns): Use
10781 compute_logical_op_length for length.
10783 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10785 * dwarf2out.c (modified_type_die): Do not call type_main_variant
10787 (gen_type_die): Same.
10789 * attribs.c (handle_vector_size_attribute): Set debug information.
10791 2002-02-26 Daniel Egger <degger@fhm.edu>
10793 * config/rs6000/rs6000.md: Swap define_insn attributes to
10794 fix incorrect generation of merge high instructions instead
10797 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10799 * c-typeck.c (really_start_incremental_init): Use
10800 bitsize_zero_node for vectors.
10802 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10804 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
10805 ("*set_vrsave_internal"): Same.
10807 2002-02-25 Richard Henderson <rth@redhat.com>
10809 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
10810 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
10812 2002-02-25 Jakub Jelinek <jakub@redhat.com>
10815 * config/i386/i386.c (ix86_return_pops_args): Only pop
10816 fake structure return argument if it was passed on the stack.
10818 2002-02-25 Jason Merrill <jason@redhat.com>
10820 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
10823 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
10825 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
10826 link with shared_name only.
10827 * doc/invoke.texi (Link Options): Document new behavior.
10829 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
10831 * c-typeck.c (push_init_level): Handle vectors.
10833 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
10835 * config/sparc/sparc.c (const64_high_operand): Zero-extend
10836 operands of SPARC_SETHI_P.
10837 (input_operand): Likewise.
10838 (sparc_emit_set_const32): Likewise.
10839 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
10840 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
10841 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
10842 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
10843 (movdi_insn_sp64_vis): Likewise.
10844 (movdi split, movdf split): Use SETHI32.
10845 * doc/md.texi: Document SPARC constraints L, M and N.
10847 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
10849 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
10850 ("*set_vrsave_internal"): use mfspr for Darwin.
10852 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
10853 gen_get_vrsave_internal.
10855 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10857 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
10859 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
10861 * cpplex.c (cpp_interpret_charconst): Get signedness or
10862 otherwise of wide character constants correct.
10863 * cppexp.c (lex): Get signedness of wide charconsts correct.
10865 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10867 * optabs.c (widen_operand): Only call convert_modes for
10868 promoted SUBREG if signedness matches.
10869 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
10871 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10873 * cpplib.c (glue_header_name): Use local buffer to build up
10876 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10878 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
10880 2002-02-23 Kazu Hirata <kazu@hxi.com>
10882 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
10883 H8/300[HS] separately.
10884 * config/h8300/h8300.md: Remove the early clobber constraint
10885 from bit field patterns.
10887 2002-02-23 Kazu Hirata <kazu@hxi.com>
10889 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
10891 (mulhisi3): Likewise.
10892 (umulqisi3): Likewise.
10893 (umulhisi3): Likewise.
10895 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10897 * cppinit.c (output_deps): Correct test for stdout output.
10898 (init_dependency_output): Cure warning.
10900 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10902 * expr.c (store_expr): When converting expression to promoted
10903 equivalent type, allow using SUBREG_REG of TARGET as the target
10904 of the expansion of EXP.
10905 * loop.c (basic_induction_var, case SUBREG): Always look inside.
10906 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
10907 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
10908 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
10909 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
10911 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
10913 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
10914 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
10915 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
10917 2002-02-23 Jakub Jelinek <jakub@redhat.com>
10919 PR optimization/5747
10920 * loop.c (scan_loop): Update reg info if move_movables created new
10923 2002-02-23 David Edelsohn <edelsohn@gnu.org>
10925 * gcc.c (init_gcc_spec): Revert last change.
10927 2002-02-23 David Edelsohn <edelsohn@gnu.org>
10929 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
10930 gpc_reg_operand constraint.
10932 2002-02-23 Alan Modra <amodra@bigpond.net.au>
10934 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
10935 Simplify comparison of `low'.
10936 (add_operand): Fix formatting.
10937 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
10938 (mask_operand): Disallow mask to wrap in 64-bit mode.
10939 (rs6000_stack_info): Remove redundant test setting push_p.
10940 (output_toc): Fix formatting.
10941 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
10942 cc_reg_not_cr0_operand constraint.
10943 (booldi3, boolcdi3 splitters): Same.
10945 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
10947 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
10949 2002-02-22 David Edelsohn <edelsohn@gnu.org>
10951 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
10952 gcc invoked with -shared-libgcc.
10954 2002-02-22 Jakub Jelinek <jakub@redhat.com>
10957 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
10958 decl if any of elements was TREE_USED.
10960 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
10962 * config/sparc/sol2.h: Don't include sys/mman.h.
10963 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
10964 (arith_4096_operand): Don't throw high bits away.
10965 (const64_operand): Take sign extension of CONST_INTs into account.
10966 (const64_high_operand, sparc_emit_set_const32): Likewise.
10967 (GEN_HIGHINT64): Likewise.
10968 (sparc_emit_set_const64_quick1): Likewise.
10969 (const64_is_2insns): Likewise.
10970 (print_operand): Use trunc_int_for_mode for sign extension.
10971 * config/sparc/sparc.h (SMALL_INT32): Likewise.
10972 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
10973 chars. Assume CONST_INT is already properly sign-extended.
10974 (movdi split): Sign-extend each SImode part.
10975 (andsi3 split): Don't mask high bits off, so that result
10976 remains properly sign-extend.
10977 (iorsi3 split): Likewise.
10978 (xorsi3 split): Likewise.
10980 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
10982 * fold-const.c (fold): Fix typo in comments.
10984 2002-02-21 Diego Novillo <dnovillo@redhat.com>
10986 * Makefile.in (langhooks.o): Update dependencies.
10988 2002-02-21 Diego Novillo <dnovillo@redhat.com>
10990 * langhooks.c: Include flags.h.
10992 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
10994 * testsuite/gcc.dg/attr-alwaysinline.c: New.
10996 * c-common.c (c_common_post_options): Set inline trees by
10999 * doc/extend.texi (Function Attributes): Document always_inline
11001 Update documentation about inlining when not optimizing.
11003 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11005 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11006 unless DECL_ALWAYS_INLINE.
11008 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11009 unless DECL_ALWAYS_INLINE.
11010 (c_disregard_inline_limits): Disregard if always_inline set.
11012 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11013 Disregard if always_inline set.
11014 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11015 unless DECL_ALWAYS_INLINE.
11017 * attribs.c (handle_always_inline_attribute): New.
11018 (c_common_attribute_table): Add always_inline.
11020 * config/rs6000/altivec.h: Add prototypes for builtins
11021 requiring the always_inline attribute.
11023 2002-02-21 Eric Christopher <echristo@redhat.com>
11025 * expmed.c (store_bit_field): Try to simplify the subreg
11026 before generating a new one when when the mode size of
11027 value is less than maxmode.
11029 2002-02-21 Richard Henderson <rth@redhat.com>
11031 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11032 than gen_rtx_PLUS to form the sum.
11033 * explow.c (force_reg): Rearrange to not allocate new pseudo
11034 when force_operand returns a register.
11035 * expr.c (expand_assignment): Allow offset_rtx expansion to
11036 return a sum. Do not force addresses into registers.
11037 (expand_expr): Likewise.
11038 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11039 to canonicalize arithmetic that didn't simpify.
11040 (simplify_plus_minus): New argument force; update
11041 all callers. Don't split CONST unless we can do something with it,
11042 and wouldn't lose the constness of the operands.
11044 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11045 that we generated earlier.
11047 2002-02-21 Tom Tromey <tromey@redhat.com>
11049 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11050 (output_line_info): Use constant `1', with a long explanatory
11052 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11054 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11056 * jump.c (redirect_jump): If old label has no UID, don't try to
11059 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11061 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11062 If input is constant, do shifts at compile time.
11064 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11066 * doc/extend.texi: Fix some more overfull hboxes.
11068 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11070 PR optimization/4994
11071 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11074 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11077 * expr.h (expand_and): Add mode argument.
11078 * expmed.c (expand_and): Add mode argument.
11079 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11080 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11081 * except.c (expand_builtin_extract_return_addr): Likewise.
11082 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11083 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11084 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11085 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11086 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11087 gen_rtx (CONST_INT, VOIDmode, x).
11089 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11092 * stmt.c (warn_if_unused_value): Move side effects test once more.
11094 2002-02-20 Torbjorn Granlund <tege@swox.com>
11096 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11097 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11099 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11101 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11102 SUBREG or ZERO_EXTEND.
11104 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11106 * sh.h (current_function_anonymous_args): Remove.
11107 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11108 of current_function_varargs and current_function_stdarg is set.
11109 * sh.c (sh_expand_prologue): Check current_function_varargs /
11110 current_function_stdarg / TARGET_SH5 instead of
11111 current_function_anonymous_args.
11113 * sh64.h (TARGET_VERSION): Define.
11115 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11117 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11118 VRSAVE_REGNO on TARGET_ALTIVEC.
11120 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11122 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11123 bits of SImode const_int.
11124 (includes_rshift_p): Likewise.
11125 (print_operand): Call mask_operand and mask64_operand with correct
11127 (rs6000_output_function_epilogue): Pad traceback table to word.
11128 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11129 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11130 mask64_operand with correct mode.
11131 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11133 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11136 * varasm.c (get_pool_constant_mark): New.
11137 * rtl.h (get_pool_constant_mark): Add prototype.
11138 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11139 be represented if it has not been output.
11141 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11143 * combine.c (do_SUBST): Sanity check substitutions of
11144 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11145 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11146 CONST_INT into its operand.
11147 (known_cond): Likewise, for ZERO_EXTEND.
11148 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11149 allow for simplification of wide modes. Reject CONST_INTs in
11150 ZERO_EXTEND when their actual mode is not given.
11152 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11154 * c-decl.c (pushdecl): If no global declaration is found for an
11155 extern declaration in block scope, try a limbo one.
11157 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11160 * c-common.c (pointer_int_sum): Moved from...
11161 * c-typeck.c (pointer_int_sum): ...here.
11162 * c-common.h (pointer_int_sum): Add prototype.
11164 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11167 * c-decl.c (duplicate_decls): Return 0 if issued error about
11170 2002-02-20 Roger Sayle <roger@eyesopen.com>
11171 Jakub Jelinek <jakub@redhat.com>
11174 * tree.c (host_integerp): Ensure that the constant integer is
11175 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11176 when pos is zero or non-zero respectively. Clarify comment.
11177 * c-format.c (check_format_info_recurse): Fix host_integerp
11178 usage; the pos argument should be zero when assigning to a
11179 signed HOST_WIDE_INT.
11181 2002-02-20 Richard Henderson <rth@redhat.com>
11183 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11184 of the operand, rather than assuming TImode.
11185 (ix86_expand_binop_builtin): Cope with commutative patterns
11186 using nonimmediate_operand for both operands.
11187 (ix86_expand_timode_binop_builtin): Likewise.
11188 (ix86_expand_store_builtin): Validate operand 1.
11189 (ix86_expand_unop1_builtin): Likewise.
11191 2002-02-20 Philip Blundell <philb@gnu.org>
11194 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11196 2002-02-20 Richard Henderson <rth@redhat.com>
11199 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11201 2002-02-20 Tom Tromey <tromey@redhat.com>
11203 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11204 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11205 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11206 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11207 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11210 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11212 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11213 for (const_int 0) in X not just INTVAL.
11215 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
11217 * doc/extend.texi: Avoid or reduce overfull hboxes.
11219 2002-02-20 Diego Novillo <dnovillo@redhat.com>
11221 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11222 operations if the field does not start at a mode boundary.
11224 2001-02-20 Joel Sherrill <joel@OARcorp.com>
11226 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11227 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11228 Also done for -Acpu and -Amachine.
11230 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
11232 * cppinit.c (init_dependency_output): Take deps output file
11233 from -o if none given with -MF. Suppress normal output.
11234 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11235 * doc/cpp.texi, doc/invoke.texi: Update.
11237 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11239 * toplev.c (output_quoted_string): Write unprintable
11240 characters with octal escapes.
11242 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11244 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11245 really_call_used[VRSAVE_REGNO] if not Altivec.
11247 2002-02-19 Alan Modra <amodra@bigpond.net.au>
11249 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11251 (constant_pool_expr_1): Fix formatting.
11252 (rs6000_legitimize_reload_address): Likewise.
11254 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11256 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11257 now that we have one.
11259 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11261 * tree.h (struct tree_common): Remove aux. Add unused_0 at
11262 end of first block of bitfields (which was only seven bits);
11263 rename dummy to unused_1; remove comment which is no longer true.
11265 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11267 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11269 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11272 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11276 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11277 arm_is_longcall_p rather than inspecting call-type cookie
11279 (call_value_insn) [TARGET_THUMB]: Likewise.
11281 2002-02-19 Graham Stott <grahams@redhat.com>
11283 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11285 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11287 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11288 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11289 (FP_SAVE_INLINE): Delete.
11291 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11292 * config/rs6000/eabi.asm: Remove ABI save restore routines.
11293 * config/rs6000/t-ppccomm: Build crtsavres.o.
11294 * config/rs6000/crtsavres.asm: New file.
11296 2002-02-19 Philip Blundell <philb@gnu.org>
11298 * config/arm/arm.c (use_return_insn): Don't reject interrupt
11300 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11301 (output_return_instruction): Allow interrupt functions to return with
11302 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
11303 (arm_expand_prologue): Subtract 4 before stacking LR in an
11304 interrupt function.
11306 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11308 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11309 decl, not just FUNCTION_DECL.
11310 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11311 (arm_assemble_integer): Likewise.
11312 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11315 2002-02-19 matthew green <mrg@eterna.com.au>
11317 * config.gcc (sparc-*-netbsdelf*): Enable target.
11318 (sparc64-*-netbsd*): New target.
11319 * config/sparc/netbsd-elf.h: New file.
11320 * config/sparc/t-netbsd64: New file.
11322 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11324 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11326 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
11328 * doc/invoke.texi: explicitly list the style guidelines that
11329 -Weffc++ checks for.
11331 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
11333 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11335 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
11338 * gcc.c (cpp_unique_options): Treat -o as indicating object file
11339 only if not -E. If -E, pass -o through to the preprocessor.
11341 2002-02-19 Kazu Hirata <kazu@hxi.com>
11343 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11344 register number with an appropriate macro.
11346 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11348 * doc/rtl.texi (Constants): Close @code tag.
11350 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
11352 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11353 ("mmx_uavgv4hi3"): Same.
11354 ("pmulhrwv4hi3"): Same.
11356 * tree-inline.c (walk_tree): Handle vectors.
11358 * c-common.c (constant_expression_warning): Handle vectors.
11359 (overflow_warning): Same.
11361 * sched-deps.c (sched_analyze_2): Handle vectors.
11363 * rtlanal.c (rtx_unstable_p): Handle vectors.
11364 (rtx_varies_p): Same.
11365 (count_occurrences): Same.
11366 (regs_set_between_p): Same.
11367 (modified_between_p): Same.
11368 (modified_in_p): Same.
11369 (volatile_insn_p): Same.
11370 (volatile_refs_p): Same.
11371 (side_effects_p): Same.
11372 (may_trap_p): Same.
11373 (inequality_comparisons_p): Same.
11374 (replace_regs): Same.
11375 (computed_jump_p_1): Same.
11377 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11379 (inner_mode_array): New.
11380 (copy_rtx): Handle vectors.
11381 (copy_most_rtx): Same.
11382 (rtx_equal_p): Same.
11383 (get_mode_alignment): Adjust for vectors.
11385 * resource.c (mark_referenced_resources): Handle vectors.
11386 (mark_set_resources): Same.
11388 * reload1.c (eliminate_regs): Handle vectors.
11389 (elimination_effects): Same.
11390 (scan_paradoxical_subregs): Same.
11392 * reload.c (subst_reg_equivs): Handle vectors.
11394 * regrename.c (scan_rtx): Handle vectors.
11396 * regclass.c (reg_scan_mark_refs): Handle vectors.
11398 * recog.c (find_single_use_1): Handle vectors.
11400 * local-alloc.c (equiv_init_varies_p): Handle vectors.
11401 (contains_replace_regs): Same.
11402 (memref_referenced_p): Same.
11404 * integrate.c (copy_rtx_and_substitute): Handle vectors.
11405 (subst_constants): Same.
11407 * genattrtab.c (attr_copy_rtx): Handle vectors.
11408 (encode_units_mask): Same.
11409 (clear_struct_flag): Same.
11410 (count_sub_rtxs): Same.
11412 * gcse.c (want_to_gcse_p): Handle vectors.
11413 (oprs_unchanged_p): Same.
11414 (hash_expr_1): Same.
11415 (oprs_not_set_p): Same.
11416 (expr_killed_p): Same.
11417 (compute_transp): Same.
11418 (store_ops_ok): Same.
11420 * function.c (purge_addressof_1): Do not allow paradoxical subregs
11422 (fixup_var_refs_1): Same.
11423 (instantiate_virtual_regs_1): Same.
11425 * fold-const.c (operand_equal_p): Handle vectors.
11427 (rtl_expr_nonnegative_p): Same.
11429 * flow.c (mark_used_regs): Handle vectors.
11431 * df.c (df_uses_record): Handle vectors.
11433 * cselib.c (cselib_subst_to_values): Handle vectors.
11434 (cselib_mem_conflict_p): Same.
11437 * cse.c (canon_reg): Handle vectors.
11439 (cse_process_notes): Same.
11440 (count_reg_usage): Same.
11441 (canon_hash): Same.
11443 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11445 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11447 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11448 (gen_rtx): Handle CONST_VECTOR.
11449 (gen_const_vector_0): New.
11450 (copy_rtx_if_shared): CONST_VECTORs can be shared.
11451 (reset_used_flags): Same.
11452 (copy_insn_1): Same.
11453 (initializer_constant_valid_p): Handle VECTOR_CST.
11455 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11457 * doc/rtl.texi (Constants): Document const_vector.
11458 (CONST0_RTX): Update for vectors.
11459 (RTL sharing): Same.
11461 * print-tree.c (print_node): Add case for VECTOR_CST.
11463 * tree.h (TREE_VECTOR_CST_ELTS): New.
11464 (struct tree_vector): New.
11465 (union tree_node): Add vector node.
11466 (build_vector): Add prototype.
11468 * tree.def (VECTOR_CST): New.
11470 * tree.c (build_vector): New.
11472 * expmed.c (make_tree): Handle CONST_VECTOR.
11474 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11475 (CONST_VECTOR_ELT): New.
11476 (CONST_VECTOR_NUNITS): New.
11478 * machmode.h (GET_MODE_INNER): New.
11479 (DEF_MACHMODE): Accept 8th arg.
11481 * machmode.def: Add 8th argument for vector inner mode.
11482 Add inner vector modes for vectors.
11484 * rtl.def (VEC_CONST): Remove.
11485 (CONST_VECTOR): New.
11487 * expr.c (clear_storage): Allow vectors.
11488 (is_zeros_p): Handle VECTOR_CST.
11490 * varasm.c (output_constant_pool): Handle vectors.
11491 (rtx_const): Add veclo and vechi fields.
11492 (kind): Add RTX_VECTOR.
11493 (decode_rtx_const): Add case for vector.
11495 * config/rs6000/rs6000-protos.h: Add zero_constant.
11497 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11498 constants. Force easy vector constants into memory.
11499 (easy_vector_constant): New.
11500 (emit_easy_vector_constant): New.
11501 (rs6000_legitimize_reload_address): Do not generate bad reloads on
11504 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11506 ("altivec_lvxl"): Same.
11507 (altivec_lvebx): Same.
11508 (altivec_lvehx): Same.
11509 (altivec_lvewx): Same.
11510 ("*movv4si_const0"): New.
11511 ("*movv4sf_const0"): New.
11512 ("*movv8hi_const0"): New.
11513 ("*movv16qi_const0"): New.
11515 2002-02-18 Kazu Hirata <kazu@hxi.com>
11517 * config/h8300/h8300.c (notice_update_cc): Use
11520 2002-02-18 Kazu Hirata <kazu@hxi.com>
11522 * config/h8300/h8300.md (divmod patterns): Change the
11523 constraints for operands[1] to register_operand.
11525 2002-02-18 Kazu Hirata <kazu@hxi.com>
11527 * config/h8300/h8300-protos.h: Remove the prototype for
11529 * config/h8300/h8300.c (p_operand): Remove.
11530 * config/h8300/h8300.md: Replace p_operand with
11533 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11535 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11537 (output_return_instruction): Allow use of LDR to unstack
11538 return addresss even for interrupt handlers or when
11539 interworking. If compiling for ARMv5, use interworking-safe
11540 return instructions by default. Remove duplicated code and
11541 lengthy "strcat" sequences.
11543 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11545 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11546 (LINK_EH_SPEC): Define.
11547 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11549 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11551 * config/s390/s390.c (s390_emit_prologue): Do not set the
11552 frame_related flag for call-clobbered registers.
11554 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
11556 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11557 (construct_container): Fix handling of SSE operands.
11558 (ix86_expand_builtin): Fix handling of 64bit pointers.
11559 (mmx_maskmovq_rex): New pattern.
11561 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
11563 * regrename.c (kill_set_value): Handle subregs properly.
11565 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
11567 * objc/objc-act.c (handle_impent): Remove leading '*'
11568 from objc_class_name.
11570 2002-02-17 Richard Henderson <rth@redhat.com>
11572 * config/alpha/alpha.c (some_small_symbolic_operand,
11573 some_small_symbolic_operand_1, split_small_symbolic_operand,
11574 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11575 Handle small SYMBOL_REFs anywhere, not just inside memories.
11576 * config/alpha/alpha-protos.h: Update.
11577 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11578 * config/alpha/alpha.md (small symbolic operand splitter): Update.
11580 2002-02-17 Roland McGrath <roland@frob.com>
11582 * config.gcc (powerpc-*-gnu-gnualtivec*,
11583 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11584 * config/rs6000/gnu.h: New file.
11585 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11586 Grok "gnu" in rs6000_abi_name.
11587 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11588 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11589 Grok -mcall-gnu analogous to -mcall-linux et al.
11590 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11591 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11592 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11594 2002-02-17 Jakub Jelinek <jakub@redhat.com>
11597 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11600 2002-02-17 Philipp Thomas <pthomas@suse.de>
11602 * config/cris/cris.h: Undefine STARTFILE_SPEC and
11603 ENDFILE_SPEC before (re)defining them.
11605 2002-02-17 Kazu Hirata <kazu@hxi.com>
11607 * config/h8300/h8300.c: Fix formatting.
11608 * config/h8300/h8300.h: Likewise.
11610 2002-02-17 Philipp Thomas <pthomas@suse.de>
11612 * doc/tm.texi: Explain why empty strings should not be
11613 marked for translation.
11615 2002-02-17 Philipp Thomas <pthomas@suse.de>
11617 * final.c (output_operand_lossage): Changed to accept
11618 printf style arguments. Change calls where necessary.
11619 * output.h (output_operand_lossage): Change declaration
11620 accordingly. Update copyright.
11621 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11622 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11623 Update copyright date where necessary.
11625 * config/i386/i386.c (print_operand): Likewise. Remove use of
11628 * config/cris/cris.c (cris_operand_lossage): Likewise.
11629 Rename parameter so that exgettext recognizes it as
11630 translatable message.
11631 (LOSE_AND_RETURN): Rename parameter to msgid.
11633 2002-02-17 Kazu Hirata <kazu@hxi.com>
11635 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11636 hard coded register number with an appropriate macro.
11637 (HARD_REGNO_MODE_OK): Likewise.
11638 (ARG_POINTER_REGNUM): Likewise.
11639 (STATIC_CHAIN_REGNUM): Likewise.
11640 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11641 * config/h8300/h8300.md (define_constants): Define more
11644 2002-02-17 Philipp Thomas <pthomas@suse.de>
11646 * config/i386/i386.h: Don't mark empty strings for translation.
11648 2002-02-16 H.J. Lu <hjl@gnu.org>
11650 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11652 2002-02-16 Zack Weinberg <zack@codesourcery.com>
11654 * cppinit.c (merge_include_chains): Check for brack being
11655 NULL before attempting to merge it with qtail.
11657 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11659 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11662 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11664 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
11666 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11668 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
11669 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
11670 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
11672 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11674 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
11675 now only if !TARGET_FIX.
11676 (*movsi_nt_vms_fix): New pattern.
11678 2002-02-16 Douglas B Rupp <rupp@gnat.com>
11680 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
11681 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
11682 (alpha_sa_mask, alpha_sa_size): Reflect above change.
11683 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
11684 (alpha_start_function, alpha_expand_epilogue): Likewise.
11685 (unicosmk_gen_dsib): Likewise.
11687 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11689 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
11691 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
11693 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
11694 check_and_change_labels, s390_final_chunkify): Delete.
11695 (s390_split_branches, s390_chunkify_pool): New functions.
11696 (s390_function_prologue): Call them.
11698 * config/s390/s390.h (S390_REL_MAX): Delete.
11699 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
11701 * config/s390/s390.md (cjump, icjump, jump): Fix length
11702 attribute calculation.
11705 2002-02-15 David Edelsohn <edelsohn@gnu.org>
11707 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
11708 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
11710 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11712 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
11713 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
11714 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
11716 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11718 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
11720 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11722 * reload.c (find_dummy_reload): Check that an output register
11723 is valid for its mode.
11725 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
11727 * combine.c (known_cond): After replacing the REG of a SUBREG, try
11730 * function.c (assign_parms): Demote promoted argument passed by
11731 transparent reference.
11733 2001-02-14 Joel Sherrill <joel@OARcorp.com>
11735 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
11736 -Acpu() and -Amachine() to eliminate warnings.
11738 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
11740 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
11742 2002-02-14 Kazu Hirata <kazu@hxi.com>
11744 * config/h8300/h8300-protos.h: Update the prototype for
11746 * config/h8300/h8300.c (const_costs): Treat SET as a little
11747 more expensive operation.
11748 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
11749 reference to const_costs.
11751 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
11753 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
11755 2002-02-14 Jakub Jelinek <jakub@redhat.com>
11758 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
11759 use arguments from newtype.
11761 2002-02-13 Eric Christopher <echristo@redhat.com>
11763 * config/mips/mips.c (override_options): Add check for march/mipsX
11764 on the same command line. Fix error message in cpu processing.
11765 Remove architecture and ISA checks.
11767 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11769 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
11771 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
11773 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11775 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
11777 ("*movv8hi_internal1"): Same.
11778 ("*movv16qi_internal1"): Same.
11779 ("*movv4sf_internal1"): Same.
11781 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
11782 not push_reload for altivec modes.
11784 2002-02-13 Joel Sherrill <joel@OARcorp.com>
11786 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
11787 all RTEMS targets including removal of #includes from config/*/rtems*.h
11788 file and adding them to tm_file setting. Added xm_defines=POSIX to
11790 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
11791 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
11792 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
11793 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
11794 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
11795 config/m68k/rtemself.h: Ditto.
11796 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
11797 config/mips/rtems64.h: Ditto.
11798 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
11799 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
11801 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
11802 config/sparc/rtemself.h: Ditto.
11803 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
11804 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
11805 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
11807 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
11808 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
11809 target made more similar to i386-elf.
11810 * config/i386/t-rtems-i386: Added soft float support and multilibs.
11811 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
11812 be similar to config/m68k/t-m68kelf.
11813 * gthr-rtems.h: Encapsulate with extern "C" for C++.
11815 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
11817 * regmove.c (kill_value): Handle subregs.
11819 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
11821 * i386.md (mul patterns): Allow memory operand to be first;
11822 add expanders where needed; fix constraints.
11823 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
11824 Allow memory operand to be the first.
11826 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
11829 2002-02-13 Jakub Jelinek <jakub@redhat.com>
11832 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
11835 2002-02-13 Jakub Jelinek <jakub@redhat.com>
11837 PR optimization/5547:
11838 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
11839 all valid IA-32 address modes involving non-scaled %ebx and
11840 GOT/GOTOFF as displacement.
11842 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
11844 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
11845 after emitting ltorg insns.
11847 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
11848 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
11849 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
11850 *abssf2): Fix "op_type" attribute.
11852 2002-02-13 Douglas B Rupp <rupp@gnat.com>
11854 * mkconfig.sh: Avoid using a subshell redirect.
11855 ($output.T): Change to $(output)T.
11856 (ENABLE_NLS): Remove unneeded undef.
11858 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
11859 * config/alpha/x-vms (libsubdir): Define.
11861 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
11862 register frame procedures. Optimize retrieving context.
11864 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
11865 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
11866 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
11868 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11870 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
11871 Make same change as for find_base_value.
11873 2002-02-13 Kazu Hirata <kazu@hxi.com>
11875 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
11876 of QImode and SImode.
11878 2002-02-13 Kazu Hirata <kazu@hxi.com>
11880 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
11881 length computation of movsi.
11882 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
11884 2002-02-13 Kazu Hirata <kazu@hxi.com>
11886 * config/h8300/h8300.md (subqi3): Tighten the predicate for
11887 operands[2] to register_operand.
11889 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
11891 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
11893 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
11895 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
11896 for altivec_lvx* and altivec_stvx*.
11897 ("*movv4si_internal"): Add constraint for loading from GPRs.
11898 ("*movv8hi_internal1"): Same.
11899 ("*movv16qi_internal1"): Same.
11900 ("*movv4sf_internal1"): Same.
11902 * config/rs6000/rs6000.c (altivec_register_operand): New.
11904 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
11905 altivec_register_operand.
11907 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
11909 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
11912 2002-02-13 Stan Shebs <shebs@apple.com>
11914 * c-typeck.c (digest_init): Handle vectors.
11915 (really_start_incremental_init): Same.
11916 (pop_init_level): Same.
11917 (process_init_element): Same.
11919 * varasm.c (output_constant): Same.
11921 * expr.c (clear_storage): Same.
11922 (store_constructor): Same.
11924 2002-02-12 Eric Christopher <echristo@redhat.com>
11926 * explow.c (hard_function_value): Add comment explaining
11927 signed/unsigned comparison.
11929 2002-02-12 Jakub Jelinek <jakub@redhat.com>
11931 * jump.c (never_reached_warning): Add finish argument.
11932 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
11933 real insn after end.
11934 * rtl.h (never_reached_warning): Adjust prototype.
11935 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
11936 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
11937 never_reached_warning.
11939 2002-02-12 Graham Stott <grahams@redhat.com>
11941 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
11943 2002-02-12 Kazu Hirata <kazu@hxi.com>
11945 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
11946 logical shifts on H8/300.
11947 (shift_alg_si): Improve several shifts on H8/300.
11948 (get_shift_alg): Likewise.
11950 2002-02-12 Graham Stott <grahams@redhat.com>
11952 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
11954 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11956 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
11957 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
11959 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
11961 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
11962 non-CONST_INT through default_assemble_integer.
11963 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
11964 <case 8>: Abort for CONST_DOUBLE.
11966 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
11968 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
11970 * config/pa/pa-linux.h (LIB_SPEC): Delete.
11971 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11973 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
11975 * config/stormy16/stormy16.md (zero_extendqihi2): New.
11977 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
11979 * regrename.c (regrename_optimize): Don't accept a
11980 part-clobbered register if the replaced register is not part
11983 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
11984 take padding into account when computing the argument value.
11986 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
11988 * combine.c (try_combine): Apply substitutions in
11989 CALL_INSN_FUNCTION_USAGE too.
11991 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
11993 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
11994 __builtin_altivec_abs*.
11997 * config/rs6000/rs6000.h (rs6000_builtins): Add
11998 ALTIVEC_BUILTIN_ABS*.
12000 * config/rs6000/altivec.h: Use const char for builtins expecting
12002 (vec_abs): New versions for C and C++.
12005 2002-02-10 Kazu Hirata <kazu@hxi.com>
12007 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12010 2002-02-10 Kazu Hirata <kazu@hxi.com>
12012 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12013 constant definition from h8300.md.
12014 (FRAME_POINTER_REGNUM): Likewise.
12015 * config/h8300/h8300.md (define_constants): Add FP_REG.
12017 2002-02-10 Kazu Hirata <kazu@hxi.com>
12019 * config/h8300/h8300.c (print_operand): Remove redundant code.
12021 2002-02-10 Kazu Hirata <kazu@hxi.com>
12023 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12024 * config/h8300/h8300.c (byte_reg): Make it static.
12026 2002-02-10 Richard Henderson <rth@redhat.com>
12029 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12031 2002-02-10 Richard Henderson <rth@redhat.com>
12034 * tree.c (append_random_chars): Don't abort if main_input_filename
12037 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12039 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12041 2002-02-10 Kazu Hirata <kazu@hxi.com>
12043 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12044 (pushhi1): Likewise.
12046 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12048 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12049 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12051 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12053 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12055 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12057 2002-02-09 Kazu Hirata <kazu@hxi.com>
12059 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12060 a half of an SImode register on H8/300.
12062 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12064 * i386.md (movdi_2): Add missing '!'.
12066 2002-02-09 Kazu Hirata <kazu@hxi.com>
12068 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12071 2002-02-09 Kazu Hirata <kazu@hxi.com>
12073 * config/h8300/h8300.md (length): Correct the distance valid
12074 for the short branch.
12076 2002-02-09 Kazu Hirata <kazu@hxi.com>
12078 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12080 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12082 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12083 registers in SImode.
12084 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12087 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12090 Contribute sh64-elf.
12091 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12092 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12093 (sh_cannot_modify_jumps_p): New function.
12094 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12095 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12096 (sh_ms_bitfield_layout_p): New function.
12097 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12098 Zack Weinberg <zack@codesourcery.com>
12099 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12100 expand_simple_binop instead of expand_binop.
12101 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12102 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12103 use of .quad and .uaquad.
12104 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12105 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12106 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12107 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12108 movdi_const_16bit): Make sure all CONSTs have modes.
12109 (sym2PIC): Ditto, but by adjusting all callers.
12110 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12111 if the prologue calls the SHmedia argument decoder or register
12113 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12114 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12115 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12116 (sh_expand_epilogue): Don't emit USE of return target register.
12117 (prepare_move_operands): Legitimize DImode PIC addresses.
12118 (sh_media_register_for_return): Skip tr0, used to initialize the
12120 (sh_expand_prologue): Remove explicit USE of return register.
12121 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12122 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12123 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12124 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12125 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12126 EXTRA_CONSTRAINT_T.
12127 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12128 (MOVI_SHORI_BASE_OPERAND_P): New.
12129 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12130 (EXTRA_CONSTRAINT_T): Define in terms of them.
12131 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12132 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12133 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12134 alternatives supporting TARGET_REGS.
12135 (UNSPEC_GOTPLT): New constant.
12136 (movdi split): Move incrementing of LABEL_NUSES...
12137 (movdi_const, movdi_const_32bit): Here. Use
12138 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12139 (movdi_const_16bit): New.
12140 (call, call_value) [flag_pic]: Use GOTPLT.
12141 (call_pop, call_value_pop): New expands.
12142 (call_pop_compact, call_pop_rettramp): New insns.
12143 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12144 (sibcall) [flag_pic]: Use GOT.
12145 (builtint_setjmp_receiver): Remove bogus, unused expand.
12146 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12147 (*pt, *ptb, ptrel): New insns.
12148 (sym2GOT): Handle DImode GOT.
12149 (sym2GOTPLT, symGOTPLT2reg): New expands.
12150 (sym2PIC): New expand.
12151 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12152 (shcompact_return_tramp_i): Use return register explicitly.
12153 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12154 disable flag_reorder_blocks.
12155 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12156 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12157 clobbers, for clarity.
12158 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12159 restoring of r0 in macl as MAYBE_DEAD.
12160 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12161 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12162 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12163 alter_subreg all over.
12164 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12165 reload, instead of emitting instructions that would require
12167 (casesi_load_media): Add missing modes.
12168 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12169 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12170 as used if the argument decoder is called.
12171 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12172 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12173 Pmode, then extend it to DImode if necessary.
12174 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12175 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12176 constants in FPU-enabled SHmedia, let them be loaded from memory.
12177 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12178 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12179 Adjust whitespace in assembly output templates.
12180 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12181 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12182 mode of if_then_else.
12183 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12184 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12186 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12187 Joern Rennecke <amylaar@redhat.com>
12188 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12189 (SUBTARGET_CPP_PTR_SPEC): New.
12190 (SUBTARGET_CPP_SPEC): Remove.
12191 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12192 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12193 Fix typo in previous checkin.
12194 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12195 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12196 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
12197 Alexandre Oliva <aoliva@redhat.com>
12198 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12199 what single FP register can hold for SHmedia target.
12200 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12201 Alexandre Oliva <aoliva@redhat.com>
12202 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12203 Do not split into SUBREG.
12204 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
12205 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12206 and added new functions as specified in SH5 ABI r9.
12207 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
12208 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12210 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
12211 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12212 gen_consttable_4 and gen_consttable_8. Emit multiple labels
12213 and consttable_window_ends.
12214 2001-06-03 Graham Stott <grahams@redhat,com>
12215 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12216 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
12217 * config/sh/sh.c (print_operand): Handle floating-point pair,
12218 vector and matrix registers.
12219 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12220 vector modes into account.
12221 * config/sh/sh.md (movv2sf): Split move between registers into
12223 (movv4sf, movv16sf): Introduce insns that get split only after
12225 * config/sh/shmedia.h: Fix Copyright dates.
12226 * config/sh/ushmedia.h: Likewise. Move loop counter
12227 declarations into conditionals that uses them.
12228 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12230 * config/sh/sshmedia.h: Fix Copyright dates.
12231 (sh_media_PUTCFG): Fix constraints.
12232 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
12233 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12234 ptrmemfunc_vbit_in_delta for SH5.
12235 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
12236 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12237 * invoke.texi: Likewise.
12238 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
12239 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12240 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12241 GCC_pop_shmedia_regs_nofpu): New global symbols.
12242 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12243 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12244 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12245 compact function with nonlocal labels.
12246 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12247 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12248 (initial_elimination_offset): Account for their stack space.
12249 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12250 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12251 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12252 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12253 least one of the operands to be a register.
12254 (movv2sf): Likewise. Renamed to movv2sf_i.
12255 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12256 prepare_move_operands() before emitting SHmedia insns.
12257 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
12258 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12259 Don't save nor initialize r12. Don't mis-align the stack.
12260 Pad the code with a nop.
12261 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
12263 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
12264 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12265 [__SHMEDIA__]: Implement.
12266 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
12267 * config/sh/sh.md: Set latency of `pt' closer to reality.
12268 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12269 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12270 Set move, load and store type attributes.
12271 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12272 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12274 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12275 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12276 * config/sh/sh.c (sh_media_register_for_return): New function.
12277 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12278 branch-target register.
12279 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12280 * config/sh/sh.md (return_media_i): Use any call-clobbered
12281 branch-target register.
12282 (return_media): If r18 wasn't copied in the prologue, copy it
12284 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12285 Clear class FP0_REGS.
12286 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12288 2001-03-08 DJ Delorie <dj@redhat.com>
12289 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12290 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
12291 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12292 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
12293 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12294 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
12295 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12296 return value correctly for call_cookie.
12297 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
12298 * config/sh/crt1.asm (start): Modified so as to call
12299 ___setup_argv_and_call_main.
12300 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
12301 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12303 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
12304 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12305 (STRIP_NAME_ENCODING): Use it.
12306 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
12307 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
12308 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12309 prepare_scc_operands().
12310 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12311 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12312 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
12313 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12314 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
12315 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12316 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12317 used in shcompact_incoming_args.
12318 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12320 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12322 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12323 Adjust accordingly.
12324 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12325 Simplify. Adjust. Add sanity check.
12326 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12328 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12330 (udivsi3, divsi3): Use them.
12331 (force_mode_for_call): New insn.
12332 (call, call_value, sibcall_value): Emit it before SHcompact
12334 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
12335 * config/sh/sh.md (call, call_value, sibcall): Make sure the
12336 call cookie is non-NULL before taking its value.
12337 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
12338 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12339 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
12340 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12342 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12343 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12344 temporary for stack adjusts. Use MACL and MACH to pass
12345 arguments to shcompact_incoming_args.
12346 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
12348 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12349 (nested_trampoline): Load static chain address into r1.
12350 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12351 2001-01-07 Alexandre Oliva <aoliva@redhat.com
12352 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12353 fp_arith_reg_operand().
12354 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
12355 * config/sh/sh.md (casesi): Sign-extend the first two operands,
12356 and use signed compares for them.
12357 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12358 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
12359 ones properly aligned.
12360 (find_barrier): Account for extra alignment needed for 8-byte wide
12362 (machine_dependent_reorg): Require a label for the second 4-byte
12363 constant after an 8-byte one.
12364 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12366 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12367 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12368 last_float when switching float modes.
12369 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12370 auto-increment for general-purpose registers.
12371 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12373 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12375 * config/sh/sh.c (sh_builtin_saveregs): Support using all
12376 registers for varargs.
12377 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
12378 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12379 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12380 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12381 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12382 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
12383 call_cookie accordingly.
12384 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12385 (SHCOMPACT_BYREF): Likewise.
12386 (SHCOMPACT_FORCE_ON_STACK): New macro.
12387 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12388 (sh_builtin_saveregs): Likewise.
12389 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12390 shcompact_incoming_args): Use new shift values. Support
12391 sequences of consecutive and non-consecutive pushes/pops.
12392 * config/sh/sh.md (return): Don't explicitly use PR_REG.
12393 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
12394 * config/sh/sh.h (TEXT_SECTION): Define.
12395 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12396 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12397 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12398 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12399 return values on FPU-enabled SHmedia.
12400 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12401 FPU-enabled SHmedia.
12402 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12403 value is returned in a non-FP reg and is not returned by
12405 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12407 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
12408 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12409 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12410 quad-aligned to be passed by callee-copy reference.
12411 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
12412 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12413 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12414 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
12415 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12416 copying low-numbered FP regs to r7 and r8.
12417 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12418 FP regs to general-purpose regs only if the copy was passed on the
12420 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12421 copying FP reg to r9.
12422 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12423 copy FP regs to general-purpose regs only in outgoing calls.
12424 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12425 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
12427 * config/sh/sh.h (struct sh_args): Document all fields.
12428 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12429 passed partially on the stack should not consider making
12431 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12432 stack_regs only for incoming calls. When passing FP args,
12433 make sure there are FP regs available before modifying
12435 (SHCOMPACT_BYREF): Pass double args in general-purpose
12436 registers by reference.
12437 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
12438 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12439 attempt to generate sibcalls if the caller got any arguments
12441 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12442 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12443 to 8-byte boundaries.
12444 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12445 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12446 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12447 stored in the stack.
12448 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12449 for the offsets to have the ISA bit set.
12450 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
12451 invocation. Use beq instead of bgt to mark end of sequence of
12453 (shcompact_incoming_args): Fix store of r2. Use beq instead of
12454 bgt to mark end of sequence of stores.
12455 * config/sh/sh.c (arith_operand): Don't check whether
12456 CONST_OK_FOR_J for now.
12457 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12458 instead of long for conversion.
12459 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
12460 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12461 before passing it to fprintf.
12462 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
12463 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12464 Call set_fpscr before reading/writing SR.
12465 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12467 * config/sh/lib1funcs.asm: Add `.align 2' directives before
12469 (FMOVD_WORKS): Define on SH5 with FPU.
12470 (set_fpscr): Define on SH5. Remove separate _fpscr_values
12472 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12474 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
12475 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12477 (ia_main_table): Ditto.
12478 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
12479 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12480 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12481 the definitions from sh.h.
12482 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12484 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12485 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12486 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12487 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
12488 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12489 Increment LABEL_NUSES.
12491 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12493 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12495 * config/sh/elf.h (SIZE_TYPE): Likewise.
12496 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12497 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12498 shcompact_incoming_args): Load switch table addresses using
12500 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12501 (NO_BUILTIN_SIZE_TYPE): Define.
12502 (SIZE_TYPE): Don't define.
12503 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12504 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12505 definition of __SH5__=32 for -m5-compact-nofpu.
12506 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12508 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
12509 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12510 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
12511 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12512 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12513 (INSN_LENGTH_ALIGNMENT): Likewise.
12514 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12515 * config/sh/sh.md (call, call_value, sibcall): Simplify
12516 copying of non-branch-target register.
12517 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12518 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
12519 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12520 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12521 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12522 floating-point values as structs.
12523 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12524 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12525 general-purpose register.
12526 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12527 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12528 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12529 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12530 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12531 (ENCODE_SECTION_INFO): Enclose variables and constants in
12533 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12534 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12535 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12536 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12537 only for LABEL_REFs. For SYMBOL_REFs, prepend
12538 SH_DATALABEL_ENCODING to the symbol name.
12539 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12541 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12542 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12544 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12545 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12546 (DATALABEL_REF_P): Don't require CONST.
12547 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12549 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
12550 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12552 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12553 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12554 Use shallow_copy_rtx and PUT_MODE to change the mode of
12555 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12556 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12557 on SHmedia using GENERAL_REGs.
12558 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12559 bltu_media_i): Fix reversion of conditions.
12560 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12561 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12562 * config/sh/sh.c (output_far_jump): Save r13 in macl.
12563 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
12564 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12565 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
12566 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12567 (GCC_nested_trampoline): Likewise.
12568 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12569 * config/sh/sh.c (gen_datalabel_ref): Define.
12570 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12571 (INITIALIZE_TRAMPOLINE): Likewise.
12572 (TRAMPOLINE_ADJUST_ADDRESS): Define.
12573 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12574 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12575 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12576 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12577 (ic_invalidate): Adjust for SH5.
12578 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12579 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12580 _nested_trampoline.
12581 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
12582 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12583 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12584 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12585 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12586 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12587 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12588 * config/sh/sh.c (target_reg_operand): Match only target-branch
12589 registers and pseudos that aren't virtual registers.
12590 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12591 Copy operands that don't match target_reg_operand to pseudos.
12592 (call_media, call_value_media, sibcall_media): Use
12593 target_reg_operand instead of target_operand.
12594 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
12595 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12596 * config/sh/sh.c (target_reg_operand): Match hardware registers
12597 other than branch-target registers.
12598 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12599 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12600 (fpscr_values) [SH5 == 32]: Define.
12601 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12602 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12603 Handle function addresses coming in SUBREGs.
12604 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
12605 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12606 shcompact_return_trampoline): Use datalabel where appropriate.
12607 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
12608 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12609 general-purpose register to copy one branch-target register to
12611 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12612 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12613 SYMBOL_REFs with VOIDmode.
12614 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12615 bltu_media_i): New insns.
12616 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12617 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12618 (INIT_CUMULATIVE_ARGS): Likewise.
12619 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
12620 * machmode.def (V16SFmode): New mode.
12621 * c-common.c (type_for_mode): Support V2SF and V16SF.
12622 * tree.c (build_common_tree_nodes_2): Likewise.
12623 * tree.h (tree_index): Likewise.
12624 * calls.c (emit_call_1): Take args_so_far. Adjust all
12625 callers. Introduce CALL_POPS_ARGS.
12626 * tm.texi (CALL_POPS_ARGS): Document.
12627 * config/sh/crt1.asm: Implement in SHmedia mode.
12628 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12629 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12630 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12631 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12632 Implement divsi and udivsi in SHmedia mode. Introduce
12633 SHcompact trampolines.
12634 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12636 (regno_reg_class): Rewrite.
12637 (fp_reg_names): Remove.
12638 (sh_register_names, sh_additional_register_names): New.
12639 (print_operand): Added `u'. Support SUBREGs in addresses.
12640 Add parentheses around shifted CONSTs.
12641 (output_file_start): Output .mode and .abi directives.
12642 (shiftcosts, addsubcosts, multcosts): Adjust.
12643 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
12644 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
12645 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
12646 bytes, not registers. Take into account the need for the
12647 SHcompact incoming args trampoline. Adjust all callers.
12648 (sh_expand_prologue): Take stack_regs into account. Call
12649 incoming args trampoline. Keep stack aligned as per SH5 ABI.
12650 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
12651 stack aligned as per SH5 ABI.
12652 (sh_builtin_saveregs): Support SH5 ABI.
12653 (sh_build_va_list, sh_va_start): Likewise.
12654 (initial_elimination_offset): Take alignment into account.
12655 Compute location of PR according to the SH5 stack frame.
12656 (arith_reg_operand): Reject branch-target registers.
12657 (shmedia_6bit_operand): New.
12658 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12659 (target_reg_operand): Match DImode only. Accept SUBREGs.
12660 (target_operand): New.
12661 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
12662 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
12663 SIBCALL_REGS for SHmedia.
12664 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
12665 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
12666 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
12667 (TARGET_SWITCHES): New SH5 flags.
12668 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
12669 VALID_REGISTER_P to disable unsupported registers.
12670 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
12671 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
12672 (FUNCTION_ARG_PADDING): Define.
12673 (FASTEST_ALIGNMENT): Adjust.
12674 (SH_REGISTER_NAMES_INITIALIZER): New.
12675 (sh_register_names): Declare.
12676 (DEBUG_REGISTER_NAMES): Define.
12677 (REGISTER_NAMES): Define based on sh_register_names.
12678 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
12679 (sh_additional_register_names): Declare.
12680 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
12681 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
12682 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
12683 (REGISTER_NATURAL_MODE): Define.
12684 (FIRST_PSEUDO_REGISTER): Adjust.
12685 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
12686 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
12687 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
12688 (VECTOR_MODE_SUPPORTED_P): Define.
12689 (REG_CLASS_CONTENTS): Adjust.
12690 (SMALL_REGISTER_CLASSES): Adjust.
12691 (REG_ALLOC_ORDER): Adjust.
12692 (INDEX_REG_CLASS): Adjust.
12693 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
12694 (CONST_OK_FOR_LETTER_P): Adjust.
12695 (PREFERRED_RELOAD_CLASS): Adjust.
12696 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
12697 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
12698 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
12699 (FIRST_FP_PARM_REG): Adjust.
12700 (CALL_POPS_ARGS): Define.
12701 (FUNCTION_ARG_REGNO_P): Adjust.
12702 (struct sh_args): New fields.
12703 (GET_SH_ARG_CLASS): Adjust.
12704 (INIT_CUMULATIVE_ARGS): Adjust.
12705 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
12706 (FUNCTION_ARG_ADVANCE): Adjust.
12707 (FUNCTION_ARG): Adjust.
12708 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
12709 (FUNCTION_ARG_CALLEE_COPIES): Define.
12710 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
12711 (STRICT_ARGUMENT_NAMING): Define.
12712 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
12713 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
12714 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
12715 (SETUP_INCOMING_VARARGS): Adjust.
12716 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
12717 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
12718 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
12719 (SUBREG_OK_FOR_INDEX_P): Adjust.
12720 (EXTRA_CONSTRAINT_S): Update.
12721 (EXTRA_CONSTRAINT_T): New.
12722 (EXTRA_CONSTRAINT): Adjust.
12723 (GO_IF_LEGITIMATE_INDEX): Adjust.
12724 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
12725 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
12726 (MOVE_MAX): Adjust.
12727 (MAX_MOVE_MAX): Define.
12729 (CONST_COSTS): Adjust.
12730 (REGISTER_MOVE_COST): Adjust.
12731 (BRANCH_COST): Adjust.
12732 (TEXT_SECTION_ASM_OP): Adjust.
12733 (DBX_REGISTER_NUMBER): Adjust.
12734 (ASM_OUTPUT_DOUBLE_INT): New.
12735 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
12736 (PREDICATE_CODES): Adjust.
12737 (PROMOTE_MODE): Adjust.
12738 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
12739 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
12740 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
12741 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
12742 (DR0_REG, DR2_REG, DR4_REG): Renumber.
12743 (TR0_REG, TR1_REG, TR2_REG): New.
12744 (XD0_REG): Renumber.
12745 (UNSPEC_COMPACT_ARGS): New.
12746 (type): Added pt and ptabs.
12747 (length): Default to 4 on SHmedia. Default pt length to 12
12748 and 20 on SHmedia32 and SHmedia64, respectively.
12749 (pt): New function unit.
12750 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
12751 Add whitespace between operands of SHmedia instructions.
12753 (adddi3_media, addsi3_media): Adjust constraints.
12754 (subsi3) [SHmedia]: Force operand 1 into a register.
12755 (udivsi3_i1_media, udivsi3_i4_media): New.
12756 (udivsi3): Support SHmedia.
12757 (divsi3_i1_media, divsi3_i4_media): New.
12758 (divsi3): Support SHmedia.
12759 (anddi3, iordi3, xordi3): Adjust constraints.
12760 (zero_extendhidi2, zero_extendqidi2): New.
12761 (extendsidi2, extendhidi2, extendqidi2): New.
12762 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
12763 (pop_e, pop_fpul, pop_4): Likewise.
12764 (movsi_media): Support FP and BT registers.
12765 (movsi_media_nofpu): New. Adjust splits to DImode.
12766 (lduw, ldub): Renamed to zero_extend* above.
12767 (movqi_media): Fix typo.
12768 (movdi_media): Support FP and BT registers.
12769 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
12770 (movdi_const_32bit): New.
12771 (shori_media): Require immediate operand. Use `u' for output.
12772 (movdf_media, movsf_media): Simplified.
12773 (movdf_media_nofpu, movsf_media_nofpu): New.
12774 (movdf, movsf): Adjust
12775 (movv2sf, movv2sf, movv16sf): New.
12776 (beq_media, beq_media_i): Adjust constraints. Don't use
12777 scratch BT register.
12778 (bne_media, bne_media_i): Likewise.
12779 (bgt_media, bgt_media_i): Likewise.
12780 (bge_media, bge_media_i): Likewise.
12781 (bgtu_media, bgtu_media_i): Likewise.
12782 (bgeu_media, bgeu_media_i): Likewise.
12783 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
12784 bunordered): Emit jump insn. Force operands to registers when
12786 (jump_media, jump): Simplify.
12787 (call_compact, call_compact_rettramp): New.
12788 (call_value_compact, call_value_compact_rettramp): New.
12789 (call_media, call_value_media): Simplify.
12790 (sibcall_compact, sibcall_media): New.
12791 (call, call_value): Adjust for SHmedia and SHcompact.
12792 (sibcall, sibcall_value, untyped_call): Likewise.
12793 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
12794 (indirect_jump): Adjust for SHmedia.
12795 (casesi_jump_media): New.
12796 (nop): Re-enable for SHmedia.
12797 (call_site): Restrict to SH1.
12798 (casesi): Adjust for SHmedia.
12799 (casesi_shift_media, casesi_load_media): New.
12800 (return): Explicitly use PR register. Call return trampoline
12802 (return_i): Explicitly use PR register.
12803 (shcompact_return_tramp, shcompact_return_tramp_i): New.
12804 (return_media): Adjust.
12805 (shcompact_incoming_args): New.
12806 (epilogue): Adjust.
12807 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12808 (movstrsi): Disable on SH5.
12809 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
12810 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
12811 (subsf3, subsf3_media): Likewise.
12812 (mulsf3, mulsf3_media, mac_media): Likewise.
12813 (divsf3, divsf3_media): Likewise.
12814 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
12815 (floatsisf2, fux_truncsfsi2): Likewise.
12816 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
12818 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
12819 (cmpunsf_media, cmpsf): Likewise.
12820 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
12821 (abssf2, abssf2_media): Likewise.
12822 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
12823 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
12824 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
12825 (floatsidf2, fix_truncdfsi2): Likewise.
12826 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
12828 (cmpeqdf_media, cmpgtdf_media): Likewise.
12829 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
12830 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
12831 (absdf2, absdf2_media): Likewise.
12832 (extendsfdf2, extendsfdf2_media): Likewise.
12833 (truncsfdf2, truncsfdf2_media): Likewise.
12834 * config/sh/sh64.h: New file.
12835 * config/sh/t-sh64: New file.
12836 * config/sh/shmedia.h: New file.
12837 * config/sh/ushmedia.h: New file.
12838 * config/sh/sshmedia.h: New file.
12839 * configure.in: Added sh64-*-elf.
12840 * configure: Rebuilt.
12841 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
12842 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
12843 (reg_class_from_letter): Use `b' for TARGET_REGS.
12844 (print_operand): Support `%M', `%m', `AND' and
12845 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
12846 (andcosts): Adjust for SHmedia.
12847 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
12849 (target_reg_operand): New function.
12850 * config/sh/sh-protos.h (target_reg_operand): Declare.
12851 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
12852 FP registers on SH5.
12853 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
12855 (TARGET_REGISTER_P): New macro.
12856 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
12857 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
12858 (EXTRA_CONSTRAINT_S): New macro.
12859 (EXTRA_CONSTRAINT): Adjust.
12860 (FLOAT_TYPE_SIZE): Define to 32.
12861 (Pmode): DImode on SHmedia.
12862 (CONST_COSTS): Adjust for SHmedia literals.
12863 (PREDICATE_CODES): Added target_reg_operand.
12864 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
12865 * config/sh/sh.md: Remove all attrs from SHmedia insns.
12866 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
12867 (cmpdi): Accept SHmedia.
12868 (movdicc_false, movdicc_true): New insns.
12869 (movdicc): New expand.
12870 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
12872 (addsi3_media): Match `S' constraint.
12873 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
12874 (negdi2): Expand for SHmedia.
12875 (one_cmpldi2): New expand.
12876 (zero_extendsidi2): Change from expand to insn.
12877 (extendsidi2): Add constraints.
12878 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
12879 LD/ST address. Fix SI immediate loading split.
12880 (movhi_media, movqi_media, lduw, ldub): New insns.
12881 (movhi, movqi): Accept SHmedia.
12882 (shori_media, movdi_media): Relax input constraints. Split
12883 symbolic constants.
12884 (movdf_media, movsf_media): New insn. New split to movdi.
12885 (movdf, movsf): Match on SHmedia.
12886 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
12887 bgeu_media): New insns and splits. New insns with `_i' suffix.
12888 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
12889 (bunordered): New expand.
12890 (jump_compact): Renamed from `jump'.
12891 (jump_media): New insn.
12892 (jump): New expand.
12893 (call_media, call_value_media): New insns.
12894 (call, call_value): Adjust.
12895 (indirect_jump_compact): Renamed from `indirect_jump'.
12896 (indirect_jump_media): New insn.
12897 (indirect_jump): New expand.
12898 (untyped_call, return): Accept SHmedia.
12899 (return_media): New insn.
12900 (prologue, epilogue, blockage): Accept SHmedia.
12901 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12902 (sunordered): New expand.
12903 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
12904 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
12905 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
12906 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
12907 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
12908 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
12909 abssf2_media): New insns.
12910 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
12911 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
12912 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
12913 floatdidf2, floatsidf2_media, fix_truncdfdi2,
12914 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
12915 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
12916 absdf2_media): New insns.
12917 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
12918 (extendsfdf2_media, truncdfsf2_media): New insns.
12919 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
12920 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
12921 * config/sh/sh.h (CONST_OK_FOR_J): Document.
12922 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
12923 * config/sh/sh.md (adddi3): New expand.
12924 (adddi3_media, adddi3z_media): New insns.
12925 (adddi3_compact): Renamed from adddi3.
12926 (addsi3_media): Use add.l r63 to add constant zero.
12927 (subdi3): New expand.
12928 (subdi3_media): New insn.
12929 (subdi3_compact): Renamed from subdi3.
12930 (mulsidi3): New expand.
12931 (mulsidi3_media): New insn.
12932 (mulsidi3_compact): Renamed from mulsidi3.
12933 (umulsidi3): New expand.
12934 (umulsidi3_media): New insn.
12935 (umulsidi3_compact): Renamed from umulsidi3.
12936 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
12937 (ashlsi3, ashrsi3, lshrsi3): Use them.
12938 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
12939 (ashldi3, ashrdi3, lshrdi3): Use them.
12940 (zero_extendsidi2): New expand.
12941 (extendsidi2): New insn.
12942 (movsi_media): New insn. Split to movdi to load constants.
12943 (movsi): Enable for shmedia.
12944 (movdi_media): New insn. Use shori_media to load wide constants.
12945 (short_media): New insn.
12946 (movdi): Enable for shmedia.
12947 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
12948 * config/sh/sh.h (CPP_SPEC): Added `m5'.
12949 (SUBTARGET_CPP_SPEC): Added `!m5'.
12950 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
12951 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
12952 to all other SH variants.
12953 (TARGET_DEFAULT): Set to SH1_BIT.
12954 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
12955 (BITS_PER_WORD): Raise to 64 on shmedia.
12956 (MAX_BITS_PER_WORD): Change to 64.
12957 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
12958 (INT_TYPE_SIZE): Keep as 32.
12959 (UNITS_PER_WORD): Raise to 8 on shmedia.
12960 (MIN_UNITS_PER_WORD): Keep as 4.
12961 (POINTER_SIZE): Raise to 64 on shmedia.
12962 (CONST_OK_FOR_J): New macro.
12963 (CONST_OK_FOR_LETTER_P): Use it.
12964 (processor_type): Add PROCESSOR_SH5.
12965 * config/sh/sh.md: Conditionalize all expands, insns and
12966 splits to TARGET_SH1.
12968 (addsi3_compact): Renamed from...
12969 (addsi3): Now an expand.
12970 (addsi3_media, subsi3_media): New insns.
12971 (subsi3): Don't negate constants with SHmedia.
12973 * hooks.c: New file.
12974 * hooks.h: New file.
12975 * Makefile.in (HOOKS_H): New.
12976 (TARGET_DEF_H): Added $(HOOKS_H).
12977 (OBJS): Added hooks.o.
12978 (cfgcleanup.o, bb-reorder.o): Added target.h.
12979 (hooks.o): Added dependencies.
12980 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
12981 (TARGET_INITIALIZER): this.
12982 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
12983 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
12984 * bb-reorder.c: Include target.h.
12985 (reorder_basic_blocks): Skip if cannot modify jumps.
12986 * cfgcleanup.c: Include target.h.
12987 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
12989 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12991 * config/mips/mips.md (casesi_internal, casesi_internal_di):
12992 Protect jump delay slot instructions with .set noreorder and
12995 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12997 * config/mips/mips.md (casesi_internal_di): Calculate
12998 the index into the target offset table correctly.
13000 2002-02-08 Richard Henderson <rth@redhat.com>
13002 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13003 * final.c (output_addr_const): Accept and discard SUBREG.
13004 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13005 mark them unknown instead.
13006 (simplify_subtraction): Handle RTX_UNKNOWN.
13007 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13009 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13011 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13013 2002-02-08 Richard Henderson <rth@redhat.com>
13015 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13017 2002-02-08 Andreas Jaeger <aj@suse.de>
13019 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13020 * config/i386/t-linux64: New file.
13022 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13024 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13025 * c-parse.in (compstmt): Clear last_expr_type.
13027 2002-02-07 Richard Henderson <rth@redhat.com>
13029 * loop.c (strength_reduce): Sink final_value when not
13032 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13034 * config/sparc/freebsd.h: Fix mismatched spec {.
13036 2002-02-07 Richard Henderson <rth@redhat.com>
13038 * cfgrtl.c: Include recog.h and insn-config.h.
13039 (keep_with_call_p): Fix general_operand invocation.
13040 * Makefile.in (cfgrtl.o): Update dependencies.
13042 2002-02-07 Kazu Hirata <kazu@hxi.com>
13044 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13045 comment. Accept HImode only if TARGET_H8300.
13047 2002-02-07 Eric Christopher <echristo@redhat.com>
13049 * config/mips/crtn.asm: Cleanup #ifdefs.
13051 2002-02-07 Eric Christopher <echristo@redhat.com>
13053 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13054 register 7 as RA instead of $31.
13055 * config/mips/crtn.asm: Ditto.
13056 * config/mips/mips.c (mips_move_2words): Add case for
13057 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13058 (compute_frame_size): Fix typo.
13059 (save_restore_insns): Ditto. Make documentation about using
13060 register $7 as return register more precise.
13061 (mips_expand_epilogue): Fix comment. Add code to work around not
13062 being able to add to the stack pointer directly.
13063 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13064 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13067 2002-02-07 Tom Rix <trix@redhat.com>
13069 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13070 immediates in ldu and stdu DS opcode field.
13071 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13072 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13073 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13075 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13077 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13078 offset for stack bias.
13080 2002-02-07 H.J. Lu <hjl@gnu.org>
13082 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13084 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13086 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13088 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13090 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13091 * i386.c (x86_order_regs_for_local_alloc): New global function.
13092 * i386.h (REG_ALLOC_ORDER): CLeanup.
13093 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13095 2002-02-07 Richard Henderson <rth@redhat.com>
13097 PR optimization/2463
13098 * alias.c (find_base_value): Recall base values for fixed hard regs.
13099 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13101 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13103 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13106 2002-02-06 Richard Henderson <rth@redhat.com>
13109 * stmt.c (resolve_operand_name_1): Take more care with mixed
13110 named and unnamed operands.
13112 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13113 Jan Hubicka <jh@suse.cz>
13115 * loop.c (remove_constant_addition): Avoid clobbering a shared
13118 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13120 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13121 * config/s390/t-linux64: New file.
13122 * config/s390/libgcc-glibc.ver: New file.
13124 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13126 * config/s390/linux64.h: Delete file.
13127 * config/s390/s390x.h: New file.
13128 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13129 as target header file.
13130 * config/s390/linux.h (TARGET_VERSION): Define depending on
13131 DEFAULT_TARGET_64BIT.
13132 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13133 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13134 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13135 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13136 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13137 (EXTRA_SPEC): New define.
13138 * config/s390/s390.h (TARGET_VERSION): Define depending on
13139 DEFAULT_TARGET_64BIT.
13140 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13142 2002-02-06 Jason Merrill <jason@redhat.com>
13144 * c-decl.c (finish_function): Warn about a non-void function with
13145 no return statement and no abnormal exit.
13146 (current_function_returns_abnormally): New variable.
13147 (start_function): Clear it.
13148 (struct c_language_function): Add returns_abnormally.
13149 (push_c_function_context): Save it.
13150 (pop_c_function_context): Restore it.
13151 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13152 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13153 an explicit return type.
13154 * c-tree.h: Declare current_function_returns_abnormally.
13155 (C_FUNCTION_IMPLICIT_INT): New macro.
13156 * c-typeck.c (build_function_call): Set it.
13157 (c_expand_return): Set current_function_returns_value even if the
13158 value is erroneous.
13160 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13163 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13164 unsafe for reevaluation.
13166 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13169 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13170 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13172 2002-02-06 Richard Henderson <rth@redhat.com>
13174 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13175 be a general_operand. Dest for function value must be a pseudo.
13177 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13179 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13180 as SYMBOL_REFs from the constant pool.
13182 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13184 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13185 passed by invisible reference.
13187 2002-02-05 Richard Henderson <rth@redhat.com>
13189 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13191 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13193 Implement using "base addresses" in insn operands as default.
13194 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13195 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13196 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13197 used to read the rtx value.
13198 (mmix_target_asm_function_epilogue): Fix spacing.
13199 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13200 (mmix_legitimate_address): Ditto.
13201 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13202 should be loaded with a GETA insn. Don't allocate needless extra
13203 char for nul termination and fix misleading comment.
13204 (mmix_print_operand_address): Handle constants if
13205 TARGET_BASE_ADDRESSES.
13206 (mmix_output_register_setting): Use base addressing if
13207 TARGET_BASE_ADDRESSES and the number of insns is 3.
13208 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13209 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13210 to use R as constraint, add LDA to match s.
13211 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13212 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13213 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13214 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13215 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13216 order with other fixed registers.
13217 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13218 other parameter/call-clobbered registers.
13219 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13220 -mbase-addresses, -mno-base-addresses.
13221 (MMIX Options): Ditto.
13223 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13225 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13227 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
13229 * config/rs6000/altivec.h: Change elem to _S_elem.
13231 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13233 * config/netbsd.h (WCHAR_TYPE): Define.
13234 (WCHAR_TYPE_SIZE): Ditto.
13235 (WINT_TYPE): Ditto.
13236 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13237 (WCHAR_UNSIGNED): Ditto.
13238 (WCHAR_TYPE_SIZE): Ditto.
13239 (WINT_TYPE): Ditto.
13240 * config/arm/netbsd.h: Likewise.
13241 * config/i386/netbsd-elf.h: Likewise.
13242 * config/i386/netbsd.h: Likewise.
13243 * config/m68k/netbsd-elf.h: Likewise.
13244 * config/m68k/netbsd.h: Likewise.
13245 * config/ns32k/netbsd.h: Likewise.
13246 * config/sparc/netbsd.h: Likewise.
13247 * config/vax/netbsd.: Likewise.
13249 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
13251 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13252 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
13253 (TARGET_INITIALIZER): this.
13254 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13255 (BITFIELD_NBYTES_LIMITED): Markup fix.
13256 * tree.h (default_ms_bitfield_layout_p): Declare.
13257 (record_layout_info): Added prev_field.
13258 * tree.c (default_ms_bitfield_layout_p): New fn.
13259 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13260 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13261 * stor-layout.c: Include target.h.
13262 (start_record_layout): Initialize prev_field.
13263 (place_field): Handle MS bit-field layout, and disregard
13264 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13265 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
13266 * Makefile.in (stor-layout.o): Adjust dependencies.
13268 2002-02-05 Jason Merrill <jason@redhat.com>
13270 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13272 2002-02-05 Andreas Jaeger <aj@suse.de>
13274 * crtstuff.c: Fix comments.
13276 2002-02-05 Richard Henderson <rth@redhat.com>
13279 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13280 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13283 * config/mips/mips.c (function_arg): Handle TImode.
13284 (function_arg_advance): Likewise.
13286 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13288 * config/rs6000/altivec.h (vec_step_help): Rename to
13291 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13293 * config/rs6000/altivec.h: Fix typos.
13295 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13297 * config/arm/netbsd.h: Correct a comment.
13299 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13301 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13302 building void typed builtins.
13304 * config/rs6000/altivec.h (vec_ld*): Fix typos.
13305 (vec_step): Implement for C++.
13307 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13309 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13311 2002-02-04 Richard Henderson <rth@redhat.com>
13313 * combine.c (nonzero_bits): Re-introduce special case for
13314 sp/fp/ap wrt REGNO_POINTER_ALIGN.
13316 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13318 * doc/extend.texi: Warn about unsupported usage of altivec
13321 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13322 (altivec_predicate_*): New.
13324 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13325 Add C++ version of vec_*() functions.
13327 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13328 (bdesc_2arg): Remove altivec predicates.
13329 (altivec_expand_builtin): Handle predicates.
13330 (altivec_init_builtins): Handle predicates.
13331 (altivec_expand_predicate_builtin): New.
13333 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13335 * pa.c (DO_FRAME_NOTES): Move forward.
13336 (store_reg): Revise handling of frame notes.
13337 (load_reg): Likewise.
13338 (set_reg_plus_d): Likewise.
13339 (hppa_expand_prologue): Likewise.
13340 (hppa_expand_epilogue): Likewise.
13342 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13344 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13346 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13348 PR c/4475, c++/3780:
13349 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13350 * c-common.h (SWITCH_TYPE): Define.
13351 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13352 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13353 Rename spareness variable to sparseness.
13354 (expand_end_case_type): Renamed from expand_end_case, use orig_type
13355 if non-NULL instead of TREE_TYPE (orig_index).
13356 * tree.h (expand_end_case_type): Renamed from expand_end_case.
13357 (expand_end_case): Define using expand_end_case_type.
13358 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13359 to expand_end_case_type.
13360 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13362 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13364 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13365 (BIGGEST_ALIGNMENT): Change to 128.
13367 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13369 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13371 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13373 * pa.md (call_internal_reg_64bit): Remove unused variable.
13375 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
13377 * config/arm/arm.h (machine_function): Add uses_anonymous_args
13379 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13380 * config/arm/arm.c (current_function_anonymous_args): Delete,
13381 replace uses with cfun->machine->uses_anonymous_args.
13382 (arm_reorg): Do not reset uses_anonymous_args.
13384 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13385 any geenral register.
13387 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
13389 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13392 2002-02-04 Richard Henderson <rth@redhat.com>
13394 * combine.c (force_to_mode): Remove STACK_BIAS code.
13395 (nonzero_bits): Likewise. Replace sp/fp special case with
13396 REGNO_POINTER_ALIGN.
13398 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13399 (HARD_FRAME_POINTER_REGNUM): New.
13400 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13401 (FIXED_REGS, CALL_USED_REGS): Update.
13402 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13403 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13404 (HARD_REGNO_NREGS): Update for SFP.
13405 (STACK_POINTER_OFFSET): Include bias here ...
13406 (FIRST_PARM_OFFSET): ... not here.
13407 (STACK_BIAS): Remove.
13408 (INIT_EXPANDERS): New.
13409 (STARTING_FRAME_OFFSET): Do not include bias.
13410 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13411 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13412 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13413 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13414 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13415 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13416 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13417 (MUST_SAVE_REGISTER): Likewise.
13418 (sparc_flat_function_prologue): Likewise.
13419 (sparc_flat_function_epilogue): Likewise.
13420 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13421 (sparc_init_modes): SFP is GENERAL_REGS.
13422 (sparc_builtin_saveregs): SFP does not have bias applied.
13424 2002-02-04 Richard Henderson <rth@redhat.com>
13426 * config/alpha/alpha.c (current_function_is_thunk): Don't check
13427 current_function_is_thunk.
13428 (alpha_sa_mask): Distinguish between current_function_is_thunk
13429 called from ASM_OUTPUT_MI_THUNK and not.
13430 (alpha_does_function_need_gp): Thunks always need gp.
13431 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13432 (alpha_output_mi_thunk_osf): New.
13433 * config/alpha/alpha-protos.h: Update.
13434 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13436 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
13438 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13439 function types, not when they're taken away.
13441 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
13443 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13444 CODE_LABEL and jump table when replacing a table jump with a
13447 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13449 * config/s390/s390-protos.h (legitimize_la_operand,
13450 s390_secondary_input_reload_class, s390_plus_operand,
13451 s390_expand_plus_operand): Add prototypes.
13453 config/s390/s390.c (s390_secondary_input_reload_class,
13454 s390_plus_operand, s390_expand_plus_operand): New functions.
13456 (struct s390_address): New member 'pointer'.
13457 (s390_decompose_address): Compute it.
13458 (legitimate_la_operand_p): Use it.
13459 (legitimize_la_operand): New function.
13460 (movti, movdi, movdf splitters): Call it.
13462 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13463 (PREDICATE_CODES): Add s390_plus_operand.
13465 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13466 (la_ccclobber): Allow GENERAL_REGS as output operand.
13468 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13469 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13470 (*la_64, *la_31, reload_indi, reload_insi): ... these.
13472 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13474 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13475 register names for regular asm () construct.
13477 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13479 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13482 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13484 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13487 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
13489 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13490 constant pool to be identical by string address and index.
13492 2002-02-04 Anthony Green <green@redhat.com>
13494 * output.h (SECTION_OVERRIDE): Define.
13495 * varasm.c (named_section): Obey SECTION_OVERRIDE.
13497 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13499 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13500 by existing arm*-*-netbsd* (a.out) target.
13501 (ns32k-*-netbsdelf*): Likewise.
13502 (sparc-*-netbsdelf*): Likewise.
13503 (vax-*-netbsdelf*): Likewise.
13505 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
13507 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13508 headers and libobjc headers.
13510 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
13512 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13513 (_mingw.h): Remove duplicate include.
13515 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13517 * config.gcc: Set cpu_type to m68k for 68010, as well.
13518 (m68010-*-netbsdelf*): New...
13519 (m68k*-*-netbsdelf*): ...targets.
13520 * config/m68k/netbsd-elf.h: New file.
13522 2002-02-02 Kazu Hirata <kazu@hxi.com>
13524 * config/h8300/h8300.c (hand_list): Move inside function_arg.
13526 2002-02-02 Kazu Hirata <kazu@hxi.com>
13528 * config/h8300/h8300.c (h8_push_ops): Move inside
13530 (h8_pop_ops): Likewise.
13531 (h8_move_ops): Likewise.
13533 2002-02-02 Kazu Hirata <kazu@hxi.com>
13535 * config/h8300/h8300.c (os_task): Make it static.
13536 (monitor): Likewise.
13537 (pragma_saveall): Likewise.
13539 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
13541 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13542 constant is a valid sign-extension for Pmode.
13544 2002-02-02 Kazu Hirata <kazu@hxi.com>
13546 * config/h8300/h8300.c: Fix formatting.
13548 2002-02-02 Kazu Hirata <kazu@hxi.com>
13550 * config/h8300/h8300.md: Fix formatting.
13552 2002-02-02 Kazu Hirata <kazu@hxi.com>
13554 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13555 predicates of operands[1]. Split the patterns for each
13558 2002-02-02 Kazu Hirata <kazu@hxi.com>
13560 * config/h8300/h8300.md (xor patterns): Tighten the predicates
13561 of operands[1] to register_operand.
13563 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13565 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13566 * cpphash.c (_cpp_init_hashtable): Similarly.
13567 * cppinit.c (cpp_create_reader): Default the signed_char flag.
13568 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13569 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13570 (cpp_handle_option): Handle the new options.
13571 * cpplex.c (cpp_interpret_charconst): Use new flag.
13572 * cpplib.h (struct cpp_options): New member signed_char.
13573 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13574 (cpp_options): Handle -fsigned-char and -funsigned-char.
13575 (static_specs): Remove signed_char_spec.
13576 (do_spec1): Don't handle %c.
13577 * system.h: Poison SIGNED_CHAR_SPEC.
13578 * tradcif.y (yylex): Use flag_signed_char.
13579 * tradcpp.h (flag_signed_char): New.
13580 * tradcpp.c (flag_signed_char): New.
13581 (main): Handle new command-line options.
13582 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13584 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13585 * avr/avr.h: Remove old comments.
13586 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13587 (CC1_SPEC): Pass -fsigned-char if -mic*.
13588 (SIGNED_CHAR_SPEC): Remove.
13590 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13592 2002-02-01 Eric Christopher <echristo@redhat.com>
13594 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13595 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13596 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13597 (ASM_OUTPUT_REG_POP): Ditto.
13599 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13601 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13604 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13606 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13608 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13611 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13614 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13616 * cfganal.c: Include tm_p.h.
13617 (keep_with_call_p): Fix the test that determines if a register holds
13618 the return value of a call.
13620 2002-02-01 DJ Delorie <dj@redhat.com>
13622 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13623 we are given conflicting registers, switch to the other one we
13624 had allocated for us.
13625 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13626 as TImode so we know when the "other" register is available.
13628 2002-02-01 David O'Brien <obrien@FreeBSD.org>
13630 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13633 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13635 * cfganal.c (keep_with_call_p): New function.
13636 (flow_call_edges_add): Prevent splitting a block between a call and
13637 a single-set instruction that should be kept in the same block.
13639 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
13641 * doc/install.texi (avr): Update outdated URL.
13643 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
13645 * config/stormy16/stormy16.md (pushqi): New.
13649 (movhi): Remove stack operands.
13651 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13652 nonimmediate_nonstack_operand.
13653 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13655 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13658 2002-01-31 Jason Merrill <jason@redhat.com>
13660 * Makefile.in (c-parse.c): Handle .output file.
13661 * objc/Make-lang.in (objc-parse.c): Likewise.
13663 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
13665 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
13666 the -me[lb] option is given. Don't output the default flag
13669 2002-01-31 Zack Weinberg <zack@codesourcery.com>
13671 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
13672 the primary source file; this has not been done yet.
13673 * c-decl.c (c_expand_body): Reset input_filename from
13674 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
13676 2002-01-31 Kazu Hirata <kazu@hxi.com>
13678 * rtlanal.c (subreg_regno_offset): Do not use
13679 SUBREG_REGNO_OFFSET.
13680 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
13681 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
13683 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13685 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
13686 version rather than GNATS version in --version output.
13688 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
13690 * ifcvt.c (noce_process_if_block): Make a copy of the destination
13691 when copying back from a temporary.
13693 2002-01-30 Richard Henderson <rth@redhat.com>
13695 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
13696 and new_dest are the same.
13698 2002-01-30 Richard Henderson <rth@redhat.com>
13701 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
13702 * rtl.c (note_insn_name): Update.
13703 * emit-rtl.c (remove_unnecessary_notes): Kill it.
13704 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
13705 to perform loop rotation.
13706 (expand_exit_loop_top_cond): New.
13707 * tree.h (expand_exit_loop_top_cond): Declare it.
13708 * c-semantics.c (genrtl_while_stmt): Use it.
13709 (genrtl_for_stmt): Likewise.
13711 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
13713 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
13714 arguments to 64-bit boundaries on 64-bit ABIs.
13716 2002-01-30 Steve Ellcey <sje@cup.hp.com>
13718 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
13720 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13722 * c-decl.c (grokdeclarator): Handle type being a typedef for an
13725 2002-01-30 David O'Brien <obrien@FreeBSD.org>
13727 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
13728 * config/sparc/sparc_bi.h: Remove file.
13729 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
13731 2002-01-30 Richard Henderson <rth@redhat.com>
13733 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
13735 2002-01-30 Zack Weinberg <zack@codesourcery.com>
13737 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
13739 2002-01-30 Jason Merrill <jason@redhat.com>
13741 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
13742 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
13743 (reg_save): Use DW_CFA_offset_extended_sf instead.
13745 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
13747 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13749 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
13752 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
13754 * rs6000.md ("*call_value_local32"): Remove constraints.
13755 ("*call_value_local64"): Same.
13756 ("*call_value_indirect_nonlocal_aix32"): Same.
13757 ("*call_value_nonlocal_aix32"): Same.
13758 ("*call_value_indirect_nonlocal_aix64"): Same.
13759 ("*call_value_nonlocal_aix64"): Same.
13760 ("*call_value_nonlocal_sysv"): Same.
13762 2002-01-29 Richard Henderson <rth@redhat.com>
13764 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
13766 2002-01-29 Richard Henderson <rth@redhat.com>
13768 * expr.c (force_operand): Ignore flag_pic for detecting pic
13770 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
13771 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
13772 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
13773 instead of open-coded loop.
13774 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
13775 be fixed when in use.
13777 2002-01-29 Richard Henderson <rth@redhat.com>
13779 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
13780 * sched-rgn.c (propagate_deps): Update them.
13781 * sched-deps.c (sched_analyze_insn): Update them. Flush the
13782 clobbers list when either gets too long.
13784 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13786 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
13787 and INDEX_REGS the same as GENERAL_REGS.
13788 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
13790 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13792 * tree.c (build_nonstandard_integer_type): Correct prototype.
13794 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
13796 * config/s390/s390.md (movstrsico, movstrdix_64,
13797 movstrsix_31): Remove, replace by ...
13798 (movstrdi_short, movstrsi_short, movstrdi_long,
13799 movstrsi_long): ... these. New.
13800 (movstrdi, movstrsi): Adapt.
13802 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
13803 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
13804 Remove unnecessary CC clobber.
13805 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
13806 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
13808 (divmoddi4): Don't partially initialize TImode register.
13810 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
13812 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
13814 2002-01-29 Richard Henderson <rth@redhat.com>
13816 * flow.c (print_rtl_and_abort): Remove.
13817 (print_rtl_and_abort_fcn): Remove.
13818 (verify_local_live_at_start): Use dump_bb instead.
13819 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
13820 (verify_wide_reg_1): Return 2 on mode test failure.
13822 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13824 PR c/3325, c/3326, c/2511, c/3347
13825 * c-decl.c (enum_decl_context): Remove BITFIELD.
13826 (grokdeclarator): Take bitfield width as an input.
13827 Ensure bitfields are given the correct type. Perform
13828 bitfield width validation with build_bitfield_integer_type
13829 rather than waiting for finish_struct.
13830 (grok_typename, grok_typename_in_parm_context, start_decl,
13831 push_parmdecl, grokfield, start_function): Update calls to
13833 (build_bitfield_integer_type): New function.
13834 (finish_struct): Move bitfield validation to grokdeclarator
13835 and build_bitfield_integer_type.
13836 * tree.c (build_nonstandard_integer_type): New function.
13837 * tree.h (build_nonstandard_integer_type): New prototype.
13839 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
13841 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13844 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
13845 don't ignore unrecognized -W* options.
13846 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
13847 * cpplib.h (cpp_handle_option): Adjust prototype.
13848 * c-decl.c (c_decode_options): Pass 0 as last argument to
13852 * gcc.c (cpp_unique_options): Split from cpp_options.
13853 (cpp_options): Source cpp_unique_options.
13854 (default_compilers): Use cpp_unique_options instead of cpp_options
13855 when used together with cc1_options.
13856 (static_specs): Add cpp_unique_options.
13857 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
13858 when used together with cc1_options.
13860 2002-01-29 Kazu Hirata <kazu@hxi.com>
13862 * config/h8300/h8300-protos.h: Update the prototype of
13864 * config/h8300/h8300.c (output_a_shift): Remove an unused
13865 argument 'insn'. Remove redundant code.
13866 * config/h8300/h8300.md: Adust to the new prototype of
13869 2002-01-29 Kazu Hirata <kazu@hxi.com>
13871 * config/h8300/h8300-protos.h: Update the prototypes of
13872 emit_a_rotate and expand_a_rotate.
13873 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
13874 first argument to 'enum rtx_code'.
13875 (expand_a_rotate): Likewise.
13877 2002-01-28 Kazu Hirata <kazu@hxi.com>
13879 * config/h8300/h8300-protos.h: Update the prototype of
13881 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
13883 * config/h8300/h8300.md: Adjust to the new prototype.
13885 2002-01-28 Kazu Hirata <kazu@hxi.com>
13887 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
13890 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
13892 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
13893 is a fixed register before returning pic_offset_table_rtx.
13894 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
13895 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
13897 2002-01-28 Jason Merrill <jason@redhat.com>
13899 * dwarf2.h: Sync with src version.
13901 2002-01-28 Paul Koning <pkoning@equallogic.com>
13903 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
13904 BT_FN_VOID_PTR_VAR.
13905 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
13906 * doc/extend.texi (__builtin_prefetch): Update documentation:
13907 first argument is now const void ptr.
13909 2002-01-28 Kazu Hirata <kazu@hxi.com>
13911 * config/h8300/h8300-protos.h: Remove an unused prototype.
13913 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
13915 * toplev.c (lang_independent_init): Round up identifier size.
13917 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
13919 * config.gcc: Revert previous change.
13921 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
13923 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
13925 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
13927 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
13928 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
13929 other non-elf netbsd config frags.
13930 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
13931 collect2 will does that.
13932 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
13933 shared-lib frobbing will work.
13935 2002-01-28 Kazu Hirata <kazu@hxi.com>
13937 * config/h8300/h8300.h: Fix formatting.
13938 * config/h8300/h8300.md: Likewise.
13940 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
13942 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
13943 the old, removed AAA_standards fix.
13944 * fixinc/fixincl.x: Rebuilt.
13946 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
13948 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
13949 atexit call in crtbegin, hooked in after call to frame_dummy;
13950 register EH before registering __fini__start.
13952 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
13954 * config/rs6000/altivec.h: Remove spurious semicolons.
13956 2002-01-27 Kazu Hirata <kazu@hxi.com>
13958 * config/h8300/h8300.md: Replace dead bit extraction patterns
13959 with ones that work.
13961 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13963 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
13964 if not STRICT_ALIGNMENT.
13965 * rtl.h (MEM_ALIGN): Likewise.
13967 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
13969 * doc/invoke.texi (-fdump-translation-unit): Revert this
13970 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
13972 2002-01-27 Kazu Hirata <kazu@hxi.com>
13974 * config/h8300/h8300.md (define_constants): New.
13975 (anonymous patterns) Use defined constants appropriately.
13977 2002-01-27 Kazu Hirata <kazu@hxi.com>
13979 * config/h8300/h8300.c (function_arg): Remove redundant code.
13981 2002-01-26 Richard Henderson <rth@redhat.com>
13983 * sched-deps.c (reg_pending_uses_head): New.
13984 (reg_pending_barrier): Rename from reg_pending_sets_all.
13985 (find_insn_list): Don't mark inline.
13986 (find_insn_mem_list): Remove.
13987 (add_dependence_list, add_dependence_list_and_free): New.
13988 (flush_pending_lists): Replace only_write param with separate
13989 for_read and for_write parameters. Update all callers. Use
13990 add_dependence_list_and_free.
13991 (sched_analyze_1): Do not add reg dependencies here; just set
13992 the pending bits. Use add_dependence_list.
13993 (sched_analyze_2): Likewise.
13994 (sched_analyze_insn): Replace schedule_barrier_found with
13995 reg_pending_barrier. Add all dependencies for pending reg
13996 uses, sets, and clobbers.
13997 (sched_analyze): Don't add reg dependencies for calls, just
13998 set pending bits. Use regs_invalidated_by_call. Treat
13999 sched_before_next_call as a normal list, not a fake insn.
14000 (init_deps): No funny init for sched_before_next_call.
14001 (free_deps): Free pending mems lists. Don't zero reg_last.
14002 (init_deps_global): Init reg_pending_uses.
14003 (finish_deps_global): Free it.
14004 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14005 (find_insn_mem_list): Remove.
14006 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14007 (propagate_deps): Use them. Zero temp mem lists.
14009 2002-01-26 Richard Henderson <rth@redhat.com>
14011 * Makefile.in (CRTSTUFF_CFLAGS): New.
14012 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14013 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14014 crtstuff.c instead of alpha assembly version.
14015 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14016 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14017 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14018 (__do_global_dtors_aux): Mark used.
14019 (frame_dummy, __do_global_ctors_aux): Mark used.
14020 (fini_dummy, init_dummy): Remove.
14022 * config/alpha/crtbegin.asm: Remove file.
14023 * config/alpha/crtend.asm: Remove file.
14024 * config/alpha/t-crtbe: Remove file.
14025 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14026 (LINK_EH_SPEC): New.
14028 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14029 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14030 calling constructors.
14031 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14033 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14034 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14035 CRT_END_INIT_DUMMY hack.
14036 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14037 FORCE_{INIT,FINI}_SECTION_ALIGN.
14039 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14040 FORCE_{INIT,FINI}_SECTION_ALIGN.
14042 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14043 invocation sequence.
14044 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14046 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14047 (FORCE_CODE_SECTION_ALIGN): New.
14049 2002-01-26 Richard Henderson <rth@redhat.com>
14051 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14053 2002-01-26 Richard Henderson <rth@redhat.com>
14055 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14056 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14058 2002-01-26 Kazu Hirata <kazu@hxi.com>
14060 * config/h8300/h8300.md: Remove bit extraction patterns that
14061 cannot be triggered.
14062 Restrict each bit extraction pattern to a variant on which the
14065 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14067 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14069 2002-01-26 Kazu Hirata <kazu@hxi.com>
14071 * config/h8300/h8300.md: Remove bit test patterns that cannot
14073 Restrict each bit test pattern to a variant on which the
14076 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14078 * builtins.c (expand_builtin_strncat): Remove redundant check for
14081 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14083 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14085 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14088 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14090 * dbxout.c (dbxout_init): Use assemble_name rather than just
14091 stripping off the first character.
14092 (dbxout_source_file): Likewise.
14094 2002-01-25 DJ Delorie <dj@redhat.com>
14096 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14097 using rtx_equal_p, not by comparing pointers.
14099 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14101 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14102 for PIC_OFFSET_TABLE_REGNUM.
14103 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14105 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14107 * config.gcc (x86_64-*-freebsd*): New target.
14108 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14110 (i[34567]86-*-freebsd*): Don't include svr4.h.
14111 * config/i386/freebsd64.h: New file.
14113 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14115 * config/alpha/x-vms (version): Make static.
14117 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14118 in previous checkin.
14120 * Makefile.in (install-headers-cp): New target.
14121 * config.gcc (alpha-dec-*vms*): Install headers with
14124 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14126 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14129 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14131 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14132 of compare_tree_int.
14133 (expand_builtin_strncat): Likewise.
14134 * c-decl.c (finish_struct): Use tree_low_cst.
14135 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14136 * tree.c (compare_tree_int): Likewise.
14138 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14140 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14141 adjustments even if they are implemented by more than two insns.
14143 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14145 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14146 * df.h (struct ref): Kill B.
14147 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14149 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14150 * flow.c (propagate_one_insn): Use it.
14151 (mark_used_regs): Handle NIL.
14153 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14155 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14158 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14160 * rs6000.md (prefetch): Make address V4SI mode so that the address
14161 is restricted to legitimate form for instruction.
14163 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14165 * doc/install.texi (xtensa-*-elf): New target.
14166 (xtensa-*-linux*): New target.
14167 * doc/contrib.texi: Add myself.
14169 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14171 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14172 purpose register to hold an SImode (or smaller) value.
14174 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14176 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14178 * crtstuff.c: Likewise.
14180 2002-01-25 Kazu Hirata <kazu@hxi.com>
14182 * config/h8300/h8300.md (negation patterns): Tighten
14183 predicates to register_operand.
14185 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14187 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14190 * builtins.c (expand_builtin_prefetch): Same.
14192 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14194 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14197 2002-01-24 Kazu Hirata <kazu@hxi.com>
14199 * config/h8300/h8300.c (print_operand): Remove support for
14200 operand character 'A'.
14201 * config/h8300/h8300.md (three anonymous patterns): Replace
14202 operand character 'A' with either 'T' or 'S'.
14204 2002-01-24 Kazu Hirata <kazu@hxi.com>
14206 * config/h8300/h8300.c (print_operand): Remove support for
14207 operand character 'U'.
14209 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
14211 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14213 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
14215 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14216 values to be assigned to the stack pointer.
14218 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14220 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14221 to const_double needs to be done right for big-endian systems.
14223 2002-01-24 Jason Merrill <jason@redhat.com>
14226 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14227 to can_throw_internal.
14229 2002-01-23 Richard Henderson <rth@redhat.com>
14231 * fold-const.c (fold): Change UINT_MAX test to check vs precision
14232 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
14234 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14236 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14237 (symGOT2reg): Use them, then set as GOT value as unchanging.
14238 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
14239 as a temporary, if possible.
14240 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
14241 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14243 2002-01-23 Kazu Hirata <kazu@hxi.com>
14245 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14246 accept to accept 0x80 as operands[2].
14248 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14250 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14252 2002-01-23 Richard Henderson <rth@redhat.com>
14254 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14256 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
14258 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14259 (parmlist_or_identifiers_1): Verify that only a parmlist follows
14262 2002-01-23 Richard Henderson <rth@redhat.com>
14264 * expr.c (move_by_pieces_1): Extend size before negation.
14266 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14267 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14268 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14269 * config/m68k/t-m68kelf: Likewise.
14271 2002-01-23 Bob Wilson <bob.wilson@acm.org>
14273 * config/xtensa/elf.h: New file.
14274 * config/xtensa/lib1funcs.asm: New file.
14275 * config/xtensa/lib2funcs.S: New file.
14276 * config/xtensa/linux.h: New file.
14277 * config/xtensa/t-xtensa: New file.
14278 * config/xtensa/xtensa-config.h: New file.
14279 * config/xtensa/xtensa-protos.h: New file.
14280 * config/xtensa/xtensa.c: New file.
14281 * config/xtensa/xtensa.h: New file.
14282 * config/xtensa/xtensa.md: New file.
14283 * config.gcc (xtensa-*-elf*): New target.
14284 (xtensa-*-linux*): New target.
14285 * cse.c (canon_hash): Compare rtx pointers instead of register
14286 numbers. This is required for the Xtensa port.
14287 * integrate.c (copy_insn_list): Handle case where the static
14288 chain is in memory and the memory address has to be copied to
14290 * doc/invoke.texi (Option Summary): Add Xtensa options.
14291 (Xtensa Options): New node.
14292 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14294 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14296 * diagnostic.c (internal_error): Do ICE suppression only
14297 when ENABLE_CHECKING is not defined.
14299 * c-typeck.c (require_complete_type): Return error_mark_node
14300 if type is error_mark_node.
14302 2002-01-23 Janis Johnson <janis187@us.ibm.com>
14304 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14305 -Os and issue a warning.
14307 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14309 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14310 current (lack of) need for host configuration by hand.
14312 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14313 references. Documentation of some target macros moved from
14314 hostconfig.texi to tm.texi.
14316 2002-01-23 Will Cohen <wcohen@redhat.com>
14318 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14321 2002-01-23 Kazu Hirata <kazu@hxi.com>
14323 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14326 2002-01-23 Jason Merrill <jason@redhat.com>
14328 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14330 * function.c (assign_parms): Don't put args of inline functions
14331 into registers when not optimizing.
14333 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
14335 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14336 (prologue_use): New pattern.
14337 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14338 preference to gen_rtx_USE.
14339 (thumb_expand_prologue): Use gen_prologue_use in preference to
14341 (thumb_expand_epilogue): Use gen_prologue_use in preference to
14344 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
14346 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14348 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
14351 * doc/extend.texi: Correct documentation of __alignof__.
14353 2002-01-22 Zack Weinberg <zack@codesourcery.com>
14355 * params.h: Rename arguments of DEFPARAM so that it will be
14356 recognized as a translation keyword.
14358 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14360 * extend.texi: Document altivec functions.
14361 Fix N-bit adjectives in X86 builtin documentation.
14363 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14365 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14366 auto_inc_dec values.
14368 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
14370 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14372 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14374 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14376 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14378 2002-01-22 Richard Henderson <rth@redhat.com>
14380 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14381 copy_insn not copy_rtx.
14383 2002-01-23 Alan Modra <amodra@bigpond.net.au>
14385 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14386 "nonzero" as that might add "1" bits. Ensure "constop" is
14387 properly sign extened.
14388 (force_to_mode): Tweak for sign extended constop.
14390 2002-01-22 Richard Henderson <rth@redhat.com>
14392 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14393 for_each_rtx instead of assuming we're already looking at the MEM.
14394 (split_small_symbolic_mem_operand): Likewise.
14395 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14396 * config/alpha/alpha.md (small symbolic memory splitters): Update.
14398 2002-01-22 Richard Henderson <rth@redhat.com>
14400 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14401 sequence number for the literal.
14402 (divmoddi_internal_er): Likewise.
14404 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14407 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14408 in LIBICONV variable.
14409 * configure: Regenerated.
14411 2002-01-22 Krister Walfridsson <cato@df.lth.se>
14413 * dependence.c (build_def_use): Remove array_idx.
14415 * dwarfout.c (last_filename): Remove.
14416 (output_compile_unit_die): Remove last_filename.
14418 2002-01-22 Roger Sayle <roger@eyesopen.com>
14419 Richard Henderson <rth@redhat.com>
14422 * fold-const.c (fold): Optimize unsigned comparisons against
14423 UINT_MAX (and similar unsigned constants).
14425 2002-01-22 Janis Johnson <janis187@us.ibm.com>
14427 * Makefile.in (loop.o): Depend on OPTABS_H.
14428 * loop.c (emit_prefetch_instructions): Check the prefetch operand
14429 against the predicate.
14432 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14433 for the address operand.
14435 2002-01-22 Richard Henderson <rth@redhat.com>
14437 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14439 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14442 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14443 preprocessor flags.
14445 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
14447 * config.gcc (x86_64-*-netbsd*): New target.
14448 * config/i386/netbsd64.h: New file.
14450 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14452 * regrename.c (kill_value): Fix typo.
14454 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14456 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14458 * config/rs6000/rs6000.h: Same.
14460 * function.c (instantiate_virtual_regs): Remove
14461 STARTING_FRAME_PHASE.
14462 (assign_stack_local_1): Same.
14463 Calculate frame phase.
14465 2002-01-22 Nick Clifton <nickc@redhat.com>
14467 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14468 variable declaration to outer scope in order to simplify
14470 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14471 arm_hard_regno_mode_ok.
14472 * config/arm/arm-protos.h: Add a prototype for
14473 arm_hard_regno_mode_ok.
14474 * config/arm/arm.c (soft_df_operand): Remove now redundant
14475 check for DImode values using IP_REGNUM.
14476 (nonimmediate_soft_df_operand): Remove now redundant check for
14477 DImode values using IP_REGNUM.
14478 (arm_hard_regno_mode_ok): New function. New check: make sure
14479 that DImode values are not stored in IP_REGNUM.
14481 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14483 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14485 2002-01-22 Jason Merrill <jason@redhat.com>
14487 * c-semantics.c (genrtl_compound_stmt): Only check nesting
14488 consistency if this COMPOUND_STMT is scoped.
14490 2002-01-22 Kazu Hirata <kazu@hxi.com>
14492 * predict.c: Fix formatting.
14493 * print-tree.c: Likewise.
14494 * protoize.c: Likewise.
14495 * real.h: Likewise.
14497 * sbitmap.h: Likewise.
14498 * scan.c: Likewise.
14499 * sched-deps.c: Likewise.
14500 * sched-vis.c: Likewise.
14501 * sdbout.c: Likewise.
14502 * sibcall.c: Likewise.
14504 * ssa-ccp.c: Likewise.
14505 * ssa-dce.c: Likewise.
14506 * stmt.c: Likewise.
14507 * stor-layout.c: Likewise.
14508 * system.h: Likewise.
14510 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14512 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14513 if fits in bounds of base type.
14515 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14516 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14517 (add_bound_info, default): If can't find a context, make a
14519 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14521 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
14523 * c-typeck.c (parser_build_binary_op): If result from
14524 build_binary_op is ERROR_MARK just return error_mark_node without
14525 further processing.
14527 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
14529 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14530 Split a.out-specific bits into...
14531 * config/netbsd-aout.h: ...this.
14532 * config/netbsd-elf.h: New file.
14533 * config/alpha/netbsd-elf.h: Remove.
14534 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14535 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14536 (STARTFILE_SPEC): Remove redundant definition.
14537 (ENDFILE_SPEC): Likewise.
14538 (LINK_SPEC): Likewise.
14539 (CPP_SPEC): Likewise.
14540 (ASM_SPEC): Likewise.
14541 (LIB_SPEC): Likewise.
14542 (SWITCH_TAKES_ARG): Likewise.
14543 (TARGET_MEM_FUNCTIONS): Likewise.
14544 (CPP_PREDEFINES): Redefine.
14545 (ASM_FINAL_SPEC): Remove redefinition.
14546 (ASM_COMMENT_START): Redefine.
14547 (FUNCTION_PROFILER): Define.
14548 (TARGET_VERSION): Redefine.
14549 Comment and formatting cleanup.
14550 * config/i386/netbsd.h: Include <netbsd-aout.h>.
14551 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14552 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14553 big- or little-endian.
14554 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14555 * config.gcc (*-*-netbsd*): Add definitions common to all
14557 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14558 gnu_ld definitions. Add netbsd-elf.h to and remove
14559 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
14560 tmake_file, and don't lose previous tmake_file contents.
14561 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14562 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14563 gnu_ld definitions. Add netbsd-elf.h to tm_file.
14564 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14565 (mipsel-*-netbsd*): Rename this to...
14566 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
14567 mips/little.h to tm_file for mips*el-*.
14568 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14569 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14570 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14572 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14574 * pa-protos.h (reg_before_reload_operand): New function prototype.
14575 * pa.c (reg_before_reload_operand): New function implementation.
14576 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
14577 contraints to "*m".
14579 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14581 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14583 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14585 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14586 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14587 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14588 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14589 (ENDFILE_SPEC): Undefine.
14590 (STARTFILE_SPEC): Redefine for PA.
14592 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14594 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14596 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
14598 * config.gcc: Add entries to supported PowerPC --with-cpu
14601 2002-01-21 Jakub Jelinek <jakub@redhat.com>
14603 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14604 true for 64-bit mode only SSE registers in 32-bit mode.
14606 2002-01-21 Kazu Hirata <kazu@hxi.com>
14608 * unwind-dw2.c: Fix formatting.
14609 * unwind-dw2-fde.c: Likewise.
14610 * unwind-dw2-fde.h: Likewise.
14611 * unwind-pe.h: Likewise.
14612 * varasm.c: Likewise.
14613 * varray.h: Likewise.
14615 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
14617 Remove workaround for register stack overwrite bug in mmix.
14618 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14619 support for TARGET_REG_STACK_FILL_BUG.
14620 * config/mmix/mmix.h: Remove member has_call_without_parameters.
14621 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14623 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14624 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14625 -mno-reg-stack-fill-bug-workaround.
14626 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14627 machine member has_call_without_parameters.
14628 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14629 -mreg-stack-fill-bug-workaround and
14630 -mno-reg-stack-fill-bug-workaround.
14631 (MMIX Options): Ditto.
14633 2002-01-21 Kazu Hirata <kazu@hxi.com>
14635 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14637 Remove redundant code.
14639 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
14641 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14642 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14643 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14644 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14645 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14646 out target macro definitions and non-target-specific comments
14647 mostly taken from old versions of the manual.
14649 2002-01-20 Kazu Hirata <kazu@hxi.com>
14651 * config/h8300/h8300.h: Fix comment formatting.
14652 * config/ia64/aix.h: Likewise.
14653 * config/ia64/ia64-protos.h: Likewise.
14654 * config/ia64/ia64.c: Likewise.
14655 * config/ia64/ia64.h: Likewise.
14656 * config/ia64/ia64intrin.h: Likewise.
14657 * config/ia64/linux.h: Likewise.
14658 * config/ia64/unwind-aix.c: Likewise.
14659 * config/ia64/unwind-ia64.c: Likewise.
14661 2002-01-20 Kazu Hirata <kazu@hxi.com>
14663 * config/h8300/h8300.c: Revise comments about shift code.
14665 2002-01-20 Kazu Hirata <kazu@hxi.com>
14667 * config/h8300/h8300.c (function_arg): Update a comment.
14669 2002-01-20 Kazu Hirata <kazu@hxi.com>
14671 * config/h8300/h8300.md: Update the comments at the beginning
14674 2002-01-20 Kazu Hirata <kazu@hxi.com>
14676 * config/i370/i370.c: Fix comment formatting.
14677 * config/i370/i370.h: Likewise.
14678 * config/i370/i370.md: Likewise.
14679 * config/i370/linux.h: Likewise.
14681 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14683 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
14685 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
14686 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
14687 in incomplete case.
14689 2002-01-20 Graham Stott <grahams@redhat.com>
14691 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
14693 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
14695 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
14697 2002-01-19 Tom Rix <trix@redhat.com>
14699 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
14701 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
14703 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
14705 * function.c (assign_stack_local_1): Adjust x_frame_offset with
14706 STARTING_FRAME_PHASE.
14707 (STARTING_FRAME_PHASE): New.
14708 (instantiate_virtual_regs): Check saneness of
14709 STARTING_FRAME_PHASE.
14711 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
14713 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14715 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
14717 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
14719 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
14720 be used for bootstrapping GCC 3.0.
14722 2002-01-18 Kazu Hirata <kazu@hxi.com>
14724 * config/h8300/h8300.md: Fix an insn length.
14726 2002-01-18 Kazu Hirata <kazu@hxi.com>
14728 * bitmap.h: Fix comment formatting.
14729 * combine.c: Likewise.
14730 * cppfiles.c: Likewise.
14731 * c-pragma.h: Likewise.
14732 * c-typeck.c: Likewise.
14734 * dwarf2out.c: Likewise.
14735 * function.c: Likewise.
14737 * genattrtab.c: Likewise.
14738 * gthr-win32.h: Likewise.
14739 * haifa-sched.c: Likewise.
14740 * predict.c: Likewise.
14741 * rtlanal.c: Likewise.
14743 * unwind-dw2-fde.h: Likewise.
14744 * unwind-pe.h: Likewise.
14745 * vmsdbgout.c: Likewise.
14747 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14749 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
14750 if type_required and passed decl.
14752 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
14754 * config.gcc (cpu_type): Include altivec.h in powerpc
14758 * config/rs6000/altivec.h: New.
14760 2002-01-17 David Edelsohn <edelsohn@gnu.org>
14762 * doc/install.texi (*-ibm-aix*): Update assembler and exception
14763 handling information.
14764 * doc/trouble.texi (Interoperation): Add libstdc++ information
14766 (Misunderstandings): Add template instantiation and static template
14767 member information for AIX.
14769 2002-01-17 Jason Merrill <jason@redhat.com>
14771 * dbxout.c (dbxout_type): Support const and volatile.
14773 * except.c (add_partial_entry): Remove backwards compatibility code.
14774 (end_protect_partials): Likewise.
14776 2002-01-17 Jakub Jelinek <jakub@redhat.com>
14778 * config/ia64/ia64.md (prologue_use): New.
14779 * config/ia64/ia64.c (ia64_expand_prologue): Use
14780 gen_prologue_use instead of gen_rtx_USE.
14781 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
14782 as CODE_FOR_pred_rel_mutex.
14783 (ia64_sched_reorder2): Likewise.
14785 2002-01-16 Eric Christopher <echristo@redhat.com>
14787 * config/mips/r3900.h: Reformat.
14788 (SUBTARGET_CPP_SIZE_SPEC): Remove.
14789 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
14790 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
14791 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
14792 * config/mips/t-elf: Remove mips3 multilib.
14794 2002-01-16 H.J. Lu <hjl@gnu.org>
14796 * config/mips/linux.h: Include "mips/abi64.h".
14798 2002-01-16 H.J. Lu <hjl@gnu.org>
14800 * config/mips/t-linux: New.
14802 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
14804 * config/mips/linux.h: Don't include "gofast.h".
14805 (INIT_SUBTARGET_OPTABS): Removed.
14807 2002-01-16 Kazu Hirata <kazu@hxi.com>
14809 * config/h8300/h8300-protos.h: Replace emit_a_shift with
14811 * config/h8300/h8300.c: Likewise.
14812 * config/h8300/h8300.md: Likewise.
14814 2002-01-16 Kazu Hirata <kazu@hxi.com>
14816 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
14817 spaces after an opcode name.
14818 (pushqi1_h8300hs): Likewise.
14819 (pushhi1_h8300hs): Likewise.
14821 2002-01-16 Kazu Hirata <kazu@hxi.com>
14823 * doc/extend.texi: Replace "option" with "attribute"
14826 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14828 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
14829 (and:DI () (const_int -8)).
14830 (split_small_symbolic_mem_operand): Split
14831 (mem (and:DI () (const_int -8)).
14833 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14836 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
14837 same way as TYPE_IMUL.
14838 (ultrasparc_sched_reorder): Likewise.
14839 * config/sparc/sparc.md (type): Add comment to update
14840 ultrasparc_sched_reorder when making changes.
14842 2002-01-16 Kazu Hirata <kazu@hxi.com>
14844 * doc/invoke.texi: Change the dump file name of block
14845 reordering pass from 28.bbro to 29.bbro.
14846 Mention -dk option.
14848 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
14850 * i386.md (minsf splitter): Fix pasto.
14852 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
14854 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
14855 to frame pointer initialisation instruction.
14856 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
14857 initialisation instruction.
14858 (soft_df_operand): Do not accept the IP register.
14859 (nonimmediate_soft_df_operand): Do not accept the IP register.
14861 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14864 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
14865 MASK_V8 being both set.
14867 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
14869 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
14870 insn for GOT register; add REG_MAYBE_DEAD notes instead.
14871 config/s390/s390.md (call, call_value): Add GOT register to
14872 CALL_INSN_FUNCTION_USAGE where needed.
14873 (call_exp, call_value_exp): New.
14875 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
14877 * config/arm/arm.c: General formatting tidy up.
14879 2002-01-16 Graham Stott <grahams@redhat.com>
14881 * calls.c (try_to_integrate): Use "(size_t)" intermediate
14882 cast and when casting an integer literal to "rtx" pointer.
14883 (expand_call): Likewise.
14884 * flow.c (try_pre_increment): Likewise.
14885 (find_use_as_address): Likewise.
14886 * integrate.c (expand_iline_function): Likewise.
14887 * regmove.c (try_auto_increment): Likewise.
14889 2002-01-16 Graham Stott <grahams@redhat.com>
14891 * sched-rgn.c (passed): Use sbitmap_free.
14892 (header): Likewise.
14894 (in_queue): Likewise.
14895 (in_stack): Likewise.
14897 2002-01-15 Eric Christopher <echristo@redhat.com>
14899 * flow.c (propagate_one_insn): Change to use fatal_insn.
14901 2002-01-15 Kazu Hirata <kazu@hxi.com>
14903 * expmed.c (extract_fixed_bit_field): Remove unused code.
14904 * system.h: Poison SLOW_ZERO_EXTEND.
14905 * doc/tm.texi: Remove.
14906 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
14907 * config/arm/arm.h: Likewise.
14908 * config/avr/avr.h: Likewise.
14909 * config/clipper/clipper.h: Likewise.
14910 * config/convex/convex.h: Likewise.
14911 * config/d30v/d30v.h: Likewise.
14912 * config/dsp16xx/dsp16xx.h: Likewise.
14913 * config/elxsi/elxsi.h: Likewise.
14914 * config/fr30/fr30.h: Likewise.
14915 * config/h8300/h8300.h: Likewise.
14916 * config/i370/i370.h: Likewise.
14917 * config/i386/i386.h: Likewise.
14918 * config/m68k/m68k.h: Likewise.
14919 * config/mips/mips.h: Likewise.
14920 * config/ns32k/ns32k.h: Likewise.
14921 * config/pdp11/pdp11.h: Likewise.
14922 * config/pj/pj.h: Likewise.
14923 * config/s390/s390.h: Likewise.
14924 * config/sh/sh.h: Likewise.
14925 * config/stormy16/stormy16.h: Likewise.
14926 * config/v850/v850.h: Likewise.
14927 * config/vax/vax.h: Likewise.
14928 * config/we32k/we32k.h: Likewise.
14930 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
14932 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
14933 (altivec_lvsl): Change constraint to b.
14934 (altivec_lvsr): Same.
14935 (altivec_lvebx): Same.
14936 (altivec_lvehx): Same.
14937 (altivec_lvewx): Same.
14938 (altivec_lvxl): Same.
14939 (altivec_lvx): Same.
14940 (altivec_stvx): Add parallel.
14941 (altivec_stvxl): Same.
14942 (altivec_stvehx): Same.
14943 (altivec_stvebx): Same.
14944 (altivec_stvebx): Same.
14946 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
14948 * config.gcc: Change altivec.h to altivec-defs.h.
14950 * config/rs6000/altivec.h: Delete.
14952 * config/rs6000/altivec-defs.h: Add.
14954 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14956 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
14959 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
14960 less than or equal to eight bytes.
14962 * vax.md (andsi3): Remove constraints and change SET destination
14963 operand type to nonimmediate_operand.
14964 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
14965 when it is a CONST_INT.
14967 2002-01-15 Jason Merrill <jason@redhat.com>
14969 * c-common.def (FILE_STMT): New code.
14970 * c-common.c (statement_code_p): It's a statement.
14971 * c-common.h (stmt_tree_s): Add x_last_filename.
14972 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
14973 (last_expr_filename): New macro.
14974 * c-semantics.c (begin_stmt_tree): Initialize it.
14975 (add_stmt): If the filename changed, also insert a
14977 (expand_stmt): Handle seeing one.
14979 2002-01-15 Eric Christopher <echristo@redhat.com>
14981 * flow.c (propagate_one_insn): Add error message and print out
14982 insn for debugging.
14984 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
14986 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
14987 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
14988 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
14989 TRAMPOLINE_ALIGNMENT.
14990 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
14992 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
14993 PCC_BITFIELD_TYPE_MATTERS.
14994 * config/interix.h (STDC_VALUE): Remove. Use
14995 STDC_0_IN_SYSTEM_HEADERS.
14996 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
14997 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
14998 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15000 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15002 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15003 not work on this platform currently.
15005 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15007 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15008 readonly_warning in _().
15010 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15012 * gcc.c (delete_if_ordinary): Backout previous change.
15014 2002-01-15 Kazu Hirata <kazu@hxi.com>
15016 * config/h8300/h8300.c (print_operand): Remove support for
15017 unused operand characters.
15019 * read-rtl.c: Fix formatting.
15020 * real.c: Likewise.
15021 * recog.c: Likewise.
15022 * regclass.c: Likewise.
15023 * regmove.c: Likewise.
15024 * reg-stack.c: Likewise.
15025 * reload1.c: Likewise.
15026 * rtlanal.c: Likewise.
15028 2002-01-15 Kazu Hirata <kazu@hxi.com>
15030 * config/i386/i386.c: Fix formatting.
15032 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15034 * c-typeck.c (process_init_element): Don't save_expr
15035 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15037 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15039 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15040 emit optional traceback table if optimize_size or TARGET_ELF.
15041 * config/rs6000/rs6000.md (prefetch): New.
15043 2002-01-15 Andreas Jaeger <aj@suse.de>
15045 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15047 2002-01-15 Kazu Hirata <kazu@hxi.com>
15049 * mips-tfile.c: Fix formatting.
15051 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15053 * unroll.c (final_reg_note_copy): Fix previous commit.
15055 2002-01-14 Kazu Hirata <kazu@hxi.com>
15057 * config/h8300/h8300-protos.h: Remove the prototype for
15059 * config/h8300/h8300.c (eq_operator): Remove.
15061 2002-01-14 Richard Henderson <rth@redhat.com>
15063 * config/i386/i386.md (prefetch): Tidy.
15064 (prefetch_3dnow): Fix locality operand.
15066 2002-01-14 Richard Henderson <rth@redhat.com>
15068 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15069 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15071 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15073 * reload1.c (reload_combine): Pass reg_sum replacement through
15074 copy_rtx in loop performing multiple changes.
15076 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15078 * except.c (remove_unreachable_regions): New.
15079 (free_eh_status): Clear exception_handler_labels.
15080 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15081 (find_exception_handler_labels): Don't add the same label more than
15083 (remove_exception_handler_label): Don't die if
15084 find_exception_handler_labels hasn't been called for the current
15087 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15089 * toplev.c (rest_of_compilation): Rebuild jump labels after
15092 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15094 * doc/extend.texi: Move documentation of X86 built-in functions
15096 * doc/invoke.texi: From here.
15097 * doc/sourcebuild.texi: Document location of documentation for
15098 machine built-in functions.
15100 2002-01-13 Christopher Faylor <cgf@redhat.com>
15102 * cppfiles.c (TEST_THRESHOLD): New macro.
15103 (SHOULD_MMAP): Ditto.
15104 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15107 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15109 * unroll.c (final_reg_note_copy): Properly handle
15111 (unroll_loops): Fix LOOP_CONDITION heuristics.
15113 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15115 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15116 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15118 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15120 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15123 2002-01-14 Tom Rix <trix@redhat.com>
15125 * config/rs6000/rs6000.md: Fix typo with sradi.
15127 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15129 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15130 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15131 (clrstrdi, clrstrsi): Adapt callers.
15133 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15135 (movti splitter): Never use register 0 as base register.
15137 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15139 * combine.c (simplify_shift_const): Always generate new rtx
15140 for shift expression instead of reusing given expression.
15142 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15144 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15145 alpha_legitimize_address unless mode is Pmode.
15147 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15149 * doc/md.texi (Modifiers): Document the '*' constraint for the
15152 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15153 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15156 2002-01-13 Richard Henderson <rth@redhat.com>
15158 * reload.c (find_reloads): Use a hard reg destination as reload reg
15159 for an input reload of the source.
15161 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15163 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15166 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15168 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15169 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15171 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15173 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15175 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15177 2002-01-12 Tom Rix <trix@redhat.com>
15179 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15182 2002-01-12 Richard Henderson <rth@redhat.com>
15184 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15186 * doc/invoke.texi: Update Alpha options.
15188 * doc/invoke.texi: Update i386 built-in function lists.
15190 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15192 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15193 referencing outside.
15195 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15197 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15198 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15199 offsets, and change line folding.
15200 * optabs.c (expand_binop): Remove warnings.
15201 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15203 2002-01-12 Graham Stott <grahams@redhat.com>
15205 * attribs.c (handle_deprecated_attribute): constify WHAT.
15206 * diagnostic.c (warn_deprecated_use): Add braces, fixes
15207 dangling else warning and constify WHAT.
15208 * except.h (struct function, struct inline_remap): Move
15209 struct tag forward defs before all prototypes.
15210 (duplicate_eh_regions): Whitespace.
15212 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
15214 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15215 MODE_BASE_REG_CLASS.
15216 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15218 2002-01-12 Richard Henderson <rth@redhat.com>
15220 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15221 (ix86_expand_vector_move): New.
15222 (bdesc_2arg): Remove andps, andnps, orps, xorps.
15223 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
15224 Remove old prefetch builtins. Special case the logicals removed above.
15225 (ix86_expand_builtin): Likewise.
15226 (safe_vector_operand): Use V4SFmode, not TImode.
15227 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
15228 (ix86_expand_timode_binop_builtin): New.
15229 * config/i386/i386-protos.h: Update.
15230 * config/i386/i386.h (enum ix86_builtins): Update.
15231 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15232 Use ix86_expand_vector_move in vector move expanders.
15233 (movti_internal, movti_rex64): Add xorps alternative.
15234 (sse_clrv4sf): Rename and adjust from sse_clrti.
15235 (prefetch): Don't work so hard.
15236 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15237 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15238 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15240 2002-01-11 Richard Henderson <rth@redhat.com>
15242 * config/i386/mmintrin.h: New file.
15243 * config/i386/xmmintrin.h: New file.
15244 * config.gcc (i?86-*-*): Add extra_headers.
15245 * simplify-rtx.c (simplify_unary_operation): Handle saturating
15247 (simplify_binary_operation): Handle saturating arithmetic codes.
15248 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15249 not the lowpart subreg.
15250 (ix86_expand_builtin): Return a TImode dummy register instead of 0
15252 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15254 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15256 * conflict.c (conflict_graph_compute): Free regsets when finished.
15257 * ssa.c (compute_coalesced_reg_partition): Likewise.
15259 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15261 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15262 every where we allocate a register.
15264 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15266 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15267 * lcm.c (compute_earliest, compute_farthest): Likewise.
15269 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15271 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15273 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15275 * doc/rtl.texi (Insns): Fix 2 typos.
15277 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
15279 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
15280 options. Use @table @gcctabopt for MMIX options. Add index
15281 entries for MMIX options. Start new paragraph with first
15282 heading of the machine-dependent options.
15284 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
15287 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15288 * combine.c (force_to_mode): Same.
15289 * reload1.c (clear_reload_reg_in_use): Same.
15291 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
15293 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15296 2002-01-11 Andreas Jaeger <aj@suse.de>,
15297 Brad Lucier <lucier@math.purdue.edu>
15299 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15302 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
15304 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15305 Protect with IN_LIBGCC.
15306 (LINK_EH_SPEC): Add required trailing space.
15308 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
15310 * c-tree.h: Move function declarations so that they are listed
15311 under the filename which contains them.
15312 (check_identifier, finish_decl_top_level,
15313 lookup_name_current_level_global, shadow_record_fields): Remove.
15315 2002-01-11 Andreas Jaeger <aj@suse.de>
15317 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15320 2002-01-10 Richard Henderson <rth@redhat.com>
15322 * config/alpha/alpha.c (print_operand): Add 'J'.
15323 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15324 new operand with the sequence number for the lituse. When splitting
15325 the insns, use gen_movdi_er_high_g and generate a sequence number.
15326 (gen_movdi_er_high_g): Print the sequence number if non-zero.
15328 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
15330 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15331 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15333 (altivec_expand_builtin): Same.
15334 (altivec_expand_stv_builtin): New.
15336 * config/rs6000/rs6000.h (rs6000_builtins): Same.
15338 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15339 ("altivec_lvehx"): New.
15340 ("altivec_lvewx"): New.
15341 ("altivec_lvxl"): New.
15342 ("altivec_lvx"): New.
15343 ("altivec_stvx"): New.
15344 ("altivec_stvebx"): New.
15345 ("altivec_stvehx"): New.
15346 ("altivec_stvewx"): New.
15347 ("altivec_stvxl"): New.
15349 2002-01-10 Richard Henderson <rth@redhat.com>
15351 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15352 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
15353 care not to delete instructions twice.
15355 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15357 * toplev.c: Don't declare environ (it's not used anywhere).
15358 * configure.in: Don't check for declaration of environ.
15359 * config/i386/xm-mingw32.h: Don't #define environ.
15360 * config.in, configure: Regenerate.
15362 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15364 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15365 * configure: Regenerate.
15367 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15368 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15369 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15371 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15372 LIMITS_H_TEST here, not in m68k/x-next.
15373 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15374 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15376 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15377 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15378 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
15380 * config/i386/x-djgpp: Renamed i386/t-djgpp.
15381 * config/m88k/x-dolph: Renamed m88k/t-dolph.
15382 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15383 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
15384 replacement of quadlib.asm with quadlib.c.
15386 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15387 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15388 config/rs6000/xm-beos.h: Delete file.
15390 * config.gcc: Update to match above changes.
15392 2002-01-10 Kazu Hirata <kazu@hxi.com>
15394 * config/h8300/h8300.h: Fix comment typos.
15395 * config/h8300/h8300.md: Likewise.
15396 * config/h8300/lib1funcs.asm: Likewise.
15398 2002-01-10 Dale Johannesen <dalej@apple.com>
15400 PR optimization/5269
15401 * unroll.c (precondition_loop_p): Make *increment be the correct
15402 sign when n_iterations known, to avoid confusing caller.
15404 2002-01-10 Kazu Hirata <kazu@hxi.com>
15406 * doc/extend.texi (deprecated): Fix a typo.
15408 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
15410 * basic-block.h (update_br_prob_note): Declare.
15411 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15412 (try_forward_edges): Care negative frequencies and update note.
15413 (outgoing_edges_match): Tweek conditional merging heuristics.
15414 (try_crossjump_to_edge): use update_br_prob_note.
15415 * cfglayout.c (fixup_reorder_chain): Likewise.
15416 * cfrtl.c (update_br_prob_note): New.
15417 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15419 * i386.c (ix86_decompose_address): Return -1 if address contains
15421 (legitimate_address_p): Require ix86_decompose_address to return 1.
15423 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15424 (cprop_insn): Likewise.
15426 2002-01-10 Kazu Hirata <kazu@hxi.com>
15428 * toplev.c: Fix formatting.
15429 * tree.c: Likewise.
15430 * tree-dump.c: Likewise.
15431 * unroll.c: Likewise.
15432 * unwind-dw2.c: Likewise.
15433 * unwind-dw2-fde.c: Likewise.
15434 * unwind-dw2-fde-glibc.c: Likewise.
15435 * unwind-sjlj.c: Likewise.
15437 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15439 * doc/invoke.texi: Document PDP-11 options.
15441 2002-01-10 Kazu Hirata <kazu@hxi.com>
15443 * config/h8300/h8300.h: Fix formatting.
15445 2002-01-10 Ira Ruben <ira@apple.com>
15447 Add __attribute__ ((deprecated)).
15448 * extend.texi: Document __attribute__ ((deprecated)).
15449 * invoke.texi: Document -Wno-deprecated-declarations.
15450 * testsuite/g++.dg/other/deprecated.C: New C++ test.
15451 * testsuite/gcc.dg/deprecated.c: New C test.
15452 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15453 (c_common_attribute_table): Add "deprecated" entry.
15454 (handle_deprecated_attribute): New function.
15455 * c-decl.c (deprecated_states): New enum.
15456 deprecated_state: State of "deprecated" handling.
15457 (start_decl): Set deprecated_state based on attributes.
15458 (grokdeclarator): Test for deprecated uses, propagate attribute.
15459 * c-typeck.c (build_component_ref): Test for deprecated fields.
15460 (build_external_ref): Test for deprecated primaries.
15461 * diagnostic.c (warn_deprecated_use) New function to issue
15462 warnings about __attribute__ ((depricated)) references.
15463 * flags.h (warn_deprecated_decl): Extern declared for
15464 -W[no-]deprecated-declarations option.
15465 * print-tree.c (print_node): Show deprecated flag status.
15466 * toplev.c (warn_deprecated_decl): Defined.
15467 (W_options): Added "deprecated-declaration".
15468 * toplev.h (warn_deprecated_use): Extern declared.
15469 * tree.h (struct tree_common): Define deprecated_flag.
15470 (TREE_DEPRECATED): New macro to access flag.
15471 * cp/call.c (build_call): Test for deprecated calls.
15472 * cp/class.c (add_implicitly_declared_members): Set global
15473 flag to tell grokdeclarator to not issue deprecated warnings.
15474 * cp/cp-tree.h: Add extern for adding_implicit_members.
15475 * cp/decl.c (deprecated_states): New enum.
15476 (start_decl): Set deprecated_state based on attributes.
15477 (grokdeclarator): Test for deprecated uses, propagate attribute.
15478 * cp/lex.c (do_identifier): Test for deprecated primaries.
15479 * cp/typeck.c (build_component_ref): Test for deprecated fields.
15481 2002-01-10 Ira Ruben <ira@apple.com>
15483 Fix to assign attributes to inline member functions.
15484 * cp/decl.c (start_method): Handle attrlist.
15486 2002-01-10 Kazu Hirata <kazu@hxi.com>
15488 * combine.c (expand_field_assignment): Use subreg_lsb().
15490 2002-01-10 David Edelsohn <edelsohn@gnu.org>
15492 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15493 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15494 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15495 Recurse for any operand of AND as long as constant is non-zero.
15497 2002-01-10 Kazu Hirata <kazu@hxi.com>
15499 * config/h8300/h8300.md: Remove constraints from expanders.
15501 2002-01-10 Kazu Hirata <kazu@hxi.com>
15503 * varasm.c: Fix formatting.
15504 * varray.c: Likewise.
15505 * vmsdbgout.c: Likewise.
15506 * xcoffout.c: Likewise.
15508 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
15510 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15511 update edge probabilities to match.
15513 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15515 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15517 * doc/languages.texi, doc/sourcebuild.texi: New files.
15518 * doc/configfiles.texi: Make a subsubsection. Update.
15519 * doc/configterms.texi: Add @node. Remove warning that this isn't
15520 instructions for building GCC.
15521 * doc/makefile.texi: Make a subsection.
15522 * doc/gccint.texi: Update.
15524 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
15526 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15528 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
15530 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15532 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
15534 * optabs.c (expand_fix): Look for wider integer modes first.
15536 * i386.md (mov?f): Avoid the fake const double trick for medium
15538 (min?f*/max?f*): Prohibit memory operands for i387 variant.
15539 (fop_df_4): Disable for SSE compilation.
15541 2002-01-10 Graham Stott <grahams@redhat.com>
15543 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15544 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15546 2002-01-10 Richard Henderson <rth@redhat.com>
15548 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15550 2002-01-10 Richard Henderson <rth@redhat.com>
15552 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15553 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
15555 2002-01-10 Kazu Hirata <kazu@hxi.com>
15557 * combine.c (can_combine_p): Fix a comment typo.
15559 2002-01-09 Zack Weinberg <zack@codesourcery.com>
15561 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15562 empty list correctly. Change loop index $t to $f for
15563 consistency with rest of Makefile.
15565 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
15567 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15568 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15570 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15571 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15572 (altivec_init_builtins): Same.
15573 (altivec_expand_unop_builtin): Return NULL_RTX on error.
15574 (altivec_expand_binop_builtin): Same.
15575 (altivec_expand_ternop_builtin): Same.
15578 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15579 ("altivec_vctuxs"): Fix typo.
15580 ("altivec_vnmsubfp"): Same.
15581 ("altivec_dssall"): New.
15582 ("altivec_mfvscr"): New.
15583 ("altivec_dss"): New.
15584 ("altivec_lvsl"): New.
15585 ("altivec_lvsr"): New.
15586 ("altivec_dstt"): New.
15587 ("altivec_dstst"): New.
15588 ("altivec_dststt"): New.
15589 ("altivec_dst"): New.
15591 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15592 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15594 2002-01-09 Richard Henderson <rth@redhat.com>
15596 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15598 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
15600 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15602 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15604 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15606 2002-01-09 Kazu Hirata <kazu@hxi.com>
15608 * read-rtl.c: Fix formatting.
15609 * real.c: Likewise.
15610 * regclass.c: Likewise.
15611 * regrename.c: Likewise.
15612 * reg-stack.c: Likewise.
15613 * reload1.c: Likewise.
15614 * reload.c: Likewise.
15617 2002-01-09 Kazu Hirata <kazu@hxi.com>
15619 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15620 to extract items in the expr_list chain.
15622 2002-01-09 Richard Henderson <rth@redhat.com>
15624 * config/vax/vax.c (vax_rtx_cost): Never abort.
15626 * config/vax/vax.h (REAL_ARITHMETIC): Define.
15628 2002-01-09 Jan Hubicka <jh@suse.cz>
15630 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15632 2002-01-09 Richard Henderson <rth@redhat.com>
15634 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15635 Unify code from various alternatives.
15637 2002-01-09 Richard Henderson <rth@redhat.com>
15639 * regrename.c (copy_value): Ignore the copy if the source register
15640 is present in the value chain with a narrower mode.
15642 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15644 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15645 for the c4x target. Also improve layout.
15647 2002-01-09 Richard Henderson <rth@redhat.com>
15649 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15650 * config/m32r/m32r.md (and ior xor splitters): Swap operands
15651 to match insn patterns.
15653 2002-01-09 Richard Henderson <rth@redhat.com>
15655 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15656 (copyprop_hardreg_forward_1): Likewise.
15658 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
15660 * pa.md (decrement_and_branch_until_zero): Change predicate for
15661 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
15663 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15665 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
15666 gets undefined. For Darwin.
15668 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15670 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
15672 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15674 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
15676 2002-01-08 Richard Henderson <rth@redhat.com>
15678 * regrename.c (copy_value): Ignore overlapping copies.
15680 2002-01-08 Richard Henderson <rth@redhat.com>
15682 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
15683 as needed to avoid shared structure.
15685 2002-01-08 Kazu Hirata <kazu@hxi.com>
15687 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
15690 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15692 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
15693 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
15694 documentation of obsolete macros.
15695 * system.h: Poison these macros.
15696 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
15697 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
15698 config/c4x/c4x.h, config/clipper/clipper.h,
15699 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
15700 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
15701 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
15702 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
15703 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
15704 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
15705 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15706 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
15707 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
15708 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15709 config/sparc/sparc.h, config/stormy16/stormy16.h,
15710 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
15711 definitions and commented out definitions of obsolete macros.
15712 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
15713 of MAX_INT_TYPE_SIZE.
15715 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15717 * config/s390/s390.c (s390_preferred_reload_class): Never
15718 return ADDR_REGS if it isn't a subset of the given class.
15719 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
15720 FP_REGS, but all superclasses as well.
15722 * config/s390/s390.c (s390_function_profiler): Fix thinko.
15724 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
15725 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
15726 must not be a const_int.
15728 2002-01-08 Richard Henderson <rth@redhat.com>
15730 * Makefile.in (toplev.o): Depend on options.h.
15731 (gcc.o): Depend on specs.h.
15733 2002-01-08 Jakub Jelinek <jakub@redhat.com>
15735 * expr.c (store_expr): Convert VOIDmode constants back to target's
15738 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15740 * doc/invoke.texi: Markup gcc as @command. Refer to
15741 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
15742 of http://gcc.gnu.org/thanks.html.
15744 2002-01-08 Dale Johannesen <dalej@apple.com>
15746 * config/rs6000/rs6000.md: Add missing int register
15747 target case to movdf_low.
15749 2002-01-08 Zack Weinberg <zack@codesourcery.com>
15751 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
15752 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
15753 (cppinit.o): Depend on except.h.
15754 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
15755 s-specs): New rules.
15757 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
15758 Don't create specs.h/options.h/gencheck.h here. Remove
15759 unnecessary variable settings from last argument of AC_OUTPUT.
15760 * config.in, configure: Regenerate.
15761 * intl.c: Hardcode package name as "gcc".
15763 * cppinit.c: Include except.h.
15764 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
15766 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
15767 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
15768 (!)USING_SJLJ_EXCEPTIONS.
15769 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
15771 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15773 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
15774 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
15775 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
15776 documentation of obsolete macros.
15777 * system.h: Poison these macros.
15778 * config/d30v/d30v.h, config/ns32k/encore.h,
15779 config/stormy16/stormy16.h: Remove definitions and commented out
15780 definitions of obsolete macros.
15782 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
15784 * objc/objc-act.c (handle_class_ref): Mark the declaration of
15785 %sobjc_class_ref_%s as used - to prevent unwanted compiler
15788 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15790 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
15791 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
15792 to insn adjusting stack/frame pointer.
15793 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
15794 accept operands that cause the insn to be non-splittable.
15796 2002-01-08 Graham Stott <grahams@redhat.com>
15798 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
15799 (C_TYPE_FIELDS_VOLATILE): Likewise.
15800 (C_TYPE_BEING_DEFINED): Likewise.
15801 (C_IS_RESERVED_WORD): Likewise.
15802 (C_TYPE_VARIABLE_SIZE): Likewise.
15803 (C_DECL_VARIABLE_SIZE): Likewise.
15804 (C_MISSING_PROTOTYPE_WARNED): Likewise.
15805 (C_SET_EXP_ORIGINAL_CODE): Likewise.
15806 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
15808 (C_DECL_ANTICIPATED): Likewise.
15809 (c_build_type_variant): Add parenthesis.
15811 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15813 * gcc.c (option_map): Remove --version.
15814 (process_command): Handle -fversion following the GNU Coding
15815 Standards. Partially addresses PR other/704.
15817 2002-01-08 Graham Stott <grahams@redhat.com>
15819 * combine.c (combine_instructions): Fix typo.
15821 2002-01-08 Graham Stott <grahams@redhat.com>
15823 * debug.h: Use "tree" and "rtx" throughout.
15825 * debug.c: Likewise.
15827 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
15829 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
15830 constant pool, use the pool's version of the symbol instead.
15832 2002-01-07 Richard Henderson <rth@redhat.com>
15834 * regrename.c (find_oldest_value_reg): Ignore the value chain if
15835 the original register was copied in a mode with a fewer number of
15836 hard registers than the desired mode.
15837 (copyprop_hardreg_forward_1): Likewise.
15838 (debug_value_data): Fix loop test.
15839 * toplev.c (parse_options_and_default_flags): Reenable
15840 -fcprop-registers at -O1.
15842 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15844 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
15845 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
15847 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
15850 * config/rs6000/rs6000.md: Add altivec predicate patterns.
15852 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
15854 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
15855 (pa_output_function_prologue): Output local label at the beginning of
15856 the prologue when profiling.
15857 (hppa_profile_hook): Use the local label rather than the function label.
15858 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
15860 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15862 * config/rs6000/rs6000.c (print_operand): Remove extra space.
15863 (altivec_expand_unop_builtin): Fix thinko.
15864 (altivec_expand_binop_builtin): Same.
15865 (altivec_expand_ternop_builtin): Same.
15866 (altivec_expand_builtin): Same.
15868 2002-01-07 Richard Henderson <rth@redhat.com>
15870 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
15872 2002-01-07 Jason Merrill <jason@redhat.com>
15874 * unwind-dw2.c (execute_cfa_program): Use < again.
15876 2002-01-07 Jakub Jelinek <jakub@redhat.com>
15878 * predict.c (combine_predictions_for_insn): Avoid division by zero.
15880 2002-01-07 Jakub Jelinek <jakub@redhat.com>
15882 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
15883 Don't allow -1 - x -> ~x simplifications in the first pass.
15885 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15887 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
15889 (altivec_expand_binop_builtin): Same.
15890 (altivec_expand_unop_builtin): Same.
15891 (print_operand): Fix typo.
15892 (bdesc_1arg): Add vupk* variants.
15894 * rs6000.h (rs6000_builtins): Add vupk* enums.
15896 * rs6000.md: Add altivec_vupk* variants.
15898 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
15900 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
15901 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
15902 and last update dates.
15904 2002-01-07 Janis Johnson <janis187@us.ibm.com>
15906 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
15908 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
15910 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
15911 * config/avr/avr.h (CPP_SPEC): Likewise.
15912 (LINK_SPEC): Likewise.
15913 (CRT_BINUTILS_SPECS): Likewise.
15914 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15915 * doc/invoke.texi (AVR Options): Document them.
15917 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
15919 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
15922 2002-01-07 Graham Stott <grahams@redhat.com>
15924 * config/i386/i386.h: Update copyright date.
15925 (HALF_PIC_PTR): Add parenthesis.
15926 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
15927 (CONSTANT_ALIGNMENT): Add parenthesis.
15928 (DATA_ALIGNMENT): Likewise.
15929 (LOCAL_ALIGNMENT): Likewise.
15930 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
15931 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
15932 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
15933 (HARD_REGNO_NREGS): Add paranethesis.
15934 (VALID_SSE_REG_MODE): Whitespace.
15935 (VALID_MMX_REG_MODE): Whitespace.
15936 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
15937 (ix86_hard_regno_mode_ok): Add parenthesis.
15938 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
15939 (RETURN_IN_MEMORY): Whitespace.
15940 (N_REG_CLASSES): Add parenthesis.
15941 (INTEGER_CLASS_P): Add parenthesis and wrap.
15942 (FLOAT_CLASS_P): Likewise.
15943 (SSE_CLASS_P): Likewise.
15944 (MMX_CLASS_P): Likewise.
15945 (MAYBE_INTEGER_CLASS_P): Likewise.
15946 (MAYBE_FLOAT_CLASS_P): Likewise.
15947 (MAYBE_SSE_CLASS_P): Likewise.
15948 (MAYBE_MMX_CLASS_P): Likewise.
15949 (Q_CLASS_P): Likewise.
15950 (GENERAL_REGNO_P): Uppercase macro parameter.
15951 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
15952 (FP_REGNO_P): Likewise.
15953 (ANY_FP_REGNO_P): Uppercase macro parameter.
15954 (SSE_REGNO_P): Likewise.
15955 (SSE_REGNO): Likewise.
15956 (SSE_REG_P): Likewise.
15957 (SSE_FLOAT_MODE_P): Likewise.
15958 (MMX_REGNO_P): Likewise.
15959 (MMX_REG_P):Likewise.
15960 (STACK_REG_P): Likewise.
15961 (NON_STACK_REG_P): Likewise.
15962 (STACK_TOP_P): Likewise.
15963 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
15964 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
15965 (SECONDARY_MEMORY_NEEDED): Likewise.
15966 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
15967 (MD_ASM_CLOBBERS): Whitespace and wrap.
15968 (MUST_PASS_IN_STACK): Whitespace and wrap.
15969 (RETURN_POPS_ARGS): Add parenthesis.
15970 (INIT_CUMULATIVE_ARGS): Likewise.
15971 (FUNCTION_ARG): Likewise.
15972 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
15973 (SETUP_INCOMING_VARARGS): Likewise.
15974 (BUILD_VA_LIST_TYPE): Add parenthesis.
15975 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
15977 (EXPAND_BUILTIN_VA_ARG): Likewise.
15978 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
15979 (INITIALIZE_TRAMPOLINE): Add parenthesis.
15980 (INITIAL_ELIMINATION_OFFSET): Likewise.
15981 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
15982 (REGNO_OK_FOR_BASE_P): Likewise.
15983 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
15984 (REGNO_OK_FOR_DIREG_P): Likewise.
15985 (REG_OK_FOR_INDEX_P): Whitespace.
15986 (REG_OK_FOR_BASE_P): Whitespace.
15987 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
15989 (FIND_BASE_TERM): Fix typo.
15990 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
15991 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
15992 (SYMBOLIC_CONST; Whitespace.
15993 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
15994 (ENCODE_SECTION_INFO): Whitespace.
15995 (FINALIZE_PIC): Remove do { ... } while (0).
15996 (PROMOTE_MODE): Wrap in do { ... } while (0).
15997 (CONST_COSTS): Whitespace.
15998 (RTX_COSTS): Add paramethesis, whitespace and wrap.
15999 (REGISTER_MOVE_COST): Add parenthesis.
16000 (MEMORY_MOVE_COST): Likewise.
16001 (EXTRA_CC_MODES): Whitespace.
16002 (SELECT_CC_MODE): Add parenthesis and whitespace.
16003 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16004 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16005 (ASM_OUTPUT_LABEL): Add paramethesis.
16006 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16007 (ASM_OUTPUT_REG_POP): Likewise.
16008 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16009 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16011 * config/i386/i386.c: Update copyright.
16012 (CHECK_STACK_LIMIT): Add parenthesis.
16013 (AT_BP): Uppercase macro parameter.
16014 (x86_64_int_parameter_registers): Constify.
16015 (x86_64_int_return_registers): Likewise.
16016 (ix86_compare_op0): Use rtx.
16017 (construct_container): Constify INTREG parameter.
16018 (function_arg): Use rtx.
16020 * diagnostic.h: Update copyright date.
16021 (output_buffer_state): Add parenthesis.
16022 (output_buffer_format_args): Likewise.
16024 * combine.c (combine_instructions): Replace XEXP (links, 0)
16027 2002-01-06 H.J. Lu <hjl@gnu.org>
16029 * cfgcleanup.c (thread_jump): Fix 2 typos.
16031 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16033 * config.gcc: Add support for --enable-altivec.
16035 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16037 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16039 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16041 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16042 __objc_class_name_*.
16044 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16046 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16048 2002-01-06 Richard Henderson <rth@redhat.com>
16050 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16051 nop them out. Increment label reference count for REG_LABEL.
16052 (fill_slots_from_thread): Frob label reference count around
16053 delete_related_insns.
16055 2002-01-05 Richard Henderson <rth@redhat.com>
16057 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16060 2002-01-05 Richard Henderson <rth@redhat.com>
16062 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16063 * integrate.c (output_inline_function): Likewise.
16064 * toplev.c (rest_of_compilation): Do it here instead. Move call
16065 to remove_unnecessary_notes after emitting abstract instance.
16066 Force an emitted nested function to have its parent emited as well.
16067 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16069 (rtl_for_decl_location): Do not look at reload data structures
16070 before reload has run.
16072 2002-01-05 Kazu Hirata <kazu@hxi.com>
16074 * cse.c: Fix formatting.
16075 * dwarf2asm.c: Likewise.
16076 * dwarf2out.c: Likewise.
16077 * explow.c: Likewise.
16078 * expmed.c: Likewise.
16079 * function.c: Likewise.
16080 * gcov.c: Likewise.
16081 * gencheck.c: Likewise.
16082 * genrecog.c: Likewise.
16083 * ggc-common.c: Likewise.
16084 * ggc-page.c: Likewise.
16085 * global.c: Likewise.
16087 2002-01-05 Kazu Hirata <kazu@hxi.com>
16089 * combine.c: Fix formatting.
16091 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16094 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16096 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16098 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16099 as 1 for __powerpc64__ as well.
16101 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16103 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16106 2002-01-05 Daniel Berlin <dan@dberlin.org>
16108 * lcm.c: Revert change, due to performance regression it causes on
16109 SPEC because it's slightly more conservative (sigh, I hate
16112 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16114 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16116 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16118 * doc/cppinternals.texi: Update.
16120 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16122 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16123 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16125 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16126 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16127 kludge for pre-october-14th mmix versions to handle new-found bug
16128 with PUSHJ/PUSHGO and the register stack.
16129 * config/mmix/mmix.h (struct machine_function): Rename member
16130 has_call_value_without_parameters to has_call_without_parameters.
16131 All referers changed.
16132 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16133 TARGET_MASK_BRANCH_PREDICT): New macros.
16134 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16135 -mno-reg-stack-fill-bug-workaround.
16136 * config/mmix/mmix.md ("call"): Set struct machine member
16137 has_call_without_parameters.
16139 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16141 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16143 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16145 * cfgcleanup.c: Include tm_p.h
16146 (mark_effect): Fix handling of hard register; fix handling of SET
16148 2002-01-04 Kazu Hirata <kazu@hxi.com>
16150 * config/h8300/h8300.md (anonymous patterns): Check that
16151 operands are registers before using REGNO on them.
16153 2002-01-03 Roland McGrath <roland@frob.com>
16155 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16157 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16159 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16160 * c-common.h (genrtl_expr_stmt_value): Likewise.
16161 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16162 (expand_expr_stmt_value): Add maybe_last argument.
16163 Don't warn about statement with no effect if it is the last statement
16164 in expression statement.
16165 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16166 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16167 expand_expr_stmt_value.
16168 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16169 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16170 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16171 as maybe_last to expand_expr_stmt_value.
16173 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16175 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16176 be passed in, do not build it.
16177 (c_begin_if_stmt): New function.
16178 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16179 * c-common.h (c_expand_start_cond): Update prototype.
16180 (c_begin_if_stmt): Prototype new function.
16181 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16182 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16183 c_begin_while_stmt and c_finish_while_stmt_cond.
16185 2002-01-04 William Cohen <wcohen@redhat.com>
16187 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16188 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16189 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16190 * config/pa/som.h (ASM_FILE_START): Likewise.
16192 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16194 * lcm.c: Include df.h.
16195 Add available_transfer_function prototype.
16196 (compute_available): Rework to use iterative dataflow framework.
16197 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16198 with bb_info in df.h
16199 (available_transfer_function): New function.
16201 * Makefile.in (lcm.o): add df.h to dependencies.
16203 2002-01-04 Richard Henderson <rth@redhat.com>
16205 * config/alpha/alpha.c (some_operand): Accept HIGH.
16206 (input_operand): Likewise; accept simple references to globals.
16207 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16208 (alpha_const_double_ok_for_letter_p): Likewise.
16209 (alpha_extra_constraint): Likewise.
16210 (alpha_preferred_reload_class): Likewise. Do not force
16211 symbolic constants to memory.
16212 (alpha_legitimate_address_p): Accept simple references
16213 to small_symbolic_operand.
16214 (alpha_legitimize_address): New arg scratch. Be prepared to be
16215 called when no_new_pseudos. Emit simple symbolic references.
16216 Split integers into low, high, and rest.
16217 (alpha_expand_mov): Use alpha_legitimize_address.
16218 (some_small_symbolic_mem_operand): New.
16219 (split_small_symbolic_mem_operand): New.
16220 * config/alpha/alpha-protos.h: Update.
16221 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16222 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16223 (EXTRA_CONSTRAINT): Likewise.
16224 (PREFERRED_RELOAD_CLASS): Likewise.
16225 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16226 (PREDICATE_CODES): Update.
16227 * config/alpha/alpha.md: New post-reload splitters to convert
16228 simplfied symbolic operands to the form that references $29.
16229 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16230 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16232 2002-01-03 Richard Henderson <rth@redhat.com>
16234 * local-alloc.c (function_invariant_p): Update commentary.
16236 2002-01-04 H.J. Lu <hjl@gnu.org>
16238 * toplev.c (rest_of_compilation): Fix a typo when calling
16241 2002-01-03 Kazu Hirata <kazu@hxi.com>
16243 * c-common.c: Fix formatting.
16244 * diagnostic.c: Likewise.
16245 * doloop.c: Likewise.
16246 * dwarf2out.c: Likewise.
16248 2002-01-03 Kazu Hirata <kazu@hxi.com>
16250 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16251 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16253 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16255 * cpperror.c: Update comments and copyright.
16256 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16257 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16259 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
16261 * collect2.c (main): Use strcmp when testing for "-shared".
16263 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16265 * cppmacro.c: Don't include intl.h. Update comments.
16266 (new_number_token): Allocate enough buffer for 64-bit unsigned
16267 integers; update prototype.
16268 * cppmain.c: Update comments.
16270 2002-01-03 William Cohen <wcohen@redhat.com>
16272 * function.h (struct function): Add profile.
16273 (current_function_profile): New.
16274 doc/extend.texi: Update documentation.
16275 * final.c (final_start_function): Use current_function_profile
16276 instead of profile_flag.
16277 (profile_after_prologue): Likewise.
16278 * function.c (expand_function_start): Likewise.
16279 (expand_function_start): Likewise.
16280 * config/alpha/alpha.c (direct_call_operand):
16281 (alpha_does_function_need_gp): Likewise.
16282 (alpha_expand_prologue): Likewise.
16283 * config/arm/arm.c (arm_expand_prologue): Likewise.
16284 thumb_expand_prologue: Likewise.
16285 * config/d30v/d30v.c (d30v_stack_info): Likewise.
16286 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16287 (fr30_expand_prologue): Likewise.
16288 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16289 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16290 * config/i386/i386.h (FINALIZE_PIC): Likewise.
16291 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16292 * config/i960/i960.c (i960_output_function_prologue): Likewise.
16293 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16294 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16295 (m32r_expand_prologue): Likewise.
16296 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16297 (m88k_expand_prologue): Likewise.
16298 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16299 * config/mips/mips.c (compute_frame_size): Likewise.
16300 (mips_expand_prologue): Likewise.
16301 (mips_can_use_return_insn): Likewise.
16302 * config/pa/elf.h (ASM_FILE_START): Likewise.
16303 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16304 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16305 * config/pa/som.h (ASM_FILE_START): Likewise.
16306 * config/romp/romp.c (romp_using_r14): Likewise.
16307 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16308 (rs6000_stack_info): Likewise.
16309 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16310 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16311 * config/v850/v850.c (compute_register_save_size): Likewise.
16313 2002-01-03 Jakub Jelinek <jakub@redhat.com>
16315 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16316 gen_lowpart_common fails, use gen_lowpart_SUBREG.
16318 2002-01-03 Turly O'Connor <turly@apple.com>
16320 * darwin.c (machopic_output_possible_stub_label): Don't generate
16321 stub routines for pseudo-stubs which we've just defined.
16323 2002-01-03 Kazu Hirata <kazu@hxi.com>
16325 * builtins.c: Fix formatting.
16326 * c-typeck.c: Likewise.
16327 * combine.c: Likewise.
16328 * expr.c: Likewise.
16329 * loop.c: Likewise.
16331 2002-01-03 Andreas Schwab <schwab@suse.de>
16333 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16334 and return true if _cpp_push_next_buffer pushed a new include
16336 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16337 _cpp_pop_file_buffer did not push a new file.
16338 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16340 2002-01-02 Eric Christopher <echristo@redhat.com>
16342 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16343 FIND_REG_INC_NOTE call. Update copyright.
16344 * loop.c (canonicalize_condition): Ditto.
16345 * reorg.c (delete_scheduled_jump): Ditto.
16347 2002-01-03 Kazu Hirata <kazu@hxi.com>
16349 * gcse.c: Fix formatting.
16351 2002-01-03 Graham Stott <grahams@redhat.com>
16353 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16354 forward defs for struct tags rtx_def, union_tree, rtvec_def
16355 also output corresponding typedefs for rtx, tree, and rtvec.
16357 * system.h: Move forward defs for struct tags rtx_def, union_tree,
16358 rtvec_def along with corresponding typedefs for rtx, tree, and
16359 rtvec to config.h, hconfig.h, tconfig.h.
16361 2002-01-03 Graham Stott <grahams@redhat.com>
16363 * tree.h: Update copyright date.
16364 (IS_EXPR_CODE_CLASS): Add parenthesis.
16365 (TREE_SET_CODE): Add whitespace.
16366 (TREE_CHECK): Add parenthesis.
16367 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16368 (CST_OR_CONSTRUCTOR_CHECK):
16369 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16370 (TREE_SYMBOL_REFERENCED): Whitespace.
16371 (INT_CST_LT): Likewise.
16372 (INT_CST_LT_UNSIGNED): Likewise.
16373 (tree_real_cst): Unwrap comment.
16374 (tree_string): Likewise.
16375 (tree_complex): Likewise.
16376 (IDENTIFIER_POINTER): correct cast.
16377 (SAVE_EXPR_CONTEXT): Whitespace.
16378 (EXPR_WFL_FILENAME_NODE): Likewise.
16379 (EXPR_WFL_FILENAME): Remove parenthesis.
16380 (DECL_ORIGIN): Add parenthesis.
16381 (DECL_FROM_INLINE): Use NULL_TREE.
16382 (build_int_2): Whitespace.
16383 (build_type_variant): Add parenthesis.
16385 * gcc/jcf-parse.c: Update copyright date.
16386 (yyparse): Constify resource_filename.
16388 2002-01-03 Graham Stott <grahams@redhat.com>
16390 * rtl.h: Update copyright date.
16391 (RTL_CHECK1): Wrap long line.
16392 (RTL_CHECK2): Likewise.
16393 (RTL_CHECKC1): Wrap long line and whitespace.
16394 (RTL_CHECKC2): Likewise.
16395 (XWINT): Whitespace.
16401 (XBITMAP): Likewise.
16403 (XBBDEF): Likewise.
16405 (X0WINT): Likewise.
16407 (X0UINT): Likewise.
16411 (X0MODE): Likewise.
16412 (X0BITMAP): Likewise.
16413 (X0TREE): Likewise.
16414 (X0BBDEF): Likewise.
16415 (X0ADVFLAGS): Likewise.
16416 (X0CSELIB): Likewise.
16417 (X0MEMATTR): Likewise.
16418 (XCWINT): Likewise.
16420 (XCUINT): Likewise.
16424 (XCMODE): Likewise.
16425 (XCBITMAP): Likewise.
16426 (XCTREE): Likewise.
16427 (XCBBDEF): Likewise.
16428 (XCADVFLAGS): Likewise.
16429 (XCCSELIB): Likewise.
16430 (XC2EXP): Likewise.
16431 (INSN_UID): Likewise.
16432 (PREV_INSN): Likewise.
16433 (PATTERN): Likewise.
16434 (INSN_CODE): Likewise.
16435 (PUT_REG_NOTE_KIND): Likewise.
16436 (CODE_LABEL_NUMBER): Likewise.
16437 (NOTE_SOURCE_FILE): Likewise.
16438 (NOTE_BLOCK): Likewise.
16439 (NOTE_EH_HANDLER): Likewise.
16440 (NOTE_RANGE_INFO): Likewise.
16441 (NOTE_LIVE_INFO): Likewise.
16442 (NOTE_BASIC_BLOCK): Likewise.
16443 (NOTE_EXPECTED_VALUE): Likewise.
16444 (NOTE_LINE_NUMBER): Likewise.
16445 (LABEL_NAME): Likewise.
16446 (LABEL_NUSES): Likewise.
16447 (LABEL_ALTERNATE_NAME): Likewise.
16448 (ADDRESSOF_DECL): Likewise.
16449 (JUMP_LABEL): Likewise.
16450 (LABEL_NEXTREF): Likewise.
16452 (ORIGINAL_REGNO: Likewise.
16453 (HARD_REGISTER_NUM_P): Add parenthesis.
16454 (SUBREG_REG): Whitespace.
16455 (SUBREG_BYTE): Likewise.
16456 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16457 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16458 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16459 (ASM_OPERANDS_INPUT_VEC): Likewise.
16460 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16461 (ASM_OPERANDS_INPUT): Likewise.
16462 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16463 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16464 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16465 (ASM_OPERANDS_INPUT_MODE): Likewise.
16466 (ASM_OPERANDS_SOURCE_FILE): Likewise.
16467 (ASM_OPERANDS_SOURCE_LINE): Likewise.
16468 (MEM_SET_IN_STRUCT_P): Minor reformat.
16469 (TRAP_CONDITION): Whitespace.
16470 (TRAP_CODE): Likewise.
16471 (COND_EXEC_TEST): Likewise.
16472 (COND_EXEC_CODE): Likewise.
16473 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16474 (PHI_NODE_P): Add parenthesis.
16475 (plus_constant): Whitespace and add parenthesis.
16477 2002-01-03 Kazu Hirata <kazu@hxi.com>
16479 * config/avr/avr.c: Fix comment typos.
16480 * config/c4x/c4x.md: Likewise.
16481 * config/dsp16xx/dsp16xx.h: Likewise.
16482 * config/dsp16xx/dsp16xx.md: Likewise.
16483 * config/i386/i386.md: Likewise.
16484 * config/ia64/ia64.c: Likewise.
16485 * config/m32r/m32r.h: Likewise.
16486 * config/m68hc11/m68hc11.md: Likewise.
16487 * config/mmix/mmix.c: Likewise.
16488 * config/mn10200/mn10200.c: Likewise.
16489 * config/romp/romp.c: Likewise.
16490 * config/sh/sh.c: Likewise.
16491 * config/stormy16/stormy16.c: Likewise.
16492 * config/stormy16/stormy16.h: Likewise.
16493 * config/stormy16/stormy16.md: Likewise.
16495 2002-01-03 Graham Stott <grahams@redhat.com>
16497 * loop.h: Update copyright date.
16498 (LOOP_MOVABLES): Fix typo.
16499 (LOOP_REGS): Likewise.
16500 (LOOP_IVS): Likewise.
16502 2002-01-03 Graham Stott <grahams@redhat.com>
16504 * cppinit.c: Update copyright date.
16505 Don't include output.h
16506 * Makefile.in: Update copyright date.
16509 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
16512 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16513 (-pthread) Add to RS/6000 options.
16515 2002-01-02 Kazu Hirata <kazu@hxi.com>
16517 * except.c: Fix comment typos.
16518 * loop.c: Likewise.
16519 * varasm.c: Likewise.
16520 * doc/tm.texi: Fix a typo.
16522 2002-01-02 Jakub Jelinek <jakub@redhat.com>
16524 * c-typeck.c (output_init_element): Allow initializing static storage
16525 duration objects with compound literals.
16527 2002-01-02 Richard Henderson <rth@redhat.com>
16529 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16532 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16534 * gcc.c (default_compilers): Const-ify.
16535 * mips-tdump.c (stab_names): Likewise.
16536 * mips-tfile.c (map_coff_types, map_coff_storage,
16537 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16538 pseudo_ops_t, pseudo_ops): Likewise.
16539 * protoize.c (default_include): Likewise
16541 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16542 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16543 Add array size in declaration.
16544 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16545 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16546 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16547 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16548 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16549 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16550 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16551 emtens, make_nan): Const-ify.
16552 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16553 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16555 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
16557 * config.gcc (ia64-*-*): Set extra_headers.
16558 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
16559 * config/alpha/t-osf: Remove.
16560 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16562 2002-01-02 David Edelsohn <edelsohn@gnu.org>
16564 * config/rs6000/t-aix43: Revert previous change.
16566 2002-01-02 Jason Merrill <jason@redhat.com>
16568 * c-decl.c (c_expand_body): Call outlining_inline_function when
16569 emitting an inline function out of line.
16571 2002-01-02 Richard Henderson <rth@redhat.com>
16573 * dwarf2out.c (limbo_die_node): Add created_for member.
16574 (new_die): New argument created_for. Update all callers.
16575 (mark_limbo_die_list): New.
16576 (dwarf2out_init): Register limbo_die_list as a root.
16577 (dwarf2out_finish): Force insert limbo dies into their function
16580 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
16583 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16585 2002-01-02 Kazu Hirata <kazu@hxi.com>
16587 * config/h8300/fixunssfsi.c: Update copyright.
16590 * config/h8300/h8300.c: Update copyright.
16591 Eliminate warnings.
16593 2002-01-02 Kazu Hirata <kazu@hxi.com>
16595 * config/romp/romp.c: Fix comment formatting.
16596 * config/romp/romp.h: Likewise.
16597 * config/romp/romp.md: Likewise.
16598 * config/s390/s390.c: Likewise.
16599 * config/stormy16/stormy16.c: Likewise.
16600 * config/stormy16/stormy16.h: Likewise.
16602 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
16604 * c-common.h (genrtl_expr_stmt_value): Declare.
16605 * c-semantics.c (genrtl_goto_stmt): Redirect to...
16606 (genrtl_goto_stmt_value): ... this new function. Pass new
16607 argument down to expand_expr_stmt_value, taking
16608 TREE_ADDRESSABLE into account.
16609 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16610 STMT_EXPR as addressable, i.e., one whose result we want.
16611 * expr.c (expand_expr): Don't save expression statement value
16612 of labeled_blocks or loop_exprs.
16613 * stmt.c (expand_expr_stmt): Redirect to...
16614 (expand_expr_stmt_value): ... this new function. Use new
16615 argument to tell whether to save expression value.
16616 (expand_end_stmt_expr): Reset last_expr_type and
16617 last_expr_value if we don't have either.
16618 * tree-inline.c (declare_return_variable): Mark its use
16619 statement as addressable.
16620 * tree.h: Document new use of TREE_ADDRESSABLE.
16621 (expand_expr_stmt_value): Declare.
16623 2002-01-01 Tom Rix <trix@redhat.com>
16625 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16626 rs6000_emit_allocate_stack.
16628 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
16630 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16631 ${srcdir}/ginclude/ to every entry in extra_headers.
16632 * configure: Regenerate.
16633 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16634 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16635 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16636 * ginclude/proto.h: Rename to config/convex/proto.h.
16638 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16640 * attribs.c (handle_vector_size_attribute): Use host_integerp
16641 and tree_int_cst; remove warnings.
16642 * caller-save.c (insert_restore): Add cast to get rid of warning.
16643 (insert_save): Likewise.
16644 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16645 * regmove.c (find_matches): Add temporary var to kill a warning.
16647 2002-01-01 Douglas B Rupp <rupp@gnat.com>
16649 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16650 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16651 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16652 (vms-dwarf2eh.o): Add Makefile rule.
16653 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16654 * config/alpha/vms-dwarf2eh.asm: New file.
16656 * gcc.c (delete_if_ordinary): Delete all versions.
16658 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
16660 * config/mmix/mmix.md: Update FIXME to not mention
16662 (MMIX_rJ_REGNUM): New define_constants constant.
16663 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
16664 "*movdicc_real"): Adjust contraints formatting.
16665 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
16666 for branch prediction.
16667 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
16669 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
16670 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
16671 number. Delete related FIXMEs.
16672 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
16673 from number to MMIX_rJ_REGNUM.
16674 (TARGET_MASK_BRANCH_PREDICT): New.
16675 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
16676 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
16677 value. Add -mbranch-predict and -mno-branch-predict.
16678 (TARGET_VERSION): Drop date.
16679 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
16680 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
16681 for finding out global symbols.
16682 (mmix_asm_output_labelref): Revert condition for global symbol.
16683 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
16684 (mmix_print_operand_punct_valid_p): A '+' is valid.
16686 See ChangeLog.6 for earlier changes.