]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define common CPP built-ins for all...
[thirdparty/gcc.git] / gcc / ChangeLog
1 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
4 common CPP built-ins for all NetBSD a.out targets.
5 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
6 common CPP built-ins for all NetBSD ELF targets.
7 * config/netbsd.h: Add missing notice.
8 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
9 for all NetBSD targets.
10 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
11 for all NetBSD targets using an LP64 code model.
12 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
13 NetBSD targets.
14
15 2002-05-28 Richard Henderson <rth@redhat.com>
16
17 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
18 update if UPDATE_LIFE_LOCAL.
19
20 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
21
22 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
23
24 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
25 Jason R. Thorpe <thorpej@wasabisystems.com>
26
27 config/sh reorganization to factor out endianness and coff:
28
29 * config/sh/little.h: New file.
30 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
31 defined, define to 0 to select big-endian.
32 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
33 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
34 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
35 * config/sh/t-be: New file.
36 * config/sh/t-le: New file.
37
38 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
39 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
40 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
41 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
42 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
43 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
44 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
45 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
46 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
47 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
48 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
49 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
50 (LINK_SPEC): Define to SH_LINK_SPEC.
51 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
52 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
53 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
54 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
55 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
56 * config/sh/coff.h: New file.
57 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
58 (TARGET_OBJFMT_CPP_BUILTINS): Define.
59 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
60 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
61 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
62 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
63 (PTRDIFF_TYPE): Likewise.
64 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
65 (CPP_PREDEFINES): Don't define.
66 (TARGET_OBJFMT_CPP_BUILTINS): Define.
67 (LINK_SPEC): Define to SH_LINK_SPEC.
68 (LINK_EMUL_PREFIX): Redefine.
69 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
70 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
71 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
72 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
73 (TARGET_OS_CPP_BUILTINS): Define.
74 (TARGET_DEFAULT): Redefine.
75 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
76 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
77 (LINK_SPEC): Don't redefine.
78 (LINK_DEFAULT_CPU_EMUL): Redefine.
79 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
80 * sh.c (sh_asm_named_section): Don't declare / define.
81 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
82 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
83 (sh64-*-elf* tm_file): Likewise.
84 (sh-*-rtemself* tm_file): Likewise.
85 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
86 (sh-*-linux* tmake_file): Add sh/t-le.
87 (sh-*-rtems* tm_file): Add sh/coff.h
88 (sh-*-* tm_file): Likewise.
89
90 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
91
92 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
93 CONSTANT_POOL_ADDRESS_P.
94
95 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
96
97 2002-05-22 David Edelsohn <edelsohn@gnu.org>
98 Jeff Law <law@redhat.com>
99
100 * optabs.c (expand_binop): Fix nwords sign warnings.
101 generate pseudo for add_optab.
102
103 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
104 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
105
106 2002-05-28 Marc Espie <espie@openbsd.org>
107
108 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
109 inherited from gas.h.
110 (ASM_QUAD): Undef. OpenBSD does not support it.
111
112 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
113
114 * doc/install.texi (binaries): Change mingw binaries
115 link to www.mingw.org.
116
117 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
118
119 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
120
121 2002-05-28 Richard Henderson <rth@redhat.com>
122
123 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
124 bottom alignment for leaf functions.
125
126 2002-05-28 Zack Weinberg <zack@codesourcery.com>
127
128 * config/pa/milli32.S, config/pa/lib1funcs.asm,
129 config/sparc/sol2-g1.asm: Delete unused files.
130
131 2002-05-28 Richard Henderson <rth@redhat.com>
132
133 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
134
135 * flow.c (calculate_global_regs_live): Rename call_used to
136 invalidated_by_call. Initialize from regs_invalidated_by_call
137 instead of call_used_regs.
138
139 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
140 DECL_EXTERNAL.
141
142 2002-05-28 Zack Weinberg <zack@codesourcery.com>
143
144 * tree.h: Forward-declare struct realvaluetype.
145 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
146 contain it.
147 (TREE_REAL_CST_PTR): New accessor.
148 (TREE_REAL_CST): Update.
149 * real.h: Include machmode.h.
150 (realvaluetype): Make it struct realvaluetype, not a typedef.
151 (build_real): Prototype here.
152
153 * tree.c: Include real.h.
154 (build_real): Allocate the REAL_VALUE_TYPE as a separate
155 object in GC memory, set TREE_REAL_CST_PTR to point to it.
156 (build_real_from_int_cst): Use build_real.
157 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
158 REAL_CST.
159
160 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
161 fold-const.c, print-tree.c, real.c: Include real.h.
162 * Makefile.in: Update dependency lists.
163
164 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
165
166 * basic-block.h (last_basic_block): Declare.
167 (expunge_block_nocompact): Declaration removed.
168 (compact_blocks): Declare.
169 * cfg.c (last_basic_block): New variable.
170 (expunge_block_nocompact): Removed.
171 (expunge_block): Do not compact basic blocks.
172 (compact_blocks): New.
173 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
174 longer change.
175 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
176 last_basic_block.
177 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
178 real positions of blocks.
179 (delete_unreachable_blocks): Simplified -- quadratic behavior now
180 cannot occur.
181 (cleanup_cfg): Compact blocks.
182 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
183 basic_block_info varray.
184 (flow_delete_block): Comment update.
185 (back_edge_of_syntactic_loop_p): Modify position check code.
186 (verify_flow_info): Update checking.
187 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
188 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
189 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
190 indices no longer change.
191 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
192 last_basic_block.
193 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
194 * profile.c (branch_prob): Compact blocks.
195 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
196 last_basic_block.
197
198 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
199
200 * config/h8300/h8300.md (two anonymous patterns): New.
201
202 2002-05-28 David S. Miller <davem@redhat.com>
203
204 * config/sparc/sparc.md (cpu): Tidy.
205 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
206 'trap'.
207 (in_call_delay): Delete reference to 'return' type.
208 (eligible_for_return_delay, in_return_delay, define_delay
209 referencing those): Delete.
210 (rest of file): Use new type attributes as appropriate.
211 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
212 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
213 * config/sparc/ultra1_2.md (us1_single): New reservation.
214 (us1_ialuX): Likewise.
215 * config/sparc/ultra3.md (us3_single): Likewise.
216 (us3_ialuX): Likewise.
217 (us3_imul, us3_idiv): Tweak.
218
219 2002-05-28 Richard Henderson <rth@redhat.com>
220
221 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
222 STRING_CST.
223
224 2002-05-28 Richard Henderson <rth@redhat.com>
225
226 * config.gcc: Obsolete mn10200.
227
228 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
229
230 * cppexp.c (interpret_number): Optimize for single-digit
231 and less-than-half-precision cases.
232 (num_trim, num_positive, num_div_op): Cast constants.
233
234 2002-05-27 Bo Thorsen <bo@suse.de>
235
236 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
237 3.1 branch. The file was made by Jakub Jelinek.
238 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
239 support so multilib doesn't break. And don't define this at all
240 when -Dinhibit_libc is used.
241 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
242 * config/i386/t-linux64: Implement full multilib support. Patch
243 originally done by Andreas Jaeger and Jakub Jelinek.
244
245 2002-05-27 Roger Sayle <roger@eyesopen.com>
246
247 * c-common.c: Add support for __attribute__((nothrow)) to specify
248 that a function cannot throw an exception (using TREE_NOTHROW).
249 (handle_nothrow_attribute): New function to process this attribute.
250
251 * doc/extend.texi: Document the new nothrow function attribute.
252
253 2002-05-27 H.J. Lu (hjl@gnu.org)
254
255 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
256 (num_positive): Likewise.
257 (num_div_op): Likewise.
258
259 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
260
261 * c-common.c (c_common_init): Always use intmax_t.
262
263 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
264
265 * c-common.c (c_common_init): Use intmax_t for now.
266
267 2002-05-24 Andrew Haley <aph@redhat.com>
268
269 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
270 if T is a boolean type.
271
272 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
273
274 * basic-block.h (last_basic_block): Defined as synonym for
275 n_basic_blocks.
276 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
277 flow_depth_first_order_compute, flow_preorder_transversal_compute,
278 flow_dfs_compute_reverse_init): Replaced relevant occurences of
279 n_basic_blocks with last_basic_block.
280 * cfgbuild.c (make_edges): Likewise.
281 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
282 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
283 * combine.c (combine_instructions): Likewise.
284 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
285 iterative_dataflow_bitmap): Likewise.
286 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
287 calc_idoms, idoms_to_doms): Likewise.
288 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
289 Likewise.
290 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
291 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
292 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
293 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
294 delete_null_pointer_checks, compute_code_hoist_vbeinout,
295 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
296 compute_store_table, build_store_vectors): Likewise.
297 * haifa-sched.c (sched_init): Likewise.
298 * ifcvt.c (if_convert): Likewise.
299 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
300 pre_edge_lcm, compute_available, compute_nearerout,
301 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
302 Likewise.
303 * predict.c (estimate_probability, process_note_prediction,
304 note_prediction_to_br_prob): Likewise.
305 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
306 * recog.c (split_all_insns, peephole2_optimize): Likewise.
307 * regrename.c (copyprop_hardreg_forward): Likewise.
308 * resource.c (init_resource_info): Likewise.
309 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
310 init_regions, schedule_insns): Likewise.
311 * ssa-ccp.c (ssa_const_prop): Likewise.
312 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
313 * ssa.c (compute_dominance_frontiers,
314 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
315
316 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
317 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
318 sizes consistently.
319
320 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
321
322 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
323 new.
324 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
325 hoist_insn_after, hoist_insn_to_edge): New.
326
327 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
328
329 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
330 (PROP_FINAL): Include.
331 * flow.c (life_analysis, update_life_info,
332 init_propagate_block_info, mark_set_1, mark_used_rgs):
333 Support SCAN_DEAD_STORE.
334
335 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
336
337 * c-common.c (c_common_init): Set CPP arithmetic precision.
338 * cppexp.c (cpp_num_part): Move typedef ...
339 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
340 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
341 (sanity_checks): Update.
342
343 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
344
345 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
346 (mkheaders): New rule.
347 (install-mkheaders): New rule.
348 * configure.in (all_outputs): Add mkheaders.
349 * configure: Regenerate.
350 * mkheaders.in: New file.
351
352 2002-05-26 Jakub Jelinek <jakub@redhat.com>
353
354 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
355
356 2002-05-26 Andreas Jaeger <aj@suse.de>
357
358 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
359
360 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
361
362 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
363 right_shift): Remove.
364 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
365 HIGH_PART): New.
366 (struct op): Use cpp_num.
367 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
368 num_part_mul, num_unary_op, num_binary_op, num_negate,
369 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
370 num_div_op, num_lshift, num_rshift, append_digit): New.
371 (interpret_number, parse_defined, eval_token, reduce): Update
372 for two-integer arithmetic.
373 (binary_handler): New typedef.
374 (optab): Update.
375 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
376 (_cpp_parse_expr, reduce): Update to handle two-integers.
377 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
378
379 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
380
381 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
382 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
383 branch insn into account, do not assume 1.
384 (avr_out_sbxx_branch): New function. Optimize cases of skipping
385 over single word insn. Handle upper half of I/O space too.
386 * config/avr/avr.md (*sbrx_branch): Use it.
387 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
388 (*sbix_branch, *sbix_branch_bit7): Likewise.
389 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
390 Use RTL peepholes to optimize register operand sign tests.
391
392 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
393
394 * config/avr/avr.c (avr_asm_only_p): New variable.
395 (avr_override_options): Set it here if AVR1.
396 (asm_file_start): Test it here, report an error if set.
397
398 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
399
400 * alias.c: Fix formatting.
401 * attribs.c: Likewise.
402 * bb-reorder.c: Likewise.
403 * bitmap.c: Likewise.
404 * bitmap.h: Likewise.
405 * builtins.c: Likewise.
406
407 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
408
409 * reload.c (find_valid_class): Accept new argument DEST,
410 choose class accordingly.
411 (push_reload): Update callers.
412
413 2002-05-26 Andreas Jaeger <aj@suse.de>
414
415 * combine.c (combine_instructions): Do not indent #if for
416 traditional C.
417
418 2002-05-25 Richard Henderson <rth@redhat.com>
419
420 * c-pragma.c (apply_pragma_weak): Convert value identifier to
421 string for decl_attributes.
422 (handle_pragma_weak): Call assemble_alias if we're modifying
423 an existing decl.
424
425 2002-05-25 Richard Henderson <rth@redhat.com>
426
427 PR target/6788
428 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
429 using rtl instead of fprintf.
430 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
431 * config/sparc/sparc-protos.h: Update.
432
433 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
434
435 * Makefile.in (C_COMMON_H): Fix.
436 Update other targets.
437 * c-common.c: Don't include c-lex.h.
438 (builtin_define_with_value): Make static and prototype.
439 (builtin_define_std): Move from c-lex.h.
440 * c-common.h (init_c_lex): Move from c-lex.h.
441 * c-decl.c: Don't include c-lex.h.
442 (make_pointer_declarator): Move from c-parse.in.
443 * c-lex.c: Don't include c-lex.h.
444 * c-lex.h: Remove.
445 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
446 (make_pointer_declarator): Move to c-decl.c.
447 * c-pragma.c: Don't include c-lex.h.
448 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
449 * c-tree.h (make_pointer_declarator): New.
450 doc:
451 * passes.texi, tm.texi: Update.
452 objc:
453 * Make-lang.in: Update and correct.
454 * objc-act.c: Don't include c-lex.h or cpplib.h.
455 treelang:
456 * treetree.c: Don't include c-lex.h.
457 config:
458 * darwin-c.c: Don't include c-lex.h.
459 * c4x/c4x-c.c: Don't include c-lex.h.
460 * c4x/t-c4x: Update.
461 * i370/i370-c.c: Don't include c-lex.h.
462 * i370/t-i370: Update.
463 * i960/i960-c.c: Don't include c-lex.h.
464 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
465 * i960/t-960bare: Update.
466 * i960/t-vxworks: Update.
467 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
468 * rs6000/t-darwin: Update.
469 * rs6000/t-rs6000-c-rule: Update.
470 * v850/v850-c.c: Don't include c-lex.h.
471 * v850/v850.c: Don't include c-lex.h or cpplib.h.
472
473
474 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
475
476 * tree.def: Fix typos.
477 * doc/install.texi: Likewise.
478
479 2002-05-25 Richard Henderson <rth@redhat.com>
480
481 * configure.in (HAVE_AS_TLS): Add ia64 test.
482 * configure: Rebuild.
483 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
484 (override_options): Set it.
485 (TARGET_HAVE_TLS): New.
486 (sdata_symbolic_operand): Look for 's'.
487 (tls_symbolic_operand): New.
488 (ia64_expand_load_address): Abort for tls symbols.
489 (gen_tls_get_addr): New.
490 (gen_thread_pointer): New.
491 (ia64_expand_move): Split out from movdi. Handle tls symbols.
492 (rtx_needs_barrier): Add new unspecs.
493 (ia64_encode_section_info): Handle tls symbols.
494 (ia64_strip_name_encoding): Strip two encoding chars.
495 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
496 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
497 (TARGET_OPTIONS): Add tls-size.
498 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
499 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
500 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
501 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
502 (movsf, movdf): Likewise.
503 (movdi_symbolic): Use match_scratch. Don't split if we won't
504 have a scratch availiable.
505 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
506 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
507 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
508 * config/ia64/ia64-protos.h: Update.
509 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
510 sdata_symbolic_operand.
511 (ASM_OUTPUT_LABELREF): Strip two characters.
512
513 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
514
515 * combine.c (simplify_set): Remove an unnecessary subreg.
516
517 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
518
519 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
520
521 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
522
523 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
524
525 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
526
527 2002-05-25 Roger Sayle <roger@eyesopen.com>
528
529 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
530 (cond (compare x y) 0) into the equivalent (cond x y).
531
532 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
533
534 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
535
536 2002-05-24 Zack Weinberg <zack@codesourcery.com>
537
538 * config.gcc: Remove all stanzas for previously obsoleted
539 systems. Where necessary, add explicit error stanzas to
540 prevent removed systems from being misidentified as something
541 else. Begin a fresh obsoletions list, with the systems that
542 were reprieved last round.
543 * doc/install.texi: Remove all mention of dead targets.
544 * fixinc/mkfixinc.sh: Likewise.
545
546 * config/arm/arm.h: Bit 31 of target_flags is no longer
547 reserved.
548
549 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
550 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
551 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
552 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
553 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
554 config/alpha/osf12.h, config/alpha/osf2or3.h,
555 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
556 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
557 config/clipper/clipper-protos.h, config/clipper/clipper.c,
558 config/clipper/clipper.h, config/clipper/clipper.md,
559 config/clipper/clix.h, config/convex/convex-protos.h,
560 config/convex/convex.c, config/convex/convex.h,
561 config/convex/convex.md, config/convex/fixinc.convex,
562 config/convex/proto.h, config/elxsi/elxsi-protos.h,
563 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
564 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
565 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
566 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
567 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
568 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
569 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
570 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
571 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
572 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
573 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
574 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
575 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
576 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
577 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
578 config/m68k/altos3068.h, config/m68k/apollo68.h,
579 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
580 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
581 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
582 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
583 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
584 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
585 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
586 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
587 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
588 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
589 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
590 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
591 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
592 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
593 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
594 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
595 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
596 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
597 config/mips/dec-osf1.h, config/mips/elflorion.h,
598 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
599 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
600 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
601 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
602 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
603 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
604 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
605 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
606 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
607 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
608 config/ns32k/sequent.h, config/ns32k/tek6000.h,
609 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
610 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
611 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
612 config/sparc/rtems.h, config/we32k/we32k-protos.h,
613 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
614 Delete file.
615
616 2002-05-24 Richard Henderson <rth@redhat.com>
617
618 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
619 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
620 * config/i386/i386.c (tls_model_chars): Add leading space.
621 (tls_symbolic_operand): Don't bias by 1.
622 (legitimize_address): Don't unbias by 1.
623
624 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
625
626 * lcm.c (optimize_mode_switching): Change bb used as indices
627 to bb->index.
628
629 2002-05-24 Richard Henderson <rth@redhat.com>
630
631 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
632 of update_life_info_in_dirty_blocks.
633
634 2002-05-24 Jakub Jelinek <jakub@redhat.com>
635
636 PR other/6782
637 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
638
639 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
640
641 PR preprocessor/6780
642 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
643
644 2002-05-24 Jim Blandy <jimb@redhat.com>
645
646 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
647 entry with a type code of zero, marking the end of the compilation
648 unit's macro info.
649
650 2002-05-24 Richard Henderson <rth@redhat.com>
651
652 * varasm.c (asm_output_bss): Always output one byte.
653 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
654
655 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
656
657 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
658 namespace.
659
660 2002-05-24 Andreas Jaeger <aj@suse.de>
661
662 * ggc-page.c (alloc_page): Cast variables of type size_t to
663 unsigned long, adjust printf format string.
664 (ggc_alloc): Likewise.
665 (ggc_print_statistics): Likewise.
666 (ggc_print_statistics): Correct printf format string for SCALE to
667 use unsigned long.
668
669 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
670
671 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
672
673 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
674 Zack Weinberg <zack@codesourcery.com>
675
676 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
677 quoted strings.
678 * dwarf2out.c (lookup_filename): Properly quote filename in .file
679 directive in assembly file.
680 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
681 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
682 * config/pj/pj.h (ASM_FILE_START): Likewise.
683 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
684 * config/avr/avr.c (asm_file_end): Likewise.
685 * toplev.c (output_quoted_string): Handle possibly signed plain
686 char.
687 * toplev.h (output_clean_symbol_name): Declare
688 * toplev.c (output_clean_symbol_name): Define.
689 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
690 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
691
692 2002-05-24 Alan Modra <amodra@bigpond.net.au>
693
694 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
695
696 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
697
698 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
699 of size of unsigned.
700
701 2002-05-23 Richard Henderson <rth@redhat.com>
702
703 * configure.in (HAVE_AS_TLS): New test.
704 * config.in, configure: Rebuild.
705 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
706 (ix86_tls_dialect_string, ix86_tls_dialect): New.
707 (override_options): Set it.
708 (tls_model_chars, tls_symbolic_operand): New.
709 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
710 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
711 (local_exec_symbolic_operand): New.
712 (get_pic_label_name): Merge into output_set_got.
713 (ix86_asm_file_end): Emit pic_label_name if defined.
714 (legitimate_constant_p, constant_address_p): New.
715 (legitimate_pic_operand_p): New.
716 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
717 (legitimate_address_p): Likewise.
718 (ix86_encode_section_info): Rename from i386_; handle tls decls.
719 (ix86_strip_name_encoding): New.
720 (get_thread_pointer): New.
721 (legitimize_address): Handle tls symbols.
722 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
723 Remove UNSPEC_PLT.
724 (struct machine_function): Add some_ld_name.
725 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
726 (print_operand) [&]: Use it. Handle UNSPEC_TP.
727 (output_addr_const_extra): New.
728 (maybe_get_pool_constant): New.
729 (ix86_split_to_parts): Use it.
730 (ix86_expand_move): Handle tls symbols.
731 (ix86_tls_get_addr): New.
732 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
733 (TARGET_OPTIONS): Add tls-dialect.
734 (CONSTANT_ADDRESS_P): Use new out-of-line function.
735 (LEGITIMATE_CONSTANT_P): Likewise.
736 (LEGITIMATE_PIC_OPERAND_P): Likewise.
737 (TARGET_STRIP_NAME_ENCODING): New.
738 (ASM_OUTPUT_LABELREF): New.
739 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
740 (OUTPUT_ADDR_CONST_EXTRA): New.
741 (PREDICATE_CODES): Update.
742 (ix86_tls_dialect, ix86_tls_dialect_string): New.
743 * config/i386/i386.md: Regroup and renumber unspec constants.
744 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
745 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
746 (tls_global_dynamic, tls_local_dynamic_base): New.
747 (tls_local_dynamic_once): New.
748 * config/i386/i386-protos.h: Update.
749
750 2002-05-23 Richard Henderson <rth@redhat.com>
751
752 * genemit.c (gen_insn): Print file:lineno comment before function.
753 (main): likewise.
754 * gensupport.c (struct queue_elem): Add filename member.
755 (queue_pattern): Initialize it; update all callers.
756 (process_include): Don't free filename.
757 (read_md_rtx): Set read_rtx_filename.
758
759 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
760
761 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
762
763 2002-05-23 Richard Henderson <rth@redhat.com>
764
765 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
766
767 2002-05-23 Richard Henderson <rth@redhat.com>
768
769 * doc/extend.texi (C++98 Thread-Local Edits): Update with
770 commentary from Mark.
771
772 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
773
774 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
775 Use FOR_EACH_BB macros to iterate over basic block chain.
776 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
777 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
778 Likewise.
779 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
780 find_unreachable_blocks, create_edge_list, verify_edge_list,
781 remove_fake_edges, add_noreturn_fake_exit_edges,
782 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
783 Likewise.
784 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
785 find_sub_basic_blocks): Likewise.
786 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
787 Likewise.
788 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
789 Likewise.
790 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
791 Likewise.
792 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
793 commit_edge_insertions, commit_edge_insertions_watch_calls,
794 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
795 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
796 * conflict.c (conflict_graph_compute): Likewise.
797 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
798 df_modified_p, df_refs_unlink, df_dump): Likewise.
799 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
800 * final.c (compute_alignments): Likewise.
801 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
802 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
803 count_or_remove_death_notes): Likewise.
804 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
805 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
806 classic_gcse, compute_transp, cprop, compute_pre_data,
807 compute_transpout, invalidate_nonnull_info,
808 delete_null_pointer_checks_1, delete_null_pointer_checks,
809 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
810 compute_store_table, build_store_vectors, store_motion): Likewise.
811 * global.c (global_conflicts, mark_elimination): Likewise.
812 * graph.c (print_rtl_graph_with_bb): Likewise.
813 * haifa-sched.c (sched_init): Likewise.
814 * ifcvt.c (if_convert): Likewise.
815 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
816 compute_available, compute_nearerout, compute_rev_insert_delete,
817 optimize_mode_switching): Likewise.
818 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
819 * predict.c (estimate_probability, note_prediction_to_br_prob,
820 propagate_freq, counts_to_freqs, expensive_function_p,
821 estimate_bb_frequencies): Likewise.
822 * profile.c (instrument_edges, get_exec_counts,
823 compute_branch_probabilities, compute_checksum, branch_prob,
824 find_spanning_tree): Likewise.
825 * recog.c (split_all_insns, peephole2_optimize): Likewise.
826 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
827 Likewise.
828 * regclass.c (scan_one_insn, regclass): Likewise.
829 * regmove.c (mark_flags_life_zones, regmove_optimize,
830 record_stack_memrefs): Likewise.
831 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
832 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
833 * resource.c (find_basic_block): Likewise.
834 * sched-ebb.c (schedule_ebbs): Likewise.
835 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
836 find_single_block_region, find_rgns, schedule_insns)
837 * sibcall.c (optimize_sibling_and_tail_recursive_call)
838 * ssa-ccp.c (optimize_unexecutable_edges,
839 ssa_ccp_df_delete_unreachable_insns): Likewise.
840 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
841 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
842 rename_block, convert_to_ssa, compute_conservative_reg_partition,
843 compute_coalesced_reg_partition, rename_equivalent_regs,
844 convert_from_ssa): Likewise.
845 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
846 process_for_unwind_directive): Likewise.
847
848 * df.c (FOR_ALL_BBS): Removed.
849 * gcse.c (struct null_pointer_info): Type of current_block field
850 changed.
851 (struct reg_avail_info): Type of last_bb field changed.
852 * config/ia64/ia64.c (block_num): Removed.
853 (need_copy_state): Type changed.
854 (last_block): New.
855
856 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
857
858 * cppinit.c (mark_named_operators): Split out from init_builtins.
859 (cpp_finish_options): Call it from here instead.
860
861 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
862
863 * builtin-attrs.def: Update copyright years.
864 (ATTR_NONNULL): New attribute identifier.
865 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
866 attribute tree lists.
867 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
868 format operand.
869 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
870 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
871 attribute lists. Chain the appropriate nonnull attribute.
872 * c-format.c (check_format_arg): Remove null format string
873 warning.
874 * testsuite/gcc.dg/format/null-1.c: New test.
875
876 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
877
878 * Makefile.in (ADAC): Define.
879 (SYSLIBS): Define.
880 (.SUFFIXES): Move before language makefile fragments.
881 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
882
883 2002-05-23 Mark Mitchell <mark@codesourcery.com>
884
885 * varasm.c (make_decl_rtl): Don't allow weak variables to be
886 placed in common.
887
888 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
889
890 * cfg.c (dump_flow_info): Print results of
891 maybe_hot/probably_never_executed predicates.
892 * toplev.c (open_dump_file): Print function frequency.
893
894 2002-05-23 David S. Miller <davem@redhat.com>
895
896 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
897 regsets.
898
899 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
900
901 * c-common.c (warn_nonnull): Declare.
902 (c_common_attribute_table): Add "nonnull" attribute.
903 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
904 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
905 check_function_arguments_recurse): New functions.
906 * c-common.h (warn_nonnull): Declare extern.
907 (check_function_arguments, check_function_arguments_recurse): New
908 prototypes.
909 * c-decl.c (c_decode_option): Add -Wnonnull option.
910 * c-format.c (set_Wformat): Set warn_nonnull if enabling
911 format checking.
912 (format_check_context): New structure.
913 (check_format_info_recurse): Remove recursion and rename to...
914 (check_format_arg): ...this. Update comment.
915 (check_format_info): Use check_function_arguments_recurse.
916 * c-typeck.c (build_function_call): Call check_function_arguments
917 instead of check_function_format.
918 * doc/extend.texi: Document "nonnull" attribute.
919 * doc/invoke.texi: Docuemnt -Wnonnull option.
920 * testsuite/gcc.dg/nonnull-1.c: New test.
921 * testsuite/gcc.dg/nonnull-2.c: New test.
922
923 2002-05-23 David S. Miller <davem@redhat.com>
924
925 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
926 * cfgcleanup.c (cleanup_cfg): If it is set do not
927 attempt to delete trivially dead insns.
928 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
929 * toplev.c (rest_of_compilation): Document non-trivial aspect
930 the RTL before optimize_save_area_alloca is run.
931
932 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
933
934 * c-lex.c (indent_level): Remove.
935 (cb_file_change, c_lex): Remove indent level handling.
936 * c-lex.h (indent_level): Remove.
937 * input.h (struct file_stack): Remove indent_level.
938 * toplev.c (push_srcloc): Remove indent_level handling.
939
940 2002-05-23 Jakub Jelinek <jakub@redhat.com>
941
942 PR target/6753
943 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
944 of x in constraints for clarity.
945 (sse_mov?fcc split): abort if op2 == op3.
946 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
947 sse_movsfcc_const0_4): Add earlyclobber.
948 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
949 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
950 Use Y instead of x in constraints.
951
952 2002-05-23 Richard Henderson <rth@redhat.com>
953
954 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
955 (C++98 Thread-Local Edits): New subsection.
956
957 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
958 (ix86_arch): Set type to enum processor_type.
959
960 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
961 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
962
963 2002-05-23 Jakub Jelinek <jakub@redhat.com>
964
965 * configure.in: Fix as version test for binutils 2.12.1 releases
966 (without dates).
967 * configure: Rebuilt.
968
969 2002-05-23 Richard Henderson <rth@redhat.com>
970
971 * config/i386/i386.c (get_pic_label_name): New.
972 (load_pic_register): Remove.
973 (output_set_got): New.
974 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
975 * config/i386/i386.md (UNSPEC_SET_GOT): New.
976 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
977 (prologue_set_got, prologue_get_pc): Remove.
978 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
979 (builtin_setjmp_receiver): Use gen_set_got.
980 * config/i386/i386-protos.h: Update.
981
982 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
983
984 * gcse.c (hash_expr): Do not use alias set for hashing.
985
986 2002-05-22 Kevin Buettner <kevinb@redhat.com>
987
988 * dbxout.c (dbxout_class_name_qualifiers): New function.
989 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
990
991 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
992
993 * cpperror.c (_cpp_begin_message): No special casing
994 of CPP_FATAL_LIMIT.
995 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
996 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
997 * cpplib.c (do_include_common): Use DL_ERROR.
998 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
999 (DL_ICE): Renumber.
1000 * fix-header.c (read_scan_file): Update.
1001
1002 2002-05-22 Richard Henderson <rth@redhat.com>
1003
1004 * config/i386/i386.c (ix86_expand_call): New function, extracted
1005 from md call patterns. Add pic_offset_table_rtx to
1006 CALL_INSN_FUNCTION_USAGE when needed.
1007 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1008 (call_value_pop, call_value, untyped_call): Likewise.
1009 (call_exp, call_value_exp): Remove.
1010 * config/i386/i386-protos.h: Update.
1011
1012 2002-05-22 Richard Henderson <rth@redhat.com>
1013
1014 * varasm.c (default_section_type_flags): Check for VAR_DECL
1015 before using DECL_THREAD_LOCAL.
1016
1017 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1018
1019 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1020 (STARTFILE_SPEC): Delete PE crt0.o.
1021 * config/rs6000/aix51.h: Same.
1022 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1023 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1024 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1025 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1026 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1027
1028 2002-05-22 Richard Henderson <rth@redhat.com>
1029
1030 * varasm.c (default_section_type_flags): Handle tls data and
1031 default sections.
1032 (default_unique_section): Handle tls sections.
1033
1034 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1035
1036 * configure.in (CROSS): Define NATIVE_CROSS.
1037 * configure: Regenerate.
1038 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1039 (startfile_prefix_spec): New var.
1040 (static_specs): Add startfile_prefix_spec.
1041 (do_spec_2): Split out from..
1042 (do_spec): ..here.
1043 (main): Process startfile_prefix_spec.
1044 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1045 dynamic linker.
1046 (STARTFILE_PREFIX_SPEC): Define.
1047 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1048 absolute paths.
1049
1050 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1051
1052 * cpperror.c: Fix formatting.
1053 * cppexp.c: Likewise.
1054 * cppfiles.c: Likewise.
1055 * cpphash.c: Likewise.
1056 * cpphash.h: Likewise.
1057 * cppinit.c: Likewise.
1058 * cpplex.c: Likewise.
1059 * cpplib.c: Likewise.
1060 * cppmacro.c: Likewise.
1061 * cppmain.c: Likewise.
1062 * cppspec.c: Likewise.
1063
1064 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1065
1066 * combine.c (force_to_mode): Use gen_int_mode.
1067 Don't clear CONST_INT bits outside of mode.
1068
1069 2002-05-22 Richard Henderson <rth@redhat.com>
1070
1071 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1072 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1073
1074 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1075
1076 PR c/6643
1077 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1078 if DECL_SIZE_UNIT is INTEGER_CST.
1079
1080 2002-05-22 Richard Henderson <rth@redhat.com>
1081
1082 * flow.c (life_analysis): Delete broken reg_label check.
1083
1084 2002-05-22 Richard Henderson <rth@redhat.com>
1085
1086 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1087 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1088
1089 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1090
1091 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1092 (embed-bb.c): New rule.
1093 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1094 * config/sh/embed_bb.c: Delete.
1095
1096 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1097
1098 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1099
1100 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1101
1102 * config/h8300/h8300.md (*andorqi3): New.
1103
1104 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
1105
1106 PR preprocessor/6517
1107 * Makefile.in: Update.
1108 * c-common.c (c_common_post_options): Add preprocessor
1109 errors to the error count.
1110 * c-lang.c (c_post_options): Kill.
1111 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1112 * hooks.h: Add header guards.
1113 * langhooks-def.h: Include hooks.h.
1114 (LANG_HOOKS_POST_OPTIONS): Update.
1115 * langhooks.h (struct lang_hooks): Update post_options.
1116 * toplev.c (parse_options_and_default_flags): Update.
1117 objc:
1118 * objc-lang.c (objc_post_options): Kill.
1119 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1120
1121 2002-05-21 Bruce Korb <bkorb@gnu.org>
1122
1123 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1124 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1125 * fixinc/fixincl.x: regen.
1126
1127 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
1128
1129 * cfgbuild.c: Fix formatting.
1130 * cfg.c: Likewise.
1131 * cfgcleanup.c: Likewise.
1132 * cfglayout.c: Likewise.
1133 * cfgloop.c: Likewise.
1134 * cfgrtl.c: Likewise.
1135
1136 2002-05-21 Richard Henderson <rth@redhat.com>
1137
1138 * c-common.h (enum rid): Add RID_THREAD.
1139 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1140 (grokdeclarator): Grok __thread.
1141 * c-parse.in (reswords): Add __thread.
1142 (rid_to_yy): Add RID_THREAD.
1143
1144 * tree.h (DECL_THREAD_LOCAL): New.
1145 (struct tree_decl): Add thread_local_flag.
1146 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1147 * tree.c (staticp): TLS variables are not static.
1148
1149 * target-def.h (TARGET_HAVE_TLS): New.
1150 * target.h (have_tls): New.
1151 * output.h (SECTION_TLS): New.
1152 * varasm.c (assemble_variable): TLS variables can't be common for now.
1153 (default_section_type_flags): Handle .tdata and .tbss.
1154 (default_elf_asm_named_section): Handle SECTION_TLS.
1155 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1156
1157 * flags.h (flag_tls_default): Declare.
1158 * toplev.c (flag_tls_default): Define.
1159 (display_help): Display help for it.
1160 (decode_f_option): Set it.
1161
1162 * doc/extend.texi (Thread-Local): New node describing language-level
1163 thread-local storage.
1164 * doc/invoke.texi (-ftls-model): Document.
1165
1166 * fixinc/inclhack.def (thread_keyword): New.
1167 * fixinc/fixincl.x: Rebuild.
1168
1169 2002-05-21 Jeffrey A Law <law@redhat.com>
1170
1171 * optabs.c (expand_binop): For double-word integer multiplies,
1172 do not compute intermediate results into something that is
1173 not a register (such as a SUBREG or MEM).
1174
1175 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1176 (ix86_sched_reorder): Make sure to initialize scheduling
1177 data even when there's only one insn in the ready queue.
1178
1179 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1180
1181 * genautomata.c (reserv_sets_hash_value): Fix a typo.
1182
1183 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1184
1185 * genautomata.c (reserv_sets_hash_value): Define hash_value as
1186 set_el_t. Transform the hash value into unsigned.
1187 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1188 (transform_3): Add code to process `(A,B)+(D,E)'.
1189
1190 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
1191
1192 * reload1.c (do_output_reload): Run delete_output_reload
1193 only if optimizing.
1194
1195 2002-05-21 Roger Sayle <roger@eyesopen.com>
1196
1197 PR middle-end/6600
1198 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1199 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
1200 (can_store_by_pieces): ... and here to limit the largest mode used.
1201 Add a comment to document this function.
1202
1203 2002-05-21 Richard Henderson <rth@redhat.com>
1204
1205 * flow.c (life_analysis): Fix test for deleted label.
1206
1207 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
1208
1209 * doc/tm.texi: Fix typo.
1210
1211 2002-05-21 Zack Weinberg <zack@codesourcery.com>
1212
1213 * c-common.c (c_common_init): Set options->unsigned_char from
1214 flag_signed_char.
1215 (cb_register_builtins): Define __STRICT_ANSI__ and
1216 __CHAR_UNSIGNED__ here...
1217 * cppinit.c (init_builtins): Not here.
1218 (cpp_create_reader): unsigned_char option defaults to 0, not
1219 !DEFAULT_SIGNED_CHAR.
1220 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1221 and -funsigned-char.
1222
1223 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1224 * cpphash.c (_cpp_init_hashtable): Don't set it.
1225 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1226 directly. Clarify comment.
1227
1228 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1229
1230 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1231 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
1232 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
1233 BASIC_BLOCK (n_basic_blocks - 1).
1234 * cfganal.c (can_fallthru, flow_call_edges_add,
1235 flow_preorder_transversal_compute): Too.
1236 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1237 find_sub_basic_blocks): Too.
1238 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1239 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1240 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1241 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1242 * combine.c (this_basic_block): Type changed to basic_block.
1243 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1244 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1245 get_last_value, distribute_notes, distribute_links): Too.
1246 * final.c (compute_alignments): Too.
1247 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1248 * function.c (thread_prologue_and_epilogue_insns): Too.
1249 * gcse.c (compute_code_hoist_vbeinout): Too.
1250 * global.c (build_insn_chain): Too.
1251 * ifcvt.c (find_if_block, find_cond_trap): Too.
1252 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1253 * regmove.c (regmove_optimize): Too.
1254 * resource.c (find_basic_block): Too.
1255 * sched-ebb.c (schedule_ebbs): Too.
1256 * ssa-dce.c (find_control_dependence, find_pdom): Too.
1257
1258 2002-05-21 Andreas Jaeger <aj@suse.de>
1259
1260 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1261
1262 2002-05-21 Richard Henderson <rth@redhat.com>
1263
1264 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1265 unspec names, not numbers.
1266
1267 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
1268
1269 * doc/sourcebuild.texi: Mention snapshot-README and
1270 snapshot-index.html as needing updating for new front ends.
1271
1272 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1273
1274 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1275 disabling checking, and avoid multiple evaluation of RTX.
1276
1277 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
1278
1279 * bitmap.c (bitmap_find_bit): Return early if we have the correct
1280 element cached.
1281
1282 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1283
1284 * profile.c (gen_edge_profiler): Set alias set before the memory is
1285 used.
1286
1287 2002-05-20 David S. Miller <davem@redhat.com>
1288
1289 * cselib.c (max_value_regs): New.
1290 (cselib_lookup, cselib_invalidate_regno): Initialize it when
1291 adding new entries to the REG_VALUES table and we are dealing with
1292 a hard register.
1293 (clear_table): Initialize it.
1294 (cselib_invalidate_regno): Use it to determine which hard
1295 registers to scan when mode is not VOIDmode.
1296
1297 2002-05-20 Duraid Madina <duraid@fl.net.au>
1298
1299 * tradcpp.c (fixup_newlines): Use old-style function header.
1300
1301 2002-05-20 Krister Walfridsson <cato@df.lth.se>
1302
1303 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1304
1305 2002-05-20 H.J. Lu (hjl@gnu.org)
1306
1307 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1308
1309 * config/mips/mips.h (DFMODE_NAN): Defined.
1310 (SFMODE_NAN): Likewise.
1311
1312 2002-05-20 Dale Johannesen <dalej@apple.com>
1313
1314 * combine.c (cant_combine_insn_p): Back out my
1315 previous patch.
1316
1317 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1318
1319 * params.c: Fix formatting.
1320 * params.h: Likewise.
1321 * predict.c: Likewise.
1322 * prefix.c: Likewise.
1323 * print-rtl.c: Likewise.
1324 * print-tree.c: Likewise.
1325 * profile.c: Likewise.
1326
1327 2002-05-20 H.J. Lu (hjl@gnu.org)
1328
1329 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1330
1331 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
1332
1333 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1334 switches straight on to the assembler, do not abbreviate them.
1335 * config/arm/elf.h (ASM_SPEC): As above.
1336 * config/arm/semi.h (ASM_SPEC): As above.
1337 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1338 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1339 -mcpu=xscale on to the assembler by default.
1340 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1341
1342 2002-05-20 Richard Henderson <rth@redhat.com>
1343
1344 * cse.c (canon_hash): Reorder do_not_record test. Always
1345 allow pic_offset_table_rtx.
1346
1347 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
1348
1349 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1350 (expand_binop): Ditto (3 times).
1351
1352 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
1353
1354 * Makefile.in (distclean): Remove QMTest stuff.
1355 (QMTEST_PATH): New variable.
1356 (QMTESTFLAGS): Likewise.
1357 (QMTESTRUNFLAGS): Likewise.
1358 (QMTEST): Likewise.
1359 (QMTEST_GPP_TESTS): Likewise.
1360 (QMTEST_DIR): Likewise.
1361 (QMTEST_DIR/context): New target.
1362 (qmtest-g++): Likeise.
1363 (qmtest-gui): Likewise.
1364 (QMTEST_DIR/gpp-expected.qmr): Likewise.
1365
1366 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
1367
1368 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1369 an altivec register if TARGET_ALTIVEC.
1370
1371 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1372 to ALTIVEC_VECTOR_MODE.
1373 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1374 (rs6000_va_arg): Vectors may go in registers if they are not
1375 altivec vectors.
1376
1377 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
1378
1379 * protoize.c: Fix formatting.
1380
1381 2002-05-19 Richard Henderson <rth@redhat.com>
1382
1383 * gensupport.c (init_include_reader): Merge into ...
1384 (process_include): ... here. Simplify composite path creation.
1385 Plug memory leaks. Fix file/line number tracking. Do not
1386 process_define_cond_exec. Return void.
1387 (process_rtx): Don't check process_include return value.
1388
1389 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1390
1391 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1392 fields.
1393 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1394 traversing basic block chain.
1395 (create_basic_block_structure, create_basic_block): Declaration changed.
1396 (link_block, unlink_block): Declare.
1397 * cfg.c (entry_exit_blocks): Initialize new fields.
1398 (link_block, unlink_block): New.
1399 (expunge_block_nocompact): Unlink basic block.
1400 (dump_flow_info): Print prev_bb/next_bb fields.
1401 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1402 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1403 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1404 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1405 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1406 (verify_flow_info): Check that list agrees with numbering.
1407
1408 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
1409
1410 * c-common.c (preprocessing_asm): New macro.
1411 * c-lex.h (builtin_define, builtin_assert): Use pfile.
1412 doc:
1413 * tm.texi: Update.
1414 config/alpha:
1415 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1416 (CPP_SPEC): Simplify.
1417 (TARGET_CPU_CPP_BUILTINS): Update.
1418 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1419 (CPP_SPEC): Simplify.
1420 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1421 (TARGET_OS_CPP_BUILTINS): Update.
1422 * osf.h (CPP_XFLOAT_SPEC): Kill.
1423 (TARGET_OS_CPP_BUILTINS): Update.
1424 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1425 * osf5.h (CPP_XFLOAT_SPEC): Kill.
1426 * vms.h (CPP_SUBTARGET_SPEC): Kill.
1427 (TARGET_OS_CPP_BUILTINS): Update.
1428
1429 2002-05-19 Richard Henderson <rth@redhat.com>
1430
1431 * varasm.c (default_binds_local_p): Fix typo.
1432
1433 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1434
1435 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1436 CONST_INT operand to the correct mode after adding 1 to it.
1437
1438 2002-05-19 Mark Mitchell <mark@codesourcery.com>
1439
1440 * config.gcc (powerpc-wrs-windiss*): New target.
1441
1442 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1443
1444 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1445 (ashrdi3): Use it.
1446
1447 2002-05-18 Mark Mitchell <mark@codesourcery.com>
1448
1449 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1450 alphasort.
1451 * config.in: Regenerated.
1452 * configure: Regenerated.
1453
1454 2002-05-19 Richard Henderson <rth@redhat.com>
1455
1456 * target-def.h (TARGET_BINDS_LOCAL_P): New.
1457 * target.h (struct gcc_target): Move boolean fields to the end.
1458 Add binds_local_p.
1459 * varasm.c (default_binds_local_p): New.
1460 * output.h: Declare it.
1461
1462 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1463 * config/cris/cris.c (cris_encode_section_info): Likewise.
1464 * config/i386/i386.c (i386_encode_section_info): Likewise.
1465 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1466 * config/sh/sh.c (sh_encode_section_info): Likewise.
1467
1468 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1469 (TARGET_BINDS_LOCAL_P): New.
1470
1471 2002-05-19 Richard Henderson <rth@redhat.com>
1472
1473 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1474 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1475 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1476
1477 * toplev.c (display_help): Kill -a -ax help.
1478
1479 * config/1750a/1750a.h, config/alpha/alpha.h,
1480 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1481 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1482 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1483 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1484
1485 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1486 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1487
1488 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1489 (ix86_output_function_block_profiler): Kill.
1490 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1491 (m68hc11_function_block_profiler): Kill.
1492 * config/m68hc11/m68hc11-protos.h: Update.
1493 * config/m88k/m88k.c (output_block_profiler): Kill.
1494 (output_function_block_profiler): Kill.
1495 * config/m88k/m88k-protos.h: Update.
1496
1497 2002-05-19 Richard Henderson <rth@redhat.com>
1498
1499 * system.h (STRIP_NAME_ENCODING): Poison it.
1500 * output.h (STRIP_NAME_ENCODING): Remove.
1501 (default_strip_name_encoding): Declare.
1502 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1503 * target.h (strip_name_encoding): New.
1504 * varasm.c (default_strip_name_encoding): New.
1505
1506 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1507 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1508 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1509 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1510 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1511 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1512 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1513 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1514 config/v850/v850.h: Use the hook, not the macro.
1515
1516 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1517 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1518 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1519 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1520 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1521 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1522 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1523 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1524 config/v850/v850.c, config/v850/v850.h:
1525 Move STRIP_NAME_ENCODING to out-of-line function and add
1526 TARGET_STRIP_NAME_ENCODING.
1527
1528 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1529 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1530 with TARGET_STRIP_NAME_ENCODING referencing existing function;
1531 make function static.
1532
1533 * xcoffout.c: Include target.h
1534 * Makefile.in (xcoffout.o): Update.
1535
1536 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1537 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1538 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1539 reloc argument unused.
1540 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1541
1542 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
1543 STRIP_NAME_ENCODING docs.
1544
1545 2002-05-19 Andreas Jaeger <aj@suse.de>
1546
1547 * gengenrtl.c: Add prototype for excluded_rtx.
1548
1549 * real.h: Add prototype for exact_real_truncate.
1550
1551 2002-05-18 Richard Henderson <rth@redhat.com>
1552
1553 * system.h (ENCODE_SECTION_INFO): Poison it.
1554 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
1555 * target.h (encode_section_info): New.
1556 * varasm.c (make_decl_rtl, output_constant_def): Use it.
1557 * hooks.c (hook_tree_int_void): New.
1558 * hooks.h: Declare it.
1559
1560 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1561 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
1562 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
1563 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
1564 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
1565 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
1566 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1567 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
1568 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1569 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1570 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
1571 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
1572 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
1573 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
1574 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
1575 referencing existing function. Make function static.
1576
1577 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
1578 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
1579 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
1580 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
1581 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
1582 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
1583 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
1584 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
1585 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
1586 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
1587 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
1588 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
1589 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
1590 Move ENCODE_SECTION_INFO to out-of-line function and add
1591 TARGET_ENCODE_SECTION_INFO.
1592
1593 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
1594 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1595
1596 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
1597 from SUBTARGET_*
1598 (switch_to_section): Replace in_rdata case with in_readonly_data.
1599
1600 * config/h8300/h8300.c (h8300_encode_label): Make static.
1601 * config/h8300/h8300-protos.h: Update.
1602
1603 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
1604 from rs6000_encode_section_info; make static.
1605 (rs6000_xcoff_encode_section_info): New.
1606
1607 * config/v850/v850.c (v850_encode_data_area): Make static.
1608 * config/v850/v850-protos.h: Update.
1609
1610 * config/vax/vax.c: Include flags.h.
1611 (vms_select_section): Fix typo.
1612
1613 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
1614 ENCODE_SECTION_INFO docs.
1615
1616 2002-05-18 Richard Henderson <rth@redhat.com>
1617
1618 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
1619 REGISTER_TARGET_PRAGMAS.
1620 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
1621
1622 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
1623
1624 2002-05-18 Richard Henderson <rth@redhat.com>
1625
1626 * system.h (SELECT_RTX_SECTION): Poison.
1627 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
1628 * target.h (select_rtx_section): New.
1629 * varasm.c (output_constant_pool): Use it.
1630 (default_select_rtx_section, default_elf_select_rtx_section): New.
1631 * output.h: Declare them.
1632
1633 * config/darwin.h (SELECT_RTX_SECTION): Move ...
1634 * config/darwin.c (machopic_select_rtx_section): ... here.
1635 * config/darwin-protos.h: Update.
1636
1637 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
1638 * config/nextstep.c (machopic_select_rtx_section): ... here.
1639 (nextstep_select_section): Rename variable to avoid macro clash.
1640 * config/nextstep-protos.h: Update.
1641
1642 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
1643 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
1644 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
1645 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
1646 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
1647 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
1648 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
1649 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
1650 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
1651 (SELECT_RTX_SECTION): Remove.
1652
1653 * config/darwin.h, config/elfos.h, config/nextstep.h,
1654 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
1655 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
1656 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
1657 config/sparc/lynx.h, config/xtensa/xtensa.c
1658 (TARGET_ASM_SELECT_RTX_SECTION): New.
1659
1660 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
1661 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
1662 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
1663 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
1664 (ia64_aix_select_rtx_section): New.
1665 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
1666 redefining.
1667 * config/mips/mips.c (mips_select_rtx_section): Make static.
1668 Support ELF SHF_MERGE features.
1669 * config/mips/mips-protos.h: Update.
1670 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
1671 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
1672 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
1673 make static, fall back to default_elf_select_rtx_section.
1674 * config/rs6000/rs6000-protos.h: Update.
1675 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
1676 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
1677 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
1678 * config/romp/romp.c (romp_select_rtx_section): New.
1679 * config/s390/s390.c (s390_select_rtx_section): New.
1680 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
1681 declarations before target macro definition.
1682 (xtensa_emit_call): Use static buffer.
1683 (xtensa_select_rtx_section): New.
1684 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
1685 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
1686 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
1687
1688 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
1689 SELECT_RTX_SECTION docs.
1690
1691 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1692
1693 * i386.md (movsi/movdi): Fix template.
1694 (sse2 patterns): Set attributes consistently.
1695
1696 * i386.md (pushqi2, ashrqi_*): Fix constraint.
1697
1698 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
1699
1700 * optabs.c (complex_part_zero_p): New.
1701 * (expand_cmplxdiv_straight): Use it.
1702 * (expand_cmplxdiv_wide): Ditto.
1703 * (expand_binop): Ditto.
1704
1705 2002-05-18 Richard Henderson <rth@redhat.com>
1706
1707 * final.c (HAVE_READONLY_DATA_SECTION): New.
1708 (shorten_branches): Use it instead of ifdefs.
1709 * varasm.c (enum in_section): Add in_readonly_data.
1710 (text_section, data_section): Tidy.
1711 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
1712
1713 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
1714 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
1715 (READONLY_DATA_SECTION): Don't undef.
1716
1717 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
1718 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
1719 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
1720
1721 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
1722 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
1723 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
1724 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
1725
1726 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
1727 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
1728 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1729 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
1730 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
1731 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
1732 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
1733 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
1734 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
1735
1736 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
1737 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
1738 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
1739 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
1740 config/pa/pa64-hpux.h, config/sparc/litecoff.h
1741 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1742
1743 * config/elfos.h, config/netware.h, config/svr3.h,
1744 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1745 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1746 config/h8300/h8300.h, config/i386/i386-interix.h,
1747 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1748 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
1749
1750 * config/elfos.h, config/netware.h, config/svr3.h,
1751 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1752 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
1753 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1754 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
1755
1756 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
1757 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
1758 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
1759 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
1760 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
1761 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
1762 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
1763 config/rs6000/sysv4.h, config/v850/v850.h
1764 (EXTRA_SECTIONS): Remove in_const/in_rdata.
1765 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
1766
1767 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
1768 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
1769 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
1770 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
1771 * config/alpha/alpha.c (alpha_start_function): Likewise.
1772 (alpha_write_linkage): Likewise.
1773 * config/m32r/m32r.c (m32r_select_section): Likewise.
1774 * config/m88k/m88k.c (m88k_select_section): Likewise.
1775 * config/mips/mips.c (mips_select_rtx_section): Likewise.
1776 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
1777 (rs6000_elf_select_section): Likewise.
1778 * config/v850/v850.c (v850_select_section): Likewise.
1779
1780 * config/1750a/1750a.h, config/i860/sysv3.h
1781 (READONLY_DATA_SECTION_ASM_OP): New.
1782 READONLY_DATA_SECTION_ASM_OP.
1783 * config/i386/interix.c, config/i386/winnt.c
1784 (i386_pe_unique_section): Always use .rdata prefix.
1785 * config/pa/som.h (readonly_data): Always switch to read-only section.
1786 (READONLY_DATA_SECTION): Predicate on flag_pic.
1787 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
1788 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
1789 (READONLY_DATA_SECTION): Update.
1790
1791 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
1792
1793 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
1794 is used without -Wformat.
1795 * c-common.h (warn_format_zero_length): Declare extern.
1796 * c-decl.c (warn_options): Add "format-zero-length".
1797 * c-format.c (warn_format_zero_length): Declare.
1798 (set_Wformat): Set warn_format_zero_length for -Wformat.
1799 (check_format_info): Only warn about zero-length formats if
1800 warn_format_zero_length is true. Include the format type
1801 name in the warning message.
1802 * doc/invoke.texi: Document -Wformat-zero-length.
1803 * testsuite/gcc.dg/format/zero-length-1.c: New test.
1804
1805 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
1806
1807 * timevar.c: Fix formatting.
1808 * tlink.c: Likewise.
1809 * toplev.c: Likewise.
1810 * tree-dump.c: Likewise.
1811 * tree-inline.c: Likewise.
1812
1813 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
1814
1815 * cppinit.c (cpp_post_options): If preprocessed, turn off
1816 traditional. If traditional, turn off column numbers.
1817 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
1818 * cpptrad.c (handle_newline): Update line_base.
1819 (skip_comment): Handle -Wcomment.
1820
1821 2002-05-17 Zack Weinberg <zack@codesourcery.com>
1822
1823 * cppinit.c (struct builtin): Remove unused fields.
1824 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
1825 (operator_array): New - was second half of builtin_array.
1826 (init_builtins): Simplify loop over builtin_array/operator_array.
1827
1828 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
1829
1830 * defaults.h (UNIQUE_SECTION): Remove.
1831 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
1832
1833 2002-05-17 Richard Henderson <rth@redhat.com>
1834
1835 * expr.c (init_expr_once): Don't use start/end_sequence.
1836 Use rtx_alloc instead of emit_insn.
1837 * toplev.c (lang_dependent_init): Run init_expr_once here ...
1838 (lang_independent_init): ... not here.
1839
1840 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1841
1842 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
1843
1844 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1845
1846 * config/avr/avr.c (avr_regs_to_save): New function. Also check
1847 for fixed registers, possibly used for global register variables.
1848 (initial_elimination_offset, avr_output_function_prologue,
1849 avr_output_function_epilogue): Move common code to avr_regs_to_save.
1850
1851 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
1852
1853 * Makefile.in: Update for cpptrad.c.
1854 * cpphash.h (struct cpp_buffer): New members for buffer
1855 overlays.
1856 (struct cpp_reader): New members for traditional output.
1857 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
1858 * cppinit.c (cpp_create_reader): Set trad_line.
1859 (cpp_destroy): Free trad_out_base if used.
1860 (cpp_read_main_file): Overlay an empty buffer if traditional.
1861 (cpp_finish_options): Don't do builtins.
1862 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
1863 (cpp_handle_option): Handle it.
1864 * cpplex.c (continue_after_nul): New.
1865 (_cpp_lex_direct): Use handle_nul.
1866 * cpplib.h (struct cpp_options): New traditional option.
1867 * cpptrad.c: New file.
1868
1869 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
1870
1871 * c-common.c (c_common_init_options): Use C89 for Objective-C,
1872 and set the options flag.
1873 * cppinit.c (lang_flags): Remove objc.
1874 (lang_defaults): Remove OBJC and OBJCXX.
1875 (set_lang): Update.
1876 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
1877 (cpp_handle_option): Remove -+ and -lang-objc++.
1878 For ObjC, just set a flag.
1879 (print_help): Update.
1880 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
1881
1882 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1883
1884 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
1885 bootstrap with -mips3.
1886
1887 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
1888
1889 * final.c: Fix formatting.
1890 * fix-header.c: Likewise.
1891 * flow.c: Likewise.
1892 * fold-const.c: Likewise.
1893 * function.c: Likewise.
1894
1895 2002-05-17 David S. Miller <davem@redhat.com>
1896
1897 PR c/6689, PR optimization/6615
1898 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
1899 and make it a pointer to rtx. Update comments.
1900 (update_equiv_regs): When scanning for equivalences, record
1901 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
1902 it while making the equiv replacements.
1903
1904 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1905
1906 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
1907
1908 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
1909
1910 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
1911 when encoding visibility into SYMBOL_REF_FLAG.
1912
1913 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
1914
1915 * expr.c (force_operand): Fix reversed move.
1916
1917 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
1918
1919 * doc/install.texi (Testing): Mention two common DejaGnu warnings
1920 that can be ignored.
1921
1922 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1923
1924 * doc/install.texi (Final install): Recommend to install into a
1925 "clean" target directory.
1926
1927 2002-05-17 Richard Henderson <rth@redhat.com>
1928
1929 * config/ia64/ia64.md: Use braced strings instead of quoted strings
1930 for code blocks. Tidy whitespace.
1931
1932 2002-05-17 Richard Henderson <rth@redhat.com>
1933
1934 * hooks.c (hook_tree_bool_false): New.
1935 * hooks.h: Declare it.
1936 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
1937 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
1938 * target.h (select_section, unique_section): New.
1939 (in_small_data_p): New.
1940 * varasm.c (resolve_unique_section): Use hooks instead of macros.
1941 (variable_section, output_constant_def_contents): Likewise.
1942 (default_select_section, default_unique_section): New.
1943 (categorize_decl_for_section, default_elf_select_section): New.
1944 * output.h: Declare them.
1945
1946 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
1947 (TARGET_ASM_SELECT_SECTION): New.
1948 (SELECT_SECTION): Move ...
1949 * config/darwin.c (machopic_select_section): ... here.
1950 * config/darwin-protos.h: Update.
1951
1952 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
1953 (SELECT_SECTION): Move ...
1954 * config/nextstep.c (nextstep_select_section): ... here.
1955 * config/nextstep-protos.h: Update.
1956
1957 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
1958 (TARGET_ASM_SELECT_SECTION): New.
1959 * config/svr3.h (SELECT_SECTION): Remove.
1960
1961 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
1962 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
1963 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
1964 (alpha_encode_section_info): Use it.
1965 * config/alpha/alpha-protos.h: Update.
1966 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
1967 (SELECT_SECTION, UNIQUE_SECTION): Remove.
1968 (TARGET_ASM_SELECT_SECTION): New.
1969 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
1970
1971 * config/arm/pe.h (UNIQUE_SECTION): Remove.
1972 (TARGET_ASM_UNIQUE_SECTION): New.
1973
1974 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
1975 (avr_unique_section): Rename from unique_section; make static.
1976 * config/avr/avr-protos.h: Update.
1977 * config/avr/avr.h (UNIQUE_SECTION): Remove.
1978
1979 * config/c4x/c4x.h (SELECT_SECTION): Remove.
1980
1981 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
1982 (TARGET_ASM_UNIQUE_SECTION): New.
1983 * config/i386/i386-interix.h: Likewise.
1984 * config/i386/win32.h: Likewise.
1985 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
1986 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
1987 * config/i386/sco5.h (SELECT_SECTION): Remove.
1988 (TARGET_ASM_SELECT_SECTION): New.
1989 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
1990
1991 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
1992 instead of SELECT_SECTION.
1993 * config/m68k/dpx2.h: Likewise.
1994 * config/rs6000/lynx.h: Likewise.
1995
1996 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
1997 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
1998 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
1999 (ia64_in_small_data_p): New.
2000 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2001 (ia64_aix_select_section, ia64_aix_unique_section): New.
2002 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2003 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2004
2005 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2006 (TARGET_ASM_SELECT_SECTION): New.
2007 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2008 * config/m32r/m32r-protos.h: Update.
2009
2010 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2011 (SELECT_SECTION): Move ...
2012 * config/m88k/m88k.c (m88k_select_section): ... here.
2013
2014 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2015 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2016 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2017 (mcore_unique_section): Make static.
2018 * config/mcore/mcore-protos.h: Update.
2019
2020 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2021 (TARGET_ASM_UNIQUE_SECTION): New.
2022 * config/mips/elf64.h: Likewise.
2023 * config/mips/iris6gld.h: Likewise.
2024 * config/mips/linux.h: Likewise.
2025 * config/mips/mips-protos.h: Update.
2026 * config/mips/mips.c (mips_select_section): Add align argument.
2027 * config/mips/mips.h (SELECT_SECTION): Remove.
2028 (TARGET_ASM_SELECT_SECTION): New.
2029
2030 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2031 * config/mmix/mmix.c (mmix_select_section): Remove.
2032 (mmix_unique_section): Remove.
2033 * config/mmix/mmix-protos.h: Update.
2034
2035 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2036 (SELECT_SECTION): Move ...
2037 * config/pa/pa.c (pa_select_section): ... here.
2038 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2039
2040 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2041 from rs6000_select_section and make static.
2042 (rs6000_elf_unique_section): Similarly.
2043 (rs6000_xcoff_select_section): From xcoff.h.
2044 (rs6000_xcoff_unique_section): Likewise.
2045 * config/rs6000/rs6000-protos.h: Update.
2046 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2047 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2048 * config/rs6000/xcoff.h: Likewise.
2049
2050 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2051 (SELECT_SECTION): Move ...
2052 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2053
2054 * config/v850/v850.h (SELECT_SECTION): Move ...
2055 * config/v850/v850.c (v850_select_section): ... here.
2056 (TARGET_ASM_SELECT_SECTION): New.
2057
2058 * config/vax/vms.h (SELECT_SECTION): Move ...
2059 * config/vax/vax.c (vms_select_section): ... here.
2060 (TARGET_ASM_SELECT_SECTION): New.
2061
2062 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2063 for the target hooks.
2064
2065 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2066
2067 * config/arm/arm.c (emit_multi_reg_push): Do not set
2068 RTX_FRAME_RELATED_P on the SEQUENCE.
2069
2070 2002-05-16 Richard Henderson <rth@redhat.com>
2071
2072 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2073 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2074
2075 2002-05-16 Richard Henderson <rth@redhat.com>
2076
2077 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2078
2079 * config/ia64/ia64.c (saveable_obstack): Do not declare.
2080
2081 2002-05-16 Richard Henderson <rth@redhat.com>
2082
2083 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2084 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2085 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2086 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2087 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2088 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2089 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2090 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2091 Revert "Basic block renumbering removal", and two followup patches.
2092
2093 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2094
2095 * lcm.c (optimize_mode_switching): Revert previous change.
2096
2097 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2098
2099 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2100 with only extant block numbers.
2101
2102 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2103
2104 * lcm.c (optimize_mode_switching): Fix typo.
2105
2106 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2107
2108 * flow.c (calculate_global_regs_live): Queue blocks in program order.
2109
2110 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2111
2112 * doc/install.texi (Configuration): Document PWDCMD.
2113
2114 2002-05-16 Dale Johannesen <dalej@apple.com>
2115
2116 * combine.c (cant_combine_insn_p): Reenable combinations
2117 involving hard regs unless CLASS_LIKELY_SPILLED_P.
2118
2119 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2120
2121 * c-common.c (cb_register_builtins): Handle more built-ins
2122 here rather than in gcc.c specs.
2123 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2124 (cpp_options): Pass -O flags even when only preprocessing.
2125 * toplev.c (set_fast_math_flags): New prototype.
2126 (fast_math_flags_set_p): New.
2127 (set_no_fast_math_flags): Remove.
2128 (decode_f_option): Update.
2129 * toplev.h (set_fast_math_flags): Update.
2130 (fast_math_flags_set_p): New.
2131 (set_no_fast_math_flags): Remove.
2132 config:
2133 * c4x/c4x.c (c4x_override_options): Update.
2134
2135 2002-05-16 Zack Weinberg <zack@codesourcery.com>
2136
2137 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2138 Default-define here.
2139 (builtin_define_with_value): Can now wrap the expansion in
2140 quotation marks if such is wanted.
2141 (cb_register_builtins): Update calls to builtin_define_with_value.
2142 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2143 here.
2144 (c_common_init): Set options->stdc_0_in_system_headers.
2145 * c-lex.h: Update prototype of builtin_define_with_value.
2146 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2147 and REGISTER_PREFIX.
2148
2149 * cppinit.c (VERS, ULP, C, X): Kill.
2150 (builtin_array): Remove entries for __VERSION__,
2151 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2152 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
2153 a constant.
2154 (init_builtins): Kill off a bunch of now-dead code.
2155 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2156 -fno-leading-underscore.
2157 (cpp_handle_option): Remove code to set user_label_prefix.
2158 (cpp_post_options): Likewise.
2159
2160 * cpplib.h (struct cpp_options): Remove user_label_prefix.
2161 (stdc_0_in_system_headers): New.
2162 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2163 stdc_0_in_system_headers) too to decide the value of __STDC__.
2164
2165 * tradcpp.c (user_label_prefix): Kill.
2166 (main): Remove code handling -f(no-)leading-underscore.
2167 (initialize_builtins): Don't define __REGISTER_PREFIX__
2168 or __USER_LABEL_PREFIX__.
2169 (install_value): Wrap compound statement in dummy loop so the
2170 macro works properly in an if statement.
2171
2172
2173 2002-05-16 Janis Johnson <janis187@us.ibm.com>
2174
2175 * loop.h (struct loop_info): Add member has_prefetch.
2176 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2177 (prescan_loop): Initialize has_prefetch.
2178 (struct prefetch_info): Change prefetch_in_loop and
2179 prefetch_before_loop from bit fields to ints.
2180 (emit_prefetch_instructions): Several small fixes.
2181 (check_dbra_loop): Don't reverse loop that uses prefetch.
2182
2183 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2184
2185 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2186 * configure.in: Likewise.
2187 * fixinc/check.tpl: Likewise.
2188 * fixinc/fixinc.dgux: Likewise.
2189 * fixinc/fixinc.svr4: Likewise.
2190 * fixinc/fixinc.winnt: Likewise.
2191 * fixinc/fixincl.sh: Likewise.
2192 * fixproto: Likewise.
2193 * configure: Regenerate.
2194
2195 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2196
2197 Basic block renumbering removal:
2198 * basic_block.h (struct basic_block_def): Renamed index to sindex,
2199 added prev_bb and next_bb fields.
2200 (n_basic_blocks): Renamed to num_basic_blocks.
2201 (last_basic_block): New, index of last basic block.
2202 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2203 traversing basic block chain.
2204 (BLOCK_NUM): index -> sindex.
2205 (create_basic_block_structure, create_basic_block): Declaration changed.
2206 (debug_num2bb): Declare.
2207 (expunge_block_nocompact): Declaration removed.
2208 (link_block, unlink_block, compact_blocks): Declare.
2209 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2210 * cfg.c (entry_exit_blocks): Initialize new fields.
2211 (clear_edges, alloc_block, expunge_block, cached_make_edge,
2212 redirect_edge_pred, dump_flow_info, dump_edge_info,
2213 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2214 free_aux_for_edges): Modified.
2215 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2216 (expunge_block_nocompact): Removed.
2217 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2218 find_unreachable_blocks, create_edge_list, print_edge_list,
2219 verify_edge_list, flow_edge_list_print, remove_fake_successors,
2220 remove_fake_edges, flow_reverse_top_sort_order_compute,
2221 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2222 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2223 flow_dfs_compute_reverse_execute): Modified.
2224 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2225 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2226 Modified.
2227 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2228 merge_blocks_move_predecessor_nojumps,
2229 merge_blocks_move_successor_nojumps, merge_blocks,
2230 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2231 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2232 * cfglayout.c (skip_insns_after_block, label_for_bb,
2233 record_effective_endpoints, scope_to_insns_finalize,
2234 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2235 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2236 cfg_layout_duplicate_bb): Modified.
2237 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2238 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2239 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2240 flow_loops_find, flow_loop_outside_edge_p): Modified.
2241 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2242 flow_delete_block, compute_bb_for_insn, split_block,
2243 try_redirect_by_replacing_jump, redirect_edge_and_branch,
2244 force_nonfallthru_and_redirect, tidy_fallthru_edge,
2245 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2246 commit_edge_insertions, commit_edge_insertions_watch_calls,
2247 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2248 purge_all_dead_edges): Modified.
2249 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2250 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2251 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2252 Modified.
2253 * conflict.c (conflict_graph_compute): Modified.
2254 * df.c (FOR_ALL_BBS): Removed.
2255 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2256 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2257 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2258 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2259 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2260 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2261 * final.c (compute_alignments, final_scan_insn): Modified.
2262 * flow.c (verify_local_live_at_start, update_life_info,
2263 update_life_info_in_dirty_blocks, free_basic_block_vars,
2264 delete_noop_moves, calculate_global_regs_live,
2265 initialize_uninitialized_subregs, allocate_bb_life_data,
2266 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2267 mark_used_reg, count_or_remove_death_notes): Modified.
2268 * function.c (thread_prologue_and_epilogue_insns): Modified.
2269 * gcse.c (struct null_pointer_info): Change typo of current_block
2270 to basic_block.
2271 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2272 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2273 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2274 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2275 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2276 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2277 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2278 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2279 pre_delete, one_pre_gcse_pass, compute_transpout,
2280 invalidate_nonnull_info, delete_null_pointer_checks_1,
2281 free_code_hoist_mem, compute_code_hoist_vbeinout,
2282 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2283 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2284 compute_store_table, build_store_vectors, insert_insn_start_bb,
2285 insert_store, replace_store_insn, free_store_memory, store_motion):
2286 Modified.
2287 * global.c (global_alloc, global_conflicts, mark_elimination,
2288 build_insn_chain): Modified.
2289 * graph.c (print_rtl_graph_with_bb): Modified.
2290 * haifa-sched.c (sched_init): Modified.
2291 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2292 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2293 if_convert): Modified.
2294 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2295 compute_insert_delete, pre_edge_lcm, compute_available,
2296 compute_farthest, compute_nearerout, compute_rev_insert_delete,
2297 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2298 Modified.
2299 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2300 * loop.c (loop_dump_aux): Modified.
2301 * predict.c (combine_predictions_for_insn, estimate_probability,
2302 last_basic_block_p, process_note_prediction, process_note_predictions,
2303 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2304 expensive_function_p, estimate_bb_frequencies,
2305 compute_function_frequency): Modified.
2306 * print-rtl.c (print_rtx): Modified.
2307 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2308 get_exec_counts, compute_branch_probabilities, compute_checksum,
2309 branch_prob, find_spanning_tree): Modified.
2310 * recog.c (split_all_insns, peephole2_optimize): Modified.
2311 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2312 convert_regs_1, convert_regs_2, convert_regs): Modified.
2313 * regclass.c (scan_one_insn, regclass): Modified.
2314 * regmove.c (mark_flags_life_zones, regmove_optimize,
2315 combine_stack_adjustments): Modified.
2316 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2317 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2318 * reorg.c (dbr_schedule): Modified.
2319 * resource.c (find_basic_block, init_resource_info): Modified.
2320 * sbitmap.c (sbitmap_intersection_of_succs,
2321 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2322 sbitmap_union_of_preds): Modified.
2323 * sched-deps.c (init_dependency_caches): Modified.
2324 * sched-ebb.c (schedule_ebbs): Modified.
2325 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2326 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2327 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2328 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2329 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2330 ssa_const_prop): Modified.
2331 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2332 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2333 * ssa.c (remove_phi_alternative, find_evaluations,
2334 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2335 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2336 make_regs_equivalent_over_bad_edges,
2337 make_equivalent_phi_alternatives_equival,
2338 compute_conservative_reg_partition,
2339 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2340 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2341 Modified.
2342
2343 2002-05-16 Mark Mitchell <mark@codesourcery.com>
2344
2345 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2346
2347 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2348
2349 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2350 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2351 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2352 calling CONSTANT_POOL_ADDRESS_P.
2353 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2354 to decide whether to define __arm__ or __thumb.
2355 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2356 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2357
2358 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2359
2360 * config/arc/arc.h (CPP_PREDEFINES): Remove.
2361 (CPP_SPEC): Update.
2362 (TARGET_CPU_CPP_BUILTINS): New.
2363
2364 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2365
2366 * cpphash.h (cpp_macro): Move here, and make expansion a union.
2367 * cppmacro.c (cpp_macro): Remove.
2368 (enter_macro_context, replace_args, warn_of_redefinition,
2369 _cpp_create_definition, cpp_macro_definition): Update.
2370
2371 2002-05-16 Jason Merrill <jason@redhat.com>
2372
2373 * config/mips/mips.c (mips_output_external): Don't do sdata
2374 optimization for a variable with DECL_COMDAT set.
2375
2376 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2377
2378 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2379 Cleanups for accepting modifiers on pointers.
2380 Fix predicate typos.
2381 Allow long pointers as well as int pointers.
2382
2383 2002-05-15 Richard Henderson <rth@redhat.com>
2384
2385 * varasm.c (merge_weak): Remove special case for extern and common.
2386
2387 2002-05-15 Matt Hiller <hiller@redhat.com>
2388
2389 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2390 XFAILing.
2391 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2392 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2393 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2394 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2395 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2396 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2397
2398 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2399
2400 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2401
2402 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2403
2404 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2405 ("altivec_mfvscr"): Read from VSCR.
2406
2407 Add vscr sets for the following insns: altivec_vctuxs,
2408 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2409 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2410 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2411 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2412 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2413 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2414 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2415 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2416 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2417 altivec_vsum2sws, altivec_vsumsws.
2418
2419 * config/rs6000/rs6000.h: Add VSCR fixed register.
2420 (CALL_REALLY_USED_REGISTERS): Add vscr.
2421 (CALL_USED_REGISTERS): Same.
2422 (FIXED_REGISTERS): Same.
2423 (REG_ALLOC_ORDER): Same.
2424 (reg_class): Add VSCR_REGS.
2425 (REG_CLASS_NAMES): Same.
2426 (REG_CLASS_CONTENTS): Same.
2427 (VSCR_REGNO): New.
2428 (REGISTER_NAMES): Add vscr.
2429 (DEBUG_REGISTER_NAMES): Same.
2430 (ADDITIONAL_REGISTER_NAMES): Same.
2431 (FIRST_PSEUDO_REGISTER): Increment.
2432 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2433
2434 2002-05-15 Jakub Jelinek <jakub@redhat.com>
2435
2436 * fold-const.c (fold): Fix a typo.
2437
2438 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
2439
2440 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2441 comparison against the highest or lowest integer value before
2442 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2443 transformation and that of an unsigned comparison against 0
2444 right after.
2445
2446 2002-05-15 Richard Henderson <rth@redhat.com>
2447
2448 * varasm.c (merge_weak): Error for any weakening after definition.
2449 Adjust weakening after use warning to catch more cases.
2450 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2451 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2452
2453 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2454
2455 * invoke.texi (-malign-double): Re-add lost warning.
2456
2457 * i386-protos.h (x86_output_mi_thunk): Declare.
2458 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2459 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2460
2461 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2462 when flag_asynchronous_unwind_tables is set.
2463
2464 * flags.h (flag_reorder_functions): Declare.
2465 * function.c (prepare_function_start): Initialize frequnecy.
2466 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2467 * Makefile.in (predict.o): Add dependency on target.h and params.h
2468 * defaults.h (HOT_TEXT_SECTION_NAME,
2469 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2470 * predict.c (choose_function_section): New function.
2471 (estimate_bb_frequencies): Use it.
2472 * toplev.c (flag_reorder_functions): New global variable.
2473 (lang_independent_options): New.
2474 (parse_options_and_default_flags): Set.
2475 * varasm.c (assemble_start_function): Bypass functdion alignment
2476 for never executed functions.
2477 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2478 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2479 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2480 Document.
2481
2482 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
2483
2484 * predict.c: Inlude profile.h
2485 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2486 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2487 Use the information about maximal counter in the program.
2488
2489 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
2490
2491 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2492 probably_never_executed_bb_p): New functions.
2493 * cfgcleanup.c (outgoing_edges_match): Use them.
2494 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2495 (maybe_hot_bb_p, probably_cold_bb_p,
2496 probably_never_executed_bb_p): New functions.
2497
2498 * function.h (function): Add new field function_frequency.
2499 * predict.c (compute_function_frequency): New function.
2500 (estimate_probability): Call it.
2501
2502 2002-03-09 Jakub Jelinek <jakub@redhat.com>
2503
2504 PR optimization/5172, optimization/5200
2505 * gcse.c (gcse_main): Disable store_motion.
2506
2507 2002-05-14 Zack Weinberg <zack@codesourcery.com>
2508
2509 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2510 (c_common_nodes_and_builtins): Use it.
2511 (builtin_define_with_value): New function.
2512 (cb_register_builtins): Define __SIZE_TYPE__,
2513 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2514 using builtin_define_with_value. Use consistent notation when
2515 defining __GXX_WEAK__.
2516 (WCHAR_TYPE_SIZE): Don't redefine.
2517 (combine_strings): Don't use WCHAR_TYPE_SIZE.
2518
2519 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2520 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2521 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2522 * tradcpp.c (initialize_builtins): Likewise.
2523 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2524
2525 * c-lex.h (builtin_define_with_value): Prototype.
2526 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2527 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2528 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2529
2530 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2531 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2532 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2533 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2534 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2535 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2536 config/sparc/sol2-bi.h, config/sparc/sparc.h:
2537 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
2538 to __SIZE_TYPE__ etc from all spec strings. When this makes
2539 extra specs empty, delete them.
2540
2541 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
2542
2543 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
2544 for PA8000 or generating dwarf2 call frame information.
2545 (output_call): Remove DO_FRAME_NOTES check from return pointer
2546 optimization.
2547 (following_call): Return 0 when scheduling for PA8000 or generating
2548 dwarf2 call frame information. Revise comment.
2549
2550 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2551
2552 config/alpha:
2553 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
2554 and __IEEE_FP_INEXACT as appropriate.
2555 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
2556 (CPP_SPEC): Remove ieee defines.
2557 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
2558
2559 2002-05-14 Richard Henderson <rth@redhat.com>
2560
2561 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
2562 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
2563
2564 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2565
2566 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
2567 (CPP_SPEC): Update.
2568 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
2569 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
2570 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
2571 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
2572 (EXTRA_SPECS): Update.
2573 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2574 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
2575 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
2576 define TARGET_OS_CPP_BUILTINS if necessary.
2577
2578 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2579
2580 * gcc.c (cpp_options): Must pass -m* and -f* options
2581 to the front end even when only preprocessing.
2582 (cc1_options): Remove redundant -lang-c.
2583 * tradcpp.c (main): Ignore -m options.
2584 objc:
2585 * lang-specs.h: Similarly.
2586
2587 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
2588
2589 * genautomata.c (transform_3): Add code for transformation
2590 `(A,B,...)+C -> A+C,B,...'.
2591
2592 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
2593
2594 * final.c (end_final): Do not output profile_arcs constructor, when
2595 no functions are instrumented.
2596
2597 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
2598
2599 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
2600
2601 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2602
2603 * doc/install.texi: Remove special markup originally required for
2604 HTML generation with texi2html.
2605
2606 2002-05-14 Andreas Schwab <schwab@suse.de>
2607
2608 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
2609 SELECT_SECTION.
2610 (UNIQUE_SECTION): Define to get small data correctly.
2611
2612 * varasm.c (resolve_unique_section): Add third parameter
2613 flag_function_or_data_sections and use it instead of
2614 flag_function_sections.
2615 (assemble_start_function): Pass flag_function_sections.
2616 (asm_emit_uninitialised): Pass flag_data_sections.
2617 (assemble_variable): Likewise.
2618
2619 2002-05-14 Richard Henderson <rth@redhat.com>
2620
2621 * config/i386/i386.md: Use define_constants for unspec numbers.
2622 * config/i386/i386.c: Likewise.
2623
2624 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2625
2626 * doc/contrib.texi: Update my entry.
2627
2628 2002-05-13 Mark Mitchell <mark@codesourcery.com>
2629
2630 * fixinc/inclhack.def (winidss_valist): Limit applicability.
2631 * fixinc/fixincl.x: Regenerated.
2632 * fixinc/tests/base/math.h: Update.
2633 * fixinc/tests/base/testing.h: Likewise.
2634
2635 2002-05-13 Zack Weinberg <zack@codesourcery.com>
2636
2637 * genattr.c (gen_attr): Don't emit a comma after the last
2638 enumerator.
2639
2640 2002-05-13 Richard Henderson <rth@redhat.com>
2641
2642 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
2643 by non-local gotos.
2644 * recog.c (peephole2_optimize): Likewise.
2645
2646 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
2647
2648 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
2649 input to O_BINARY.
2650
2651 2002-05-13 Jeffrey A Law (law@redhat.com)
2652
2653 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
2654 Update prototype and callers.
2655 (propagate_one_insn): Stack pointer adjustments kill MEMs on
2656 the mem_set_list which reference the stack pointer, as do
2657 calls to constant functions as they may clobber outgoing
2658 argument space.
2659
2660 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
2661
2662 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2663 (ia32_multipass_dfa_lookahead): New function.
2664
2665 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2666
2667 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
2668 (translate_options): Remove 'V'.
2669 (process_command): Similarly.
2670 doc:
2671 * invoke.texi: Remove documentation of 'V'.
2672
2673 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2674
2675 * config/s390/linux.h: Revert 2002-04-22 changes.
2676
2677 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
2678
2679 * config/fr30/fr30.md: Only allow splits of immediate loads
2680 if the destination is a register.
2681
2682 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
2683
2684 * Makefile.in (c-common.o, cppinit.o): Update.
2685 * c-common.c: Include except.h.
2686 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
2687 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
2688 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
2689 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
2690 CPP_PREDEFINES): Handle here.
2691 config:
2692 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
2693 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
2694 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
2695 TARGET_OS_CPP_BUILTINS.
2696 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
2697 (CPP_SPEC, EXTRA_SPECS): Update.
2698 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
2699 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
2700 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
2701 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
2702 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
2703 doc:
2704 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
2705 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
2706
2707 2002-05-12 Zack Weinberg <zack@codesourcery.com>
2708
2709 * emit-rtl.c (global_rtl): Update comment.
2710 (const_double_htab, const_double_htab_hash,
2711 const_double_htab_hash, lookup_const_double): New.
2712 (const_int_htab_hash, const_int_htab_eq): Remove const
2713 qualifiers, which cause tons of warnings with RTL checking on.
2714 (gen_rtx_CONST_DOUBLE): Deleted.
2715 (const_double_from_real_value): New function - bears some
2716 resemblance to the former immed_real_const_1.
2717 (immed_double_const): Moved here from varasm.c and
2718 simplified.
2719 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
2720 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
2721 (gen_rtx): Use immed_double_const.
2722 (init_emit_once): Initialize the const_double_htab. Use
2723 REAL_VALUE_FROM_INT where possible. Can now use
2724 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
2725 * varasm.c (struct varasm_status): Remove x_const_double_chain.
2726 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
2727 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
2728 (init_varasm_status, mark_varasm_status): Don't touch
2729 x_const_double_chain.
2730
2731 * output.h: Delete prototype for clear_const_double_mem.
2732 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
2733 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
2734 const_double_from_real_value, not immed_real_const_1, and use
2735 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
2736 CONST_DOUBLE_ATOF.
2737 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
2738 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
2739 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
2740 (gen_rtx_REG): Second arg is unsigned.
2741
2742 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
2743 (excluded_rtx): New, return true for CONST_DOUBLE.
2744 (genmacro): Write nothing for excluded codes.
2745 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
2746 * expr.c (expand_expr): Likewise.
2747 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
2748 CONST_DOUBLE_CHAIN.
2749 * toplev.c (rest_of_compilation): Don't call
2750 clear_const_double_mem.
2751
2752 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
2753 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
2754 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
2755 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
2756 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
2757 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
2758 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
2759 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
2760
2761 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2762
2763 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
2764
2765 2002-05-12 Tom Tromey <tromey@redhat.com>
2766
2767 * tree.h (copy_node): Don't mention TREE_PERMANENT.
2768
2769 2002-05-12 Zack Weinberg <zack@codesourcery.com>
2770
2771 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
2772 (scan_comma_elt): New function. Accepts whitespace in comma lists.
2773 * gensupport.h: Prototype new routines.
2774 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
2775 use of printf.
2776 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
2777 (next_comma_elt): Use scan_comma_elt.
2778
2779 * config/i386/i386.md: Use new attribute notation to break up
2780 long lines in define_attr forms.
2781
2782 2002-05-12 Richard Henderson <rth@redhat.com>
2783
2784 * expr.c (compress_float_constant): New.
2785 (emit_move_insn): Use it.
2786 (float_extend_from_mem): New.
2787 (init_expr_once): Initialize it.
2788 * real.c (exact_real_truncate): New.
2789
2790 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
2791 dropped into memory; penalize for size.
2792 (RTX_COSTS): FLOAT_EXTEND is free.
2793 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
2794 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
2795
2796 2002-05-12 Richard Henderson <rth@redhat.com>
2797
2798 * profile.h (profile_info): Add missing extern to declaration.
2799 * profile.c (profile_info): Define it.
2800
2801 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2802
2803 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
2804 used for DImode and TImode.
2805
2806 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
2807
2808 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
2809 fake a newline.
2810
2811 2002-05-11 Zack Weinberg <zack@codesourcery.com>
2812
2813 * config/rs6000/rs6000.c (rs6000_default_long_calls,
2814 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
2815 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
2816 (rs6000_override_options): Handle -m(no-)longcall.
2817 (init_cumulative_args, output_mi_thunk): Check for both
2818 longcall and shortcall attributes on the function.
2819 (rs6000_attribute_table): Add "shortcall".
2820 (rs6000_handle_longcall_attribute): Update comment.
2821 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
2822 altivec_expand_ternop_builtin): Add default clauses to switches
2823 to silence warnings.
2824
2825 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
2826 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
2827 (TARGET_OPTIONS): Add longcall and no-longcall.
2828
2829 * config/rs6000/rs6000.md (call_nonlocal_sysv,
2830 call_value_nonlocal_sysv): Split by alternatives. One pair
2831 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
2832 the call cookie. The other pair accepts only LR/CTR and has
2833 no restriction.
2834
2835 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
2836 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
2837 tmake_file.
2838 * config/rs6000/rs6000-c.c: New file.
2839 * config/rs6000/t-rs6000-c-rule: New file.
2840 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
2841 Prototype rs6000_pragma_longcall.
2842
2843 * doc/extend.texi: Document shortcall attribute.
2844 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
2845
2846 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2847
2848 * reorg.c (dbr_schedule): Remove unnecessary test.
2849
2850 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
2851
2852 * i386.md (testsi to testqi spliters): New.
2853
2854 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
2855
2856 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
2857
2858 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
2859
2860 * basic-block.h: New flag EDGE_CAN_FALLTHRU
2861 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
2862 that can be made fallthru.
2863
2864 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
2865
2866 * cfglayout.c (cleanup_unconditional_jumps): New static function.
2867 (cfg_layout_initialize): Use it.
2868
2869 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
2870
2871 * config/avr/avr.c (avr_mcu_types): Update supported devices.
2872 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2873 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2874
2875 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2876
2877 * dbxout.c: Fix formatting.
2878 * dependence.c: Likewise.
2879 * df.c: Likewise.
2880 * diagnostic.c: Likewise.
2881 * doloop.c: Likewise.
2882 * dominance.c: Likewise.
2883 * doschk.c: Likewise.
2884 * dwarf2asm.c: Likewise.
2885 * dwarf2out.c: Likewise.
2886 * dwarfout.c: Likewise.
2887
2888 2002-05-10 Richard Henderson <rth@redhat.com>
2889
2890 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
2891 Convert integers constants as needed. Replace "nwords" field with
2892 "sizeof_bb".
2893 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
2894 * function.h: Fix typo in comment.
2895 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
2896
2897 2002-05-10 Roger Sayle <roger@eyesopen.com>
2898
2899 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
2900 into the equivalent (signed char)c > 0.
2901
2902 2002-05-10 Janis Johnson <janis187@us.ibm.com>
2903
2904 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
2905 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
2906 (struct prefetch_info): Fix spelling of member bytes_accessed.
2907 (emit_prefetch_instructions): Make dump messages more regular;
2908 restructure code to add more dump messages; use new macros for
2909 heuristics. (There are no code generation changes in any of this).
2910
2911 2002-05-10 David S. Miller <davem@redhat.com>
2912
2913 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
2914 (struct rtx_def): Update unchanging flag comment.
2915 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
2916 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
2917 to be handled to INSN too.
2918 (dbr_schedule): Likewise.
2919 * resource.c (next_insn_no_annul): Likewise.
2920
2921 * cse.c (rtx_cost): Remove multiplication by power of 2 special
2922 casing.
2923
2924 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2925
2926 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
2927 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
2928 (possibly) work around broken /bin/sh.
2929
2930 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2931
2932 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
2933 . as N64/N32 libgcc_s.so subdirs.
2934
2935 2002-05-10 David S. Miller <davem@redhat.com>
2936
2937 * config/sparc/sparc.md: Use define_constants for unspec numbers.
2938
2939 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
2940 more accurately.
2941 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
2942 comment.
2943 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
2944 * doc/rtl.texi: Document these macros more accurately.
2945 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
2946 JUMP_INSNs and CALL_INSNs.
2947 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
2948 or INSN_FROM_TARGET_P if the code is appropriate.
2949
2950 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
2951
2952 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
2953 before using SYMBOL_REF_FLAG (addr).
2954
2955 * config/avr/avr-protos.h (avr_io_address_p): Declare.
2956 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
2957 Make non-static. Update all callers.
2958 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
2959 New insns to clear/set/test a single bit in I/O address space.
2960
2961 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2962
2963 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
2964
2965 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
2966
2967 * Makefile.in: Update.
2968 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
2969 builtin_define_std): New.
2970 (c_common_init): Register CPP builtins callback.
2971 * c-common.h (flag_iso, flag_undef): New.
2972 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
2973 * c-lex.c: Don't include target.h.
2974 (cb_register_builtins): Move to c-common.c.
2975 (init_c_lex): Don't register hook here.
2976 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
2977 (cpp_define, cpp_assert): Remove.
2978 * gcc.c (cc1_options): Pass -undef to front end.
2979 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
2980 (TARGET_INITIALIZER): Update.
2981 * target.h (struct cpp_reader): Don't predeclare.
2982 (struct gcc_target): Remove cpp builtin hook.
2983 * tree.c (default_register_cpp_builtins): Remove.
2984 doc:
2985 * tm.texi: Update.
2986
2987 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
2988
2989 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
2990
2991 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2992
2993 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
2994 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
2995
2996 2002-05-09 Jakub Jelinek <jakub@redhat.com>
2997
2998 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
2999 * config/sparc/libgcc-sparc-glibc.ver: New file.
3000 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3001 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3002
3003 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3004
3005 PR target/6429
3006 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3007 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3008 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3009 base multilibs.
3010 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3011 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3012 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3013 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3014
3015 2002-05-09 Richard Henderson <rth@redhat.com>
3016
3017 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3018 * config/ia64/ia64.c: Likewise.
3019
3020 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3021
3022 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3023 (save_restore_insns): Likewise.
3024 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3025 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3026
3027 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
3028
3029 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3030 * i386.md: Move scheduling information into new files.
3031
3032 * i386.md (type attribute): Add "rotate" for rotate insns.
3033 (rotate insns): Set type to "rotate".
3034 (various attributes and function units): Treat rotate like shift.
3035 (pent_pair attribute): Only rotates by one bit position are
3036 pairable.
3037 (sbb insns): Explicitly set pent_pair attribute on a couple
3038 that were missing it.
3039
3040 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3041
3042 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3043 make sure that buffer starts on odd word address.
3044 (sh_va_arg): Skip odd fp registers when reading a double precision
3045 value.
3046
3047 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3048
3049 * tree.h (preserve_data, object_permanent_p, type_precision):
3050 Remove.
3051
3052 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3053
3054 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3055 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3056 doc:
3057 * cpp.texi: Update for removal of obsolete features.
3058
3059 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3060 Jeffrey A Law (law@redhat.com)
3061
3062 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3063 the DFA interface for Pentium processors.
3064 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3065 (attr_pent_pair, ix86_pent_find_pair): Remove.
3066 (ix86_sched_reorder_pentium): Remove.
3067 (ix86_sched_reorder): Remove reordering for Pentium.
3068 * i386.md (Pentium scheduling): Rewrite using DFA description.
3069
3070 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3071
3072 * cfganal.c (can_fallthru): Fix fast path.
3073 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3074 with edges to the next block.
3075
3076 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3077 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3078
3079 * final.c (end_final): Use C trees to output data structures for profiling.
3080
3081 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3082 (profile.o): New dependency profile.h
3083 (final.o): New dependency profile.h
3084 * profile.h: New file. New global structure profile_info.
3085 * final.h (count_edges_instrumented_now): Declare.
3086 (current_function_cfg_checksum): Declare.
3087 (function_list): New structure.
3088 (functions_head, functions_tail): New static variables.
3089 (end_final): Emits more data, removed some -ax stuff.
3090 (final): Stores function names and chcksums.
3091 * gcov-io.h (__write_gcov_string): New function.
3092 (__read_gcov_string): New function.
3093 * gcov.c (read_profile): New function.
3094 (create_program_flow_graph): Uses read_profile instead of reading
3095 da_file.
3096 (read_files): Removed da_file checking, it's done by read_profile now.
3097 * libgcc2.c (bb_function_info): New structure.
3098 (bb): New field in structure, removed some -ax stuff.
3099 (__bb_exit_func): Changed structure of da_file.
3100 * profile.c (count_edges_instrumented_now): New global variable.
3101 (current_function_cfg_checksum): New global variable.
3102 (max_counter_in_program): New global variable.
3103 (get_exec_counts): New function.
3104 (compute_checksum): New function.
3105 (instrument_edges): Sets count_edges_instrumented_now.
3106 (compute_branch_probabilities): Uses get_exec_counts instead of
3107 reading da_file.
3108 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3109 (init_branch_prob): Removed da_file checking, done in get_exec_counts
3110 now.
3111 (end_branch_prob): Removed da_file checking, done in get_exec_counts
3112 now.
3113 * gcov.texi: Updated information about gcov file format.
3114
3115 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3116
3117 * sbitmap.c: Fix formatting.
3118 * scan.c: Likewise.
3119 * scan-decls.c: Likewise.
3120 * sched-deps.c: Likewise.
3121 * sched-ebb.c: Likewise.
3122 * sched-rgn.c: Likewise.
3123 * sched-vis.c: Likewise.
3124 * sdbout.c: Likewise.
3125 * sibcall.c: Likewise.
3126 * simplify-rtx.c: Likewise.
3127 * ssa.c: Likewise.
3128 * ssa-ccp.c: Likewise.
3129 * ssa-dce.c: Likewise.
3130 * stmt.c: Likewise.
3131 * stor-layout.c: Likewise.
3132 * stringpool.c: Likewise.
3133
3134 2002-05-09 David S. Miller <davem@redhat.com>
3135
3136 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3137
3138 2002-05-07 David S. Miller <davem@redhat.com>
3139
3140 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3141 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3142 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3143 library implementation clobbers the output before the inputs
3144 are fully consumed, use stack temporary for the output.
3145
3146 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
3147
3148 * config/netbsd.h (CPP_SPEC): Remove.
3149 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3150 * config/i386/netbsd.h (CPP_SPEC): Define.
3151 * config/ns32k/netbsd.h (CPP_SPEC): Define.
3152 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3153 * config/sparc/netbsd.h (CPP_SPEC): Define.
3154 * config/vax/netbsd.h (CPP_SPEC): Define.
3155
3156 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3157
3158 * read-rtl.c: Fix formatting.
3159 * real.c: Likewise.
3160 * recog.c: Likewise.
3161 * regclass.c: Likewise.
3162 * regmove.c: Likewise.
3163 * reg-stack.c: Likewise.
3164 * reload1.c: Likewise.
3165 * reload.c: Likewise.
3166 * resource.c: Likewise.
3167 * rtlanal.c: Likewise.
3168 * rtl.c: Likewise.
3169 * rtl-error.c: Likewise.
3170
3171 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3172
3173 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3174 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3175
3176 2002-05-08 Bernd Schmidt <bernds@redhat.com>
3177
3178 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3179 use __SSE2__ macro instead.
3180 * config/i386/xmmintrin.h: Likewise.
3181
3182 2002-05-08 Janis Johnson <janis187@us.ibm.com>
3183
3184 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3185 and use it in all invocations of these macros. Clean up comments.
3186 * rtl.c (rtl_check_failed_flag): Add an argument for the name
3187 of the flag access macro whose check failed.
3188 * doc/rtl.texi (Flags): Document additional flag uses.
3189
3190 2002-05-08 Robert Spier <rspier@pobox.com>
3191 Neil Booth <neil@daikokuya.demon.co.uk>
3192
3193 PR preprocessor/6521
3194 * cppfiles.c (handle_missing_header): Don't do anything
3195 different for <> includes.
3196 doc:
3197 * cppopts.texi: Update documentation for -MG.
3198
3199 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
3200
3201 * cpplex.c (cpp_interpret_charconst): Truncate as well as
3202 sign-extend.
3203 doc:
3204 * cpp.texi: Clarify multichar charconst valuation.
3205
3206 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3207
3208 * doc/invoke.texi: Document -mwindiss option.
3209
3210 2002-05-08 Jason Merrill <jason@redhat.com>
3211
3212 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3213
3214 * dwarf2out.c (gen_type_die): Abort on broken recursion.
3215
3216 PR c++/6381
3217 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3218 REAL_CST.
3219
3220 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
3221
3222 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3223 little-endian multilibs to override arm/thumb multilibs.
3224 Do not build hardware floating point multilibs, nor apcs-26
3225 multilibs for the Thumb.
3226
3227 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3228
3229 PR c/6569.
3230 * varasm.c (mark_weak): New function.
3231 (merge_weak): Use it. Do not call declare_weak.
3232 (declare_weak): Use merge_weak.
3233
3234 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3235
3236 * cse.c (dead_libcall_p): Update counts.
3237 (delete_trivially_dead_insns): Update call of dead_libcall_p.
3238
3239 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3240
3241 * cfglayout.c (function_tail_eff_head): Rename to ...
3242 (function_footer): ... this one.
3243 (unlink_insn_chain): New functions.
3244 (label_for_bb): Only call block_label and emit debug message.
3245 (record_effective_endpoints): Actually unlink the headers and footers.
3246 (fixup_reorder_cahin): Re-insert the unlinked sequences.
3247 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3248 * cfglayout.h (struct reorder_block_def): New fields footer/header;
3249 remove eff_head/eff_end.
3250 * rtl.h (set_first_insn): Declare.
3251 * emit-rtl.c (set_first_insn): New function.
3252
3253 * cfglayout.c (fixup_reorder_chain): Dump duplicated
3254 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3255 cfg_layout_duplicate_bb): New global function.
3256 (duplicate_insn_chain): New static function.
3257 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3258 cfg_layout_duplicate_bb): Declare.
3259 (struct reorder_block_def): Add "original" field.
3260 * emit-rtl.c (emit_copy_of_insn_after): New function.
3261 * rtl.h (emit_copy_of_insn_after): Declare.
3262
3263 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3264 (fixup_reorder_chain): properly handle edges to exit block.
3265
3266 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3267 Jan Hubicka <jh@suse.cz>
3268
3269 * basic-block.h (note_prediction_to_br_prob): declare.
3270 * c-semantics.c: Inlucde predit.h
3271 (expand_stmt): predict GOTO_STMT as not taken.
3272 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3273 (cleanup_cfg): Do not free tail_recursion_list.
3274 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3275 (flow_delete_block): Kill predictions past end of basic block.
3276 * output.h (delete_unreachable_blocks): Declare.
3277 * predict.c (predicted_by_p, process_note_predictions,
3278 process_note_prediction, last_block_p): New function.
3279 (estimate_probability): Bypass loop on PRED_CONTINUE;
3280 do not handle noreturn heuristics; kill PRED_RETURN; add
3281 PRED_EARLY_RETURN.
3282 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3283 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3284 * predict.h (IS_TAKEN): New constant.
3285 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3286 * rtl.c (NOTE_INSN_PREDICTION): New.
3287 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3288 New macro.
3289 (insn_note): add NOTE_INSN_PREDICTION.
3290 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3291 CFG; free tail_recursion_label_list.
3292 * stmt.c: Include predict.h;
3293 (return_prediction): New.
3294 (expand_value_return): Use it.
3295 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3296
3297 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
3298
3299 * config/mips/mips.md: Name the unspecs with define_constant.
3300 (*HILO_delay): Rename to 'hilo_delay' (no star).
3301 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3302 (reload_outdi, reload_outsi): Likewise.
3303
3304 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3305
3306 * toplev.c: Fix formatting.
3307
3308 2002-05-07 Janis Johnson <janis187@us.ibm.com>
3309
3310 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3311 * configure.in (ac_rtlflag_checking): New.
3312 * doc/install.texi (--enable-checking): Document RTL flag checking.
3313
3314 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3315
3316 * c-common.c (c_common_init): Set options->unsigned_wchar.
3317 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3318 group target dependencies.
3319 (init_builtins, cpp_handle_option): Update.
3320 * cpplex.c (cpp_interpret_charconst): Update.
3321 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3322 signed_char to unsigned_char, group target dependencies.
3323 * defaults.h (WCHAR_UNSIGNED): Remove.
3324 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3325 config:
3326 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3327 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3328 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3329 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3330 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3331 doc:
3332 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3333
3334 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3335
3336 * fixinc/inclhack.def (windiss_math1): New fix.
3337 (windiss_math2): Likewise.
3338 (windiss_valist): Likewise.
3339 * fixinc/fixincl.x: Regenerated.
3340
3341 2002-05-07 Andreas Jaeger <aj@suse.de>
3342
3343 * genautomata.c (output_internal_min_issue_delay_func): Add
3344 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3345 (output_internal_trans_func): Likewise.
3346
3347 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
3348
3349 * pa.c (hppa_profile_hook): Use force_reg to get the address
3350 of the profile hook into an appropriate pseudo register.
3351
3352 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3353
3354 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3355 (LINK_START_SPEC): Handle it.
3356 (LINK_OS_SPEC): Likewise.
3357 (CPP_SPEC): Likewise.
3358 (STARTFILE_SPEC): Likewise.
3359 (LIB_SPEC): Likewise.
3360 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
3361 all platforms.
3362 (CRTSAVRES_DEFAULT_SPEC): New macro.
3363 (LIB_WINDISS_SPEC): New macro.
3364 (CPP_OS_WINDISS_SPEC): Likewise.
3365 (STARTFILE_WINDISS_SPEC): Likewise.
3366 (ENDFILE_WINDISS_SPEC): Likewise.
3367 (LINK_START_WINDISS_SPEC): Likewise.
3368 (LINK_OS_WINDISS_SPEC): Likewise.
3369 * config/rs6000/windiss.h: New file.
3370
3371 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
3372
3373 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3374
3375 2002-05-06 David S. Miller <davem@redhat.com>
3376
3377 * config/sparc/sparc.md (shift insns): Do not mask off
3378 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3379 take care of it.
3380
3381 2002-05-06 Richard Henderson <rth@redhat.com>
3382
3383 PR c++/6212
3384 * expr.c (highest_pow2_factor_for_type): New.
3385 (expand_assignment): Use it.
3386
3387 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
3388
3389 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3390 unspec_volatile.
3391 ("altivec_mfvscr"): Same.
3392
3393 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3394
3395 * rtl.h (struct rtx_def): Update comments.
3396 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
3397 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
3398 RTL_FLAG_CHECK macros with list of expected RTL codes.
3399 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3400 (rtl_check_failed_flag): New.
3401 * reload1.c (reload): Use REG macro before changing rtx to MEM.
3402 (reload_cse_noop_set_p): Check rtx code before using access macro.
3403 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3404 before using access macro.
3405
3406 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3407
3408 * doc/rtl.texi (Flags): Update to reflect current usage.
3409
3410 2002-05-06 Roger Sayle <roger@eyesopen.com>
3411
3412 PR opt/3995
3413 * fold-const.c (sign_bit_p): New function.
3414 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3415 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3416 Reapply fold when converting (A & C) == C into (A & C) != 0.
3417 (fold_binary_op_with_conditional_arg): Fix typo in comment.
3418
3419 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3420
3421 * c-common.c (warn_multichar): New.
3422 (c_common_init): Set CPP's warn_multichar.
3423 * c-common.h (warn_multichar): New.
3424 * c-decl.c (warn_multichar): Remove.
3425 * c-lex.c (lex_charconst): Update.
3426 * c-tree.h (warn_multichar): Remove.
3427 * cppexp.c (eval_token): Sign-extend charconst value.
3428 * cppinit.c (cpp_create_reader): Set warn_multichar.
3429 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3430 each character. Update prototype. Sign-extend the result.
3431 * cpplib.h: Fix conditions.
3432 (struct cpp_options): Add new warning flag.
3433 (cpp_interpret_charconst): Update prototype.
3434 doc:
3435 * cpp.texi: Update documentation.
3436
3437 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
3438
3439 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3440 Fix typo in usage of allof instead of unit.
3441
3442 2002-05-06 Richard Henderson <rth@redhat.com>
3443
3444 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3445 and any jump or call for IN.
3446
3447 2002-05-06 Bernd Schmidt <bernds@redhat.com>
3448
3449 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3450 -msse2.
3451 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3452
3453 2002-05-06 Roger Sayle <roger@eyesopen.com>
3454
3455 * fold-const.c (lshift-double): Cast the high word to an unsigned
3456 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3457 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3458 avoid compiler warning. (fold): Remove redundant code from
3459 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3460
3461 2002-05-06 Jeff Law <law@redhat.com>
3462
3463 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3464 * pa.c (pa_adjust_cost): Remove all true dependency cost
3465 adjustments. Also remove support for non-DFA scheduling.
3466 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3467 to adjust true dependency costs. Update various comments.
3468 (7100lc, 7200, 7300 scheduling): Simplify by combining the
3469 FP ALU & MPY units into a single unit.
3470
3471 2002-05-06 Catherine Moore <clm@redhat.com>
3472
3473 * config/v850/v850.c (compute_register_save_size): Make sure
3474 to count all of the registers that will be saved.
3475
3476 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3477
3478 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3479
3480 2002-05-06 David S. Miller <davem@redhat.com>
3481
3482 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3483 allow result to overlap input operands in memory.
3484
3485 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3486
3487 doc:
3488 * cpp.texi: Update multichar charconst docs.
3489
3490 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3491
3492 * cpplex.c (cpp_interpret_charconst): Sign-extend each
3493 character. Don't ignore excess characters. Treat
3494 multicharacter character constants as signed.
3495 (cpp_parse_escape): Clarify diagnostic.
3496
3497 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3498
3499 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3500 use add instead of shift.
3501 (ashldi3_sp64): Likewise.
3502 (ashlsi3_const1, ashldi3_const1): Remove.
3503 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3504 * config/sparc/sparc.c (const1_operand): New.
3505
3506 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3507
3508 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3509
3510 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3511
3512 PR target/6561
3513 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3514
3515 2002-05-05 Richard Henderson <rth@redhat.com>
3516
3517 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3518 memory latency adjustments.
3519 (alpha_variable_issue): Remove.
3520 (alpha_use_dfa_pipeline_interface): New.
3521 (alpha_multipass_dfa_lookahead): New.
3522 * config/alpha/alpha.md: Remove define_function_unit scheduling;
3523 include new dfa scheduling.
3524 (attr type): Add none.
3525 (blockage): Use it.
3526 * config/alpha/ev4.md: New.
3527 * config/alpha/ev5.md: New.
3528 * config/alpha/ev6.md: New.
3529
3530 2002-05-05 David S. Miller <davem@redhat.com>
3531
3532 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3533
3534 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
3535
3536 * cse.c: Fix formatting.
3537 * emit-rtl.c: Likewise.
3538
3539 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3540
3541 * genautomata.c (initiate_states): Add additional guard to
3542 initialize `units_array'.
3543
3544 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3545
3546 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
3547 process_unit_to_form_the_same_automaton_unit_lists,
3548 form_the_same_automaton_unit_lists
3549 check_unit_distributions_to_automata): New prototypes and
3550 functions.
3551 (check_automata): Rename it into `check_automata_insn_issues'.
3552 (unit_decl): New fields `the_same_automaton_unit' and
3553 `the_same_automaton_message_reported_p'.
3554 (unit_decl_t): New typedef.
3555 (the_same_automaton_lists): New gloval variable.
3556 (unit_regexp, unit_set_el, units_array, units_cmp,
3557 output_get_cpu_unit_code_func): Use the typedef.
3558 (evaluate_max_reserv_cycles): Increment
3559 `description->max_insn_reserv_cycles'.
3560 (initiate_states): Don't increment `max_cycles_num'.
3561 (transform_insn_regexps): Move code around transformation of
3562 regexps from `generate'.
3563 (generate): Remove call of `transform_insn_regexps'.
3564 (expand_automata): Call `transform_insn_regexps' and
3565 `check_unit_distributions_to_automata'. Check errors before
3566 `generate'.
3567
3568 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
3569 automaton `ultrasparc3_1'.
3570
3571 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
3572
3573 * c-common.c (c_common_init): Set up CPP arithmetic.
3574 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
3575 something reasonable for the host.
3576 (sanity_checks): Add checks.
3577 (cpp_read_main_file): Call sanity_checks() from here...
3578 (cpp_post_options): ... not here.
3579 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
3580 * cpplib.h (struct cpp_options): New member int_precision.
3581
3582 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3583
3584 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
3585
3586 2002-05-04 David S. Miller <davem@redhat.com>
3587
3588 * config/sparc/linux.h, config/sparc/linux64.h
3589 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
3590
3591 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
3592 more RTX codes.
3593 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
3594
3595 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
3596 of SETs.
3597
3598 2002-05-05 Tim Josling <tej@melbpc.org.au>
3599
3600 * treelang; New directory for new sample language treelang.
3601
3602 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3603
3604 * Makefile.in (c-lex.o): Update.
3605 * c-lex.c: Include target.h.
3606 (cb_register_builtins): New.
3607 (init_c_lex): Set builtins callback.
3608 * c-lex.h (cpp_define, cpp_assert): New prototypes.
3609 * cppinit.c (init_builtins): Use callback, including for
3610 GXX_WEAK.
3611 * cpplib.h (struct cpp_callbacks): New member.
3612 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
3613 (TARGET_INITIALIZER): Update.
3614 * target.h (struct gcc_target): New hook.
3615 * tree.c (default_register_cpp_builtins): New.
3616 * tree.h (default_register_cpp_builtins): New.
3617 doc:
3618 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
3619
3620 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3621
3622 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
3623 (cpp_post_options): Move sanity checks to...
3624 (sanity_checks): New.
3625 * cpplex.c (maybe_read_ucs): Fix prototype.
3626 (parse_string, cpp_parse_escape): Cast for %c format specifier.
3627 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
3628 if necessary.
3629
3630 2002-05-04 Bernd Schmidt <bernds@redhat.com>
3631
3632 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
3633 builtins. Use V2DI patterns instead of TI for logical operations.
3634 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
3635 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
3636 (ix86_expand_builtins): Change the pattern used for movntdq.
3637 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
3638 sse2_nandv2di3): New patterns.
3639 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
3640 on operands.
3641 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
3642 (cvtdq2pd): Correct mode on operand 1.
3643 (sse2_umulsidi3): Describe without unspec.
3644 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
3645 machine modes.
3646 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
3647 (ashlv2di3): Likewise, from sse2_ashlv2di3.
3648 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
3649 ashlv4si3, ashlv2di3): Use SImode for shift count.
3650 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
3651 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
3652 New patterns.
3653 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
3654 New typedefs.
3655 (__m128i, __m128d): New macros.
3656 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
3657 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
3658 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
3659 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
3660 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
3661 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
3662 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
3663 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
3664 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
3665 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
3666 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
3667 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
3668 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
3669 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
3670 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
3671 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
3672 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
3673 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
3674 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
3675 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
3676 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
3677 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
3678 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
3679 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
3680 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
3681 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
3682 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
3683 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
3684 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
3685 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
3686 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
3687 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
3688 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
3689 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
3690 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
3691 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
3692 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
3693 functions.
3694 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
3695 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
3696
3697 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3698
3699 * dwarf2out.c: Fix formatting.
3700 * varasm.c: Likewise.
3701
3702 2002-05-04 David Edelsohn <edelsohn@gnu.org>
3703
3704 PR c/6543
3705 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
3706 clobber and use result as temporary value.
3707
3708 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3709
3710 * expr.c (force_operand): Use expand_simple_* to handle more
3711 cases.
3712
3713 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
3714
3715 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
3716 and sign-extension.
3717 (lex_charconst): Update for change in prototype of
3718 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
3719 appropriately.
3720 * cpphash.h (BITS_PER_CPPCHAR_T): New.
3721 * cppinit.c (cpp_create_reader): Initialize them for no
3722 change in semantics.
3723 (cpp_post_options): Add sanity checks.
3724 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
3725 and truncation issues. Calculate in type cppchar_t.
3726 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
3727 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
3728 run-time dependent precision correctly. Return whether the
3729 result is signed or not.
3730 * cpplib.c (dequote_string): Use cppchar_t; update.
3731 * cpplib.h (cppchar_signed_t): New.
3732 struct cpp_options): New precision members.
3733 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
3734 * cppexp.c (eval_token): Update.
3735
3736 2002-05-03 David S. Miller <davem@redhat.com>
3737
3738 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
3739 * config/sparc/sparc.c (sparc_rtx_costs): New function
3740 implementing RTX_COSTS and CONST_COSTS.
3741 * config/sparc/sparc.h (CONST_COSTS): Delete.
3742 (RTX_COSTS_CASES): Define.
3743 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
3744 the work.
3745
3746 * config/sparc/sparc.md (DFA schedulers): Split out...
3747 * config/sparc/cypress.md, config/sparc/hypersparc.md,
3748 config/sparc/sparclet.md, config/sparc/supersparc.md,
3749 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
3750
3751 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
3752 checks on it, always defined for Sparc.
3753
3754 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
3755 Tweak, and add more detailed comments.
3756
3757 2002-05-03 Zack Weinberg <zack@codesourcery.com>
3758
3759 * Re-apply patch accidentally reverted with
3760 DFA scheduler merge: remove all rules and variables to slurp
3761 source files out of libiberty and rebuild them with HOST_CC.
3762 ($(HOST_PREFIX_1)varray.o): New rule.
3763 (genattrtab rule): Word wrap.
3764
3765 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3766
3767 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
3768 (CPP_SUBTARGET_SPEC): Define.
3769 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
3770 cpp_subtarget specs.
3771 (CPP_SPEC): Redefine to include %(cpp_subtarget).
3772
3773 2002-05-03 David S. Miller <davem@redhat.com>
3774
3775 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
3776 * target.h (struct gcc_target): Delete cycle_display member.
3777
3778 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
3779 (rtx_needs_barrier): Delete reference to cycle_display unspec.
3780 (ia64_sched_reorder2): Mention need for cycle display handling
3781 once such notes exist.
3782
3783 2002-05-03 Richard Henderson <rth@redhat.com>
3784
3785 * real.c (etoasc): Strip most trailing zeros for clarity.
3786 * sched-vis.c: Include real.h.
3787 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
3788 * Makefile.in (sched-vis.o): Add real.h.
3789
3790 2002-05-03 David S. Miller <davem@redhat.com>
3791
3792 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
3793 no longer needed.
3794
3795 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
3796
3797 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
3798 when we get an out of range literal.
3799 (altivec_expand_ternop_builtin): Same.
3800 (altivec_expand_unop_builtin): Same.
3801 (altivec_expand_builtin): Same, for dss.
3802 (altivec_expand_builtin): Use trees instead of rtl when
3803 determining literal argument validity.
3804
3805 2002-05-03 David S. Miller <davem@redhat.com>
3806
3807 Delete cycle display scheduling hook.
3808 * config/ia64/ia64.c (ia64_cycle_display,
3809 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
3810 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
3811 and use emit_insn_before instead of ia64_emit_insn_before.
3812 * config/ia64/ia64.md (unspec usage): Delete cycle display.
3813 (cycle_display): Delete insn pattern.
3814 * config/sparc/sparc.md (unspec usage): Delete cycle display.
3815 (cycle_display): Delete insn pattern.
3816 * config/sparc/sparc.c (sparc_cycle_display,
3817 TARGET_SCHED_CYCLE_DISPLAY): Delete.
3818 * doc/md.texi (cycle_display): Don't mention.
3819 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
3820
3821 2002-05-03 Richard Henderson <rth@redhat.com>
3822
3823 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
3824 * recog.h: Declare them.
3825
3826 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
3827 * config/sparc/sparc.md: Use store_data_bypass_p instead.
3828 * config/sparc/sparc-protos.h: Update.
3829
3830 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3831
3832 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
3833 -D__arch64__. Add -D_LP64.
3834 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
3835 from sparc.h.
3836 (CPP_ARCH64_SPEC): Likewise.
3837 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
3838 (NO_BUILTIN_SIZE_TYPE): Undef.
3839
3840 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
3841
3842 * genautomata.c (min_issue_delay_pass_states): Change return type
3843 in the prototype.
3844 (min_issue_delay_pass_states): Change the algorithm.
3845 (min_issue_delay): Set up min_insn_issue_delay for the state.
3846 (output_min_issue_delay_table): Interchange the nested loops and
3847 and initiate min_insn_issue_delay for states.
3848
3849 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
3850
3851 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
3852 jump is simplejump.
3853
3854 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
3855
3856 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
3857 sequence.
3858
3859 2002-05-03 Richard Henderson <rth@redhat.com>
3860
3861 PR opt/6534
3862 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3863 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
3864 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
3865 code before JUMP, not EARLIEST.
3866
3867 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
3868
3869 * c-format.c (check_format_info_main): Don't check for presence of
3870 parameter for * width until after operand number has been read,
3871 and only check for it if format parameters are available.
3872 Fixes PR c/6547.
3873
3874 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
3875
3876 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
3877 (LINK_SPEC): Undef before defining.
3878
3879 2002-05-03 Jakub Jelinek <jakub@redhat.com>
3880
3881 PR preprocessor/6489
3882 * tradcpp.c (fixup_newlines): New.
3883 (main, finclude): Use it.
3884
3885 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
3886
3887 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
3888 * config/mips/mips.c (mips_unique_section): Strip encoding from
3889 decl name.
3890
3891 2002-05-03 Jakub Jelinek <jakub@redhat.com>
3892
3893 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
3894 mode.
3895
3896 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3897
3898 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
3899 (Specific): Removed buildstats references.
3900 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
3901 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
3902 Accomodate Solaris versions beyond 8.
3903 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
3904 (Specific, *-*-solaris2.8): Removed, obsolete.
3905
3906 2002-05-03 Jakub Jelinek <jakub@redhat.com>
3907
3908 PR target/6542
3909 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
3910 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
3911 fill leaf_reg_remap with identity.
3912 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
3913
3914 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
3915
3916 * config/h8300/crti.asm: Remove trailing spaces.
3917 * config/h8300/h8300.c: Likewise.
3918 * config/h8300/lib1funcs.asm: Likewise.
3919
3920 2002-05-02 Jason Merrill <jason@redhat.com>
3921
3922 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
3923 * c-decl.c (c_init_decl_processing): Use it.
3924 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
3925 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
3926 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
3927
3928 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
3929
3930 * regrename.c: Fix formatting.
3931 * tree.c: Likewise.
3932
3933 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
3934
3935 * i386.md (attribute memory): Handle compares properly.
3936
3937 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
3938
3939 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
3940 to none.
3941
3942 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3943
3944 * function.c: Fix formatting.
3945
3946 2002-05-02 Jan Hubicka <jh@suse.cz>
3947
3948 * haifa-sched.c (schedule_insn): Print table of instructions and
3949 reservations.
3950 (sched_block): Do not print ready list at verbosity level 1.
3951 * sched-vis.c (print_insn): Make global.
3952 * sched-ebb.c (ebb_print_insn): Rename from...
3953 (print_insn): ... this one.
3954 * sched-int.h (print_insn): Declare
3955
3956 2002-05-02 Richard Henderson <rth@redhat.com>
3957
3958 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
3959 emitted by cycle_display.
3960
3961 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
3962
3963 * doc/install.texi (*-*-freebsd*): Update to latest status.
3964
3965 2002-05-02 Jakub Jelinek <jakub@redhat.com>
3966
3967 PR target/6540
3968 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
3969 * config/float-sparc.h: Assume 128-bit long double if
3970 __LONG_DOUBLE_128__ is defined.
3971
3972 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
3973
3974 * genattrtab.c (write_function_unit_info): Add a dummy element
3975 when num_units == 0.
3976
3977 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3978
3979 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
3980 TYPE_MODE (double_type_node) instead of DFmode.
3981
3982 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
3983
3984 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
3985 jumps post reload.
3986 * toplev.c (rest_of_compilation): Revert Richard's patch.
3987
3988 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
3989
3990 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
3991
3992 2002-05-02 Catherine Moore <clm@redhat.com>
3993
3994 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
3995
3996 2002-05-02 Kazu Hirata <kazu@hxi.com>
3997
3998 * combine.c: Fix comment typos.
3999 * expr.c: Likewise.
4000 * genautomata.c: Likewise.
4001 * stmt.c: Likewise.
4002 * tree.h: Likewise.
4003
4004 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4005
4006 * doc/install.texi: State GNAT version requirements.
4007
4008 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4009
4010 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4011 of the frame pointer or arg pointer register which strict register
4012 checking is not enabled.
4013
4014 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4015
4016 * gcc.dg/altivec-8.c: New.
4017
4018 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4019 PRE_INC and PRE_DEC for altivec modes.
4020
4021 2002-05-01 Bruce Korb <bkorb@gnu.org>
4022
4023 * fixinc/check.tpl(set-writable): make sure the function exists first
4024 * fixinc/inclhack.def(alpha_assert): fix test_text
4025 * fixinc/tests/base/assert.h: add in missing result
4026
4027 2002-05-01 Jeff Law <law@redhat.com>
4028
4029 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4030 'T' constraint.
4031
4032 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4033
4034 * dbxout.c (dbxout_type): Emit size information for range types,
4035 as well, but only when using GDB extensions.
4036
4037 2002-05-01 Richard Henderson <rth@redhat.com>
4038
4039 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4040 target-independent gnu binutils date test.
4041
4042 2002-05-01 Richard Henderson <rth@redhat.com>
4043
4044 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4045 info before expunging the block.
4046
4047 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4048
4049 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4050 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4051 -M -or -MM is in effect.
4052
4053 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4054
4055 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4056 A29k configurations.
4057 * doc/install.texi: Update to match.
4058
4059 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4060
4061 PR bootstrap/6514
4062 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4063 for duplicates. Always loop over whole list.
4064
4065 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4066
4067 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4068
4069 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4070
4071 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4072 support routines.
4073
4074 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4075
4076 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4077
4078 2002-05-01 David Edelsohn <edelsohn@gnu.org>
4079
4080 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4081 (nabs_nopower): Same.
4082 (floatdisf2): New pattern.
4083 (absdi2): Convert to define_insn_and_split.
4084 (nabsdi2): Same.
4085 (trunctfsf2): Same.
4086 (floatditf2): Same.
4087 (floatsitf2): Same.
4088 (fix_trunctfdi2): Same.
4089 (fix_trunctfsi2): Same.
4090
4091 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
4092
4093 * doc/install.texi: Update Texinfo version requirement
4094 documentation.
4095
4096 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4097
4098 PR target/6512, PR target/5628
4099 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4100 when memory is not aligned.
4101 (movdf_insn_v9only_vis): Likewise.
4102 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4103 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4104 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4105
4106 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
4107
4108 * gcc.dg/altivec-7.c: New.
4109
4110 * config/rs6000/altivec.h: Cleanup.
4111
4112 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
4113
4114 * doc/invoke.texi (Option Summary): Add -mvrsave=.
4115 (RS/6000 and PowerPC Options): Document -mvrsave=.
4116
4117 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4118 (rs6000_altivec_vrsave_string): Same.
4119 (rs6000_override_options): Call rs6000_parse_vrsave_option.
4120 (rs6000_parse_vrsave_option): New.
4121 (rs6000_stack_info): Only generate vrsave instructions when
4122 TARGET_ALTIVEC_VRSAVE.
4123
4124 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4125 (rs6000_altivec_vrsave_string): Define extern.
4126 (rs6000_altivec_vrsave): Same.
4127 (TARGET_ALTIVEC_VRSAVE): New.
4128
4129 2002-04-30 Richard Henderson <rth@redhat.com>
4130
4131 PR opt/6516
4132 * toplev.c (rest_of_compilation): Don't run cross-jump before
4133 bb-reorder.
4134
4135 2002-04-30 Tom Rix <trix@redhat.com>
4136
4137 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4138 check which_alternative.
4139
4140 2002-04-30 Kazu Hirata <kazu@hxi.com>
4141
4142 * cpplex.c: Fix comment formatting.
4143 * function.c: Likewise.
4144 * integrate.c: Likewise.
4145 * regrename.c: Likewise.
4146 * sibcall.c: Likewise.
4147 * simplify-rtx.c: Likewise.
4148 * tree-inline.c: Likewise.
4149
4150 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4151
4152 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4153 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4154 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4155 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4156 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4157 * pa/x-ada: New file. Define ADA_CFLAGS.
4158
4159 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
4160
4161 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4162 from MMIX_LAST_REGISTER_FILE_REGNUM.
4163 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4164 (struct machine_function): New member highest_saved_stack_register
4165 previously static variable in mmix.c.
4166 (MACHINE_DEPENDENT_REORG): Define.
4167 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4168 (MMIX_OUTPUT_REGNO): New.
4169 (mmix_target_asm_function_prologue): Move calculation of last used
4170 saved-stack-register into...
4171 (mmix_machine_dependent_reorg): New function. Update to also handle
4172 !TARGET_ABI_GNU.
4173 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4174 register names, simplify somewhat by new variable regno.
4175 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
4176 register.
4177 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4178 emitting register names.
4179 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4180 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4181 Remove fixed FIXME.
4182 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4183 Declare.
4184
4185 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4186
4187 2002-04-30 Richard Henderson <rth@redhat.com>
4188
4189 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4190 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4191 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4192 emit_tfmode_cvt): New.
4193 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4194 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4195 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4196 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4197 * config/sparc/sparc-protos.h: Update.
4198
4199 2002-04-30 Janis Johnson <janis187@us.ibm.com>
4200
4201 * install.texi (Final install): Add to the list of info to include
4202 in a report of a successful bootstrap, and add link to 3.1 list.
4203
4204 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
4205
4206 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4207 (mode): Add vector modes
4208 (i387): Kill attribute.
4209 (unit): New attribute.
4210 (length_immediate): Grok new types.
4211 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4212 (modrm): Use "unit".
4213 (memory): Handle MMX/SSE properly.
4214 (scheduling descriptions): Kill uses of fop1.
4215 (sse, mmx, fp patterns): Set type and mode properly.
4216
4217 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
4218
4219 * pa.c (override_options): Default to PA8000 scheduling.
4220 * doc/invoke.texi (HP-PA options): Mention newly added 7300
4221 scheduling parameter.
4222
4223 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4224 handling of double precision multiplies.
4225
4226 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4227 fpdiv and fpsqrt instructions.
4228 (7200 & 7300 scheduling): Fix typo in handling of
4229 store-load and store-store penalties.
4230
4231 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4232
4233 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4234 mips. Add two missing commas.
4235
4236 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
4237
4238 * doc/contrib.texi (Contributors): Update Paolo Carlini's
4239 and Benjamin Kosnik's entries.
4240
4241 2002-04-29 David S. Miller <davem@redhat.com>
4242
4243 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4244 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4245 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4246 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4247
4248 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4249
4250 * combine.c (find_split_point): Use gen_int_mode.
4251
4252 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
4253
4254 Merging code from dfa-branch:
4255
4256 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
4257
4258 * genautomata.c (output_reserv_sets): Fix typo.
4259
4260 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
4261
4262 * genautomata.c (output_reserv_sets): Remove
4263 next_cycle_output_flag.
4264
4265 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
4266
4267 * sched-rgn.c (init_ready_list): Make the DFA code handle
4268 USE/CLOBBER insns in the same way as the traditional
4269 scheduler.
4270 (new_ready): Similarly..
4271
4272 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
4273
4274 * haifa-sched.c (schedule_block): Change the DFA state only after
4275 issuing insn.
4276
4277 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
4278
4279 * pa.c (hppa_use_dfa_pipeline_interface): New function.
4280 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4281 (override_options): Add PA7300 scheduling support.
4282 (pa_adjust_cost): Update various comments. Properly
4283 handle anti and output dependencies when using the
4284 DFA scheduler.
4285 (pa_issue_rate): Add PA7300 scheduling support.
4286 (pa_can_combine_p): Call extract_insn before calling
4287 constrain_operands (taken from mainline tree).
4288 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4289 * pa.md (cpu attr): Add 7300. Rewrite pipeline
4290 descriptions using DFA descriptions. Add PA7300
4291 scheduling support.
4292
4293 2002-03-30 David S. Miller <davem@redhat.com>
4294
4295 Add UltraSPARC-III DFA scheduling support.
4296 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4297 Update FP conditional move on register insn patterns to use it, as
4298 appropriate.
4299 (define_attr cpu): Add ultrasparc3.
4300 (define_attr us3load_type): New, update integer load patterns to
4301 set it, as appropriate.
4302 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4303 (rest): Add UltraSPARC3 scheduling description.
4304 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4305 (PROCESSOR_ULTRASPARC3): New.
4306 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4307 ({ASM,CPP}_CPU_SPEC): Likewise.
4308 (REGISTER_MOVE_COST): Likewise.
4309 (RTX_COSTS): Likewise.
4310 * config/sparc/sparc.c (sparc_override_options,
4311 sparc_initialize_trampoline, sparc64_initialize_trampoline,
4312 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4313 sparc_issue_rate): Likewise.
4314 * config/sparc/sol2.h: Likewise.
4315 * config/sparc/sol2-sld-64.h: Likewise.
4316 * config/sparc/linux64.h: Likewise.
4317
4318 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
4319
4320 * doc/md.texi: Add comments about usage the latency time for the
4321 different dependencies and about case when two or more conditions
4322 in different define_insn_reservations returns TRUE for an insn.
4323
4324 * doc/md.texi: Add reference for automaton based pipeline
4325 description.
4326
4327 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
4328
4329 * doc/passes.texi: Add missed information about genattrtab.
4330
4331 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
4332
4333 * genautomata.c (output_automata_list_transition_code): Check
4334 automata_list on NULL.
4335
4336 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
4337
4338 * genautomata.c (output_insn_code_cases,
4339 output_automata_list_min_issue_delay_code,
4340 output_automata_list_transition_code,
4341 output_automata_list_state_alts_code): Comment the functions.
4342
4343 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
4344
4345 * genautomata.c (automata_list_el_t): New typedef.
4346 (get_free_automata_list_el,free_automata_list_el,
4347 free_automata_list, automata_list_hash, automata_list_eq_p,
4348 initiate_automata_lists, automata_list_start, automata_list_add,
4349 automata_list_finish, finish_automata_lists,
4350 output_insn_code_cases, output_automata_list_min_issue_delay_code,
4351 output_automata_list_transition_code,
4352 output_automata_list_state_alts_code, add_automaton_state,
4353 form_important_insn_automata_lists): New functions and prototypes.
4354 (insn_reserv_decl): Add members important_automata_list and
4355 processed_p.
4356 (ainsn): Add members important_p.
4357 (automata_list_el): New structure.
4358 (first_free_automata_list_el, current_automata_list,
4359 automata_list_table): New global variables.
4360 (create_ainsns): Initiate member important_p.
4361 (output_internal_min_issue_delay_func): Generate the switch and
4362 call output_insn_code_cases.
4363 (output_internal_trans_func, output_internal_state_alts_func):
4364 Ditto.
4365 (generate): Call initiate_automata_lists.
4366 (automaton_states): New global variable.
4367 (expand_automata): Call form_important_insn_automata_lists.
4368 (write_automata): Call finish_automata_lists.
4369
4370 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
4371
4372 * genautomata.c (add_excls, add_presence_absence): Check that
4373 cpu units in the sets belong the same automaton.
4374
4375 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4376 about that cpu units in the sets belong the same automaton.
4377
4378 * doc/md.texi: Ditto.
4379
4380 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
4381 Nitin Gupta <niting@noida.hcltech.com>
4382
4383 * config/sh/sh.c (sh_use_dfa_interface): New function.
4384
4385 (sh_issue_rate): New Function.
4386 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4387 TARGET_SCHED_ISSUE_RATE: define.
4388
4389 * config/sh/sh.md: Add DFA based pipeline description for SH4.
4390
4391 (define_attr insn_class): New attribute used for DFA
4392 scheduling.
4393 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4394 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4395 cmpeqdi_t): Likewise.
4396
4397 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4398 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4399 ex_group.
4400 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4401
4402 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4403
4404 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4405 break.
4406
4407 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4408
4409 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4410 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4411 necessary.
4412 (output_dfa_start_func): Initiate new variable insn_codes_length,
4413 (write_automata): Output definition of the new variable.
4414
4415 2001-10-02 David S. Miller <davem@redhat.com>
4416
4417 * haifa-sched.c (advance_one_cycle): New function.
4418 (schedule_block): Use it.
4419 (queue_to_ready): Use it, and also make sure to advance the DFA
4420 state on all stall cycles, not just those where insn_queue links
4421 are found.
4422
4423 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
4424
4425 * haifa-sched.c (max_issue): Remove last_p argument. Only return
4426 non-zero if the highest-priority instruction could be scheduled.
4427 (choose_ready): Remove last argument from max_issue call.
4428
4429 2001-09-28 David S. Miller <davem@redhat.com>
4430
4431 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4432 ultrasparc and 3 for other multi-issue sparcs.
4433
4434 2001-09-27 David S. Miller <davem@redhat.com>
4435
4436 * config/sparc/sparc.md (cycle_display): New pattern.
4437 * config/sparc/sparc.c (sparc_cycle_display): New.
4438 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4439
4440 2001-09-25 David S. Miller <davem@redhat.com>
4441
4442 Convert all of Sparc scheduling to DFA
4443 * config/sparc/sparc.md: Kill all define_function_unit
4444 directives and replace with DFA equivalent.
4445 * config/sparc/sparc.c (ultrasparc_adjust_cost,
4446 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4447 ultra_fpmode_conflict_exists, ultra_find_type,
4448 ultra_build_types_avail, ultra_flush_pipeline,
4449 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4450 ultrasparc_variable_issue, ultrasparc_sched_init,
4451 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4452 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4453 ultra_cur_hist, ultra_cycles_elapsed): Kill.
4454 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4455 ultrasparc_store_bypass_p): New.
4456 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4457 Declare.
4458
4459 2001-09-24 David S. Miller <davem@redhat.com>
4460
4461 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4462 ready->vec[foo] not ready[foo].
4463
4464 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4465
4466 * doc/md.texi: Correct examples for define_insn_reservations
4467 `mult' and `div'.
4468
4469 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4470
4471 * genautomata.c (create_automata): Print message about creation of
4472 each automaton.
4473 (generate): Remove printing meease about creation of
4474 automata.
4475
4476 2001-09-05 David S. Miller <davem@redhat.com>
4477
4478 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4479 * config/sparc/linux64.h: Likewise.
4480
4481 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
4482
4483 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4484 schedule_block, sched_init, sched_finish): Add missed calls of
4485 use_dfa_pipeline_interface.
4486
4487 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4488 Ditto.
4489
4490 * sched-vis.c (get_visual_tbl_length): Ditto.
4491
4492 2001-08-27 Richard Henderson <rth@redhat.com>
4493
4494 * genattr.c (main): Emit state_t even when not doing scheduling.
4495
4496 2001-08-27 Richard Henderson <rth@redhat.com>
4497
4498 * genautomata.c (expand_automata): Always create a description.
4499
4500 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4501
4502 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4503 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4504 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4505 RTL constructions.
4506
4507 * genattr.c (main): New variable num_insn_reservations. Increase
4508 it if there is DEFINE_INSN_RESERVATION. Output automaton based
4509 pipeline hazard recognizer interface.
4510
4511 * genattrtab.h: New file.
4512
4513 * genattrtab.c: Include genattrtab.h.
4514 (attr_printf, check_attr_test, make_internal_attr,
4515 make_numeric_value): Move protypes into genattrtab.h. Define them
4516 as external.
4517 (num_dfa_decls): New global variable.
4518 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4519 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4520 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4521 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
4522
4523 * genautomata.c: New file.
4524
4525 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4526
4527 * sched-int.h: (curr_state): Add the external definition for
4528 automaton pipeline interface.
4529 (haifa_insn_data): Add comments for members blockage and units.
4530
4531 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4532 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4533 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4534 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4535 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4536 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4537 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4538 macros.
4539 (TARGET_SCHED): Use the new macros.
4540
4541 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
4542 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
4543 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
4544 dfa_bubble): New members in gcc_target.sched.
4545
4546 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
4547 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
4548 (insn_queue): Redefine it as pointer to array.
4549 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
4550 INSN_QUEUE_SIZE.
4551 (max_insn_queue_index_macro_value): New variable.
4552 (curr_state, dfa_state_size, ready_try): New varaibles for
4553 automaton interface.
4554 (ready_element, ready_remove, max_issue): New function prototypes
4555 for automaton interface.
4556 (choose_ready): New function prototype.
4557 (insn_unit, blockage_range): Add comments.
4558 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
4559 FUNCTION_UNITS_SIZE == 0.
4560 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
4561 actual_hazard, potential_hazard): Add comments.
4562 (insn_cost): Use cost -1 as undefined value. Remove
4563 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
4564 pipeline interface.
4565 (ready_element, ready_remove): New functions for automaton
4566 interface.
4567 (schedule_insn): Add new code for automaton pipeline interface.
4568 (queue_to_ready): Add new code for automaton pipeline interface.
4569 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
4570 (debug_ready_list): Print newline when the queue is empty.
4571 (max_issue): New function for automaton pipeline interface.
4572 (choose_ready): New function.
4573 (schedule_block): Add new code for automaton pipeline interface.
4574 Print ready list before scheduling each insn.
4575 (sched_init): Add new code for automaton pipeline interface.
4576 Initiate insn cost by -1.
4577 (sched_finish): Free the current automaton state and finalize
4578 automaton pipeline interface.
4579
4580 * sched-rgn.c: Include target.h.
4581 (init_ready_list, new_ready, debug_dependencies): Add new code for
4582 automaton pipeline interface.
4583
4584 * sched-vis.c: Include target.h.
4585 (get_visual_tbl_length): Add code for automaton interface.
4586 (target_units, print_block_visualization): Add comments.
4587
4588 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
4589 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
4590 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
4591 (getruntime.o, genautomata.o): New entries.
4592 (genattrtab.o): Add new dependency file genattrtab.h.
4593 (genattrtab): Add new dependencies. Link it with `libm.a'.
4594 (getruntime.o, hashtab.o): New entries for canadian cross.
4595
4596 * doc/md.texi: Description of automaton based model.
4597
4598 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
4599 Add comments.
4600 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4601 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4602 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4603 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4604 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4605 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4606 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
4607 hook descriptions.
4608 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
4609 MAX_DFA_ISSUE_RATE): New macro descriptions.
4610
4611 * doc/contrib.texi: Add dfa based scheduler contribution.
4612
4613 * doc/gcc.texi: Add more information about genattrtab.
4614
4615 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4616
4617 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
4618 adjust_address_nv call.
4619
4620 2002-04-29 Janis Johnson <janis187@us.ibm.com>
4621
4622 * doc/install.texi (Testing): Provide additional information, and
4623 a stronger encouragement, for running the testsuites.
4624
4625 2002-04-29 DJ Delorie <dj@redhat.com>
4626
4627 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
4628 given in upper case.
4629
4630 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4631
4632 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
4633 Solaris 2 <widec.h> if missing.
4634 * fixinc/fixincl.x: Regenerate.
4635 * fixinc/tests/base/widec.h: New file.
4636
4637 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
4638
4639 * toplev.c (f_options): Add "profile" switch so that
4640 -fno-profile can be used to disable -p.
4641
4642 2002-04-29 Bernd Schmidt <bernds@redhat.com>
4643
4644 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
4645 UV2DImode.
4646 * tree.c (build_common_tree_nodes_2): Likewise.
4647 * tree.h (enum tree_index): Likewise.
4648 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
4649
4650 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
4651 entries.
4652 (init_mmx_sse_builtins): Initialize SSE2 builtins.
4653 (ix86_expand_builtin): Add support for SSE2 builtins.
4654 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
4655 (VALID_SSE_REG_MODE): Use it.
4656 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
4657 (enum ix86_builtins): Add SSE2 builtins.
4658 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
4659 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
4660 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
4661 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
4662 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
4663 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
4664 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
4665 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
4666 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
4667 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
4668 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
4669 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
4670 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
4671 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
4672 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
4673 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
4674 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
4675 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
4676 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
4677 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
4678 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
4679 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
4680 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
4681 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
4682 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
4683 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
4684 lfence_insn): New patterns.
4685 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
4686 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
4687
4688 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
4689
4690 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
4691
4692 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4693
4694 * doc/contrib.texi (Contributors): Add Paolo Carlini and
4695 Janis Johnson.
4696 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
4697 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
4698 and CPU instead of cpu.
4699
4700 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
4701
4702 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
4703 variables.
4704 (lang_independent_options): Add -fif-conversion, -fif-conversion2
4705 (rest_of_compilation): Do if conversion only when asked for.
4706 (parse_options_and_default_flags): Set new variables to 1 for -O1
4707 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
4708
4709 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
4710
4711 * i386.c (dbx64_register_map): Fix typo.
4712
4713 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
4714
4715 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
4716 real_one_half, real_bb_freq_max): New static variables.
4717 (debug_profile_bbauxs): Kill.
4718 (process_note_predictions): Kill unused variable.
4719 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
4720 volatile double.
4721 (propagate_freq): Use REAL_ARITHMETICS.
4722 (estimate_bb_frequencies): Likevise; init new static variables.
4723 * Makefile.in (predict.o): Add dependency on real.h
4724
4725 2002-04-28 David S. Miller <davem@redhat.com>
4726
4727 PR target/6500
4728 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
4729 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
4730 several {reads,writes} instead.
4731 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
4732 Define.
4733
4734 2002-04-27 David S. Miller <davem@redhat.com>
4735
4736 PR target/6494
4737 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
4738 of the stack bias.
4739
4740 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
4741 including signal.h and sys/ucontext.h, not needed.
4742
4743 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
4744
4745 * varasm.c (output_constant_def): Correct test for not calling
4746 ENCODE_SECTION_INFO for INTEGER_CST.
4747
4748 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
4749
4750 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
4751 keep most cases as function eval_token.
4752 (eval_token): New function.
4753 (_cpp_parse_expr): Read token here for improved diagnostics.
4754 Don't use op_as_text. Detect bad ':' here.
4755 (reduce): Don't detect bad ':' here.
4756 (op_as_text): Remove.
4757 * cpphash.h (_cpp_test_assertion): Change prototype.
4758 * cpplib.c (_cpp_test_assertion): Change prototype.
4759
4760 2002-04-28 Richard Henderson <rth@redhat.com>
4761
4762 PR c/5154
4763 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
4764 (ggc_mark_rtx_children): New.
4765
4766 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4767
4768 PR target/6496
4769 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
4770 after call peepholes for UltraSPARC.
4771 (call + jump 64-bit peepholes): Remove.
4772
4773 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4774
4775 PR c/6497
4776 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
4777 result as temporary value.
4778
4779 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4780
4781 PR c++/6396
4782 * toplev.c (rest_of_compilation): Only run regrename and copy
4783 propagation if optimizing.
4784
4785 2002-04-28 Jakub Jelinek <jakub@redhat.com>
4786
4787 PR optimization/6475
4788 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
4789 register of REGNO_DECL (i).
4790 * Makefile.in (reload1.o): Add $(TREE_H).
4791
4792 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
4793
4794 * cppexp.c (lex): Update to use state.skip_eval.
4795 (struct op): Remove prio and flags members.
4796 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
4797 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
4798 (LEFT_ASSOC): New macro.
4799 (optab): New table of operator priorities and flags.
4800 (SHIFT): Update.
4801 (_cpp_parse_expr): Clean up logic. Return bool. Use a
4802 malloc-ed parser stack.
4803 (reduce): New; reduce the operator stack.
4804 (_cpp_expand_op_stack): Expand the operator stack as necessary.
4805 * cpphash.h (struct op): Predeclare.
4806 (struct cpp_reader): New members op_stack, op_limit.
4807 (struct lexer_state): New member skip_eval.
4808 (_cpp_parse_expr): Update.
4809 (_cpp_expand_op_stack): New.
4810 * cpplib.c (do_if): Update.
4811 * cppinit.c (cpp_create_reader): Create op stack.
4812 (cpp_destroy): And destroy it.
4813 * cpplib.h (CPP_LAST_CPP_OP): Correct.
4814 (TTYPE_TABLE): Correct.
4815
4816 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4817
4818 PR c/6343
4819 * c-decl.c (duplicate_decls): Call merge_weak.
4820 * c-pragma.c (apply_pragma_weak): Warn about misuse.
4821 * output.h (merge_weak): Prototype merge_weak.
4822 * varasm.c (merge_weak): New function.
4823 (declare_weak): Make sure we don't give an error on VAR_DECLs.
4824 Mark RTL with SYMBOL_REF_WEAK.
4825
4826 2002-04-27 Kurt Garloff <garloff@suse.de>
4827
4828 * tree-inline.c (inlinable_function_p): Improve heuristics
4829 by using a smoother function to cut down allowable inlinable size.
4830 * param.def: Add parameters max-inline-insns-single,
4831 max-inline-slope, min-inline-insns that determine the exact
4832 shape of the above function.
4833 * param.h: Likewise.
4834
4835 2002-04-26 Richard Henderson <rth@redhat.com>
4836
4837 * c-parse.in (malloced_yyss, malloced_yyvs): New.
4838 (yyoverflow): Re-add. Set them.
4839 (free_parser_stacks): New.
4840 * c-common.h: Declare it.
4841 * c-lex.c (c_common_parse_file): Call it.
4842
4843 2002-04-26 Richard Henderson <rth@redhat.com>
4844
4845 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
4846 for fallthru search.
4847
4848 2002-04-26 Eric Christopher <echristo@redhat.com>
4849
4850 PR optimization/3700
4851 * config/mips/mips.c (mips_issue_rate): Define. New function.
4852 (TARGET_SCHED_ISSUE_RATE): Use.
4853
4854 2002-04-25 David S. Miller <davem@redhat.com>
4855
4856 PR target/6422
4857 * reorg.c (optimize_skip): Do not allow exception causing
4858 instructions to be considered for delay slots.
4859 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
4860 (relax_delay_slots): Do not try to consider exception causing
4861 instructions as redundant.
4862
4863 2002-04-26 Richard Henderson <rth@redhat.com>
4864
4865 PR c/5225
4866 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
4867
4868 2002-04-26 Mark Mitchell <mark@codesourcery.com>
4869
4870 PR bootstrap/6445
4871 * config/i386/i386.md (untyped_call): Return the value in a float
4872 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
4873 TARGET_80387.
4874
4875 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
4876
4877 * tree.c (tree_int_cst_lt): Compare constants whose types differ
4878 in unsigned-ness correctly.
4879
4880 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
4881
4882 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
4883 portable runtime model.
4884
4885 2002-04-26 Richard Henderson <rth@redhat.com>
4886
4887 * c-parse.in (yyoverflow): Revert.
4888
4889 2002-04-26 David Edelsohn <edelsohn@gnu.org>
4890 Richard Henderson <rth@redhat.com>
4891
4892 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
4893 result as temporary value.
4894
4895 2002-04-26 Richard Henderson <rth@redhat.com>
4896
4897 PR c/3581
4898 * c-common.c (fix_string_type): Split out of ...
4899 (combine_strings): ... here. Take a varray, not a tree list.
4900 (c_expand_builtin_printf): Use fix_string_type.
4901 * c-common.h: Update decls.
4902 * c-parse.in (string): Remove. Update all uses to use STRING
4903 instead, and not call combine_strings.
4904 (yylexstring): New.
4905 (_yylex): Use it.
4906 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
4907 (build_asm_stmt): Likewise.
4908 * objc/objc-act.c (my_build_string): Use fix_string_type.
4909 (build_objc_string_object): Build varray for combine_strings.
4910
4911 2002-04-26 Bo Thorsen <bo@suse.co.uk>
4912
4913 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
4914 x86-64.
4915
4916 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
4917
4918 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
4919 (HAVE_NO_R_OPERAND): Remove.
4920 (HAVE_VALUE): Remove.
4921 (op_to_prio): Update.
4922 (UNARY): Don't alter flags.
4923 (_cpp_parse_expr): want_value used to indicate whether
4924 a number or unary operator is expected next. Distinguish
4925 unary and binary +/-.
4926 (op_as_text): Update for unary operators.
4927
4928 2002-04-25 Richard Henderson <rth@redhat.com>
4929
4930 PR c/2161
4931 * c-parse.in (yyoverflow): New.
4932
4933 2002-04-25 Richard Henderson <rth@redhat.com>
4934
4935 PR c/2098
4936 * c-common.c (shorten_compare): Simplfy conditions leading to
4937 the generation of a warning.
4938
4939 2002-04-25 Richard Henderson <rth@redhat.com>
4940
4941 PR c/2035
4942 * expmed.c (extract_bit_field): Fall through to generic code rather
4943 than aborting on subreg special case.
4944
4945 2002-04-25 David S. Miller <davem@redhat.com>
4946
4947 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
4948 for DECL being NULL.
4949
4950 2002-04-25 Steve Christiansen <smc@us.ibm.com>
4951
4952 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
4953
4954 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
4955
4956 * c-decl.c (grokdeclarator): Remove outdated ??? note
4957 on invalid declaration of flexible array members.
4958
4959 2002-04-25 Richard Henderson <rth@redhat.com>
4960
4961 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
4962
4963 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4964
4965 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
4966 needed by the compiler, even if they are used as global regs.
4967
4968 2002-04-25 Matt Hiller <hiller@redhat.com>
4969
4970 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
4971 functions.
4972 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
4973 of the corresponding functions.
4974 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
4975 New prototypes.
4976
4977 2002-04-25 Matt Hiller <hiller@redhat.com>
4978
4979 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
4980
4981 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
4982 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
4983 registers, adjust comment accordingly.
4984 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
4985 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
4986 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
4987 for coprocessor registers.
4988 (ADDITIONAL_REGISTER_NAMES): Include
4989 ALL_COP_ADDITIONAL_REGISTER_NAMES.
4990
4991 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
4992 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
4993 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
4994 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
4995 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
4996
4997 (mips_char_to_class): Adjust comment to include coprocessor
4998 constraint letters.
4999
5000 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5001 New functions.
5002 (mips_reg_names, mips_regno_to_class): Include coprocessor
5003 information.
5004 (mips_sw_reg_names): Ditto, make non-static.
5005 (mips_move_1word): Handle moves to and from coprocessor registers.
5006 (mips_move_2words): Handle moves to and from coprocessor
5007 registers.
5008 (mips_class_max_nregs, mips_register_move_cost): Handle
5009 coprocessor register classes.
5010 (override_options): Initialize mips_char_to_class and
5011 mips_hard_regno_mode_ok properly for coprocessor registers.
5012
5013 * config/mips/mips.md (movdi_internal, movdi_internal2,
5014 movsi_internal1, movsi_internal2): Add constraint-sets for
5015 coprocessor registers.
5016 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5017 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5018 isn't mips.
5019 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5020 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5021 isn't mips.
5022 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5023 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5024 isn't mips.
5025 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5026 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5027 isn't mips.
5028
5029 * doc/tm.texi: Document feature.
5030
5031 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5032
5033 * integrate.c (function_attribute_inlinable_p): Simplify.
5034 Check the table pointer is not NULL.
5035
5036 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5037
5038 * doc/c-tree.texi: Fix typo in introduction.
5039
5040 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5041
5042 * c-common.h (c_common_parse_file): Update.
5043 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5044 * c-lex.c (YYDEBUG): Get from c-lex.h.
5045 (c_common_parse_file): Update.
5046 * c-lex.h (YYDEBUG, yydebug): New.
5047 * c-parse.in (YYDEBUG): Get from c-lex.h.
5048 (c_set_yydebug): Remove.
5049 * c-tree.h (c_set_yydebug): Remove.
5050 * langhooks-def.h (lhd_do_nothing_i): New.
5051 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5052 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5053 * langhooks.c (lhd_do_nothing_i): New.
5054 (lhd_set_yydebug): Remove.
5055 * langhooks.h (struct lang_hooks): Update.
5056 * toplev.c (set_yydebug): New.
5057 (compile_file): Update call to parse_file hook.
5058 (decode_d_option): Update.
5059 objc:
5060 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5061
5062 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5063
5064 * loop.c (load_mems): Don't change the interface of called functions.
5065
5066 * calls.c (expand_call): Take current_function_pretend_args_size
5067 into account when setting argblock for sibcalls.
5068
5069 2002-04-24 Matt Hiller <hiller@redhat.com>
5070
5071 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5072 * c-lex.c: Ditto.
5073
5074 * cpplex.c (skip_line_comment): Process comment one multibyte
5075 character at a time rather than one char at a time, if
5076 appropriate.
5077 (parse_string): Process string one multibyte character at a time
5078 rather than one char at a time, if appropriate.
5079 * c-lex.c (lex_string): Lex and copy multibyte strings
5080 appropriately.
5081 * cpplib.h (cppchar_t): Change to unsigned.
5082
5083 2002-04-24 Richard Henderson <rth@redhat.com>
5084
5085 PR c/3467
5086 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5087 for c99.
5088
5089 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
5090
5091 * sh.c (sh_va_arg): If argument was passed by reference,
5092 dereference the pointer.
5093
5094 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5095
5096 * sh.md (divsi3_i4_media): Use match_operand for input values
5097 rather than hard registers.
5098 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5099 unnecessarily through hard registers. Keep copies of pseudo
5100 registers outside of the libcall sequence.
5101
5102 * sh.md (casesi_shift_media): Add modes.
5103
5104 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5105 values in memory.
5106
5107 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
5108
5109 * attribs.c (c_common_attribute_table): Move table and handlers
5110 to c-common.c.
5111 (format_attribute_table, lang_attribute_table,
5112 lang_attribute_common): Remove.
5113 (init_attributes): Replace NULL pointers with pointers to the
5114 empty table.
5115 (handle_packed_attribute, handle_nocommon_attribute,
5116 handle_common_attribute, handle_noreturn_attribute,
5117 handle_noinline_attribute, handle_always_inline_attribute,
5118 handle_used_attribute, handle_unused_attribute,
5119 handle_const_attribute, handle_transparent_union_attribute,
5120 handle_constructor_attribute, handle_destructor_attribute,
5121 handle_mode_attribute, handle_section_attribute,
5122 handle_aligned_attribute, handle_weak_attribute,
5123 handle_alias_attribute, handle_visibility_attribute,
5124 handle_no_instrument_function_attribute, handle_malloc_attribute,
5125 handle_no_limit_stack_attribute, handle_pure_attribute,
5126 handle_deprecated_attribute, handle_vector_size_attribute,
5127 vector_size_helper): Move to c-common.c.
5128 * c-common.c (c_common_attribute_table,
5129 handle_packed_attribute, handle_nocommon_attribute,
5130 handle_common_attribute, handle_noreturn_attribute,
5131 handle_noinline_attribute, handle_always_inline_attribute,
5132 handle_used_attribute, handle_unused_attribute,
5133 handle_const_attribute, handle_transparent_union_attribute,
5134 handle_constructor_attribute, handle_destructor_attribute,
5135 handle_mode_attribute, handle_section_attribute,
5136 handle_aligned_attribute, handle_weak_attribute,
5137 handle_alias_attribute, handle_visibility_attribute,
5138 handle_no_instrument_function_attribute, handle_malloc_attribute,
5139 handle_no_limit_stack_attribute, handle_pure_attribute,
5140 handle_deprecated_attribute, handle_vector_size_attribute,
5141 vector_size_helper): Move from attribs.c.
5142 * c-common.h (c_common_attribute_table,
5143 c_common_format_attribute_table): New.
5144 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5145 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5146 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5147 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5148 (LANG_HOOKS_INITIALIZER): Update.
5149 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5150 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5151 * target.h: Update comment.
5152 * tree.c (default_target_attribute_table): Remove.
5153 * tree.h (default_target_attribute_table, format_attribute_table,
5154 lang_attribute_table, lang_attribute_common): Remove.
5155 objc:
5156 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5157 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5158
5159 2002-04-24 Jason Merrill <jason@redhat.com>
5160
5161 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5162 * dwarf2out.c (dwarf_attr_name): Support it.
5163 (gen_array_type_die): Emit it.
5164 (lookup_type_die): No special handling for VECTOR_TYPE.
5165 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5166
5167 2002-04-24 Richard Henderson <rth@redhat.com>
5168
5169 * config/mips/mips.md (movdi_usd): Renumber.
5170
5171 2002-04-24 David S. Miller <davem@redhat.com>
5172
5173 PR target/6420
5174 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5175 32-bit Sparc and current_function_returns_struct is true.
5176
5177 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5178
5179 * loop.c (canonicalize_condition): Use gen_int_mode.
5180
5181 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
5182
5183 * config/rs6000/altivec.h: Cleanup file. Add non individual
5184 variants.
5185 (vec_vaddubm): New.
5186 (vec_vadduhm): New.
5187 (vec_vadduwm): New.
5188 (vec_vaddfp): New.
5189 (vec_vaddcuw): New.
5190 (vec_vaddubs): New.
5191 (vec_vaddsbs): New.
5192 (vec_vadduhs): New.
5193 (vec_vadduws): New.
5194 (vec_vaddsws): New.
5195 (vec_vand): New.
5196 (vec_vandc): New.
5197 (vec_vavgub): New.
5198 (vec_vavgsb): New.
5199 (vec_vavguh): New.
5200 (vec_vavgsh): New.
5201 (vec_vavguw): New.
5202 (vec_vavgsw): New.
5203 (vec_vrfip): New.
5204 (vec_vcmpbfp): New.
5205 (vec_vcmpequb): New.
5206 (vec_vcmpequh): New.
5207 (vec_vcmpequw): New.
5208 (vec_vcmpeqfp): New.
5209 (vec_vcmpgefp): New.
5210 (vec_vcmpgtub): New.
5211 (vec_vcmpgtsb): New.
5212 (vec_vcmpgtuh): New.
5213 (vec_vcmpgtsh): New.
5214 (vec_vcmpgtuw): New.
5215 (vec_vcmpgtsw): New.
5216 (vec_vcmpgtfp): New.
5217 (vec_vcmpgefp): New.
5218 (vec_vcfux): New.
5219 (vec_vcfsx): New.
5220 (vec_vctsxs): New.
5221 (vec_vctuxs): New.
5222 (vec_vexptefp): New.
5223 (vec_vrfim): New.
5224 (vec_lvx): New.
5225 (vec_lvebx): New.
5226 (vec_lvehx): New.
5227 (vec_lde): Add vector float variant.
5228 (vec_lvewx): New.
5229 (vec_lvxl): New.
5230 (vec_vlogefp): New.
5231 (vec_vmaddfp): New.
5232 (vec_vmhaddshs): New.
5233 (vec_vmaxub): New.
5234 (vec_vmaxsb): New.
5235 (vec_vmaxuh): New.
5236 (vec_vmaxsh): New.
5237 (vec_vmaxuw): New.
5238 (vec_vmaxsw): New.
5239 (vec_vmaxsw): New.
5240 (vec_vmaxfp): New.
5241 (vec_vmrghb): New.
5242 (vec_vmrghh): New.
5243 (vec_vmrghw): New.
5244 (vec_vmrglb): New.
5245 (vec_vmrglh): New.
5246 (vec_vmrglw): New.
5247 (vec_vminub): New.
5248 (vec_vminsb): New.
5249 (vec_vminuh): New.
5250 (vec_vminsh): New.
5251 (vec_vminuw): New.
5252 (vec_vminsw): New.
5253 (vec_vminfp): New.
5254 (vec_vmladduhm): New.
5255 (vec_vmhraddshs): New.
5256 (vec_msumubm): New.
5257 (vec_vmsummbm): New.
5258 (vec_vmsumuhm): New.
5259 (vec_vmsumshm): New.
5260 (vec_vmsumuhs): New.
5261 (vec_vmsumshs): New.
5262 (vec_vmuleub): New.
5263 (vec_vmulesb): New.
5264 (vec_vmuleuh): New.
5265 (vec_vmulesh): New.
5266 (vec_vmuloub): New.
5267 (vec_mulosb): New.
5268 (vec_vmulouh): New.
5269 (vec_vmulosh): New.
5270 (vec_vnmsubfp): New.
5271 (vec_vnor): New.
5272 (vec_vor): New.
5273 (vec_vpkuhum): New.
5274 (vec_vpkuwum): New.
5275 (vec_vpkpx): New.
5276 (vec_vpkuhus): New.
5277 (vec_vpkshss): New.
5278 (vec_vpkuwus): New.
5279 (vec_vpkswss): New.
5280 (vec_vpkshus): New.
5281 (vec_vpkswus): New.
5282 (vec_vperm): New.
5283 (vec_vrefp): New.
5284 (vec_vrlb): New.
5285 (vec_vrlh): New.
5286 (vec_vrlw): New.
5287 (vec_vrfin): New.
5288 (vec_vrsqrtefp): New.
5289 (vec_vsel): New.
5290 (vec_vslb): New.
5291 (vec_vslh): New.
5292 (vec_vslw): New.
5293 (vec_vsldoi): New.
5294 (vec_vsl): New.
5295 (vec_vslo): New.
5296 (vec_vspltb): New.
5297 (vec_vsplth): New.
5298 (vec_vspltw): New.
5299 (vec_vspltisb): New.
5300 (vec_vspltish): New.
5301 (vec_vspltisw): New.
5302 (vec_vsrb): New.
5303 (vec_vsrh): New.
5304 (vec_vsrw): New.
5305 (vec_vsrab): New.
5306 (vec_vsrah): New.
5307 (vec_vsraw): New.
5308 (vec_vsr): New.
5309 (vec_vsro): New.
5310 (vec_stvx): New.
5311 (vec_stvebx): New.
5312 (vec_stvehx): New.
5313 (vec_stvewx): New.
5314 (vec_stvxl): New.
5315 (vec_vsububm): New.
5316 (vec_vsubuhm): New.
5317 (vec_vsubuwm): New.
5318 (vec_vsubfp): New.
5319 (vec_vsubcuw): New.
5320 (vec_vsububs): New.
5321 (vec_vsubsbs): New.
5322 (vec_vsubuhs): New.
5323 (vec_vsubshs): New.
5324 (vec_vsubuws): New.
5325 (vec_vsubsws): New.
5326 (vec_vsum4ubs): New.
5327 (vec_vsum4sbs): New.
5328 (vec_vsum4shs): New.
5329 (vec_vsum2sws): New.
5330 (vec_vsumsws): New.
5331 (vec_vrfiz): New.
5332 (vec_vupkhsb): New.
5333 (vec_vupkhpx): New.
5334 (vec_vupkhsh): New.
5335 (vec_vupklsb): New.
5336 (vec_vupklpx): New.
5337 (vec_vupklsh): New.
5338 (vec_vxor): New.
5339
5340 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
5341
5342 PR c/5430
5343 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5344 added literals from substracted literals.
5345 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5346 (fold) [associate]: Preserve MINUS_EXPR if needed.
5347
5348 2002-04-23 Zack Weinberg <zack@codesourcery.com>
5349
5350 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5351 are obsoleted.
5352
5353 2002-04-23 Tom Tromey <tromey@redhat.com>
5354
5355 * gcc.c: Added --resource. For PR java/6314.
5356
5357 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5358
5359 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5360 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5361 these libraries.
5362
5363 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5364
5365 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5366
5367 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5368
5369 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5370 workaround.
5371 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5372 (ix86_expand_clrstr): Fix typo.
5373 * loop.c (gen_load_of_final_value): New.
5374 (loop_givs_rescan, strength_reduce, check_dbra_loop):
5375 Use it.
5376
5377 2002-04-23 Roger Sayle <roger@eyesopen.com>
5378
5379 * builtins.c (builtin_memset_gen_str): New function.
5380 (expand_builtin_memset): Optimize the case of constant length, but
5381 unknown value.
5382
5383 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
5384
5385 * config/rs6000/altivec.h (vec_step): Remove extraneous
5386 parentheses.
5387 (vec_ctu): Cast return.
5388
5389 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5390
5391 PR target/6413
5392 * function.h: (struct function): Add profile_label_no field.
5393 (current_function_profile_label_no): Define.
5394 * function.c: (profile_label_no): New static var.
5395 (expand_function_start): Increment it, and copy to
5396 current_function_profile_label_no.
5397 * output.h (profile_label_no): Delete.
5398 * final.c (profile_label_no): Delete.
5399 (profile_function): Use current_function_profile_label_no.
5400 (final_end_function): Don't increment profile_label_no here.
5401 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5402 profile_label_no with current_function_profile_label_no.
5403 * config/pa/pa.c (current_function_number): Delete.
5404 (pa_output_function_prologue): Don't output profile label here.
5405 (hppa_profile_hook): Use label_no param rather than
5406 current_function_number.
5407 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5408 * config/pa/pa.h: .. here.
5409 (FUNCTION_PROFILER): Output profile label here.
5410
5411 2002-04-22 Eric Christopher <echristo@redhat.com>
5412
5413 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5414 patch of 2002-04-09 due to binutils issues.
5415 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5416
5417 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5418
5419 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5420 constraint to 'o' for m=r and r=m alternatives.
5421 ("*movv8hi_internal1"): Same.
5422 ("*movv16qi_internal1"): Same.
5423 ("*movv4sf_internal1"): Same.
5424
5425 2002-04-22 Janis Johnson <janis187@us.ibm.com>
5426
5427 * rtl.h (RTX_FLAG): New macro.
5428 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5429 * final.c (alter_subreg): Use macro to access rtx flag.
5430 * integrate.c (copy_rtx_and_substitute): Use new access macro.
5431 * print-rtl.c (print_rtx): Use new access macro.
5432
5433 * cse.c (insert): Check rtx code before accessing flag.
5434
5435 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5436 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5437 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5438 convert_const_symbol_ref, make_canonical, make_alternative_compare,
5439 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5440 simplify_test_exp, optimize_attrs, simplify_by_exploding,
5441 find_and_mark_used_attributes, unmark_used_attributes,
5442 add_values_to_cover, simplify_with_current_value,
5443 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5444 copy_rtx_unchanging, main): Use new access macros.
5445
5446 2002-04-22 Tom Rix <trix@redhat.com>
5447
5448 * expmed.c (init_expmed): Generate shifted constant once.
5449
5450 2002-04-22 Zack Weinberg <zack@codesourcery.com>
5451
5452 * c-lex.c (lex_charconst): Call convert to get constant in
5453 proper type; don't just smash the type field.
5454 Fixes PR c/6300.
5455
5456 * config.gcc: Add list of obsolete configurations. Disallow
5457 building these without --enable-obsolete.
5458 * doc/install.texi: Document --enable-obsolete and obsoletion
5459 policy. Mention obsoletion of individual targets in
5460 appropriate places.
5461
5462 2002-04-22 Richard Henderson <rth@redhat.com>
5463
5464 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5465
5466 2002-04-22 Mark Mitchell <mark@codesourcery.com>
5467
5468 PR f/6138.
5469 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5470 (walk_fixup_memory_subreg): Likewise.
5471 (fixup_var_refs_insn): Adjust accordingly.
5472 (fixup_var_refs_1): Likewise.
5473
5474 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
5475
5476 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5477 LIBPATH_ARCH64_SPEC): Define.
5478 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5479 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5480 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5481 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5482
5483 2002-04-22 Joel Sherrill <joel@OARcorp.com>
5484
5485 * gthr-rtems.h: Correct prototypes to remove warnings.
5486
5487 2002-04-22 Richard Henderson <rth@redhat.com>
5488
5489 PR c/6344
5490 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5491
5492 * gcse.c (free_insn_expr_list_list): New.
5493 (clear_modify_mem_tables): Use it. Fix bit set usage.
5494 (canon_list_insert): Use EXPR_LISTs for expressions.
5495 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5496
5497 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
5498
5499 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
5500 file change and include code to _cpp_pop_buffer.
5501 * cpphash.h (struct pending_option): Predeclare.
5502 (struct cpp_reader): New member next_include_file.
5503 (_cpp_pop_file_buffer): Update.
5504 (_cpp_push_next_buffer): Update, rename.
5505 * cppinit.c (cpp_destroy): Free include chain and pending here.
5506 (cpp_finish_options): Simplify.
5507 (_cpp_push_next_buffer): Rename and clean up.
5508 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5509 Clarify.
5510 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5511
5512 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5513
5514 * config/rs6000/altivec.h (vec_xor): Add variant for both args
5515 being vector signed int.
5516 (vec_andc): Same.
5517 (vec_xor): Add variant for both args being vector signed char.
5518 Remove redundant variant.
5519 (vec_andc): Same.
5520
5521 2002-04-21 David S. Miller <davem@redhat.com>
5522
5523 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5524 compare mode in output RTL.
5525
5526 2002-04-22 David Edelsohn <edelsohn@gnu.org>
5527
5528 * config/rs6000/rs6000.c (rs6000_override_options): Correct
5529 style and formatting of previous patch.
5530
5531 2002-04-22 Alan Modra <amodra@bigpond.net.au>
5532
5533 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5534 flag_pic for ABI_AIX.
5535
5536 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5537
5538 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5539 * cppfiles.c (read_include_file): Similarly.
5540 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5541 uxstrdup ustrchr, ufputs): Similarly.
5542 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
5543 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
5544 cpp_ideq, parse_identifier, parse_number): Similarly.
5545 * cpplib.c (struct directive, dequote_string, D, run_directive,
5546 cpp_push_buffer): Similarly.
5547 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
5548 _cpp_create_definition, check_trad_stringification,
5549 cpp_macro_definition): Similarly.
5550
5551 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5552
5553 * cppmacro.c (funlike_invocation_p): Don't step back
5554 over CPP_EOF.
5555
5556 2002-04-21 David Edelsohn <edelsohn@gnu.org>
5557
5558 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
5559 labelno.
5560
5561 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
5562
5563 * doc/invoke.texi: Remove Chill references.
5564 * doc/gcc.texi: Update last modified date.
5565
5566 2002-04-20 Kazu Hirata <kazu@hxi.com>
5567
5568 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
5569 push and pop. Replace add.l with add.w.
5570
5571 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5572
5573 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
5574 multiply instructions for H8/300H case.
5575
5576 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5577
5578 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
5579 Bum three instructions from each routine.
5580
5581 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
5582
5583 * Makefile.in: Update.
5584 * decl.c (push_c_function_context, pop_c_function_context,
5585 mark_c_function_context): Rename for consistency.
5586 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
5587 * c-tree.h (push_c_function_context, pop_c_function_context,
5588 mark_c_function_context): Rename for consistency.
5589 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5590 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5591 * function.c (init_lang_status, save_lang_status,
5592 restore_lang_status, mark_lang_status, free_lang_status):
5593 Move to langhooks.h.
5594 (push_function_context_to, pop_function_context_from,
5595 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
5596 Update.
5597 * function.h (init_lang_status, save_lang_status,
5598 restore_lang_status, mark_lang_status, free_lang_status):
5599 Move to langhooks.h.
5600 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
5601 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
5602 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
5603 LANG_HOOKS_FUNCTION_INITIALIZER): New.
5604 (LANG_HOOKS_INITIALIZER): Update.
5605 (lhd_do_nothing_f): New.
5606 * langhooks.h (struct lang_hooks_for_functions): New.
5607 (struct lang_hooks): New hooks.
5608 * langhooks.c (lhd_do_nothing_f): New.
5609 objc:
5610 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5611 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5612
5613 2002-04-19 David S. Miller <davem@redhat.com>
5614
5615 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
5616 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
5617
5618 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5619
5620 PR optimization/3756
5621 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
5622 x = ((int) y < 0) ? cst1 : cst2.
5623
5624 2002-04-19 Jakub Jelinek <jakub@redhat.com>
5625
5626 PR c/6358
5627 * function.c: Reapply patch for c/6358.
5628 (expand_function_end): Copy decl_rtl's mode, not
5629 current_function_return_rtx mode.
5630
5631 2002-04-19 Joel Sherrill <joel@OARcorp.com>
5632
5633 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
5634 targets.
5635
5636 2002-04-19 Tom Tromey <tromey@redhat.com>
5637
5638 * doc/install.texi (Specific): Update status of Solaris 2.8.
5639 For PR libgcj/6158.
5640
5641 2002-04-19 Andreas Schwab <schwab@suse.de>
5642
5643 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
5644 (PUT_REAL): Restore old definition.
5645
5646 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5647 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5648
5649 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
5650 binutils 2.11.2 and higher generate smaller binaries than Sun's
5651 native tools.
5652
5653 2002-04-19 Mark Mitchell <mark@codesourcery.com>
5654
5655 PR c++/6352
5656 * toplev.c (rest_of_compilation): Do not defer functions for which
5657 TREE_SYMBOL_REFERENCED has already been set.
5658
5659 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
5660
5661 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
5662 alternative.
5663
5664 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
5665
5666 * builtins.c: Include langhooks.h.
5667 (lang_type_promotes_to): Remove.
5668 (expand_builtin_va_arg): Use new hook.
5669 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
5670 (simple_type_promotes_to): Move to c-typeck.c.
5671 * c-common.h (simple_type_promotes_to): Remove.
5672 * c-decl.c (duplicate_decls, grokdeclarator): Update.
5673 * c-format.c: Include langhooks.h.
5674 (check_format_types): Update.
5675 * c-tree.h (c_type_promotes_to): New.
5676 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
5677 (type_lists_compatible_p): Update.
5678 * langhooks-def.h (lhd_type_promotes_to): New.
5679 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
5680 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5681 * langhooks.c (lhd_type_promotes_to): New.
5682 * langhooks.h (struct lang_hooks_for_types): New hook.
5683 * tree.h (lang_type_promotes_to): Remove.
5684 objc:
5685 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
5686
5687 2002-04-18 Richard Henderson <rth@redhat.com>
5688
5689 * function.c: Revert patch for c/6358.
5690
5691 2002-04-18 Richard Henderson <rth@redhat.com>
5692
5693 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
5694 blocks. Handle multiple references to the TRAP block. Handle
5695 non-adjacent THEN and OTHER blocks.
5696
5697 2002-04-18 Richard Henderson <rth@redhat.com>
5698
5699 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
5700 crash with no type for by-mode libcalls.
5701
5702 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
5703
5704 2002-04-18 Bob Wilson <bob.wilson@acm.org>
5705
5706 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
5707 __xtensa_nonlocal_goto): Use a syscall instructions to flush
5708 the register windows.
5709
5710 2002-04-18 Zack Weinberg <zack@codesourcery.com>
5711
5712 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
5713 appropriate. Document need for extended precision even when
5714 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
5715 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
5716 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
5717 instead of relying on later syntax error when REAL_WIDTH > 5.
5718 * real.c: Define NE based only on whether or not we have a
5719 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
5720 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
5721 define GET_REAL and PUT_REAL as simple memcpy operations; no
5722 need to byteswap or round.
5723 Use #error instead of #ifdef-ing out the entire file, for
5724 prompt error detection.
5725
5726 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
5727
5728 2002-04-18 David S. Miller <davem@redhat.com>
5729
5730 * config/sparc/sparc.h (BRANCH_COST): Define.
5731
5732 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
5733 does it.
5734
5735 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
5736
5737 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
5738 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
5739 propagate_block calls after relaxation loop using new variable
5740 stabilized_prop_flags.
5741
5742 2002-04-18 Richard Henderson <rth@redhat.com>
5743
5744 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
5745 (ia64_va_arg): Expect variable sized types by reference.
5746 * config/ia64/ia64-protos.h: Update.
5747 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
5748 ia64_function_arg_pass_by_reference.
5749
5750 2002-04-18 Richard Henderson <rth@redhat.com>
5751
5752 * ifcvt.c: Include except.h.
5753 (block_has_only_trap): Break out from find_cond_trap.
5754 (find_cond_trap): Use it. Always delete the trap block.
5755 (merge_if_block): Allow then block null. Be less simplistic about
5756 what insns can end a block.
5757 * Makefile.in (ifcvt.o): Depend on except.h.
5758
5759 * config/ia64/ia64.md (trap, conditional_trap): New.
5760
5761 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5762
5763 PR c/6358
5764 * function.c (assign_parms): Assign hard current_function_return_rtx
5765 register here...
5766 (expand_function_end): ...not here.
5767
5768 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
5769
5770 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5771 * c-tree.h (c_incomplete_type_error): New.
5772 * c-typeck.c (require_complete_type, build_component_ref): Update.
5773 (incomplete_type_error): Rename.
5774 * langhooks-def.h (lhd_incomplete_type_error): New.
5775 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
5776 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5777 * langhooks.c (lhd_incomplete_type_error): New.
5778 * langhooks.h (struct lang_hooks_for_types): New hook.
5779 * tree.c (size_in_bytes): Use new hook.
5780 * tree.h (incomplete_type_error): Remove.
5781 objc:
5782 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5783
5784 2002-04-18 Zack Weinberg <zack@codesourcery.com>
5785
5786 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
5787 TARGET_FLOAT_FORMAT blocks.
5788
5789 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5790
5791 * doc/install.texi (Downloading the source): Do not mention Chill
5792 any longer, but mention Ada.
5793 (Configuration): Do not mention Chill any longer.
5794
5795 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
5796
5797 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
5798
5799 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
5800
5801 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
5802 in last patch.
5803
5804 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5805
5806 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
5807 instead of unsigned_type.
5808
5809 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
5810
5811 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
5812 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
5813 later.
5814
5815 2002-04-18 Bernd Schmidt <bernds@redhat.com>
5816
5817 * attribs.c (vector_type_node_list): New static variable.
5818 (handle_vector_size_attribute): Use it to avoid generating a
5819 new type node each time we are called.
5820
5821 * combine.c (subst): Avoid trying to make a vector mode subreg of
5822 an integer constant.
5823 (gen_lowpart_for_combine): Likewise.
5824
5825 2002-04-18 Roger Sayle <roger@eyesopen.com>
5826 Jakub Jelinek <jakub@redhat.com>
5827
5828 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
5829 for integer constant c (if x has unsigned type or sign bit is not
5830 set in c). This folds the zero/sign extension into the bit-wise and
5831 operation.
5832
5833 2002-04-18 Jakub Jelinek <jakub@redhat.com>
5834
5835 PR middle-end/6205
5836 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
5837 otherwise xorps.
5838
5839 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
5840
5841 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
5842
5843 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
5844
5845 * gcc.c (read_specs): Detect and fail if an attempt is made to
5846 rename a spec string to an already existing string.
5847
5848 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5849
5850 * config/s390/s390.c (legitimize_pic_address): Do not generate
5851 illegal address constant without CONST.
5852
5853 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5854
5855 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
5856 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
5857
5858 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5859
5860 PR optimization/6305
5861 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
5862 to make sure previous reloads are taken into account. Generate
5863 better code if one operand is an in-range immediate constant.
5864
5865 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
5866
5867 * doc/install.texi (Building): libgcj requires GNU make.
5868
5869 2002-04-17 Jakub Jelinek <jakub@redhat.com>
5870
5871 PR bootstrap/6315
5872 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
5873 even if hard quad and register is not floating.
5874 (movtf reg<-mem split): Disallow splitting if hard quad and
5875 register is floating.
5876 (movtf mem<-reg split): Likewise.
5877 * config/sparc/sparc.c (fp_register_operand): New predicate.
5878 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
5879
5880 2002-04-17 Zack Weinberg <zack@codesourcery.com>
5881
5882 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
5883 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
5884 (unprotoize.o): Ditto. Build from protoize.c. Define
5885 UNPROTOIZE on command line.
5886 * protoize.c: Include cppdefault.h. Delete include_defaults.
5887 (in_system_include_dir): Use cpp_include_defaults (defined in
5888 cppdefault.o).
5889 * unprotoize.c: Delete file.
5890
5891 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
5892
5893 * config/rs6000/altivec.h (vec_ld): Add array variants.
5894 (vec_lde): Same.
5895 (vec_ldl): Same.
5896
5897 2002-04-17 Alan Matsuoka <alanm@redhat.com>
5898 Aldy Hernandez <aldyh@redhat.com>
5899
5900 * config/rs6000/altivec.h: Define __ALTIVEC__.
5901 (bool): New.
5902 (__pixel): New.
5903 (pixel): New.
5904 (vec_cfux): New.
5905 (vec_vmaddfp): New.
5906 (vec_vsldoi): New.
5907 Add parentheses to all macro arguments.
5908
5909 2002-04-16 Richard Henderson <rth@redhat.com>
5910
5911 PR c++/6320
5912 * except.c (remove_eh_handler): Insert inner regions at beginning
5913 of sibling chain. Refactor expressions.
5914
5915 2002-04-16 Richard Henderson <rth@redhat.com>
5916
5917 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
5918 * config/sparc/sol2-gas-bi.h: New file.
5919 * config.gcc (sparc*-solaris): Add it as needed.
5920 * configure.in (AS_SPARC64_FLAG): Remove check.
5921 * config.in, configure: Regenerate.
5922
5923 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
5924
5925 2002-04-16 Richard Henderson <rth@redhat.com>
5926
5927 * config/mips/mips.c (override_options): Don't override N32 for
5928 a 64-bit ISA.
5929
5930 PR 6202
5931 * config/mips/mips.md (can_delay): Split out of existing define_delays.
5932 (HILO_delay): Set can_delay false.
5933
5934 2002-04-16 Dale Johannesen <dalej@apple.com>
5935
5936 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
5937 instruction addresses.
5938 (rs6000_output_function_epilogue): Likewise.
5939
5940 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
5941
5942 * c-parse.in (poplevel, compstmt_start,
5943 compstmt_primary_start): Add ending ';', in accordance
5944 with POSIX.
5945
5946 2002-04-16 Richard Henderson <rth@redhat.com>
5947
5948 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
5949 Adjust tm_file order to get TARGET_DEFAULT set properly.
5950 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
5951 * doc/install.texi (sparc-solaris): Update.
5952
5953 2002-04-16 Dale Johannesen <dalej@apple.com>
5954
5955 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
5956 comparison operands do not match each other or if modes of
5957 conditions do not match result.
5958
5959 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
5960
5961 PR target/6305
5962 * config/s390/s390.md (mulsidi3): Set both subregs of the
5963 multiword register.
5964
5965 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
5966
5967 * config/rs6000/altivec.h (vec_addc): Type check.
5968
5969 2002-04-16 Jakub Jelinek <jakub@redhat.com>
5970
5971 PR middle-end/6279
5972 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
5973
5974 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
5975
5976 2002-04-15 Richard Henderson <rth@redhat.com>
5977
5978 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
5979 call_really_used_regs too.
5980
5981 2002-04-15 Richard Henderson <rth@redhat.com>
5982
5983 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
5984
5985 2002-04-15 David S. Miller <davem@redhat.com>
5986
5987 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
5988 as being CLOBBERed.
5989
5990 2002-04-16 Jakub Jelinek <jakub@redhat.com>
5991
5992 PR c/6290
5993 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
5994 CONST_VECTOR is { 0, ... 0 }.
5995
5996 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
5997
5998 * doc/install.texi (Installing GCC: Configuration): Clarify
5999 the only supported ways to configure gcc.
6000
6001 2002-04-15 Roland McGrath <roland@frob.com>
6002
6003 * config.gcc (alpha*-*-gnu*): New target configuration.
6004 * config/alpha/gnu.h: New file for it.
6005 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6006
6007 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6008
6009 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6010 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6011 * tree.h (expand_start_stmt_expr): Update prototype.
6012 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6013 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6014 on the STMT_EXPR created for the inline function.
6015
6016 2002-04-15 Richard Henderson <rth@redhat.com>
6017
6018 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6019 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6020 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6021 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6022 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6023 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6024 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6025 Define __gnu_linux__, not gnu_linux.
6026 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6027
6028 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6029
6030 Remove Chill front end.
6031 * gcc.c (default_compilers): Remove Chill entries.
6032 * ch: Remove directory.
6033 * doc/frontends.texi: Remove information about Chill.
6034 * doc/sourcebuild.texi: Likewise.
6035 * doc/standards.texi: Likewise.
6036
6037 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6038
6039 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6040 (LONGLONG_STANDALONE): Define.
6041
6042 2002-04-15 David S. Miller <davem@redhat.com>
6043
6044 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6045 Call emit_library_call with LCT_NORMAL.
6046 (sparc_initialize_trampoline): Use LCT_foo instead of
6047 magic constant in emit_library_call invocations.
6048 (sparc64_initialize_trampoline): Likewise.
6049 (sparc_profile_hook): Likewise.
6050 * config/sparc/sparc.md: Likewise.
6051
6052 * config/sparc/sparc.c (sparc_extra_constraint_check):
6053 Fix type of argument 'c'.
6054 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6055 Likewise.
6056
6057 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6058
6059 * diagnostic.h (output_buffer_state): Redefine.
6060 (output_format_decoder): New macro.
6061 (output_prefixing_rule): Likewise.
6062 (output_line_cutoff): Likewise.
6063 (diagnostic_format_decoder): Adjust.
6064 (diagnostic_prefixing_rule): Likewise.
6065 (diagnostic_line_cutoff): Likewise.
6066 (diagnostic_state): Likewise.
6067 (diagnostic_kind_count): Likewise.
6068 (diagnostic_buffer): Now a macro.
6069
6070 * diagnostic.c (diagnostic_buffer): Remove definition.
6071 (output_is_line_wrapping): Adjust.
6072 (set_real_maximum_length): Likewise.
6073 (output_set_maximum_length): Likewise.
6074 (init_output_buffer): Likewise.
6075 (lhd_print_error_function): Likewise.
6076 (output_do_verbatim): Likewise.
6077
6078 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
6079
6080 * cpperror.c (print_location): Don't print include chain
6081 if line == 0.
6082 (cpp_begin_message): Update to use DL_ macros.
6083 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6084 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6085 cpp_notice, cpp_notice_from_errno): Remove.
6086 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6087 level.
6088 (cpp_errno): New.
6089 * cppexp.c (CPP_ICE): Remove.
6090 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6091 lex, integer_overflow, _cpp_parse_expr): Update.
6092 * cppfiles.c (read_include_file, find_include_file,
6093 handle_missing_header, _cpp_read_file, remap_filename): Update.
6094 * cpphash.h (enum error_type): Remove.
6095 (_cpp_begin_message): Update.
6096 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6097 cpp_handle_option, cpp_post_options): Update.
6098 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6099 skip_whitespace, parse_identifier, parse_slow, parse_string,
6100 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6101 cpp_interpret_charconst): Update.
6102 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6103 lex_macro_node, do_undef, glue_header_name, parse_include,
6104 do_include_common, read_flag, do_line, do_linemarker, do_ident,
6105 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6106 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6107 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6108 _cpp_pop_buffer, do_diagnostic): Update.
6109 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6110 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6111 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6112 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6113 cpp_notice, cpp_notice_from_errno): Remove.
6114 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6115 level.
6116 (cpp_errno): New.
6117 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6118 collect_args, enter_macro_context, save_parameter, parse_params,
6119 _cpp_create_definition, check_trad_stringification,
6120 cpp_macro_definition): Update.
6121 * cppmain.c (cpp_preprocess_file): Update.
6122 * fix-header.c (read_scan_file): Update.
6123
6124 2002-04-14 Andreas Schwab <schwab@suse.de>
6125
6126 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6127
6128 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6129
6130 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6131
6132 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6133
6134 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6135 not gnu_hurd.
6136
6137 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
6138
6139 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6140
6141 2002-04-13 Joel Sherrill <joel@OARcorp.com>
6142
6143 * config/sparc/t-elf: Enable v8 multilibs. Impacts
6144 sparc-elf and sparc-rtems targets.
6145
6146 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6147
6148 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6149 defined, and __gnu_hurd__ wherever __GNU__ is defined.
6150 * arm/linux-elf.h: Likewise.
6151 * cris/aout.h: Likewise.
6152 * cris/linux.h: Likewise.
6153 * i370/linux.h: Likewise.
6154 * i386/gnu.h: Likewise.
6155 * i386/linux-aout.h: Likewise.
6156 * i386/linux-oldld.h: Likewise.
6157 * i386/linux.h: Likewise.
6158 * i386/linux64.h: Likewise.
6159 * ia64/linux.h: Likewise.
6160 * m68k/linux-aout.h: Likewise.
6161 * m68k/linux.h: Likewise.
6162 * mips/linux.h: Likewise.
6163 * pa/pa-linux.h: Likewise.
6164 * pj/linux.h: Likewise.
6165 * rs6000/sysv4.h: Likewise.
6166 * s390/linux.h: Likewise.
6167 * sh/linux.h: Likewise.
6168 * sparc/linux-aout.h: Likewise.
6169 * sparc/linux.h: Likewise.
6170 * sparc/linux64.h: Likewise.
6171 * xtensa/linux.h: Likewise.
6172
6173 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
6174
6175 * stmt.c (check_unique_operand_names): Expect operand names to
6176 be strings rather than identifiers. Use simple_cst_equal to
6177 compare them.
6178 (resolve_operand_name_1): Make same identifier to string change here.
6179 * c-parse.in (asm_operand): Convert a named operand into a string.
6180 * cp/parse.y (asm_operand): Likewise.
6181
6182 2002-04-13 Andreas Schwab <schwab@suse.de>
6183
6184 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6185
6186 2002-04-12 Mark Mitchell <mark@codesourcery.com>
6187
6188 Revert these changes:
6189
6190 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6191
6192 PR c++/5571
6193 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6194
6195 2002-04-12 Richard Henderson <rth@redhat.com>
6196
6197 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6198 (sparc*-*-solaris): Clean up header files.
6199 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6200 and plan on generating 64-bit code.
6201 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6202 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6203 * config/sparc/sol2-sld-64.h: Rename ...
6204 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
6205 for AS_SPARC64_FLAG not defined.
6206 * config/sparc/sol2-gld-bi.h: New.
6207 * config/sparc/sol2-sld.h: Remove.
6208 * config/sparc/sol26-sld.h: New.
6209 * config/sparc/sol2.h: Tidy comments.
6210 * doc/install.texi: Document sparc-solaris configury changes.
6211
6212 2002-04-12 Richard Henderson <rth@redhat.com>
6213
6214 * recog.c (offsettable_address_p): Match the logic in adjust_address.
6215
6216 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6217 in 64-bit mode only. Use only for 32-bit or MEDLOW.
6218
6219 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6220
6221 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6222
6223 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
6224
6225 * pa.c (pa_can_combine_p): Call extract_insn before calling
6226 constrain_operands.
6227
6228 2002-04-12 Douglas B Rupp <rupp@gnat.com>
6229
6230 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6231 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6232 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6233 (CPP_PREDEFINES): Handle __declspec.
6234 * config/i386/t-interix (USER_H): Remove.
6235
6236 2002-04-12 DJ Delorie <dj@redhat.com>
6237
6238 * integrate.c (compare_blocks): Make comparisons safe for when
6239 sizeof(int) < sizeof(char *).
6240 (find_block): Likewise.
6241
6242 2002-04-12 Jan Hubicka <jh@suse.cz>
6243 David Edelsohn <edelsohn@gnu.org>
6244
6245 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6246 registers.
6247 (symbol_ref_operand): New.
6248 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6249 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6250
6251 2002-04-12 Andreas Schwab <schwab@suse.de>
6252
6253 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6254 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6255 overrides the definition in config/svr4.h.
6256
6257 2002-04-12 Eric Norum <eric.norum@usask.ca>
6258
6259 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6260 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6261 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6262 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6263 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6264 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6265 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6266 definitions to config/rtems.h and make the targets more similar.
6267
6268 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6269
6270 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6271 POINTERS_EXTEND_UNSIGNED.
6272 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6273 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6274
6275 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6276 not specified.
6277
6278 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
6279
6280 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6281 depends on TARGET_SHMEDIA, not TARGET_SH5.
6282
6283 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
6284
6285 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6286 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6287
6288 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6289
6290 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6291 no r0 clobber.
6292
6293 2002-04-12 Andreas Schwab <schwab@suse.de>
6294
6295 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6296
6297 2002-04-12 Richard Henderson <rth@redhat.com>
6298
6299 PR bootstrap/4191
6300 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6301
6302 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6303 modes spanning multiple hard regs.
6304
6305 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6306
6307 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6308
6309 * pa.c (pa_output_function_prologue): Don't accumulate the total
6310 number of code bytes when using TARGET_64BIT, or gas, SOM and not
6311 the portable runtime.
6312 (output_deferred_plabels): Handle 64bit plabels.
6313 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6314 generating pic code using the GAS assembler for object formats that
6315 are not SOM (ie., ELF32 and ELF64).
6316 (output_millicode_call): Check attribute type if attribute length is 28.
6317 Likewise use $PIC_pcrel$0. Only call get_attr_length and
6318 dbr_sequence_length once.
6319 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6320 dbr_sequence_length once.
6321 * pa.h (TARGET_SOM): Define if not defined.
6322 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6323 with GAS and not SOM.
6324 (jump, call_internal_reg, call_value_internal_reg): Likewise.
6325 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
6326
6327 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6328
6329 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6330 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6331 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6332 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6333 elfos.h and dbxelf.h values are fine now.
6334 * config/i386/freebsd.h, config/alpha/freebsd.h
6335 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6336
6337 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6338
6339 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6340 or set Acpu or Amachine. Reformat.
6341 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6342 define.
6343 (LINK_SPEC): Do not need to undef.
6344 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6345 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6346 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6347 define.
6348 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6349 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6350 (LINK_SPEC): Do not need to undef.
6351 (DONT_USE_BUILTIN_SETJMP): Do not define.
6352 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6353 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
6354 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6355 Remove trailing spaces.
6356 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6357 __ELF__, or set Acpu or Amachine. Reformat.
6358 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6359 define.
6360
6361 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6362
6363 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6364 all other *-*-freebsd* targets.
6365
6366 2002-04-11 Richard Henderson <rth@redhat.com>
6367
6368 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6369
6370 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6371
6372 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6373 Include {cpu}/{cpu}.h thru tm_file.
6374 (alpha*-*-linux*ecoff): Remove target.
6375 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6376 (LINK_SPEC): Remove, is not OS independent.
6377 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6378 (LINK_SPEC): Do not need to #undef any longer.
6379 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6380 any longer.
6381 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6382 __ELF__.
6383 (LINK_SPEC): Moved here from alpha/elf.h.
6384 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6385 SUB_CPP_PREDEFINES.
6386 * config/alpha/linux-ecoff.h: Remove.
6387 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6388 (CPP_SPEC): Define _POSIX_SOURCE as needed.
6389 (CPP_SUBTARGET_SPEC): Do not define.
6390 (LINK_SPEC): Do not need to #undef any longer.
6391 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6392 * config/alpha/vms.h: Likewise.
6393
6394 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6395
6396 * doc/extend.texi: Remove old claim that typedefs cannot have
6397 an alignment attribute.
6398
6399 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6400
6401 PR optimization/6177
6402 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6403 bitpos is 0 and bitsize CONCAT size.
6404
6405 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6406
6407 PR c/6223
6408 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6409
6410 2002-04-10 David O'Brien <obrien@FreeBSD.org>
6411
6412 * config/alpha/freebsd.h: Minor reformatting.
6413 (CPP_SPEC): Define ELF and add cpp_subtarget.
6414 (ASM_SPEC): No longer needed.
6415
6416 2002-04-11 Richard Henderson <rth@redhat.com>
6417
6418 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6419 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
6420 (dimode mem/zero splitter): New.
6421
6422 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
6423
6424 * config/cris/cris.c (cris_override_options): Tweak error message
6425 for PIC not implemented.
6426
6427 * config/cris/cris.h: Tweak comments related to parameter-passing.
6428
6429 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6430
6431 2002-04-10 Richard Henderson <rth@redhat.com>
6432
6433 * except.c (add_ehl_entry): Allow duplicates after landing pad
6434 creation.
6435
6436 2002-04-10 David Edelsohn <edelsohn@gnu.org>
6437
6438 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6439
6440 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
6441
6442 * c-decl.c (c_init_decl_processing): Move generation of
6443 decls for g77_integer_type_node and friends from here ...
6444 * c-common.c (c_common_nodes_and_builtins): ... to here.
6445
6446 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
6447
6448 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6449 is only used as frame pointer when frame_pointer_needed is true.
6450
6451 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
6452
6453 PR target/817
6454 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6455 for the fact that the pool entry uses two words.
6456 (movdf_hard_insn): Similarly. Also, ADR instruction can span
6457 1k bytes.
6458 (movdf_soft_insn): Similarly.
6459 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6460 for the fact that the pool entry uses three words.
6461
6462 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
6463
6464 * config/mips/mips.c (mips_va_arg): When using the struct version
6465 of the EABI va_list, allow arguments in the register save area to
6466 take up less room than a stack argument.
6467
6468 2002-04-10 Richard Henderson <rth@redhat.com>
6469
6470 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6471 if EXPAND_INITIALIZER.
6472
6473 2002-04-09 Richard Henderson <rth@redhat.com>
6474
6475 * config/alpha/alpha.md (movdi_er_maybe_g): New.
6476 * config/alpha/alpha.c (alpha_expand_mov): Use it.
6477
6478 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6479
6480 PR optimization/6233
6481 * rtlanal.c (pure_call_p): New function.
6482 * rtl.h (pure_call_p): Declare.
6483 * loop.c (prescan_loop): Use it to set has_nonconst_call.
6484 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6485
6486 2002-04-09 Eric Christopher <echristo@redhat.com>
6487
6488 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6489 information to .comm directive.
6490
6491 2002-04-09 Richard Henderson <rth@redhat.com>
6492
6493 PR c/5078
6494 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6495
6496 2002-04-09 Richard Henderson <rth@redhat.com>
6497
6498 * basic-block.h (flow_delete_block_noexpunge): Declare.
6499 (expunge_block_nocompact): Declare.
6500 * cfg.c (expunge_block_nocompact): Split out from ...
6501 (expunge_block): ... here.
6502 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6503 (flow_delete_block_noexpunge): Split out from ...
6504 (flow_delete_block): ... here.
6505 * cfgcleanup.c (delete_unreachable_blocks): Compact while
6506 removing dead blocks.
6507 * except.c (exception_handler_labels): Remove.
6508 (exception_handler_label_map): New.
6509 (struct eh_region): Add aka member.
6510 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6511 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6512 (for_each_eh_label, for_each_eh_label_1): New.
6513 (init_eh): Register exception_handler_label_map.
6514 (free_eh_status): Use free_region.
6515 (find_exception_handler_labels): Use the map, not the list.
6516 (remove_exception_handler_label): Likewise.
6517 (maybe_remove_eh_handler): Likewise.
6518 (remove_eh_handler): Use the region aka bitmap.
6519 * except.h (exception_handler_labels): Remove.
6520 (for_each_eh_label): Declare.
6521 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6522 * loop.c (invalidate_loops_containing_label): New.
6523 (find_and_verify_loops): Use it. Use for_each_eh_label.
6524 * sched-rgn.c (is_cfg_nonregular): Use
6525 current_function_has_exception_handlers.
6526
6527 2002-04-09 Richard Henderson <rth@redhat.com>
6528
6529 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6530 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6531 Do not return changed status.
6532 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6533 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6534 New functions that do return changed status.
6535 * sbitmap.h: Update decls.
6536 * gcse.c, lcm.c: Use _cg functions as needed.
6537
6538 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6539
6540 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6541 (sh64-*-elf*, sh-*-rtemself*): Likewise.
6542 * config/sh/embed_bb.c: New file.
6543 * config/sh/embed-elf.h: New file.
6544 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
6545 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
6546 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6547 __PTRDIFF_TYPE__ .
6548 (SUBTARGET_CPP_PTR_SPEC): Don't define.
6549 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
6550 Add subtarget_asm_endian_spec.
6551 (ASM_SPEC): Use subtarget_asm_endian_spec.
6552 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
6553 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
6554 (WCHAR_UNSIGNED): Define.
6555 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
6556 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6557 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
6558 Fix value.
6559 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
6560 (sh_adjust_cost): Likewise.
6561 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6562 __PTRDIFF_TYPE__ .
6563 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
6564 (WCHAR_TYPE_SIZE): Likewise.
6565 (ASM_SPEC): Use subtarget_asm_endian_spec.
6566 (SH_ELF_WCHAR_TYPE): #undef/ #define.
6567 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
6568 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
6569 (MAX_WCHAR_TYPE_SIZE): Don't #define .
6570 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
6571 (USER_LABEL_PREFIX): Don't #undef /#define .
6572 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6573 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
6574 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
6575 (ASM_SPEC): Likewise.
6576 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
6577 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
6578 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
6579 (LIB2FUNCS_EXTRA): Define.
6580 * t-sh64 (LIB2FUNCS_EXTRA): Define.
6581 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
6582 (LIB1ASMFUNCS_CACHE): Define.
6583 (LIB2FUNCS_EXTRA): Redefine empty.
6584
6585 2002-04-08 Richard Henderson <rth@redhat.com>
6586
6587 * reorg.c (get_branch_condition): Use reversed_comparison_code.
6588
6589 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6590
6591 * config/m68hc11/larith.asm (__map_data_section): Fix condition
6592 and optimize for size.
6593 (__do_global_ctors): Fix pointer comparison.
6594 (__do_global_dtors): Likewise.
6595
6596 2002-04-09 David S. Miller <davem@redhat.com>
6597
6598 * config/sparc/sparc.c (sparc_extra_constraint_check): New
6599 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
6600 allow reloading pseudos.
6601 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
6602 * config/sparc/sparc-protos.h: Declare it.
6603
6604 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
6605 unsigned comparison warning.
6606 (output_restore_regs): Mark leaf_function as unused.
6607
6608 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6609
6610 * expr.c (is_aligning_offset): New function.
6611 (expand_expr, case COMPONENT_EXPR): Call it.
6612
6613 2002-04-08 David S. Miller <davem@redhat.com>
6614
6615 PR target/6082
6616 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
6617
6618 Make init_priority work on Sparc when using GNU ld.
6619 * config/sparc/linux.h, config/sparc/linux64.h,
6620 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
6621 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
6622 * config/sparc/sol2-gld.h: New file to do the same.
6623 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
6624 sparc/sol2-gld.h to tm_file.
6625
6626 PR optimization/4328
6627 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
6628 * doc/md.texi: Document it.
6629 * config/sparc/sparc.md (movdi_insn_sp64_novis,
6630 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
6631 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
6632 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
6633 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
6634
6635 2002-04-08 Andreas Jaeger <aj@suse.de>
6636
6637 * stmt.c (expand_asm_operands): Revert last patch from Richard
6638 Henderson.
6639
6640 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6641
6642 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
6643 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
6644
6645 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6646
6647 * doc/contrib.texi (Contributors): Add David O'Brien.
6648
6649 2002-04-08 Alan Modra <amodra@bigpond.net.au>
6650
6651 * configure.in (auto-build.h): Use target_alias and build_alias
6652 when running configure.
6653 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
6654 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
6655 * configure: Regenerate.
6656
6657 2002-04-07 David S. Miller <davem@redhat.com>
6658
6659 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
6660
6661 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
6662
6663 PR 5933
6664 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
6665 generating 32-bit pic code.
6666
6667 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
6668
6669 * cppinit.c (cpp_create_reader): Initialize
6670 discard_comments_in_macro_exp.
6671 (COMMAND_LINE_OPTIONS): Add "-CC" option.
6672 (cpp_handle_option): Handle "-CC" option.
6673 * cpplex.c (save_comment): If saving a C++ comment in
6674 a directive, convert it to a C comment.
6675 (_cpp_lex_direct): Pass second comment start character to
6676 save_comment to indicate comment type.
6677 * cpplib.c (_cpp_handle_directive): If processing
6678 a "#define" directive and discard_comments_in_macro_exp
6679 is false, re-enable saving of comments.
6680 (lex_macro_node): If discard_comments_in_macro_exp is false,
6681 discard any comments before the macro identifier.
6682 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
6683 member.
6684 * cppmacro.c (cpp_get_token): If expanding a macro while
6685 processing a directive, discard any comments we might encounter.
6686 (parse_params): If discard_comments_in_macro_exp is false,
6687 ignore comments in the macro parameter list.
6688 * gcc.c (cpp_unique_options): Add "-CC" option.
6689 (option_map): Map "--comments-in-macros" to "-CC".
6690 * doc/cppopts.texi: Document "-CC" option.
6691 * f/lang-specs.h: Add "-CC" option.
6692 * testsuite/gcc.dg/cpp/maccom1.c: New test.
6693 * testsuite/gcc.dg/cpp/maccom2.c: New test.
6694 * testsuite/gcc.dg/cpp/maccom3.c: New test.
6695 * testsuite/gcc.dg/cpp/maccom4.c: New test.
6696 * testsuite/gcc.dg/cpp/maccom5.c: New test.
6697 * testsuite/gcc.dg/cpp/maccom6.c: New test.
6698
6699 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
6700
6701 PR middle-end/6180
6702 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
6703
6704 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6705
6706 PR c++/5571
6707 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6708
6709 PR opt/5120
6710 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
6711 RTX_UNCHANGING_P for the functions arguments when a tail call
6712 is made.
6713
6714 2002-04-06 Jason Merrill <jason@redhat.com>
6715
6716 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
6717 (parse_options_and_default_flags): Set them appropriately.
6718 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
6719
6720 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
6721
6722 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
6723 here.
6724
6725 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
6726 semicolon.
6727
6728 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
6729 types come in by-reference. Fix typo in comment.
6730
6731 2002-04-05 David S. Miller <davem@redhat.com>
6732
6733 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
6734 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
6735 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
6736 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
6737
6738 2002-04-05 David S. Miller <davem@redhat.com>
6739
6740 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
6741 are not going to emit return instructions, emit at least a nop
6742 for the sake of sane backtraces.
6743
6744 2002-04-05 Richard Henderson <rth@redhat.com>
6745
6746 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
6747
6748 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
6749
6750 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
6751
6752 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
6753
6754 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
6755 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
6756 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
6757
6758 2002-04-05 Andreas Schwab <schwab@suse.de>
6759
6760 * c-convert.c: Include c-common.h.
6761 * Makefile.in (c-convert.o): Updated.
6762
6763 2002-04-05 Jakub Jelinek <jakub@redhat.com>
6764
6765 * mklibgcc.in: Use separate libgcc.map for each multilib.
6766 * Makefile.in (distclean): Don't remove libgcc.map here.
6767
6768 2002-04-05 Jakub Jelinek <jakub@redhat.com>
6769
6770 * Makefile.in (s-mlib): Handle --disable-multilib by separate
6771 genmultilib invocation.
6772
6773 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
6774
6775 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
6776 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
6777 to num_gprs for symmetry.
6778 * config/mips/mips.c: Adjust accordingly.
6779
6780 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
6781
6782 * c-common.c (truthvalue_conversion): Rename, update.
6783 * c-common.h (c_common_truthvalue_conversion): New.
6784 * c-convert.c (convert): Update.
6785 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6786 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
6787 * c-typeck.c (build_binary_op, build_unary_op,
6788 build_conditional_expr): Update.
6789 * fold-const.c (constant_boolean_node, fold): Use langhook.
6790 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
6791 * langhooks.h (struct lang_hooks): New hook.
6792 * stmt.c (expand_decl_cleanup): Use langhook.
6793 * tree.h (truthvalue_conversion): Remove.
6794 objc:
6795 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6796
6797 2002-04-05 Alan Modra <amodra@bigpond.net.au>
6798
6799 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
6800 Add rules to make null object file.
6801
6802 2002-04-04 Jim Blandy <jimb@redhat.com>
6803
6804 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
6805 macro formal parameter names.
6806
6807 2002-04-04 David S. Miller <davem@redhat.com>
6808
6809 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
6810
6811 2002-04-04 Richard Henderson <rth@redhat.com>
6812
6813 PR middle-end/5099
6814 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
6815 Support copies into and out of memory. Don't accept allows_reg
6816 and allows_mem as gospel.
6817
6818 2002-04-04 Richard Henderson <rth@redhat.com>
6819
6820 PR opt/6165
6821 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
6822 (write_dependence_p): Likewise.
6823
6824 2002-04-04 Richard Henderson <rth@redhat.com>
6825
6826 * predict.c (estimate_bb_frequencies): Do frequency calculation
6827 with a volatile temporary.
6828
6829 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
6830
6831 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
6832
6833 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6834
6835 PR c++/6119
6836 * final.c (final_start_function): Don't bump profile_label_no here...
6837 (final_end_function): ...but here.
6838
6839 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6840
6841 * config/sparc/sparc.md (pic): New attribute.
6842 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
6843 into stack slots.
6844 (split after do_builtin_setjmp_setup): New.
6845
6846 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6847
6848 PR fortran/6106
6849 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
6850 change.
6851
6852 2002-04-04 Jakub Jelinek <jakub@redhat.com>
6853
6854 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
6855 UNITS_PER_WORD for zero sized aggregates.
6856
6857 2002-04-03 David S. Miller <davem@redhat.com>
6858
6859 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
6860 one-character spec for this, just use %(link_gcc_c_sequence).
6861
6862 2002-04-03 David S. Miller <davem@redhat.com>
6863
6864 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
6865 handling.
6866
6867 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
6868
6869 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
6870 (DWARF_FRAME_RETURN_COLUMN): Move.
6871 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6872 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
6873 * pa.c (except.h, predict.h): Include.
6874 (FRP): Delete.
6875 (store_reg_modify, set_reg_plus_d): Revise prototypes.
6876 (output_ascii): Add cast.
6877 (store_reg_modify): Revise to add frame notes.
6878 (set_reg_plus_d): Likewise.
6879 (compute_frame_size): Include space for eh data registers in frame if
6880 the current function calls eh_return.
6881 (hppa_expand_prologue): Ensure register %r2 is saved if the current
6882 function calls eh_return. Save eh data registers if the current
6883 function calls eh_return. Fix code to add frame notes. Emit
6884 blockage to prevent insns with frame notes being scheduled in the
6885 delay slot of calls.
6886 (hppa_expand_epilogue): Restore eh data registers and do final stack
6887 adjustment if the current function calls eh_return. Don't add frame
6888 notes.
6889 (output_call): Revise for change in length of call insn. Don't do
6890 return pointer adjustment for an unconditional jump in the delay slot
6891 of a call when using frame notes.
6892 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
6893 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
6894 (ARG_POINTER_CFA_OFFSET): Define.
6895 * pa.md (return_external_pic): New pattern.
6896 (prologue): Correct formatting. Use return_external_pic if current
6897 function calls eh_return.
6898 (call_internal_symref, call_value_internal_symref,
6899 sibcall_internal_symref, sibcall_value_internal_symref): Change default
6900 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
6901 respectively.
6902 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
6903
6904 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
6905 list of targets to check using "nop" insn.
6906 * configure: Rebuilt.
6907
6908 2002-04-04 Alan Modra <amodra@bigpond.net.au>
6909
6910 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
6911
6912 2002-04-03 David S. Miller <davem@redhat.com>
6913
6914 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
6915 library sequence passed to the linker.
6916 (LINK_COMMAND_SPEC): Use it.
6917 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
6918 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
6919 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6920
6921 2002-04-03 Jason Merrill <jason@redhat.com>
6922
6923 * except.c (struct eh_status): Remove protect_list.
6924 (begin_protect_partials, end_protect_partials): Remove.
6925 (add_partial_entry): Remove.
6926 * except.h: Remove prototypes.
6927
6928 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
6929 expand_decl_cleanup_eh.
6930
6931 PR c++/5636
6932 * tree.h (CLEANUP_EH_ONLY): New macro.
6933 * stmt.c (expand_decl_cleanup_eh): New fn.
6934 (expand_cleanups): Check CLEANUP_EH_ONLY.
6935 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
6936 Use expand_decl_cleanup_eh.
6937 (expand_stmt): Adjust.
6938 * c-common.h: Adjust prototype.
6939
6940 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
6941
6942 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
6943 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
6944 (cris_target_asm_function_epilogue): Ditto.
6945 (cris_initial_frame_pointer_offset): Ditto.
6946 (cris_simple_epilogue): Ditto.
6947 (cris_expand_builtin_va_arg): Variable-size types come in
6948 by-reference.
6949
6950 2002-04-03 David S. Miller <davem@redhat.com>
6951
6952 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
6953 little-endian.
6954 (set_fast_math): Correct 'fsr' type.
6955
6956 2002-04-03 Richard Henderson <rth@redhat.com>
6957
6958 PR opt/3569
6959 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
6960 * toplev.c (check_global_declarations): Use it.
6961 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
6962 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
6963 (LANG_HOOKS_DECLS): Add it.
6964 * langhooks.c (lhd_warn_unused_global_decl): New.
6965 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
6966 * c-objc-common.c (c_warn_unused_global_decl): New.
6967 * c-tree.h (c_warn_unused_global_decl): Declare.
6968 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
6969
6970 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
6971
6972 * langhooks-def.h (lhd_set_decl_assembler_name,
6973 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
6974 (LANG_HOOKS_INITIALIZER): Update.
6975 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
6976 * langhooks.h (struct lang_hooks): New hook.
6977 * tree.c (set_decl_assembler_name): Move to langhooks.c.
6978 (lang_set_decl_assembler_name): Remove.
6979 (init_obstacks): Don't set hook.
6980 (decl_assembler_name): New function.
6981 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
6982 (decl_assembler_name): New.
6983 (lang_set_decl_assembler_name): Remove.
6984
6985 2002-04-03 Jakub Jelinek <jakub@redhat.com>
6986
6987 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
6988 works properly with .hidden symbols.
6989 * configure: Rebuilt.
6990 * config.in: Rebuilt.
6991 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
6992 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
6993 properly with .hidden symbols.
6994
6995 2002-04-03 Jakub Jelinek <jakub@redhat.com>
6996
6997 PR middle-end/6102
6998 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
6999 USE argument.
7000
7001 2002-04-03 Richard Henderson <rth@redhat.com>
7002
7003 PR opt/4120
7004 * sched-rgn.c (sets_likely_spilled): New.
7005 (sets_likely_spilled_1): New.
7006 (add_branch_dependences): Use it.
7007
7008 2002-04-02 Richard Henderson <rth@redhat.com>
7009
7010 PR opt/4311
7011 * loop.h (LOOP_FIRST_PASS): New.
7012 * loop.c (strength_reduce): Mind it when deciding to unroll.
7013 * toplev.c (rest_of_compilation): Set it.
7014
7015 2002-04-02 David S. Miller <davem@redhat.com>
7016
7017 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7018 mems_ok_for_ldd_peep when the order of the loads being examined
7019 is reversed.
7020 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7021 existing comment to increase comprehension of this situation.
7022
7023 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7024
7025 * config/sh/sh.md: Don't use union real_extract.
7026
7027 2002-04-02 Richard Henderson <rth@redhat.com>
7028
7029 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7030
7031 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7032
7033 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7034 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7035 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7036 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7037 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7038 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7039 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7040 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7041 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7042 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7043 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7044 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7045 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7046 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7047 Include as many configury headers via tm_file as possible. This
7048 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7049 * config/openbsd-oldgas.h: New file.
7050 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7051 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7052 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7053 config/i386/i386-coff.h, config/i386/i386-interix.h,
7054 config/i386/iscdbx.h, config/i386/linux-aout.h,
7055 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7056 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7057 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7058 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7059 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7060 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7061 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7062 config/i386/vxi386.h: Do not directly include configury headers.
7063 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7064 Directly include configury headers that are no longer automatically
7065 included by the above headers.
7066 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7067 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7068 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7069 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7070 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7071 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7072 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7073 (TARGET_VERSION): Define.
7074 * config/i386/beos-elf.h, config/i386/freebsd.h,
7075 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7076 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7077 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7078 config/i386/sco5.h, config/i386/sysv4.h
7079 (TARGET_VERSION): Do not need to protect.
7080 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7081 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7082 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7083 config/i386/i386-interix.h, config/i386/linux-aout.h,
7084 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7085 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7086 (YES_UNDERSCORES): Do not define - not needed.
7087 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7088 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7089 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7090 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7091 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7092 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7093 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7094 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7095
7096 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
7097 Richard Henderson <rth@redhat.com>
7098
7099 PR c/5484
7100 * function.c (assign_temp): Accept either type or decl argument.
7101 Detect variables whose size is too large to fit into an integer.
7102 * stmt.c (expand_decl): Pass the decl, not the type.
7103
7104 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7105
7106 * protoize.c: Match include directory usage with cppdefault.c.
7107
7108 2002-04-03 Jeffrey A Law (law@redhat.com)
7109 Hans-Peter Nilsson <hp@bitrange.com>
7110
7111 * combine.c (simplify_comparison): Avoid narrowing a comparison
7112 with a paradoxical subreg when doing so would drop signficant bits.
7113
7114 2002-04-02 Steve Ellcey <sje@cup.hp.com>
7115
7116 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7117 if POINTERS_EXTEND_UNSIGNED is defined.
7118
7119 2002-04-02 Richard Henderson <rth@redhat.com>
7120
7121 PR opt/3967
7122 * local-alloc.c (contains_replace_regs): LO_SUM may contain
7123 replace regs.
7124
7125 2002-04-02 Richard Henderson <rth@redhat.com>
7126
7127 * doc/standards.texi: Document required freestanding libc entry points.
7128
7129 2002-04-02 Alan Modra <amodra@bigpond.net.au>
7130
7131 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7132 associated splitter. Remove MQ constraint.
7133 (ctrdi_internal4): Correct CCmode clobber.
7134
7135 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7136
7137 * milli64.S ($$dyncall): New function.
7138 * t-linux (LIB1ASMFUNCS): Revise module list.
7139 (LIB1ASMSRC): Use pa/milli64.S.
7140
7141 2002-04-02 Richard Henderson <rth@redhat.com>
7142
7143 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7144 rename solaris_sys_varargs_h.
7145
7146 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7147
7148 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7149 the same mode as its component.
7150
7151 2002-04-02 Richard Henderson <rth@redhat.com>
7152
7153 PR opt/190
7154 * final.c (this_is_asm_operands): Export.
7155 * output.h (this_is_asm_operands): Declare.
7156 * config/i386/i386.c (print_operand): Error odd asm operands.
7157
7158 2002-04-02 Richard Henderson <rth@redhat.com>
7159
7160 PR opt/420
7161 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7162
7163 2002-04-01 Richard Henderson <rth@redhat.com>
7164
7165 PR target/1538
7166 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7167 * fixinc/fixincl.x: Rebuild.
7168
7169 2002-04-01 Richard Henderson <rth@redhat.com>
7170
7171 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7172 (atomic_alloc, atomic_free): New.
7173 (SIZE, MASK_FOR, PTR_IN): New.
7174 (emergency_reg_state, emergency_reg_state_free): New.
7175 (emergency_labeled_state, emergency_labeled_state_free): New.
7176 (reg_state_alloced, labeled_state_alloced): New.
7177 (alloc_reg_state, free_reg_state): New.
7178 (alloc_label_state, free_label_state, free_label_states): New.
7179 (push, pop, dup_state_stack, free_state_stack): Use them.
7180 (desc_label_state): Likewise.
7181 (uw_frame_state_for): Free label states and state stack.
7182 (uw_update_reg_address): Eliminate warnings.
7183
7184 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
7185
7186 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7187 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7188
7189 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7190
7191 * c-decl.c (grokdeclarator): Update.
7192 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7193 * c-tree.h (c_mark_addressable): New.
7194 * c-typeck.c (default_function_array_conversion, build_unary_op,
7195 build_array_ref, convert_for_assignment): Update.
7196 (mark_addressable): Rename.
7197 * calls.c (try_to_integrate, expand_call): Use langhook.
7198 * expr.c (expand_expr): Use langhook.
7199 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7200 * langhooks.h (struct lang_hooks): New hook.
7201 * stmt.c (expand_asm_operands): Use langhook.
7202 * tree.h (mark_addressable): Remove.
7203 objc:
7204 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7205
7206 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7207
7208 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7209 in previous change.
7210
7211 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7212
7213 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7214 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7215
7216 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7217
7218 * c-common.c (unsigned_conversion_warning, convert_and_check,
7219 unsigned_type, signed_type, shorten_compare,
7220 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7221 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7222 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7223 New.
7224 * c-decl.c (grokdeclarator): Update.
7225 * c-format.c (check_format_types): Update.
7226 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7227 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7228 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7229 * convert.c (convert_to_integer): Use new hooks.
7230 * expmed.c (make_tree): Use new hooks.
7231 * expr.c (store_expr): Use new hooks.
7232 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7233 all_ones_mask_p, unextend, fold): Use new hooks.
7234 * langhooks.h (struct lang_hooks_for_types): New hooks.
7235 * tree.h (signed_or_unsigned_type, signed_type,
7236 unsigned_type): Remove.
7237 objc:
7238 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7239 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7240
7241 2002-03-31 Richard Henderson <rth@redhat.com>
7242
7243 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7244 (desc_frgr_mem): Fix reference to f16-f31.
7245
7246 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7247
7248 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7249 RTVEC_ELT): Const-ify.
7250 * varray.h (VARRAY_CHECK): Const-ify.
7251 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7252 ggc_mark_rtvec, ggc_mark): Const-ify.
7253
7254 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7255
7256 * diagnostic.c: Include langhooks-def.h.
7257 * Makefile.in (diagnostic.o): Update.
7258
7259 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7260
7261 * c-common.c (c_unsafe_for_reeval): Rename.
7262 * c-common.h (c_unsafe_for_reeval): Rename.
7263 * c-decl.c (finish_incomplete_decl): Rename.
7264 (c_init_decl_processing): Don't set langhook.
7265 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7266 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7267 * c-objc-common.c (c_objc_common_init): Don't set langhook.
7268 * c-tree.h (finish_incomplete_decl): Rename.
7269 * langhooks-def.h (lhd_unsafe_for_reeval): New.
7270 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7271 (LANG_HOOKS_INITIALIZER): Update.
7272 * langhooks.c (lhd_unsafe_For_reeval): New.
7273 * langhooks.h (struct langhooks): New hooks.
7274 * toplev.c (incomplete_decl_finalize_hook): Remove.
7275 (wrapup_global_declarations): Update.
7276 * tree.c (lang_unsafe_for_reeval): Remove.
7277 (unsafe_for_reeval): Update.
7278 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7279 Remove.
7280 objc:
7281 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7282 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7283
7284 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7285
7286 * diagnostic.c (print_error_function): Remove.
7287 (default_print_error_function): Rename.
7288 (report_error_function): Update.
7289 * diagnostic.h (print_error_function): Remove.
7290 (default_print_error_function): Remove.
7291 * langhooks-def.h (struct diagnostic_context): Predeclare.
7292 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7293 (LANG_HOOKS_INITIALIZER): Update.
7294 * langhooks.h (struct diagnostic context): Predeclare.
7295 (struct lang_hooks): New hook.
7296
7297 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7298
7299 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7300 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7301 !flag_pic.
7302 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7303 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7304 of PIC_OFFSET_TABLE_REGNUM thruout.
7305 * config/rs6000/rs6000.md: Likewise.
7306 * config/rs6000/darwin.h: Likewise.
7307
7308 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7309
7310 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7311 unsigned HOST_WIDE_INT, not unsigned int.
7312
7313 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7314
7315 PR middle-end/6096, middle-end/6098, middle-end/6099
7316 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7317 CODE_LABELs.
7318 (fill_slots_from_thread): Likewise.
7319
7320 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7321
7322 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7323 floating fields in float regs.
7324 (function_arg_record_value_2): Likewise.
7325
7326 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7327
7328 * config/mmix/mmix.md (define_constants): Remove misleading
7329 FIXME. Add MMIX_fp_rO_OFFSET.
7330 ("nonlocal_goto_receiver"): Don't have stack-frame address of
7331 saved rO as part of the pattern. Remove FIXME.
7332 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
7333 here, at output-time.
7334
7335 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7336
7337 PR middle-end/6100
7338 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7339 REG_BR_PRED.
7340 (output_v9branch): Likewise.
7341
7342 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7343
7344 * gcc.c: Revert previous patch for now.
7345 * config/i386/djgpp.h: Likewise.
7346
7347 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7348
7349 * config/mmix/crti.asm (_init): Register _fini with atexit.
7350 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7351
7352 2002-03-31 Richard Henderson <rth@redhat.com>
7353
7354 PR target/3997
7355 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7356 (ASM_OUTPUT_DEF_FROM_DECLS): New.
7357
7358 2002-03-31 Richard Henderson <rth@redhat.com>
7359
7360 * libgcc2.c (__bb_exit_func): Make static.
7361
7362 * config/alpha/alpha.md (trap): New.
7363
7364 2002-03-31 Richard Henderson <rth@redhat.com>
7365
7366 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7367 promoted argument types; build trap.
7368 (expand_builtin_trap): New.
7369 (expand_builtin): Use it.
7370 * stmt.c (expand_nl_goto_receivers): Likewise.
7371 * expr.h (expand_builtin_trap): Declare.
7372 * libfuncs.h (LTI_abort, abort_libfunc): New.
7373 * optabs.c (init_optabs): Init abort_libfunc.
7374
7375 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7376
7377 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7378 (LINK_COMMAND_SPEC): ... from here.
7379 (init_gcc_specs): Duplicate it here too, omitting
7380 shared_name in the second copy.
7381 (init_spec): Test for duplicate
7382 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7383
7384 2002-03-30 David S. Miller <davem@redhat.com>
7385
7386 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7387 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7388
7389 2002-03-30 Roger Sayle <roger@eyesopen.com>
7390 Richard Henderson <rth@redhat.com>
7391
7392 * regmove.c (combine_stack_adjustments_for_block): Avoid
7393 emitting a stack adjustment of zero bytes. Let delete_insn
7394 update bb->head.
7395
7396 2002-03-30 Richard Henderson <rth@redhat.com>
7397
7398 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7399 (sparc_emitting_epilogue): New.
7400 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7401 * config/sparc/sparc-protos.h: Update.
7402 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7403 (TARGET_SWITCHES): Update.
7404 * config/sparc/sparc.md (return): Remove.
7405 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7406 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7407 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7408 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7409 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7410 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7411 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7412 Remove MASK_EPILOGUE.
7413 * doc/invoke.texi: Update.
7414
7415 2002-03-30 Daniel Berlin <dan@dberlin.org>
7416
7417 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7418 CPP will start the file for us.
7419
7420 2002-03-30 Richard Henderson <rth@redhat.com>
7421
7422 PR target/5446
7423 * config/ia64/ia64.c (group_barrier_needed_p): Special case
7424 prologue_allocate_stack.
7425 (ia64_single_set): Use insn codes for recognition of special
7426 cases, not rtl matching.
7427 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7428
7429 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
7430
7431 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7432
7433 2002-03-30 Richard Henderson <rth@redhat.com>
7434
7435 PR target/6032
7436 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7437 or -fomit-frame-pointer with profiling.
7438 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7439 (FUNCTION_PROFILER): Do nothing.
7440 (PROFILE_HOOK): New.
7441 * config/sparc/sparc.c (sparc_override_options): Don't check
7442 code models for profiling.
7443 (sparc_function_profiler): Remove.
7444 (sparc_profile_hook): New.
7445 * config/sparc/sparc-protos.h: Update.
7446
7447 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7448
7449 PR optimization/6086
7450 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7451 of SUBREG of volatile MEM or because the MEM was mode dependent,
7452 return CLOBBER instead of unmodified SUBREG.
7453
7454 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7455
7456 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7457 when not optimizing.
7458
7459 * toplev.c (rest_of_compilation): Cann mark_constant_function
7460 only when optimizing.
7461
7462 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7463 are NULL.
7464
7465 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7466 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7467 (try_optimize_cfg): clear all AUX fields.
7468
7469 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7470 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7471 (ix86_address_cost): Be prepared for SUBREGed registers.
7472 (legitimate_address_p): Accept SUBREGed registers.
7473
7474 2002-03-29 Richard Henderson <rth@redhat.com>
7475
7476 PR target/5672
7477 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7478
7479 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7480
7481 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7482 for aggregate and TFmode types.
7483
7484 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7485
7486 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7487
7488 2002-03-29 Richard Henderson <rth@redhat.com>
7489
7490 PR target/5886
7491 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7492 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7493
7494 2002-03-29 Richard Henderson <rth@redhat.com>
7495
7496 PR target/6041
7497 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7498 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7499 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7500 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7501 conditional.
7502 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7503
7504 2002-03-29 Dale Johannesen <dalej@apple.com>
7505
7506 * loop.c (combine_movables): Do allow combination of pseudos.
7507
7508 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
7509
7510 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7511 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7512 No functional change except ...
7513 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
7514 * doc/install.texi (*-*-freebsd*): Document port configuration.
7515
7516 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7517
7518 * Makefile.in (convert.o, calls.o, expmed.o): Update.
7519 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7520 Use new hooks.
7521 * builtin-types.def (BT_PTRMODE): Update.
7522 * c-common.c (type_for_size): Rename c_common_type_for_size.
7523 (type_for_mode): Similarly.
7524 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7525 Use new hook.
7526 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7527 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7528 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7529 Redefine.
7530 * c-typeck.c (common_type, comptypes, default_conversion):
7531 Use new hooks.
7532 * calls.c: Include langhooks.h.
7533 (emit_library_call_value_1): Use new hooks. Avoid redundant
7534 calls.
7535 * convert.c: Include langhooks.h
7536 (convert_to_pointer, convert_to_integer): Use new hooks.
7537 * except.c (init_eh): Similarly.
7538 * expmed.c: Include langhooks.h.
7539 (expand_mult_add): Use new hooks.
7540 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7541 try_casesi): Similarly.
7542 * fold-const.c (optimize_bit_field_compare, make_range,
7543 decode_field_reference, fold_truthop, fold): Similarly.
7544 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
7545 put_var_into_stack): Similarly.
7546 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
7547 LANG_HOOKS_TYPE_FOR_SIZE): New.
7548 (LANG_HOOKS_TYPES_INITIALIZER): Update.
7549 * langhooks.h (lang_hooks_for_types): New hooks.
7550 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
7551 * tree.c (get_unwidened, get_narrower): Similarly.
7552 * tree.h (type_for_mode, type_for_size): Remove.
7553 * varasm.c (force_const_mem): Use new hooks.
7554 * utils2.c (nonbinary_modular_operation): Update.
7555 objc:
7556 * objc-act.c (handle_impent): Update.
7557 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
7558 Redefine.
7559
7560 2002-03-29 Steve Ellcey <sje@cup.hp.com>
7561
7562 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
7563 * config/ia64/ia64.c (basereg_operand): New.
7564 * config/ia64/ia64-protos.h (basereg_operand): Declare.
7565 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
7566
7567 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7568
7569 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
7570 unwind information when frame_pointer_needed.
7571 (mmix_assemble_integer): Tweak wording in comment.
7572
7573 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7574
7575 * Makefile.in (except.o): Update.
7576 * except.c: Include langhooks.h.
7577 (init_eh): Use langhook.
7578 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
7579 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
7580 (LANG_HOOKS_INITIALIZER): Update.
7581 * langhooks.h (lang_hooks_for_types): New.
7582 (struct lang_hooks): Add it.
7583 * tree.c (make_lang_type_fn, make_lang_type): Remove.
7584 * tree.h (make_lang_type_fn, make_lang_type): Remove.
7585 config:
7586 * alpha/alpha.c: Include langhooks.h.
7587 (alpha_build_va_list): Use langhook.
7588 * d30v/d30v.c: Include langhooks.h.
7589 (d30v_build_va_list): Use langhook.
7590 * i386/i386.c: Include langhooks.h.
7591 (ix86_build_va_list): Use langhook.
7592 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
7593 * s390/s390.c: Include langhooks.h.
7594 (s390_build_va_list): Use langhook.
7595 * stormy16/stormy16.c: Include langhooks.h.
7596 (stormy16_build_va_list): Use langhook.
7597
7598 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7599
7600 PR c++/5964
7601 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
7602 attributes.
7603 (length): Compute variable length for branches/calls/jumps here.
7604 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
7605 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
7606 define branch_type attribute.
7607 (divsi3_sp32): Maximum length is 6 not 7.
7608 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
7609 call_address_untyped_struct_value_sp32,
7610 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
7611 * config/sparc/sparc.c (empty_delay_slot): New function.
7612 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
7613 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
7614
7615 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7616
7617 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
7618 nonzero_bits if not needed.
7619 (nonzero_bits) [XOR]: Likewise.
7620 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
7621 reg_last_set_mode and mode are both MODE_INT, but not equal.
7622 (record_value_for_reg): Compute reg_last_set_nonzero_bits
7623 in nonzero_bits_mode for MODE_INT modes.
7624
7625 2002-03-28 Richard Henderson <rth@redhat.com>
7626
7627 PR target/5715
7628 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
7629 to GAS. Correct drift between alternatives.
7630
7631 2002-03-28 Richard Henderson <rth@redhat.com>
7632
7633 PR target/6087
7634 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
7635
7636 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
7637
7638 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
7639 emulation to the linker.
7640
7641 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
7642
7643 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
7644 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
7645
7646 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
7647
7648 * combine.c (simplify_and_const_int): Make sure to apply mask
7649 when force_to_mode returns a constant integer. PR3311.
7650
7651 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7652
7653 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
7654
7655 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7656
7657 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
7658 and Objective-C Dialect Options.
7659
7660 2002-03-28 Richard Henderson <rth@redhat.com>
7661
7662 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
7663 comparison should be done vs !=0 not >0 return code. Tidy cases.
7664
7665 2002-03-28 Richard Henderson <rth@redhat.com>
7666
7667 * c-decl.c (finish_function): New arg can_defer_p. Pass it
7668 on to c_expand_body.
7669 * c-tree.h (finish_function): Update decl.
7670 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
7671
7672 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
7673
7674 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
7675
7676 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
7677
7678 * rtlanal.c: Include flags.h
7679 (may_trap_p): Do not mark FP operations if trapping
7680 if !flag_trapping_math
7681 * Makefile.in (rtlanal.o): Add dependency on flag.h
7682 * ifcvt.c (noce_operand_ok): Avoid the lameness.
7683
7684 2002-03-27 Zack Weinberg <zack@codesourcery.com>
7685
7686 * mips.md: Use dconst1, not 1.0, as first argument of
7687 REAL_VALUE_LDEXP. Don't use union real_extract.
7688
7689 2002-03-28 Alan Modra <amodra@bigpond.net.au>
7690
7691 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
7692 rather than $target. Heed program_prefix and
7693 program_transform_name. Search for gas in cross-compiler case too.
7694 "test -x" rather than "test -f".
7695 (gcc_cv_ld): Likewise.
7696 (gcc_cv_nm): Heed program_prefix and program_transform_name.
7697 (gcc_cv_objdump): Likewise.
7698 * configure: Regenerate.
7699
7700 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7701
7702 * Makefile.in (attribs.o): Update.
7703 * attribs.c: Include langhooks.h.
7704 (decl_attributes): Use langhook.
7705 * c-decl.c (insert_default_attributes): Rename.
7706 * c-tree.h (c_insert_default_attributes): New.
7707 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
7708 (LANG_HOOKS_INITIALIZER): Update.
7709 * langhooks.h (struct lang_hooks): New hook.
7710 * tree.h (insert_default_attributes): Remove.
7711 objc:
7712 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
7713
7714 2002-03-27 Andreas Schwab <schwab@suse.de>
7715
7716 * config/i386/i386.c (classify_argument): Also check for
7717 QUAL_UNION_TYPE.
7718
7719 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7720
7721 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
7722 any more.
7723
7724 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
7725
7726 * i960.md (ret): Set PC.
7727 (nonlocal_goto): Fix expander.
7728 * builtins.c (epxand_builin_longjmp): Check that we've emitted
7729 some jump or call.
7730
7731 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
7732
7733 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
7734 of libcall regions.
7735
7736 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7737
7738 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
7739 assigning to BLOCK_FOR_INSN directly.
7740
7741 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
7742
7743 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
7744
7745 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7746
7747 * c-common.c (c_expand_expr): Fix prototype.
7748 * c-common.h (c_expand_expr): Always declare, update.
7749 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7750 * c-objc-common.c (c_objc_common_init): No global hook.
7751 * expr.c (expand_expr): Use langhook.
7752 * expr.h (enum expand_modifier): Conditionally declare.
7753 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
7754 (LANG_HOOKS_INITIALIZER): Update.
7755 * langhooks.c (lhd_expand_expr): New.
7756 * langhooks.h (struct lang_hooks): New hook.
7757 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
7758 (lang_independent_init): Don't default hook.
7759 objc:
7760 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7761
7762 2002-03-27 Richard Henderson <rth@redhat.com>
7763
7764 PR target/6054
7765 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
7766 TARGET_CONST_GP. Simplify conditions.
7767
7768 2002-03-27 Richard Henderson <rth@redhat.com>
7769
7770 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7771 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
7772 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
7773
7774 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
7775
7776 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
7777 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
7778 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
7779 Remove unnecessary masks.
7780 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
7781 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
7782 -mwindows, -mdll switches and their negations.
7783
7784 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
7785
7786 * gcc-common.c (lang_mark_false_label_stack): Remove.
7787 * ggc.h (lang_mark_false_label_stack): Similarly.
7788
7789 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
7790
7791 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
7792
7793 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
7794 or __rtems_ is defined.
7795
7796 2002-03-26 Richard Henderson <rth@redhat.com>
7797
7798 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
7799 if a non-trivial load was emitted.
7800 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
7801 in high+extra+low case.
7802
7803 2002-03-26 Richard Henderson <rth@redhat.com>
7804
7805 * config.gcc (sparc*-solaris): Use float_format=sparc.
7806
7807 2002-03-26 Richard Henderson <rth@redhat.com>
7808
7809 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7810 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
7811 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
7812 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
7813 (WINT_TYPE_SIZE): Fix at 32.
7814
7815 2002-03-26 Richard Henderson <rth@redhat.com>
7816
7817 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
7818 until after eh landing pad generation.
7819 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
7820 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
7821
7822 2002-03-26 Richard Henderson <rth@redhat.com>
7823
7824 * expr.h (ADD_PARM_SIZE): One more convert for INC.
7825
7826 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
7827
7828 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
7829 and warning switches.
7830 (cc1_options): Likewise.
7831
7832 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
7833
7834 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
7835 Restore more of the signal context. Set no_reg_stack_frame.
7836 * config/ia64/unwind-ia64.c (unw_state_record):
7837 Add no_reg_stack_frame, comments.
7838 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
7839 (uw_update_context): Adjust bsp when unwinding from leaf,
7840 but not signal frame.
7841
7842 2002-03-26 David Edelsohn <edelsohn@gnu.org>
7843
7844 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
7845
7846 2002-03-26 Bob Wilson <bob.wilson@acm.org>
7847
7848 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
7849
7850 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
7851
7852 PR target/5621
7853 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
7854 "Add a pool_range attribute", which was lost during the ARM/Thumb
7855 merge.
7856
7857 2002-03-26 Bob Wilson <bob.wilson@acm.org>
7858
7859 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
7860 a register into the MAC16 accumulator.
7861
7862 2002-03-26 Andrew Cagney <ac131313@redhat.com>
7863
7864 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
7865 (Warning Options): Document -Wswitch-enum.
7866 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
7867 -Wswitch.
7868 (warn_switch_enum): Define variables.
7869 * flags.h (warn_switch_enum): Declare variables.
7870 * stmt.c (expand_end_case_type): When warn_switch_enum /
7871 -Wswitch-enum, perform switch checks.
7872 Fix PR c/5044.
7873
7874 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
7875
7876 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
7877 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
7878 (reload_muladdsi_compare0_scratch): Delete.
7879
7880 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
7881
7882 * doc/install.texi (*-*-freebsd*): Update.
7883
7884 2002-03-26 Richard Henderson <rth@redhat.com>
7885
7886 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
7887 (SUB_PARM_SIZE): Cast DEC to ssizetype.
7888
7889 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
7890 types from the normal argument frame.
7891
7892 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
7893 variable sized objects by reference.
7894 (sparc_va_arg): Receive them by reference too.
7895
7896 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
7897
7898 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7899 code to not restoring global registers.
7900
7901 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
7902
7903 * Makefile.in (ggc-common.o): Update.
7904 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
7905 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
7906 * c-tree.h (c_mark_tree): New.
7907 * ggc-common.c: Include langhooks.h.
7908 (gcc_mark_trees): Use new langhook.
7909 * ggc-callbacks.c: Delete file.
7910 * ggc.h (lang_mark_tree): Remove.
7911 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
7912 (LANG_HOOKS_INITIALIZER): Update.
7913 * langhooks.h (struct lang_hooks): New hook.
7914 objc:
7915 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
7916
7917 2002-03-25 Zack Weinberg <zack@codesourcery.com>
7918
7919 * doc/cpp.texi: Exclude entire Top node from printed manual.
7920 Move option index after directive index. Insert page breaks
7921 before GFDL and concept index. Index environment variables
7922 with command line options.
7923 * doc/cppenv.texi: Use @vtable for environment variable list.
7924 Add paragraph explaining semantics of empty elements in path
7925 variables. Exclude a cross-reference to Fishkill from the
7926 manpage. Remove an unnecessary cross-reference of the entry
7927 right above the referer. Don't use @anchor in text that goes
7928 into manpage.
7929 * doc/cppopts.texi: Cross-reference the environment variables
7930 section, not the specific environment variable, for consistency.
7931
7932 2002-03-25 Richard Henderson <rth@redhat.com>
7933
7934 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
7935 anywhere in the block. Don't refer to insns that have been
7936 removed from the chain. Iterate backward through the new insns.
7937 Don't refer to edges that have been removed.
7938
7939 2002-03-26 Alan Modra <amodra@bigpond.net.au>
7940
7941 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
7942 test for overflow of constant.
7943
7944 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
7945
7946 PR target/2623
7947 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
7948 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
7949 these patterns on arm_archv4.
7950
7951 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
7952
7953 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
7954 int".
7955
7956 2002-03-25 Zack Weinberg <zack@codesourcery.com>
7957
7958 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
7959 float_handled, float_handler, float_signal, set_float_handler,
7960 and do_float_handler. Set handler for SIGFPE to crash_signal.
7961 * toplev.h: Don't prototype do_float_handler.
7962
7963 * c-lex.c: Fold parse_float into lex_number. Make warning
7964 about portability of hex float constants more informative, and
7965 don't issue it on top of a syntax error.
7966 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
7967 their callers.
7968 * real.h: Define REAL_VALUE_ABS here...
7969 * simplify-rtx.c: ... not here. Fold check_fold_consts,
7970 simplify_unary_real, simplify_binary_real, and
7971 simplify_binary_is2orm1 into their callers.
7972 * tree.c: Fold build_real_from_int_cst_1 into caller.
7973
7974 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
7975
7976 * tsystem.h: Include float.h here...
7977 * libgcc2.c: ... not here.
7978
7979 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
7980
7981 Fixes for: PR bootstrap/3591, target/5676
7982 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
7983 defined. Do not disable exceptions or rtti.
7984 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
7985 mcore.h. Disable exceptions and rtti, since they are not
7986 supported by EPOC.
7987
7988 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
7989
7990 * c-decl.c (maybe_build_cleanup): Remove.
7991 * expr.c (expand_expr): Use langhook.
7992 * langhooks-def.h (lhd_return_null_tree,
7993 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
7994 (LANGHOOKS_INITIALIZER): Update.
7995 * langhooks.c (lhd_return_null_tree): New.
7996 * langhooks.h (struct lang_hooks): New hook.
7997 * tree-inline.c (initialize_inlined_parameters): Use langhook.
7998 * tree.h (maybe_build_cleanup): Remove.
7999
8000 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8001
8002 * regrename.c (build_def_use): Move recog_memoized
8003 before extract_insn.
8004
8005 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8006
8007 PR target/6043
8008 * expr.c (emit_group_store): Handle storing into CONCAT.
8009
8010 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8011
8012 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8013 corresponding MATCH_DUP.
8014
8015 2002-03-24 Richard Henderson <rth@redhat.com>
8016
8017 * unroll.c (unroll_loop): Zero label_map.
8018
8019 * gcse.c: Include except.h.
8020 * Makefile.in (gcse.o): Update.
8021
8022 2002-03-24 Richard Henderson <rth@redhat.com>
8023
8024 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8025 Do resolve_unique_section before shared data clause.
8026
8027 2002-03-24 Richard Henderson <rth@redhat.com>
8028
8029 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8030
8031 2002-03-24 Richard Henderson <rth@redhat.com>
8032
8033 * recog.c (peephole2_optimize): Split blocks when EH insns are
8034 generated in the middle of a block. Do global life update if
8035 zapped EH edges.
8036
8037 2002-03-24 Richard Henderson <rth@redhat.com>
8038
8039 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8040
8041 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8042
8043 preprocessor/3951
8044 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8045 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8046 (init_dependency_output): Don't make no_output decision here.
8047
8048 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8049
8050 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8051 warn_switch. Update description.
8052 (expand_end_case_type): Call check_for_full_enumeration_handling
8053 when warn_switch.
8054
8055 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8056
8057 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8058 (m68hc11_split_move): Call it to see if the source and destination
8059 operands use the same direction auto inc/dec mode, otherwise make the
8060 source an offsetable memory operand and generate an add.
8061
8062 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8063
8064 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8065 register for operand 2.
8066 ("*subsi3_zero_extendqi"): Likewise.
8067 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8068 bits so that it is compatible with a pop.
8069 ("*andhi3_gen"): Likewise.
8070 ("xorhi3"): Likewise.
8071
8072 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8073
8074 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8075 -pedantic here...
8076 (cpp_post_options): ... not here.
8077
8078 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8079 Aldy Hernandez <aldyh@redhat.com>
8080
8081 Removal of separate preprocessor cpp0.
8082
8083 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8084 cpp0, install-common): Update.
8085 * c-common.c (flag_preprocess_only): New.
8086 (c_common_init): Preprocess for -E.
8087 * c-common.h (flag_preprocess_only): New.
8088 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8089 * c-objc-common.c (c_init_decl_processing): Exit quickly
8090 for NULL return from c_common_init.
8091 * cpplib.h (cpp_preprocess_file): New.
8092 * cppmain.c (main, general_init, pfile, progname): Remove.
8093 (do_preprocessing): Rename cpp_preprocess_file, don't call
8094 cpp_finish. Don't close stdout here.
8095 (setup_callbacks): Update prototype.
8096 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8097 Update.
8098 * tradcpp.c (main): Ignore -quiet.
8099 objc:
8100 * lang-specs.h (default_compilers): Preprocess with cc1obj.
8101
8102 2002-03-24 Richard Henderson <rth@redhat.com>
8103
8104 PR optimization/5742
8105 * machmode.def: Add inner mode field to complex modes.
8106 * config/mips/mips.c (mips_function_value): Always define. Add
8107 new argument to handle libcalls.
8108 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8109 (FUNCTION_VALUE): Likewise.
8110 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8111 * config/mips/mips-protos.h: Update.
8112
8113 2002-03-23 Richard Henderson <rth@redhat.com>
8114
8115 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8116 * config/sparc/sparc-protos.h: Update.
8117 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8118
8119 2002-03-23 Richard Henderson <rth@redhat.com>
8120
8121 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8122 _start or _init begins the text segment.
8123
8124 2002-03-23 David Edelsohn <edelsohn@gnu.org>
8125
8126 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
8127 not HOST_WIDEST_INT.
8128 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8129
8130 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
8131
8132 PR java/5489
8133 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8134 operand argument to output_return_instruction.
8135 * arm.c (arm_print_operand, case 'd'): If the operand is
8136 const_true_rtx then just return.
8137 (arm_print_operand, case 'D'): If the operand is const_true_rtx
8138 then abort.
8139
8140 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8141
8142 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8143 (Warning Options): Document -Wswitch-default.
8144 * toplev.c (W_options): Add -Wswitch-default. Update comment on
8145 -Wswitch.
8146 (warn_switch_default): Define variable.
8147 (warn_switch): Update comment.
8148 * flags.h (warn_switch_default): Declare variable.
8149 (warn_switch): Update comment.
8150 * stmt.c (expand_end_case): Check for and, when
8151 warn_switch_no_default, warn of a missing default case.
8152
8153 2002-03-23 Alan Modra <amodra@bigpond.net.au>
8154
8155 * real.h (N): Special case 128 bit doubles.
8156
8157 * combine.c (simplify_comparison): When widening modes, ignore
8158 sign extension on CONST_INTs.
8159
8160 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8161
8162 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8163 passed to adjust_address. Fix comment formatting.
8164
8165
8166 2002-03-22 Zack Weinberg <zack@codesourcery.com>
8167
8168 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8169 Always make REAL_VALUE_TYPE a struct containing an array of
8170 HOST_WIDE_INT, not a double. Tidy up the code deciding how
8171 big it is. Don't declare or use union real_extract.
8172
8173 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8174 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8175 (print_operand), config/arm/arm.c (output_move_double),
8176 config/arm/arm.md (consttable_4, consttable_8),
8177 config/romp/romp.c (output_fpops), config/s390/s390.h
8178 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8179 (xtensa_output_literal): Don't use union real_extract.
8180
8181 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8182 (sfmode_constant_to_ulong), config/ns32k/merlin.h
8183 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8184 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8185 (PRINT_OPERAND): Don't use local version of union
8186 real_extract.
8187
8188 * config/convex/convex.c (check_float_value), config/vax/vax.c
8189 (vax_float_literal), config/m88k/m88k.md (divdf3),
8190 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8191 config/pdp11/pdp11.c (output_move_quad): Don't do host
8192 arithmetic on target floating point quantities.
8193
8194 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8195 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8196
8197 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8198 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8199
8200 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8201 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8202 INFINITY.
8203 * print-rtl.c (print_rtx): Disable code which needs
8204 floating-point emulator.
8205 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8206 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8207 depending on HOST_FLOAT_FORMAT to be defined properly.
8208
8209 * config/1750a/1750a.c (get_double, float_label): Delete.
8210 (print_operand): Delete huge commented-out chunk. Use
8211 REAL_VALUE_TO_DECIMAL.
8212 * config/1750a/1750a-protos.h: Delete prototypes of deleted
8213 functions.
8214 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8215 IEEE_FLOAT_FORMAT.
8216 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8217 Use REAL_VALUE_TO_DECIMAL as ELF version does.
8218 * config/m88k/m88k.c (real_power_of_2_operand,
8219 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8220 real_extract out of the union; run the input through
8221 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8222 from that into the union.
8223 * config/pdp11/pdp11.c (output_move_double): Rearrange
8224 parentheses to make automatic indenter happy.
8225
8226 * doc/tm.texi (Cross-compilation): Rename node to "Floating
8227 Point" and rewrite to describe current situation. Also adjust
8228 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8229 match code.
8230 * doc/rtl.texi: Adjust cross reference.
8231
8232 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8233
8234 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8235 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8236 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8237 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8238 prevent use of sp as a reload register.
8239 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8240 non_acc_reg_operand.
8241 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8242 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8243 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8244 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8245
8246 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8247
8248 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8249 * cpplex.c (unterminated): Delete.
8250 (parse_string): No string literal may extend over multiple
8251 lines. Suppress the error when preprocessing assembly.
8252 * cppmain.c (scan_translation_unit): Strings are single-line.
8253
8254 * doc/cpp.texi: Update to match.
8255
8256 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8257
8258 PR optimization/5854
8259 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8260 Shut up warnings.
8261 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8262 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8263 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8264 const0 if scratch register was not allocated.
8265 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8266 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8267 with GEN_INT (...).
8268 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8269 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8270 with GEN_INT (...) everywhere. Remove constraints in define_split
8271 patterns.
8272 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8273 require scratch register for setting 0 into regs/non-pushable memory.
8274
8275 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8276
8277 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8278 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8279
8280 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
8281
8282 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
8283 * cppinit.c (cpp_create_reader): On by default.
8284 (cpp_handle_option): Handle -W[no-]endif-labels.
8285 (cpp_post_options): Also enable if -pedantic.
8286 * cpplib.c (do_else): Use it.
8287 (do_endif): Likewise.
8288 * doc/cppopts.texi: Document new option.
8289 * doc/invoke.texi: Document new option.
8290
8291 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
8292
8293 * config/i386/i386.c, config/i386/i386.md: Change all occurences
8294 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8295
8296 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8297
8298 * flow.c (calculate_global_regs_live): Clear aux fields of
8299 ENTRY and EXIT.
8300
8301 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8302
8303 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8304 REG or MEM subregs, pass rtx * instead of rtx to it.
8305 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8306 rtx * instead of rtx to alter_subreg.
8307 * config/m32r/m32r.c (gen_split_move_double): Likewise.
8308 * config/pj/pj.c (pj_output_rval): Likewise.
8309
8310 2002-03-22 Richard Henderson <rth@redhat.com>
8311
8312 PR target/3177
8313 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8314 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8315 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8316 (ia64_expand_prologue): Look at int_regs, not words, for number
8317 of incomming int regs.
8318
8319 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
8320
8321 * expr.c (expand_expr): A RESULT_DECL is part of a call.
8322
8323 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
8324
8325 * toplev.c (flag_loop_optimize, flag_crossjumping):
8326 New static variables.
8327 (rest_of_compilation): Conditionalize crossjumping and
8328 loop optimizer.
8329 (parse_options_and_default_flags): Default loop_optimize and
8330 crossjumping.
8331 (lang_independent_options): Add -fcrossjumping and -floop-optimize
8332 * invoke.texi (crossjumping, loop-optimize): Document.
8333
8334 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8335
8336 * real.c (eiisneg): Move outside #ifdef NANS.
8337
8338 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
8339
8340 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8341 frequencies match; avoid match on different loop depths.
8342 (try_crossjump_to_bb): Kill tests that no longer brings time
8343 savings.
8344 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8345 updating code.
8346 (split_edge): Likewise.
8347
8348 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8349 variable.
8350
8351 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8352 * cfgrtl.c: Include insn-config.h
8353 (split_block) Dirtify block in presence of conditional execution
8354
8355 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8356
8357 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8358 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8359 (function_arg): Constify CUMULATIVE_ARGS.
8360 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8361 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8362 (UNITS_PER_DOUBLE): New macro.
8363 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
8364 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
8365 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
8366 fp_regs and stack_words.
8367 (EABI_FLOAT_VARARGS_P): New macro.
8368 * config/mips/mips.c (struct mips_arg_info): New.
8369 (mips_arg_info): New function.
8370 (function_arg_advance): Use it. Add adjustment instructions here
8371 rather than in function_arg.
8372 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
8373 for VOIDmode at the beginning of the function.
8374 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
8375 (function_arg_pass_by_reference): Likewise.
8376 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8377 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8378 (mips_va_start): Likewise. Use the new stack_words field of
8379 CUMULATIVE_ARGS to set up overflow area. Reformat.
8380 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
8381 doubles and other types, aligning the overflow pointer for non-doubles
8382 too. Remove some code duplication. Replace hard-coded constants.
8383
8384 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8385
8386 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8387 (CLASS_UNITS): Undefine.
8388 (CLASS_MAX_NREGS): Use FP_INC.
8389 * config/mips/mips.c (compute_frame_size): Likewise.
8390 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8391
8392 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8393
8394 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8395 prototype, and handle lexing numbers and identifiers.
8396 (parse_identifier): Update to new form of parse_slow.
8397 (parse_number): Fast path only, use parse_slow otherwise.
8398 (_cpp_lex_direct): Update calls to parse_number.
8399
8400 2002-03-21 DJ Delorie <dj@redhat.com>
8401
8402 * bb-reorder.c (make_reorder_chain_1): Protect against
8403 when redundant edges are omitted.
8404 * predict.c (dump_prediction): Likewise.
8405
8406 2002-03-21 Richard Henderson <rth@redhat.com>
8407
8408 PR target/5996
8409 * fixinc/inclhack.def (solaris_stdio_tag): New.
8410 * fixinc/fixincl.x: Regenerate.
8411
8412 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8413
8414 PR c/5597
8415 * c-typeck.c (process_init_element): Flag non-static
8416 initialization of a flexible array member as illegal.
8417
8418 2002-03-22 Alan Modra <amodra@bigpond.net.au>
8419
8420 * config/rs6000/t-linux64: New.
8421 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8422 t-ppccomm. Use t-rs6000 and t-linux64.
8423 (powerpc64-*-gnu* <tmake_file>): Likewise.
8424 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8425 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8426 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8427
8428 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
8429
8430 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8431 flag_really_no_inline instead of optimize == 0.
8432
8433 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8434
8435 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8436
8437 * flags.h (flag_really_no_inline): New.
8438
8439 * c-common.c (c_common_post_options): Initialize
8440 flag_really_no_inline.
8441
8442 * toplev.c (flag_really_no_inline): New.
8443
8444 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8445
8446 * config/avr/avr.md (length): Fix length computation for
8447 conditional branches.
8448
8449 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
8450
8451 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8452 sdbout.o, profile.o): Update.
8453 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8454 langhook.
8455 * c-common.h (gettags): Move here from tree.h.
8456 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8457 insert_block, getdecls, kept_level_p, global_bindings_p): New.
8458 * dbxout.c (dbxout_init): Use getdecls langhook.
8459 * expr.c (expand_expr): Use insert_block langhook.
8460 * fold-const.c: Include langhooks.h.
8461 (fold_range_test, fold_binary_op_with_conditional_arg,
8462 fold): Use global_bindings_p langhook.
8463 * integrate.c (expand_inline_function): Use insert_block langhook.
8464 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8465 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8466 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8467 LANG_HOOKS_GETDECLS): New.
8468 (LANG_HOOKS_INITIALIZER): Update.
8469 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8470 langhook.
8471 * langhooks.h (struct lang_hooks_for_decls): New.
8472 (struct lang_hooks): Update.
8473 * profile.c: Include langhooks.h.
8474 (output_func_start_profiler): Use new langhooks.
8475 * sdbout.c: Include langhooks.h.
8476 (sdbout_init, sdbout_finish): Use getdecls langhook.
8477 * stmt.c: Include langhooks.h.
8478 (expand_fixup, fixup_gotos): Use new langhooks.
8479 * stor-layout.c: Include langhooks.h.
8480 (variable_size): Use global_bindings_p langhook.
8481 * toplev.c (compile_file): Use getdecls langhook.
8482 * tree-inline.c (remap_block): Use insert_block langhook.
8483 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8484 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8485
8486 2002-03-21 Richard Henderson <rth@redhat.com>
8487
8488 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8489 constants in .data when -fpic.
8490
8491 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8492
8493 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8494 where appropriate.
8495
8496 2002-03-21 Tom Tromey <tromey@redhat.com>
8497
8498 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
8499
8500 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8501
8502 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8503
8504 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8505
8506 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8507 Richard Henderson <rth@redhat.com>
8508
8509 PR c/5354
8510 * c-common.c (c_expand_expr): Preserve result of a statement
8511 expression if needed.
8512
8513 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8514
8515 PR bootstrap/4195
8516 * genrecog.c (maybe_both_true_mode): Remove.
8517 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8518 * machmode.def (Pmode): Likewise.
8519
8520 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
8521
8522 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8523 (nonlocal_mentioned_p_1): New function.
8524 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8525 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8526 (mark_constant_function): Recognize pure functions.
8527 * rtl.h (global_reg_mentioned_p): New prototype.
8528 * rtlanal.c (global_reg_mentioned_p,
8529 global_reg_mentioned_p_1): New function.
8530
8531 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8532
8533 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8534 UNIX assert.h.
8535 * fixinc/fixincl.x: Regenerate.
8536
8537 2002-03-20 Jason Merrill <jason@redhat.com>
8538
8539 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8540
8541 2002-03-20 Michael Meissner <meissner@redhat.com>
8542
8543 * doc/invoke.texi (Optimize Options): Document that -O2 sets
8544 -fstrict-aliasing.
8545
8546 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8547
8548 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
8549 ".literal_position" directive before the constant pool.
8550
8551 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8552
8553 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
8554 Add Craig Rodrigues.
8555 Add Brad Lucier to testers.
8556
8557 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8558
8559 PR target/4792
8560 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
8561 to if_then_else.
8562 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
8563 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
8564 instead of insn_extract.
8565
8566 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8567
8568 PR bootstrap/4192
8569 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
8570
8571 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
8572 stmt if some case has been output.
8573
8574 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8575
8576 PR c/5972
8577 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
8578 movsfcc_1, movdfcc_1): Add %O2.
8579 * config/i386/i386.c (print_operand): Handle %ON.
8580 Print . before float condition codes in Sun as cmov syntax.
8581 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
8582 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
8583 no longer true.
8584
8585 2002-03-20 Philip Blundell <pb@nexus.co.uk>
8586
8587 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
8588 return instruction if PC was popped.
8589
8590 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8591
8592 * config/xtensa/xtensa.md: Remove unused type attributes.
8593 (adddi_carry, subddi_carry): Change type attribute to "multi".
8594
8595 2002-03-19 Dale Johannesen <dalej@apple.com>
8596
8597 PR optimization/5999, middle-end/5731
8598 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
8599 multiplications by reciprocals.
8600
8601 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
8602
8603 * Makefile.in: Update.
8604 * c-common.c: Include langhooks.h.
8605 (inline_forbidden_p): Use new hook.
8606 * diagnostic.c: Include langhooks.h.
8607 (format_with_decl, announce_function,
8608 default_print_error_function): Use new hook.
8609 * dwarf2out.c (dwarf2_name): Use new hook.
8610 * function.c: Include langhooks.h.
8611 (init_function_start): Use new hook.
8612 * langhooks-def.h (lhd_decl_printable_name): New.
8613 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
8614 (LANGHOOKS_INITIALIZER): Update.
8615 * langhooks.c (lhd_decl_printable_name): New.
8616 * langhooks.h (struct lang_hooks): New hook.
8617 * toplev.c (decl_name, decl_printable_name): Remove.
8618 (open_dump_file): Use new hook.
8619 (process_options): Remove old hook.
8620 * tree.h (decl_printable_name): Remove.
8621 objc:
8622 * objc-act.c (objc_init): Remove old hook.
8623 (objc_printable_name): Export.
8624 * objc-act.h (objc_printable_name): New.
8625 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
8626
8627 2002-03-19 Jim Blandy <jimb@redhat.com>
8628
8629 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
8630 the start_source_file debug hook, not the current line number.
8631
8632 2002-03-19 Richard Henderson <rth@redhat.com>
8633
8634 * flow.c (EH_USES): Provide default.
8635 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
8636 * doc/tm.texi (EH_USES): New.
8637
8638 * config/ia64/ia64.c (ia64_eh_uses): New.
8639 * config/ia64/ia64-protos.h: Update.
8640 * config/ia64/ia64.h (EH_USES): New.
8641
8642 2002-03-19 Richard Henderson <rth@redhat.com>
8643
8644 * varasm.c (output_constant_def): Fix stupid typo.
8645
8646 2002-03-19 Richard Henderson <rth@redhat.com>
8647
8648 PR 5879
8649 * except.c (current_function_has_exception_handlers): New.
8650 * except.h: Declare it.
8651 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
8652 Combine tests that disable all sibcalls for the function.
8653
8654 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
8655
8656 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
8657 for INTEGER_CST.
8658
8659 2002-03-19 Richard Henderson <rth@redhat.com>
8660
8661 PR 5977, 5991
8662 * config/ia64/ia64.c: Revert 2002-03-01 patch.
8663 * config/ia64/ia64.h (INIT_EXPANDERS): New.
8664
8665 2002-03-19 Jim Blandy <jimb@redhat.com>
8666
8667 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
8668 name, even if the replacement list contains no tokens, as required
8669 by Dwarf.
8670
8671 2002-03-19 Jason Merrill <jason@redhat.com>
8672
8673 * varasm.c (globalize_decl): Get the name from the RTL, not
8674 DECL_ASSEMBLER_NAME.
8675
8676 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
8677
8678 2002-03-19 Bob Wilson <bob.wilson@acm.org>
8679
8680 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
8681 subdi_carry): Define.
8682
8683 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8684
8685 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
8686 about -fpic/-fPIC if extra_warnings set.
8687
8688 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8689
8690 * expr.c (expand_expr): Sign-extend CONST_INT generated from
8691 TREE_STRING_POINTER.
8692 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
8693
8694 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8695
8696 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
8697 in favor of SP if FRAME_POINTER_REQUIRED is false.
8698
8699 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
8700
8701 * emit-rtl.c (gen_int_mode): New function.
8702 * rtl.h: Prototype for it.
8703 * combine.c (make_extraction, simplify_comparison), expmed.c
8704 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
8705 (convert_modes, store_field), optabs.c (expand_fix),
8706 simplify-rtx.c (neg_const_int, simplify_unary_real),
8707
8708 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
8709 Use it instead of GEN_INT (trunc_int_for_mode (...)).
8710
8711 2002-03-19 Jakub Jelinek <jakub@redhat.com>
8712
8713 PR c/5656
8714 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
8715 convert_parm_for_inlining.
8716 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
8717 Define.
8718 * langhooks-def.h: Likewise.
8719 * objc/objc-lang.c: Likewise.
8720 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
8721 function.
8722 * tree-inline.c (initialize_inlined_parameters):
8723 Call convert_parm_for_inlining lang hook if needed.
8724 * c-typeck.c (c_convert_parm_for_inlining): New function.
8725 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
8726
8727 2002-03-18 Mark Mitchell <mark@codesourcery.com>
8728
8729 * calls.c (precompute_arguments): Do not assume that temporaries
8730 can be destroyed after expanding the argument.
8731 (expand_call): Likewise.
8732
8733 2002-03-15 Eric Christopher <echristo@redhat.com>
8734
8735 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
8736 Fix register preference on last change.
8737 * config/mips/mips.c (mips_return_in_memory): New function.
8738 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
8739 * config/mips/mips-protos.h: Declare.
8740 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
8741 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
8742
8743 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
8744
8745 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
8746 a register too.
8747 (anddi3, iorsi3): Likewise.
8748
8749 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
8750 use %gprel for symbols that are going to be placed in linkonce
8751 sections.
8752
8753 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
8754 RETURN_ADDRESS_POINTER_REGNUM to $ra.
8755 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
8756 not needed. Disregard leaf_function_p().
8757 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
8758 mips16 frame pointer.
8759 * config/mips/mips.md (store ra): Only to small SP offsets.
8760 2001-08-22 Graham Stott <grahams@redhat.com>
8761 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
8762 return a REG rtx for the return address register.
8763
8764 2002-03-18 Bob Wilson <bob.wilson@acm.org>
8765
8766 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
8767 constant-pool addresses as "mode-dependent".
8768 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
8769
8770 2002-03-18 Jakub Jelinek <jakub@redhat.com>
8771
8772 PR target/5740
8773 * expr.c (emit_group_load): Use extract_bit_field if
8774 needed for CONCAT arguments.
8775
8776 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
8777
8778 PR target/4863
8779 * arm.md (tablejump): Make this a define_expand. For PIC add the
8780 offset to the base of the table.
8781 (thumb_tablejump): Matcher for Thumb tablejump insn.
8782 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
8783 as the difference of two labels.
8784 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8785 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
8786 tables in the code.
8787 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
8788 * arm.c (get_jump_table_size): If the table is not in the text
8789 section, return zero.
8790
8791 2002-03-18 Bernd Schmidt <bernds@redhat.com>
8792
8793 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
8794 of gen_rtx_SUBREG.
8795 (arm_reload_out_hi): Use gen_lowpart instead of
8796 gen_rtx_SUBREG to access QImode components.
8797 * config/arm/arm.md: Disable zero_extend split for QImode
8798 subregs in BIG_ENDIAN mode.
8799 (storehi_bigend): Match use of least significant byte.
8800 (storeinthi): Remove extraneous SUBREG.
8801 Add missing construction of operands[2].
8802 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
8803 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
8804 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
8805
8806 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
8807
8808 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
8809 any_operand.
8810
8811 2002-03-17 Richard Henderson <rth@redhat.com>
8812
8813 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
8814 explicitly.
8815
8816 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
8817
8818 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
8819 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
8820
8821 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8822
8823 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
8824
8825 * predict.c (estimate_bb_frequencies): Delete unused variables.
8826
8827 2002-03-17 Richard Henderson <rth@redhat.com>
8828
8829 * config/ia64/ia64.c (ia64_attribute_table): Move before
8830 targetm definition. Make static.
8831
8832 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
8833
8834 * c-common.h (yyparse, c_common_parse_file): New.
8835 * c-lang.c: Include c-common.h.
8836 (LANG_HOOKS_PARSE_FILE): Redefine.
8837 * c-lex.c: Include c-common.h.
8838 (yyparse): Rename c_common_parse_file. Call yyparse.
8839 * c-parse.in (yyparse): Remove macro.
8840 * c-tree.h (yyparse_1): Remove.
8841 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
8842 (LANG_HOOKS_INITIALIZER): Update.
8843 * langhooks.h (struct lang_hoooks): New hook parse_file.
8844 * toplev.c (compile_file): Use parse_file hook.
8845 * tree.h (yyparse): Remove.
8846 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
8847
8848 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
8849
8850 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
8851 float_truncate, not fix.
8852 ("*truncdfsf2_real"): Ditto.
8853 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
8854
8855 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
8856
8857 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
8858
8859 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
8860 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
8861 where appropriate. Make the second reference to
8862 leaf_function_p a function call, as intended. Reindented.
8863
8864 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
8865 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
8866
8867 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
8868 add register to non-constant into sp.
8869
8870 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
8871 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
8872 (mips16_gp_pseudo_rtx): Lose.
8873 (INIT_EXPANDERS): Deleted.
8874 * config/mips/mips.c (mips_init_machine_status): New.
8875 (mips_free_machine_status): New.
8876 (mips_mark_machine_status): New.
8877 (override_options): Set them.
8878 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
8879 (struct machine_function): ... new. Replaced all references.
8880 (mips_add_gc_roots): Don't mark them.
8881 (embedded_pic_fnaddr_reg): New, extracted from...
8882 (embedded_pic_offset): ... here.
8883 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
8884 (movsi): Likewise.
8885
8886 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
8887
8888 * cppinit.c: Revert -MD removal.
8889
8890 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8891
8892 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
8893 soft registers by default for 68HC12.
8894 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
8895 when compiling with -fomit-frame-pointer.
8896 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
8897 (expand_epilogue): Likewise.
8898 (m68hc11_gen_rotate): Use exg when rotating by 8.
8899
8900 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8901
8902 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
8903 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
8904 (splits): Remove unused add splits.
8905 ("*addhi3_68hc12"): Tune constraints.
8906 ("addhi_sp"): Try to use X instead of Y in all cases and if the
8907 constant fits in 8-bits and D is dead use abx/aby instructions.
8908 ("*addhi3"): Remove extern declaration of ix_reg.
8909 ("*subsi3"): Optimize and provide new split.
8910 ("subhi3"): Cleanup.
8911 ("*subhi3_sp"): Avoid saving X if we know it is dead.
8912 (arith splits): For 68hc12 save the address register on the stack
8913 and do the arithmetic operation with a pop.
8914
8915 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8916
8917 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
8918 allocating QImode in address registers.
8919 ("*movqi_m68hc11"): Likewise.
8920
8921 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
8922
8923 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
8924
8925 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
8926
8927 * cppinit.c (print_help): Display -MD and -MMD.
8928 Don't display usage string. Update assertion syntax and
8929 typo.
8930 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
8931 (cpp_handle_option): Update.
8932
8933 2002-03-15 Chris Demetriou <cgd@broadcom.com>
8934
8935 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
8936 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
8937 and define it so that regardless of target CPU size,
8938 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
8939 of "int" rather than "long."
8940
8941 2002-03-15 Richard Henderson <rth@redhat.com>
8942
8943 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
8944 size as a tree.
8945
8946 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8947
8948 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
8949 ("tstqi" split): Avoid using memory for tstqi on address register.
8950 (splits): Remove constraints.
8951 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
8952 ("cmpdf", "cmpsf"): Remove since not used.
8953 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
8954 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
8955
8956 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8957
8958 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
8959 ("neghi2"): Tighten constraints.
8960 ("one_cmplsi2"): Optimize and simplify split.
8961 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
8962
8963 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8964
8965 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
8966 and split of AND operation to clear the upper bits.
8967 ("*logicalsi3_zextqi"): Likewise.
8968 ("*logicallhi3_zexthi_ashift8"): Likewise.
8969 ("*logicalsi3_silshr16"): Likewise.
8970 ("logicalsi3_silshl16"): Likewise.
8971 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
8972
8973 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8974
8975 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
8976 (m68hc11_indirect_p): New function.
8977 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
8978 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
8979 TARGET_M6812.
8980 (asm_print_register): Likewise.
8981 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
8982 (m68hc11_indirect_p): Declare.
8983 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
8984 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
8985 (TARGET_SWITCHES): New option -mrelax.
8986 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
8987 destination.
8988 ("iorsi3", "xorsi3"): Likewise.
8989 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
8990 ("*andhi3_mem"): New to handle destination in memory with bclr
8991 and a scratch register.
8992 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
8993 ("*andhi3_const"): New when operand2 is constant.
8994 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
8995 ("*andhi3_gen"): Cleanup of the old "andhi3".
8996 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
8997 ("xorqi3"): Update constraints.
8998
8999 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9000
9001 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9002 for reg_equiv_memory_loc when the operand is a register that does
9003 not get a hard register (stack location).
9004 (tst_operand): After reload, accept all memory operand.
9005 (symbolic_memory_operand): Fix detection of symbolic references.
9006 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9007 accept symbols and any constant.
9008
9009 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9010
9011 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9012 note on the insn that sets the soft frame register.
9013 (must_parenthesize): ix and iy are also reserved names.
9014 (print_operand_address): One more place where parenthesis are required
9015 to avoid confusion with register names.
9016 (m68hc11_gen_movhi): Allow push of stack pointer.
9017 (m68hc11_check_z_replacement): Fix handling of parallel with a
9018 clobber.
9019 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9020 the replacement register is.
9021 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9022 and D8_REGS classes.
9023 (MODES_TIEABLE_P): All modes are tieable except QImode.
9024
9025 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9026
9027 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9028 (___subdi3): Likewise.
9029 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9030 (__map_data_section): Optimize 68hc11 case.
9031
9032 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9033
9034 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9035 than a shift to avoid adding a register with itself.
9036 (m68hc11_memory_move_cost): Take into account NO_REGS.
9037 (m68hc11_register_move_cost): Update and use memory move cost
9038 for soft registers.
9039 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9040 it gives more opportunities to cse to optimize.
9041 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9042 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9043
9044 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9045
9046 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9047 * c-common.def (CLEANUP_STMT): New tree node.
9048 * c-common.h (CLEANUP_DECL): New macro.
9049 (CLEANUP_EXPR): Likewise.
9050 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9051 * expr.c (expand_expr): Tidy.
9052 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9053 * tree-inline.c (initialize_inlined_parameters): Clean up
9054 new local variables.
9055
9056 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9057
9058 PR bootstrap/4128
9059 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9060 before movrXX only, use reg_overlap_mentioned_p.
9061 Only special case NE if just one insn can be generated.
9062
9063 2002-03-15 Jason Merrill <jason@redhat.com>
9064
9065 * varasm.c (assemble_variable): Call resolve_unique_section before
9066 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9067 of error_mark_node.
9068
9069 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9070
9071 PR target/5170
9072 * arm.md (split pattern for thumb shiftable immediates): Add comment
9073 explaining non-obvious test.
9074
9075 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9076
9077 PR target/5712
9078 * arm.md (movaddr, movaddr_insn): Delete.
9079
9080 2002-03-15 Jason Merrill <jason@redhat.com>
9081
9082 * toplev.c (wrapup_global_declarations): Clarify variable handling.
9083 -fkeep-static-consts doesn't apply to comdats.
9084
9085 2002-03-14 Richard Henderson <rth@redhat.com>
9086
9087 * c-decl.c: Include c-pragma.h.
9088 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9089 (finish_function): Tidy.
9090 * c-pragma.c: Include c-common.h.
9091 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9092 (handle_pragma_weak): Use them.
9093 (init_pragma): Register pending_weaks.
9094 * c-pragma.h (maybe_apply_pragma_weak): Declare.
9095 * print-tree.c (print_node): Print DECL_WEAK.
9096 * varasm.c (mark_weak_decls): Remove.
9097 (remove_from_pending_weak_list): Remove.
9098 (add_weak): Remove.
9099 (asm_emit_uninitialised): Call globalize_decl for weak commons.
9100 (weak_decls): Make a tree_list.
9101 (declare_weak): Cons weak_decls directly.
9102 (globalize_decl): Remove weak_decls elements directly.
9103 (weak_finish): Simplify weak_decls walk. Don't weaken unused
9104 symbols. Don't pretend to handle aliases.
9105 (init_varasm_once): Update weak_decls registry.
9106 * Makefile.in: Update dependencies.
9107
9108 2002-03-14 Richard Henderson <rth@redhat.com>
9109
9110 PR target/5312
9111 * config/ia64/ia64.c: Include tm_p.h last.
9112 (gen_nop_type): Remove duplicate definition.
9113 (cycle_end_fill_slots): Set sched_data for second L slot.
9114 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9115 (nop_cycles_until): Fix typos.
9116
9117 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9118
9119 PR optimization/5891
9120 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9121
9122 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9123
9124 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9125 descriptors correctly.
9126
9127 2002-03-14 Michael Meissner <meissner@redhat.com>
9128
9129 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9130 100, allowing MAX_UNROLLED_INSNS to be overridden.
9131
9132 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9133 --param.
9134
9135 * unroll.c (params.h): Include.
9136 (MAX_UNROLLED_INSNS): Delete, now in params.h.
9137
9138 * doc/invoke.texi (--param max-unroll-insns): Document.
9139
9140 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9141
9142 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9143
9144 * arm.md: Fix warnings about constraints in peepholes and splits.
9145
9146 2002-03-14 Zack Weinberg <zack@codesourcery.com>
9147
9148 * cpphash.h (struct lexer_state): Remove line_extension member.
9149 * cpplib.c (dequote_string, do_linemarker): New functions.
9150 (linemarker_dir): New data object.
9151 (DIRECTIVE_TABLE): No longer need to interpret #line in
9152 preprocessed source. Delete obsolete comment about return
9153 values of handlers.
9154 (end_directive, directive_diagnostics, _cpp_handle_directive):
9155 Don't muck with line_extension.
9156 (directive_diagnostics): No need to issue warnings for
9157 linemarkers here.
9158 (_cpp_handle_directive): Issue warnings for linemarkers here,
9159 when appropriate. Dispatch linemarkers to do_linemarker, not
9160 do_line.
9161 (do_line): Code to handle linemarkers split out to do_linemarker.
9162 Convert escape sequences in filename argument, both places.
9163
9164 * cppmacro.c (quote_string): Rename cpp_quote_string and
9165 export. All callers changed.
9166 * cpplib.h (cpp_quote_string): Prototype.
9167 * cppmain.c (print_line): Call cpp_quote_string on to_file
9168 before printing it.
9169
9170 * doc/cpp.texi: Document that escapes are now interpreted in
9171 #line and in linemarkers, and that non-printing characters are
9172 converted to octal escapes when linemarkers are generated.
9173
9174 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
9175
9176 * emit-rtl.c (try_split): Use delete_insns.
9177 * recog.c (split_all_insns): Fix terminating condition.
9178
9179 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9180 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9181
9182 PR target/5828
9183 * arm.c (arm_output_epilogue): Fix floating-point register save
9184 adjustment when using a frame pointer.
9185
9186 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
9187
9188 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9189 * config/mips/mips.c (compute_frame_size): Retrofit them here.
9190 (save_restore_insns, mips_expand_epilogue): And here.
9191 (build_mips16_call_stub): And here.
9192 (mips_function_value): Use the new macros to decide whether a single
9193 or complex float can be returned in floating-point registers. Return
9194 a parallel rtx in the complex case.
9195
9196 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
9197
9198 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9199 call after liveness analysis.
9200
9201 * recog.c (split_insn): Use delete_insn_and_edges.
9202
9203 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9204 instructions to have branch prediction notes.
9205 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9206
9207 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
9208
9209 * configure.in: Don't pass -Wno-long-long to a ADA compiler
9210 that doesn't support it.
9211 * configure: Regenerate.
9212
9213 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9214
9215 PR target/5626
9216 * config/sparc/sparc.md (normal_branch, inverted_branch,
9217 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9218 inverted_fp_branch): Adjust calls to output_cbranch.
9219 Set length attribute.
9220 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9221 output_v9branch. Set length attribute.
9222 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9223 predicates.
9224 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9225 (output_cbranch): Likewise. Handle far branches.
9226 (output_v9branch): Handle far branches.
9227 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9228 Adjust prototypes.
9229 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9230 noov_compare64_op predicates.
9231
9232 2002-03-13 Jason Merrill <jason@redhat.com>
9233
9234 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9235 into the function and constify it.
9236 * gthr-dce.h, gthr-solaris.h: Likewise.
9237
9238 2002-03-13 David Edelsohn <edelsohn@gnu.org>
9239
9240 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9241 * config/rs6000/rs6000.c (rs6000_va_arg): Use
9242 std_expand_builtin_va_arg if not ABI_V4.
9243
9244 2002-03-13 Jason Merrill <jason@redhat.com>
9245
9246 * varasm.c (globalize_decl): New fn.
9247 (assemble_start_function): Use it.
9248 (asm_emit_uninitialized): Use it.
9249 (assemble_alias): Use it.
9250 (assemble_variable): Use it.
9251
9252 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
9253
9254 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9255 2002-03-12 internal visibility change.
9256 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9257 visibility into SYMBOL_REF_FLAG.
9258
9259 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
9260
9261 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9262 VOIDmode operand. Add compile-time optimization for constant results.
9263
9264 2002-03-12 Jason Merrill <jason@redhat.com>
9265
9266 * c-typeck.c (convert_for_assignment): Don't allow conversions
9267 between pointers and references. Only allow lvalues to convert to
9268 reference.
9269
9270 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
9271
9272 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9273 before prologue, to avoid scheduling problems.
9274
9275 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9276
9277 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9278 (ELIMINABLE_REGS): Add sfp->sp.
9279 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9280
9281 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9282
9283 PR optimization/5892
9284 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9285
9286 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9287
9288 * loop.c (basic_induction_var): Don't call convert_modes if mode
9289 classes are different.
9290
9291 2002-03-12 Richard Henderson <rth@redhat.com>
9292
9293 PR optimization/5901
9294 * function.c (reposition_prologue_and_epilogue_notes): Position
9295 the markers after/before the last/first insn not deleted.
9296
9297 2002-03-12 Richard Henderson <rth@redhat.com>
9298
9299 PR optimization/5878
9300 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9301 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9302 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9303
9304 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9305 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9306 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9307
9308 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9309 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9310 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9311 also. Don't set it if not flag_pic.
9312 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9313 to be INVALID_REGNUM when not used.
9314
9315 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
9316
9317 * expmed.c (store_bit_field): Reset alias set for memory.
9318 (extract_bit_field): Same.
9319
9320 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9321
9322 * c-common.c (c_tree_code_type, c_tree_code_length,
9323 c_tree_code_name, add_c_tree_codes): Delete.
9324 * c-common.h (add_c_tree_codes): Delete.
9325 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9326 Define.
9327 * c-objc-common.c (c_objc_common_init): Don't call
9328 add_c_tree_codes, instead set lang_unsafe_for_reeval.
9329 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9330 objc_tree_code_name, add_objc_tree_codes): Delete.
9331 (objc_init): Don't call add_objc_tree_codes.
9332 * objc/objc-lang.c (tree_code_type, tree_code_length,
9333 tree_code_name): Define.
9334 * toplev.c (lang_independent_init): Don't set
9335 tree_code_length[IDENTIFIER_NODE].
9336 * tree.c (tree_code_type, tree_code_length, tree_code_name):
9337 Delete definitions, moved to language front-ends.
9338 * tree.def (IDENTIFIER_NODE): Hardwire the length.
9339 * tree.h (tree_code_type, tree_code_length, tree_code_name):
9340 Const-ify.
9341 (tree_code_length): Change type to unsigned char.
9342
9343 2002-03-12 Richard Henderson <rth@redhat.com>
9344
9345 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9346 internal visibility change.
9347
9348 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9349
9350 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9351 validize_mem() instead of change_address to avoid clobbering
9352 memory attributes.
9353
9354 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
9355
9356 * c-lex.h (position_after_whitespace): Remove.
9357
9358 2002-03-12 Jakub Jelinek <jakub@redhat.com>
9359
9360 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9361 (lex_string): Use unsigned char pointers.
9362
9363 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9364
9365 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9366 is not a valid memory_operand.
9367
9368 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9369
9370 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9371 * config/xtensa/lib1funcs.asm: Fix copyright to include
9372 special case for libgcc files.
9373 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9374 (__divsi3): Likewise.
9375 (__umodsi3): Likewise.
9376 (__modsi3): Likewise.
9377 * config/xtensa/lib2funcs.S: Fix copyright to include
9378 special case for libgcc files.
9379
9380 2002-03-12 Tom Rix <trix@redhat.com>
9381
9382 * collect2.c (resolve_lib_name): Move outside of
9383 OBJECT_FORMAT_COFF ifdef.
9384 (ignore_library): Same.
9385
9386 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9387
9388 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9389
9390 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9391
9392 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9393 to function_section before writing out the constant pool.
9394
9395 2002-03-12 David Edelsohn <edelsohn@gnu.org>
9396
9397 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9398 zero_constant.
9399 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9400
9401 2002-03-12 Alan Modra <amodra@bigpond.net.au>
9402
9403 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9404 (adddi3): Likewise.
9405 (movdf): Likewise.
9406 (movdi): Likewise.
9407 (cmpsi splitter): Likewise.
9408 (modsi3): Fail if <= 0.
9409 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9410 redundant test when HOST_BITS_PER_WIDE_INT != 32.
9411 (reg_or_sub_cint64_operand): Likewise.
9412 (num_insns_constant_wide): Optimize sign extension.
9413 (rs6000_legitimize_address): Likewise.
9414
9415 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9416
9417 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9418 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9419
9420 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9421
9422 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9423 address calculation.
9424
9425 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9426
9427 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9428 scratch register to DImode / TImode.
9429 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9430 register used does not overlap the target.
9431
9432 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9433
9434 * Makefile.in (debug.o): Depend on debug.h.
9435 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9436 * debug.c (do_nothing_debug_hooks): Likewise.
9437 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9438 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9439 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9440 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9441 * dwarfout.c (dwarf_debug_hooks): Likewise.
9442 * integrate.c (output_inline_function): Likewise.
9443 * objc/objc-act.c (synth_module_prologue): Likewise.
9444 * sdbout.c (sdb_debug_hooks): Likewise.
9445 * toplev.c (debug_hooks): Likewise.
9446 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9447
9448 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9449
9450 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9451 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9452 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9453 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9454 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9455 * defaults.h (POINTER_SIZE): Define.
9456 * doc/tm.texi (POINTER_SIZE): Document default.
9457
9458 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9459
9460 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9461
9462 2002-03-11 Richard Henderson <rth@redhat.com>
9463
9464 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9465 if rebuild_label_notes_after_reload.
9466
9467 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
9468
9469 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
9470 emit pic register load if "internal" visibility.
9471 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9472 (cris_expand_builtin_va_arg): Do all computations on trees.
9473
9474 2002-03-11 Richard Henderson <rth@redhat.com>
9475
9476 * rtlanal.c: Include recog.h.
9477 (keep_with_call_p): Fix thinko.
9478 * Makefile.in (rtlanal.o): Update dependencies.
9479
9480 2002-03-11 Chris Meyer <cmeyer@gatan.com>
9481
9482 * genflags.c (gen_insn): Use IS_VSPACE.
9483 * genoutput.c (output_insn_data): Likewise.
9484 (process_template): Likewise.
9485
9486 2002-03-11 Richard Henderson <rth@redhat.com>
9487
9488 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9489
9490 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
9491
9492 * Makefile.in: Update.
9493 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9494 Update documentation.
9495 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9496 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9497
9498 2002-03-11 Zack Weinberg <zack@codesourcery.com>
9499
9500 * Makefile.in: Give texi2pod its input file as a command line
9501 argument, not on stdin.
9502
9503 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
9504 Daniel Berlin <dan@dberlin.org>
9505
9506 C++ alias analysis improvement.
9507 * alias.c (record_component_aliases): Record aliases for base
9508 classes too.
9509
9510 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
9511
9512 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9513
9514 2002-03-11 Douglas B Rupp <rupp@gnat.com>
9515
9516 * toplev.c (vms_fopen): Remove, not needed.
9517
9518 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9519
9520 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9521
9522 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9523 for FP, already done later.
9524
9525 * toplev.c (debug_args): Add entry for VMS_DEBUG.
9526 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9527
9528 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
9529
9530 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9531 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9532 LARGEST_EXPONENT_IS_NORMAL for the given mode.
9533 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9534 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9535 (ediv, emul, eldexp, esqrt): Likewise.
9536 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9537 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9538 (saturate): New function.
9539 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9540 (make_nan): Use a saturation value instead of a NaN if
9541 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
9542 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
9543 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
9544 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
9545 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
9546 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
9547 !ROUND_TOWARDS_ZERO.
9548 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
9549 (ROUND_TOWARDS_ZERO): Document.
9550
9551 2002-03-11 Andreas Jaeger <aj@suse.de>
9552
9553 * cfg.c (dump_flow_info): Remove unused variable.
9554
9555 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
9556
9557 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
9558 computations on trees.
9559
9560 2002-03-10 Richard Henderson <rth@redhat.com>
9561
9562 PR 5693:
9563 * reload.c (copy_replacements_1): New.
9564 (copy_replacements): Use it to recurse through the rtx.
9565
9566 2002-03-10 Richard Henderson <rth@redhat.com>
9567
9568 * loop.c (strength_reduce): Compute number of iterations as
9569 unsigned HOST_WIDE_INT.
9570
9571 2002-03-10 Richard Henderson <rth@redhat.com>
9572
9573 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
9574 to move away from the end of the block.
9575
9576 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
9577
9578 PR preprocessor/5899
9579 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
9580
9581 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9582
9583 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
9584
9585 * attribs.c (decl_attributes): Fix signed/unsigned warning.
9586
9587 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
9588
9589 * config/mmix/mmix.c: Improve comments.
9590 (mmix_target_asm_function_prologue): Drop variable
9591 empty_stack_frame. Don't allocate unused slot above fp.
9592 (mmix_target_asm_function_epilogue): Mirror prologue changes.
9593 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
9594 brace in first column.
9595 (enum reg_class): Ditto.
9596 (FIRST_PARM_OFFSET): Now 0.
9597 (USER_LABEL_PREFIX): Remove #if 0:d definition.
9598
9599 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9600
9601 * combine.c (make_extraction): Fix error in last change.
9602
9603 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9604
9605 * c4x.c (c4x_fp_reglist): Const-ify.
9606 * cris.c (cris_print_operand): Likewise.
9607 * i386.c (ix86_va_arg): Likewise.
9608 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
9609 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
9610 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
9611 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
9612 * mcore.h (regno_reg_class): Likewise.
9613 * mips.c (gen_int_relational): Likewise.
9614 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
9615 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
9616 * pdp11.c (move_costs): Likewise.
9617 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
9618 * s390.c (s390_branch_condition_mnemonic, regclass_map):
9619 Likewise.
9620 * s390.h (regclass_map): Likewise.
9621 * sh.c (shift_amounts): Likewise.
9622 * sh.md (rotlsi3): Likewise.
9623
9624 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9625
9626 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
9627 (ne0+5): Use new clobber to generate proper shift pattern.
9628 Patch by Michael Matz <matz@kde.org>.
9629
9630 2002-03-09 Andreas Schwab <schwab@suse.de>
9631
9632 * gcc.c (validate_all_switches): Also handle `%W{...}'.
9633
9634 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
9635
9636 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
9637
9638 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9639
9640 PR middle-end/5877
9641 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
9642 even for non-representable constants.
9643
9644 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9645
9646 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
9647 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
9648 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
9649 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
9650 (pop_function_context): Compute MAY_SHARE parameter for
9651 fixup_var_refs.
9652 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
9653 (gen_mem_addressof): Call fixup_var_refs with new parm.
9654
9655 * combine.c (make_extraction): Don't make extension of CONST_INT.
9656
9657 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9658
9659 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
9660 in o32 and o64 ABIs.
9661 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
9662 but getting fixed-size structs passed in registers regardless of
9663 padding in o32 and o64 ABIs.
9664
9665 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
9666 offset before loading address of argument passed by transparent
9667 reference.
9668
9669 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
9670
9671 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
9672
9673 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
9674
9675 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
9676 marker such that registers after it are saved.
9677
9678 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9679
9680 * sparc.c (arith_4096_operand): Fix error in last change.
9681
9682 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9683
9684 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
9685 defaults for MEABI.
9686
9687 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9688
9689 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
9690 vectors.
9691
9692 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
9693
9694 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
9695
9696 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
9697
9698 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
9699 removed; fix return value.
9700 * combine.c (combine_instructions): Dirtify blocks where we failed to
9701 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
9702 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
9703
9704 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9705
9706 * gcse.c (insert_insn_end_bb): Fix typo in last change.
9707
9708 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
9709
9710 * recog.c (peephole2_optimize): Re-distribute EH edges.
9711
9712 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
9713
9714 * expr.c (expand_expr): Use unsave lang hook.
9715 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
9716 (LANG_HOOKS_INITIALIZER): Update.
9717 * langhooks.h (struct lang_hooks): New hook unsave.
9718 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
9719 (unsave_expr_1): Remove unused lang_unsave_expr_now.
9720 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
9721 (unsave_expr_now): Remove.
9722 * tree.h (unsave_expr_now, lang_unsave,
9723 lang_unsave_expr_now): Remove.
9724 (lhd_unsave): New.
9725
9726 2002-03-08 Andreas Jaeger <aj@suse.de>
9727
9728 * flow.c (propagate_block_delete_insn): Remove unused variable.
9729
9730 2002-03-08 Kazu Hirata <kazu@hxi.com>
9731
9732 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
9733 insn length for memory load/store.
9734
9735 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
9736
9737 * doc/install.texi (--with-libiconv-prefix): Document.
9738
9739 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
9740
9741 * doc/sourcebuild.texi: Fix typo.
9742
9743 2002-03-08 Jakub Jelinek <jakub@redhat.com>
9744
9745 PR c/3711
9746 * builtins.c (std_expand_builtin_va_arg): Do all computations on
9747 trees.
9748
9749 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9750
9751 * rtl.c (copy_most_rtx): Move from here ...
9752 * emit-rtl.c (copy_most_rtx): ... to here.
9753
9754 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
9755
9756 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
9757 SUBTARGET_CPP_SIZE_SPEC.
9758 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
9759
9760 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
9761
9762 2002-03-07 Matt Hiller <hiller@redhat.com>
9763
9764 * gensupport.c (first_dir_md_include): Renamed from include;
9765 change all references.
9766 (last_dir_md_include): Renamed from last_include; change all
9767 references.
9768 (init_md_reader): Unconditionally initialize base_dir whether or
9769 not filename is a relative path.
9770
9771 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
9772
9773 * config/fp-bit.c (_unord_f2): Compile it in even if
9774 US_SOFTWARE_GOFAST is enabled.
9775
9776 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
9777 NULL_RTX. Set all HFmode operations as NULL_RTX.
9778 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
9779 NULL_RTX, try reversing the comparison and the operands.
9780
9781 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
9782
9783 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
9784 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
9785 and MATCH_OP_DUP.
9786
9787 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
9788
9789 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
9790
9791 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
9792
9793 * basic-block.h (fixup_abnormal_edges): Declare.
9794 * reload1.c (fixup_abnormal_edges): New function.
9795 * reg-stack.c (convert_regs): Use it.
9796
9797 * gcse.c (insert_insn_end_bb): Handle trapping insns.
9798
9799 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
9800
9801 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
9802
9803 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
9804 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
9805 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
9806 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
9807 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
9808 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
9809 unless x and y could be infinite.
9810 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
9811 Check that the common type of both arguments is a real, even for
9812 targets without unordered comparisons. Allow an integer argument
9813 to be compared against a real.
9814 (expand_tree_builtin): Use expand_unordered_cmp.
9815 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
9816 * cse.c (fold_rtx): Likewise. Fix indentation.
9817 * fold-const.c (fold_real_zero_addition_p): New.
9818 (fold): Use it, and the new HONOR_... macros.
9819 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
9820 * jump.c (reversed_comparison_code_parts): After searching for
9821 the true comparison mode, use HONOR_NANS to decide whether it
9822 can be safely reversed.
9823 (reverse_condition_maybe_unordered): Remove IEEE check.
9824 * simplify-rtx.c (simplify_binary_operation): Use the new macros
9825 to decide which simplifications are valid. Allow the following
9826 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
9827 and (a - -b) to (a + b).
9828 (simplify_relational_operation): Use HONOR_NANS.
9829 * doc/tm.texi: Document the MODE_HAS_... macros.
9830
9831 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9832
9833 * combine.c (simplify_comparison): If simplifying a logical shift
9834 right and compare with constant, force the comparison to unsigned.
9835
9836 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
9837
9838 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
9839
9840 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
9841 -mabi=no-altivec
9842 (alt_reg_names): Remove % for vrsave.
9843
9844 2002-03-06 Richard Henderson <rth@redhat.com>
9845
9846 PR optimization/5844
9847 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
9848 if used indicates we've already emitted one copy of an operand.
9849 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
9850 (gen_split): Supply a non-null used.
9851
9852 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
9853
9854 * reload1.c (reload): Unshare all rtl after reload is done.
9855
9856 * simplify-rtx.c (simplify_plus_minus): Do not abort,
9857 but simply fail if the expression is too complex to simplify.
9858 (simplify_gen_binary): Handle simplify_plus_minus failures.
9859
9860 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
9861
9862 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
9863 consistently call delete_trivially_dead_insns after CSE and GCSE;
9864 fix DFI_life dumping; do jump threading after liveness; do crossjumping
9865 after liveness2; update comment in last crossjumping.
9866 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
9867
9868 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
9869
9870 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
9871 after completing fast dead code elimination.
9872
9873 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
9874 COMPARE operator.
9875
9876 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
9877
9878 * version.c: Fix misplaced leading blanks on first line.
9879
9880 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
9881
9882 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
9883
9884 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
9885
9886 * cfgcleanup.c (mentions_nonequal_regs): New function.
9887 (thread_jump): Use it.
9888 * toplev.c (rest_of_compilation): Run jump threading after
9889 liveness.
9890
9891 2002-03-06 Jakub Jelinek <jakub@redhat.com>
9892
9893 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
9894 patch.
9895
9896 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
9897
9898 * predict.c (estimate_bb_frequencies): Do not reload the
9899 frequencies from notes.
9900
9901 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
9902
9903 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
9904 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
9905
9906 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
9907 delete_noop_moves): Return indeger.
9908 * flow.c (ndead): New variable.
9909 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
9910 BB argument; update callers.
9911 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
9912 (life_analysis): Do not call purge_all_dead_edges.
9913 (update_life_info): Return number of deleted insns; print statistics.
9914 (update_life_info_in_dirty_blocks): likewise.
9915 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
9916 return number of insns deleted.
9917
9918 * cse.c: Include timevar.h
9919 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
9920 iterate until stabilizes; print statistics; return number of killed
9921 insns.
9922 * Makefile.in: (cse.o): Add timevar.h dependency
9923 * rtl.h (delete_trivially_dead_insns): New.
9924 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
9925 * toplev.c (rest_of_compilation): Update callers.
9926
9927 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
9928 (try_optimize_cfg): Do not update liveness.
9929 (cleanup-cfg): Loop until try_optimize_cfg and dead code
9930 removal stabilizes; use delete_trivially_dead_insns.
9931
9932 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
9933
9934 2002-03-05 Zack Weinberg <zack@codesourcery.com>
9935
9936 * cppmain.c (setup_callbacks): Disable #pragma and #ident
9937 callbacks when processing assembly language.
9938
9939 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
9940
9941 * pa.h (ASM_FILE_END): Define.
9942 * som.h (ASM_FILE_END): Delete.
9943
9944 * pa.c (function_arg): Don't pass floats in general registers in
9945 indirect calls if TARGET_ELF32.
9946
9947 2002-03-05 Richard Henderson <rth@redhat.com>
9948
9949 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
9950
9951 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
9952
9953 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
9954
9955 2002-03-05 Jakub Jelinek <jakub@redhat.com>
9956
9957 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
9958 -r command line. Don't hide any symbols if not building
9959 shared libgcc.
9960
9961 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
9962
9963 * cfg.c (dump_flow_info): Warn about profile mismatches.
9964 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
9965 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
9966
9967 2002-03-05 Jakub Jelinek <jakub@redhat.com>
9968
9969 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
9970 wide volatile memory by parts.
9971
9972 2002-03-05 Jakub Jelinek <jakub@redhat.com>
9973
9974 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
9975 is NULL.
9976
9977 2002-03-05 Richard Henderson <rth@redhat.com>
9978
9979 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
9980
9981 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
9982
9983 * toplev.c (documented_lang_options): Document more
9984 language-specific options.
9985 * doc/invoke.texi (Warning Options): Correct documentation for
9986 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
9987 * c-decl.c (c_decode_option): Use a table to handle warning options.
9988
9989 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
9990
9991 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
9992 parameter to mmix_encode_section_info.
9993 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
9994 relocatably. Always produce ELF, not mmo if linking relocatably.
9995 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
9996 first is non-zero, don't add symbol prefix.
9997 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
9998 prototype accordingly.
9999
10000 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10001
10002 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10003
10004 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10005
10006 * configure.in: Increase required makeinfo version to 4.1.
10007 * configure: Regenerate.
10008
10009 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10010
10011 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10012 elsewhere now.
10013
10014 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10015
10016 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10017 * doc/invoke.texi: Fix @math uses.
10018
10019 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10020
10021 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10022 removal
10023
10024 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10025
10026 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10027 (powerpc-*-eabisimaltivec*): Same.
10028
10029 * config/rs6000/t-ppcendian: New.
10030
10031 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10032
10033 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10034 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10035 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10036
10037 2002-03-03 Richard Henderson <rth@redhat.com>
10038
10039 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10040
10041 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10042
10043 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10044 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10045 tree.c, config/m68k/m68k.c:
10046 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10047 REAL_ARITHMETIC blocks unconditional. Delete some further
10048 #ifdef blocks predicated on REAL_ARITHMETIC.
10049 * flags.h, toplev.c: Delete remaining references to
10050 flag_pretend_float.
10051
10052 * doc/invoke.texi: Remove documentation of -fpretend-float.
10053 * doc/tm.texi: Describe the various REAL_* macros as provided by
10054 real.h, not by the target configuration files.
10055
10056 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10057 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10058 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10059 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10060 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10061 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10062 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10063 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10064 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10065 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10066 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10067 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10068 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10069 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10070 config/xtensa/xtensa.h:
10071 Do not define, undefine, or mention in comments any of
10072 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10073 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10074 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10075 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10076 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10077 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10078 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10079 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10080 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10081
10082 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10083
10084 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10085 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10086 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10087 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10088 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10089 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10090 Delete.
10091 * defaults.h (BITS_PER_WORD): Define.
10092 * doc/tm.texi (BITS_PER_WORD): Document default value.
10093
10094 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10095 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10096 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10097
10098 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10099
10100 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10101 lieu of explicit sizeof/sizeof.
10102 * i386.c (override_options, ix86_init_mmx_sse_builtins,
10103 ix86_expand_builtin): Likewise.
10104 * mips.c (mips_add_gc_roots): Likewise.
10105 * mmix.c (mmix_output_condition): Likewise.
10106 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10107 altivec_init_builtins): Likewise.
10108 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10109 * cppexp.c (Nsuff, parse_number): Likewise.
10110 * cppinit.c (builtin_array_end): Likewise.
10111 * gcc.c (n_default_compilers, process_command): Likewise.
10112 * genpreds.c (output_predicate_decls): Likewise.
10113 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10114 * lcm.c (N_ENTITIES): Likewise.
10115 * stor-layout.c (set_sizetype): Likewise.
10116
10117 2002-03-03 Richard Henderson <rth@redhat.com>
10118
10119 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10120 for types or labels.
10121
10122 2002-03-03 Richard Henderson <rth@redhat.com>
10123
10124 * c-decl.c (start_decl): Initialized variables are not common.
10125
10126 2002-03-02 Per Bothner <per@bothner.com>
10127
10128 * gcc.c (option_map): Suport new --bootclasspath option.
10129 --CLASSPATH is now just an alias for --classpath.
10130
10131 2002-03-02 Richard Henderson <rth@redhat.com>
10132
10133 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10134 load if "internal" visibility.
10135 * doc/extend.texi: Document visibility meanings.
10136
10137 2002-03-02 Richard Henderson <rth@redhat.com>
10138
10139 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10140 to functions as well.
10141
10142 2002-03-02 Richard Henderson <rth@redhat.com>
10143
10144 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10145 (handle_visibility_attribute): Don't call assemble_visibility.
10146 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10147 without asmspec. Invoke assemble_alias when needed.
10148 * varasm.c (maybe_assemble_visibility): New.
10149 (assemble_start_function, assemble_variable, assemble_alias): Use it.
10150
10151 2002-03-02 Richard Henderson <rth@redhat.com>
10152
10153 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10154 invoke ENCODE_SECTION_INFO with first call flag.
10155
10156 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10157 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10158 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10159 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10160 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10161 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10162 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10163 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10164 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10165 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10166 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10167 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10168 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10169 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10170 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10171 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10172 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10173 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10174 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10175 config/sh/sh.h, config/sparc/sparc.h,
10176 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10177 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10178 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10179 FIRST argument. As needed, examine it and do nothing.
10180
10181 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10182 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10183 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10184
10185 * config/arm/t-pe (pe.o): Add dependencies.
10186
10187 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10188
10189 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10190 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10191 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10192 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10193 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10194 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10195 * defaults.h (BITS_PER_UNIT): Define.
10196 * doc/tm.texi (BITS_PER_UNIT): Document default value.
10197
10198 2002-03-02 Kazu Hirata <kazu@hxi.com>
10199
10200 * config/h8300/h8300-protos.h: Add a prototype for
10201 compute_a_shift_length.
10202 * config/h8300/h8300.c (h8300_asm_insn_count): New.
10203 (compute_a_shift_length): Likewise.
10204 (h8300_adjust_insn_length): Do not adjust insn length of shift
10205 insns.
10206 * config/h8300/h8300.md (anonymous shift patterns): Use
10207 compute_a_shift_length.
10208
10209 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10210
10211 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10212 trunc_int_for_mode.
10213
10214 * emit-rtl.c (offset_address): Call update_temp_slot_address.
10215
10216 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10217
10218 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10219 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10220 * flags.h (flag_zero_initialized_in_bss): Declare.
10221 * toplev.c (flag_zero_initialized_in_bss): New flag.
10222 (lang_independent_options): Add flag_zero_initialized_in_bss.
10223 * tree.c (initializer_zerop): New function.
10224 * tree.h (initializer_zerop): Declare.
10225 * varasm.c (assemble_variable): If we can emit bss, put zero
10226 initializers in the bss section.
10227
10228 2002-03-02 Alan Modra <amodra@bigpond.net.au>
10229
10230 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10231 like more than one symbol per .weak directive.
10232
10233 2002-03-01 Richard Henderson <rth@redhat.com>
10234
10235 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10236 adjust argument_pointer by pretend_args_size.
10237 (ia64_va_start): Adjust va_start address by -pretend_args_size.
10238
10239 2002-03-01 Kazu Hirata <kazu@hxi.com>
10240
10241 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10242
10243 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
10244
10245 * toplev.c (rest_of_compilation): Delete dead jumptables before
10246 loop.
10247 * flow.c (delete_dead_jumptables): Make global.
10248 * rtl.h (delete_dead_jumptables): Declare.
10249
10250 2002-03-01 David Edelsohn <edelsohn@gnu.org>
10251
10252 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10253 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10254 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10255
10256 2002-03-01 Kazu Hirata <kazu@hxi.com>
10257
10258 * config/h8300/h8300-protos.h: Fix formatting.
10259 * config/h8300/h8300.c: Likewise.
10260 * config/h8300/h8300.h: Likewise.
10261
10262 2002-03-01 Kazu Hirata <kazu@hxi.com>
10263
10264 * config/h8300/h8300.c (print_operand): Support 16-bit
10265 constant addresses.
10266 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10267
10268 2002-02-28 Richard Henderson <rth@redhat.com>
10269
10270 * expmed.c (store_bit_field): Prevent generation of CONCATs;
10271 pun complex values as integers; use gen_lowpart instead of
10272 gen_rtx_SUBREG.
10273 (extract_bit_field): Likewise.
10274
10275 2002-03-01 Alan Modra <amodra@bigpond.net.au>
10276 David Edelsohn <edelsohn@gnu.org>
10277
10278 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10279 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10280 (SUPPORTS_WEAK): Likewise.
10281 * output.h (add_weak): Add tree param.
10282 * varasm.c (add_weak): Likewise. Save decl.
10283 (struct weak_syms): Add decl field.
10284 (mark_weak_decls): New function.
10285 (init_varasm_once): ggc_add_root mark_weak_decls.
10286 (assemble_start_function): Use ASM_WEAKEN_DECL.
10287 (assemble_variable): Likewise.
10288 (assemble_alias): Likewise.
10289 (declare_weak): Pass decl to add_weak.
10290 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10291 (remove_from_pending_weak_list): Declare and define for
10292 ASM_WEAKEN_DECL.
10293 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10294 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10295 * defaults.h (SUPPORTS_WEAK): Likewise.
10296 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10297 .weak for code sym. Do emit .size for descriptor sym.
10298 (ASM_DECLARE_FUNCTION_SIZE): Define.
10299 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10300 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
10301 .lglobl unless TARGET_XCOFF. Formatting fixes.
10302 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10303 .weak for code sym.
10304 (HANDLE_PRAGMA_WEAK): Remove.
10305 (ASM_WEAKEN_LABEL): Remove.
10306 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10307
10308 2002-03-01 Jason Merrill <jason@redhat.com>
10309
10310 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10311 (TARGET_EXPR_CLEANUP): New macro.
10312
10313 2002-02-28 Steve Ellcey <sje@cup.hp.com>
10314
10315 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10316 to take ptr_extend into account as third type of extension.
10317 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10318 fields used by SUBREG_PROMOTED_UNSIGNED_P.
10319 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10320 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10321 * calls.c (precompute_arguments): Use new macro.
10322 (expand_call): Ditto.
10323 * combine.c (nonzero_bits): Ditto.
10324 (record_promoted_value): Ditto.
10325 * expr.c (store_expr): Ditto.
10326 (expand_expr): Ditto.
10327 * function.c (assign_parms): Ditto.
10328
10329 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
10330
10331 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10332 override -shared and -shared-libgcc.
10333
10334 2002-02-28 David O'Brien <obrien@FreeBSD.org>
10335
10336 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10337 of "ultrasparc".
10338 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
10339 to be broken.
10340
10341 2002-02-28 Richard Henderson <rth@redhat.com>
10342
10343 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10344 4 cycle latency from MM producers.
10345 (ia64_internal_sched_reorder): Likewise with pipeline flush.
10346
10347 2002-02-28 Jakub Jelinek <jakub@redhat.com>
10348
10349 * mklibgcc.in: Don't use GNU make extension.
10350
10351 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10352
10353 * c-parse.in (STATIC): New terminal.
10354 (scspec): New non-terminal. Update productions accordingly.
10355 (program): Remove bogus ifc / end ifc.
10356 (array_declarator): Simplify production using STATIC.
10357
10358 2002-02-28 Jim Meyering <meyering@lucent.com>
10359
10360 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10361 \a still means TARGET_BELL.
10362
10363 2002-02-28 Richard Henderson <rth@redhat.com>
10364
10365 * haifa-sched.c (sched_emit_insn): New.
10366 (schedule_block): Use last_scheduled_insn to track last insn.
10367 * sched-int.h (sched_emit_insn): Prototype.
10368 * config/ia64/ia64.c (last_issued): Remove.
10369 (ia64_variable_issue): Don't set it.
10370 (nop_cycles_until): Use sched_emit_insn.
10371
10372 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
10373
10374 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10375 extended constants.
10376
10377 2002-02-28 Kazu Hirata <kazu@hxi.com>
10378
10379 * config/h8300/h8300.c: Fix formatting.
10380 * config/h8300/h8300.h: Likewise.
10381
10382 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
10383
10384 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10385 which may overwrite the high byte of the frame pointer.
10386
10387 2002-02-28 Bo Thorsen <bo@suse.de>
10388
10389 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10390 (STARTFILE_SPEC): Add 64 bit files.
10391 (ENDFILE_SPEC): Likewise.
10392
10393 2002-02-28 Jason Merrill <jason@redhat.com>
10394
10395 * c-decl.c (finish_function): Only warn about missing return
10396 statement with -Wreturn-type.
10397
10398 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
10399
10400 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10401
10402 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10403 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10404
10405 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
10406
10407 * basic-block.h (BB_REACHABLE): Renumber.
10408 (BB_DIRTY, BB_NEW): New flags.
10409 (clear_bb_flags): Declare.
10410 (update_life_info_in_dirty_blocks): Declare.
10411 * cfg.c (clear_bb_flags): New function.
10412 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10413 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10414 reorder_insns, emit_insn_after): Mark block as dirty.
10415 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10416 (update_life_info_in_dirty_blocks): New function.
10417 * recog.c (apply_change_group): Dirtify block.
10418
10419 * cse.c (cse_insn): Reorder emitting of jump insn to keep
10420 cfg consistent.
10421 * gcse.c (delete_null_pointer_checks): Likewise.
10422
10423 * toplev.c (dump_file_index): Move cse2 after bp,
10424 add DFI_null
10425 (dump_file_info): Similary.
10426 (rest_of_compilation): Avoid most of CFG rebuilds;
10427 do first if converision after null pointer checks, do cse2
10428 after branch prediction; avoid full liveness rebuild after
10429 initializing subregs.
10430 * invoke.texi (-d options): Document -du, renumber.
10431
10432 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10433 (notice_new_block): Do not set BB_UPDATE_LIFE.
10434 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10435 merge_blocks_move_successor_nojumps, merge_blocks,
10436 try_crossjump_to_edge): Likewise.
10437 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10438 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10439 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10440 (merge_of_block): Do not use life_data_ok.
10441 (find_if_case_1): Do not use SET_UPDATE_LIFE.
10442 (if_convert): Use BB_DIRTY mechanizm to update life.
10443 * lcm.c (optimize_mode_switching): Update
10444 update_life_info_in_dirty_blocks
10445
10446 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10447
10448 * Makefile.in (integrate.o): Update.
10449 * c-decl.c (copy_lang_decl): Rename.
10450 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10451 * integrate.c: Include langhooks.h.
10452 (copy_decl_for_inlining): Update to use langhook.
10453 * langhooks-def.h (lhd_do_nothing_t,
10454 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10455 (LANG_HOOKS_INITIALIZER): Update.
10456 * langhooks.c (lhd_do_nothing_t): New.
10457 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10458 * tree.h (copy_lang_decl): Remove.
10459 objc:
10460 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10461
10462 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
10463
10464 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10465 POST_DEC, and POST_MODIFY.
10466
10467 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10468
10469 * c-typeck.c (digest_init): Remove unused parameter; all
10470 callers changed.
10471
10472 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
10473
10474 * expmed.c (expand_shift): Correctly test for low part of a
10475 subreg.
10476
10477 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10478
10479 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10480 insn UIDs with insn addresses.
10481
10482 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10483
10484 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10485 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10486 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10487 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10488 gcc.c, toplev.c: Delete code implementing -traditional mode.
10489
10490 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10491 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10492 Document removal of -traditional mode for compilation, and
10493 remove documentation only relevant to that mode.
10494
10495 * config/nextstep.h, config/ptx4.h, config/svr4.h,
10496 config/convex/convex.h, config/d30v/d30v.h,
10497 config/i386/dgux.h, config/i386/osf1elf.h,
10498 config/i386/osfelf.h, config/i386/osfrose.h,
10499 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10500 config/m68k/hp310.h, config/m88k/dgux.h,
10501 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10502 config/m88k/m88k.h, config/m88k/openbsd.h,
10503 config/mips/abi64.h, config/mips/osfrose.h,
10504 config/mips/svr4-5.h, config/mips/svr4-t.h,
10505 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10506 config/stormy16/stormy16.h: Remove all references to
10507 -traditional from target specs. Delete all mention of the
10508 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
10509 delete a couple of commented-out definitions of
10510 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10511 to -traditional.
10512
10513 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10514 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10515
10516 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10517
10518 * mklibgcc.in: Don't use \n in a line subject to
10519 interpretation by echo.
10520
10521 2002-02-27 Graham Stott <grahams@redhat.com>
10522
10523 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10524 Constify NAME.
10525
10526 * loop.c (prescan_loop): Handle PARALLEL.
10527
10528 * unroll.c (loop_iterations): Return 0 if the add_val for
10529 a BIV is REG.
10530
10531 * final.c (output_operand_lossage): Constify PFX_STR.
10532
10533 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10534
10535 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
10536
10537 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10538 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10539
10540 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
10541
10542 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10543
10544 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
10545
10546 * cpplex.c (_cpp_lex_token): Handle directives in macro
10547 arguments.
10548 * cpplib.c (_cpp_handle_directive): Save and restore state
10549 if parsing macro args when entering a directive.
10550 * cppmacro.c (collect_args): No need to handle directives
10551 in macro arguments.
10552 (enter_macro_context, replace_args): Use the original macro
10553 definition in case it was redefined whilst collecting arguments.
10554 doc:
10555 * cpp.texi: Update.
10556
10557 2002-02-26 David Edelsohn <edelsohn@gnu.org>
10558
10559 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
10560 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
10561 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
10562 method on AIX.
10563 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
10564 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
10565 (load_toc_v4_PIC_2): Same.
10566
10567 2002-02-26 Alan Modra <amodra@bigpond.net.au>
10568
10569 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
10570
10571 2002-02-26 Richard Henderson <rth@redhat.com>
10572
10573 * config/alpha/alpha.md (ashldi_se): Re-enable.
10574
10575 2002-02-26 Richard Henderson <rth@redhat.com>
10576
10577 * config/alpha/alpha.c (alpha_encode_section_info): Examine
10578 MODULE_LOCAL_P; improve commentary.
10579
10580 2002-02-26 Zack Weinberg <zack@codesourcery.com>
10581
10582 * doc/cpp.texi: Clarify documentation of relationship between
10583 #line and #include.
10584
10585 2002-02-26 Kazu Hirata <kazu@hxi.com>
10586
10587 * config/h8300/h8300-protos.h: Update the prototype for
10588 compute_logical_op_length. Add the prototype for
10589 compute_logical_op_cc.
10590 * config/h8300/h8300.c (compute_logical_op_length): Figure out
10591 code from operands.
10592 (compute_logical_op_cc): New.
10593 * config/h8300/h8300.md: Combine all the logical op patterns
10594 in HImode and SImode. Use compute_logical_op_cc.
10595
10596 2002-02-26 Kelley Cook <kelleycook@comcast.net>
10597
10598 * config/i386/i386.c (print_operand): Don't append ATT-style
10599 length suffixs to x87 opcodes when in Intel mode.
10600
10601 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
10602
10603 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
10604 (init_emit_once): Update calls.
10605 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
10606 (init_syntax_once): Prototype.
10607
10608 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
10609
10610 * pa-linux.h (LIB_SPEC): Update definition.
10611 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10612
10613 2002-02-26 Richard Henderson <rth@redhat.com>
10614
10615 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
10616 if we emitted a stop bit.
10617
10618 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10619
10620 * configure.in (libgcc_visibility): Substitute.
10621 * configure: Rebuilt.
10622 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
10623 defined symbols .hidden.
10624
10625 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10626
10627 * attribs.c (c_common_attribute_table): Add visibility.
10628 (handle_visibility_attribute): New function.
10629 * varasm.c (assemble_visibility): New function.
10630 * output.h (assemble_visibility): Add prototype.
10631 * tree.h (MODULE_LOCAL_P): Define.
10632 * crtstuff.c (__dso_handle): Use visibility attribute.
10633 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
10634 for MODULE_LOCAL_P symbols too.
10635 * config/ia64/ia64.c (ia64_encode_section_info): Handle
10636 MODULE_LOCAL_P symbols the same way as local symbols.
10637 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
10638 into .sdata/.sbss by the user.
10639 * doc/extend.texi (Function Attributes): Document visibility
10640 attribute.
10641
10642 2002-02-26 Jakub Jelinek <jakub@redhat.com>
10643
10644 PR debug/5770
10645 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
10646 STRING_CST initializer spanning the whole variable without
10647 embedded zeros.
10648 If expand_expr returned MEM, don't use it.
10649
10650 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
10651
10652 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
10653 generate a die for the lexical block.
10654
10655 2002-02-26 Kazu Hirata <kazu@hxi.com>
10656
10657 * config/h8300/h8300-protos.h: Add a prototype for
10658 compute_logical_op_length.
10659 * config/h8300/h8300.c (compute_logical_op_length): New.
10660 * config/h8300/h8300.md (anonymous logical patterns): Use
10661 compute_logical_op_length for length.
10662
10663 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10664
10665 * dwarf2out.c (modified_type_die): Do not call type_main_variant
10666 for vectors.
10667 (gen_type_die): Same.
10668
10669 * attribs.c (handle_vector_size_attribute): Set debug information.
10670
10671 2002-02-26 Daniel Egger <degger@fhm.edu>
10672
10673 * config/rs6000/rs6000.md: Swap define_insn attributes to
10674 fix incorrect generation of merge high instructions instead
10675 of merge low.
10676
10677 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10678
10679 * c-typeck.c (really_start_incremental_init): Use
10680 bitsize_zero_node for vectors.
10681
10682 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
10683
10684 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
10685 ("*set_vrsave_internal"): Same.
10686
10687 2002-02-25 Richard Henderson <rth@redhat.com>
10688
10689 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
10690 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
10691
10692 2002-02-25 Jakub Jelinek <jakub@redhat.com>
10693
10694 PR target/5755
10695 * config/i386/i386.c (ix86_return_pops_args): Only pop
10696 fake structure return argument if it was passed on the stack.
10697
10698 2002-02-25 Jason Merrill <jason@redhat.com>
10699
10700 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
10701 RESULT_DECL.
10702
10703 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
10704
10705 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
10706 link with shared_name only.
10707 * doc/invoke.texi (Link Options): Document new behavior.
10708
10709 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
10710
10711 * c-typeck.c (push_init_level): Handle vectors.
10712
10713 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
10714
10715 * config/sparc/sparc.c (const64_high_operand): Zero-extend
10716 operands of SPARC_SETHI_P.
10717 (input_operand): Likewise.
10718 (sparc_emit_set_const32): Likewise.
10719 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
10720 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
10721 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
10722 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
10723 (movdi_insn_sp64_vis): Likewise.
10724 (movdi split, movdf split): Use SETHI32.
10725 * doc/md.texi: Document SPARC constraints L, M and N.
10726
10727 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
10728
10729 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
10730 ("*set_vrsave_internal"): use mfspr for Darwin.
10731
10732 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
10733 gen_get_vrsave_internal.
10734
10735 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10736
10737 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
10738
10739 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
10740
10741 * cpplex.c (cpp_interpret_charconst): Get signedness or
10742 otherwise of wide character constants correct.
10743 * cppexp.c (lex): Get signedness of wide charconsts correct.
10744
10745 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10746
10747 * optabs.c (widen_operand): Only call convert_modes for
10748 promoted SUBREG if signedness matches.
10749 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
10750
10751 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10752
10753 * cpplib.c (glue_header_name): Use local buffer to build up
10754 header name.
10755
10756 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10757
10758 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
10759
10760 2002-02-23 Kazu Hirata <kazu@hxi.com>
10761
10762 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
10763 H8/300[HS] separately.
10764 * config/h8300/h8300.md: Remove the early clobber constraint
10765 from bit field patterns.
10766
10767 2002-02-23 Kazu Hirata <kazu@hxi.com>
10768
10769 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
10770 register_operand.
10771 (mulhisi3): Likewise.
10772 (umulqisi3): Likewise.
10773 (umulhisi3): Likewise.
10774
10775 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
10776
10777 * cppinit.c (output_deps): Correct test for stdout output.
10778 (init_dependency_output): Cure warning.
10779
10780 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10781
10782 * expr.c (store_expr): When converting expression to promoted
10783 equivalent type, allow using SUBREG_REG of TARGET as the target
10784 of the expansion of EXP.
10785 * loop.c (basic_induction_var, case SUBREG): Always look inside.
10786 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
10787 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
10788 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
10789 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
10790
10791 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
10792
10793 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
10794 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
10795 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
10796
10797 2002-02-23 Jakub Jelinek <jakub@redhat.com>
10798
10799 PR optimization/5747
10800 * loop.c (scan_loop): Update reg info if move_movables created new
10801 pseudos.
10802
10803 2002-02-23 David Edelsohn <edelsohn@gnu.org>
10804
10805 * gcc.c (init_gcc_spec): Revert last change.
10806
10807 2002-02-23 David Edelsohn <edelsohn@gnu.org>
10808
10809 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
10810 gpc_reg_operand constraint.
10811
10812 2002-02-23 Alan Modra <amodra@bigpond.net.au>
10813
10814 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
10815 Simplify comparison of `low'.
10816 (add_operand): Fix formatting.
10817 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
10818 (mask_operand): Disallow mask to wrap in 64-bit mode.
10819 (rs6000_stack_info): Remove redundant test setting push_p.
10820 (output_toc): Fix formatting.
10821 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
10822 cc_reg_not_cr0_operand constraint.
10823 (booldi3, boolcdi3 splitters): Same.
10824
10825 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
10826
10827 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
10828
10829 2002-02-22 David Edelsohn <edelsohn@gnu.org>
10830
10831 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
10832 gcc invoked with -shared-libgcc.
10833
10834 2002-02-22 Jakub Jelinek <jakub@redhat.com>
10835
10836 PR c++/5748
10837 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
10838 decl if any of elements was TREE_USED.
10839
10840 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
10841
10842 * config/sparc/sol2.h: Don't include sys/mman.h.
10843 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
10844 (arith_4096_operand): Don't throw high bits away.
10845 (const64_operand): Take sign extension of CONST_INTs into account.
10846 (const64_high_operand, sparc_emit_set_const32): Likewise.
10847 (GEN_HIGHINT64): Likewise.
10848 (sparc_emit_set_const64_quick1): Likewise.
10849 (const64_is_2insns): Likewise.
10850 (print_operand): Use trunc_int_for_mode for sign extension.
10851 * config/sparc/sparc.h (SMALL_INT32): Likewise.
10852 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
10853 chars. Assume CONST_INT is already properly sign-extended.
10854 (movdi split): Sign-extend each SImode part.
10855 (andsi3 split): Don't mask high bits off, so that result
10856 remains properly sign-extend.
10857 (iorsi3 split): Likewise.
10858 (xorsi3 split): Likewise.
10859
10860 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
10861
10862 * fold-const.c (fold): Fix typo in comments.
10863
10864 2002-02-21 Diego Novillo <dnovillo@redhat.com>
10865
10866 * Makefile.in (langhooks.o): Update dependencies.
10867
10868 2002-02-21 Diego Novillo <dnovillo@redhat.com>
10869
10870 * langhooks.c: Include flags.h.
10871
10872 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
10873
10874 * testsuite/gcc.dg/attr-alwaysinline.c: New.
10875
10876 * c-common.c (c_common_post_options): Set inline trees by
10877 default.
10878
10879 * doc/extend.texi (Function Attributes): Document always_inline
10880 attribute.
10881 Update documentation about inlining when not optimizing.
10882
10883 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
10884
10885 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
10886 unless DECL_ALWAYS_INLINE.
10887
10888 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
10889 unless DECL_ALWAYS_INLINE.
10890 (c_disregard_inline_limits): Disregard if always_inline set.
10891
10892 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
10893 Disregard if always_inline set.
10894 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
10895 unless DECL_ALWAYS_INLINE.
10896
10897 * attribs.c (handle_always_inline_attribute): New.
10898 (c_common_attribute_table): Add always_inline.
10899
10900 * config/rs6000/altivec.h: Add prototypes for builtins
10901 requiring the always_inline attribute.
10902
10903 2002-02-21 Eric Christopher <echristo@redhat.com>
10904
10905 * expmed.c (store_bit_field): Try to simplify the subreg
10906 before generating a new one when when the mode size of
10907 value is less than maxmode.
10908
10909 2002-02-21 Richard Henderson <rth@redhat.com>
10910
10911 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
10912 than gen_rtx_PLUS to form the sum.
10913 * explow.c (force_reg): Rearrange to not allocate new pseudo
10914 when force_operand returns a register.
10915 * expr.c (expand_assignment): Allow offset_rtx expansion to
10916 return a sum. Do not force addresses into registers.
10917 (expand_expr): Likewise.
10918 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
10919 to canonicalize arithmetic that didn't simpify.
10920 (simplify_plus_minus): New argument force; update
10921 all callers. Don't split CONST unless we can do something with it,
10922 and wouldn't lose the constness of the operands.
10923
10924 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
10925 that we generated earlier.
10926
10927 2002-02-21 Tom Tromey <tromey@redhat.com>
10928
10929 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10930 (output_line_info): Use constant `1', with a long explanatory
10931 comment.
10932 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
10933
10934 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
10935
10936 * jump.c (redirect_jump): If old label has no UID, don't try to
10937 delete it.
10938
10939 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
10940
10941 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
10942 If input is constant, do shifts at compile time.
10943
10944 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
10945
10946 * doc/extend.texi: Fix some more overfull hboxes.
10947
10948 2002-02-21 Jakub Jelinek <jakub@redhat.com>
10949
10950 PR optimization/4994
10951 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
10952 register moves.
10953
10954 2002-02-21 Jakub Jelinek <jakub@redhat.com>
10955
10956 PR c++/4574
10957 * expr.h (expand_and): Add mode argument.
10958 * expmed.c (expand_and): Add mode argument.
10959 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
10960 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
10961 * except.c (expand_builtin_extract_return_addr): Likewise.
10962 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
10963 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
10964 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
10965 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
10966 * config/c4x/c4x.md: Use GEN_INT (x) instead of
10967 gen_rtx (CONST_INT, VOIDmode, x).
10968
10969 2002-02-21 Jakub Jelinek <jakub@redhat.com>
10970
10971 PR c/4697:
10972 * stmt.c (warn_if_unused_value): Move side effects test once more.
10973
10974 2002-02-20 Torbjorn Granlund <tege@swox.com>
10975
10976 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
10977 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
10978
10979 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
10980
10981 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
10982 SUBREG or ZERO_EXTEND.
10983
10984 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
10985
10986 * sh.h (current_function_anonymous_args): Remove.
10987 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
10988 of current_function_varargs and current_function_stdarg is set.
10989 * sh.c (sh_expand_prologue): Check current_function_varargs /
10990 current_function_stdarg / TARGET_SH5 instead of
10991 current_function_anonymous_args.
10992
10993 * sh64.h (TARGET_VERSION): Define.
10994
10995 2002-02-20 David Edelsohn <edelsohn@gnu.org>
10996
10997 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
10998 VRSAVE_REGNO on TARGET_ALTIVEC.
10999
11000 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11001
11002 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11003 bits of SImode const_int.
11004 (includes_rshift_p): Likewise.
11005 (print_operand): Call mask_operand and mask64_operand with correct
11006 mode.
11007 (rs6000_output_function_epilogue): Pad traceback table to word.
11008 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11009 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11010 mask64_operand with correct mode.
11011 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11012
11013 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11014
11015 PR debug/4461
11016 * varasm.c (get_pool_constant_mark): New.
11017 * rtl.h (get_pool_constant_mark): Add prototype.
11018 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11019 be represented if it has not been output.
11020
11021 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11022
11023 * combine.c (do_SUBST): Sanity check substitutions of
11024 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11025 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11026 CONST_INT into its operand.
11027 (known_cond): Likewise, for ZERO_EXTEND.
11028 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11029 allow for simplification of wide modes. Reject CONST_INTs in
11030 ZERO_EXTEND when their actual mode is not given.
11031
11032 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11033
11034 * c-decl.c (pushdecl): If no global declaration is found for an
11035 extern declaration in block scope, try a limbo one.
11036
11037 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11038
11039 PR c++/4401
11040 * c-common.c (pointer_int_sum): Moved from...
11041 * c-typeck.c (pointer_int_sum): ...here.
11042 * c-common.h (pointer_int_sum): Add prototype.
11043
11044 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11045
11046 PR c++/5713
11047 * c-decl.c (duplicate_decls): Return 0 if issued error about
11048 redeclaration.
11049
11050 2002-02-20 Roger Sayle <roger@eyesopen.com>
11051 Jakub Jelinek <jakub@redhat.com>
11052
11053 PR c/4389
11054 * tree.c (host_integerp): Ensure that the constant integer is
11055 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11056 when pos is zero or non-zero respectively. Clarify comment.
11057 * c-format.c (check_format_info_recurse): Fix host_integerp
11058 usage; the pos argument should be zero when assigning to a
11059 signed HOST_WIDE_INT.
11060
11061 2002-02-20 Richard Henderson <rth@redhat.com>
11062
11063 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11064 of the operand, rather than assuming TImode.
11065 (ix86_expand_binop_builtin): Cope with commutative patterns
11066 using nonimmediate_operand for both operands.
11067 (ix86_expand_timode_binop_builtin): Likewise.
11068 (ix86_expand_store_builtin): Validate operand 1.
11069 (ix86_expand_unop1_builtin): Likewise.
11070
11071 2002-02-20 Philip Blundell <philb@gnu.org>
11072
11073 PR 5705
11074 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11075
11076 2002-02-20 Richard Henderson <rth@redhat.com>
11077
11078 PR c/5615
11079 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11080
11081 2002-02-20 Tom Tromey <tromey@redhat.com>
11082
11083 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11084 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11085 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11086 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11087 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11088 unconditionally.
11089
11090 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11091
11092 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11093 for (const_int 0) in X not just INTVAL.
11094
11095 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
11096
11097 * doc/extend.texi: Avoid or reduce overfull hboxes.
11098
11099 2002-02-20 Diego Novillo <dnovillo@redhat.com>
11100
11101 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11102 operations if the field does not start at a mode boundary.
11103
11104 2001-02-20 Joel Sherrill <joel@OARcorp.com>
11105
11106 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11107 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11108 Also done for -Acpu and -Amachine.
11109
11110 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
11111
11112 * cppinit.c (init_dependency_output): Take deps output file
11113 from -o if none given with -MF. Suppress normal output.
11114 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11115 * doc/cpp.texi, doc/invoke.texi: Update.
11116
11117 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11118
11119 * toplev.c (output_quoted_string): Write unprintable
11120 characters with octal escapes.
11121
11122 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11123
11124 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11125 really_call_used[VRSAVE_REGNO] if not Altivec.
11126
11127 2002-02-19 Alan Modra <amodra@bigpond.net.au>
11128
11129 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11130 MODE_MASK.
11131 (constant_pool_expr_1): Fix formatting.
11132 (rs6000_legitimize_reload_address): Likewise.
11133
11134 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11135
11136 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11137 now that we have one.
11138
11139 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11140
11141 * tree.h (struct tree_common): Remove aux. Add unused_0 at
11142 end of first block of bitfields (which was only seven bits);
11143 rename dummy to unused_1; remove comment which is no longer true.
11144
11145 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11146
11147 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11148
11149 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11150
11151 PR 5399
11152 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11153 if generating PIC.
11154
11155 PR 5054
11156 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11157 arm_is_longcall_p rather than inspecting call-type cookie
11158 directly.
11159 (call_value_insn) [TARGET_THUMB]: Likewise.
11160
11161 2002-02-19 Graham Stott <grahams@redhat.com>
11162
11163 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11164
11165 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11166
11167 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11168 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11169 (FP_SAVE_INLINE): Delete.
11170
11171 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11172 * config/rs6000/eabi.asm: Remove ABI save restore routines.
11173 * config/rs6000/t-ppccomm: Build crtsavres.o.
11174 * config/rs6000/crtsavres.asm: New file.
11175
11176 2002-02-19 Philip Blundell <philb@gnu.org>
11177
11178 * config/arm/arm.c (use_return_insn): Don't reject interrupt
11179 functions.
11180 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11181 (output_return_instruction): Allow interrupt functions to return with
11182 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
11183 (arm_expand_prologue): Subtract 4 before stacking LR in an
11184 interrupt function.
11185
11186 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11187
11188 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11189 decl, not just FUNCTION_DECL.
11190 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11191 (arm_assemble_integer): Likewise.
11192 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11193 marked local.
11194
11195 2002-02-19 matthew green <mrg@eterna.com.au>
11196
11197 * config.gcc (sparc-*-netbsdelf*): Enable target.
11198 (sparc64-*-netbsd*): New target.
11199 * config/sparc/netbsd-elf.h: New file.
11200 * config/sparc/t-netbsd64: New file.
11201
11202 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11203
11204 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11205
11206 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
11207
11208 * doc/invoke.texi: explicitly list the style guidelines that
11209 -Weffc++ checks for.
11210
11211 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
11212
11213 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11214
11215 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
11216
11217 PR other/5718
11218 * gcc.c (cpp_unique_options): Treat -o as indicating object file
11219 only if not -E. If -E, pass -o through to the preprocessor.
11220
11221 2002-02-19 Kazu Hirata <kazu@hxi.com>
11222
11223 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11224 register number with an appropriate macro.
11225
11226 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11227
11228 * doc/rtl.texi (Constants): Close @code tag.
11229
11230 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
11231
11232 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11233 ("mmx_uavgv4hi3"): Same.
11234 ("pmulhrwv4hi3"): Same.
11235
11236 * tree-inline.c (walk_tree): Handle vectors.
11237
11238 * c-common.c (constant_expression_warning): Handle vectors.
11239 (overflow_warning): Same.
11240
11241 * sched-deps.c (sched_analyze_2): Handle vectors.
11242
11243 * rtlanal.c (rtx_unstable_p): Handle vectors.
11244 (rtx_varies_p): Same.
11245 (count_occurrences): Same.
11246 (regs_set_between_p): Same.
11247 (modified_between_p): Same.
11248 (modified_in_p): Same.
11249 (volatile_insn_p): Same.
11250 (volatile_refs_p): Same.
11251 (side_effects_p): Same.
11252 (may_trap_p): Same.
11253 (inequality_comparisons_p): Same.
11254 (replace_regs): Same.
11255 (computed_jump_p_1): Same.
11256
11257 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11258 argument.
11259 (inner_mode_array): New.
11260 (copy_rtx): Handle vectors.
11261 (copy_most_rtx): Same.
11262 (rtx_equal_p): Same.
11263 (get_mode_alignment): Adjust for vectors.
11264
11265 * resource.c (mark_referenced_resources): Handle vectors.
11266 (mark_set_resources): Same.
11267
11268 * reload1.c (eliminate_regs): Handle vectors.
11269 (elimination_effects): Same.
11270 (scan_paradoxical_subregs): Same.
11271
11272 * reload.c (subst_reg_equivs): Handle vectors.
11273
11274 * regrename.c (scan_rtx): Handle vectors.
11275
11276 * regclass.c (reg_scan_mark_refs): Handle vectors.
11277
11278 * recog.c (find_single_use_1): Handle vectors.
11279
11280 * local-alloc.c (equiv_init_varies_p): Handle vectors.
11281 (contains_replace_regs): Same.
11282 (memref_referenced_p): Same.
11283
11284 * integrate.c (copy_rtx_and_substitute): Handle vectors.
11285 (subst_constants): Same.
11286
11287 * genattrtab.c (attr_copy_rtx): Handle vectors.
11288 (encode_units_mask): Same.
11289 (clear_struct_flag): Same.
11290 (count_sub_rtxs): Same.
11291
11292 * gcse.c (want_to_gcse_p): Handle vectors.
11293 (oprs_unchanged_p): Same.
11294 (hash_expr_1): Same.
11295 (oprs_not_set_p): Same.
11296 (expr_killed_p): Same.
11297 (compute_transp): Same.
11298 (store_ops_ok): Same.
11299
11300 * function.c (purge_addressof_1): Do not allow paradoxical subregs
11301 of vectors.
11302 (fixup_var_refs_1): Same.
11303 (instantiate_virtual_regs_1): Same.
11304
11305 * fold-const.c (operand_equal_p): Handle vectors.
11306 (fold): Same.
11307 (rtl_expr_nonnegative_p): Same.
11308
11309 * flow.c (mark_used_regs): Handle vectors.
11310
11311 * df.c (df_uses_record): Handle vectors.
11312
11313 * cselib.c (cselib_subst_to_values): Handle vectors.
11314 (cselib_mem_conflict_p): Same.
11315 (hash_rtx): Same.
11316
11317 * cse.c (canon_reg): Handle vectors.
11318 (fold_rt): Same.
11319 (cse_process_notes): Same.
11320 (count_reg_usage): Same.
11321 (canon_hash): Same.
11322
11323 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11324
11325 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11326
11327 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11328 (gen_rtx): Handle CONST_VECTOR.
11329 (gen_const_vector_0): New.
11330 (copy_rtx_if_shared): CONST_VECTORs can be shared.
11331 (reset_used_flags): Same.
11332 (copy_insn_1): Same.
11333 (initializer_constant_valid_p): Handle VECTOR_CST.
11334
11335 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11336
11337 * doc/rtl.texi (Constants): Document const_vector.
11338 (CONST0_RTX): Update for vectors.
11339 (RTL sharing): Same.
11340
11341 * print-tree.c (print_node): Add case for VECTOR_CST.
11342
11343 * tree.h (TREE_VECTOR_CST_ELTS): New.
11344 (struct tree_vector): New.
11345 (union tree_node): Add vector node.
11346 (build_vector): Add prototype.
11347
11348 * tree.def (VECTOR_CST): New.
11349
11350 * tree.c (build_vector): New.
11351
11352 * expmed.c (make_tree): Handle CONST_VECTOR.
11353
11354 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11355 (CONST_VECTOR_ELT): New.
11356 (CONST_VECTOR_NUNITS): New.
11357
11358 * machmode.h (GET_MODE_INNER): New.
11359 (DEF_MACHMODE): Accept 8th arg.
11360
11361 * machmode.def: Add 8th argument for vector inner mode.
11362 Add inner vector modes for vectors.
11363
11364 * rtl.def (VEC_CONST): Remove.
11365 (CONST_VECTOR): New.
11366
11367 * expr.c (clear_storage): Allow vectors.
11368 (is_zeros_p): Handle VECTOR_CST.
11369
11370 * varasm.c (output_constant_pool): Handle vectors.
11371 (rtx_const): Add veclo and vechi fields.
11372 (kind): Add RTX_VECTOR.
11373 (decode_rtx_const): Add case for vector.
11374
11375 * config/rs6000/rs6000-protos.h: Add zero_constant.
11376
11377 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11378 constants. Force easy vector constants into memory.
11379 (easy_vector_constant): New.
11380 (emit_easy_vector_constant): New.
11381 (rs6000_legitimize_reload_address): Do not generate bad reloads on
11382 darwin.
11383
11384 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11385 instruction does.
11386 ("altivec_lvxl"): Same.
11387 (altivec_lvebx): Same.
11388 (altivec_lvehx): Same.
11389 (altivec_lvewx): Same.
11390 ("*movv4si_const0"): New.
11391 ("*movv4sf_const0"): New.
11392 ("*movv8hi_const0"): New.
11393 ("*movv16qi_const0"): New.
11394
11395 2002-02-18 Kazu Hirata <kazu@hxi.com>
11396
11397 * config/h8300/h8300.c (notice_update_cc): Use
11398 cc_status.value2.
11399
11400 2002-02-18 Kazu Hirata <kazu@hxi.com>
11401
11402 * config/h8300/h8300.md (divmod patterns): Change the
11403 constraints for operands[1] to register_operand.
11404
11405 2002-02-18 Kazu Hirata <kazu@hxi.com>
11406
11407 * config/h8300/h8300-protos.h: Remove the prototype for
11408 p_operand.
11409 * config/h8300/h8300.c (p_operand): Remove.
11410 * config/h8300/h8300.md: Replace p_operand with
11411 const_int_operand.
11412
11413 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11414
11415 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11416 comment.
11417 (output_return_instruction): Allow use of LDR to unstack
11418 return addresss even for interrupt handlers or when
11419 interworking. If compiling for ARMv5, use interworking-safe
11420 return instructions by default. Remove duplicated code and
11421 lengthy "strcat" sequences.
11422
11423 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11424
11425 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11426 (LINK_EH_SPEC): Define.
11427 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11428
11429 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11430
11431 * config/s390/s390.c (s390_emit_prologue): Do not set the
11432 frame_related flag for call-clobbered registers.
11433
11434 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
11435
11436 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11437 (construct_container): Fix handling of SSE operands.
11438 (ix86_expand_builtin): Fix handling of 64bit pointers.
11439 (mmx_maskmovq_rex): New pattern.
11440
11441 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
11442
11443 * regrename.c (kill_set_value): Handle subregs properly.
11444
11445 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
11446
11447 * objc/objc-act.c (handle_impent): Remove leading '*'
11448 from objc_class_name.
11449
11450 2002-02-17 Richard Henderson <rth@redhat.com>
11451
11452 * config/alpha/alpha.c (some_small_symbolic_operand,
11453 some_small_symbolic_operand_1, split_small_symbolic_operand,
11454 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11455 Handle small SYMBOL_REFs anywhere, not just inside memories.
11456 * config/alpha/alpha-protos.h: Update.
11457 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11458 * config/alpha/alpha.md (small symbolic operand splitter): Update.
11459
11460 2002-02-17 Roland McGrath <roland@frob.com>
11461
11462 * config.gcc (powerpc-*-gnu-gnualtivec*,
11463 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11464 * config/rs6000/gnu.h: New file.
11465 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11466 Grok "gnu" in rs6000_abi_name.
11467 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11468 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11469 Grok -mcall-gnu analogous to -mcall-linux et al.
11470 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11471 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11472 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11473
11474 2002-02-17 Jakub Jelinek <jakub@redhat.com>
11475
11476 PR c/3444:
11477 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11478 shortening.
11479
11480 2002-02-17 Philipp Thomas <pthomas@suse.de>
11481
11482 * config/cris/cris.h: Undefine STARTFILE_SPEC and
11483 ENDFILE_SPEC before (re)defining them.
11484
11485 2002-02-17 Kazu Hirata <kazu@hxi.com>
11486
11487 * config/h8300/h8300.c: Fix formatting.
11488 * config/h8300/h8300.h: Likewise.
11489
11490 2002-02-17 Philipp Thomas <pthomas@suse.de>
11491
11492 * doc/tm.texi: Explain why empty strings should not be
11493 marked for translation.
11494
11495 2002-02-17 Philipp Thomas <pthomas@suse.de>
11496
11497 * final.c (output_operand_lossage): Changed to accept
11498 printf style arguments. Change calls where necessary.
11499 * output.h (output_operand_lossage): Change declaration
11500 accordingly. Update copyright.
11501 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11502 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11503 Update copyright date where necessary.
11504
11505 * config/i386/i386.c (print_operand): Likewise. Remove use of
11506 sprintf.
11507
11508 * config/cris/cris.c (cris_operand_lossage): Likewise.
11509 Rename parameter so that exgettext recognizes it as
11510 translatable message.
11511 (LOSE_AND_RETURN): Rename parameter to msgid.
11512
11513 2002-02-17 Kazu Hirata <kazu@hxi.com>
11514
11515 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11516 hard coded register number with an appropriate macro.
11517 (HARD_REGNO_MODE_OK): Likewise.
11518 (ARG_POINTER_REGNUM): Likewise.
11519 (STATIC_CHAIN_REGNUM): Likewise.
11520 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11521 * config/h8300/h8300.md (define_constants): Define more
11522 register numbers.
11523
11524 2002-02-17 Philipp Thomas <pthomas@suse.de>
11525
11526 * config/i386/i386.h: Don't mark empty strings for translation.
11527
11528 2002-02-16 H.J. Lu <hjl@gnu.org>
11529
11530 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11531
11532 2002-02-16 Zack Weinberg <zack@codesourcery.com>
11533
11534 * cppinit.c (merge_include_chains): Check for brack being
11535 NULL before attempting to merge it with qtail.
11536
11537 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11538
11539 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11540 DBX_DEBUG.
11541
11542 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11543
11544 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
11545
11546 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11547
11548 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
11549 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
11550 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
11551
11552 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11553
11554 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
11555 now only if !TARGET_FIX.
11556 (*movsi_nt_vms_fix): New pattern.
11557
11558 2002-02-16 Douglas B Rupp <rupp@gnat.com>
11559
11560 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
11561 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
11562 (alpha_sa_mask, alpha_sa_size): Reflect above change.
11563 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
11564 (alpha_start_function, alpha_expand_epilogue): Likewise.
11565 (unicosmk_gen_dsib): Likewise.
11566
11567 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11568
11569 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
11570
11571 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
11572
11573 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
11574 check_and_change_labels, s390_final_chunkify): Delete.
11575 (s390_split_branches, s390_chunkify_pool): New functions.
11576 (s390_function_prologue): Call them.
11577
11578 * config/s390/s390.h (S390_REL_MAX): Delete.
11579 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
11580
11581 * config/s390/s390.md (cjump, icjump, jump): Fix length
11582 attribute calculation.
11583
11584
11585 2002-02-15 David Edelsohn <edelsohn@gnu.org>
11586
11587 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
11588 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
11589
11590 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11591
11592 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
11593 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
11594 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
11595
11596 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11597
11598 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
11599
11600 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
11601
11602 * reload.c (find_dummy_reload): Check that an output register
11603 is valid for its mode.
11604
11605 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
11606
11607 * combine.c (known_cond): After replacing the REG of a SUBREG, try
11608 to simplify it.
11609
11610 * function.c (assign_parms): Demote promoted argument passed by
11611 transparent reference.
11612
11613 2001-02-14 Joel Sherrill <joel@OARcorp.com>
11614
11615 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
11616 -Acpu() and -Amachine() to eliminate warnings.
11617
11618 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
11619
11620 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
11621
11622 2002-02-14 Kazu Hirata <kazu@hxi.com>
11623
11624 * config/h8300/h8300-protos.h: Update the prototype for
11625 const_costs.
11626 * config/h8300/h8300.c (const_costs): Treat SET as a little
11627 more expensive operation.
11628 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
11629 reference to const_costs.
11630
11631 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
11632
11633 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
11634
11635 2002-02-14 Jakub Jelinek <jakub@redhat.com>
11636
11637 PR c/5503:
11638 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
11639 use arguments from newtype.
11640
11641 2002-02-13 Eric Christopher <echristo@redhat.com>
11642
11643 * config/mips/mips.c (override_options): Add check for march/mipsX
11644 on the same command line. Fix error message in cpu processing.
11645 Remove architecture and ISA checks.
11646
11647 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11648
11649 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
11650
11651 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
11652
11653 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
11654
11655 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
11656 alternatives.
11657 ("*movv8hi_internal1"): Same.
11658 ("*movv16qi_internal1"): Same.
11659 ("*movv4sf_internal1"): Same.
11660
11661 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
11662 not push_reload for altivec modes.
11663
11664 2002-02-13 Joel Sherrill <joel@OARcorp.com>
11665
11666 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
11667 all RTEMS targets including removal of #includes from config/*/rtems*.h
11668 file and adding them to tm_file setting. Added xm_defines=POSIX to
11669 many targets.
11670 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
11671 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
11672 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
11673 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
11674 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
11675 config/m68k/rtemself.h: Ditto.
11676 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
11677 config/mips/rtems64.h: Ditto.
11678 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
11679 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
11680 Ditto.
11681 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
11682 config/sparc/rtemself.h: Ditto.
11683 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
11684 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
11685 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
11686 more like arm-elf.
11687 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
11688 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
11689 target made more similar to i386-elf.
11690 * config/i386/t-rtems-i386: Added soft float support and multilibs.
11691 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
11692 be similar to config/m68k/t-m68kelf.
11693 * gthr-rtems.h: Encapsulate with extern "C" for C++.
11694
11695 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
11696
11697 * regmove.c (kill_value): Handle subregs.
11698
11699 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
11700
11701 * i386.md (mul patterns): Allow memory operand to be first;
11702 add expanders where needed; fix constraints.
11703 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
11704 Allow memory operand to be the first.
11705
11706 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
11707 operands.
11708
11709 2002-02-13 Jakub Jelinek <jakub@redhat.com>
11710
11711 PR c/5681:
11712 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
11713 GET_MODE (x).
11714
11715 2002-02-13 Jakub Jelinek <jakub@redhat.com>
11716
11717 PR optimization/5547:
11718 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
11719 all valid IA-32 address modes involving non-scaled %ebx and
11720 GOT/GOTOFF as displacement.
11721
11722 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
11723
11724 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
11725 after emitting ltorg insns.
11726
11727 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
11728 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
11729 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
11730 *abssf2): Fix "op_type" attribute.
11731
11732 2002-02-13 Douglas B Rupp <rupp@gnat.com>
11733
11734 * mkconfig.sh: Avoid using a subshell redirect.
11735 ($output.T): Change to $(output)T.
11736 (ENABLE_NLS): Remove unneeded undef.
11737
11738 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
11739 * config/alpha/x-vms (libsubdir): Define.
11740
11741 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
11742 register frame procedures. Optimize retrieving context.
11743
11744 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
11745 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
11746 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
11747
11748 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11749
11750 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
11751 Make same change as for find_base_value.
11752
11753 2002-02-13 Kazu Hirata <kazu@hxi.com>
11754
11755 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
11756 of QImode and SImode.
11757
11758 2002-02-13 Kazu Hirata <kazu@hxi.com>
11759
11760 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
11761 length computation of movsi.
11762 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
11763
11764 2002-02-13 Kazu Hirata <kazu@hxi.com>
11765
11766 * config/h8300/h8300.md (subqi3): Tighten the predicate for
11767 operands[2] to register_operand.
11768
11769 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
11770
11771 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
11772
11773 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
11774
11775 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
11776 for altivec_lvx* and altivec_stvx*.
11777 ("*movv4si_internal"): Add constraint for loading from GPRs.
11778 ("*movv8hi_internal1"): Same.
11779 ("*movv16qi_internal1"): Same.
11780 ("*movv4sf_internal1"): Same.
11781
11782 * config/rs6000/rs6000.c (altivec_register_operand): New.
11783
11784 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
11785 altivec_register_operand.
11786
11787 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
11788
11789 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
11790 handle SYMBOL_REF.
11791
11792 2002-02-13 Stan Shebs <shebs@apple.com>
11793
11794 * c-typeck.c (digest_init): Handle vectors.
11795 (really_start_incremental_init): Same.
11796 (pop_init_level): Same.
11797 (process_init_element): Same.
11798
11799 * varasm.c (output_constant): Same.
11800
11801 * expr.c (clear_storage): Same.
11802 (store_constructor): Same.
11803
11804 2002-02-12 Eric Christopher <echristo@redhat.com>
11805
11806 * explow.c (hard_function_value): Add comment explaining
11807 signed/unsigned comparison.
11808
11809 2002-02-12 Jakub Jelinek <jakub@redhat.com>
11810
11811 * jump.c (never_reached_warning): Add finish argument.
11812 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
11813 real insn after end.
11814 * rtl.h (never_reached_warning): Adjust prototype.
11815 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
11816 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
11817 never_reached_warning.
11818
11819 2002-02-12 Graham Stott <grahams@redhat.com>
11820
11821 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
11822
11823 2002-02-12 Kazu Hirata <kazu@hxi.com>
11824
11825 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
11826 logical shifts on H8/300.
11827 (shift_alg_si): Improve several shifts on H8/300.
11828 (get_shift_alg): Likewise.
11829
11830 2002-02-12 Graham Stott <grahams@redhat.com>
11831
11832 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
11833
11834 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11835
11836 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
11837 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
11838
11839 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
11840
11841 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
11842 non-CONST_INT through default_assemble_integer.
11843 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
11844 <case 8>: Abort for CONST_DOUBLE.
11845
11846 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
11847
11848 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
11849 is specified.
11850 * config/pa/pa-linux.h (LIB_SPEC): Delete.
11851 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11852
11853 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
11854
11855 * config/stormy16/stormy16.md (zero_extendqihi2): New.
11856
11857 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
11858
11859 * regrename.c (regrename_optimize): Don't accept a
11860 part-clobbered register if the replaced register is not part
11861 clobbered.
11862
11863 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
11864 take padding into account when computing the argument value.
11865
11866 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
11867
11868 * combine.c (try_combine): Apply substitutions in
11869 CALL_INSN_FUNCTION_USAGE too.
11870
11871 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
11872
11873 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
11874 __builtin_altivec_abs*.
11875 (bdesc_abs): New.
11876
11877 * config/rs6000/rs6000.h (rs6000_builtins): Add
11878 ALTIVEC_BUILTIN_ABS*.
11879
11880 * config/rs6000/altivec.h: Use const char for builtins expecting
11881 literals.
11882 (vec_abs): New versions for C and C++.
11883 (vec_abss): Same.
11884
11885 2002-02-10 Kazu Hirata <kazu@hxi.com>
11886
11887 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
11888 using Pmode.
11889
11890 2002-02-10 Kazu Hirata <kazu@hxi.com>
11891
11892 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
11893 constant definition from h8300.md.
11894 (FRAME_POINTER_REGNUM): Likewise.
11895 * config/h8300/h8300.md (define_constants): Add FP_REG.
11896
11897 2002-02-10 Kazu Hirata <kazu@hxi.com>
11898
11899 * config/h8300/h8300.c (print_operand): Remove redundant code.
11900
11901 2002-02-10 Kazu Hirata <kazu@hxi.com>
11902
11903 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
11904 * config/h8300/h8300.c (byte_reg): Make it static.
11905
11906 2002-02-10 Richard Henderson <rth@redhat.com>
11907
11908 PR c/5623
11909 * c-typeck.c (incomplete_type_error): Handle flexible array members.
11910
11911 2002-02-10 Richard Henderson <rth@redhat.com>
11912
11913 PR c++/5624
11914 * tree.c (append_random_chars): Don't abort if main_input_filename
11915 does not exist.
11916
11917 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
11918
11919 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
11920
11921 2002-02-10 Kazu Hirata <kazu@hxi.com>
11922
11923 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
11924 (pushhi1): Likewise.
11925
11926 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
11927
11928 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
11929 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
11930
11931 2002-02-09 David O'Brien <obrien@FreeBSD.org>
11932
11933 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
11934 remove MASK_VIS.
11935 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
11936
11937 2002-02-09 Kazu Hirata <kazu@hxi.com>
11938
11939 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
11940 a half of an SImode register on H8/300.
11941
11942 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
11943
11944 * i386.md (movdi_2): Add missing '!'.
11945
11946 2002-02-09 Kazu Hirata <kazu@hxi.com>
11947
11948 * config/h8300/h8300.h: Fix formatting. Remove commented-out
11949 definitions.
11950
11951 2002-02-09 Kazu Hirata <kazu@hxi.com>
11952
11953 * config/h8300/h8300.md (length): Correct the distance valid
11954 for the short branch.
11955
11956 2002-02-09 Kazu Hirata <kazu@hxi.com>
11957
11958 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
11959
11960 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
11961
11962 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
11963 registers in SImode.
11964 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
11965 part-clobbered.
11966
11967 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
11968 patch.
11969
11970 Contribute sh64-elf.
11971 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
11972 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
11973 (sh_cannot_modify_jumps_p): New function.
11974 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
11975 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
11976 (sh_ms_bitfield_layout_p): New function.
11977 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
11978 Zack Weinberg <zack@codesourcery.com>
11979 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
11980 expand_simple_binop instead of expand_binop.
11981 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
11982 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
11983 use of .quad and .uaquad.
11984 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
11985 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
11986 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11987 * config/sh/sh.md (movdi_const, movdi_const_32bit,
11988 movdi_const_16bit): Make sure all CONSTs have modes.
11989 (sym2PIC): Ditto, but by adjusting all callers.
11990 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
11991 if the prologue calls the SHmedia argument decoder or register
11992 saver.
11993 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11994 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
11995 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
11996 (sh_expand_epilogue): Don't emit USE of return target register.
11997 (prepare_move_operands): Legitimize DImode PIC addresses.
11998 (sh_media_register_for_return): Skip tr0, used to initialize the
11999 PIC register.
12000 (sh_expand_prologue): Remove explicit USE of return register.
12001 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12002 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12003 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12004 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12005 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12006 EXTRA_CONSTRAINT_T.
12007 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12008 (MOVI_SHORI_BASE_OPERAND_P): New.
12009 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12010 (EXTRA_CONSTRAINT_T): Define in terms of them.
12011 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12012 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12013 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12014 alternatives supporting TARGET_REGS.
12015 (UNSPEC_GOTPLT): New constant.
12016 (movdi split): Move incrementing of LABEL_NUSES...
12017 (movdi_const, movdi_const_32bit): Here. Use
12018 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12019 (movdi_const_16bit): New.
12020 (call, call_value) [flag_pic]: Use GOTPLT.
12021 (call_pop, call_value_pop): New expands.
12022 (call_pop_compact, call_pop_rettramp): New insns.
12023 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12024 (sibcall) [flag_pic]: Use GOT.
12025 (builtint_setjmp_receiver): Remove bogus, unused expand.
12026 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12027 (*pt, *ptb, ptrel): New insns.
12028 (sym2GOT): Handle DImode GOT.
12029 (sym2GOTPLT, symGOTPLT2reg): New expands.
12030 (sym2PIC): New expand.
12031 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12032 (shcompact_return_tramp_i): Use return register explicitly.
12033 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12034 disable flag_reorder_blocks.
12035 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12036 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12037 clobbers, for clarity.
12038 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12039 restoring of r0 in macl as MAYBE_DEAD.
12040 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12041 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12042 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12043 alter_subreg all over.
12044 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12045 reload, instead of emitting instructions that would require
12046 reloading.
12047 (casesi_load_media): Add missing modes.
12048 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12049 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12050 as used if the argument decoder is called.
12051 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12052 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12053 Pmode, then extend it to DImode if necessary.
12054 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12055 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12056 constants in FPU-enabled SHmedia, let them be loaded from memory.
12057 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12058 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12059 Adjust whitespace in assembly output templates.
12060 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12061 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12062 mode of if_then_else.
12063 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12064 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12065 sh.h.
12066 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12067 Joern Rennecke <amylaar@redhat.com>
12068 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12069 (SUBTARGET_CPP_PTR_SPEC): New.
12070 (SUBTARGET_CPP_SPEC): Remove.
12071 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12072 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12073 Fix typo in previous checkin.
12074 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12075 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12076 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
12077 Alexandre Oliva <aoliva@redhat.com>
12078 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12079 what single FP register can hold for SHmedia target.
12080 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12081 Alexandre Oliva <aoliva@redhat.com>
12082 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12083 Do not split into SUBREG.
12084 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
12085 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12086 and added new functions as specified in SH5 ABI r9.
12087 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
12088 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12089 8-byte boundary.
12090 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
12091 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12092 gen_consttable_4 and gen_consttable_8. Emit multiple labels
12093 and consttable_window_ends.
12094 2001-06-03 Graham Stott <grahams@redhat,com>
12095 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12096 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
12097 * config/sh/sh.c (print_operand): Handle floating-point pair,
12098 vector and matrix registers.
12099 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12100 vector modes into account.
12101 * config/sh/sh.md (movv2sf): Split move between registers into
12102 movdf.
12103 (movv4sf, movv16sf): Introduce insns that get split only after
12104 reload.
12105 * config/sh/shmedia.h: Fix Copyright dates.
12106 * config/sh/ushmedia.h: Likewise. Move loop counter
12107 declarations into conditionals that uses them.
12108 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12109 loop boundary.
12110 * config/sh/sshmedia.h: Fix Copyright dates.
12111 (sh_media_PUTCFG): Fix constraints.
12112 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
12113 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12114 ptrmemfunc_vbit_in_delta for SH5.
12115 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
12116 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12117 * invoke.texi: Likewise.
12118 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
12119 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12120 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12121 GCC_pop_shmedia_regs_nofpu): New global symbols.
12122 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12123 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12124 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12125 compact function with nonlocal labels.
12126 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12127 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12128 (initial_elimination_offset): Account for their stack space.
12129 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12130 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12131 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12132 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12133 least one of the operands to be a register.
12134 (movv2sf): Likewise. Renamed to movv2sf_i.
12135 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12136 prepare_move_operands() before emitting SHmedia insns.
12137 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
12138 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12139 Don't save nor initialize r12. Don't mis-align the stack.
12140 Pad the code with a nop.
12141 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
12142 stack.
12143 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
12144 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12145 [__SHMEDIA__]: Implement.
12146 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
12147 * config/sh/sh.md: Set latency of `pt' closer to reality.
12148 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12149 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12150 Set move, load and store type attributes.
12151 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12152 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12153 profiling.
12154 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12155 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12156 * config/sh/sh.c (sh_media_register_for_return): New function.
12157 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12158 branch-target register.
12159 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12160 * config/sh/sh.md (return_media_i): Use any call-clobbered
12161 branch-target register.
12162 (return_media): If r18 wasn't copied in the prologue, copy it
12163 here.
12164 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12165 Clear class FP0_REGS.
12166 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12167 from elf.h.
12168 2001-03-08 DJ Delorie <dj@redhat.com>
12169 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12170 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
12171 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12172 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
12173 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12174 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
12175 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12176 return value correctly for call_cookie.
12177 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
12178 * config/sh/crt1.asm (start): Modified so as to call
12179 ___setup_argv_and_call_main.
12180 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
12181 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12182 SHmedia mode.
12183 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
12184 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12185 (STRIP_NAME_ENCODING): Use it.
12186 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
12187 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
12188 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12189 prepare_scc_operands().
12190 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12191 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12192 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
12193 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12194 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
12195 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12196 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12197 used in shcompact_incoming_args.
12198 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12199 change.
12200 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12201 mode.
12202 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12203 Adjust accordingly.
12204 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12205 Simplify. Adjust. Add sanity check.
12206 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12207 FPU_SINGLE_BIT.
12208 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12209 TARGET_SHCOMPACT.
12210 (udivsi3, divsi3): Use them.
12211 (force_mode_for_call): New insn.
12212 (call, call_value, sibcall_value): Emit it before SHcompact
12213 calls.
12214 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
12215 * config/sh/sh.md (call, call_value, sibcall): Make sure the
12216 call cookie is non-NULL before taking its value.
12217 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
12218 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12219 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
12220 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12221 block.
12222 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12223 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12224 temporary for stack adjusts. Use MACL and MACH to pass
12225 arguments to shcompact_incoming_args.
12226 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
12227 clobber r1.
12228 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12229 (nested_trampoline): Load static chain address into r1.
12230 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12231 2001-01-07 Alexandre Oliva <aoliva@redhat.com
12232 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12233 fp_arith_reg_operand().
12234 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
12235 * config/sh/sh.md (casesi): Sign-extend the first two operands,
12236 and use signed compares for them.
12237 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12238 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
12239 ones properly aligned.
12240 (find_barrier): Account for extra alignment needed for 8-byte wide
12241 constants.
12242 (machine_dependent_reorg): Require a label for the second 4-byte
12243 constant after an 8-byte one.
12244 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12245 change.
12246 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12247 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12248 last_float when switching float modes.
12249 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12250 auto-increment for general-purpose registers.
12251 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12252 result.
12253 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12254 for stack adjust.
12255 * config/sh/sh.c (sh_builtin_saveregs): Support using all
12256 registers for varargs.
12257 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
12258 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12259 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12260 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12261 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12262 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
12263 call_cookie accordingly.
12264 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12265 (SHCOMPACT_BYREF): Likewise.
12266 (SHCOMPACT_FORCE_ON_STACK): New macro.
12267 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12268 (sh_builtin_saveregs): Likewise.
12269 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12270 shcompact_incoming_args): Use new shift values. Support
12271 sequences of consecutive and non-consecutive pushes/pops.
12272 * config/sh/sh.md (return): Don't explicitly use PR_REG.
12273 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
12274 * config/sh/sh.h (TEXT_SECTION): Define.
12275 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12276 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12277 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12278 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12279 return values on FPU-enabled SHmedia.
12280 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12281 FPU-enabled SHmedia.
12282 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12283 value is returned in a non-FP reg and is not returned by
12284 reference.
12285 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12286 jump_ind.
12287 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
12288 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12289 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12290 quad-aligned to be passed by callee-copy reference.
12291 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
12292 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12293 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12294 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
12295 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12296 copying low-numbered FP regs to r7 and r8.
12297 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12298 FP regs to general-purpose regs only if the copy was passed on the
12299 stack.
12300 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12301 copying FP reg to r9.
12302 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12303 copy FP regs to general-purpose regs only in outgoing calls.
12304 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12305 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
12306 HOST_WIDE_INT.
12307 * config/sh/sh.h (struct sh_args): Document all fields.
12308 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12309 passed partially on the stack should not consider making
12310 sibcalls.
12311 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12312 stack_regs only for incoming calls. When passing FP args,
12313 make sure there are FP regs available before modifying
12314 call_cookie.
12315 (SHCOMPACT_BYREF): Pass double args in general-purpose
12316 registers by reference.
12317 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
12318 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12319 attempt to generate sibcalls if the caller got any arguments
12320 by reference.
12321 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12322 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12323 to 8-byte boundaries.
12324 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12325 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12326 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12327 stored in the stack.
12328 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12329 for the offsets to have the ISA bit set.
12330 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
12331 invocation. Use beq instead of bgt to mark end of sequence of
12332 loads.
12333 (shcompact_incoming_args): Fix store of r2. Use beq instead of
12334 bgt to mark end of sequence of stores.
12335 * config/sh/sh.c (arith_operand): Don't check whether
12336 CONST_OK_FOR_J for now.
12337 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12338 instead of long for conversion.
12339 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
12340 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12341 before passing it to fprintf.
12342 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
12343 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12344 Call set_fpscr before reading/writing SR.
12345 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12346 Call set_fpscr.
12347 * config/sh/lib1funcs.asm: Add `.align 2' directives before
12348 SHmedia code.
12349 (FMOVD_WORKS): Define on SH5 with FPU.
12350 (set_fpscr): Define on SH5. Remove separate _fpscr_values
12351 setting.
12352 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12353 _fpscr_values.
12354 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
12355 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12356 address.
12357 (ia_main_table): Ditto.
12358 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
12359 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12360 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12361 the definitions from sh.h.
12362 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12363 TARGET_SH5.
12364 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12365 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12366 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12367 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
12368 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12369 Increment LABEL_NUSES.
12370
12371 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12372 TARGET_SH5.
12373 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12374 defined.
12375 * config/sh/elf.h (SIZE_TYPE): Likewise.
12376 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12377 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12378 shcompact_incoming_args): Load switch table addresses using
12379 datalabel.
12380 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12381 (NO_BUILTIN_SIZE_TYPE): Define.
12382 (SIZE_TYPE): Don't define.
12383 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12384 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12385 definition of __SH5__=32 for -m5-compact-nofpu.
12386 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12387 ADDR_DIFF_VEC.
12388 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
12389 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12390 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
12391 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12392 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12393 (INSN_LENGTH_ALIGNMENT): Likewise.
12394 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12395 * config/sh/sh.md (call, call_value, sibcall): Simplify
12396 copying of non-branch-target register.
12397 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12398 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
12399 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12400 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12401 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12402 floating-point values as structs.
12403 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12404 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12405 general-purpose register.
12406 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12407 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12408 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12409 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12410 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12411 (ENCODE_SECTION_INFO): Enclose variables and constants in
12412 DATALABEL unspecs.
12413 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12414 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12415 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12416 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12417 only for LABEL_REFs. For SYMBOL_REFs, prepend
12418 SH_DATALABEL_ENCODING to the symbol name.
12419 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12420 convert_mode().
12421 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12422 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12423 UNSPEC_DATALABEL.
12424 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12425 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12426 (DATALABEL_REF_P): Don't require CONST.
12427 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12428 REL label.
12429 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
12430 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12431 right.
12432 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12433 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12434 Use shallow_copy_rtx and PUT_MODE to change the mode of
12435 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12436 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12437 on SHmedia using GENERAL_REGs.
12438 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12439 bltu_media_i): Fix reversion of conditions.
12440 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12441 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12442 * config/sh/sh.c (output_far_jump): Save r13 in macl.
12443 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
12444 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12445 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
12446 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12447 (GCC_nested_trampoline): Likewise.
12448 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12449 * config/sh/sh.c (gen_datalabel_ref): Define.
12450 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12451 (INITIALIZE_TRAMPOLINE): Likewise.
12452 (TRAMPOLINE_ADJUST_ADDRESS): Define.
12453 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12454 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12455 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12456 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12457 (ic_invalidate): Adjust for SH5.
12458 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12459 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12460 _nested_trampoline.
12461 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
12462 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12463 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12464 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12465 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12466 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12467 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12468 * config/sh/sh.c (target_reg_operand): Match only target-branch
12469 registers and pseudos that aren't virtual registers.
12470 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12471 Copy operands that don't match target_reg_operand to pseudos.
12472 (call_media, call_value_media, sibcall_media): Use
12473 target_reg_operand instead of target_operand.
12474 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
12475 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12476 * config/sh/sh.c (target_reg_operand): Match hardware registers
12477 other than branch-target registers.
12478 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12479 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12480 (fpscr_values) [SH5 == 32]: Define.
12481 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12482 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12483 Handle function addresses coming in SUBREGs.
12484 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
12485 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12486 shcompact_return_trampoline): Use datalabel where appropriate.
12487 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
12488 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12489 general-purpose register to copy one branch-target register to
12490 another.
12491 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12492 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12493 SYMBOL_REFs with VOIDmode.
12494 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12495 bltu_media_i): New insns.
12496 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12497 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12498 (INIT_CUMULATIVE_ARGS): Likewise.
12499 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
12500 * machmode.def (V16SFmode): New mode.
12501 * c-common.c (type_for_mode): Support V2SF and V16SF.
12502 * tree.c (build_common_tree_nodes_2): Likewise.
12503 * tree.h (tree_index): Likewise.
12504 * calls.c (emit_call_1): Take args_so_far. Adjust all
12505 callers. Introduce CALL_POPS_ARGS.
12506 * tm.texi (CALL_POPS_ARGS): Document.
12507 * config/sh/crt1.asm: Implement in SHmedia mode.
12508 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12509 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12510 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12511 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12512 Implement divsi and udivsi in SHmedia mode. Introduce
12513 SHcompact trampolines.
12514 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12515 only in SHmedia64.
12516 (regno_reg_class): Rewrite.
12517 (fp_reg_names): Remove.
12518 (sh_register_names, sh_additional_register_names): New.
12519 (print_operand): Added `u'. Support SUBREGs in addresses.
12520 Add parentheses around shifted CONSTs.
12521 (output_file_start): Output .mode and .abi directives.
12522 (shiftcosts, addsubcosts, multcosts): Adjust.
12523 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
12524 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
12525 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
12526 bytes, not registers. Take into account the need for the
12527 SHcompact incoming args trampoline. Adjust all callers.
12528 (sh_expand_prologue): Take stack_regs into account. Call
12529 incoming args trampoline. Keep stack aligned as per SH5 ABI.
12530 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
12531 stack aligned as per SH5 ABI.
12532 (sh_builtin_saveregs): Support SH5 ABI.
12533 (sh_build_va_list, sh_va_start): Likewise.
12534 (initial_elimination_offset): Take alignment into account.
12535 Compute location of PR according to the SH5 stack frame.
12536 (arith_reg_operand): Reject branch-target registers.
12537 (shmedia_6bit_operand): New.
12538 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12539 (target_reg_operand): Match DImode only. Accept SUBREGs.
12540 (target_operand): New.
12541 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
12542 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
12543 SIBCALL_REGS for SHmedia.
12544 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
12545 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
12546 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
12547 (TARGET_SWITCHES): New SH5 flags.
12548 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
12549 VALID_REGISTER_P to disable unsupported registers.
12550 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
12551 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
12552 (FUNCTION_ARG_PADDING): Define.
12553 (FASTEST_ALIGNMENT): Adjust.
12554 (SH_REGISTER_NAMES_INITIALIZER): New.
12555 (sh_register_names): Declare.
12556 (DEBUG_REGISTER_NAMES): Define.
12557 (REGISTER_NAMES): Define based on sh_register_names.
12558 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
12559 (sh_additional_register_names): Declare.
12560 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
12561 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
12562 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
12563 (REGISTER_NATURAL_MODE): Define.
12564 (FIRST_PSEUDO_REGISTER): Adjust.
12565 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
12566 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
12567 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
12568 (VECTOR_MODE_SUPPORTED_P): Define.
12569 (REG_CLASS_CONTENTS): Adjust.
12570 (SMALL_REGISTER_CLASSES): Adjust.
12571 (REG_ALLOC_ORDER): Adjust.
12572 (INDEX_REG_CLASS): Adjust.
12573 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
12574 (CONST_OK_FOR_LETTER_P): Adjust.
12575 (PREFERRED_RELOAD_CLASS): Adjust.
12576 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
12577 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
12578 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
12579 (FIRST_FP_PARM_REG): Adjust.
12580 (CALL_POPS_ARGS): Define.
12581 (FUNCTION_ARG_REGNO_P): Adjust.
12582 (struct sh_args): New fields.
12583 (GET_SH_ARG_CLASS): Adjust.
12584 (INIT_CUMULATIVE_ARGS): Adjust.
12585 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
12586 (FUNCTION_ARG_ADVANCE): Adjust.
12587 (FUNCTION_ARG): Adjust.
12588 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
12589 (FUNCTION_ARG_CALLEE_COPIES): Define.
12590 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
12591 (STRICT_ARGUMENT_NAMING): Define.
12592 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
12593 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
12594 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
12595 (SETUP_INCOMING_VARARGS): Adjust.
12596 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
12597 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
12598 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
12599 (SUBREG_OK_FOR_INDEX_P): Adjust.
12600 (EXTRA_CONSTRAINT_S): Update.
12601 (EXTRA_CONSTRAINT_T): New.
12602 (EXTRA_CONSTRAINT): Adjust.
12603 (GO_IF_LEGITIMATE_INDEX): Adjust.
12604 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
12605 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
12606 (MOVE_MAX): Adjust.
12607 (MAX_MOVE_MAX): Define.
12608 (Pmode): Adjust.
12609 (CONST_COSTS): Adjust.
12610 (REGISTER_MOVE_COST): Adjust.
12611 (BRANCH_COST): Adjust.
12612 (TEXT_SECTION_ASM_OP): Adjust.
12613 (DBX_REGISTER_NUMBER): Adjust.
12614 (ASM_OUTPUT_DOUBLE_INT): New.
12615 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
12616 (PREDICATE_CODES): Adjust.
12617 (PROMOTE_MODE): Adjust.
12618 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
12619 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
12620 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
12621 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
12622 (DR0_REG, DR2_REG, DR4_REG): Renumber.
12623 (TR0_REG, TR1_REG, TR2_REG): New.
12624 (XD0_REG): Renumber.
12625 (UNSPEC_COMPACT_ARGS): New.
12626 (type): Added pt and ptabs.
12627 (length): Default to 4 on SHmedia. Default pt length to 12
12628 and 20 on SHmedia32 and SHmedia64, respectively.
12629 (pt): New function unit.
12630 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
12631 Add whitespace between operands of SHmedia instructions.
12632 (movdicc): Fix.
12633 (adddi3_media, addsi3_media): Adjust constraints.
12634 (subsi3) [SHmedia]: Force operand 1 into a register.
12635 (udivsi3_i1_media, udivsi3_i4_media): New.
12636 (udivsi3): Support SHmedia.
12637 (divsi3_i1_media, divsi3_i4_media): New.
12638 (divsi3): Support SHmedia.
12639 (anddi3, iordi3, xordi3): Adjust constraints.
12640 (zero_extendhidi2, zero_extendqidi2): New.
12641 (extendsidi2, extendhidi2, extendqidi2): New.
12642 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
12643 (pop_e, pop_fpul, pop_4): Likewise.
12644 (movsi_media): Support FP and BT registers.
12645 (movsi_media_nofpu): New. Adjust splits to DImode.
12646 (lduw, ldub): Renamed to zero_extend* above.
12647 (movqi_media): Fix typo.
12648 (movdi_media): Support FP and BT registers.
12649 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
12650 (movdi_const_32bit): New.
12651 (shori_media): Require immediate operand. Use `u' for output.
12652 (movdf_media, movsf_media): Simplified.
12653 (movdf_media_nofpu, movsf_media_nofpu): New.
12654 (movdf, movsf): Adjust
12655 (movv2sf, movv2sf, movv16sf): New.
12656 (beq_media, beq_media_i): Adjust constraints. Don't use
12657 scratch BT register.
12658 (bne_media, bne_media_i): Likewise.
12659 (bgt_media, bgt_media_i): Likewise.
12660 (bge_media, bge_media_i): Likewise.
12661 (bgtu_media, bgtu_media_i): Likewise.
12662 (bgeu_media, bgeu_media_i): Likewise.
12663 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
12664 bunordered): Emit jump insn. Force operands to registers when
12665 needed.
12666 (jump_media, jump): Simplify.
12667 (call_compact, call_compact_rettramp): New.
12668 (call_value_compact, call_value_compact_rettramp): New.
12669 (call_media, call_value_media): Simplify.
12670 (sibcall_compact, sibcall_media): New.
12671 (call, call_value): Adjust for SHmedia and SHcompact.
12672 (sibcall, sibcall_value, untyped_call): Likewise.
12673 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
12674 (indirect_jump): Adjust for SHmedia.
12675 (casesi_jump_media): New.
12676 (nop): Re-enable for SHmedia.
12677 (call_site): Restrict to SH1.
12678 (casesi): Adjust for SHmedia.
12679 (casesi_shift_media, casesi_load_media): New.
12680 (return): Explicitly use PR register. Call return trampoline
12681 on SHcompact.
12682 (return_i): Explicitly use PR register.
12683 (shcompact_return_tramp, shcompact_return_tramp_i): New.
12684 (return_media): Adjust.
12685 (shcompact_incoming_args): New.
12686 (epilogue): Adjust.
12687 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12688 (movstrsi): Disable on SH5.
12689 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
12690 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
12691 (subsf3, subsf3_media): Likewise.
12692 (mulsf3, mulsf3_media, mac_media): Likewise.
12693 (divsf3, divsf3_media): Likewise.
12694 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
12695 (floatsisf2, fux_truncsfsi2): Likewise.
12696 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
12697 constraints.
12698 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
12699 (cmpunsf_media, cmpsf): Likewise.
12700 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
12701 (abssf2, abssf2_media): Likewise.
12702 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
12703 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
12704 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
12705 (floatsidf2, fix_truncdfsi2): Likewise.
12706 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
12707 constraints.
12708 (cmpeqdf_media, cmpgtdf_media): Likewise.
12709 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
12710 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
12711 (absdf2, absdf2_media): Likewise.
12712 (extendsfdf2, extendsfdf2_media): Likewise.
12713 (truncsfdf2, truncsfdf2_media): Likewise.
12714 * config/sh/sh64.h: New file.
12715 * config/sh/t-sh64: New file.
12716 * config/sh/shmedia.h: New file.
12717 * config/sh/ushmedia.h: New file.
12718 * config/sh/sshmedia.h: New file.
12719 * configure.in: Added sh64-*-elf.
12720 * configure: Rebuilt.
12721 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
12722 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
12723 (reg_class_from_letter): Use `b' for TARGET_REGS.
12724 (print_operand): Support `%M', `%m', `AND' and
12725 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
12726 (andcosts): Adjust for SHmedia.
12727 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
12728 Likewise.
12729 (target_reg_operand): New function.
12730 * config/sh/sh-protos.h (target_reg_operand): Declare.
12731 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
12732 FP registers on SH5.
12733 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
12734 on SH4.
12735 (TARGET_REGISTER_P): New macro.
12736 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
12737 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
12738 (EXTRA_CONSTRAINT_S): New macro.
12739 (EXTRA_CONSTRAINT): Adjust.
12740 (FLOAT_TYPE_SIZE): Define to 32.
12741 (Pmode): DImode on SHmedia.
12742 (CONST_COSTS): Adjust for SHmedia literals.
12743 (PREDICATE_CODES): Added target_reg_operand.
12744 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
12745 * config/sh/sh.md: Remove all attrs from SHmedia insns.
12746 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
12747 (cmpdi): Accept SHmedia.
12748 (movdicc_false, movdicc_true): New insns.
12749 (movdicc): New expand.
12750 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
12751 no_new_pseudos.
12752 (addsi3_media): Match `S' constraint.
12753 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
12754 (negdi2): Expand for SHmedia.
12755 (one_cmpldi2): New expand.
12756 (zero_extendsidi2): Change from expand to insn.
12757 (extendsidi2): Add constraints.
12758 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
12759 LD/ST address. Fix SI immediate loading split.
12760 (movhi_media, movqi_media, lduw, ldub): New insns.
12761 (movhi, movqi): Accept SHmedia.
12762 (shori_media, movdi_media): Relax input constraints. Split
12763 symbolic constants.
12764 (movdf_media, movsf_media): New insn. New split to movdi.
12765 (movdf, movsf): Match on SHmedia.
12766 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
12767 bgeu_media): New insns and splits. New insns with `_i' suffix.
12768 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
12769 (bunordered): New expand.
12770 (jump_compact): Renamed from `jump'.
12771 (jump_media): New insn.
12772 (jump): New expand.
12773 (call_media, call_value_media): New insns.
12774 (call, call_value): Adjust.
12775 (indirect_jump_compact): Renamed from `indirect_jump'.
12776 (indirect_jump_media): New insn.
12777 (indirect_jump): New expand.
12778 (untyped_call, return): Accept SHmedia.
12779 (return_media): New insn.
12780 (prologue, epilogue, blockage): Accept SHmedia.
12781 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12782 (sunordered): New expand.
12783 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
12784 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
12785 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
12786 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
12787 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
12788 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
12789 abssf2_media): New insns.
12790 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
12791 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
12792 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
12793 floatdidf2, floatsidf2_media, fix_truncdfdi2,
12794 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
12795 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
12796 absdf2_media): New insns.
12797 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
12798 (extendsfdf2_media, truncdfsf2_media): New insns.
12799 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
12800 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
12801 * config/sh/sh.h (CONST_OK_FOR_J): Document.
12802 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
12803 * config/sh/sh.md (adddi3): New expand.
12804 (adddi3_media, adddi3z_media): New insns.
12805 (adddi3_compact): Renamed from adddi3.
12806 (addsi3_media): Use add.l r63 to add constant zero.
12807 (subdi3): New expand.
12808 (subdi3_media): New insn.
12809 (subdi3_compact): Renamed from subdi3.
12810 (mulsidi3): New expand.
12811 (mulsidi3_media): New insn.
12812 (mulsidi3_compact): Renamed from mulsidi3.
12813 (umulsidi3): New expand.
12814 (umulsidi3_media): New insn.
12815 (umulsidi3_compact): Renamed from umulsidi3.
12816 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
12817 (ashlsi3, ashrsi3, lshrsi3): Use them.
12818 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
12819 (ashldi3, ashrdi3, lshrdi3): Use them.
12820 (zero_extendsidi2): New expand.
12821 (extendsidi2): New insn.
12822 (movsi_media): New insn. Split to movdi to load constants.
12823 (movsi): Enable for shmedia.
12824 (movdi_media): New insn. Use shori_media to load wide constants.
12825 (short_media): New insn.
12826 (movdi): Enable for shmedia.
12827 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
12828 * config/sh/sh.h (CPP_SPEC): Added `m5'.
12829 (SUBTARGET_CPP_SPEC): Added `!m5'.
12830 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
12831 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
12832 to all other SH variants.
12833 (TARGET_DEFAULT): Set to SH1_BIT.
12834 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
12835 (BITS_PER_WORD): Raise to 64 on shmedia.
12836 (MAX_BITS_PER_WORD): Change to 64.
12837 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
12838 (INT_TYPE_SIZE): Keep as 32.
12839 (UNITS_PER_WORD): Raise to 8 on shmedia.
12840 (MIN_UNITS_PER_WORD): Keep as 4.
12841 (POINTER_SIZE): Raise to 64 on shmedia.
12842 (CONST_OK_FOR_J): New macro.
12843 (CONST_OK_FOR_LETTER_P): Use it.
12844 (processor_type): Add PROCESSOR_SH5.
12845 * config/sh/sh.md: Conditionalize all expands, insns and
12846 splits to TARGET_SH1.
12847 (cpu): Added sh5.
12848 (addsi3_compact): Renamed from...
12849 (addsi3): Now an expand.
12850 (addsi3_media, subsi3_media): New insns.
12851 (subsi3): Don't negate constants with SHmedia.
12852
12853 * hooks.c: New file.
12854 * hooks.h: New file.
12855 * Makefile.in (HOOKS_H): New.
12856 (TARGET_DEF_H): Added $(HOOKS_H).
12857 (OBJS): Added hooks.o.
12858 (cfgcleanup.o, bb-reorder.o): Added target.h.
12859 (hooks.o): Added dependencies.
12860 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
12861 (TARGET_INITIALIZER): this.
12862 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
12863 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
12864 * bb-reorder.c: Include target.h.
12865 (reorder_basic_blocks): Skip if cannot modify jumps.
12866 * cfgcleanup.c: Include target.h.
12867 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
12868
12869 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12870
12871 * config/mips/mips.md (casesi_internal, casesi_internal_di):
12872 Protect jump delay slot instructions with .set noreorder and
12873 .set nomacro.
12874
12875 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12876
12877 * config/mips/mips.md (casesi_internal_di): Calculate
12878 the index into the target offset table correctly.
12879
12880 2002-02-08 Richard Henderson <rth@redhat.com>
12881
12882 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
12883 * final.c (output_addr_const): Accept and discard SUBREG.
12884 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
12885 mark them unknown instead.
12886 (simplify_subtraction): Handle RTX_UNKNOWN.
12887 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
12888
12889 2002-02-08 David Edelsohn <edelsohn@gnu.org>
12890
12891 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
12892
12893 2002-02-08 Richard Henderson <rth@redhat.com>
12894
12895 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
12896
12897 2002-02-08 Andreas Jaeger <aj@suse.de>
12898
12899 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
12900 * config/i386/t-linux64: New file.
12901
12902 2002-02-08 Jakub Jelinek <jakub@redhat.com>
12903
12904 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
12905 * c-parse.in (compstmt): Clear last_expr_type.
12906
12907 2002-02-07 Richard Henderson <rth@redhat.com>
12908
12909 * loop.c (strength_reduce): Sink final_value when not
12910 eliminating a biv.
12911
12912 2002-02-07 David O'Brien <obrien@FreeBSD.org>
12913
12914 * config/sparc/freebsd.h: Fix mismatched spec {.
12915
12916 2002-02-07 Richard Henderson <rth@redhat.com>
12917
12918 * cfgrtl.c: Include recog.h and insn-config.h.
12919 (keep_with_call_p): Fix general_operand invocation.
12920 * Makefile.in (cfgrtl.o): Update dependencies.
12921
12922 2002-02-07 Kazu Hirata <kazu@hxi.com>
12923
12924 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
12925 comment. Accept HImode only if TARGET_H8300.
12926
12927 2002-02-07 Eric Christopher <echristo@redhat.com>
12928
12929 * config/mips/crtn.asm: Cleanup #ifdefs.
12930
12931 2002-02-07 Eric Christopher <echristo@redhat.com>
12932
12933 * config/mips/crti.asm: Add changes for mips16. mips16 uses
12934 register 7 as RA instead of $31.
12935 * config/mips/crtn.asm: Ditto.
12936 * config/mips/mips.c (mips_move_2words): Add case for
12937 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
12938 (compute_frame_size): Fix typo.
12939 (save_restore_insns): Ditto. Make documentation about using
12940 register $7 as return register more precise.
12941 (mips_expand_epilogue): Fix comment. Add code to work around not
12942 being able to add to the stack pointer directly.
12943 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
12944 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
12945 epilogue.
12946
12947 2002-02-07 Tom Rix <trix@redhat.com>
12948
12949 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
12950 immediates in ldu and stdu DS opcode field.
12951 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
12952 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
12953 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
12954
12955 2002-02-07 Jeff Sturm <jsturm@one-point.com>
12956
12957 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
12958 offset for stack bias.
12959
12960 2002-02-07 H.J. Lu <hjl@gnu.org>
12961
12962 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
12963
12964 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
12965
12966 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
12967
12968 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
12969
12970 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
12971 * i386.c (x86_order_regs_for_local_alloc): New global function.
12972 * i386.h (REG_ALLOC_ORDER): CLeanup.
12973 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
12974
12975 2002-02-07 Richard Henderson <rth@redhat.com>
12976
12977 PR optimization/2463
12978 * alias.c (find_base_value): Recall base values for fixed hard regs.
12979 * loop.c (loop_regs_update): Don't use single_set on non-insns.
12980
12981 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
12982
12983 * config/mips/mips.md (define_delay) [mips16]: Adjust required
12984 length.
12985
12986 2002-02-06 Richard Henderson <rth@redhat.com>
12987
12988 PR c/5609
12989 * stmt.c (resolve_operand_name_1): Take more care with mixed
12990 named and unnamed operands.
12991
12992 2002-02-06 Janis Johnson <janis187@us.ibm.com>
12993 Jan Hubicka <jh@suse.cz>
12994
12995 * loop.c (remove_constant_addition): Avoid clobbering a shared
12996 CONST expression.
12997
12998 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
12999
13000 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13001 * config/s390/t-linux64: New file.
13002 * config/s390/libgcc-glibc.ver: New file.
13003
13004 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13005
13006 * config/s390/linux64.h: Delete file.
13007 * config/s390/s390x.h: New file.
13008 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13009 as target header file.
13010 * config/s390/linux.h (TARGET_VERSION): Define depending on
13011 DEFAULT_TARGET_64BIT.
13012 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13013 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13014 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13015 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13016 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13017 (EXTRA_SPEC): New define.
13018 * config/s390/s390.h (TARGET_VERSION): Define depending on
13019 DEFAULT_TARGET_64BIT.
13020 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13021
13022 2002-02-06 Jason Merrill <jason@redhat.com>
13023
13024 * c-decl.c (finish_function): Warn about a non-void function with
13025 no return statement and no abnormal exit.
13026 (current_function_returns_abnormally): New variable.
13027 (start_function): Clear it.
13028 (struct c_language_function): Add returns_abnormally.
13029 (push_c_function_context): Save it.
13030 (pop_c_function_context): Restore it.
13031 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13032 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13033 an explicit return type.
13034 * c-tree.h: Declare current_function_returns_abnormally.
13035 (C_FUNCTION_IMPLICIT_INT): New macro.
13036 * c-typeck.c (build_function_call): Set it.
13037 (c_expand_return): Set current_function_returns_value even if the
13038 value is erroneous.
13039
13040 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13041
13042 PR c/5420:
13043 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13044 unsafe for reevaluation.
13045
13046 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13047
13048 PR c/5482:
13049 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13050 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13051
13052 2002-02-06 Richard Henderson <rth@redhat.com>
13053
13054 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13055 be a general_operand. Dest for function value must be a pseudo.
13056
13057 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13058
13059 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13060 as SYMBOL_REFs from the constant pool.
13061
13062 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13063
13064 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13065 passed by invisible reference.
13066
13067 2002-02-05 Richard Henderson <rth@redhat.com>
13068
13069 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13070
13071 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13072
13073 Implement using "base addresses" in insn operands as default.
13074 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13075 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13076 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13077 used to read the rtx value.
13078 (mmix_target_asm_function_epilogue): Fix spacing.
13079 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13080 (mmix_legitimate_address): Ditto.
13081 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13082 should be loaded with a GETA insn. Don't allocate needless extra
13083 char for nul termination and fix misleading comment.
13084 (mmix_print_operand_address): Handle constants if
13085 TARGET_BASE_ADDRESSES.
13086 (mmix_output_register_setting): Use base addressing if
13087 TARGET_BASE_ADDRESSES and the number of insns is 3.
13088 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13089 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13090 to use R as constraint, add LDA to match s.
13091 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13092 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13093 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13094 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13095 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13096 order with other fixed registers.
13097 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13098 other parameter/call-clobbered registers.
13099 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13100 -mbase-addresses, -mno-base-addresses.
13101 (MMIX Options): Ditto.
13102
13103 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13104
13105 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13106
13107 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
13108
13109 * config/rs6000/altivec.h: Change elem to _S_elem.
13110
13111 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13112
13113 * config/netbsd.h (WCHAR_TYPE): Define.
13114 (WCHAR_TYPE_SIZE): Ditto.
13115 (WINT_TYPE): Ditto.
13116 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13117 (WCHAR_UNSIGNED): Ditto.
13118 (WCHAR_TYPE_SIZE): Ditto.
13119 (WINT_TYPE): Ditto.
13120 * config/arm/netbsd.h: Likewise.
13121 * config/i386/netbsd-elf.h: Likewise.
13122 * config/i386/netbsd.h: Likewise.
13123 * config/m68k/netbsd-elf.h: Likewise.
13124 * config/m68k/netbsd.h: Likewise.
13125 * config/ns32k/netbsd.h: Likewise.
13126 * config/sparc/netbsd.h: Likewise.
13127 * config/vax/netbsd.: Likewise.
13128
13129 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
13130
13131 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13132 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
13133 (TARGET_INITIALIZER): this.
13134 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13135 (BITFIELD_NBYTES_LIMITED): Markup fix.
13136 * tree.h (default_ms_bitfield_layout_p): Declare.
13137 (record_layout_info): Added prev_field.
13138 * tree.c (default_ms_bitfield_layout_p): New fn.
13139 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13140 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13141 * stor-layout.c: Include target.h.
13142 (start_record_layout): Initialize prev_field.
13143 (place_field): Handle MS bit-field layout, and disregard
13144 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13145 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
13146 * Makefile.in (stor-layout.o): Adjust dependencies.
13147
13148 2002-02-05 Jason Merrill <jason@redhat.com>
13149
13150 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13151
13152 2002-02-05 Andreas Jaeger <aj@suse.de>
13153
13154 * crtstuff.c: Fix comments.
13155
13156 2002-02-05 Richard Henderson <rth@redhat.com>
13157
13158 PR fortran/3393
13159 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13160 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13161
13162 PR fortran/3392
13163 * config/mips/mips.c (function_arg): Handle TImode.
13164 (function_arg_advance): Likewise.
13165
13166 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13167
13168 * config/rs6000/altivec.h (vec_step_help): Rename to
13169 __vec_step_help.
13170
13171 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13172
13173 * config/rs6000/altivec.h: Fix typos.
13174
13175 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13176
13177 * config/arm/netbsd.h: Correct a comment.
13178
13179 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13180
13181 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13182 building void typed builtins.
13183
13184 * config/rs6000/altivec.h (vec_ld*): Fix typos.
13185 (vec_step): Implement for C++.
13186
13187 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13188
13189 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13190
13191 2002-02-04 Richard Henderson <rth@redhat.com>
13192
13193 * combine.c (nonzero_bits): Re-introduce special case for
13194 sp/fp/ap wrt REGNO_POINTER_ALIGN.
13195
13196 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13197
13198 * doc/extend.texi: Warn about unsupported usage of altivec
13199 builtins.
13200
13201 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13202 (altivec_predicate_*): New.
13203
13204 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13205 Add C++ version of vec_*() functions.
13206
13207 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13208 (bdesc_2arg): Remove altivec predicates.
13209 (altivec_expand_builtin): Handle predicates.
13210 (altivec_init_builtins): Handle predicates.
13211 (altivec_expand_predicate_builtin): New.
13212
13213 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13214
13215 * pa.c (DO_FRAME_NOTES): Move forward.
13216 (store_reg): Revise handling of frame notes.
13217 (load_reg): Likewise.
13218 (set_reg_plus_d): Likewise.
13219 (hppa_expand_prologue): Likewise.
13220 (hppa_expand_epilogue): Likewise.
13221
13222 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13223
13224 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13225
13226 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13227
13228 PR c/4475, c++/3780:
13229 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13230 * c-common.h (SWITCH_TYPE): Define.
13231 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13232 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13233 Rename spareness variable to sparseness.
13234 (expand_end_case_type): Renamed from expand_end_case, use orig_type
13235 if non-NULL instead of TREE_TYPE (orig_index).
13236 * tree.h (expand_end_case_type): Renamed from expand_end_case.
13237 (expand_end_case): Define using expand_end_case_type.
13238 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13239 to expand_end_case_type.
13240 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13241
13242 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13243
13244 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13245 (BIGGEST_ALIGNMENT): Change to 128.
13246
13247 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13248
13249 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13250
13251 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13252
13253 * pa.md (call_internal_reg_64bit): Remove unused variable.
13254
13255 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
13256
13257 * config/arm/arm.h (machine_function): Add uses_anonymous_args
13258 field.
13259 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13260 * config/arm/arm.c (current_function_anonymous_args): Delete,
13261 replace uses with cfun->machine->uses_anonymous_args.
13262 (arm_reorg): Do not reset uses_anonymous_args.
13263
13264 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13265 any geenral register.
13266
13267 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
13268
13269 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13270 the entry block.
13271
13272 2002-02-04 Richard Henderson <rth@redhat.com>
13273
13274 * combine.c (force_to_mode): Remove STACK_BIAS code.
13275 (nonzero_bits): Likewise. Replace sp/fp special case with
13276 REGNO_POINTER_ALIGN.
13277
13278 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13279 (HARD_FRAME_POINTER_REGNUM): New.
13280 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13281 (FIXED_REGS, CALL_USED_REGS): Update.
13282 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13283 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13284 (HARD_REGNO_NREGS): Update for SFP.
13285 (STACK_POINTER_OFFSET): Include bias here ...
13286 (FIRST_PARM_OFFSET): ... not here.
13287 (STACK_BIAS): Remove.
13288 (INIT_EXPANDERS): New.
13289 (STARTING_FRAME_OFFSET): Do not include bias.
13290 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13291 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13292 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13293 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13294 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13295 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13296 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13297 (MUST_SAVE_REGISTER): Likewise.
13298 (sparc_flat_function_prologue): Likewise.
13299 (sparc_flat_function_epilogue): Likewise.
13300 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13301 (sparc_init_modes): SFP is GENERAL_REGS.
13302 (sparc_builtin_saveregs): SFP does not have bias applied.
13303
13304 2002-02-04 Richard Henderson <rth@redhat.com>
13305
13306 * config/alpha/alpha.c (current_function_is_thunk): Don't check
13307 current_function_is_thunk.
13308 (alpha_sa_mask): Distinguish between current_function_is_thunk
13309 called from ASM_OUTPUT_MI_THUNK and not.
13310 (alpha_does_function_need_gp): Thunks always need gp.
13311 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13312 (alpha_output_mi_thunk_osf): New.
13313 * config/alpha/alpha-protos.h: Update.
13314 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13315
13316 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
13317
13318 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13319 function types, not when they're taken away.
13320
13321 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
13322
13323 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13324 CODE_LABEL and jump table when replacing a table jump with a
13325 simple jump.
13326
13327 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13328
13329 * config/s390/s390-protos.h (legitimize_la_operand,
13330 s390_secondary_input_reload_class, s390_plus_operand,
13331 s390_expand_plus_operand): Add prototypes.
13332
13333 config/s390/s390.c (s390_secondary_input_reload_class,
13334 s390_plus_operand, s390_expand_plus_operand): New functions.
13335
13336 (struct s390_address): New member 'pointer'.
13337 (s390_decompose_address): Compute it.
13338 (legitimate_la_operand_p): Use it.
13339 (legitimize_la_operand): New function.
13340 (movti, movdi, movdf splitters): Call it.
13341
13342 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13343 (PREDICATE_CODES): Add s390_plus_operand.
13344
13345 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13346 (la_ccclobber): Allow GENERAL_REGS as output operand.
13347
13348 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13349 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13350 (*la_64, *la_31, reload_indi, reload_insi): ... these.
13351
13352 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13353
13354 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13355 register names for regular asm () construct.
13356
13357 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13358
13359 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13360 registers.
13361
13362 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13363
13364 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13365 pat for recog.
13366
13367 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
13368
13369 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13370 constant pool to be identical by string address and index.
13371
13372 2002-02-04 Anthony Green <green@redhat.com>
13373
13374 * output.h (SECTION_OVERRIDE): Define.
13375 * varasm.c (named_section): Obey SECTION_OVERRIDE.
13376
13377 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13378
13379 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13380 by existing arm*-*-netbsd* (a.out) target.
13381 (ns32k-*-netbsdelf*): Likewise.
13382 (sparc-*-netbsdelf*): Likewise.
13383 (vax-*-netbsdelf*): Likewise.
13384
13385 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
13386
13387 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13388 headers and libobjc headers.
13389
13390 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
13391
13392 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13393 (_mingw.h): Remove duplicate include.
13394
13395 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13396
13397 * config.gcc: Set cpu_type to m68k for 68010, as well.
13398 (m68010-*-netbsdelf*): New...
13399 (m68k*-*-netbsdelf*): ...targets.
13400 * config/m68k/netbsd-elf.h: New file.
13401
13402 2002-02-02 Kazu Hirata <kazu@hxi.com>
13403
13404 * config/h8300/h8300.c (hand_list): Move inside function_arg.
13405
13406 2002-02-02 Kazu Hirata <kazu@hxi.com>
13407
13408 * config/h8300/h8300.c (h8_push_ops): Move inside
13409 h8300_init_once.
13410 (h8_pop_ops): Likewise.
13411 (h8_move_ops): Likewise.
13412
13413 2002-02-02 Kazu Hirata <kazu@hxi.com>
13414
13415 * config/h8300/h8300.c (os_task): Make it static.
13416 (monitor): Likewise.
13417 (pragma_saveall): Likewise.
13418
13419 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
13420
13421 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13422 constant is a valid sign-extension for Pmode.
13423
13424 2002-02-02 Kazu Hirata <kazu@hxi.com>
13425
13426 * config/h8300/h8300.c: Fix formatting.
13427
13428 2002-02-02 Kazu Hirata <kazu@hxi.com>
13429
13430 * config/h8300/h8300.md: Fix formatting.
13431
13432 2002-02-02 Kazu Hirata <kazu@hxi.com>
13433
13434 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13435 predicates of operands[1]. Split the patterns for each
13436 processor variant.
13437
13438 2002-02-02 Kazu Hirata <kazu@hxi.com>
13439
13440 * config/h8300/h8300.md (xor patterns): Tighten the predicates
13441 of operands[1] to register_operand.
13442
13443 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13444
13445 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13446 * cpphash.c (_cpp_init_hashtable): Similarly.
13447 * cppinit.c (cpp_create_reader): Default the signed_char flag.
13448 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13449 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13450 (cpp_handle_option): Handle the new options.
13451 * cpplex.c (cpp_interpret_charconst): Use new flag.
13452 * cpplib.h (struct cpp_options): New member signed_char.
13453 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13454 (cpp_options): Handle -fsigned-char and -funsigned-char.
13455 (static_specs): Remove signed_char_spec.
13456 (do_spec1): Don't handle %c.
13457 * system.h: Poison SIGNED_CHAR_SPEC.
13458 * tradcif.y (yylex): Use flag_signed_char.
13459 * tradcpp.h (flag_signed_char): New.
13460 * tradcpp.c (flag_signed_char): New.
13461 (main): Handle new command-line options.
13462 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13463 config:
13464 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13465 * avr/avr.h: Remove old comments.
13466 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13467 (CC1_SPEC): Pass -fsigned-char if -mic*.
13468 (SIGNED_CHAR_SPEC): Remove.
13469 doc:
13470 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13471
13472 2002-02-01 Eric Christopher <echristo@redhat.com>
13473
13474 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13475 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13476 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13477 (ASM_OUTPUT_REG_POP): Ditto.
13478
13479 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13480
13481 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13482 patch.
13483
13484 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13485
13486 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13487
13488 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13489
13490 PR c/5304:
13491 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13492 unconditionally.
13493
13494 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13495
13496 * cfganal.c: Include tm_p.h.
13497 (keep_with_call_p): Fix the test that determines if a register holds
13498 the return value of a call.
13499
13500 2002-02-01 DJ Delorie <dj@redhat.com>
13501
13502 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13503 we are given conflicting registers, switch to the other one we
13504 had allocated for us.
13505 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13506 as TImode so we know when the "other" register is available.
13507
13508 2002-02-01 David O'Brien <obrien@FreeBSD.org>
13509
13510 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13511 sparc/sparc_bi.h.
13512
13513 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13514
13515 * cfganal.c (keep_with_call_p): New function.
13516 (flow_call_edges_add): Prevent splitting a block between a call and
13517 a single-set instruction that should be kept in the same block.
13518
13519 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
13520
13521 * doc/install.texi (avr): Update outdated URL.
13522
13523 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
13524
13525 * config/stormy16/stormy16.md (pushqi): New.
13526 (popqi): New.
13527 (pushhi): New.
13528 (pophi): New.
13529 (movhi): Remove stack operands.
13530 (movqi): Likewise.
13531 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13532 nonimmediate_nonstack_operand.
13533 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13534 New.
13535 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13536 New.
13537
13538 2002-01-31 Jason Merrill <jason@redhat.com>
13539
13540 * Makefile.in (c-parse.c): Handle .output file.
13541 * objc/Make-lang.in (objc-parse.c): Likewise.
13542
13543 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
13544
13545 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
13546 the -me[lb] option is given. Don't output the default flag
13547 twice.
13548
13549 2002-01-31 Zack Weinberg <zack@codesourcery.com>
13550
13551 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
13552 the primary source file; this has not been done yet.
13553 * c-decl.c (c_expand_body): Reset input_filename from
13554 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
13555
13556 2002-01-31 Kazu Hirata <kazu@hxi.com>
13557
13558 * rtlanal.c (subreg_regno_offset): Do not use
13559 SUBREG_REGNO_OFFSET.
13560 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
13561 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
13562
13563 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13564
13565 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
13566 version rather than GNATS version in --version output.
13567
13568 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
13569
13570 * ifcvt.c (noce_process_if_block): Make a copy of the destination
13571 when copying back from a temporary.
13572
13573 2002-01-30 Richard Henderson <rth@redhat.com>
13574
13575 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
13576 and new_dest are the same.
13577
13578 2002-01-30 Richard Henderson <rth@redhat.com>
13579
13580 PR opt/5076
13581 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
13582 * rtl.c (note_insn_name): Update.
13583 * emit-rtl.c (remove_unnecessary_notes): Kill it.
13584 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
13585 to perform loop rotation.
13586 (expand_exit_loop_top_cond): New.
13587 * tree.h (expand_exit_loop_top_cond): Declare it.
13588 * c-semantics.c (genrtl_while_stmt): Use it.
13589 (genrtl_for_stmt): Likewise.
13590
13591 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
13592
13593 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
13594 arguments to 64-bit boundaries on 64-bit ABIs.
13595
13596 2002-01-30 Steve Ellcey <sje@cup.hp.com>
13597
13598 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
13599
13600 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13601
13602 * c-decl.c (grokdeclarator): Handle type being a typedef for an
13603 invalid type.
13604
13605 2002-01-30 David O'Brien <obrien@FreeBSD.org>
13606
13607 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
13608 * config/sparc/sparc_bi.h: Remove file.
13609 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
13610
13611 2002-01-30 Richard Henderson <rth@redhat.com>
13612
13613 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
13614
13615 2002-01-30 Zack Weinberg <zack@codesourcery.com>
13616
13617 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
13618
13619 2002-01-30 Jason Merrill <jason@redhat.com>
13620
13621 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
13622 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
13623 (reg_save): Use DW_CFA_offset_extended_sf instead.
13624
13625 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
13626
13627 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13628
13629 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
13630 in cselib_lookup.
13631
13632 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
13633
13634 * rs6000.md ("*call_value_local32"): Remove constraints.
13635 ("*call_value_local64"): Same.
13636 ("*call_value_indirect_nonlocal_aix32"): Same.
13637 ("*call_value_nonlocal_aix32"): Same.
13638 ("*call_value_indirect_nonlocal_aix64"): Same.
13639 ("*call_value_nonlocal_aix64"): Same.
13640 ("*call_value_nonlocal_sysv"): Same.
13641
13642 2002-01-29 Richard Henderson <rth@redhat.com>
13643
13644 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
13645
13646 2002-01-29 Richard Henderson <rth@redhat.com>
13647
13648 * expr.c (force_operand): Ignore flag_pic for detecting pic
13649 address loads.
13650 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
13651 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
13652 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
13653 instead of open-coded loop.
13654 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
13655 be fixed when in use.
13656
13657 2002-01-29 Richard Henderson <rth@redhat.com>
13658
13659 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
13660 * sched-rgn.c (propagate_deps): Update them.
13661 * sched-deps.c (sched_analyze_insn): Update them. Flush the
13662 clobbers list when either gets too long.
13663
13664 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13665
13666 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
13667 and INDEX_REGS the same as GENERAL_REGS.
13668 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
13669
13670 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13671
13672 * tree.c (build_nonstandard_integer_type): Correct prototype.
13673
13674 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
13675
13676 * config/s390/s390.md (movstrsico, movstrdix_64,
13677 movstrsix_31): Remove, replace by ...
13678 (movstrdi_short, movstrsi_short, movstrdi_long,
13679 movstrsi_long): ... these. New.
13680 (movstrdi, movstrsi): Adapt.
13681
13682 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
13683 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
13684 Remove unnecessary CC clobber.
13685 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
13686 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
13687
13688 (divmoddi4): Don't partially initialize TImode register.
13689
13690 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
13691
13692 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
13693
13694 2002-01-29 Richard Henderson <rth@redhat.com>
13695
13696 * flow.c (print_rtl_and_abort): Remove.
13697 (print_rtl_and_abort_fcn): Remove.
13698 (verify_local_live_at_start): Use dump_bb instead.
13699 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
13700 (verify_wide_reg_1): Return 2 on mode test failure.
13701
13702 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
13703
13704 PR c/3325, c/3326, c/2511, c/3347
13705 * c-decl.c (enum_decl_context): Remove BITFIELD.
13706 (grokdeclarator): Take bitfield width as an input.
13707 Ensure bitfields are given the correct type. Perform
13708 bitfield width validation with build_bitfield_integer_type
13709 rather than waiting for finish_struct.
13710 (grok_typename, grok_typename_in_parm_context, start_decl,
13711 push_parmdecl, grokfield, start_function): Update calls to
13712 grokdeclarator.
13713 (build_bitfield_integer_type): New function.
13714 (finish_struct): Move bitfield validation to grokdeclarator
13715 and build_bitfield_integer_type.
13716 * tree.c (build_nonstandard_integer_type): New function.
13717 * tree.h (build_nonstandard_integer_type): New prototype.
13718 objc:
13719 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
13720
13721 2002-01-29 Jakub Jelinek <jakub@redhat.com>
13722
13723 PR other/1502:
13724 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
13725 don't ignore unrecognized -W* options.
13726 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
13727 * cpplib.h (cpp_handle_option): Adjust prototype.
13728 * c-decl.c (c_decode_options): Pass 0 as last argument to
13729 cpp_handle_option.
13730
13731 PR c/2896:
13732 * gcc.c (cpp_unique_options): Split from cpp_options.
13733 (cpp_options): Source cpp_unique_options.
13734 (default_compilers): Use cpp_unique_options instead of cpp_options
13735 when used together with cc1_options.
13736 (static_specs): Add cpp_unique_options.
13737 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
13738 when used together with cc1_options.
13739
13740 2002-01-29 Kazu Hirata <kazu@hxi.com>
13741
13742 * config/h8300/h8300-protos.h: Update the prototype of
13743 output_a_shift.
13744 * config/h8300/h8300.c (output_a_shift): Remove an unused
13745 argument 'insn'. Remove redundant code.
13746 * config/h8300/h8300.md: Adust to the new prototype of
13747 output_a_shift.
13748
13749 2002-01-29 Kazu Hirata <kazu@hxi.com>
13750
13751 * config/h8300/h8300-protos.h: Update the prototypes of
13752 emit_a_rotate and expand_a_rotate.
13753 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
13754 first argument to 'enum rtx_code'.
13755 (expand_a_rotate): Likewise.
13756
13757 2002-01-28 Kazu Hirata <kazu@hxi.com>
13758
13759 * config/h8300/h8300-protos.h: Update the prototype of
13760 output_simode_bld.
13761 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
13762 'log2'.
13763 * config/h8300/h8300.md: Adjust to the new prototype.
13764
13765 2002-01-28 Kazu Hirata <kazu@hxi.com>
13766
13767 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
13768 redundant code.
13769
13770 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
13771
13772 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
13773 is a fixed register before returning pic_offset_table_rtx.
13774 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
13775 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
13776
13777 2002-01-28 Jason Merrill <jason@redhat.com>
13778
13779 * dwarf2.h: Sync with src version.
13780
13781 2002-01-28 Paul Koning <pkoning@equallogic.com>
13782
13783 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
13784 BT_FN_VOID_PTR_VAR.
13785 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
13786 * doc/extend.texi (__builtin_prefetch): Update documentation:
13787 first argument is now const void ptr.
13788
13789 2002-01-28 Kazu Hirata <kazu@hxi.com>
13790
13791 * config/h8300/h8300-protos.h: Remove an unused prototype.
13792
13793 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
13794
13795 * toplev.c (lang_independent_init): Round up identifier size.
13796
13797 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
13798
13799 * config.gcc: Revert previous change.
13800
13801 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
13802
13803 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
13804
13805 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
13806
13807 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
13808 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
13809 other non-elf netbsd config frags.
13810 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
13811 collect2 will does that.
13812 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
13813 shared-lib frobbing will work.
13814
13815 2002-01-28 Kazu Hirata <kazu@hxi.com>
13816
13817 * config/h8300/h8300.h: Fix formatting.
13818 * config/h8300/h8300.md: Likewise.
13819
13820 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
13821
13822 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
13823 the old, removed AAA_standards fix.
13824 * fixinc/fixincl.x: Rebuilt.
13825
13826 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
13827
13828 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
13829 atexit call in crtbegin, hooked in after call to frame_dummy;
13830 register EH before registering __fini__start.
13831
13832 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
13833
13834 * config/rs6000/altivec.h: Remove spurious semicolons.
13835
13836 2002-01-27 Kazu Hirata <kazu@hxi.com>
13837
13838 * config/h8300/h8300.md: Replace dead bit extraction patterns
13839 with ones that work.
13840
13841 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13842
13843 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
13844 if not STRICT_ALIGNMENT.
13845 * rtl.h (MEM_ALIGN): Likewise.
13846
13847 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
13848
13849 * doc/invoke.texi (-fdump-translation-unit): Revert this
13850 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
13851
13852 2002-01-27 Kazu Hirata <kazu@hxi.com>
13853
13854 * config/h8300/h8300.md (define_constants): New.
13855 (anonymous patterns) Use defined constants appropriately.
13856
13857 2002-01-27 Kazu Hirata <kazu@hxi.com>
13858
13859 * config/h8300/h8300.c (function_arg): Remove redundant code.
13860
13861 2002-01-26 Richard Henderson <rth@redhat.com>
13862
13863 * sched-deps.c (reg_pending_uses_head): New.
13864 (reg_pending_barrier): Rename from reg_pending_sets_all.
13865 (find_insn_list): Don't mark inline.
13866 (find_insn_mem_list): Remove.
13867 (add_dependence_list, add_dependence_list_and_free): New.
13868 (flush_pending_lists): Replace only_write param with separate
13869 for_read and for_write parameters. Update all callers. Use
13870 add_dependence_list_and_free.
13871 (sched_analyze_1): Do not add reg dependencies here; just set
13872 the pending bits. Use add_dependence_list.
13873 (sched_analyze_2): Likewise.
13874 (sched_analyze_insn): Replace schedule_barrier_found with
13875 reg_pending_barrier. Add all dependencies for pending reg
13876 uses, sets, and clobbers.
13877 (sched_analyze): Don't add reg dependencies for calls, just
13878 set pending bits. Use regs_invalidated_by_call. Treat
13879 sched_before_next_call as a normal list, not a fake insn.
13880 (init_deps): No funny init for sched_before_next_call.
13881 (free_deps): Free pending mems lists. Don't zero reg_last.
13882 (init_deps_global): Init reg_pending_uses.
13883 (finish_deps_global): Free it.
13884 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
13885 (find_insn_mem_list): Remove.
13886 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
13887 (propagate_deps): Use them. Zero temp mem lists.
13888
13889 2002-01-26 Richard Henderson <rth@redhat.com>
13890
13891 * Makefile.in (CRTSTUFF_CFLAGS): New.
13892 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
13893 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
13894 crtstuff.c instead of alpha assembly version.
13895 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
13896 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
13897 not FORCE_{INIT,FINI}_SECTION_ALIGN.
13898 (__do_global_dtors_aux): Mark used.
13899 (frame_dummy, __do_global_ctors_aux): Mark used.
13900 (fini_dummy, init_dummy): Remove.
13901
13902 * config/alpha/crtbegin.asm: Remove file.
13903 * config/alpha/crtend.asm: Remove file.
13904 * config/alpha/t-crtbe: Remove file.
13905 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
13906 (LINK_EH_SPEC): New.
13907
13908 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
13909 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
13910 calling constructors.
13911 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
13912
13913 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
13914 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
13915 CRT_END_INIT_DUMMY hack.
13916 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
13917 FORCE_{INIT,FINI}_SECTION_ALIGN.
13918
13919 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
13920 FORCE_{INIT,FINI}_SECTION_ALIGN.
13921
13922 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
13923 invocation sequence.
13924 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
13925
13926 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
13927 (FORCE_CODE_SECTION_ALIGN): New.
13928
13929 2002-01-26 Richard Henderson <rth@redhat.com>
13930
13931 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
13932
13933 2002-01-26 Richard Henderson <rth@redhat.com>
13934
13935 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
13936 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
13937
13938 2002-01-26 Kazu Hirata <kazu@hxi.com>
13939
13940 * config/h8300/h8300.md: Remove bit extraction patterns that
13941 cannot be triggered.
13942 Restrict each bit extraction pattern to a variant on which the
13943 pattern is tested.
13944
13945 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
13946
13947 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
13948
13949 2002-01-26 Kazu Hirata <kazu@hxi.com>
13950
13951 * config/h8300/h8300.md: Remove bit test patterns that cannot
13952 be triggered.
13953 Restrict each bit test pattern to a variant on which the
13954 pattern is tested.
13955
13956 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13957
13958 * builtins.c (expand_builtin_strncat): Remove redundant check for
13959 INTEGER_CST.
13960
13961 2002-01-25 David O'Brien <obrien@FreeBSD.org>
13962
13963 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
13964 default setting.
13965 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
13966 existing setting.
13967
13968 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
13969
13970 * dbxout.c (dbxout_init): Use assemble_name rather than just
13971 stripping off the first character.
13972 (dbxout_source_file): Likewise.
13973
13974 2002-01-25 DJ Delorie <dj@redhat.com>
13975
13976 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
13977 using rtx_equal_p, not by comparing pointers.
13978
13979 2002-01-25 Steve Ellcey <sje@cup.hp.com>
13980
13981 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
13982 for PIC_OFFSET_TABLE_REGNUM.
13983 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
13984
13985 2002-01-25 David O'Brien <obrien@FreeBSD.org>
13986
13987 * config.gcc (x86_64-*-freebsd*): New target.
13988 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
13989 value.
13990 (i[34567]86-*-freebsd*): Don't include svr4.h.
13991 * config/i386/freebsd64.h: New file.
13992
13993 2002-01-25 Douglas B Rupp <rupp@gnat.com>
13994
13995 * config/alpha/x-vms (version): Make static.
13996
13997 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
13998 in previous checkin.
13999
14000 * Makefile.in (install-headers-cp): New target.
14001 * config.gcc (alpha-dec-*vms*): Install headers with
14002 install-headers-cp
14003
14004 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14005
14006 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14007 avoid it's copies.
14008
14009 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14010
14011 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14012 of compare_tree_int.
14013 (expand_builtin_strncat): Likewise.
14014 * c-decl.c (finish_struct): Use tree_low_cst.
14015 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14016 * tree.c (compare_tree_int): Likewise.
14017
14018 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14019
14020 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14021 adjustments even if they are implemented by more than two insns.
14022
14023 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14024
14025 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14026 * df.h (struct ref): Kill B.
14027 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14028
14029 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14030 * flow.c (propagate_one_insn): Use it.
14031 (mark_used_regs): Handle NIL.
14032
14033 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14034
14035 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14036 to help folding.
14037
14038 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14039
14040 * rs6000.md (prefetch): Make address V4SI mode so that the address
14041 is restricted to legitimate form for instruction.
14042
14043 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14044
14045 * doc/install.texi (xtensa-*-elf): New target.
14046 (xtensa-*-linux*): New target.
14047 * doc/contrib.texi: Add myself.
14048
14049 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14050
14051 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14052 purpose register to hold an SImode (or smaller) value.
14053
14054 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14055
14056 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14057 registry only.
14058 * crtstuff.c: Likewise.
14059
14060 2002-01-25 Kazu Hirata <kazu@hxi.com>
14061
14062 * config/h8300/h8300.md (negation patterns): Tighten
14063 predicates to register_operand.
14064
14065 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14066
14067 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14068 mode, not Pmode.
14069
14070 * builtins.c (expand_builtin_prefetch): Same.
14071
14072 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14073
14074 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14075 modes.
14076
14077 2002-01-24 Kazu Hirata <kazu@hxi.com>
14078
14079 * config/h8300/h8300.c (print_operand): Remove support for
14080 operand character 'A'.
14081 * config/h8300/h8300.md (three anonymous patterns): Replace
14082 operand character 'A' with either 'T' or 'S'.
14083
14084 2002-01-24 Kazu Hirata <kazu@hxi.com>
14085
14086 * config/h8300/h8300.c (print_operand): Remove support for
14087 operand character 'U'.
14088
14089 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
14090
14091 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14092
14093 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
14094
14095 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14096 values to be assigned to the stack pointer.
14097
14098 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14099
14100 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14101 to const_double needs to be done right for big-endian systems.
14102
14103 2002-01-24 Jason Merrill <jason@redhat.com>
14104
14105 PR c++/2432
14106 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14107 to can_throw_internal.
14108
14109 2002-01-23 Richard Henderson <rth@redhat.com>
14110
14111 * fold-const.c (fold): Change UINT_MAX test to check vs precision
14112 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
14113
14114 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14115
14116 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14117 (symGOT2reg): Use them, then set as GOT value as unchanging.
14118 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
14119 as a temporary, if possible.
14120 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
14121 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14122
14123 2002-01-23 Kazu Hirata <kazu@hxi.com>
14124
14125 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14126 accept to accept 0x80 as operands[2].
14127
14128 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14129
14130 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14131
14132 2002-01-23 Richard Henderson <rth@redhat.com>
14133
14134 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14135
14136 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
14137
14138 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14139 (parmlist_or_identifiers_1): Verify that only a parmlist follows
14140 an attribute.
14141
14142 2002-01-23 Richard Henderson <rth@redhat.com>
14143
14144 * expr.c (move_by_pieces_1): Extend size before negation.
14145
14146 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14147 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14148 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14149 * config/m68k/t-m68kelf: Likewise.
14150
14151 2002-01-23 Bob Wilson <bob.wilson@acm.org>
14152
14153 * config/xtensa/elf.h: New file.
14154 * config/xtensa/lib1funcs.asm: New file.
14155 * config/xtensa/lib2funcs.S: New file.
14156 * config/xtensa/linux.h: New file.
14157 * config/xtensa/t-xtensa: New file.
14158 * config/xtensa/xtensa-config.h: New file.
14159 * config/xtensa/xtensa-protos.h: New file.
14160 * config/xtensa/xtensa.c: New file.
14161 * config/xtensa/xtensa.h: New file.
14162 * config/xtensa/xtensa.md: New file.
14163 * config.gcc (xtensa-*-elf*): New target.
14164 (xtensa-*-linux*): New target.
14165 * cse.c (canon_hash): Compare rtx pointers instead of register
14166 numbers. This is required for the Xtensa port.
14167 * integrate.c (copy_insn_list): Handle case where the static
14168 chain is in memory and the memory address has to be copied to
14169 a register.
14170 * doc/invoke.texi (Option Summary): Add Xtensa options.
14171 (Xtensa Options): New node.
14172 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14173
14174 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14175
14176 * diagnostic.c (internal_error): Do ICE suppression only
14177 when ENABLE_CHECKING is not defined.
14178
14179 * c-typeck.c (require_complete_type): Return error_mark_node
14180 if type is error_mark_node.
14181
14182 2002-01-23 Janis Johnson <janis187@us.ibm.com>
14183
14184 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14185 -Os and issue a warning.
14186
14187 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14188
14189 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14190 current (lack of) need for host configuration by hand.
14191
14192 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14193 references. Documentation of some target macros moved from
14194 hostconfig.texi to tm.texi.
14195
14196 2002-01-23 Will Cohen <wcohen@redhat.com>
14197
14198 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14199 defined.
14200
14201 2002-01-23 Kazu Hirata <kazu@hxi.com>
14202
14203 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14204 operand[3].
14205
14206 2002-01-23 Jason Merrill <jason@redhat.com>
14207
14208 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14209
14210 * function.c (assign_parms): Don't put args of inline functions
14211 into registers when not optimizing.
14212
14213 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
14214
14215 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14216 (prologue_use): New pattern.
14217 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14218 preference to gen_rtx_USE.
14219 (thumb_expand_prologue): Use gen_prologue_use in preference to
14220 gen_rtx_USE.
14221 (thumb_expand_epilogue): Use gen_prologue_use in preference to
14222 gen_rtx_USE.
14223
14224 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
14225
14226 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14227
14228 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
14229
14230 PR c/3504
14231 * doc/extend.texi: Correct documentation of __alignof__.
14232
14233 2002-01-22 Zack Weinberg <zack@codesourcery.com>
14234
14235 * params.h: Rename arguments of DEFPARAM so that it will be
14236 recognized as a translation keyword.
14237
14238 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14239
14240 * extend.texi: Document altivec functions.
14241 Fix N-bit adjectives in X86 builtin documentation.
14242
14243 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14244
14245 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14246 auto_inc_dec values.
14247
14248 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
14249
14250 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14251 after backslash.
14252 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14253
14254 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14255
14256 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14257
14258 2002-01-22 Richard Henderson <rth@redhat.com>
14259
14260 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14261 copy_insn not copy_rtx.
14262
14263 2002-01-23 Alan Modra <amodra@bigpond.net.au>
14264
14265 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14266 "nonzero" as that might add "1" bits. Ensure "constop" is
14267 properly sign extened.
14268 (force_to_mode): Tweak for sign extended constop.
14269
14270 2002-01-22 Richard Henderson <rth@redhat.com>
14271
14272 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14273 for_each_rtx instead of assuming we're already looking at the MEM.
14274 (split_small_symbolic_mem_operand): Likewise.
14275 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14276 * config/alpha/alpha.md (small symbolic memory splitters): Update.
14277
14278 2002-01-22 Richard Henderson <rth@redhat.com>
14279
14280 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14281 sequence number for the literal.
14282 (divmoddi_internal_er): Likewise.
14283
14284 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14285
14286 PR java/4972
14287 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14288 in LIBICONV variable.
14289 * configure: Regenerated.
14290
14291 2002-01-22 Krister Walfridsson <cato@df.lth.se>
14292
14293 * dependence.c (build_def_use): Remove array_idx.
14294
14295 * dwarfout.c (last_filename): Remove.
14296 (output_compile_unit_die): Remove last_filename.
14297
14298 2002-01-22 Roger Sayle <roger@eyesopen.com>
14299 Richard Henderson <rth@redhat.com>
14300
14301 PR opt/3640
14302 * fold-const.c (fold): Optimize unsigned comparisons against
14303 UINT_MAX (and similar unsigned constants).
14304
14305 2002-01-22 Janis Johnson <janis187@us.ibm.com>
14306
14307 * Makefile.in (loop.o): Depend on OPTABS_H.
14308 * loop.c (emit_prefetch_instructions): Check the prefetch operand
14309 against the predicate.
14310
14311 PR target/5379
14312 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14313 for the address operand.
14314
14315 2002-01-22 Richard Henderson <rth@redhat.com>
14316
14317 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14318
14319 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14320
14321 PR other/5450
14322 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14323 preprocessor flags.
14324
14325 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
14326
14327 * config.gcc (x86_64-*-netbsd*): New target.
14328 * config/i386/netbsd64.h: New file.
14329
14330 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14331
14332 * regrename.c (kill_value): Fix typo.
14333
14334 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14335
14336 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14337
14338 * config/rs6000/rs6000.h: Same.
14339
14340 * function.c (instantiate_virtual_regs): Remove
14341 STARTING_FRAME_PHASE.
14342 (assign_stack_local_1): Same.
14343 Calculate frame phase.
14344
14345 2002-01-22 Nick Clifton <nickc@redhat.com>
14346
14347 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14348 variable declaration to outer scope in order to simplify
14349 future extensions.
14350 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14351 arm_hard_regno_mode_ok.
14352 * config/arm/arm-protos.h: Add a prototype for
14353 arm_hard_regno_mode_ok.
14354 * config/arm/arm.c (soft_df_operand): Remove now redundant
14355 check for DImode values using IP_REGNUM.
14356 (nonimmediate_soft_df_operand): Remove now redundant check for
14357 DImode values using IP_REGNUM.
14358 (arm_hard_regno_mode_ok): New function. New check: make sure
14359 that DImode values are not stored in IP_REGNUM.
14360
14361 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14362 note with a USE.
14363 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14364
14365 2002-01-22 Jason Merrill <jason@redhat.com>
14366
14367 * c-semantics.c (genrtl_compound_stmt): Only check nesting
14368 consistency if this COMPOUND_STMT is scoped.
14369
14370 2002-01-22 Kazu Hirata <kazu@hxi.com>
14371
14372 * predict.c: Fix formatting.
14373 * print-tree.c: Likewise.
14374 * protoize.c: Likewise.
14375 * real.h: Likewise.
14376 * rtl.h: Likewise.
14377 * sbitmap.h: Likewise.
14378 * scan.c: Likewise.
14379 * sched-deps.c: Likewise.
14380 * sched-vis.c: Likewise.
14381 * sdbout.c: Likewise.
14382 * sibcall.c: Likewise.
14383 * ssa.c: Likewise.
14384 * ssa-ccp.c: Likewise.
14385 * ssa-dce.c: Likewise.
14386 * stmt.c: Likewise.
14387 * stor-layout.c: Likewise.
14388 * system.h: Likewise.
14389
14390 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14391
14392 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14393 if fits in bounds of base type.
14394
14395 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14396 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14397 (add_bound_info, default): If can't find a context, make a
14398 SAVE_EXPR.
14399 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14400
14401 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
14402
14403 * c-typeck.c (parser_build_binary_op): If result from
14404 build_binary_op is ERROR_MARK just return error_mark_node without
14405 further processing.
14406
14407 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
14408
14409 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14410 Split a.out-specific bits into...
14411 * config/netbsd-aout.h: ...this.
14412 * config/netbsd-elf.h: New file.
14413 * config/alpha/netbsd-elf.h: Remove.
14414 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14415 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14416 (STARTFILE_SPEC): Remove redundant definition.
14417 (ENDFILE_SPEC): Likewise.
14418 (LINK_SPEC): Likewise.
14419 (CPP_SPEC): Likewise.
14420 (ASM_SPEC): Likewise.
14421 (LIB_SPEC): Likewise.
14422 (SWITCH_TAKES_ARG): Likewise.
14423 (TARGET_MEM_FUNCTIONS): Likewise.
14424 (CPP_PREDEFINES): Redefine.
14425 (ASM_FINAL_SPEC): Remove redefinition.
14426 (ASM_COMMENT_START): Redefine.
14427 (FUNCTION_PROFILER): Define.
14428 (TARGET_VERSION): Redefine.
14429 Comment and formatting cleanup.
14430 * config/i386/netbsd.h: Include <netbsd-aout.h>.
14431 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14432 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14433 big- or little-endian.
14434 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14435 * config.gcc (*-*-netbsd*): Add definitions common to all
14436 NetBSD configs.
14437 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14438 gnu_ld definitions. Add netbsd-elf.h to and remove
14439 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
14440 tmake_file, and don't lose previous tmake_file contents.
14441 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14442 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14443 gnu_ld definitions. Add netbsd-elf.h to tm_file.
14444 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14445 (mipsel-*-netbsd*): Rename this to...
14446 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
14447 mips/little.h to tm_file for mips*el-*.
14448 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14449 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14450 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14451
14452 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14453
14454 * pa-protos.h (reg_before_reload_operand): New function prototype.
14455 * pa.c (reg_before_reload_operand): New function implementation.
14456 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
14457 contraints to "*m".
14458
14459 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14460
14461 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14462
14463 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14464
14465 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14466 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14467 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14468 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14469 (ENDFILE_SPEC): Undefine.
14470 (STARTFILE_SPEC): Redefine for PA.
14471
14472 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14473
14474 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14475
14476 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
14477
14478 * config.gcc: Add entries to supported PowerPC --with-cpu
14479 types.
14480
14481 2002-01-21 Jakub Jelinek <jakub@redhat.com>
14482
14483 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14484 true for 64-bit mode only SSE registers in 32-bit mode.
14485
14486 2002-01-21 Kazu Hirata <kazu@hxi.com>
14487
14488 * unwind-dw2.c: Fix formatting.
14489 * unwind-dw2-fde.c: Likewise.
14490 * unwind-dw2-fde.h: Likewise.
14491 * unwind-pe.h: Likewise.
14492 * varasm.c: Likewise.
14493 * varray.h: Likewise.
14494
14495 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
14496
14497 Remove workaround for register stack overwrite bug in mmix.
14498 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14499 support for TARGET_REG_STACK_FILL_BUG.
14500 * config/mmix/mmix.h: Remove member has_call_without_parameters.
14501 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14502 Delete.
14503 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14504 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14505 -mno-reg-stack-fill-bug-workaround.
14506 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14507 machine member has_call_without_parameters.
14508 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14509 -mreg-stack-fill-bug-workaround and
14510 -mno-reg-stack-fill-bug-workaround.
14511 (MMIX Options): Ditto.
14512
14513 2002-01-21 Kazu Hirata <kazu@hxi.com>
14514
14515 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14516 as appropriate.
14517 Remove redundant code.
14518
14519 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
14520
14521 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14522 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14523 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14524 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14525 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14526 out target macro definitions and non-target-specific comments
14527 mostly taken from old versions of the manual.
14528
14529 2002-01-20 Kazu Hirata <kazu@hxi.com>
14530
14531 * config/h8300/h8300.h: Fix comment formatting.
14532 * config/ia64/aix.h: Likewise.
14533 * config/ia64/ia64-protos.h: Likewise.
14534 * config/ia64/ia64.c: Likewise.
14535 * config/ia64/ia64.h: Likewise.
14536 * config/ia64/ia64intrin.h: Likewise.
14537 * config/ia64/linux.h: Likewise.
14538 * config/ia64/unwind-aix.c: Likewise.
14539 * config/ia64/unwind-ia64.c: Likewise.
14540
14541 2002-01-20 Kazu Hirata <kazu@hxi.com>
14542
14543 * config/h8300/h8300.c: Revise comments about shift code.
14544
14545 2002-01-20 Kazu Hirata <kazu@hxi.com>
14546
14547 * config/h8300/h8300.c (function_arg): Update a comment.
14548
14549 2002-01-20 Kazu Hirata <kazu@hxi.com>
14550
14551 * config/h8300/h8300.md: Update the comments at the beginning
14552 of the file.
14553
14554 2002-01-20 Kazu Hirata <kazu@hxi.com>
14555
14556 * config/i370/i370.c: Fix comment formatting.
14557 * config/i370/i370.h: Likewise.
14558 * config/i370/i370.md: Likewise.
14559 * config/i370/linux.h: Likewise.
14560
14561 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14562
14563 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
14564
14565 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
14566 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
14567 in incomplete case.
14568
14569 2002-01-20 Graham Stott <grahams@redhat.com>
14570
14571 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
14572
14573 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
14574
14575 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
14576
14577 2002-01-19 Tom Rix <trix@redhat.com>
14578
14579 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
14580
14581 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
14582
14583 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
14584
14585 * function.c (assign_stack_local_1): Adjust x_frame_offset with
14586 STARTING_FRAME_PHASE.
14587 (STARTING_FRAME_PHASE): New.
14588 (instantiate_virtual_regs): Check saneness of
14589 STARTING_FRAME_PHASE.
14590
14591 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
14592
14593 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14594
14595 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
14596
14597 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
14598
14599 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
14600 be used for bootstrapping GCC 3.0.
14601
14602 2002-01-18 Kazu Hirata <kazu@hxi.com>
14603
14604 * config/h8300/h8300.md: Fix an insn length.
14605
14606 2002-01-18 Kazu Hirata <kazu@hxi.com>
14607
14608 * bitmap.h: Fix comment formatting.
14609 * combine.c: Likewise.
14610 * cppfiles.c: Likewise.
14611 * c-pragma.h: Likewise.
14612 * c-typeck.c: Likewise.
14613 * df.c: Likewise.
14614 * dwarf2out.c: Likewise.
14615 * function.c: Likewise.
14616 * gcc.c: Likewise.
14617 * genattrtab.c: Likewise.
14618 * gthr-win32.h: Likewise.
14619 * haifa-sched.c: Likewise.
14620 * predict.c: Likewise.
14621 * rtlanal.c: Likewise.
14622 * rtl.h: Likewise.
14623 * unwind-dw2-fde.h: Likewise.
14624 * unwind-pe.h: Likewise.
14625 * vmsdbgout.c: Likewise.
14626
14627 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14628
14629 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
14630 if type_required and passed decl.
14631
14632 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
14633
14634 * config.gcc (cpu_type): Include altivec.h in powerpc
14635 extra_headers.
14636 Same for darwin.
14637
14638 * config/rs6000/altivec.h: New.
14639
14640 2002-01-17 David Edelsohn <edelsohn@gnu.org>
14641
14642 * doc/install.texi (*-ibm-aix*): Update assembler and exception
14643 handling information.
14644 * doc/trouble.texi (Interoperation): Add libstdc++ information
14645 for AIX.
14646 (Misunderstandings): Add template instantiation and static template
14647 member information for AIX.
14648
14649 2002-01-17 Jason Merrill <jason@redhat.com>
14650
14651 * dbxout.c (dbxout_type): Support const and volatile.
14652
14653 * except.c (add_partial_entry): Remove backwards compatibility code.
14654 (end_protect_partials): Likewise.
14655
14656 2002-01-17 Jakub Jelinek <jakub@redhat.com>
14657
14658 * config/ia64/ia64.md (prologue_use): New.
14659 * config/ia64/ia64.c (ia64_expand_prologue): Use
14660 gen_prologue_use instead of gen_rtx_USE.
14661 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
14662 as CODE_FOR_pred_rel_mutex.
14663 (ia64_sched_reorder2): Likewise.
14664
14665 2002-01-16 Eric Christopher <echristo@redhat.com>
14666
14667 * config/mips/r3900.h: Reformat.
14668 (SUBTARGET_CPP_SIZE_SPEC): Remove.
14669 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
14670 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
14671 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
14672 * config/mips/t-elf: Remove mips3 multilib.
14673
14674 2002-01-16 H.J. Lu <hjl@gnu.org>
14675
14676 * config/mips/linux.h: Include "mips/abi64.h".
14677
14678 2002-01-16 H.J. Lu <hjl@gnu.org>
14679
14680 * config/mips/t-linux: New.
14681
14682 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
14683
14684 * config/mips/linux.h: Don't include "gofast.h".
14685 (INIT_SUBTARGET_OPTABS): Removed.
14686
14687 2002-01-16 Kazu Hirata <kazu@hxi.com>
14688
14689 * config/h8300/h8300-protos.h: Replace emit_a_shift with
14690 output_a_shift.
14691 * config/h8300/h8300.c: Likewise.
14692 * config/h8300/h8300.md: Likewise.
14693
14694 2002-01-16 Kazu Hirata <kazu@hxi.com>
14695
14696 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
14697 spaces after an opcode name.
14698 (pushqi1_h8300hs): Likewise.
14699 (pushhi1_h8300hs): Likewise.
14700
14701 2002-01-16 Kazu Hirata <kazu@hxi.com>
14702
14703 * doc/extend.texi: Replace "option" with "attribute"
14704 appropriately.
14705
14706 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14707
14708 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
14709 (and:DI () (const_int -8)).
14710 (split_small_symbolic_mem_operand): Split
14711 (mem (and:DI () (const_int -8)).
14712
14713 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14714
14715 PR target/5309:
14716 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
14717 same way as TYPE_IMUL.
14718 (ultrasparc_sched_reorder): Likewise.
14719 * config/sparc/sparc.md (type): Add comment to update
14720 ultrasparc_sched_reorder when making changes.
14721
14722 2002-01-16 Kazu Hirata <kazu@hxi.com>
14723
14724 * doc/invoke.texi: Change the dump file name of block
14725 reordering pass from 28.bbro to 29.bbro.
14726 Mention -dk option.
14727
14728 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
14729
14730 * i386.md (minsf splitter): Fix pasto.
14731
14732 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
14733
14734 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
14735 to frame pointer initialisation instruction.
14736 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
14737 initialisation instruction.
14738 (soft_df_operand): Do not accept the IP register.
14739 (nonimmediate_soft_df_operand): Do not accept the IP register.
14740
14741 2002-01-16 Jakub Jelinek <jakub@redhat.com>
14742
14743 PR target/5357:
14744 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
14745 MASK_V8 being both set.
14746
14747 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
14748
14749 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
14750 insn for GOT register; add REG_MAYBE_DEAD notes instead.
14751 config/s390/s390.md (call, call_value): Add GOT register to
14752 CALL_INSN_FUNCTION_USAGE where needed.
14753 (call_exp, call_value_exp): New.
14754
14755 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
14756
14757 * config/arm/arm.c: General formatting tidy up.
14758
14759 2002-01-16 Graham Stott <grahams@redhat.com>
14760
14761 * calls.c (try_to_integrate): Use "(size_t)" intermediate
14762 cast and when casting an integer literal to "rtx" pointer.
14763 (expand_call): Likewise.
14764 * flow.c (try_pre_increment): Likewise.
14765 (find_use_as_address): Likewise.
14766 * integrate.c (expand_iline_function): Likewise.
14767 * regmove.c (try_auto_increment): Likewise.
14768
14769 2002-01-16 Graham Stott <grahams@redhat.com>
14770
14771 * sched-rgn.c (passed): Use sbitmap_free.
14772 (header): Likewise.
14773 (inner): Likewise.
14774 (in_queue): Likewise.
14775 (in_stack): Likewise.
14776
14777 2002-01-15 Eric Christopher <echristo@redhat.com>
14778
14779 * flow.c (propagate_one_insn): Change to use fatal_insn.
14780
14781 2002-01-15 Kazu Hirata <kazu@hxi.com>
14782
14783 * expmed.c (extract_fixed_bit_field): Remove unused code.
14784 * system.h: Poison SLOW_ZERO_EXTEND.
14785 * doc/tm.texi: Remove.
14786 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
14787 * config/arm/arm.h: Likewise.
14788 * config/avr/avr.h: Likewise.
14789 * config/clipper/clipper.h: Likewise.
14790 * config/convex/convex.h: Likewise.
14791 * config/d30v/d30v.h: Likewise.
14792 * config/dsp16xx/dsp16xx.h: Likewise.
14793 * config/elxsi/elxsi.h: Likewise.
14794 * config/fr30/fr30.h: Likewise.
14795 * config/h8300/h8300.h: Likewise.
14796 * config/i370/i370.h: Likewise.
14797 * config/i386/i386.h: Likewise.
14798 * config/m68k/m68k.h: Likewise.
14799 * config/mips/mips.h: Likewise.
14800 * config/ns32k/ns32k.h: Likewise.
14801 * config/pdp11/pdp11.h: Likewise.
14802 * config/pj/pj.h: Likewise.
14803 * config/s390/s390.h: Likewise.
14804 * config/sh/sh.h: Likewise.
14805 * config/stormy16/stormy16.h: Likewise.
14806 * config/v850/v850.h: Likewise.
14807 * config/vax/vax.h: Likewise.
14808 * config/we32k/we32k.h: Likewise.
14809
14810 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
14811
14812 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
14813 (altivec_lvsl): Change constraint to b.
14814 (altivec_lvsr): Same.
14815 (altivec_lvebx): Same.
14816 (altivec_lvehx): Same.
14817 (altivec_lvewx): Same.
14818 (altivec_lvxl): Same.
14819 (altivec_lvx): Same.
14820 (altivec_stvx): Add parallel.
14821 (altivec_stvxl): Same.
14822 (altivec_stvehx): Same.
14823 (altivec_stvebx): Same.
14824 (altivec_stvebx): Same.
14825
14826 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
14827
14828 * config.gcc: Change altivec.h to altivec-defs.h.
14829
14830 * config/rs6000/altivec.h: Delete.
14831
14832 * config/rs6000/altivec-defs.h: Add.
14833
14834 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14835
14836 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
14837 and UMOD modes.
14838
14839 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
14840 less than or equal to eight bytes.
14841
14842 * vax.md (andsi3): Remove constraints and change SET destination
14843 operand type to nonimmediate_operand.
14844 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
14845 when it is a CONST_INT.
14846
14847 2002-01-15 Jason Merrill <jason@redhat.com>
14848
14849 * c-common.def (FILE_STMT): New code.
14850 * c-common.c (statement_code_p): It's a statement.
14851 * c-common.h (stmt_tree_s): Add x_last_filename.
14852 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
14853 (last_expr_filename): New macro.
14854 * c-semantics.c (begin_stmt_tree): Initialize it.
14855 (add_stmt): If the filename changed, also insert a
14856 FILE_STMT.
14857 (expand_stmt): Handle seeing one.
14858
14859 2002-01-15 Eric Christopher <echristo@redhat.com>
14860
14861 * flow.c (propagate_one_insn): Add error message and print out
14862 insn for debugging.
14863
14864 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
14865
14866 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
14867 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
14868 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
14869 TRAMPOLINE_ALIGNMENT.
14870 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
14871 to be in bits.
14872 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
14873 PCC_BITFIELD_TYPE_MATTERS.
14874 * config/interix.h (STDC_VALUE): Remove. Use
14875 STDC_0_IN_SYSTEM_HEADERS.
14876 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
14877 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
14878 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
14879
14880 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
14881
14882 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
14883 not work on this platform currently.
14884
14885 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
14886
14887 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
14888 readonly_warning in _().
14889
14890 2002-01-15 Douglas B Rupp <rupp@gnat.com>
14891
14892 * gcc.c (delete_if_ordinary): Backout previous change.
14893
14894 2002-01-15 Kazu Hirata <kazu@hxi.com>
14895
14896 * config/h8300/h8300.c (print_operand): Remove support for
14897 unused operand characters.
14898
14899 * read-rtl.c: Fix formatting.
14900 * real.c: Likewise.
14901 * recog.c: Likewise.
14902 * regclass.c: Likewise.
14903 * regmove.c: Likewise.
14904 * reg-stack.c: Likewise.
14905 * reload1.c: Likewise.
14906 * rtlanal.c: Likewise.
14907
14908 2002-01-15 Kazu Hirata <kazu@hxi.com>
14909
14910 * config/i386/i386.c: Fix formatting.
14911
14912 2002-01-15 Jakub Jelinek <jakub@redhat.com>
14913
14914 * c-typeck.c (process_init_element): Don't save_expr
14915 COMPOUND_LITERAL_EXPR if just its initializer will be used.
14916
14917 2002-01-15 David Edelsohn <edelsohn@gnu.org>
14918
14919 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
14920 emit optional traceback table if optimize_size or TARGET_ELF.
14921 * config/rs6000/rs6000.md (prefetch): New.
14922
14923 2002-01-15 Andreas Jaeger <aj@suse.de>
14924
14925 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
14926
14927 2002-01-15 Kazu Hirata <kazu@hxi.com>
14928
14929 * mips-tfile.c: Fix formatting.
14930
14931 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
14932
14933 * unroll.c (final_reg_note_copy): Fix previous commit.
14934
14935 2002-01-14 Kazu Hirata <kazu@hxi.com>
14936
14937 * config/h8300/h8300-protos.h: Remove the prototype for
14938 eq_operator.
14939 * config/h8300/h8300.c (eq_operator): Remove.
14940
14941 2002-01-14 Richard Henderson <rth@redhat.com>
14942
14943 * config/i386/i386.md (prefetch): Tidy.
14944 (prefetch_3dnow): Fix locality operand.
14945
14946 2002-01-14 Richard Henderson <rth@redhat.com>
14947
14948 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
14949 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
14950
14951 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
14952
14953 * reload1.c (reload_combine): Pass reg_sum replacement through
14954 copy_rtx in loop performing multiple changes.
14955
14956 2002-01-14 Jakub Jelinek <jakub@redhat.com>
14957
14958 * except.c (remove_unreachable_regions): New.
14959 (free_eh_status): Clear exception_handler_labels.
14960 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
14961 (find_exception_handler_labels): Don't add the same label more than
14962 once.
14963 (remove_exception_handler_label): Don't die if
14964 find_exception_handler_labels hasn't been called for the current
14965 function yet.
14966
14967 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
14968
14969 * toplev.c (rest_of_compilation): Rebuild jump labels after
14970 gcse.
14971
14972 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
14973
14974 * doc/extend.texi: Move documentation of X86 built-in functions
14975 here.
14976 * doc/invoke.texi: From here.
14977 * doc/sourcebuild.texi: Document location of documentation for
14978 machine built-in functions.
14979
14980 2002-01-13 Christopher Faylor <cgf@redhat.com>
14981
14982 * cppfiles.c (TEST_THRESHOLD): New macro.
14983 (SHOULD_MMAP): Ditto.
14984 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
14985 be used.
14986
14987 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
14988
14989 * unroll.c (final_reg_note_copy): Properly handle
14990 REG_LABEL
14991 (unroll_loops): Fix LOOP_CONDITION heuristics.
14992
14993 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
14994
14995 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
14996 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
14997
14998 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
14999
15000 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15001 threaded loop.
15002
15003 2002-01-14 Tom Rix <trix@redhat.com>
15004
15005 * config/rs6000/rs6000.md: Fix typo with sradi.
15006
15007 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15008
15009 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15010 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15011 (clrstrdi, clrstrsi): Adapt callers.
15012
15013 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15014
15015 (movti splitter): Never use register 0 as base register.
15016
15017 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15018
15019 * combine.c (simplify_shift_const): Always generate new rtx
15020 for shift expression instead of reusing given expression.
15021
15022 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15023
15024 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15025 alpha_legitimize_address unless mode is Pmode.
15026
15027 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15028
15029 * doc/md.texi (Modifiers): Document the '*' constraint for the
15030 user.
15031
15032 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15033 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15034 for xstormy16 too.
15035
15036 2002-01-13 Richard Henderson <rth@redhat.com>
15037
15038 * reload.c (find_reloads): Use a hard reg destination as reload reg
15039 for an input reload of the source.
15040
15041 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15042
15043 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15044 more generic.
15045
15046 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15047
15048 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15049 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15050
15051 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15052
15053 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15054
15055 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15056
15057 2002-01-12 Tom Rix <trix@redhat.com>
15058
15059 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15060 TARGET_POWERPC64.
15061
15062 2002-01-12 Richard Henderson <rth@redhat.com>
15063
15064 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15065
15066 * doc/invoke.texi: Update Alpha options.
15067
15068 * doc/invoke.texi: Update i386 built-in function lists.
15069
15070 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15071
15072 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15073 referencing outside.
15074
15075 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15076
15077 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15078 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15079 offsets, and change line folding.
15080 * optabs.c (expand_binop): Remove warnings.
15081 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15082
15083 2002-01-12 Graham Stott <grahams@redhat.com>
15084
15085 * attribs.c (handle_deprecated_attribute): constify WHAT.
15086 * diagnostic.c (warn_deprecated_use): Add braces, fixes
15087 dangling else warning and constify WHAT.
15088 * except.h (struct function, struct inline_remap): Move
15089 struct tag forward defs before all prototypes.
15090 (duplicate_eh_regions): Whitespace.
15091
15092 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
15093
15094 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15095 MODE_BASE_REG_CLASS.
15096 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15097
15098 2002-01-12 Richard Henderson <rth@redhat.com>
15099
15100 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15101 (ix86_expand_vector_move): New.
15102 (bdesc_2arg): Remove andps, andnps, orps, xorps.
15103 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
15104 Remove old prefetch builtins. Special case the logicals removed above.
15105 (ix86_expand_builtin): Likewise.
15106 (safe_vector_operand): Use V4SFmode, not TImode.
15107 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
15108 (ix86_expand_timode_binop_builtin): New.
15109 * config/i386/i386-protos.h: Update.
15110 * config/i386/i386.h (enum ix86_builtins): Update.
15111 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15112 Use ix86_expand_vector_move in vector move expanders.
15113 (movti_internal, movti_rex64): Add xorps alternative.
15114 (sse_clrv4sf): Rename and adjust from sse_clrti.
15115 (prefetch): Don't work so hard.
15116 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15117 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15118 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15119
15120 2002-01-11 Richard Henderson <rth@redhat.com>
15121
15122 * config/i386/mmintrin.h: New file.
15123 * config/i386/xmmintrin.h: New file.
15124 * config.gcc (i?86-*-*): Add extra_headers.
15125 * simplify-rtx.c (simplify_unary_operation): Handle saturating
15126 truncation codes.
15127 (simplify_binary_operation): Handle saturating arithmetic codes.
15128 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15129 not the lowpart subreg.
15130 (ix86_expand_builtin): Return a TImode dummy register instead of 0
15131 on error.
15132 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15133
15134 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15135
15136 * conflict.c (conflict_graph_compute): Free regsets when finished.
15137 * ssa.c (compute_coalesced_reg_partition): Likewise.
15138
15139 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15140
15141 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15142 every where we allocate a register.
15143
15144 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15145
15146 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15147 * lcm.c (compute_earliest, compute_farthest): Likewise.
15148
15149 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15150
15151 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15152
15153 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15154
15155 * doc/rtl.texi (Insns): Fix 2 typos.
15156
15157 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
15158
15159 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
15160 options. Use @table @gcctabopt for MMIX options. Add index
15161 entries for MMIX options. Start new paragraph with first
15162 heading of the machine-dependent options.
15163
15164 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
15165
15166 PR other/5299
15167 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15168 * combine.c (force_to_mode): Same.
15169 * reload1.c (clear_reload_reg_in_use): Same.
15170
15171 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
15172
15173 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15174 and 'subtargets'.
15175
15176 2002-01-11 Andreas Jaeger <aj@suse.de>,
15177 Brad Lucier <lucier@math.purdue.edu>
15178
15179 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15180 mcpu.
15181
15182 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
15183
15184 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15185 Protect with IN_LIBGCC.
15186 (LINK_EH_SPEC): Add required trailing space.
15187
15188 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
15189
15190 * c-tree.h: Move function declarations so that they are listed
15191 under the filename which contains them.
15192 (check_identifier, finish_decl_top_level,
15193 lookup_name_current_level_global, shadow_record_fields): Remove.
15194
15195 2002-01-11 Andreas Jaeger <aj@suse.de>
15196
15197 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15198 march.
15199
15200 2002-01-10 Richard Henderson <rth@redhat.com>
15201
15202 * config/alpha/alpha.c (print_operand): Add 'J'.
15203 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15204 new operand with the sequence number for the lituse. When splitting
15205 the insns, use gen_movdi_er_high_g and generate a sequence number.
15206 (gen_movdi_er_high_g): Print the sequence number if non-zero.
15207
15208 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
15209
15210 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15211 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15212 stvxl.
15213 (altivec_expand_builtin): Same.
15214 (altivec_expand_stv_builtin): New.
15215
15216 * config/rs6000/rs6000.h (rs6000_builtins): Same.
15217
15218 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15219 ("altivec_lvehx"): New.
15220 ("altivec_lvewx"): New.
15221 ("altivec_lvxl"): New.
15222 ("altivec_lvx"): New.
15223 ("altivec_stvx"): New.
15224 ("altivec_stvebx"): New.
15225 ("altivec_stvehx"): New.
15226 ("altivec_stvewx"): New.
15227 ("altivec_stvxl"): New.
15228
15229 2002-01-10 Richard Henderson <rth@redhat.com>
15230
15231 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15232 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
15233 care not to delete instructions twice.
15234
15235 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15236
15237 * toplev.c: Don't declare environ (it's not used anywhere).
15238 * configure.in: Don't check for declaration of environ.
15239 * config/i386/xm-mingw32.h: Don't #define environ.
15240 * config.in, configure: Regenerate.
15241
15242 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15243
15244 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15245 * configure: Regenerate.
15246
15247 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15248 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15249 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15250 alpha/xm-vms.h.
15251 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15252 LIMITS_H_TEST here, not in m68k/x-next.
15253 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15254 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15255
15256 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15257 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15258 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
15259
15260 * config/i386/x-djgpp: Renamed i386/t-djgpp.
15261 * config/m88k/x-dolph: Renamed m88k/t-dolph.
15262 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15263 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
15264 replacement of quadlib.asm with quadlib.c.
15265
15266 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15267 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15268 config/rs6000/xm-beos.h: Delete file.
15269
15270 * config.gcc: Update to match above changes.
15271
15272 2002-01-10 Kazu Hirata <kazu@hxi.com>
15273
15274 * config/h8300/h8300.h: Fix comment typos.
15275 * config/h8300/h8300.md: Likewise.
15276 * config/h8300/lib1funcs.asm: Likewise.
15277
15278 2002-01-10 Dale Johannesen <dalej@apple.com>
15279
15280 PR optimization/5269
15281 * unroll.c (precondition_loop_p): Make *increment be the correct
15282 sign when n_iterations known, to avoid confusing caller.
15283
15284 2002-01-10 Kazu Hirata <kazu@hxi.com>
15285
15286 * doc/extend.texi (deprecated): Fix a typo.
15287
15288 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
15289
15290 * basic-block.h (update_br_prob_note): Declare.
15291 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15292 (try_forward_edges): Care negative frequencies and update note.
15293 (outgoing_edges_match): Tweek conditional merging heuristics.
15294 (try_crossjump_to_edge): use update_br_prob_note.
15295 * cfglayout.c (fixup_reorder_chain): Likewise.
15296 * cfrtl.c (update_br_prob_note): New.
15297 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15298
15299 * i386.c (ix86_decompose_address): Return -1 if address contains
15300 shift.
15301 (legitimate_address_p): Require ix86_decompose_address to return 1.
15302
15303 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15304 (cprop_insn): Likewise.
15305
15306 2002-01-10 Kazu Hirata <kazu@hxi.com>
15307
15308 * toplev.c: Fix formatting.
15309 * tree.c: Likewise.
15310 * tree-dump.c: Likewise.
15311 * unroll.c: Likewise.
15312 * unwind-dw2.c: Likewise.
15313 * unwind-dw2-fde.c: Likewise.
15314 * unwind-dw2-fde-glibc.c: Likewise.
15315 * unwind-sjlj.c: Likewise.
15316
15317 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15318
15319 * doc/invoke.texi: Document PDP-11 options.
15320
15321 2002-01-10 Kazu Hirata <kazu@hxi.com>
15322
15323 * config/h8300/h8300.h: Fix formatting.
15324
15325 2002-01-10 Ira Ruben <ira@apple.com>
15326
15327 Add __attribute__ ((deprecated)).
15328 * extend.texi: Document __attribute__ ((deprecated)).
15329 * invoke.texi: Document -Wno-deprecated-declarations.
15330 * testsuite/g++.dg/other/deprecated.C: New C++ test.
15331 * testsuite/gcc.dg/deprecated.c: New C test.
15332 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15333 (c_common_attribute_table): Add "deprecated" entry.
15334 (handle_deprecated_attribute): New function.
15335 * c-decl.c (deprecated_states): New enum.
15336 deprecated_state: State of "deprecated" handling.
15337 (start_decl): Set deprecated_state based on attributes.
15338 (grokdeclarator): Test for deprecated uses, propagate attribute.
15339 * c-typeck.c (build_component_ref): Test for deprecated fields.
15340 (build_external_ref): Test for deprecated primaries.
15341 * diagnostic.c (warn_deprecated_use) New function to issue
15342 warnings about __attribute__ ((depricated)) references.
15343 * flags.h (warn_deprecated_decl): Extern declared for
15344 -W[no-]deprecated-declarations option.
15345 * print-tree.c (print_node): Show deprecated flag status.
15346 * toplev.c (warn_deprecated_decl): Defined.
15347 (W_options): Added "deprecated-declaration".
15348 * toplev.h (warn_deprecated_use): Extern declared.
15349 * tree.h (struct tree_common): Define deprecated_flag.
15350 (TREE_DEPRECATED): New macro to access flag.
15351 * cp/call.c (build_call): Test for deprecated calls.
15352 * cp/class.c (add_implicitly_declared_members): Set global
15353 flag to tell grokdeclarator to not issue deprecated warnings.
15354 * cp/cp-tree.h: Add extern for adding_implicit_members.
15355 * cp/decl.c (deprecated_states): New enum.
15356 (start_decl): Set deprecated_state based on attributes.
15357 (grokdeclarator): Test for deprecated uses, propagate attribute.
15358 * cp/lex.c (do_identifier): Test for deprecated primaries.
15359 * cp/typeck.c (build_component_ref): Test for deprecated fields.
15360
15361 2002-01-10 Ira Ruben <ira@apple.com>
15362
15363 Fix to assign attributes to inline member functions.
15364 * cp/decl.c (start_method): Handle attrlist.
15365
15366 2002-01-10 Kazu Hirata <kazu@hxi.com>
15367
15368 * combine.c (expand_field_assignment): Use subreg_lsb().
15369
15370 2002-01-10 David Edelsohn <edelsohn@gnu.org>
15371
15372 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15373 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15374 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15375 Recurse for any operand of AND as long as constant is non-zero.
15376
15377 2002-01-10 Kazu Hirata <kazu@hxi.com>
15378
15379 * config/h8300/h8300.md: Remove constraints from expanders.
15380
15381 2002-01-10 Kazu Hirata <kazu@hxi.com>
15382
15383 * varasm.c: Fix formatting.
15384 * varray.c: Likewise.
15385 * vmsdbgout.c: Likewise.
15386 * xcoffout.c: Likewise.
15387
15388 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
15389
15390 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15391 update edge probabilities to match.
15392
15393 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15394
15395 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15396 dependencies.
15397 * doc/languages.texi, doc/sourcebuild.texi: New files.
15398 * doc/configfiles.texi: Make a subsubsection. Update.
15399 * doc/configterms.texi: Add @node. Remove warning that this isn't
15400 instructions for building GCC.
15401 * doc/makefile.texi: Make a subsection.
15402 * doc/gccint.texi: Update.
15403
15404 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
15405
15406 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15407
15408 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
15409
15410 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15411
15412 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
15413
15414 * optabs.c (expand_fix): Look for wider integer modes first.
15415
15416 * i386.md (mov?f): Avoid the fake const double trick for medium
15417 memory model.
15418 (min?f*/max?f*): Prohibit memory operands for i387 variant.
15419 (fop_df_4): Disable for SSE compilation.
15420
15421 2002-01-10 Graham Stott <grahams@redhat.com>
15422
15423 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15424 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15425
15426 2002-01-10 Richard Henderson <rth@redhat.com>
15427
15428 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15429
15430 2002-01-10 Richard Henderson <rth@redhat.com>
15431
15432 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15433 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
15434
15435 2002-01-10 Kazu Hirata <kazu@hxi.com>
15436
15437 * combine.c (can_combine_p): Fix a comment typo.
15438
15439 2002-01-09 Zack Weinberg <zack@codesourcery.com>
15440
15441 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15442 empty list correctly. Change loop index $t to $f for
15443 consistency with rest of Makefile.
15444
15445 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
15446
15447 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15448 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15449
15450 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15451 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15452 (altivec_init_builtins): Same.
15453 (altivec_expand_unop_builtin): Return NULL_RTX on error.
15454 (altivec_expand_binop_builtin): Same.
15455 (altivec_expand_ternop_builtin): Same.
15456 (bdesc_dst): New.
15457
15458 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15459 ("altivec_vctuxs"): Fix typo.
15460 ("altivec_vnmsubfp"): Same.
15461 ("altivec_dssall"): New.
15462 ("altivec_mfvscr"): New.
15463 ("altivec_dss"): New.
15464 ("altivec_lvsl"): New.
15465 ("altivec_lvsr"): New.
15466 ("altivec_dstt"): New.
15467 ("altivec_dstst"): New.
15468 ("altivec_dststt"): New.
15469 ("altivec_dst"): New.
15470
15471 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15472 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15473
15474 2002-01-09 Richard Henderson <rth@redhat.com>
15475
15476 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15477
15478 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
15479
15480 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15481 function.
15482 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15483 prototype.
15484 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15485
15486 2002-01-09 Kazu Hirata <kazu@hxi.com>
15487
15488 * read-rtl.c: Fix formatting.
15489 * real.c: Likewise.
15490 * regclass.c: Likewise.
15491 * regrename.c: Likewise.
15492 * reg-stack.c: Likewise.
15493 * reload1.c: Likewise.
15494 * reload.c: Likewise.
15495 * rtl.c: Likewise.
15496
15497 2002-01-09 Kazu Hirata <kazu@hxi.com>
15498
15499 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15500 to extract items in the expr_list chain.
15501
15502 2002-01-09 Richard Henderson <rth@redhat.com>
15503
15504 * config/vax/vax.c (vax_rtx_cost): Never abort.
15505
15506 * config/vax/vax.h (REAL_ARITHMETIC): Define.
15507
15508 2002-01-09 Jan Hubicka <jh@suse.cz>
15509
15510 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15511
15512 2002-01-09 Richard Henderson <rth@redhat.com>
15513
15514 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15515 Unify code from various alternatives.
15516
15517 2002-01-09 Richard Henderson <rth@redhat.com>
15518
15519 * regrename.c (copy_value): Ignore the copy if the source register
15520 is present in the value chain with a narrower mode.
15521
15522 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15523
15524 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15525 for the c4x target. Also improve layout.
15526
15527 2002-01-09 Richard Henderson <rth@redhat.com>
15528
15529 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15530 * config/m32r/m32r.md (and ior xor splitters): Swap operands
15531 to match insn patterns.
15532
15533 2002-01-09 Richard Henderson <rth@redhat.com>
15534
15535 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15536 (copyprop_hardreg_forward_1): Likewise.
15537
15538 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
15539
15540 * pa.md (decrement_and_branch_until_zero): Change predicate for
15541 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
15542
15543 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15544
15545 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
15546 gets undefined. For Darwin.
15547
15548 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15549
15550 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
15551
15552 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15553
15554 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
15555
15556 2002-01-08 Richard Henderson <rth@redhat.com>
15557
15558 * regrename.c (copy_value): Ignore overlapping copies.
15559
15560 2002-01-08 Richard Henderson <rth@redhat.com>
15561
15562 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
15563 as needed to avoid shared structure.
15564
15565 2002-01-08 Kazu Hirata <kazu@hxi.com>
15566
15567 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
15568 H8/300H and H8/S.
15569
15570 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15571
15572 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
15573 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
15574 documentation of obsolete macros.
15575 * system.h: Poison these macros.
15576 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
15577 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
15578 config/c4x/c4x.h, config/clipper/clipper.h,
15579 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
15580 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
15581 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
15582 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
15583 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
15584 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
15585 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15586 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
15587 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
15588 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15589 config/sparc/sparc.h, config/stormy16/stormy16.h,
15590 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
15591 definitions and commented out definitions of obsolete macros.
15592 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
15593 of MAX_INT_TYPE_SIZE.
15594
15595 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15596
15597 * config/s390/s390.c (s390_preferred_reload_class): Never
15598 return ADDR_REGS if it isn't a subset of the given class.
15599 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
15600 FP_REGS, but all superclasses as well.
15601
15602 * config/s390/s390.c (s390_function_profiler): Fix thinko.
15603
15604 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
15605 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
15606 must not be a const_int.
15607
15608 2002-01-08 Richard Henderson <rth@redhat.com>
15609
15610 * Makefile.in (toplev.o): Depend on options.h.
15611 (gcc.o): Depend on specs.h.
15612
15613 2002-01-08 Jakub Jelinek <jakub@redhat.com>
15614
15615 * expr.c (store_expr): Convert VOIDmode constants back to target's
15616 mode.
15617
15618 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15619
15620 * doc/invoke.texi: Markup gcc as @command. Refer to
15621 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
15622 of http://gcc.gnu.org/thanks.html.
15623
15624 2002-01-08 Dale Johannesen <dalej@apple.com>
15625
15626 * config/rs6000/rs6000.md: Add missing int register
15627 target case to movdf_low.
15628
15629 2002-01-08 Zack Weinberg <zack@codesourcery.com>
15630
15631 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
15632 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
15633 (cppinit.o): Depend on except.h.
15634 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
15635 s-specs): New rules.
15636
15637 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
15638 Don't create specs.h/options.h/gencheck.h here. Remove
15639 unnecessary variable settings from last argument of AC_OUTPUT.
15640 * config.in, configure: Regenerate.
15641 * intl.c: Hardcode package name as "gcc".
15642
15643 * cppinit.c: Include except.h.
15644 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
15645 appropriate.
15646 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
15647 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
15648 (!)USING_SJLJ_EXCEPTIONS.
15649 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
15650
15651 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15652
15653 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
15654 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
15655 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
15656 documentation of obsolete macros.
15657 * system.h: Poison these macros.
15658 * config/d30v/d30v.h, config/ns32k/encore.h,
15659 config/stormy16/stormy16.h: Remove definitions and commented out
15660 definitions of obsolete macros.
15661
15662 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
15663
15664 * objc/objc-act.c (handle_class_ref): Mark the declaration of
15665 %sobjc_class_ref_%s as used - to prevent unwanted compiler
15666 warnings.
15667
15668 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
15669
15670 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
15671 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
15672 to insn adjusting stack/frame pointer.
15673 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
15674 accept operands that cause the insn to be non-splittable.
15675
15676 2002-01-08 Graham Stott <grahams@redhat.com>
15677
15678 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
15679 (C_TYPE_FIELDS_VOLATILE): Likewise.
15680 (C_TYPE_BEING_DEFINED): Likewise.
15681 (C_IS_RESERVED_WORD): Likewise.
15682 (C_TYPE_VARIABLE_SIZE): Likewise.
15683 (C_DECL_VARIABLE_SIZE): Likewise.
15684 (C_MISSING_PROTOTYPE_WARNED): Likewise.
15685 (C_SET_EXP_ORIGINAL_CODE): Likewise.
15686 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
15687 parenthesis.
15688 (C_DECL_ANTICIPATED): Likewise.
15689 (c_build_type_variant): Add parenthesis.
15690
15691 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15692
15693 * gcc.c (option_map): Remove --version.
15694 (process_command): Handle -fversion following the GNU Coding
15695 Standards. Partially addresses PR other/704.
15696
15697 2002-01-08 Graham Stott <grahams@redhat.com>
15698
15699 * combine.c (combine_instructions): Fix typo.
15700
15701 2002-01-08 Graham Stott <grahams@redhat.com>
15702
15703 * debug.h: Use "tree" and "rtx" throughout.
15704
15705 * debug.c: Likewise.
15706
15707 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
15708
15709 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
15710 constant pool, use the pool's version of the symbol instead.
15711
15712 2002-01-07 Richard Henderson <rth@redhat.com>
15713
15714 * regrename.c (find_oldest_value_reg): Ignore the value chain if
15715 the original register was copied in a mode with a fewer number of
15716 hard registers than the desired mode.
15717 (copyprop_hardreg_forward_1): Likewise.
15718 (debug_value_data): Fix loop test.
15719 * toplev.c (parse_options_and_default_flags): Reenable
15720 -fcprop-registers at -O1.
15721
15722 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15723
15724 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
15725 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
15726
15727 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
15728 predicates.
15729
15730 * config/rs6000/rs6000.md: Add altivec predicate patterns.
15731
15732 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
15733
15734 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
15735 (pa_output_function_prologue): Output local label at the beginning of
15736 the prologue when profiling.
15737 (hppa_profile_hook): Use the local label rather than the function label.
15738 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
15739
15740 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15741
15742 * config/rs6000/rs6000.c (print_operand): Remove extra space.
15743 (altivec_expand_unop_builtin): Fix thinko.
15744 (altivec_expand_binop_builtin): Same.
15745 (altivec_expand_ternop_builtin): Same.
15746 (altivec_expand_builtin): Same.
15747
15748 2002-01-07 Richard Henderson <rth@redhat.com>
15749
15750 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
15751
15752 2002-01-07 Jason Merrill <jason@redhat.com>
15753
15754 * unwind-dw2.c (execute_cfa_program): Use < again.
15755
15756 2002-01-07 Jakub Jelinek <jakub@redhat.com>
15757
15758 * predict.c (combine_predictions_for_insn): Avoid division by zero.
15759
15760 2002-01-07 Jakub Jelinek <jakub@redhat.com>
15761
15762 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
15763 Don't allow -1 - x -> ~x simplifications in the first pass.
15764
15765 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
15766
15767 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
15768 arguments.
15769 (altivec_expand_binop_builtin): Same.
15770 (altivec_expand_unop_builtin): Same.
15771 (print_operand): Fix typo.
15772 (bdesc_1arg): Add vupk* variants.
15773
15774 * rs6000.h (rs6000_builtins): Add vupk* enums.
15775
15776 * rs6000.md: Add altivec_vupk* variants.
15777
15778 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
15779
15780 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
15781 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
15782 and last update dates.
15783
15784 2002-01-07 Janis Johnson <janis187@us.ibm.com>
15785
15786 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
15787
15788 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
15789
15790 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
15791 * config/avr/avr.h (CPP_SPEC): Likewise.
15792 (LINK_SPEC): Likewise.
15793 (CRT_BINUTILS_SPECS): Likewise.
15794 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15795 * doc/invoke.texi (AVR Options): Document them.
15796
15797 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
15798
15799 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
15800 LABEL_NUSES.
15801
15802 2002-01-07 Graham Stott <grahams@redhat.com>
15803
15804 * config/i386/i386.h: Update copyright date.
15805 (HALF_PIC_PTR): Add parenthesis.
15806 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
15807 (CONSTANT_ALIGNMENT): Add parenthesis.
15808 (DATA_ALIGNMENT): Likewise.
15809 (LOCAL_ALIGNMENT): Likewise.
15810 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
15811 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
15812 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
15813 (HARD_REGNO_NREGS): Add paranethesis.
15814 (VALID_SSE_REG_MODE): Whitespace.
15815 (VALID_MMX_REG_MODE): Whitespace.
15816 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
15817 (ix86_hard_regno_mode_ok): Add parenthesis.
15818 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
15819 (RETURN_IN_MEMORY): Whitespace.
15820 (N_REG_CLASSES): Add parenthesis.
15821 (INTEGER_CLASS_P): Add parenthesis and wrap.
15822 (FLOAT_CLASS_P): Likewise.
15823 (SSE_CLASS_P): Likewise.
15824 (MMX_CLASS_P): Likewise.
15825 (MAYBE_INTEGER_CLASS_P): Likewise.
15826 (MAYBE_FLOAT_CLASS_P): Likewise.
15827 (MAYBE_SSE_CLASS_P): Likewise.
15828 (MAYBE_MMX_CLASS_P): Likewise.
15829 (Q_CLASS_P): Likewise.
15830 (GENERAL_REGNO_P): Uppercase macro parameter.
15831 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
15832 (FP_REGNO_P): Likewise.
15833 (ANY_FP_REGNO_P): Uppercase macro parameter.
15834 (SSE_REGNO_P): Likewise.
15835 (SSE_REGNO): Likewise.
15836 (SSE_REG_P): Likewise.
15837 (SSE_FLOAT_MODE_P): Likewise.
15838 (MMX_REGNO_P): Likewise.
15839 (MMX_REG_P):Likewise.
15840 (STACK_REG_P): Likewise.
15841 (NON_STACK_REG_P): Likewise.
15842 (STACK_TOP_P): Likewise.
15843 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
15844 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
15845 (SECONDARY_MEMORY_NEEDED): Likewise.
15846 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
15847 (MD_ASM_CLOBBERS): Whitespace and wrap.
15848 (MUST_PASS_IN_STACK): Whitespace and wrap.
15849 (RETURN_POPS_ARGS): Add parenthesis.
15850 (INIT_CUMULATIVE_ARGS): Likewise.
15851 (FUNCTION_ARG): Likewise.
15852 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
15853 (SETUP_INCOMING_VARARGS): Likewise.
15854 (BUILD_VA_LIST_TYPE): Add parenthesis.
15855 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
15856 parenthsis.
15857 (EXPAND_BUILTIN_VA_ARG): Likewise.
15858 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
15859 (INITIALIZE_TRAMPOLINE): Add parenthesis.
15860 (INITIAL_ELIMINATION_OFFSET): Likewise.
15861 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
15862 (REGNO_OK_FOR_BASE_P): Likewise.
15863 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
15864 (REGNO_OK_FOR_DIREG_P): Likewise.
15865 (REG_OK_FOR_INDEX_P): Whitespace.
15866 (REG_OK_FOR_BASE_P): Whitespace.
15867 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
15868 parenthesis.
15869 (FIND_BASE_TERM): Fix typo.
15870 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
15871 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
15872 (SYMBOLIC_CONST; Whitespace.
15873 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
15874 (ENCODE_SECTION_INFO): Whitespace.
15875 (FINALIZE_PIC): Remove do { ... } while (0).
15876 (PROMOTE_MODE): Wrap in do { ... } while (0).
15877 (CONST_COSTS): Whitespace.
15878 (RTX_COSTS): Add paramethesis, whitespace and wrap.
15879 (REGISTER_MOVE_COST): Add parenthesis.
15880 (MEMORY_MOVE_COST): Likewise.
15881 (EXTRA_CC_MODES): Whitespace.
15882 (SELECT_CC_MODE): Add parenthesis and whitespace.
15883 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
15884 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
15885 (ASM_OUTPUT_LABEL): Add paramethesis.
15886 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
15887 (ASM_OUTPUT_REG_POP): Likewise.
15888 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
15889 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15890
15891 * config/i386/i386.c: Update copyright.
15892 (CHECK_STACK_LIMIT): Add parenthesis.
15893 (AT_BP): Uppercase macro parameter.
15894 (x86_64_int_parameter_registers): Constify.
15895 (x86_64_int_return_registers): Likewise.
15896 (ix86_compare_op0): Use rtx.
15897 (construct_container): Constify INTREG parameter.
15898 (function_arg): Use rtx.
15899
15900 * diagnostic.h: Update copyright date.
15901 (output_buffer_state): Add parenthesis.
15902 (output_buffer_format_args): Likewise.
15903
15904 * combine.c (combine_instructions): Replace XEXP (links, 0)
15905 with link.
15906
15907 2002-01-06 H.J. Lu <hjl@gnu.org>
15908
15909 * cfgcleanup.c (thread_jump): Fix 2 typos.
15910
15911 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
15912
15913 * config.gcc: Add support for --enable-altivec.
15914
15915 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
15916
15917 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
15918
15919 2002-01-06 Jakub Jelinek <jakub@redhat.com>
15920
15921 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
15922 __objc_class_name_*.
15923
15924 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
15925
15926 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
15927
15928 2002-01-06 Richard Henderson <rth@redhat.com>
15929
15930 * reorg.c (emit_delay_sequence): Remove death notes, not merely
15931 nop them out. Increment label reference count for REG_LABEL.
15932 (fill_slots_from_thread): Frob label reference count around
15933 delete_related_insns.
15934
15935 2002-01-05 Richard Henderson <rth@redhat.com>
15936
15937 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
15938 jump threading.
15939
15940 2002-01-05 Richard Henderson <rth@redhat.com>
15941
15942 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
15943 * integrate.c (output_inline_function): Likewise.
15944 * toplev.c (rest_of_compilation): Do it here instead. Move call
15945 to remove_unnecessary_notes after emitting abstract instance.
15946 Force an emitted nested function to have its parent emited as well.
15947 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
15948 for null.
15949 (rtl_for_decl_location): Do not look at reload data structures
15950 before reload has run.
15951
15952 2002-01-05 Kazu Hirata <kazu@hxi.com>
15953
15954 * cse.c: Fix formatting.
15955 * dwarf2asm.c: Likewise.
15956 * dwarf2out.c: Likewise.
15957 * explow.c: Likewise.
15958 * expmed.c: Likewise.
15959 * function.c: Likewise.
15960 * gcov.c: Likewise.
15961 * gencheck.c: Likewise.
15962 * genrecog.c: Likewise.
15963 * ggc-common.c: Likewise.
15964 * ggc-page.c: Likewise.
15965 * global.c: Likewise.
15966
15967 2002-01-05 Kazu Hirata <kazu@hxi.com>
15968
15969 * combine.c: Fix formatting.
15970
15971 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
15972
15973 PR middle-end/1557
15974 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
15975
15976 2002-01-05 David Edelsohn <edelsohn@gnu.org>
15977
15978 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
15979 as 1 for __powerpc64__ as well.
15980
15981 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
15982
15983 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
15984 return it.
15985
15986 2002-01-05 Daniel Berlin <dan@dberlin.org>
15987
15988 * lcm.c: Revert change, due to performance regression it causes on
15989 SPEC because it's slightly more conservative (sigh, I hate
15990 edge-based LCM).
15991
15992 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
15993
15994 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
15995
15996 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
15997
15998 * doc/cppinternals.texi: Update.
15999
16000 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16001
16002 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16003 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16004 negatives.
16005 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16006 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16007 kludge for pre-october-14th mmix versions to handle new-found bug
16008 with PUSHJ/PUSHGO and the register stack.
16009 * config/mmix/mmix.h (struct machine_function): Rename member
16010 has_call_value_without_parameters to has_call_without_parameters.
16011 All referers changed.
16012 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16013 TARGET_MASK_BRANCH_PREDICT): New macros.
16014 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16015 -mno-reg-stack-fill-bug-workaround.
16016 * config/mmix/mmix.md ("call"): Set struct machine member
16017 has_call_without_parameters.
16018
16019 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16020
16021 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16022
16023 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16024
16025 * cfgcleanup.c: Include tm_p.h
16026 (mark_effect): Fix handling of hard register; fix handling of SET
16027
16028 2002-01-04 Kazu Hirata <kazu@hxi.com>
16029
16030 * config/h8300/h8300.md (anonymous patterns): Check that
16031 operands are registers before using REGNO on them.
16032
16033 2002-01-03 Roland McGrath <roland@frob.com>
16034
16035 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16036
16037 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16038
16039 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16040 * c-common.h (genrtl_expr_stmt_value): Likewise.
16041 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16042 (expand_expr_stmt_value): Add maybe_last argument.
16043 Don't warn about statement with no effect if it is the last statement
16044 in expression statement.
16045 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16046 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16047 expand_expr_stmt_value.
16048 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16049 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16050 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16051 as maybe_last to expand_expr_stmt_value.
16052
16053 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16054
16055 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16056 be passed in, do not build it.
16057 (c_begin_if_stmt): New function.
16058 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16059 * c-common.h (c_expand_start_cond): Update prototype.
16060 (c_begin_if_stmt): Prototype new function.
16061 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16062 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16063 c_begin_while_stmt and c_finish_while_stmt_cond.
16064
16065 2002-01-04 William Cohen <wcohen@redhat.com>
16066
16067 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16068 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16069 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16070 * config/pa/som.h (ASM_FILE_START): Likewise.
16071
16072 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16073
16074 * lcm.c: Include df.h.
16075 Add available_transfer_function prototype.
16076 (compute_available): Rework to use iterative dataflow framework.
16077 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16078 with bb_info in df.h
16079 (available_transfer_function): New function.
16080
16081 * Makefile.in (lcm.o): add df.h to dependencies.
16082
16083 2002-01-04 Richard Henderson <rth@redhat.com>
16084
16085 * config/alpha/alpha.c (some_operand): Accept HIGH.
16086 (input_operand): Likewise; accept simple references to globals.
16087 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16088 (alpha_const_double_ok_for_letter_p): Likewise.
16089 (alpha_extra_constraint): Likewise.
16090 (alpha_preferred_reload_class): Likewise. Do not force
16091 symbolic constants to memory.
16092 (alpha_legitimate_address_p): Accept simple references
16093 to small_symbolic_operand.
16094 (alpha_legitimize_address): New arg scratch. Be prepared to be
16095 called when no_new_pseudos. Emit simple symbolic references.
16096 Split integers into low, high, and rest.
16097 (alpha_expand_mov): Use alpha_legitimize_address.
16098 (some_small_symbolic_mem_operand): New.
16099 (split_small_symbolic_mem_operand): New.
16100 * config/alpha/alpha-protos.h: Update.
16101 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16102 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16103 (EXTRA_CONSTRAINT): Likewise.
16104 (PREFERRED_RELOAD_CLASS): Likewise.
16105 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16106 (PREDICATE_CODES): Update.
16107 * config/alpha/alpha.md: New post-reload splitters to convert
16108 simplfied symbolic operands to the form that references $29.
16109 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16110 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16111
16112 2002-01-03 Richard Henderson <rth@redhat.com>
16113
16114 * local-alloc.c (function_invariant_p): Update commentary.
16115
16116 2002-01-04 H.J. Lu <hjl@gnu.org>
16117
16118 * toplev.c (rest_of_compilation): Fix a typo when calling
16119 cleanup_cfg.
16120
16121 2002-01-03 Kazu Hirata <kazu@hxi.com>
16122
16123 * c-common.c: Fix formatting.
16124 * diagnostic.c: Likewise.
16125 * doloop.c: Likewise.
16126 * dwarf2out.c: Likewise.
16127
16128 2002-01-03 Kazu Hirata <kazu@hxi.com>
16129
16130 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16131 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16132
16133 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16134
16135 * cpperror.c: Update comments and copyright.
16136 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16137 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16138
16139 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
16140
16141 * collect2.c (main): Use strcmp when testing for "-shared".
16142
16143 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16144
16145 * cppmacro.c: Don't include intl.h. Update comments.
16146 (new_number_token): Allocate enough buffer for 64-bit unsigned
16147 integers; update prototype.
16148 * cppmain.c: Update comments.
16149
16150 2002-01-03 William Cohen <wcohen@redhat.com>
16151
16152 * function.h (struct function): Add profile.
16153 (current_function_profile): New.
16154 doc/extend.texi: Update documentation.
16155 * final.c (final_start_function): Use current_function_profile
16156 instead of profile_flag.
16157 (profile_after_prologue): Likewise.
16158 * function.c (expand_function_start): Likewise.
16159 (expand_function_start): Likewise.
16160 * config/alpha/alpha.c (direct_call_operand):
16161 (alpha_does_function_need_gp): Likewise.
16162 (alpha_expand_prologue): Likewise.
16163 * config/arm/arm.c (arm_expand_prologue): Likewise.
16164 thumb_expand_prologue: Likewise.
16165 * config/d30v/d30v.c (d30v_stack_info): Likewise.
16166 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16167 (fr30_expand_prologue): Likewise.
16168 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16169 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16170 * config/i386/i386.h (FINALIZE_PIC): Likewise.
16171 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16172 * config/i960/i960.c (i960_output_function_prologue): Likewise.
16173 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16174 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16175 (m32r_expand_prologue): Likewise.
16176 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16177 (m88k_expand_prologue): Likewise.
16178 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16179 * config/mips/mips.c (compute_frame_size): Likewise.
16180 (mips_expand_prologue): Likewise.
16181 (mips_can_use_return_insn): Likewise.
16182 * config/pa/elf.h (ASM_FILE_START): Likewise.
16183 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16184 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16185 * config/pa/som.h (ASM_FILE_START): Likewise.
16186 * config/romp/romp.c (romp_using_r14): Likewise.
16187 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16188 (rs6000_stack_info): Likewise.
16189 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16190 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16191 * config/v850/v850.c (compute_register_save_size): Likewise.
16192
16193 2002-01-03 Jakub Jelinek <jakub@redhat.com>
16194
16195 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16196 gen_lowpart_common fails, use gen_lowpart_SUBREG.
16197
16198 2002-01-03 Turly O'Connor <turly@apple.com>
16199
16200 * darwin.c (machopic_output_possible_stub_label): Don't generate
16201 stub routines for pseudo-stubs which we've just defined.
16202
16203 2002-01-03 Kazu Hirata <kazu@hxi.com>
16204
16205 * builtins.c: Fix formatting.
16206 * c-typeck.c: Likewise.
16207 * combine.c: Likewise.
16208 * expr.c: Likewise.
16209 * loop.c: Likewise.
16210
16211 2002-01-03 Andreas Schwab <schwab@suse.de>
16212
16213 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16214 and return true if _cpp_push_next_buffer pushed a new include
16215 file.
16216 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16217 _cpp_pop_file_buffer did not push a new file.
16218 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16219
16220 2002-01-02 Eric Christopher <echristo@redhat.com>
16221
16222 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16223 FIND_REG_INC_NOTE call. Update copyright.
16224 * loop.c (canonicalize_condition): Ditto.
16225 * reorg.c (delete_scheduled_jump): Ditto.
16226
16227 2002-01-03 Kazu Hirata <kazu@hxi.com>
16228
16229 * gcse.c: Fix formatting.
16230
16231 2002-01-03 Graham Stott <grahams@redhat.com>
16232
16233 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16234 forward defs for struct tags rtx_def, union_tree, rtvec_def
16235 also output corresponding typedefs for rtx, tree, and rtvec.
16236
16237 * system.h: Move forward defs for struct tags rtx_def, union_tree,
16238 rtvec_def along with corresponding typedefs for rtx, tree, and
16239 rtvec to config.h, hconfig.h, tconfig.h.
16240
16241 2002-01-03 Graham Stott <grahams@redhat.com>
16242
16243 * tree.h: Update copyright date.
16244 (IS_EXPR_CODE_CLASS): Add parenthesis.
16245 (TREE_SET_CODE): Add whitespace.
16246 (TREE_CHECK): Add parenthesis.
16247 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16248 (CST_OR_CONSTRUCTOR_CHECK):
16249 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16250 (TREE_SYMBOL_REFERENCED): Whitespace.
16251 (INT_CST_LT): Likewise.
16252 (INT_CST_LT_UNSIGNED): Likewise.
16253 (tree_real_cst): Unwrap comment.
16254 (tree_string): Likewise.
16255 (tree_complex): Likewise.
16256 (IDENTIFIER_POINTER): correct cast.
16257 (SAVE_EXPR_CONTEXT): Whitespace.
16258 (EXPR_WFL_FILENAME_NODE): Likewise.
16259 (EXPR_WFL_FILENAME): Remove parenthesis.
16260 (DECL_ORIGIN): Add parenthesis.
16261 (DECL_FROM_INLINE): Use NULL_TREE.
16262 (build_int_2): Whitespace.
16263 (build_type_variant): Add parenthesis.
16264
16265 * gcc/jcf-parse.c: Update copyright date.
16266 (yyparse): Constify resource_filename.
16267
16268 2002-01-03 Graham Stott <grahams@redhat.com>
16269
16270 * rtl.h: Update copyright date.
16271 (RTL_CHECK1): Wrap long line.
16272 (RTL_CHECK2): Likewise.
16273 (RTL_CHECKC1): Wrap long line and whitespace.
16274 (RTL_CHECKC2): Likewise.
16275 (XWINT): Whitespace.
16276 (XINT): Likewise.
16277 (XSTR): Likewise.
16278 (XEXP): Likewise.
16279 (XVEC): Likewise.
16280 (XMODE): Likewise.
16281 (XBITMAP): Likewise.
16282 (XTREE): Likewise.
16283 (XBBDEF): Likewise.
16284 (XTMPL): Likewise.
16285 (X0WINT): Likewise.
16286 (X0INT):Likewise.
16287 (X0UINT): Likewise.
16288 (X0STR): Likewise.
16289 (X0EXP): Likewise.
16290 (X0VEC): Likewise.
16291 (X0MODE): Likewise.
16292 (X0BITMAP): Likewise.
16293 (X0TREE): Likewise.
16294 (X0BBDEF): Likewise.
16295 (X0ADVFLAGS): Likewise.
16296 (X0CSELIB): Likewise.
16297 (X0MEMATTR): Likewise.
16298 (XCWINT): Likewise.
16299 (XCINT): Likewise.
16300 (XCUINT): Likewise.
16301 (XCSTR): Likewise.
16302 (XCEXP): Likewise.
16303 (XCVEC): Likewise.
16304 (XCMODE): Likewise.
16305 (XCBITMAP): Likewise.
16306 (XCTREE): Likewise.
16307 (XCBBDEF): Likewise.
16308 (XCADVFLAGS): Likewise.
16309 (XCCSELIB): Likewise.
16310 (XC2EXP): Likewise.
16311 (INSN_UID): Likewise.
16312 (PREV_INSN): Likewise.
16313 (PATTERN): Likewise.
16314 (INSN_CODE): Likewise.
16315 (PUT_REG_NOTE_KIND): Likewise.
16316 (CODE_LABEL_NUMBER): Likewise.
16317 (NOTE_SOURCE_FILE): Likewise.
16318 (NOTE_BLOCK): Likewise.
16319 (NOTE_EH_HANDLER): Likewise.
16320 (NOTE_RANGE_INFO): Likewise.
16321 (NOTE_LIVE_INFO): Likewise.
16322 (NOTE_BASIC_BLOCK): Likewise.
16323 (NOTE_EXPECTED_VALUE): Likewise.
16324 (NOTE_LINE_NUMBER): Likewise.
16325 (LABEL_NAME): Likewise.
16326 (LABEL_NUSES): Likewise.
16327 (LABEL_ALTERNATE_NAME): Likewise.
16328 (ADDRESSOF_DECL): Likewise.
16329 (JUMP_LABEL): Likewise.
16330 (LABEL_NEXTREF): Likewise.
16331 (REGNO): Likewise.
16332 (ORIGINAL_REGNO: Likewise.
16333 (HARD_REGISTER_NUM_P): Add parenthesis.
16334 (SUBREG_REG): Whitespace.
16335 (SUBREG_BYTE): Likewise.
16336 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16337 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16338 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16339 (ASM_OPERANDS_INPUT_VEC): Likewise.
16340 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16341 (ASM_OPERANDS_INPUT): Likewise.
16342 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16343 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16344 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16345 (ASM_OPERANDS_INPUT_MODE): Likewise.
16346 (ASM_OPERANDS_SOURCE_FILE): Likewise.
16347 (ASM_OPERANDS_SOURCE_LINE): Likewise.
16348 (MEM_SET_IN_STRUCT_P): Minor reformat.
16349 (TRAP_CONDITION): Whitespace.
16350 (TRAP_CODE): Likewise.
16351 (COND_EXEC_TEST): Likewise.
16352 (COND_EXEC_CODE): Likewise.
16353 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16354 (PHI_NODE_P): Add parenthesis.
16355 (plus_constant): Whitespace and add parenthesis.
16356
16357 2002-01-03 Kazu Hirata <kazu@hxi.com>
16358
16359 * config/avr/avr.c: Fix comment typos.
16360 * config/c4x/c4x.md: Likewise.
16361 * config/dsp16xx/dsp16xx.h: Likewise.
16362 * config/dsp16xx/dsp16xx.md: Likewise.
16363 * config/i386/i386.md: Likewise.
16364 * config/ia64/ia64.c: Likewise.
16365 * config/m32r/m32r.h: Likewise.
16366 * config/m68hc11/m68hc11.md: Likewise.
16367 * config/mmix/mmix.c: Likewise.
16368 * config/mn10200/mn10200.c: Likewise.
16369 * config/romp/romp.c: Likewise.
16370 * config/sh/sh.c: Likewise.
16371 * config/stormy16/stormy16.c: Likewise.
16372 * config/stormy16/stormy16.h: Likewise.
16373 * config/stormy16/stormy16.md: Likewise.
16374
16375 2002-01-03 Graham Stott <grahams@redhat.com>
16376
16377 * loop.h: Update copyright date.
16378 (LOOP_MOVABLES): Fix typo.
16379 (LOOP_REGS): Likewise.
16380 (LOOP_IVS): Likewise.
16381
16382 2002-01-03 Graham Stott <grahams@redhat.com>
16383
16384 * cppinit.c: Update copyright date.
16385 Don't include output.h
16386 * Makefile.in: Update copyright date.
16387 Update dependency.
16388
16389 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
16390
16391 PR c/5226
16392 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16393 (-pthread) Add to RS/6000 options.
16394
16395 2002-01-02 Kazu Hirata <kazu@hxi.com>
16396
16397 * except.c: Fix comment typos.
16398 * loop.c: Likewise.
16399 * varasm.c: Likewise.
16400 * doc/tm.texi: Fix a typo.
16401
16402 2002-01-02 Jakub Jelinek <jakub@redhat.com>
16403
16404 * c-typeck.c (output_init_element): Allow initializing static storage
16405 duration objects with compound literals.
16406
16407 2002-01-02 Richard Henderson <rth@redhat.com>
16408
16409 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16410 after abusing it.
16411
16412 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16413
16414 * gcc.c (default_compilers): Const-ify.
16415 * mips-tdump.c (stab_names): Likewise.
16416 * mips-tfile.c (map_coff_types, map_coff_storage,
16417 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16418 pseudo_ops_t, pseudo_ops): Likewise.
16419 * protoize.c (default_include): Likewise
16420
16421 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16422 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16423 Add array size in declaration.
16424 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16425 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16426 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16427 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16428 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16429 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16430 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16431 emtens, make_nan): Const-ify.
16432 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16433 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16434
16435 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
16436
16437 * config.gcc (ia64-*-*): Set extra_headers.
16438 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
16439 * config/alpha/t-osf: Remove.
16440 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16441
16442 2002-01-02 David Edelsohn <edelsohn@gnu.org>
16443
16444 * config/rs6000/t-aix43: Revert previous change.
16445
16446 2002-01-02 Jason Merrill <jason@redhat.com>
16447
16448 * c-decl.c (c_expand_body): Call outlining_inline_function when
16449 emitting an inline function out of line.
16450
16451 2002-01-02 Richard Henderson <rth@redhat.com>
16452
16453 * dwarf2out.c (limbo_die_node): Add created_for member.
16454 (new_die): New argument created_for. Update all callers.
16455 (mark_limbo_die_list): New.
16456 (dwarf2out_init): Register limbo_die_list as a root.
16457 (dwarf2out_finish): Force insert limbo dies into their function
16458 context.
16459
16460 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
16461
16462 PR c++/5089
16463 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16464
16465 2002-01-02 Kazu Hirata <kazu@hxi.com>
16466
16467 * config/h8300/fixunssfsi.c: Update copyright.
16468 Fix comment typos.
16469 Fix formatting.
16470 * config/h8300/h8300.c: Update copyright.
16471 Eliminate warnings.
16472
16473 2002-01-02 Kazu Hirata <kazu@hxi.com>
16474
16475 * config/romp/romp.c: Fix comment formatting.
16476 * config/romp/romp.h: Likewise.
16477 * config/romp/romp.md: Likewise.
16478 * config/s390/s390.c: Likewise.
16479 * config/stormy16/stormy16.c: Likewise.
16480 * config/stormy16/stormy16.h: Likewise.
16481
16482 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
16483
16484 * c-common.h (genrtl_expr_stmt_value): Declare.
16485 * c-semantics.c (genrtl_goto_stmt): Redirect to...
16486 (genrtl_goto_stmt_value): ... this new function. Pass new
16487 argument down to expand_expr_stmt_value, taking
16488 TREE_ADDRESSABLE into account.
16489 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16490 STMT_EXPR as addressable, i.e., one whose result we want.
16491 * expr.c (expand_expr): Don't save expression statement value
16492 of labeled_blocks or loop_exprs.
16493 * stmt.c (expand_expr_stmt): Redirect to...
16494 (expand_expr_stmt_value): ... this new function. Use new
16495 argument to tell whether to save expression value.
16496 (expand_end_stmt_expr): Reset last_expr_type and
16497 last_expr_value if we don't have either.
16498 * tree-inline.c (declare_return_variable): Mark its use
16499 statement as addressable.
16500 * tree.h: Document new use of TREE_ADDRESSABLE.
16501 (expand_expr_stmt_value): Declare.
16502
16503 2002-01-01 Tom Rix <trix@redhat.com>
16504
16505 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16506 rs6000_emit_allocate_stack.
16507
16508 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
16509
16510 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16511 ${srcdir}/ginclude/ to every entry in extra_headers.
16512 * configure: Regenerate.
16513 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16514 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16515 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16516 * ginclude/proto.h: Rename to config/convex/proto.h.
16517
16518 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16519
16520 * attribs.c (handle_vector_size_attribute): Use host_integerp
16521 and tree_int_cst; remove warnings.
16522 * caller-save.c (insert_restore): Add cast to get rid of warning.
16523 (insert_save): Likewise.
16524 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16525 * regmove.c (find_matches): Add temporary var to kill a warning.
16526
16527 2002-01-01 Douglas B Rupp <rupp@gnat.com>
16528
16529 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16530 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16531 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16532 (vms-dwarf2eh.o): Add Makefile rule.
16533 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16534 * config/alpha/vms-dwarf2eh.asm: New file.
16535
16536 * gcc.c (delete_if_ordinary): Delete all versions.
16537
16538 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
16539
16540 * config/mmix/mmix.md: Update FIXME to not mention
16541 define_constants.
16542 (MMIX_rJ_REGNUM): New define_constants constant.
16543 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
16544 "*movdicc_real"): Adjust contraints formatting.
16545 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
16546 for branch prediction.
16547 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
16548 output template.
16549 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
16550 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
16551 number. Delete related FIXMEs.
16552 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
16553 from number to MMIX_rJ_REGNUM.
16554 (TARGET_MASK_BRANCH_PREDICT): New.
16555 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
16556 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
16557 value. Add -mbranch-predict and -mno-branch-predict.
16558 (TARGET_VERSION): Drop date.
16559 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
16560 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
16561 for finding out global symbols.
16562 (mmix_asm_output_labelref): Revert condition for global symbol.
16563 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
16564 (mmix_print_operand_punct_valid_p): A '+' is valid.
16565
16566 See ChangeLog.6 for earlier changes.