m68hc11.md ("*ashlsi3"): Avoid saving y if we know it is dead.
[gcc.git] / gcc / ChangeLog
1 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
2
3 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
4 it is dead.
5 ("*ashrsi3"): Likewise.
6 ("*lshrsi3"): Likewise.
7
8 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
9
10 * genautomata.c (output_max_insn_queue_index_def): Take latencies
11 into account.
12
13 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
14
15 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
16 address computation and memory moves.
17
18 2002-07-03 Mark Mitchell <mark@codesourcery.com>
19
20 PR c++/6706
21 * dwarfout.c (output_reg_number): Fix warning message.
22 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
23 before using it.
24
25 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26
27 * gcc/gcc.c (asm_debug): Move initialization ...
28 (init_spec): ... here.
29
30 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
31
32 * c-parse.in (extdef): Append ';'.
33 (old_style_parm_decls): Append ';'.
34
35 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
36
37 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
38 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
39 to gcc_cv_as_gstabs_flag.
40 * configure: Rebuilt.
41
42 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
43
44 * ggc.h (ggc_add_root): Document as obsolete.
45
46 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
47
48 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
49 (mshflo_w): Likewise.
50
51 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
52
53 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
54 vector mode subregs of constants to finding integer mode
55 subregs of constants.
56 * cse.c (cse_insn): Use simplify_gen_subreg.
57 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
58 From a vector mode expression of different size than the
59 target mode.
60
61 2002-07-03 Eric Christopher <echristo@redhat.com>
62
63 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
64 * config/mips/mips.h: Remove deprecated -m<processor> options
65 and cc1_cpu_spec associated.
66 (CONSTANT_ADDRESS_P): Fix last patch.
67 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
68 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
69 sunge_sf): Remove.
70
71 2002-07-03 Stan Shebs <shebs@apple.com>
72
73 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
74 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
75 (CPP_SPEC): Remove insertion of APPLE_CC definition.
76
77 2002-07-03 Roger Sayle <roger@eyesopen.com>
78
79 * combine.c (struct_undo): Change types of recorded substitutions
80 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
81 (do_SUBST_INT): Change types of the substitution from unsigned int
82 to int, to avoid compilation warning from SUBST_INT's only caller.
83
84 (make_extraction): Add cast to avoid compilation warning.
85 (force_to_mode): Remove cast to avoid compilation warning.
86
87 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
88 Jeff Law <law@redhat.com>
89
90 * i386.md (length_immediate attribute): Fix typo.
91 (length_address attribute): Likewise.
92 (modrm attribute): Set it to 0 for immediate call instructions.
93 (jcc_1 pattern): Set modrm attribute to 0.
94 (jcc_2 pattern ): Likewise.
95 (jump pattern): Likewise.
96 (doloop_end_internal pattern): Explicitly set length.
97 (leave pattern): Fix typo.
98 (leave_rex64 pattern): Likewise.
99
100 2002-07-03 David Edelsohn <edelsohn@gnu.org>
101
102 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
103 in FPR as preference.
104 (fctiwz): Same.
105 (floatdidf2, fix_truncdfdi2): Same.
106 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
107 (floatditf2): Same.
108 (floatsitf2, fix_trunctfsi2): SImode in GPR.
109 (ctrdi): Remove FPR alternative and splitter.
110
111 2002-07-03 Will Cohen <wcohen@redhat.com>
112
113 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
114
115 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
116
117 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
118 than UNITS_PER_WORD, unless this is little endian and the first unit
119 in this word. Let extract_bit_field decide how to load an element.
120 Force arguments to matching mode.
121 (expand_vector_unop): Likewise.
122
123 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
124 consist of word_mode elements.
125 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
126 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
127 (build_unary_op): Allow vector types for BIT_NOT_EPR.
128 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
129 CONST_VECTOR.
130 * optabs.c (expand_vector_binop): Try to perform operation in
131 smaller vector modes with same inner size. Add handling of AND, IOR
132 and XOR. Reject expansion to inner-mode sized scalars when using
133 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
134 (expand_vector_unop): Try to perform operation in smaller vector
135 modes with same inner size. Add handling of one's complement.
136 When there is no vector negate operation, try a vector subtract
137 operation. Use simplify_gen_subreg on constants.
138 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
139 constants into smaller vectors with same inner mode, and to
140 integer CONST_DOUBLEs.
141
142 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
143
144 * c-parse.in (parsing_iso_function_signature): New variable.
145 (extdef_1): New, copied from...
146 (extdef): ... here. Reset parsing_iso_function_signature.
147 (old_style_parm_decls): Reset parsing_iso_function_signature.
148 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
149 Warn about ISO C style function definitions.
150 (nested_function, notype_nested_function): Reset
151 parsing_iso_function_signature.
152 (parmlist_2): Set parsing_iso_function_signature.
153
154 * doc/invoke.texi (-Wtraditional): Document new behavior.
155
156 2002-07-02 Chris Demetriou <cgd@broadcom.com>
157
158 * config.gcc (mips*el-*-*): Use tm_defines to set
159 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
160 * config/mips/little.h: Remove.
161
162 2002-07-02 Devang Patel <dpatel@apple.com>
163
164 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
165 object as parameter. Prevent something like 'NSObject' to be
166 used as the type for a method argument.
167
168 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
169
170 * cpptrad.c: Update comment.
171
172 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
173
174 * doc/cpp.texi: Update for traditional preprocessing changes.
175 * goc/cppopts.texi: Similarly.
176
177 2002-07-02 Ziemowit Laski <zlaski@apple.com>
178
179 * c-parse.in (designator): Enable designated initializers if ObjC.
180 (objcmessageexpr): Remove references to objc_receiver_context.
181 * objc/objc-act.h (objc_receiver_context): Remove decl.
182 * objc/objc-act.c (objc_receiver_context): Remove.
183 (lookup_objc_ivar): Test objc_method_context instead of
184 objc_receiver_context.
185
186 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
187
188 * sh.c (print_operand, case 'N'): Allow zero vector.
189 (arith_reg_or_0_operand): Likewise.
190 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
191 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
192 IOR, XOR, PLUS and SET and take their respective constant
193 ranges into account.
194 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
195 * sh.md (subdi3, subdi3_media): Allow zero operand.
196 (movv8qi_i+3): Only vector that is not split is the zero vector.
197 Fix operand 3 to simplify_subreg.
198 (movv2si_i): Split alternative 1.
199 (mshfhi_l_di_rev+1): New splitter.
200
201 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
202
203 PR preprocessor/7029
204 * cppinit.c (cpp_handle_option): Suppress warnings with an
205 implicit "-w" for "-M" and "-MM".
206 * doc/cppopts.texi: Update.
207
208 2002-07-01 Roger Sayle <roger@eyesopen.com>
209
210 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
211 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
212 builtin_function.
213
214 2002-07-02 Alan Modra <amodra@bigpond.net.au>
215
216 * README.Portability: Fix typos.
217
218 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
219
220 PR target/7177
221 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
222 of indirections for register inside sign-extended mem part.
223
224 2002-07-01 Roger Sayle <roger@eyesopen.com>
225
226 * tree.h: Modify builtin_function interface to take an extra
227 argument ATTRS, which is a tree representing an attribute list.
228
229 * c-decl.c (builtin_function): Accept additional parameter.
230 * objc/objc-act.c (builtin_function): Likewise.
231 * f/com.c (builtin_function): Likewise.
232 * java/decl.c (builtin_function): Likewise.
233 * ada/utils.c (builtin_function): Likewise.
234 * cp/decl.c (builtin_function): Likewise.
235 (builtin_function_1): Likewise.
236
237 * c-common.c (c_common_nodes_and_builtins): Pass an additional
238 NULL_TREE argument to builtin_function. (builtin_function_2):
239 Likewise.
240 * cp/call.c (build_java_interface_fn_ref): Likewise.
241 * objc/objc-act.c (synth_module_prologue): Likewise.
242 * java/decl.c (java_init_decl_processing): Likewise.
243 * f/com.c (ffe_com_init_0): Likewise.
244
245 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
246 NULL_TREE argument to builtin_function.
247 * config/arm/arm.c (def_builtin): Likewise.
248 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
249 * config/i386/i386.c (def_builtin): Likewise.
250 * config/ia64/ia64.c (def_builtin): Likewise.
251 * config/rs6000/rs6000.c (def_builtin): Likewise.
252
253 2002-07-01 Zack Weinberg <zack@codesourcery.com>
254
255 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
256 * config/mips/t-isa3264: Likewise.
257 * config/mmix/t-mmix: Likewise.
258
259 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
260
261 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
262
263 2002-07-01 Roger Sayle <roger@eyesopen.com>
264
265 PR opt/4046
266 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
267 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
268 B are truth values.
269
270 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
271
272 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
273
274 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
275
276 * README.Portability (Function prototypes): Give an example of
277 declaring and defining a function with no arguments.
278
279 * README.Portability (Function prototypes): Document new
280 variable-argument function macros.
281
282 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
283
284 * sh.c (langhooks.h): Include.
285 (sh_init_builtins, sh_media_init_builtins): New functions.
286 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
287 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
288 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
289 (builtin_description): New struct tag.
290 (signature_args, bdesc): New arrays.
291 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
292 (print_operand): Add 'N' modifier.
293 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
294 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
295 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
296 (CONST_COSTS): Add special case for SHmedia AND.
297 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
298 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
299 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
300 target_operand can also be const or unspec.
301 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
302 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
303 (attribute type): Add new types.
304 (anddi3): Add splitter.
305 (movdi_const_16bit+1): Add code to handle vector constants and
306 bitmasks efficiently.
307 (shori_media): Have generator function made.
308 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
309 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
310 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
311 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
312 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
313 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
314 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
315 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
316 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
317 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
318 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
319 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
320 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
321 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
322 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
323 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
324 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
325 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
326 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
327 (ftrv): Likewise.
328
329 (fpu_switch+1, fpu_switch+2): Remove constraint.
330
331 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
332
333 * tree.c (build_function_type_list): Update function comment.
334 Rename first argument to return_type.
335
336 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
337
338 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
339 tradcif.y and related files.
340
341 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
342
343 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
344
345 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
346
347 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
348
349 2002-06-30 Devang Patel <dpatel@apple.com>
350
351 * objc/objc-act.c (finish_file): Avoid finish_objc() if
352 -fsyntax-only.
353
354 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
355 Frank Ch. Eigler <fche@redhat.com>
356 Matthew Green <mrg@redhat.com>
357 Richard Henderson <rtl@redhat.com>
358 Dave Hudson <dave.hudson@ubicom.com>
359 Jeff Johnston <jjohnstn@redhat.com>
360 Alan Lehotsky <apl@alum.mit.edu>
361 Bernd Schmidt <bernds@redhat.com>
362 Graham Stott <grahams@redhat.com>
363
364 * doc/extend.texi: Add ip2k port to description of attribute
365 naked.
366 * doc/install.texi (Specific): Add ip2k description.
367 * doc/install-old.texi (Configurations): Add ip2k to possible
368 cpu types.
369 * doc/md.texi: Document ip2k constraints.
370 * config/ip2k/crt0.S: New file.
371 * config/ip2k/ip2k-protos.h: New file.
372 * config/ip2k/ip2k.c: New file.
373 * config/ip2k/ip2k.h: New file.
374 * config/ip2k/ip2k.md: New file.
375 * config/ip2k/libgcc.S: New file.
376 * config/ip2k/t-ip2k: New file.
377
378 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
379
380 * config/mmix/mmix.md ("return"): New pattern.
381 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
382 (TARGET_USE_RETURN_INSN): New macros.
383 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
384 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
385 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
386 (MMIX_POP_ARGUMENT): New macro.
387 (mmix_target_asm_function_prologue): When no epilogue is executed,
388 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
389 (mmix_print_operand) <case '.'>: New case.
390 (mmix_print_operand_punct_valid_p): Match '.'.
391 (mmix_use_simple_return): New function.
392 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
393 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
394 -msingle-exit, -mno-single-exit.
395 (MMIX Options): Ditto.
396
397 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
398
399 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
400
401 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
402
403 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
404
405 2002-06-30 Alan Modra <amodra@bigpond.net.au>
406
407 * unroll.c (loop_iterations): Handle EQ loops.
408
409 2002-06-29 David Edelsohn <edelsohn@gnu.org>
410
411 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
412 constraint in define_expand, not splitter.
413 Formatting.
414
415 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
416
417 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
418 build_function_type_list instead of build_function_type.
419
420 * config/ia64/ia64.c (ia64_init_builtins): Same.
421
422 * config/alpha/alpha.c (alpha_init_builtins): Same.
423
424 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
425
426 * config/arm/arm.c (arm_init_builtins): Same.
427
428 * tree.h: Add build_function_type_list prototype.
429
430 * tree.c (build_function_type_list): New.
431
432 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
433
434 * collect2.c (scan_prog_file): Fix typo in message.
435
436 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
437
438 * fold-cont.c: Remove unused CHARMASK.
439
440 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
441
442 PR preprocessor/7150
443 * cppmain.c (scan_translation_unit_trad): Simplify.
444 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
445
446 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
447
448 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
449 Don't use CPP_PREDEFINES.
450 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
451 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
452 * config/i386/djgpp.h, config/i386/i386-coff.h,
453 config/i386/i386-interix.h, config/i386/i386-interix3.h,
454 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
455 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
456 config/i386/uwin.h: Similarly.
457
458 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
459
460 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
461 flag_inline_trees to enable inlining.
462
463 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
464
465 * configure.in (gcc_gxx_include_dir): Change to match versioned
466 C++ headers if --enable-version-specific-runtime-libs is used.
467 * configure: Regenerate.
468
469 2002-06-28 Jan Hubicka <jh@suse.cz>
470
471 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
472
473 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
474
475 * combine.c (combine_simplify_rtx): Pass the mode of the
476 shift count, not the shift operation when trying to simplify
477 a shift on a SHIFT_COUNT_TRUNCATED target.
478
479 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
480
481 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
482 avoid the auto increment addressing modes.
483 ("*subsi3"): Likewise.
484 (split for add/sub on address): For 68HC12 push the value on
485 the stack and do the operation with a pop.
486
487 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
488
489 * cpplib.c (_cpp_handle_directive): Move #define-specific
490 code to the #define handler...
491 (do_define): ...here.
492 (lex_macro_node): No longer a need to check for comments here.
493
494 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
495
496 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
497 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
498 Declare.
499 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
500 do not reorder basic blocks at the end when optimizing for size.
501
502 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
503
504 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
505 (m68hc11_make_autoinc_notes): New function.
506 (m68hc11_split_move): Be very cautious when spliting a move with
507 auto increment/decrement modes because this may result in incompatible
508 directions; add REG_INC notes to the resulting insn for CSE reg.
509
510 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
511
512 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
513 can be a valid address.
514
515 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
516
517 * config/rs6000/rs6000.c: Remove unusued variables from last
518 patch.
519
520 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
521
522 Revert:
523 * config/rs6000/rs6000.c (rs6000_override_options): Move
524 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
525
526 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
527
528 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
529 lvx/stv/dst builtins...
530 (altivec_expand_ld_builtin): ...to here.
531 (altivec_expand_st_builtin): ...here.
532 (altivec_expand_dst_builtin): ...and here (respectively).
533
534 2002-06-28 Bob Wilson <bob.wilson@acm.org>
535
536 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
537
538 2001-06-08 Bernd Schmidt <bernds@redhat.com>
539
540 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
541 subregs.
542 * recog.c (general_operand, register_operand): Disallow them.
543
544 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
545
546 PR preprocessor/7138
547 * cpplib.c (_cpp_handle_directive): Do traditional
548 preparation after setting state.angled_headers.
549 * cpptrad.c (scan_out_logical_line): Fix potential
550 quote bug.
551
552 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
553
554 * config/rs6000/rs6000.c (rs6000_override_options): Move
555 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
556
557 2002-06-27 Bob Wilson <bob.wilson@acm.org>
558
559 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
560 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
561 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
562
563 2002-06-27 Roger Sayle <roger@eyesopen.com>
564
565 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
566 * config/stormy16/stormy16.h: Likewise.
567
568 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
569 with #define.
570
571 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
572
573 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
574 Hitachi entry. Make punctuation more consistent.
575
576 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
577
578 * doc/install.texi: Change ` bit' to `-bit'.
579 * doc/md.texi: Change `-bits' to `-bit'.
580 * doc/tm.texi: Change `-bits' to ` bits'.
581
582 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
583
584 * gcse.c (hoist_code): Rewrite to only get list of dominated
585 blocks once per BB. Also fix reversed test (by removing need for
586 the test at all).
587
588 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
589
590 * cpphash.h (_cpp_set_trad_context): Remove.
591 * cpplib.c (prepare_directive_trad): Do nothing for #define.
592 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
593 * cpptrad.c: Update comments.
594 (_cpp_read_logical_line_trad): Let scan_logical_line handle
595 updating the current context.
596 (scan_logical_line): Update the current context.
597 (_cpp_create_trad_definition): Similarly.
598 (_cpp_set_trad_context): Remove.
599
600 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
601
602 PR preprocessor/7070
603 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
604
605 2002-06-26 Bob Wilson <bob.wilson@acm.org>
606
607 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
608 config/xtensa/xtensa.c (xtensa_return_addr): New function.
609 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
610 config/xtensa/xtensa.md (fix_return_addr): New pattern.
611
612 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
613
614 * mips.c (coprocessor_operand, coprocessor2_operand,
615 symbolic_operand): Move prototypes from here...
616 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
617 symbolic_operand): ...to here.
618
619 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
620
621 * config/sh/crt1.asm: remove _stack label definition
622 and sentinel value.
623
624 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
625
626 * varasm.c: Include real.h before output.h.
627
628 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
629
630 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
631 check for TARGET_ALTIVEC.
632
633 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
634
635 * config.gcc (vax-*-vms*): Make obselete.
636
637 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
638
639 * gcc.c (warn_std): Delete.
640
641 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
642
643 * doc/extend.texi: Fix formatting of last checkin.
644
645 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
646
647 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
648 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
649
650 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
651
652 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
653 discrepancies from motorola's documentation.
654
655 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
656
657 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
658 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
659
660 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
661 produce a 32 bit result before normalization, then normalize with a
662 left shift. Compute approximative error of 2nd reciprocal
663 approximation in 2's complement. Fix mask generation from upper
664 longword of second divide stage result.
665 For large divisor, fix shift count used to truncate first stage
666 divide result; make decision if to adjust upwards based on comparison
667 of higher parts of normalized values.
668 (udivdi): Likewise. Undo normalization of result for large divisor
669 case.
670
671 2002-06-25 David S. Miller <davem@redhat.com>
672
673 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
674
675 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
676
677 * cpplib.c (do_include_common): Revert to correct line number
678 if -traditional.
679 * cpptrad.c (scan_out_logical_line): Treat null directive as
680 white space. Invlidate MI optimization for non-whitespace
681 text outside a directive.
682
683 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
684
685 * Makefile.in (SHELL): Set to @SHELL@.
686 * fixinc/Makefile.in (SHELL): Likewise.
687
688 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
689 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
690 initialization.
691
692 2002-06-24 Jeff Law <law@redhat.com>
693
694 * flow.c (propagate_one_insn): When removing an insn
695 with a REG_LIBCALL note but not the entire libcall sequence,
696 delete the associated REG_RETVAL note.
697
698 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
699
700 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
701 (udivsi3): Likewise. Rewrite SH1 implementation.
702 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
703 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
704 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
705 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
706 (_moddi3): Likewise.
707
708 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
709
710 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
711 arguments into account for stack_regs.
712
713 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
714
715 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
716 in examples.
717
718 2002-06-24 Art Haas <ahaas@neosoft.com>
719
720 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
721 * doc/tm.texi (Frame Layout): Likewise.
722
723 2002-06-20 Steve Ellcey <sje@cup.hp.com>
724
725 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
726 Set float_format to i128.
727
728 2002-06-24 David S. Miller <davem@redhat.com>
729
730 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
731 32-bit ABI libfuncs to NULL.
732
733 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
734 strings instead of quoted strings for code blocks.
735
736 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
737 optabs if op1 is const0_rtx.
738
739 * Makefile.in (GTFILES): Add basic-block.h
740 * basic-block.h (label_value_list, tail_recursion_label_list):
741 Mark with GTY.
742
743 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
744
745 * cpptrad.c (scan_out_logical_line): Check recursing only when
746 we know we have a macro invocation in the function-like case.
747 Only call _cpp_handle_directive if we know we have a good
748 directive, or we want to reject a bad directive.
749
750 2002-06-24 Alan Modra <amodra@bigpond.net.au>
751
752 * doloop.c (doloop_valid_p): Correct comment.
753 (doloop_modify_runtime <abs_inc != 1>): Simplify.
754 (doloop_modify_runtime <do-while>): Don't emit code when NE.
755
756 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
757
758 * config.gcc: Add support for ip2k.
759
760 2002-06-23 Jan Hubicka <jh@suse.cz>
761 Jeff Law <law@redhat.com>
762
763 * function.h (struct emit_status): Clarify potential contents
764 of regno_reg_rtx array.
765 * integrate.c (copy_rtx_and_substitute): Update comments. Make
766 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
767
768 * reg-stack.c (convert_regs_exit): Push the registers to stack in
769 proper order.
770
771 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
772
773 PR middle-end/6963
774 * function.c (assign_stack_temp_for_type): Do not return
775 the same MEM rtx for multiple uses of a stack slot.
776
777 2002-06-22 David S. Miller <davem@redhat.com>
778
779 PR target/6841 target/6770 target/6719
780 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
781 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
782 GENERAL_OR_EXTRA_FP_REGS.
783
784 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
785
786 * cpptrad.c (struct fun_macro): Add line number.
787 (scan_out_logical_line): Set it, and use it to report unterminated
788 macro invocations.
789
790 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
791
792 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
793 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
794 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
795 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
796 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
797 REGEXP_ONEOF, check_name): Const-ify.
798
799 2002-06-21 Matt Thomas <matt@3am-software.com>
800
801 * config/vax/vax.c (vax_output_function_prologue): Use
802 REGISTER_PREFIX. Fix some indentation.
803 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
804 (VAX_ISTREAM_SYNC): Define.
805 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
806 i-stream sync to the end.
807 (REGISTER_PREFIX): Define as "".
808 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
809
810 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
811
812 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
813 configurations.
814
815 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
816
817 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
818 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
819
820 2002-06-21 Matt Thomas <matt@3am-software.com>
821
822 * config/vax/netbsd.h: Adjust a comment.
823 (TARGET_DEFAULT): Redefine as 0.
824
825 2002-06-21 Richard Henderson <rth@redhat.com>
826
827 * bb-reorder.c (make_reorder_chain_1): Search harder for the
828 vax casesi fallthru edge.
829 * cfglayout.c (cleanup_unconditional_jumps): Use
830 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
831 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
832 block after ADDR_VEC.
833
834 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
835
836 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
837
838 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
839
840 * cpperror.c (cpp_error): For traditional CPP, default to
841 diagnostics on pfile->line.
842 * cpplib.c (prepare_directive_trad): Set line number for
843 diagnostics for #define too.
844 * cpptrad.c (skip_whitespace): Skip comments properly.
845 (_cpp_expansions_different_trad): Initialize quote2.
846
847 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
848
849 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
850 * config/mmix/mmix.h: Ditto.
851 * config/mmix/mmix-protos.h: Ditto.
852 * config/mmix/mmix.c: Ditto. Fix typo in comment.
853 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
854 comment. Comment extra CC modes.
855
856 2002-06-20 Jan Hubicka <jh@suse.cz>
857
858 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
859 (scope_to_insns_finalize): Do not call set_block_levels; handle
860 sequences.
861 (choose_inner_scope): New.
862 * rtl.h (choose_inner_scope): Declare.
863
864 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
865
866 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
867 HOST_WIDE_INT.
868 * pa.c (pa_asm_output_mi_thunk): Likewise.
869 (n_deferred_plabels): Change type to size_t.
870 (output_deferred_plabels, output_call): Use size_t instead of int.
871
872 2002-06-20 Richard Henderson <rth@redhat.com>
873
874 PR target/4041
875 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
876 pattern and adjust constraints for coldfire.
877
878 2002-06-20 Richard Henderson <rth@redhat.com>
879
880 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
881
882 2002-06-20 Chris Demetriou <cgd@broadcom.com>
883
884 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
885
886 2002-06-20 Chris Demetriou <cgd@broadcom.com>
887
888 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
889
890 2002-06-20 Stan Shebs <shebs@apple.com>
891
892 * dominance.c: Include errors.h instead of error.h.
893
894 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
895
896 * cppexp.c (cpp_interpret_integer): Don't force traditional
897 numbers to be unsigned.
898 * cpplib.c (prepare_directive_trad): Set line number for
899 diagnostics.
900 * cpptrad.c (scan_out_logical_line): Continue scanning out
901 at start of buffer.
902 * gcc.c (trad_capable_cpp): Use cc1 always.
903
904 2002-06-20 Jeffrey Law <law@redhat.com>
905
906 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
907 elimination in leaf functions by default yet.
908
909 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
910
911 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
912
913 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
914
915 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
916 multilibs.
917 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
918 Fixes PR other/6836.
919
920 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
921 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
922
923 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
924
925 * basic-block.h: Do not include et-forest.h
926 (dominance_info): Declare as struct dominance-info.
927 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
928 deleting block.
929 * dominance.c (struct dominance_info): Define.
930 (BB_NODE, SET_BB_NODE): New macros.
931 (bb_hash_func, bb_eq_func): Kill.
932 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
933 nearest_common_dominator, dominated_by_p, recount_dominator,
934 add_to_dominance_info, delete_from_dominance_info): update for new
935 representation.
936 (get_dominated_by, redirect_immediate_dominators): Rewrite using
937 enumerate_sons.
938 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
939 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
940 structure.
941
942 * et-forest.h: Update copyright; revamp all function to operate on
943 nodes
944 (et_forest_value): Kill.
945 (et_forest_enumerate_sons, et_forest_node_value): New.
946 * et-forest.c: Update copyright.
947 * et-forest.h: Update copyright; revamp all function to operate on
948 nodes
949 (et_forest_value): Kill.
950 (et_forest_enumerate_sons, et_forest_node_value): New.
951
952 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
953
954 * basic-block.h: Inlude et-forest.h
955 (basic_block_def): Kill dominator.
956 (dominance_info): New type.
957 (loops): Use dominace_info.
958 (dominace handling functions): Take dominace_info as argument
959 instead of bitmaps.
960 (create_preheader): Likewise.
961 * cfg.c (entry_exit_blocks): Kill dominator.
962 (dump_flow_info): Do not dump dominators.
963 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
964 dominators.
965 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
966 (flow_loops_pre_header_scan, make_forwarder_block,
967 canonicale_loop_headers, flow_loops_find): Likewise.
968 * dominance.c: Include error.h
969 (idoms_to_doms): Kill.
970 (bb_hash_func, bb_eq_func): New static functions.
971 (debug_dominace_info): New global function.
972 (calculate_dominance_info): Use new et forest structure.
973 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
974 get_dominated_by, redirect_immediate_dominators,
975 nearest_common_dominator, dominated_by_p, verify_dominators,
976 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
977 delete_from_dominance_info): New global functions.
978 * gcse.c (domnators): CHange to dominance_info.
979 (alloc_hoist_mem): Do not alloc dominators
980 (free_code_hoist_mem): Use free_dominance_info.
981 (compute_code_hoist_data): Use dominance_info.
982 (hoist_code): Likewise.
983 * ifcvt.c (post_dominators): Likewise.
984 (find_if_case_2, if_convert): Likewise.
985 * predict.c (process_note_predictions, process_note_prediction,
986 estimate-probability): Likewise.
987 * sched-rgn.c (find_rgns, init_regions): Likewise.
988 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
989 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
990 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
991 find_evaluations, convert_to_ssa): Likewise.
992 * ssa.h (compute_dominance_frontiers): Likewise.
993
994 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
995
996 * Makefile.in (et-forest.c): Add.
997 * et-forest.c: New file.
998 * at-forest.h: New file.
999
1000 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1001
1002 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
1003 array size calculation.
1004 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
1005 Likewise.
1006
1007 * diagnostic.c (diagnostic_kind_text): Const-ify.
1008 * gengtype.c (lang_names): Likewise.
1009
1010 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
1011
1012 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
1013
1014 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1015
1016 * config/sol2.h: New file.
1017 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
1018 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
1019 (sparc-*-chorusos*): Likewise.
1020 (sparc-*-elf*): Likewise.
1021 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
1022 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
1023 (sparc-hal-solaris2*): Likewise.
1024 (sparc-*-solaris2*): Likewise.
1025 (sparclite-*-elf*): Likewise.
1026 (sparc86x-*-elf*): Likewise.
1027 (sparc64-*-elf*): Likewise.
1028
1029 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
1030 config/sol2.h.
1031 (ASM_SPEC): Override config/sol2.h version for now.
1032 Removed obsolete GAS_REJECTS_MINUS_S variant.
1033 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
1034 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
1035 (TARGET_OS_CPP_BUILTINS): Likewise.
1036 Assert system=unix.
1037 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
1038 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
1039 config/sol2.h.
1040 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
1041 (ASM_CPU_SPEC): Define.
1042 (SUBTARGET_EXTRA_SPECS): Define.
1043
1044 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
1045 in config/sparc/sol2.h.
1046 (ASM_SPEC): Moved to config/sol2.h.
1047 (CPP_CPU_SPEC): Simplified.
1048 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
1049 consistency.
1050 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
1051 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
1052 STARTFILE_ARCH64_SPEC.
1053 (STARTFILE_SPEC): Moved to config/sol2.h
1054 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
1055 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
1056 (LINK_ARCH64_SPEC): Simplified.
1057 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
1058 (LINK_SPEC): Moved to config/sol2.h
1059
1060 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
1061 config/sol2.h.
1062 Use BITS_PER_WORD for size.
1063 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
1064 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
1065 (CPP_PREDEFINES): Removed OS-specific part handled by
1066 TARGET_OS_CPP_BUILTINS.
1067 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
1068 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
1069 (ASM_SPEC): Moved to config/sol2.h.
1070 (PREFERRED_DEBUGGING_TYPE): Likewise.
1071 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
1072 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
1073 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
1074 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
1075
1076 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
1077 * config/i386/sol2gas.h: Removed.
1078
1079 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1080
1081 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
1082
1083 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
1084
1085 * gcc.c-torture/execute/simd-1.c: New.
1086
1087 * gcc.dg/simd-1.c: New.
1088
1089 * doc/extend.texi (Vector Extensions): Document that we can
1090 specify simd types not specifically supported by the hardware.
1091 Document that simd types can be used as function arguments.
1092 Document that signness does make a difference in SIMD types.
1093 Misc cleanups and revisions to the vector extensions section.
1094
1095 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
1096 constants.
1097
1098 * expr.c (vector_mode_valid_p): New.
1099
1100 * expr.h: Add vector_mode_valid_p.
1101
1102 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
1103
1104 * c-common.c (type_for_mode): Always build vector nodes regardless
1105 of VECTOR_MODE_SUPPORTED_P.
1106 (handle_mode_attribute): Error if we can't emulate a nonexisting
1107 vector mode.
1108 (handle_vector_size_attribute): Same.
1109
1110 * optabs.c (expand_binop): Open-code vector operations.
1111 (expand_unop): Open-code vector unops.
1112 (expand_vector_binop): New.
1113 (expand_vector_unop): New.
1114
1115 * c-typeck.c (build_binary_op): Allow vectors in binops.
1116 Allow vectors in conditional operatiors.
1117 (build_unary_op): Allow vectors in unary minus.
1118
1119 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
1120 TARGET_ALTIVEC.
1121
1122 2002-05-20 Richard Henderson <rth@redhat.com>
1123
1124 * c-common.c (c_common_get_alias_set): Correctly handle characters.
1125 Rearrange order of expressions; don't handle vectors here.
1126 * alias.c (get_alias_set): Let vectors match their components.
1127
1128 2002-06-19 Chris Demetriou <cgd@broadcom.com>
1129
1130 * config/mips/mips.c (mips_emit_prefetch): Use hints which
1131 match desired locality.
1132
1133 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
1134
1135 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
1136 (h8300_insert_attributes): New.
1137
1138 2002-06-19 Akim Demaille <akim@epita.fr>
1139
1140 * c-parse.in (initelt: identifier ':' initval): Add an empty
1141 action to fix a type clash.
1142 (aliasdecl, classdef): Add the missing closing `;'.
1143 Whitespace changes.
1144 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
1145 $$ = $1 type clashes.
1146
1147 2002-06-19 Eric Christopher <echristo@redhat.com>
1148
1149 * config/mips/mips.c (symbol_operand): New function.
1150 (mips_emit_prefetch): Ditto.
1151 * config/mips/mips-protos.h: Define.
1152 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
1153 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
1154 (LEGITIMIZE_ADDRESS): Ditto.
1155 * config/mips/mips.md (prefetch, prefetch_si_address,
1156 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
1157
1158 2002-06-19 Eric Christopher <echristo@redhat.com>
1159
1160 * config/fp-bit.h: Add unordered defines for gofast.
1161
1162 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
1163
1164 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
1165 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
1166 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
1167 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
1168 checking and without it.
1169 (decl_name, decl_mode_check_failed, regexp_name,
1170 regexp_mode_check_failed): New functions.
1171 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
1172 gen_presence_set, gen_absence_set, gen_automaton,
1173 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
1174 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
1175 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
1176 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
1177 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
1178 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
1179 (decl_hash, decl_eq_p): Use the macros.
1180 (find_decl): Ditto. Set up mode of work_decl.
1181 (process_excls, process_presence_absence, process_decls,
1182 check_automaton_usage, process_regexp, process_regexp_decls,
1183 check_usage, loop_in_regexp, check_loops_in_regexps,
1184 process_regexp_cycles, add_advance_cycle_insn_decl,
1185 initiate_states, initiate_excl_sets,
1186 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
1187 transform_2): Use the macros.
1188 (transform_3): Ditto. Check mode before making transformations of
1189 ALLOF.
1190 (regexp_transform_func, transform_insn_regexps,
1191 process_unit_to_form_the_same_automaton_unit_lists,
1192 form_the_same_automaton_unit_lists_from_regexp,
1193 form_the_same_automaton_unit_lists,
1194 process_seq_for_forming_states, process_alts_for_forming_states,
1195 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
1196 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
1197 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
1198 units_to_automata_heuristic_distr, create_ainsns,
1199 units_to_automata_distr, create_automata): Use the macros.
1200 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
1201 (longest_path_length, min_issue_delay_pass_states,
1202 output_dead_lock_vect, output_tables, output_insn_code_cases,
1203 output_internal_insn_latency_func, output_print_reservation_func,
1204 output_description, output_automaton_units, generate): Use the
1205 macros.
1206 (make_insn_alts_attr): Ditto. Check case when there are not
1207 alternatives in the reservation.
1208 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
1209 make_bypass_attr, form_important_insn_automata_lists,
1210 expand_automata): Use the macros.
1211
1212 2002-06-20 Tim Josling <tej@melbpc.org.au>
1213
1214 * Makefile.in: Clean up code to check for misspecified languages
1215 in enable-languages.
1216
1217 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
1218
1219 * cpptrad.c (_cpp_replacement_text_len): initialize len.
1220
1221 2002-06-19 Jason Merrill <jason@redhat.com>
1222
1223 * Makefile.in (unstrap, restrap): New targets.
1224 (bootstrap): Mention restrap.
1225
1226 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
1227
1228 * except.c (ehl_free): Remove.
1229
1230 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
1231 builtin_define and builtin_define_std.
1232
1233 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1234
1235 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
1236 (sCOND): Restrict operand class so that gcc knows how to reload them.
1237 (bitfield_set): Merge two unnamed insn's using alternatives.
1238 (call_value): Remove constraint on unused uperand.
1239 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
1240 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
1241
1242 * longlong.h (count_trailing_zeros): Escape newline and beautify.
1243
1244 2002-06-19 Mark Mitchell <mark@codesourcery.com>
1245
1246 * Makefile.in (QMTEST_DIR): Simplify definition.
1247
1248 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
1249
1250 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
1251 #define.
1252
1253 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
1254
1255 * cpphash.h (struct cpp_reader): Make date and time strings.
1256 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
1257 _cpp_replacement_text_len): New.
1258 * cppinit.c (cpp_create_reader): Update.
1259 (init_builtins): Register appropriate builtins for -traditional-cpp.
1260 * cppmacro.c (new_number_token): Remove.
1261 (_cpp_builtin_macro_text): New.
1262 (builtin_macro): Use it.
1263 (cpp_macro_definition): Update to handle traditional macros.
1264 * cppmain.c (cb_line_change): Don't do column positioning for
1265 traditional output.
1266 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
1267 state ls_fun_close.
1268 (skip_whitespace): Fix.
1269 (maybe_start_funlike): Don't set state.parsing_args.
1270 (scan_out_logical_line): Remove duplicate error. Use lex_state
1271 rather than state.parsing_args.
1272 (push_replacement_text): Handle builtins.
1273 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
1274
1275 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
1276 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1277
1278 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
1279 attribute __always_inline__.
1280
1281 2002-06-18 Bob Wilson <bob.wilson@acm.org>
1282
1283 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
1284 when generating the call to _mcount.
1285 (NO_PROFILE_COUNTERS): Define.
1286
1287 2002-06-18 Richard Henderson <rth@redhat.com>
1288
1289 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
1290 2002-06-02 change.
1291
1292 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
1293
1294 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
1295 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
1296 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
1297 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
1298
1299 * sh-protos.h (sh_pr_interrupt): Declare.
1300 * sh.c (sh_pr_interrupt): New function.
1301 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
1302 (sh_hard_regno_rename_ok): Likewise.
1303 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
1304
1305 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
1306
1307 * rtl.def (DEFINE_AUTOMATON): Add description of new options
1308 `time' and `v'. Fix incorrect description of option `w'.
1309
1310 * doc/md.texi: Ditto.
1311
1312 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
1313 (gen_automata_option): Process the new options.
1314 (transform_2, transform_3): Initialize some variables.
1315 (initiate_automaton_gen): Use the new macros.
1316
1317 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
1318
1319 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
1320 (mips_set_return_address, mips_restore_gp): Declare.
1321 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
1322 (current_frame_info): Remove.
1323 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
1324 * config/mips/mips.c: Remove uses of current_frame_info.
1325 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
1326 (struct machine_function): Add 'frame' and 'insns_len'.
1327 (current_frame_info, zero_frame_info): Remove.
1328 (mips_restore_gp, mips_set_return_address): New.
1329 (mips_initial_elimination_offset): New.
1330 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
1331 (eh_return define_split): Use mips_set_return_address.
1332
1333 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
1334
1335 * cpplib.c (dtable): Update.
1336 (end_directive): Decrement expansion prevention count.
1337 Clear state.in_expression.
1338 (prepare_directive_trad): Set state.in_expression.
1339 Increment expansion prevention count.
1340 * cpptrad.c (enum ls): New.
1341 (_cpp_overlay_buffer): Set overlaid_buffer.
1342 (_cpp_remove_overlay): Use overlaid_buffer.
1343 (_cpp_read_logcial_line_trad): Update buffer when it might
1344 have changed.
1345 (scan_out_logical_line): Handle state transitions for assertions
1346 and defined() in #if, and for funlike invocations including the
1347 directive case. Handle '<' and '>' as a quote mechanism in
1348 #include. Warn about unterminated macro invocations.
1349 * cpphash.h (struct lexer_state): New member in_expression.
1350 (struct cpp_reader): New member overlaid buffer.
1351
1352 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
1353
1354 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
1355 __always_inline__.
1356
1357 2002-06-18 Alan Modra <amodra@bigpond.net.au>
1358
1359 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
1360
1361 * doloop.c (doloop_optimize): Extract pattern from insn.
1362
1363 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
1364
1365 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
1366
1367 2002-06-17 Jeff Law <law@redhat.com>
1368
1369 * libgcc2.c: Do not include symcat.h or machmode.h.
1370
1371 2002-06-17 Richard Henderson <rth@redhat.com>
1372
1373 PR target/6922
1374 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
1375
1376 2002-06-17 Tom Tromey <tromey@redhat.com>
1377
1378 * dwarfout.c: Include function.h.
1379
1380 2002-06-17 Andreas Schwab <schwab@suse.de>
1381
1382 * print-rtl.c (print_rtx): Print space before vector, not after.
1383 (debug_rtx): Clear sawclose before printing.
1384 (debug_rtx_list): Print newline after each list element.
1385 (debug_rtx_range): Likewise.
1386
1387 2002-06-17 Richard Henderson <rth@redhat.com>
1388
1389 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
1390 (current_function_funcdef_no): Similarly.
1391 * function.c (funcdef_no): Similarly.
1392 (prepare_function_start): Set current_function_funcdef_no.
1393 (expand_function_start): Don't set current_function_profile_label_no.
1394 * dwarf2out.h (current_funcdef_number): Remove.
1395 * dwarf2out.c (current_funcdef_number): Remove. Replace with
1396 current_function_funcdef_no throughout.
1397 * dwarfout.c, vmsdbgout.c: Similarly.
1398 * except.c (sjlj_funcdef_number): Remove.
1399 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
1400 (output_function_exception_table): Likewise.
1401 * final.c (profile_function): Use current_function_funcdef_no
1402 instead of current_function_profile_label_no.
1403
1404 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
1405
1406 * sched-ebb.c (init_ready_list): Check INSN_P first.
1407
1408 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
1409
1410 * sh.md (divsi3): Update way how to find insns in a sequence.
1411
1412 * reload1.c (merge_assigned_reloads): Don't change reloads
1413 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
1414 to RELOAD_OTHER when there are conflicting input reloads.
1415
1416 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
1417
1418 * function.c (epilogue_done): Correctly build a sequence of insns for
1419 a sibcall epilogue.
1420
1421 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
1422
1423 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
1424 #define.
1425
1426 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
1427
1428 2002-06-16 Richard Henderson <rth@redhat.com>
1429
1430 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1431 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
1432
1433 2002-06-16 Richard Henderson <rth@redhat.com>
1434
1435 PR opt/6722
1436 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
1437
1438 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
1439
1440 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
1441 * config/i386/i386-aout.h, config/i386/i386elf.h,
1442 config/i386/sysv4.h: Remove CPP_PREDEFINES.
1443 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
1444 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
1445 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
1446 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
1447 CPP_PREDEFINES and part of CPP_SPEC.
1448 * config/i386/sysv4-cpp.h: New.
1449
1450 2002-06-16 Richard Henderson <rth@redhat.com>
1451
1452 PR c/7030
1453 * dwarf2out.c (modified_type_die): Don't assign the qualified die
1454 to the unqualified type.
1455
1456 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
1457
1458 * i386-protos.h (x86_field_alignment): Declare.
1459 * i386.c (x86_field_alignment): Define.
1460 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
1461 (BIGGEST_FIELD_ALIGNMENT): Kill.
1462
1463 2002-06-16 Richard Henderson <rth@redhat.com>
1464
1465 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
1466
1467 2002-06-16 Richard Henderson <rth@redhat.com>
1468
1469 * c-common.c (flag_ms_extensions): Move from c++ front end.
1470 * c-common.h (flag_ms_extensions): Declare.
1471 * c-decl.c (c_decode_option): Add -fms-extensions.
1472 (grokfield): Don't accept anonymous structures in ISO C mode;
1473 accept only unnamed anonymous structures in GNU C mode; accept
1474 Plan 9 extensions in MS mode.
1475 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
1476 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
1477 (extension): Clear flag_iso.
1478 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
1479
1480 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
1481
1482 PR target/7042
1483 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
1484 early if current_function_epilogue_delay_list is non-empty.
1485 * config/cris/cris.md ("return"): Add sanity check asserting that
1486 current_function_epilogue_delay_list is empty.
1487
1488 2002-06-16 Jeff Law <law@redhat.com>
1489
1490 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
1491 sharing of hard registers.
1492
1493 * toplev.c (rest_of_compilation): Remove redundant conditional.
1494
1495 * toplev.c (rest_of_compilation): Perform a simpler, less costly
1496 cleanup of the CFG when not optimizing.
1497
1498 2002-06-16 Alan Modra <amodra@bigpond.net.au>
1499
1500 * gcc.c (main): Correct startfile_prefix_spec check.
1501
1502 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
1503
1504 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
1505 include both darwin.o and rs6000-c.o.
1506
1507 2002-06-15 Roger Sayle <roger@eyesopen.com>
1508
1509 * expr.c (compare_from_rtx): Call simplify_relational_operation
1510 on all comparisons, not just those between integer constants,
1511 with the correct (possibly unsigned) comparison code.
1512 (do_compare_rtx_and_jump): Likewise.
1513
1514 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1515
1516 * Makefile.in (tm_defines): New configuration variable.
1517 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
1518 Pass tm_defines in TM_DEFINES.
1519 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
1520 * config.gcc (tm_defines): New configuration variable.
1521 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
1522 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
1523 * configure.in: Substitute tm_defines.
1524 * configure: Rebuilt.
1525 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
1526 * doc/install.texi: Update.
1527 * pa/pa-700.h: Delete file.
1528 * pa/pa-7100.h: Delete file.
1529
1530 2002-06-15 Roger Sayle <roger@eyesopen.com>
1531
1532 * fold-const.c (comparison_to_compcode): New function to convert
1533 an comparison TREE CODE into a bit-based representation.
1534 (compcode_to_comparison): New function to convert from this bit
1535 based representation back to a comparison TREE CODE.
1536 (fold_truthop): Simplify (x<y) && (x==y) and related composite
1537 comparisons.
1538
1539 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
1540
1541 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
1542
1543 * stor-layout.c (compute_record_mode): Remove check for
1544 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
1545 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
1546 MEMBER_TYPE_FORCES_BLK.
1547
1548 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
1549
1550 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
1551
1552 2002-06-14 Jeff Sturm <jsturm@one-point.com>
1553
1554 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
1555
1556 2002-06-14 Steve Ellcey <sje@cup.hp.com>
1557
1558 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
1559 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
1560 * configure, config.in: Regenerate.
1561
1562 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
1563
1564 * loop.c (check_final_value): Use v->always_executed
1565 instead of v->always_computable.
1566 * unroll.c (final_giv_value): Don't calculate the final
1567 value as a function of the biv if the giv is not computed
1568 for every loop iteration.
1569
1570 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
1571
1572 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
1573
1574 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
1575
1576 PR c/6677
1577 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
1578 the truncation down when the target type is signed.
1579 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
1580 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
1581 the conversion if the target type is a smaller type.
1582
1583 2002-06-14 Richard Henderson <rth@redhat.com>
1584
1585 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
1586 earlier. Re-factor comparisons vs extrema.
1587
1588 2002-06-14 Richard Henderson <rth@redhat.com>
1589
1590 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
1591
1592 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1593
1594 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
1595 * sched-deps.c (add_dependence): Likewise.
1596 (group_leader): Likewise.
1597 * sched-rgn.c (init_ready_list): Likewise.
1598 * doc/rtl.texi: Adjust accordingly.
1599
1600 2002-06-13 Jeffrey Law <law@redhat.com>
1601
1602 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
1603 null pointer checks were eliminated. Update prototype.
1604 (delete_null_pointer_checks): Similarly.
1605 * rtl.h (delete_null_pointer_checks): Update prototype.
1606 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
1607 delete_null_pointer_checks deletes one or more null
1608 pointer checks. Do not run cleanup_cfg before gcse, the
1609 CFG is accurate and optimized at that point..
1610
1611 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
1612 of hard registers.
1613
1614 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1615
1616 * Makefile.in (libgcc.mk): Depend on specs.
1617
1618 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
1619
1620 * sh.md (mulsi3): Update way how to find insns in a sequence.
1621
1622 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
1623
1624 * sh.h: Define HARD_REGNO_RENAME_OK
1625 * sh.c: sh_hard_regno_rename_ok: New. If current function has
1626 interrupt_handler attribute, only registers saved on stack are OK.
1627 * sh-protos.h: Declare sh_hard_regno_rename_ok.
1628
1629 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
1630
1631 * config/sh/sh.md (jump): Emit jump insn.
1632 (call_pcrel): Get pattern of the result of gen_call_site.
1633 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
1634
1635 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
1636
1637 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
1638 * cpptrad.c: Update comments.
1639 (skip_whitespace, copy_comment): Take a new parameter.
1640 (skip_escaped_newlines): Don't duplicate escaped newline test.
1641 (copy_comment): Different location for CUR, decide here how
1642 to copy / replace the comment.
1643 (skip_whitespace): Copy whitespace.
1644 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
1645 (scan_out_logical_line): Let copy comment handle keeping or
1646 replacing comments.
1647 (scan_parameters, _cpp_create_trad_definition): Update.
1648
1649 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
1650
1651 * reload.c (get_secondary_mem,find_reloads_address,
1652 find_reloads_address_1): Pass reference to MEM to find_reloads_address
1653 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
1654
1655 2002-06-13 Jessica Han <jessica@cup.hp.com>
1656
1657 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1658 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1659 * doc/tm.texi: Document them.
1660 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1661 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1662 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
1663 (ASM_OUTPUT_FDESC): Likewise.
1664
1665 2002-06-13 Eric Christopher <echristo@redhat.com>
1666
1667 * diagnostic.c (output_format): Fix thinko.
1668
1669 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
1670
1671 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
1672 (DWARF2_UNWIND_INFO): Define to 0.
1673
1674 * config/sh/sh.c (calc_live_regs): Don't use initial_value
1675 optimization for PR_MEDIA_REG.
1676
1677 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
1678
1679 * cpphash.h (_cpp_lex_identifier_trad): Remove.
1680 * cpplib.c (end_directive): Don't skip, always remove overlay
1681 apart from #define.
1682 (prepare_directive_trad): Handle NULL pfile->directive.
1683 (_cpp_handle_directive): Always call prepare_directive_trad
1684 if traditional.
1685 * cppmain.c (check_multiline_token): Rename account_for_newlines,
1686 generalize inputs.
1687 (scan_translation_unit_trad): Use it.
1688 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
1689 output, get escaped newline in comment close correct.
1690 (check_output_buffer, skip_whitespace): Update.
1691 (_cpp_lex_identifier_trad): Remove.
1692 (scan_out_logical_line): Handle -C and comments in directives
1693 properly.
1694
1695 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1696
1697 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
1698 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1699 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
1700 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
1701 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
1702 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
1703 (SELECT_SH5_COMPACT_NOFPU): Likewise.
1704 (TARGET_SWITCHES): Use them.
1705 (TARGET_CPU_DEFAULT): Define if not already defined.
1706 (TARGET_DEFAULT): Use it.
1707 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
1708 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
1709 * config/sh/t-monolib: New file.
1710
1711 2002-06-13 Roger Sayle <roger@eyesopen.com>
1712
1713 * toplev.c (rest_of_compilation): Simplify (and correct) the
1714 logic of the first delete-null-pointer-checks pass.
1715
1716 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
1717
1718 * i386.c (ix86_expand_movstr): Fix pasto.
1719
1720 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
1721
1722 * reload.c (find_valid_class): Fix thinko in my previous patch.
1723
1724 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
1725
1726 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
1727 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
1728 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
1729 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
1730
1731 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
1732
1733 * tree-inline.c (expand_call_inline): Don' mess with _DECL
1734 fields.
1735
1736 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
1737
1738 * diagnostic.c (output_format): Recognize "%H" as a format
1739 specifier for a location_t.
1740 (text_specifies_location): New function.
1741 (diagnostic_set_info): Use it.
1742
1743 2002-06-13 Jeffrey Law <law@redhat.com>
1744
1745 * emit-rtl.c (static_regno_reg_rtx): Define.
1746 (init_emit_once): Initialize static_regno_reg_rtx.
1747 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
1748 of building new hard reg objects once per function.
1749 (gen_rtx_REG): Try to share hard regs.
1750 * regclass.c (init_fake_stack_mems): New function broken out from
1751 init_regs.
1752 * rtl.h (init_fake_stack_mems): Declare.
1753 * toplev.c (lang_independent_init): Call init_regs before
1754 init_emit_once. Call init_fake_stack_mems after init_emit_once.
1755
1756 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
1757
1758 * alias.c (argument_registers): Remove.
1759 (init_alias_once): Initialize static_reg_base_value here. Remove
1760 initialization of argument_registers.
1761 (init_alias_once_per_function): Remove.
1762 (init_alias_analysis): Copy all the entries from static_reg_base_value
1763 into new_reg_base_value all at once.
1764 * rtl.h (init_alias_once_per_function): Remove declaration.
1765 * function.c (prepare_function_start): Do not call
1766 init_alias_once_per_function.
1767
1768 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
1769 starting a sequence and emitting an INSN.
1770
1771 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
1772
1773 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
1774
1775 2002-06-13 David S. Miller <davem@redhat.com>
1776
1777 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
1778
1779 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
1780
1781 * cpplib.c (end_directive): Handle line skipping. Only remove
1782 the rest of the line if the directive was valid.
1783 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
1784 expanding a traditional macro.
1785 * cpptrad.c (recursive_macro): New.
1786 (read_logical_line_trad): Handle skipping.
1787 (scan_out_logical_line): Continue after a successful directive.
1788 Don't expand macros whilst skipping, or if recursing.
1789 (_cpp_create_trad_definition): scan_out_logical_line now sets
1790 the output current position.
1791
1792 2002-06-12 Eric Christopher <echristo@redhat.com>
1793
1794 From Chris Demetriou <cgd@broadcom.com>
1795 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
1796 comment.
1797 (ISA_HAS_MADD_MSUB): Ditto.
1798 (ISA_HAS_NMADD_NMSUB): Ditto.
1799
1800 2002-06-12 Eric Christopher <echristo@redhat.com>
1801
1802 * config.gcc: Consolidate little endian handling and
1803 little/big endian targets.
1804 * config/mips/elfl.h: Remove file.
1805 * config/mips/elfl64.h: Ditto.
1806 * config/mips/ecoffl.h: Ditto.
1807 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
1808
1809 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
1810
1811 * gengtype.h (xvasprintf): New prototype.
1812 (xasprintf): New prototype.
1813 (struct outf): New.
1814 (get_output_file): Return an outf_p.
1815 (header_file): Is now an outf_p.
1816 (base_files): Now are outf_p.
1817 (oprintf): New.
1818 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
1819 rather than stdio operations. Use xasprintf in a few places,
1820 when appropriate.
1821 (xvasprintf): New.
1822 (xasprintf): New.
1823 (struct filemap): Delete.
1824 (files): Delete.
1825 (output_files): New.
1826 (oprintf): New.
1827 (create_file): Create an outf_p. Add parameter to indicate output
1828 file name, change all callers.
1829 (open_base_files): Create gtype-desc.c here.
1830 (get_output_file_with_visibility): Rewrite.
1831 (get_output_file_name): Just look at 'name' field in struct outf.
1832 (close_output_files): Rewrite.
1833
1834 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
1835
1836 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1837 (MASK_G_FLOAT): Define.
1838 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
1839 (TARGET_SWITCHES): Likewise.
1840 (TARGET_DEFAULT): Likewise.
1841
1842 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
1843
1844 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1845 * config/mips/mips.c (mips_output_filename): Don't print a
1846 ".file" directive if we are using DWARF-2.
1847 (mips_output_function_prologue): Do not emit source file
1848 name for TARGET_GAS.
1849
1850 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
1851
1852 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
1853 decide whether emit the short opcode.
1854 * i386.h (x86_shift1): Declare.
1855 (TARGET_SHIFT1): New macro.
1856 * i386.c (x86_shift1): New global variable.
1857
1858 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
1859 unconditionally; make loop to rebuild CFG; kill unnecesary
1860 find_basic_block calls; kill compute_bb_for_insn call.
1861 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
1862 * haifa-sched.c (sched_init): Likewise.
1863 * ssa-ccp.c (ssa_const_prop): Likewise.
1864 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1865
1866 2002-06-11 David S. Miller <davem@redhat.com>
1867
1868 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
1869 active_insn_p.
1870
1871 2002-06-11 Richard Henderson <rth@redhat.com>
1872
1873 * c-common.c (builtin_define_type_max): New.
1874 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
1875 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
1876
1877 From Joseph S. Myers:
1878 * glimits.h: Rewrite to expect the double underscore definitions
1879 from the compiler.
1880
1881 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
1882 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
1883 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
1884 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1885 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
1886 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
1887 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
1888 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
1889
1890 2002-06-11 Richard Henderson <rth@redhat.com>
1891
1892 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
1893 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
1894 (code_for_builtns): Update.
1895 (alpha_init_builtins): Add __builtin_thread_pointer and
1896 __builtin_set_thread_pointer.
1897 (alpha_expand_builtin): Handle void builtins.
1898 * doc/extend.texi (Alpha Built-in Functions): Update.
1899
1900 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
1901
1902 PR target/6997
1903 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1904
1905 2002-06-11 Zack Weinberg <zack@codesourcery.com>
1906
1907 * config.gcc: Make the name of the extra-modes file adjustable
1908 by target stanzas.
1909 (s390x, strongarm, xscale stanzas): Use this facility.
1910 * configure.in: Update to match.
1911 * configure: Regenerate.
1912
1913 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
1914
1915 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
1916 max/mins as unsigned GE compares.
1917
1918 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
1919
1920 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
1921 * config/vax/bsd.h: New file.
1922 * config/vax/netbsd.h: Add missing notice.
1923 (CPP_PREDEFINES): Remove.
1924 (TARGET_OS_CPP_BUILTINS): Define.
1925 (CPP_SPEC): Use NETBSD_CPP_SPEC.
1926 * config/vax/openbsd.h: Update copyright years.
1927 (CPP_PREDEFINES): Remove.
1928 (TARGET_OS_CPP_BUILTINS): Define.
1929 * config/vax/ultrix.h: Likewise.
1930 * config/vax/vaxv.h: Likewise.
1931 * config/vax/vms.h: Likewise.
1932 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
1933 (CPP_PREDEFINES, CPP_SPEC): Remove.
1934
1935 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
1936
1937 * i386.md (addqi_1_slp, subqi_1_slp
1938 (andqi_ext0, testqi_ext0): Remove unnecesary check.
1939 (addhi*, addqi*): Simplify "dec" condition.
1940 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
1941 (and, or, xor to QImode splitters): New.
1942 (iorqi_ext*): New.
1943 (xorqi_ext_0): New.
1944 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
1945 (andqi_ext_1_rex64): New.
1946 (ashrqi*_slp): New.
1947 (ashlqi*_slp): New.
1948 (lshlqi*_slp): New.
1949 (rotrqi3*_slp): New.
1950 (rotlqi3*_slp): New.
1951
1952 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
1953
1954 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
1955 softfloat.h.
1956 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
1957 (CPP_ENDIAN_LITTLE_SPEC): Delete.
1958 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
1959 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
1960 __LONG_DOUBLE_128__ setting, _CALL_* setting.
1961 (CPP_DEFAULT_SPEC): Delete.
1962 (CPP_FLOAT_DEFAULT_SPEC): Delete.
1963 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
1964 (CPP_SYSV_DEFAULT_SPEC): Delete.
1965 (CPP_ENDIAN_BIG_SPEC): Delete.
1966 (CPP_ENDIAN_LITTLE_SPEC): Delete.
1967 (CPP_ENDIAN_SPEC): Delete.
1968 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
1969 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
1970 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
1971 cpp_longdouble_default.
1972 * config/rs6000/softfloat.h: Delete.
1973 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
1974 (EXTRA_SPECS): Delete cpp_cpu.
1975 (TARGET_CPU_CPP_BUILTINS): New.
1976 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
1977 prototype.
1978 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
1979 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
1980 (CPP_DEFAULT_SPEC): Delete.
1981 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
1982 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
1983 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
1984 (CPP_DEFAULT_SPEC): Delete.
1985 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1986 (CPLUSPLUS_CPP_SPEC): Likewise.
1987 (CPP_CPU_SPEC): Delete.
1988 (CPP_DEFAULT_SPEC): Delete.
1989 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1990 (CPLUSPLUS_CPP_SPEC): Likewise.
1991 (CPP_CPU_SPEC): Delete.
1992 (CPP_DEFAULT_SPEC): Delete.
1993 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
1994 (CPP_DEFAULT_SPEC): Delete.
1995 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
1996 (CPP_DEFAULT_SPEC): Delete.
1997
1998 * doc/gty.texi: Small updates.
1999
2000 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
2001
2002 * objc/objc-act.c (warn_with_ivar): Adjust calls to
2003 diagnostic_count_error.
2004 (warn_with_method): Likewise.
2005
2006 * diagnostic.h (warnings_are_errors_message): New field of
2007 diagnostic_context.
2008 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
2009 match semantics.
2010 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
2011 (diagnostic_count_diagnostic): Make aware of other kinds of
2012 diagnostics.
2013 (diagnostic_initialize): Initialize warnings_are_errors_message field.
2014
2015 2002-06-11 Tom Tromey <tromey@redhat.com>
2016
2017 For PR java/6520:
2018 * fold-const.c (fold_convert): Don't modify existing tree's type.
2019
2020 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
2021
2022 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
2023
2024 2002-06-11 Richard Henderson <rth@redhat.com>
2025
2026 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
2027
2028 2002-06-11 Richard Henderson <rth@redhat.com>
2029
2030 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
2031 DWARF2_UNWIND_INFO is false.
2032
2033 2002-06-11 Bob Wilson <bob.wilson@acm.org>
2034
2035 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
2036
2037 * config/s390/s390.c (emit_prologue): gen_store_multiple
2038 returns an insn now, not a pattern.
2039
2040 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2041
2042 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
2043 $(TEXI2DVI) -o.
2044
2045 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
2046
2047 * i386.c (x86_promote_QImode): Set for Athlon
2048 (x86_fast_prefix): New global variable.
2049 (x86_arch_always_fancy_math_387): Fix formating.
2050 * i386.h (x86_fast_prefix): Declare
2051 (TARGET_FAST_PREFIX): define.
2052 * i386.md (and to strict_low_part, HI to SI
2053 promoting splitter): Use new macro.
2054
2055 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
2056
2057 2002-06-11 Zack Weinberg <zack@codesourcery.com>
2058
2059 * Makefile.in (distclean): Delete junk left in testsuite
2060 directory, too.
2061
2062 2002-06-11 Jeffrey Law <law@redhat.com>
2063
2064 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
2065 last insn created by the splitter.
2066
2067 * caller-save.c (init_caller_save): Move creation of SAVEINSN
2068 and RESTINSN into into the scope of the sequence.
2069
2070 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
2071 RETURN insns.
2072
2073 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
2074
2075 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
2076 not the pattern. So extract the pattern from the insn.
2077
2078 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
2079
2080 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
2081
2082 * config/s390/s390.md (movsi): Only use floating point
2083 register alternatives when operands are already fprs.
2084 (movdi_31, movdi_64): Likewise.
2085
2086 2002-06-11 David S. Miller <davem@redhat.com>
2087
2088 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
2089 Only run RTX equality checks on INSN_P rtl.
2090
2091 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
2092
2093 * config/s390/s390.md (reload_base, ltorg): Remove.
2094 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
2095 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
2096 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
2097 s390_asm_output_pool_prologue): Likewise.
2098 * s390.h (s390_pool_start_insn): Likewise.
2099
2100 * s390.c (s390_output_symbolic_const): Remove support for
2101 old-style pool chunks.
2102 (s390_function_epilogue): Likewise.
2103 (s390_output_constant_pool): Likewise. Also, fix incorrect
2104 alignment for 64-bit literal pools.
2105 (print_operand_address): Remove 'y' and 'Y' format flags.
2106 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
2107 old-style pool chunks.
2108 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
2109 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
2110 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
2111
2112 * s390.c (consttable_operand): New function.
2113 * s390-protos.h (consttable_operand): Declare it.
2114 * s390.h (PREDICATE_CODES): Add consttable_operand.
2115 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
2116 consttable_sf, consttable_df, pool_start_31, pool_end_31,
2117 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
2118 * s390.c (struct constant, struct constant_pool): New data types.
2119 (constant_modes, gen_consttable): New variables.
2120 (s390_start_pool, s390_end_pool, s390_add_pool,
2121 s390_dump_pool, s390_free_pool): New functions.
2122 (s390_chunkify_pool): Completely reimplement literal pool
2123 overflow handling.
2124
2125 * s390.c (s390_pool_overflow): New variable.
2126 * s390.h (s390_pool_overflow): Declare it.
2127 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
2128 jumps in literal pool overflow situations.
2129
2130 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
2131 (s390_frame_info): Account for possible use of RETURN_REGNUM
2132 by new literal pool overflow code.
2133 (s390_emit_prologue): Likewise.
2134
2135 2002-06-05 David S. Miller <davem@redhat.com>
2136
2137 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
2138 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
2139 emit_insns_before_scope, emit_insns_after,
2140 emit_insns_after_scope): Delete declaration.
2141 * ada/misc.c (insert_code_for): Use emit_insn* instead of
2142 emit_insns_foo.
2143 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
2144 (alpha_set_memflags): Fix comment.
2145 (set_frame_related_p): Use get_insns instead of gen_sequence.
2146 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
2147 emitting no insns.
2148 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
2149 gen_sequence.
2150 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
2151 * config/fr30/fr30.c (fr30_move_double): Likewise.
2152 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
2153 Likewise.
2154 * config/ia64/ia64.c (spill_restore_mem): Likewise.
2155 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
2156 no insns.
2157 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
2158 instead of gen_sequence.
2159 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
2160 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
2161 * config/sh/sh.c (sh_need_epilogue): Likewise.
2162 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
2163 attributes.
2164 (setjmp pattern and split): Use them to avoid splitter which emits
2165 no RTL.
2166 * genattrtab.c (main): Emit include of function.h
2167 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
2168 get_insns instead of gen_sequence.
2169 * config/cris/cris.c (cris_split_movdx): Likewise.
2170 * emit-rtl.c (emit_insns*): Kill.
2171 (try_split): Expect insn list instead of SEQUENCE.
2172 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
2173 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
2174 Make them abort if a SEQUENCE is given and RTL checking is
2175 enabled.
2176 (emit_*_scope): Don't forget to set scope on final insn.
2177 (gen_sequence): Move from here...
2178 * ssa.c (gen_sequence): To here as private function.
2179 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
2180 comments.
2181 (expand_builtin_return, expand_builtin_mathfn): Likewise.
2182 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
2183 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
2184 (expand_builtin_expect_jump): Use get_insns and fix comments.
2185 * calls.c (try_to_integrate): Use emit_insn_foo.
2186 (expand_call, emit_library_call_value_1): Likewise.
2187 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
2188 (emit_move_insn_1): Use get_insns instead of gen_sequence.
2189 (expand_expr): Use emit_insn_foo.
2190 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
2191 * except.c (build_post_landing_pads): Likewise.
2192 * flow.c (attempt_auto_inc): Likewise.
2193 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
2194 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
2195 * function.c (fixup_var_refs_insn): Use get_insns instead of
2196 gen_sequence.
2197 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
2198 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
2199 (fixup_stack_1, purge_addressof_1, expand_main_function,
2200 get_arg_pointer_save_area): Likewise.
2201 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
2202 expand_function_end): Use emit_insn_foo.
2203 (record_insns, keep_stack_depressed): Work with insn list instead
2204 of SEQUENCE, fix comments.
2205 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
2206 noce_try_store_flag_constants, noce_try_store_flag_inc,
2207 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
2208 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
2209 (noce_process_if_block): Use get_insns instead of gen_sequence.
2210 * optabs.c (add_equal_note): Work with insn list, fix comments.
2211 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
2212 (expand_unop, expand_complex_abs, expand_unop_insn,
2213 expand_no_conflict_block): Likewise.
2214 (gen_move_insn): Use get_insns instead of gen_sequence.
2215 (gen_cond_trap): Likewise.
2216 * integrate.c (copy_rtx_and_substitute): Likewise.
2217 (emit_initial_value_sets): Use emit_insn_foo.
2218 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
2219 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
2220 now that RTL generators give insn lists.
2221 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
2222 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
2223 instead of gen_sequence.
2224 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
2225 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
2226 instead of gen_sequence.
2227 * loop.c (move_movables, emit_prefetch_instructions,
2228 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
2229 Likewise.
2230 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
2231 (product_cheap_p): Likewise, and add commentary about RTL wastage
2232 here.
2233 * lcm.c (optimize_mode_switching): Use get_insns instead of
2234 gen_sequence.
2235 * profile.c (gen_edge_profiler): Likewise.
2236 * regmove.c (copy_src_to_dest): Likewise.
2237 * reg-stack.c (compensate_edge): Likewise and fix comment.
2238 * gcse.c (process_insert_insn): Likewise.
2239 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
2240 * jump.c (delete_prior_computation): Update comment.
2241 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
2242 of gen_sequence, update comments to match.
2243 * recog.c (peephole2_optimize): Work with insn lists instead of
2244 SEQUENCE rtl.
2245 * sched-vis.c (print_pattern): Abort on SEQUENCE.
2246 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
2247 Use get_insns instead of gen_sequence.
2248 (copy_loop_body): Likewise and don't emit dummy NOTE.
2249 * genrecog.c: Don't mention SEQUENCE rtl in comments.
2250 * combine.c (try_combine): Expect insn lists from split generator.
2251 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
2252 hand.
2253
2254 2002-06-11 Roger Sayle <roger@eyesopen.com>
2255 Andreas Jaeger <aj@suse.de>
2256
2257 * cfgbuild.c: Update copyright years.
2258
2259 2002-06-11 Andreas Schwab <schwab@suse.de>
2260
2261 * config/m68k/m68k.h (PREDICATE_CODES): Define.
2262
2263 2002-06-11 Eric Christopher <echristo@redhat.com>
2264
2265 * doc/tm.texi (Run-time Target): Add comment about flag_iso
2266 and strict ANSI.
2267 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
2268 * config/mips/ecoffl.h: Ditto.
2269 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
2270 (CPP_PREDEFINES): Ditto.
2271 * config/mips/elfl64.h: Ditto.
2272 * config/mips/elfl.h: Ditto.
2273 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
2274 out until irix header consolidation.
2275 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
2276 with SUBTARGET_OS_CPP_BUILTINS.
2277 * config/mips/iris6.h: Ditto.
2278 (CPLUSPLUS_CPP_SPEC): Remove.
2279 * config/mips/linux.h: Ditto.
2280 * config/mips/netbsd.h: Ditto.
2281 * config/mips/openbsd.h: Ditto.
2282 * config/mips/rtems.h: Ditto.
2283 * config/mips/rtems64.h: Ditto.
2284 * config/mips/sni-svr4.h: Ditto.
2285 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
2286 ISA_MIPS32, ISA_MIPS64): New defines.
2287 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
2288 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
2289 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2290 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
2291 (TARGET_CPU_CPP_BUILTINS): Define.
2292 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
2293 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
2294 (movdicc): Remove check for ISA_MIPS32.
2295 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
2296 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
2297 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
2298 sunge_sf, sunle_df, sunle_sf): New patterns.
2299
2300 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
2301
2302 * Makefile.in: Update cppmain.o.
2303 * cpphash.h (struct cpp_reader): Move some members to a
2304 nested structure.
2305 (trad_line): Rename saved_line.
2306 (_cpp_read_logical_line_trad): Update.
2307 (_cpp_remove_overlay): New.
2308 * cppinit.c (cpp_create_reader): No need to set saved_line.
2309 (cpp_destroy): Update.
2310 (cpp_read_main_file): Only overlay if compiling.
2311 * cpplex.c (continue_after_nul): Return false if in directive.
2312 * cpplib.c (EXPAND): New.
2313 (directive_table, SEEN_EOL): Update.
2314 (end_directive): Remove overlay if traditional; don't skip
2315 line in traditional #define.
2316 (prepare_directive_trad): New.
2317 (_cpp_handle_directive, run_directive): Update for traditional
2318 directives.
2319 (lex_macro_node): Simplify, don't use lex_identifier_trad.
2320 * cpplib.h (struct options): Add preprocess_only.
2321 * cppmain.c: Don't include intl.h.
2322 (cpp_preprocess_file): Set options->preprocess_only.
2323 (scan_translation_unit_trad): Fix, and print line numbers.
2324 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
2325 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
2326 save_replacement_text, _cpp_create_trad_definition): Update for
2327 variable renaming.
2328 (_cpp_overlay_buffer): Save line number.
2329 (_cpp_remove_overlay): Rename from restore_buff, restore line.
2330 (_cpp_read_logical_line_trad): Don't handle overlays here.
2331 (scan_out_logical_line): Process directives.
2332
2333 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
2334
2335 * gthr-win32.h: Wrap functions in extern "C".
2336 (__gthread_key_t): Typedef as unsigned long,
2337 not win32 DWORD.
2338 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
2339 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
2340 (__gthr_win32_once, __gthr_win32_key_create,
2341 __gthr_win32_key_delete, __gthr_win32_getspecific,
2342 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
2343 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
2344 __gthr_win32_mutex_unlock): Declare.
2345 (__gthread_once,__gthread_key_create,
2346 __gthread_key_delete, __gthread_getspecific,
2347 __gthread_setspecific, __gthread_mutex_init_function,
2348 __gthread_mutex_lock,__gthread_mutex_trylock,
2349 __gthread_mutex_unlock): Call corresponding
2350 __gthr_win32_* extern implementations if #defined
2351 __GTHREAD_HIDE_WIN32API.
2352 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
2353 $(srcdir)/config/i386/gthr-win32.c
2354 * config/i386/gthr-win32.c: New implementation file.
2355 (__gthr_win32_once, __gthr_win32_key_create,
2356 __gthr_win32_key_delete, __gthr_win32_getspecific,
2357 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
2358 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
2359 __gthr_win32_mutex_unlock): New functions, based on
2360 static inlines in gthr-win32.h.
2361
2362 2002-06-10 Bob Wilson <bob.wilson@acm.org>
2363
2364 * config/xtensa/xtensa.c (override_options): Don't warn about
2365 using -fpic or -fPIC when PIC is enabled by default.
2366
2367 2002-06-10 Roger Sayle <roger@eyesopen.com>
2368
2369 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
2370
2371 2002-06-10 Zack Weinberg <zack@codesourcery.com>
2372
2373 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
2374 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
2375 exists, substitute its pathname as @extra_modes_file@, define
2376 EXTRA_MODES_FILE to be an appropriate string to #include it
2377 with, and define EXTRA_CC_MODES to 1.
2378
2379 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
2380 it's defined. Get rid of redundancy in calling sequence for
2381 CC; don't use it to define CCmode, to avoid a warning.
2382 * libgcc2.c: Include symcat.h for the sake of machmode.def.
2383
2384 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
2385 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
2386 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
2387 New files.
2388 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
2389 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
2390
2391 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
2392 defining extra CC modes.
2393
2394 2002-06-10 Roger Sayle <roger@eyesopen.com>
2395 Andreas Jaeger <aj@suse.de>
2396
2397 * cfgrtl.c (create_basic_block_structure): Remove index argument
2398 and use last_basic_block++ instead. (create_basic_block): Update.
2399 * cfgbuild.c (find_basic_blocks_1): Likewise.
2400
2401 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
2402 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
2403 * sched-ebb.c (schedule_ebbs): Likewise.
2404 * sched-rgn.c (schedule_insns): Likewise.
2405 * ssa-ccp.c (ssa_const_prop): Likewise.
2406 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
2407 * toplev.c (rest_of_compilation): Likewise.
2408 * config/ia64/ia64.c (ia64_reorg): Likewise.
2409
2410 2002-06-10 Roger Sayle <roger@eyesopen.com>
2411
2412 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
2413 of matching registers.
2414
2415 2002-06-10 Roger Sayle <roger@eyesopen.com>
2416
2417 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
2418 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
2419
2420 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
2421
2422 * config/mmix/mmix.h: Improve comments.
2423 (CPP_SPEC, CPP_PREDEFINES): Don't define.
2424 (TARGET_CPU_CPP_BUILTINS): Define.
2425 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
2426 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
2427 unused predicate.
2428 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
2429 compiler warning.
2430 (mmix_constant_address_p): Remove another
2431 redundant test before case.
2432 (mmix_canonicalize_comparison): Remove unused function.
2433 (mmix_print_operand_address): Don't test and adjust for operand in
2434 non-canonical format.
2435 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
2436 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
2437
2438 2002-06-10 Zack Weinberg <zack@codesourcery.com>
2439
2440 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
2441 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
2442 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
2443 (gen_compare): Use CCmode unconditionally.
2444
2445 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2446
2447 PR optimization/6759
2448 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
2449 the REQ_EQUAL note.
2450
2451 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2452
2453 PR c/6660
2454 * c-decl.c (grokfield): Allow user defined types if they declare
2455 structs or unions for unnamed fields.
2456
2457 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2458
2459 PR c/6809
2460 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
2461
2462 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2463
2464 PR optimization/6842
2465 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
2466 operand subreg cannot be simplified.
2467
2468 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2469
2470 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
2471 (compare_constant): Likewise.
2472 (output_addressed_constants): Likewise.
2473
2474 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2475
2476 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
2477 merge bb with itself.
2478
2479 2002-06-10 Richard Henderson <rth@redhat.com>
2480
2481 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
2482 (builtin_zapnot): Likewise.
2483
2484 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
2485 reservation.
2486
2487 2002-06-10 Eric Christopher <echristo@redhat.com>
2488
2489 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
2490 prototype and function.
2491 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
2492 (call_insn_operand): Remove half pic references.
2493 (legitimate_address_p): Ditto.
2494 * config/i386/i386.h: Remove half pic defines.
2495
2496 2002-06-10 Eric Christopher <echristo@redhat.com>
2497
2498 * doc/extend.texi (Return Address): Add note explaining the side-
2499 effects of inlining on __builtin_return_address.
2500
2501 2002-06-10 Tom Tromey <tromey@redhat.com>
2502
2503 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
2504 (c-common.o): Depend on langhooks.h.
2505
2506 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
2507
2508 * cpphash.h (_cpp_read_logical_line_trad,
2509 _cpp_expansions_different_trad): Update prototypes.
2510 * cpplex.c (continue_after_nul): New.
2511 * cppmain.c: Include cpphash.h.
2512 (scan_translation_unit_trad): New.
2513 (cpp_preprocess_file): Call it.
2514 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
2515 overlay.
2516 (_cpp_expansions_different_trad): Update prototype.
2517
2518 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
2519
2520 Fix cfi generation for SH[1-4]:
2521
2522 * sh.c (frame_insn): New function.
2523 (output_stack_adjust): Add parameter emit_fn. All callers changed.
2524 (push): Now returns rtx. Use frame_insn.
2525 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
2526 of a DF register.
2527 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
2528
2529 2002-06-10 Zack Weinberg <zack@codesourcery.com>
2530
2531 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
2532 and gtype-desc.c.
2533 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
2534 (distclean): ... not here. But do delete all testsuite/*.log,
2535 testsuite/*.sum files here. Delete mkheaders. Delete
2536 po/*.gmo and the testsuite directory in a split tree build.
2537
2538 2002-06-10 Jeffrey Law <law@redhat.com>
2539
2540 * alias.c (static_reg_base_value): New to hold RTL for
2541 items allocated once per function for the aliasing code.
2542 (init_alias_once_per_function): Initialize static_reg_base_value.
2543 (init_alias_analysis): Avoid throw-away allocations of RTL by
2544 using pre-computed values in static_reg_base_value.
2545 * function.c (prepare_function_start): Call
2546 init_alias_once_per_function appropriately.
2547 * rtl.h (init_alias_once_per_function): Declare.
2548 * caller-save (init_caller_save): Restructure slightly to
2549 avoid lots of silly RTL generation.
2550 * expr.c (init_expr_once): Likewise.
2551 * reload1.c (reload_cse_regs_1): Allocate throw-away register
2552 RTL object here. Pass it into children.
2553 (reload_cse_simplify_operands): Use passed-in register RTL
2554 object.
2555 (reload_cse_simplify): Pass through throw-away register
2556 RTL object.
2557
2558 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
2559
2560 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
2561
2562 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2563
2564 * gcc.c (process_command): Avoid assignment to read-only location.
2565 Fix sizeof calculation.
2566
2567 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
2568
2569 * cpphash.h (struct cpp_macro): Put comments on their own lines.
2570 (_cpp_expansions_different_trad): New.
2571 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
2572 * cpptrad.c (canonicalize_text): New.
2573 (scan_out_logical_line): Handle no arguments correctly.
2574 (save_replacement_text): Commit memory when finished.
2575 (_cpp_expansions_different_trad): New.
2576
2577 2002-06-10 Tim Josling <tej@melbpc.org.au>
2578
2579 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
2580 TREELANG and COBOL.
2581 (lang_names): Add treelang and cobol.
2582 (get_file_basename): Add code to support treelang and cobol as
2583 4th and 5th users of c-common.c.
2584
2585 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
2586
2587 * Makefile.in (install-driver): Install driver as
2588 $(target_alias)-gcc-$(version).
2589 * gcc.c (spec_version): Make const.
2590 (process_command): Handle -V and -b by using exec.
2591 * doc/invoke.texi (Target Options): Restore -V option,
2592 update docs for -b option.
2593
2594 2002-06-10 Tim Josling <tej@melbpc.org.au>
2595
2596 * configure.in (remaining_languages_check):
2597 Added check that all languages specified were found.
2598 Exit if not found. Previous behaviour was silent failure.
2599 * configure: Regenerated.
2600
2601 2002-06-10 Tim Josling <tej@melbpc.org.au>
2602
2603 First steps to making treelang documentation compliant, based on
2604 instructions in sourcebuild.texi. Also add to gcc.c list of
2605 default languages.
2606
2607 * doc/contrib.texi: Add self as contributor of treelang.
2608
2609 * doc/frontends.texi: Add mention of treelang.
2610
2611 * doc/invoke.texi (Overall Options): Add mention of treelang.
2612
2613 * doc/standards.texi: Add mention of treelang.
2614
2615 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
2616
2617 * config/cris/cris.c: Include ggc.h
2618
2619 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
2620
2621 * cpphash.h (_cpp_push_text_context): Update.
2622 (_cpp_arguments_ok): New.
2623 * cppmacro.c (_cpp_arguments_ok): New, split out from...
2624 (collect_args): ...here.
2625 (_cpp_push_text_context): Change inputs.
2626 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
2627 replace_args_and_push): New.
2628 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
2629 Don't use IS macros directly.
2630 (scan_out_logical_line): Handle function-like macro argument
2631 collection.
2632 (push_replacement_text): Update.
2633 (replacement_length): Remove.
2634 (_cpp_create_trad_definition): Don't skip whitespace before
2635 checking for '('.
2636
2637 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2638
2639 * config/avr/avr.c (avr_mcu_types): Update for new devices.
2640 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
2641 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
2642 * config/avr/avr.md ("type" and "length" attributes): New type
2643 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
2644 output a single "call" or "rcall" insn depending on device size.
2645 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
2646
2647 2002-06-09 David Edelsohn <edelsohn@gnu.org>
2648
2649 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
2650 synonym for 630. Add power4. Remove embedded processors. Use -m604
2651 assembler option.
2652 (CPP_CPU_SPEC): Add power3 and power4.
2653 (PROCESSOR_DEFAULT): Change to 604e.
2654 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
2655 (CPP_CPU_SPEC): Similar additions.
2656 (enum process_type): Add POWER4.
2657 (RTX_COSTS): Add POWER4.
2658 (CPP_CPU_SPEC): Similar additions.
2659 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
2660 (PROCESSOR_DEFAULT64): Define.
2661 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
2662 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
2663 branch adjustment.
2664 (rs6000_issue_rate): Add Power4.
2665 * config/rs6000/rs6000.md (cpu attr): Add power4.
2666 (iu compare): Remove 604, 604e, 620, 630.
2667 Add basic Power4 scheduling information.
2668 (mfcr/mtcrf): Change type attribute to cr_logical.
2669
2670 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2671
2672 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
2673 ATTRIBUTE_PRINTF_2.
2674 * gengtype-lex.l: Fix format specifier warning.
2675
2676 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
2677 not isspace.
2678 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
2679 lieu of isspace/IDchar.
2680 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
2681 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
2682 ISSPACE.
2683
2684 2002-06-08 Zack Weinberg <zack@codesourcery.com>
2685
2686 * Makefile.in (LIBCPP_OBJS): Take out version.o.
2687 * cpphash.h (cpp_reader): Take out print_version member.
2688 * cppinit.c: (cpp_handle_option): Don't do anything with
2689 -version. Just set help_only for --version, --target-help.
2690 Just set verbose option for -v.
2691 (cpp_post_options): Don't print a version string.
2692
2693 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2694
2695 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
2696 (avr_section_type_flags): New, handle .noinit* sections.
2697
2698 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2699
2700 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
2701 and include netbsd_entry_point.
2702 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2703 (NETBSD_ENTRY_POINT): Define.
2704
2705 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2706
2707 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
2708 if not already defined.
2709 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
2710
2711 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2712
2713 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
2714 in a noreturn function.
2715 (avr_output_function_prologue, avr_output_function_epilogue):
2716 Correct function size calculation. Do not crash on empty function.
2717 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
2718
2719 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2720
2721 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2722 netbsd_link_spec and netbsd_entry_point.
2723 (LINK_SPEC): Use %(netbsd_link_spec).
2724 (NETBSD_ENTRY_POINT): Define.
2725
2726 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2727
2728 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
2729 linker emulation.
2730 (LINK_ARCH64_SPEC): Likewise.
2731 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
2732 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
2733
2734 2002-06-08 Marc Espie <espie@openbsd.org>
2735
2736 * lists.c (free_list): Fix typo in comment.
2737
2738 2002-06-08 Andreas Jaeger <aj@suse.de>
2739
2740 * lcm.c (optimize_mode_switching): Add unused attribute for
2741 variable.
2742
2743 * sched-deps.c (sched_analyze): Remove unused variable.
2744
2745 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
2746
2747 * diagnostic.def: Don't capitalize diagnostict descriptors.
2748
2749 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2750
2751 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
2752 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2753 (NETBSD_ENTRY_POINT): Define.
2754
2755 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2756
2757 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
2758 NETBSD_LINK_SPEC_ELF.
2759 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
2760 (NETBSD_ENTRY_POINT): Define.
2761 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
2762 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
2763 netbsd_entry_point.
2764 (NETBSD_ENTRY_POINT): Define.
2765
2766 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2767
2768 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2769 netbsd_link_spec and netbsd_entry_point.
2770 (LINK_SPEC): Use %(netbsd_link_spec).
2771 (NETBSD_ENTRY_POINT): Define.
2772
2773 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2774
2775 * config/netbsd-elf.h (LINK_SPEC): Rename to...
2776 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
2777 to specify program entry point.
2778
2779 2002-06-07 Jeff Law <law@redhat.com
2780
2781 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
2782 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
2783 than creating a new register.
2784 (distribute_notes): Likewise.
2785 * df.c (df_reg_use_gen): Likewise.
2786 (df_reg_clobber_gen): Likewise.
2787 (df_ref_record): Likewise.
2788 * expr.c (use_regs): Likewise.
2789 * flow.c (propagate_one_insn): Likewise.
2790 (mark_set_1): Likewise.
2791 (mark_used_reg): Likewise.
2792 * reload.c (emit_reload_insns): Likewise.
2793
2794 2002-06-07 Roger Sayle <roger@eyesopen.com>
2795
2796 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
2797 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
2798 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
2799 comparison code comp can be reversed.
2800
2801 2002-06-07 Roger Sayle <roger@eyesopen.com>
2802
2803 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
2804 constants last in comparisons. Optimize (x+1.0)>0.0 into the
2805 equivalent x > -1.0 when -ffast-math.
2806
2807 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2808
2809 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
2810 * config/mips/t-netbsd: New file.
2811
2812 2002-06-07 Zack Weinberg <zack@codesourcery.com>
2813
2814 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
2815 options their own entries.
2816 (parse_option): Clarify comment.
2817 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
2818 special case. Replace if/strcmp chain for -W options with
2819 use of new OPT_* entries for them.
2820 (cpp_handle_options): Update to match.
2821 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
2822 * c-decl.c: Update call to cpp_handle_option.
2823
2824 2002-06-07 Akim Demaille <akim@epita.fr>
2825
2826 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2827 Whitespace changes.
2828
2829 2002-06-07 Jeffrey Law <law@redhat.com>
2830
2831 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
2832 on empty lists.
2833
2834 2002-06-07 H.J. Lu (hjl@gnu.org)
2835
2836 * configure.in: Add --enable-__cxa_atexit.
2837 * configure: Regenerated.
2838 * config.in: Likewise.
2839
2840 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
2841 not defined.
2842
2843 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
2844
2845 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
2846
2847 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2848
2849 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
2850
2851 2002-06-07 Jason Merrill <jason@redhat.com>
2852
2853 * cppexp.c (num_equality_op): Use a temporary variable to work
2854 around gcc 3.0.4 bug.
2855
2856 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
2857
2858 * diagnostic.c (diagnostic_build_prefix): Tidy.
2859
2860 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
2861
2862 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
2863 scan_parameters, save_replacement_text, replacement_length): New.
2864 (scan_out_logical_line): Take a macro and save parameters if
2865 non-NULL.
2866 (_cpp_logical_line_trad): Update.
2867 (_cpp_create_trad_definition): Update to handle function-like
2868 macros.
2869 * cpplex.c (new_buff): Update.
2870 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
2871 * cpphash.h: ...here.
2872 (CPP_ALIGN2, _cpp_save_parameter): New.
2873 * cppmacro.c (save_parameter): Rename, export.
2874 (parse_params): Update.
2875
2876 2002-06-07 Andreas Jaeger <aj@suse.de>
2877
2878 * config/mmix/mmix.c: Remove extra broken prototype for
2879 mmix_init_machine_status.
2880
2881 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
2882
2883 * gengtype.c: Add comments before all the routines.
2884
2885 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2886
2887 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
2888 from and add t-sh64 to ${tmake_file}.
2889 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
2890 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
2891 * config/sh/t-netbsd-sh5-32: Remove.
2892 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
2893 MULTILIB_ENDIAN.
2894 (MULTILIB_DIRNAMES): Define.
2895
2896 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
2897
2898 * i386.md (and promoting splitters): Disable QI to SImode promoting
2899 when doing so changes immediate to be 32bit.
2900
2901 * rtl.h (emit_*_scope): Declare.
2902 * emit-rtl.c (emit_*_scope): New global functions.
2903 (try_split): Copy scope.
2904 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2905 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2906 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2907 noce_process_if_block, find_cond_trap): Copy scopes.
2908 * recog.c (peephole2_optimize): likewise.
2909
2910 2002-06-06 Jeffrey Law <law@redhat.com>
2911
2912 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
2913
2914 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
2915
2916 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
2917
2918 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2919
2920 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
2921 ($(docdir)/gccinstall.info): New target.
2922 (info): Depend on it.
2923 (gccinstall.dvi): New target.
2924 (dvi): Depend on it.
2925 * doc/.cvsignore: Ignore new info files.
2926 * doc/install.texi (@setfilename): Reflect new info filename.
2927
2928 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
2929
2930 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
2931 on an UNSPEC.
2932
2933 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
2934
2935 PR objc/6834
2936 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
2937 c_common_get_alias_set.
2938 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
2939
2940 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2941
2942 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
2943 functions.
2944 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
2945 * avr/avr.c (avr_output_function_epilogue): Use above to determine
2946 function size.
2947 * pa/pa.c (pa_output_function_prologue): Likewise.
2948
2949 2002-06-05 David S. Miller <davem@redhat.com>
2950
2951 * integrate.c (subst_constants): Handle 'B' RTL format.
2952
2953 2002-06-05 Eric Christopher <echristo@redhat.com>
2954
2955 * varasm.c (make_decl_rtl): Fix comment for removed
2956 halfpic.c.
2957
2958 2002-06-05 Eric Christopher <echristo@redhat.com>
2959
2960 * Makefile.in: Remove missed halfpic bits.
2961
2962 2002-06-05 Eric Christopher <echristo@redhat.com>
2963
2964 * toplev.c: Remove half-pic.
2965 * config/mips/mips.c: Ditto.
2966 * config/mips/mips.h: Ditto. Remove unused defines.
2967 * config/mips/openbsd.h: Update comment to reflect above.
2968 * config/mips/mips.md: Remove half-pic constraints.
2969 * halfpic.h: Delete.
2970 * halfpic.c: Ditto.
2971
2972 2002-06-05 Jeffrey Law <law@redhat.com>
2973
2974 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
2975 rejects (mem (lo_sum (reg) (unspec))), but will allow
2976 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
2977
2978 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
2979
2980 * cpphash.h (_cpp_create_definition): Update prototype.
2981 (_cpp_push_text_context, _cpp_create_trad_definition): New.
2982 ( cpp_lex_identifier_trad): New.
2983 (_cpp_set_trad_context): New.
2984 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
2985 * cpplib.c (SEEN_EOL): Update.
2986 (lex_macro_node): Update for -traditional.
2987 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
2988 * cppmacro.c (_cpp_create_definition): Split into
2989 create_iso_definition() and _cpp_create_trad_definition().
2990 (warn_of_redefinition): Update prototype; handle traditional
2991 macros.
2992 (_cpp_push_text_context): New.
2993 * cpptrad.c (skip_whitespace, push_replacement_text): New.
2994 (lex_identifier): Call ht_lookup with correct start.
2995 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
2996 _cpp_set_trad_context): New.
2997 (scan_out_logical_line): Update to handle changing contexts.
2998
2999 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
3000
3001 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
3002 (shl*-*-elf*): Add.
3003 * config/sh/t-be (MULTILIB_ENDIAN): Set.
3004 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
3005 * t-sh (MULTILIB_ENDIAN): Set.
3006 (MULTILIB_OPTIONS): Use it.
3007 * t-sh64 (MULTILIB_OPTIONS): Likewise.
3008 (MULTILIB_DIRNAMES): Likewise.
3009
3010 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
3011
3012 * toplev.h (report_error_function): Remove.
3013
3014 * diagnostic.h (location_t): New datatype.
3015 (text_info): Likewise.
3016 (diagnostic_info): Likewise.
3017 (output_prefix): New macro.
3018 (diagnostic_last_function_changed): Likewise.
3019 (diagnostic_set_last_function): Likewise.
3020 (diagnostic_last_module_changed): Likewise.
3021 (diagnostic_set_last_module): Likewise.
3022 (report_diagnostic): Now macro.
3023 (diagnostic_set_info): Declare.
3024
3025 * diagnostic.c (report_problematic_module): Rename to
3026 diagnostic_repor_current_module.
3027 (set_diagnostic_context): Remove.
3028 (count_error): Rename to diagnostic_error_count.
3029 (error_function_changed): Remove.
3030 (record_last_error_function): Likewise.
3031 (error_module_changed): Likewise.
3032 (record_last_error_module): Likewise.
3033 (context_as_prefix): Rename to diagnostic_build_prefix.
3034 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
3035 (diagnostic_set_info): New function.
3036
3037 * objc/objc-act.c: #include diagnostic.h
3038 (error_with_ivar): Adjust call to count_error.
3039 (warn_with_method): Likewise.
3040 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
3041
3042 2002-06-05 Bob Wilson <bob.wilson@acm.org>
3043
3044 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
3045 lang_hooks.types.make_type instead of make_node; set up
3046 __va_list_tag type decl.
3047 (xtensa_builtin_saveregs): Remove broken use of
3048 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
3049 for saved registers; add varargs alias set.
3050
3051 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
3052
3053 config:
3054 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
3055 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
3056 CPP_PREDEFINES and part of CPP_SPEC.
3057 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
3058 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
3059
3060 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
3061
3062 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
3063
3064 2002-06-05 Alan Modra <amodra@bigpond.net.au>
3065
3066 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
3067
3068 2002-06-04 Zack Weinberg <zack@codesourcery.com>
3069
3070 * gengtype-yacc.y: Make sure all rules end with a semicolon.
3071
3072 2002-06-04 Bob Wilson <bob.wilson@acm.org>
3073
3074 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
3075 typo in function prototype and include "ggc.h" header.
3076
3077 2002-06-04 Richard Henderson <rth@redhat.com>
3078
3079 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
3080 (print_operand) ['U']: Likewise.
3081 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
3082 (alpha_expand_unaligned_store_words): Likewise.
3083 (alpha_expand_builtin_vector_binop): Fix typo.
3084 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
3085 umulh, and cix insns.
3086 (one_arg_builtins): Add cix builtins.
3087 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
3088 (alpha_expand_builtin): Fix typo in arity.
3089 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
3090 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
3091 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
3092 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
3093 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
3094 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
3095 builtin_ctlz, builtin_ctpop): New.
3096 * doc/extend.texi (Alpha Built-in Functions): Update.
3097
3098 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
3099
3100 * gengtype.c (write_gc_root): Don't unnecessarily prevent
3101 global variable-length arrays being roots.
3102
3103 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
3104 * configure.in (config_gtfiles): New variable.
3105 (all_gtfiles): Initialise from config_gtfiles.
3106 * configure: Regenerate.
3107
3108 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
3109
3110 config/i386:
3111 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
3112 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
3113 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
3114 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
3115 win32.h (CPP_SPEC): Remove cpp_cpu.
3116 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
3117 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
3118
3119 2002-06-04 Janis Johnson <janis187@us.ibm.com>
3120
3121 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
3122
3123 2002-06-04 Jeff Law <law@redhat.com.
3124 David Edelsohn <edelsohn@gnu.org>
3125 Michael Matz <matz@kde.org>
3126
3127 * sched-int.h (struct deps): New field libcall_block_tail_insn.
3128 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
3129 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
3130 is set, then mark the current insn as being part of a libcall
3131 scheduling group.
3132 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
3133
3134 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
3135 insns against the issue rate.
3136
3137 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
3138
3139 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
3140 * final.c (final_scan_insn): Likewise.
3141 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
3142 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
3143 * haifa-sched.c (unlink_other_notes): Likeewise.
3144 (reemit_notes): Likewise.
3145 * print-rtl.c (print_rtx): Likewise.
3146 * sched-deps (sched-analyze): Likewise.
3147 * rtl.c (note_insn_name): Likewise.
3148 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
3149 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
3150 (RANGE_*): Kill.
3151
3152 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3153
3154 * varasm.c (mark_constants): Handle RTX format 'B'.
3155
3156 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
3157
3158 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
3159 (struct cpp_context): Add traditional fields.
3160 * cppmacro.c (paste_all_tokens, push_ptoken_context,
3161 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
3162 * cpptrad.c (skip_comment, lex_identifier,
3163 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
3164
3165 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
3166
3167 * gbl-ctors.h: Fix formatting.
3168 * gcc.c: Likewise.
3169 * gccspec.c: Likewise.
3170 * gcov.c: Likewise.
3171 * gcov-io.h: Likewise.
3172 * gcse.c: Likewise.
3173 * ggc-common.c: Likewise.
3174 * ggc.h: Likewise.
3175 * ggc-page.c: Likewise.
3176 * ggc-simple.c: Likewise.
3177 * global.c: Likewise.
3178 * graph.h: Likewise.
3179 * gthr-dce.h: Likewise.
3180 * gthr.h: Likewise.
3181 * gthr-posix.h: Likewise.
3182 * gthr-rtems.h: Likewise.
3183 * gthr-solaris.h: Likewise.
3184 * gthr-win32.h: Likewise.
3185
3186 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
3187
3188 Merge from pch-branch:
3189
3190 * gengtype.h (UNION_OR_STRUCT_P): New macro.
3191 * gengtype.c (write_gc_structure_fields): Use it.
3192 (write_gc_root): Use it here too.
3193
3194 * gengtype.c (write_gc_structure_fields): Assume that lengths
3195 of typenames fit into an 'int'; don't pass a size_t to "%d" in
3196 printf.
3197 (write_gc_marker_routine_for_structure): Likewise.
3198 (write_gc_types): Likewise.
3199 (write_gc_root): Likewise.
3200
3201 * varray.h (VARRAY_CLEAR): New.
3202 (varray_clear): Prototype.
3203 * varray.c (varray_clear): New.
3204 * cselib.c (reg_values_old): New.
3205 (used_regs_old): New.
3206 (cselib_init): Use cached varrays if available to avoid
3207 generating large amounts of garbage.
3208 (cselib_finish): Don't throw away old varrays.
3209
3210 * final.c (insn_addresses_): Move out of ifdef.
3211
3212 * varray.c (uses_ggc): Make more varray kinds GCable.
3213 * varray.h (union varray_data_tag): Let gengtype see
3214 fields 'generic' and 'te'.
3215 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
3216 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
3217 (reg_to_stack): Don't call VARRAY_FREE.
3218 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
3219 (insn_addresses_): Use gengtype to mark.
3220 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
3221 pointers; handle generic pointers in unused union fields.
3222 (get_output_file_with_visibility): Include cselib.h,
3223 insn-addr.h in gtype-desc.c.
3224 * function.c (prologue): Use gengtype to mark.
3225 (epilogue): Likewise.
3226 (sibcall_epilogue): Likewise.
3227 * dependence.c: Include gt-dependence.h, ggc.h.
3228 (struct def_use): Use gengtype to mark.
3229 (struct loop): Likewise.
3230 (struct induction): Likewise.
3231 (struct dependence): Likewise.
3232 (def_use_chain): Likewise.
3233 (dep_chain): Likewise.
3234 (loop_chain): Likewise.
3235 (induction_chain): Likewise.
3236 (init_dependence_analysis): Don't free anything, just clear pointers.
3237 (build_def_use): Use GGC to allocate def_use.
3238 (add_loop): Use GGC to allocate loop.
3239 (find_induction_variable): Use GGC to allocate induction.
3240 (check_node_dependence): Use GGC to allocate induction, dependence.
3241 (dump_node_dependence): Don't free varrays.
3242 (end_dependence_analysis): Likewise.
3243 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
3244 (struct elt_loc_list): Likewise.
3245 (struct elt_list): Likewise.
3246 * cselib.c: Don't include obstack.h.
3247 (hash_table): Use gengtype to mark.
3248 (reg_values): Use gengtype to mark.
3249 (used_regs): Use gengtype to mark.
3250 (cselib_obstack): Delete.
3251 (cselib_startobj): Delete.
3252 (empty_vals): Mark as deletable.
3253 (empty_elt_lists): Mark as deletable.
3254 (empty_elt_loc_lists): Mark as deletable.
3255 (new_elt_list): Use GGC to allocate struct elt_list.
3256 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
3257 (clear_table): Don't delete obstack; don't unnecessarily clear
3258 deletable variables.
3259 (new_cselib_val): Use GGC to allocate struct cselib_val.
3260 (cselib_init): Don't set up obstacks. Use GGC to allocate
3261 hash table.
3262 (cselib_finish): Just clear variables, don't free anything.
3263 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
3264 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
3265 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
3266 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
3267 (gt-reg-stack.h): New rule.
3268 (gt-dependence.h): New rule.
3269 (gtype-desc.o): Add cselib.h, insn-addr.h.
3270
3271 * varray.c: Use only necessary headers.
3272 (element_size): New.
3273 (uses_ggc): New.
3274 (varray_init): Take type, not size. Use GGC if appropriate.
3275 (varray_grow): Update for change to struct varray_head_tag.
3276 Use GGC if appropriate.
3277 * varray.h (struct const_equiv_data): Use gengtype.
3278 (enum varray_data_enum): New.
3279 (union varray_data_tag): Use gengtype.
3280 (struct varray_head_tag): Use gengtype. Replace size field with
3281 enum varray_data_enum.
3282 (varray_init): Update prototype.
3283 (VARRAY_SCHED_INIT): Delete.
3284 (VARRAY_*_INIT): Update for change to varray_init.
3285 (VARRAY_SCHED): Delete.
3286 (VARRAY_PUSH_SCHED): Delete.
3287 (VARRAY_TOP_SCHED): Delete.
3288 * tree.h: Update for change to length specifier.
3289 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
3290 (clone_body): Likewise.
3291 * ssa.h (ssa_definition): Use gengtype to mark.
3292 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
3293 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
3294 * rtl.h (struct rtvec_def): Update for change to length specifier.
3295 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
3296 (struct initial_value_struct): Update for change to length specifier.
3297 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
3298 (ggc_add_tree_varray_root): Delete prototype.
3299 (ggc_mark_rtx_varray): Delete prototype.
3300 (ggc_mark_tree_varray): Delete prototype.
3301 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
3302 (ggc_add_tree_varray_root): Delete.
3303 (ggc_mark_rtx_varray): Delete.
3304 (ggc_mark_tree_varray): Delete.
3305 (ggc_mark_rtx_varray_ptr): Delete.
3306 (ggc_mark_tree_varray_ptr): Delete.
3307 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
3308 (create_varray): Delete prototype.
3309 * gengtype.c (varrays): Delete.
3310 (create_varray): Delete.
3311 (adjust_field_type): Detect array of string pointers.
3312 (process_gc_options): Remove code to handle varray_type option.
3313 (set_gc_used_type): Remove TYPE_VARRAY case.
3314 (output_escaped_param): New.
3315 (write_gc_structure_fields): Use output_escaped_param on all
3316 parameters. Handle 'skip' with 'use_param' option. Handle
3317 arrays of strings. Remove TYPE_VARRAY handling.
3318 (write_gc_roots): Use boolean to detect 'length' option.
3319 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
3320 (struct_fields): Call adjust_field_type on array fields.
3321 (type): Remove VARRAY_TYPE case.
3322 (type_option): Likewise.
3323 * gengtype-lex.l: Don't consider varray_type a keyword.
3324 * function.h: Update for change to length specifier.
3325 (free_eh_status): Delete prototype.
3326 * function.c (free_after_compilation): Don't call free_eh_status.
3327 (reorder_blocks): Don't use VARRAY_FREE.
3328 * except.c (struct eh_status): Update for change to length specifier.
3329 remove varray_type specifier.
3330 (free_eh_status): Delete.
3331 * dwarf2out.c: Include gt-dwarf2out.h.
3332 (used_rtx_varray): Use gengtype to mark, move
3333 outside ifdefs.
3334 (incomplete_types): Likewise.
3335 (decl_scope_table): Likewise.
3336 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
3337 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
3338 * c-tree.h (struct lang_type): Update for change to length specifier.
3339 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
3340 * c-objc-common.c: Include gt-c-objc-common.h.
3341 (deferred_fns): Mark for gengtype.
3342 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
3343 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
3344 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
3345 (gtype-desc.o): Update dependencies.
3346 (dwarf2out.o): Add gt-dwarf2out.h.
3347 (varray.o): Update dependencies.
3348 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
3349 (gt-c-objc-common.h): New rule.
3350 (gt-dwarf2out.h): New rule.
3351 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
3352
3353 * doc/gty.texi (GTY Options): Correct spelling.
3354 (GGC Roots): Likewise.
3355 * Makefile.in (TEXI_CPP_FILES): New.
3356 (TEXI_GCC_FILES): New.
3357 (TEXI_GCCINT_FILES): New.
3358 (TEXI_CPPINT_FILES): New.
3359 ($(docdir)/cpp.info): Use new macros.
3360 ($(docdir)/gcc.info): Likewise.
3361 ($(docdir)/gccint.info): Likewise.
3362 ($(docdir)/cppinternals.info): Likewise.
3363 (cpp.dvi): Likewise.
3364 (gcc.dvi): Likewise.
3365 (gccint.dvi): Likewise.
3366 (cppinternals.dvi): Likewise.
3367
3368 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
3369 * doc/gccint.texi (Top): Include gty.texi.
3370 * doc/gty.texi: New file.
3371
3372 * bitmap.c: Include ggc.h, gt-bitmap.h.
3373 (bitmap_ggc_free): New.
3374 (bitmap_elem_to_freelist): New.
3375 (bitmap_element_free): Use bitmap_elem_to_freelist.
3376 (bitmap_element_allocate): Allow use of GGC.
3377 (bitmap_clear): Use bitmap_elem_to_freelist.
3378 (bitmap_copy): Update for change to bitmap_element_allocate.
3379 (bitmap_set_bit): Likewise.
3380 (bitmap_operation): Update for changes elsewhere.
3381 (bitmap_initialize): Allow to create bitmaps that will use GGC.
3382 * bitmap.h (struct bitmap_element_def): Use gengtype.
3383 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
3384 (bitmap_initialize): Add extra parameter.
3385 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
3386 (BITMAP_ALLOCA): Delete.
3387 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
3388 (BITMAP_GGC_ALLOC): New.
3389 * Makefile.in (gtype-desc.o): Add bitmap.h.
3390 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
3391 (GTFILES): Add bitmap.c.
3392 (gt-bitmap.h): New rule.
3393 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
3394 * basic-block.h: Update for changes to bitmap_initialize.
3395 * except.c (exception_handler_label_map): Move into...
3396 (struct eh_status): Here.
3397 (struct eh_region): Make 'aka' GCable.
3398 (free_eh_status): Don't need to specially handle
3399 exception_handler_label_map.
3400 (add_ehl_entry): Update for changes to exception_handler_label_map.
3401 (find_exception_handler_labels): Likewise.
3402 (remove_exception_handler_label): Likewise.
3403 (maybe_remove_eh_handler): Likewise.
3404 (for_each_eh_label): Likewise.
3405 (remove_eh_handler): Allocate 'aka' using GGC.
3406 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
3407 to list of includes.
3408
3409 * gengtype.c (write_gc_marker_routine_for_structure): Name
3410 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
3411 (write_gc_types): Arrange for the tests with NULL to be inlined.
3412 (write_gc_roots): Update uses of procedure pointers.
3413 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
3414
3415 * Makefile.in (explow.o): Add dependency on gt-explow.h.
3416 (sdbout.o): Add dependency on gt-sdbout.h.
3417
3418 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
3419 (mem_attrs_htab): Likewise.
3420 (init_emit_once): Don't call ggc_add_deletable_htab.
3421 * fold-const.c (size_htab): Use gengtype to clear unused entries.
3422 (size_int_type_wide): Don't call ggc_add_deletable_htab.
3423 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
3424 parameters, use them, change callers.
3425 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
3426 (write_gc_roots): Handle 'if_marked' option.
3427 (main): Don't need to call set_gc_used_type any more.
3428 * ggc.h (ggc_htab_marked_p): Delete.
3429 (ggc_htab_mark): Delete.
3430 (struct ggc_cache_tab): New.
3431 (gt_ggc_cache_rtab): New declaration.
3432 * ggc-common.c (struct d_htab_root): Delete.
3433 (d_htab_roots): Delete.
3434 (ggc_add_deletable_htab): Delete.
3435 (ggc_htab_delete): Handle new htab-deleting mechanism.
3436 (ggc_mark_roots): Use new htab-deleting mechanism.
3437 * tree.c (type_hash_table): Use gengtype to clear unused entries.
3438 Make static.
3439 (init_obstacks): Don't call ggc_add_deletable_htab.
3440
3441 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
3442 (struct hashed_entry): Likewise.
3443 (nst_method_hash_list): Likewise.
3444 (cls_method_hash_list): Likewise.
3445 (HASH_ALLOC_LIST_SIZE): Delete.
3446 (ATTR_ALLOC_LIST_SIZE): Delete.
3447 * objc/objc-act.c (hash_init): Use ggc to allocate
3448 nst_method_hash_list, cls_method_hash_list.
3449 (hash_enter): Use ggc to allocate; allocate one entry at a time.
3450 (hash_add_attr): Likewise.
3451 (ggc_mark_hash_table): Delete.
3452 (objc_act_parse_init): Delete.
3453 (objc_init): Delete reference to objc_act_parse_init.
3454 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
3455 obstack.h. Replace references to 'struct hash_table' with htab_t.
3456 (struct symbol_hash_entry): Replace hash header with key field.
3457 (struct file_hash_entry): Replace hash header with key field.
3458 (struct demangled_hash_entry): Replace hash header with key field.
3459 (hash_string_eq): New.
3460 (hash_string_hash): New.
3461 (symbol_hash_newfunc): Delete.
3462 (symbol_hash_lookup): Modify to use htab_t.
3463 (file_hash_newfunc): Delete.
3464 (file_hash_lookup): Modify to use htab_t.
3465 (demangled_hash_newfunc): Delete.
3466 (demangled_hash_lookup): Modify to use htab_t.
3467 (tlink_init): Modify to use htab_t.
3468 * hash.h: Delete.
3469 * hash.c: Delete.
3470 * ggc.h: Delete forward structure declarations.
3471 Delete prototypes for deleted functions.
3472 * ggc-common.c: Don't include hash.h.
3473 (ggc_add_tree_hash_table_root): Delete.
3474 (ggc_mark_tree_hash_table_entry): Delete.
3475 (ggc_mark_tree_hash_table): Delete.
3476 (ggc_mark_tree_hash_table_ptr): Delete.
3477 * gengtype.c (write_gc_structure_fields): Allow param_is option.
3478 (write_gc_marker_routine_for_structure): Use visibility of
3479 the parameter if there is one.
3480 * function.c: Replace hash.h with hashtab.h. Replace references
3481 to 'struct hash_table *' with htab_t.
3482 (struct insns_for_mem_entry): Include a plain key.
3483 (fixup_var_refs_insns_with_hash): Update to use htab_t.
3484 (insns_for_mem_newfunc): Delete.
3485 (insns_for_mem_hash): Update to use htab_t.
3486 (insns_for_mem_comp): Likewise.
3487 (insns_for_mem_walk): Likewise.
3488 * c-lang.c: Include ggc.h.
3489 * Makefile.in (OBJS): Remove hash.o.
3490 (c-lang.o): Add GGC_H.
3491 (COLLECT2_OBJS): Remove hash.o.
3492 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
3493 (ggc-common.o): Remove hash.h.
3494 (function.o): Remove hash.h, add HASHTAB_H.
3495 (genautomata.o): Remove hash.h, add HASHTAB_H.
3496
3497 * varasm.c (mark_const_str_htab_1): Delete.
3498 (mark_const_str_htab): Delete.
3499 (const_str_htab_del): Delete.
3500 (const_str_htab): Use gengtype to mark.
3501 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
3502 allocate them.
3503 * tree.c (mark_tree_hashtable_entry): Delete.
3504 (mark_tree_hashtable): Delete.
3505 * tree.h (mark_tree_hashtable): Delete prototype.
3506 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
3507 (ggc_mark): Likewise.
3508 (ggc_calloc): New.
3509 (htab_create_ggc): New.
3510 * ggc-common.c (ggc_calloc): New.
3511 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
3512 (struct type): Add param_struct structure.
3513 * gengtype.c (param_structs): New.
3514 (adjust_field_type): Handle param_is option.
3515 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
3516 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
3517 (write_gc_structure_fields): Add new PARAM parameter. Update
3518 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
3519 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
3520 Use it to generate function name. Update callers.
3521 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
3522 Process them.
3523 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
3524 option.
3525 (main): Define PTR as pointer-to-scalar. Don't specially
3526 mark deferred_string or ehl_map_entry.
3527 * gengtype-yacc.y (PARAM_IS): Add new token.
3528 (externstatic): Use adjust_field_type.
3529 (type_option): Add PARAM_IS.
3530 * gengtype-lex.l: Add rule for typedef of function pointers.
3531 Add rule for PARAM_IS.
3532 (IWORD): Add size_t.
3533 * except.c (exception_handler_label_map): Use gengtype to mark.
3534 (type_to_runtime_map): Likewise.
3535 (mark_ehl_map_entry): Delete.
3536 (mark_ehl_map): Delete.
3537 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
3538 (t2r_mark_1): Delete.
3539 (t2r_mark): Delete.
3540 * Makefile.in (gtype-desc.o): Correct dependencies.
3541 (GTFILES): Add hashtab.h.
3542 (genautomata.o): Actually uses hashtab.h.
3543
3544 * Makefile.in (stringpool.o): Add $(GGC_H).
3545 (dwarf2asm.o): Likewise.
3546 (GTFILES): Add hashtable.h.
3547 * c-common.h (struct c_common_identifier): Use gengtype.
3548 * c-decl.h (c_mark_tree): Delete.
3549 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3550 * c-tree.h (struct lang_identifier): Use gengtype.
3551 (union lang_tree_node): New.
3552 (c_mark_tree): Delete prototype.
3553 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
3554 dwarf2_debug_hooks.
3555 * gengtype-lex.l (IWORD): Allow 'bool'.
3556 (ptr_alias): Match.
3557 * gengtype-yacc.y (ALIAS): New token.
3558 (type_option): New rule.
3559 (option): Use type_option.
3560 * gengtype.c (process_gc_options): New.
3561 (set_gc_used_type): Use it.
3562 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
3563 Add new variable 't' to hold the type of the field being processed.
3564 Add more error checking. Use UNION_P when looking at 'desc' option.
3565 Handle language-specific structures containing other
3566 language-specific structures.
3567 (write_gc_types): Handle 'ptr_alias' option.
3568 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
3569 * ggc-common.c (ggc_pending_trees): Delete.
3570 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
3571 (ggc_mark_trees): Delete.
3572 (gt_ggc_m_tree_node): Delete.
3573 * ggc.h (ggc_pending_trees): Delete.
3574 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
3575 * hashtable.h (ht_identifier): Use gengtype.
3576 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
3577 * langhooks.h (struct lang_hooks): Delete mark_tree.
3578 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
3579 anyway.
3580 * system.h: Poison LANG_HOOKS_MARK_TREE.
3581 * tree.c (tree_node_structure): New.
3582 * tree.h (struct tree_common): Use gengtype.
3583 (struct tree_int_cst): Likewise.
3584 (struct tree_real_cst): Likewise.
3585 (struct tree_string): Likewise.
3586 (struct tree_complex): Likewise.
3587 (struct tree_vector): Likewise.
3588 (struct tree_identifier): Likewise.
3589 (struct tree_list): Likewise.
3590 (struct tree_vec): Likewise.
3591 (struct tree_exp): Likewise.
3592 (struct tree_block): Likewise.
3593 (struct tree_type): Likewise.
3594 (struct tree_decl): Likewise.
3595 (enum tree_structure_enum): New.
3596 (union tree_node): Use gengtype, with an alias.
3597 (tree_node_structure): Prototype.
3598 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3599
3600 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
3601 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
3602 to LANG_HOOKS_FUNCTION_FINAL.
3603 * Makefile.in (GTFILES): Add bitmap.h.
3604 * except.c (struct eh_region): Mark field 'aka' to be skipped.
3605
3606 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
3607 (alpha_init_machine_status): Give proper type.
3608 * Makefile.in (c-lang.o): Depend on gtype-c.h.
3609 (optabs.o): Depend on gt-optabs.h.
3610 (GTFILES): Add optabs.o.
3611 (gt-optabs.h): Add rule.
3612 * optabs.c: Include gt-optabs.h.
3613
3614 * gengtype.c (set_gc_used_type): Correct some errors in last change.
3615 (write_gc_structure_fields): If a field which should be NULL is
3616 not, abort.
3617 * c-pragma.c: Move struct align_stack and variable alignment_stack
3618 out from the ifdef.
3619
3620 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
3621 * config/xtensa/xtensa.c: Include gt-cris.h.
3622 (struct machine_function): Use gengtype to mark.
3623 * config/mmix/mmix.h (struct machine_function): Use gengtype
3624 to mark.
3625 * config/cris/t-cris: Add dependencies for gt-cris.h.
3626 * config/cris/cris.c: Include gt-cris.h.
3627 (struct machine_function): Use gengtype to mark.
3628 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
3629 to mark.
3630 * doc/tm.texi (Per-Function Data): Delete references to
3631 mark_machine_status.
3632 * config/ia64/ia64.c (ia64_override_options): Don't set
3633 mark_machine_status.
3634 * config/i386/i386.c (override_options): Likewise.
3635 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
3636 * config/arm/arm.c (arm_init_expanders): Likewise.
3637 * config/alpha/alpha.c (override_options): Likewise.
3638 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
3639 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
3640 (write_gc_structure_fields): Don't handle 'really' option.
3641 Handle 'maybe_null' option.
3642 (write_gc_types): Handle 'maybe_null' option.
3643 * function.h (struct function): Don't use "really".
3644 (mark_machine_status): Delete declaration.
3645 (mark_lang_status): Delete declaration.
3646 (gt_ggc_mr_machine_function): Delete prototype.
3647 (gt_ggc_mr_language_function): Delete prototype.
3648 * function.c (mark_machine_status): Delete.
3649 (mark_lang_status): Delete.
3650 (gt_ggc_mr_machine_function): Delete.
3651 (gt_ggc_mr_language_function): Delete.
3652 * c-tree.h (mark_c_function_context): Delete prototype.
3653 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
3654 * c-decl.c (struct language_function): Rename from struct
3655 c_language_function. Update uses. Use gengtype to mark.
3656 (mark_c_function_context): Delete.
3657 * c-common.h (struct c_language_function): Rename from struct
3658 language_function.
3659 (mark_stmt_tree): Delete prototype.
3660 (c_mark_lang_decl): Delete prototype.
3661 (mark_c_language_function): Delete prototype.
3662 * c-common.c (mark_stmt_tree): Delete.
3663 (c_mark_lang_decl): Delete.
3664 (mark_c_language_function): Delete.
3665
3666 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
3667 (lang_bitmap): New typedef. Use where appropriate.
3668 (struct type): Add gc_used field, lang_struct field.
3669 (UNION_P): New macro.
3670 (new_structure): New prototype.
3671 (find_structure): Remove 'pos' parameter. Change all callers.
3672 * gengtype-lex.l: Update for changes to find_structure.
3673 * gengtype-yacc.y (typedef_struct): Use new_structure.
3674 (yacc_ids): Suppress warning.
3675 (type): Use new_structure.
3676 * gengtype.c (string_type): Update for changes to struct type.
3677 (find_structure): Just find a structure, don't worry about
3678 creating one.
3679 (new_structure): New.
3680 (note_yacc_type): Use new_structure.
3681 (set_gc_used_type): New.
3682 (set_gc_used): New.
3683 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
3684 (write_gc_types): Handle TYPE_LANG_STRUCT.
3685 (write_gc_marker_routine_for_structure): New.
3686 (main): Call set_gc_used. Add some calls to set_gc_used_type
3687 for places where GCC doesn't use gengtype properly yet.
3688 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
3689 (gt_ggc_m_tree_node): Likewise.
3690
3691 * varasm.c (copy_constant): Call expand_constant if we hit
3692 something we can't recognise.
3693
3694 * ggc-common.c (ggc_mark_rtvec_children): Delete.
3695 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
3696 (lang_mark_false_label_stack): Delete.
3697 * rtl.h (struct rtvec_def): Use gengtype to mark.
3698 * ggc.h (ggc_mark_rtvec): Delete.
3699 (gt_ggc_m_rtvec_def): Delete.
3700 (ggc_mark_nonnull_tree): Delete.
3701 (ggc_mark_rtvec_children): Delete prototype.
3702 (lang_mark_false_label_stack): Delete declaration.
3703
3704 * gengtype.h (note_yacc_type): Add prototype.
3705 * gengtype.c (note_yacc_type): New function.
3706 * gengtype-lex.l: Add lexer support for yacc files.
3707 * gengtype-yacc.y (start): Extract union from yacc files.
3708 (yacc_union): New rule.
3709 (yacc_typematch): New rule.
3710 (yacc_ids): New rule.
3711 (enum_items): Tweak for efficiency.
3712 (optionseq): Likewise.
3713
3714 * c-common.h (struct language_function): Use gengtype.
3715 (struct c_lang_decl): Likewise.
3716 * c-tree.h (struct lang_decl): Likewise.
3717 (struct lang_type): Likewise.
3718 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
3719 tree language substructures.
3720
3721 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
3722 ggc_mark_tree.
3723 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
3724
3725 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
3726
3727 * stmt.c (struct nesting): Add discriminator. Use gengtype to
3728 mark. Remove 'data.block.cleanup_ptr' field.
3729 (struct stmt_status): Use usual technique to mark struct nesting.
3730 (gt_ggc_mr_nesting_cond): Delete.
3731 (gt_ggc_mr_nesting_loop): Delete.
3732 (gt_ggc_mr_nesting_block): Delete.
3733 (gt_ggc_mr_nesting_case_stmt): Delete.
3734 (expand_start_cond): Set discriminator.
3735 (expand_start_loop): Likewise.
3736 (expand_start_null_loop): Likewise.
3737 (expand_start_bindings_and_block): Set discriminator. Don't set
3738 deleted fields.
3739 (expand_decl_cleanup): Replace 'cleanup_ptr' with
3740 &thisblock->data.block.cleanups.
3741 (expand_start_case): Set discriminator.
3742 (expand_start_case_dummy): Set discriminator.
3743
3744 * ggc-callbacks.c: Remove.
3745
3746 * gengtype.h (struct type): Add 'u.s.bitmap' field.
3747 (find_structure): Add 'pos' parameter.
3748 * gengtype-lex.l: Update callers to find_structure.
3749 * gengtype-yacc.y: Likewise.
3750 * gengtype.c (find_structure): Allow for structures to be defined
3751 in multiple language backends.
3752 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
3753 (counter): Rename to gc_counter.
3754 (write_gc_structure_fields): Fail when writing out fields for
3755 an incomplete structure. Ignore arrays of scalars. Handle
3756 'tree_vec' special.
3757 (write_gc_types): Reset counter for each procedure written.
3758
3759 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
3760 (free_case_nodes): Delete.
3761 (expand_end_case_type): Delete call to free_case_nodes.
3762
3763 * Makefile.in (cselib.o): Include gt-<filename>.h.
3764 (gcse.o): Likewise.
3765 (profile.o): Likewise.
3766 (alias.o): Likewise.
3767 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
3768 alphabetize backend files.
3769 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
3770 * alias.c: Use gengtype for roots.
3771 * c-common.h (struct stmt_tree_s): Use gengtype.
3772 * c-decl.c: Use gengtype for roots.
3773 * cselib.c: Use gengtype for roots.
3774 * expr.c: Use gengtype for roots.
3775 * fold-const.c: Use gengtype for roots.
3776 * gcse.c: Use gengtype for roots.
3777 * gengtype-lex.l: Handle typedefs of function types.
3778 Allow for empty array bounds.
3779 Allow processing to stop on initialisers.
3780 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
3781 (semiequal): New rule.
3782 * gengtype.c (create_file): Tidy output files.
3783 (get_output_file_with_visibility): Fix paren warning. Fix bug
3784 involving multiple input files mapping to one output file.
3785 (write_gc_structure_fields): Skip arrays of scalars.
3786 (write_gc_types): Tidy output files.
3787 (write_gc_root): New function.
3788 (write_gc_roots): Fix bugs, add support for roots that are
3789 structures.
3790 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
3791 (ggc_mark_tree_ptr): Delete.
3792 (ggc_add_rtx_root): Delete.
3793 (ggc_add_tree_root): Delete.
3794 (ggc_del_root): Delete.
3795 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
3796 allocate struct initial_value_struct.
3797 * profile.c: Use gengtype for roots.
3798 * sdbout.c: Use gengtype for roots.
3799 * varasm.c (mark_weak_decls): Delete unused prototype.
3800 (mark_const_hash_entry): Delete unused function.
3801 * config/darwin-protos.h: Use gengtype for roots.
3802 (machopic_add_gc_roots): Delete.
3803 * config/arm/arm.c: Use gengtype for roots.
3804 * config/arm/arm.h: Use gengtype for roots.
3805 * config/c4x/c4x-protos.h: Use gengtype for roots.
3806 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
3807 * config/d30v/d30v-protos.h: Use gengtype for roots.
3808 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
3809 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
3810 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
3811 * config/ia64/ia64-protos.h: Use gengtype for roots.
3812 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
3813 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
3814 * config/m68hc11/m68hc11.c (z_reg): Make global.
3815 (z_reg_qi): Make global.
3816 (m68hc11_add_gc_roots): Delete.
3817 * config/mcore/mcore-protos.h: Use gengtype for roots.
3818 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
3819 * config/mips/mips.c (mips_add_gc_roots): Delete.
3820 * config/mips/mips.h: Use gengtype for roots.
3821 * config/mmix/mmix.c (override_options): Use gengtype for roots.
3822 * config/mmix/mmix.h: Use gengtype for roots.
3823 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
3824 * config/mn10200/mn10200.h: Use gengtype for roots.
3825 * config/pa/pa.c: Use gengtype for roots, marking.
3826 (struct deferred_plabel): Use GGC, gengtype.
3827 (pa_add_gc_roots): Delete.
3828 (mark_deferred_plabels): Delete.
3829 * config/pj/pj-protos.h: Use gengtype for roots.
3830 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
3831 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
3832 machopic_add_gc_roots.
3833 * config/rs6000/rs6000.h: Use gengtype for roots.
3834 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
3835 (gt-darwin.h): Add rule.
3836 * config/sh/sh.c: Use gengtype for roots.
3837 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
3838 (gt-sh.h): Add rule.
3839 * config/sparc/sparc.c: Use gengtype for roots.
3840 (sparc_add_gc_roots): Delete.
3841 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
3842 (mark_ultrasparc_pipeline_state): Delete.
3843 * config/sparc/sparc.h: Use gengtype for roots.
3844
3845 * Makefile.in (c-parse.o): Update dependencies.
3846 (c-common.o): Likewise.
3847 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
3848 Add dependencies for the files they generate.
3849 * c-common.c: Replace ggc_add_* uses with GTY annotations.
3850 * c-common.h: Likewise.
3851 * c-decl.c: Likewise.
3852 (gt_ggc_mp_binding_level): Delete.
3853 * c-lang.c: Include gtype-c.h.
3854 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
3855 gt-c-parse.h.
3856 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
3857 (gt_ggc_mp_align_stack): Delete.
3858 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
3859 * function.c: Replace ggc_add_* uses with GTY annotations.
3860 (gt_ggc_mp_function): Delete.
3861 * function.h: Replace ggc_add_* uses with GTY annotations.
3862 * gengtype.c (lang_names): New.
3863 (NUM_BASE_FILES): New.
3864 (open_base_files): Create language base files.
3865 (startswith): New.
3866 (get_file_basename): New.
3867 (get_base_file_bitmap): New.
3868 (get_output_file_with_visibility): Rename from get_output_file.
3869 Add more mappings for various C/Objc filenames.
3870 (finish_root_table): New.
3871 (write_gc_roots): Handle dependencies and scoping properly.
3872 * gengtype.h: Add prototypes for new functions.
3873 * ggc-common.c (struct deletable_root): Delete.
3874 (deletables): Delete.
3875 (ggc_add_deletable_root): Delete.
3876 (ggc_mark_roots): No need to deal with deleted functionality.
3877 * ggc.h (ggc_add_deletable_root): Delete prototype.
3878 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
3879 (gtype-objc.h): Add rule to create.
3880 * objc/config-lang.in (gtfiles): New.
3881 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
3882 ggc_add_* with GTY markers. Include gtype-objc.h.
3883 (ggc_mark_imp_list): Delete.
3884 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
3885 * objc/objc-lang.c: Random Whitespace Change.
3886
3887 * except.h (exception_handler_labels): Delete.
3888 (get_exception_handler_labels): New.
3889 * except.c (exception_handler_labels): Delete.
3890 (struct eh_status): Add exception_handler_labels field.
3891 (doing_eh): Don't add exception_handler_labels as root.
3892 (free_eh_status): Don't need to free exception_handler_labels.
3893 (get_exception_handler_labels): New.
3894 (find_exception_handler_labels): Update for move of
3895 exception_handler_labels.
3896 (remove_exception_handler_label): Likewise.
3897 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
3898 * jump.c (rebuild_jump_labels): Likewise.
3899 * loop.c (find_and_verify_loops): Likewise.
3900 * sched-rgn.c (is_cfg_nonregular): Likewise.
3901
3902 * gengtype.c (write_gc_structure_fields): Handle variable-length
3903 TYPE_ARRAYs.
3904
3905 * varasm.c (struct weak_syms): Use GGC, gengtype.
3906 (mark_weak_decls): Delete.
3907 (weak_decls): Likewise.
3908 (add_weak): Likewise.
3909 (remove_from_pending_weak_list): Likewise.
3910 (init_varasm_once): Likewise.
3911
3912 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
3913 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
3914 stor-layout.c, regclass.c, and lists.c.
3915 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
3916 gt-regclass.h and gt-lists.h on s-gtype.
3917 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
3918 * except.c: Use gengtype for roots.
3919 * explow.c: Use gengtype for roots. Include gt-explow.h.
3920 * expr.h (init_stor_layout_once): Delete prototype.
3921 * function.c: Use gengtype for roots.
3922 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
3923 * gengtype-yacc.y (start): Can also be an externstatic.
3924 (externstatic): New production.
3925 (struct_fields): Correct array bounds inversion for 2-d arrays.
3926 * gengtype.c (variables): New variable.
3927 (note_variable): New function.
3928 (get_output_file): Include libfuncs.h into gtype-desc.c.
3929 (get_output_file_name): New function.
3930 (write_gc_structure_fields): Suppress warnings.
3931 (write_gc_types): Make static.
3932 (put_mangled_filename): New function.
3933 (write_gc_roots): New function.
3934 (main): Call write_gc_roots.
3935 * gengtype.h (note_variable): Prototype.
3936 (get_output_file_name): Prototype.
3937 (write_gc_types): Delete prototype.
3938 * ggc.h: Clean up unnecessary structure predefinitions.
3939 (struct ggc_root_tab): Define.
3940 (gt_ggc_m_rtx_def): Make function, not macro.
3941 (gt_ggc_m_tree_node): Likewise.
3942 * libfuncs.h: Use gengtype for roots.
3943 * lists.c: Use gengtype for roots. Include gt-lists.h.
3944 (init_EXPR_INSN_LIST_cache): Delete.
3945 * optabs.c: Use gengtype for roots.
3946 (gt_ggc_mp_optab): Delete.
3947 * optabs.h: Use gengtype for roots.
3948 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
3949 * rtl.h: Use gengtype for roots.
3950 (init_EXPR_INSN_LIST_cache): Delete prototype.
3951 * stor-layout.c: Use gengtype for roots.
3952 Include gt-stor-layout.h.
3953 (init_stor_layout_once): Delete.
3954 * toplev.c: Use gengtype for roots. Delete calls to deleted
3955 routines.
3956 * tree.c: Use gengtype for roots.
3957 * tree.h: Use gengtype for roots.
3958 * varasm.c: Use gengtype for roots.
3959
3960 * Makefile.in (GTFILES): Add @all_gtfiles@.
3961 * configure: Regenerate.
3962 * configure.in: Construct all_gtfiles from the gtfiles definitions
3963 in config-lang.in.
3964 * gengtype-yacc.y (type): Warn about duplicate structure names.
3965 * gengtype.c (get_output_file): Handle .c files in language
3966 subdirectories.
3967
3968 * Makefile.in (GTFILES): Run gengtype on all the config files
3969 and on the target .c file.
3970 * except.c (mark_eh_region): Delete.
3971 (init_eh_for_function): Use GGC on struct eh_status.
3972 (mark_eh_status): Delete.
3973 (free_eh_status): Use GGC.
3974 (expand_eh_region_start): Use GGC to
3975 (collect_eh_region_array): Allocate last_region_number using GGC.
3976 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
3977 (remove_eh_handler): Let GGC free struct eh_region.
3978 (add_call_site): Use GGC to reallocate call_site_record array.
3979 * function.c (init_machine_status): Update calling sequence.
3980 (mark_machine_status): Likewise.
3981 (mark_lang_status): Likewise.
3982 (prepare_function_start): Update init_machine_status call.
3983 (mark_function_status): Delete.
3984 (maybe_mark_struct_function): Delete.
3985 (ggc_mark_struct_function): Delete.
3986 (gt_ggc_mp_function): New.
3987 (gt_ggc_mr_machine_function): New.
3988 (gt_ggc_mr_language_function): New.
3989 (init_function_once): Use canonical names.
3990 * function.h (struct function): Use gengtype.
3991 (init_machine_status): Return the structure.
3992 (mark_machine_status): Take a 'void *'.
3993 (mark_lang_status): Likewise.
3994 * ggc-common.c (ggc_mark_trees): Use canonical name for
3995 ggc_mark_struct_function.
3996 * tree.h (ggc_mark_struct_function): Delete prototype.
3997 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
3998 (alpha_init_machine_status): Likewise.
3999 (override_options): Use canonical name for alpha_mark_machine_status.
4000 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
4001 * config/arm/arm.h (struct machine_function): Use gengtype.
4002 * config/arm/arm.c (arm_mark_machine_status): Delete.
4003 (arm_init_machine_status): Update calling sequence.
4004 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
4005 * config/cris/cris.c (cris_init_machine_status): Update
4006 calling sequence.
4007 * config/d30v/d30v.h (struct machine_function): Use gengtype.
4008 * config/d30v/d30v.c (d30v_init_machine_status): Update
4009 calling sequence.
4010 (d30v_mark_machine_status): Delete.
4011 * config/i386/i386.c: Include gt-i386.h.
4012 (struct machine_function): Use gengtype.
4013 (ix86_init_machine_status): Update calling sequence.
4014 (ix86_mark_machine_status): Delete.
4015 (override_options): Use canonical namke for ix86_mark_machine_status.
4016 * config/ia64/ia64.h (struct machine_function): Use gengtype.
4017 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
4018 sequence.
4019 (ia64_mark_machine_status): Delete.
4020 (ia64_override_options): Use canonical name for
4021 ia64_mark_machine_status.
4022 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
4023 sequence.
4024 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
4025 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4026 * gengtype.c (get_output_file): Fix warning.
4027 (main): Add prototype to suppress warning.
4028 * tree.c: Remove tree_hash_mark prototype.
4029
4030 * tree.h (init_stmt): Delete prototype.
4031 * toplev.c (lang_independent_init): Don't call init_stmt.
4032 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
4033 (stmt_obstack): Delete.
4034 (POPSTACK): No need to free 'struct nesting'.
4035 (gt_ggc_mr_nesting_cond): Use canonical names.
4036 (gt_ggc_mr_nesting_loop): Use canonical names.
4037 (gt_ggc_mr_nesting_block): Use canonical names.
4038 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
4039 (mark_stmt_status): Delete.
4040 (init_stmt): Delete.
4041 (clear_last_expr): Clear both last_expr_type and last_expr_value.
4042 Use it everywhere that last_expr_type was cleared.
4043 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
4044 (zap_lists): Delete.
4045 * ggc.h (ggc_add_deletable_root): Prototype.
4046 (mark_stmt_status): Remove prototype.
4047 * ggc-common.c (ggc_add_deletable_root): New.
4048 (ggc_mark_roots): Handle deletable roots.
4049 * function.c (ggc_mark_struct_function): Use canonical name
4050 for mark_stmt_status.
4051 * emit-rtl.c (free_sequence_stack): New.
4052 (start_sequence): Use a freelist for sequences.
4053 (end_sequence): Likewise.
4054 (init_emit_once): Add free_sequence_stack as a deleteable root.
4055 * c-pragma.c Include gt-c-pragma.h.
4056 (struct align_stack): Use gengtype.
4057 (push_alignment): Use GGC for struct align_stack.
4058 (mark_align_stack): Delete.
4059 (gt_ggc_mp_align_stack): New.
4060 (init_pragma): Use canonical name for mark_align_stack.
4061 * c-decl.c: Include gt-c-decl.h.
4062 (struct binding_level): Use gengtype.
4063 (make_binding_level): Use GGC; handle the freelist here.
4064 (pop_binding_level): New.
4065 (pushlevel): Move code into make_binding_level.
4066 (push_label_level): Likewise.
4067 (poplevel): Move code into pop_binding_level.
4068 (pop_label_level): Likewise.
4069 (mark_binding_level): Delete.
4070 (gt_ggc_mp_binding_level): New.
4071 (c_init_decl_processing): Use canonical name for mark_binding_level.
4072 Add free_binding_level as deletable root.
4073 (mark_c_function_context): Use canonical name for mark_binding_level.
4074 * Makefile.in (c-decl.o): Add gt-c-decl.h.
4075 (c-pragma.o): Add gt-c-pragma.h.
4076 (GTFILES): Add c-decl.c and c-pragma.c.
4077 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
4078
4079 * tree.c (struct type_hash): Use gengtype.
4080 (init_obstacks): Use canonical name for type_hash_mark.
4081 (type_hash_mark): Delete.
4082 Include gt-tree.h.
4083 * rtl.h (struct mem_attrs): Use gengtype.
4084 * optabs.h (struct optab): Use gengtype.
4085 * optabs.c (expand_binop): Squish signed/unsigned warning.
4086 (mark_optab): Make local, use canonical name, use autogenerated
4087 marker procedure.
4088 (init_optabs): Use canonical name for mark_optab.
4089 (new_optab): Use GGC to allocate optabs.
4090 * ggc.h: Delete mark_optab prototype.
4091 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
4092 mem_attrs marker procedure.
4093 * gengtype.c (get_output_file): Include headers in gtype-desc.c
4094 explicitly rather than deducing them from file names.
4095 (write_gc_structure_fields): Handle arrays of structures.
4096 (main): Return non-zero exit code if errors occur during output.
4097 * emit-rtl.c (mem_attrs_mark): Delete.
4098 (init_emit_once): Use canonical name for mem_attrs marker procedure.
4099 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
4100 (tree.o): Depend on gt-tree.h.
4101 (GTFILES): Add rtl.h, optabs.h, tree.c.
4102 (gt-tree.h): Add it to s-gtype rule.
4103
4104 * .cvsignore: Ignore gengtype flex/bison generated files.
4105 * Makefile.in (GGC_H): Add gtype-desc.h.
4106 (OBJS): Add gtype-desc.o.
4107 (GEN): Add gengtype.
4108 (STAGESTUFF): Add gengtype.
4109 (varasm.o): Add gt-varasm.h.
4110 (stmt.o): Add gt-stmt.h.
4111 (except.o): Add gt-except.h.
4112 (integrate.o): Add gt-integrate.h.
4113 (GTFILES): New.
4114 Add new rules for new files.
4115 * configure: Regenerate.
4116 * configure.in: Correct defaults.h paths.
4117 * emit-rtl.c (mark_sequence_stack): Delete.
4118 (mark_emit_status): Delete.
4119 (start_sequence): Allocate sequence structures using GGC.
4120 (end_sequence): Allocate sequence structures using GGC.
4121 * except.c: Use gengtype for various structures. Include
4122 gt-except.h.
4123 * expr.c (mark_expr_status): Delete.
4124 * function.c: Use gengtype for various structures. Include
4125 gt-function.h.
4126 (mark_function_status): Use standard gt_ggc names for marker functions.
4127 (ggc_mark_struct_function): Likewise.
4128 * function.h: Use gengtype for various structures.
4129 * gengtype-lex.l: New file.
4130 * gengtype-yacc.y: New file.
4131 * gengtype.c: New file.
4132 * gengtype.h: New file.
4133 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
4134 the standard names. Remove some now-unnecessary prototypes.
4135 * integrate.c: Use gengtype for various structures. Include
4136 gt-integrate.h.
4137 (mark_hard_reg_initial_vals): Delete.
4138 * integrate.h (mark_hard_reg_initial_vals): Delete.
4139 * stmt.c: Use gengtype for various structures. Include
4140 gt-stmt.h.
4141 (mark_case_node): Delete.
4142 (mark_goto_fixup): Delete.
4143 (mark_stmt_status): Use standard gt_ggc names for marker functions.
4144 * system.h: Define GTY to empty. In flex/bison files,
4145 don't poison malloc or realloc, instead just define them to
4146 xmalloc and xrealloc.
4147 * varasm.c: Use gengtype for various structures. Include
4148 gt-varasm.h. Use standard gt_ggc names for marker functions.
4149 (mark_pool_constant): Delete.
4150 (mark_varasm_status): Delete.
4151 (decode_rtx_const): #if 0 out non-typesafe hack.
4152
4153 * function.h (free_lang_status): Mark as obsolete.
4154 * function.c (free_lang_status): Mark as obsolete.
4155 * c-decl.c (push_c_function_context): Use GC to allocate and free
4156 struct language_function.
4157 (pop_c_function_context): Likewise.
4158 * c-common.c (mark_c_language_function): Mark struct
4159 language_function.
4160
4161 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
4162 Document that the machine_function structures must be allocated
4163 using GC. Update mark_machine_status documentation.
4164 * function.h: Don't declare free_machine_status.
4165 * function.c (free_machine_status): Don't define.
4166 (free_after_compilation): Don't call free_machine_status.
4167 (ggc_mark_struct_function): Mark f->machine. Call
4168 mark_machine_status only on non-NULL pointers.
4169 * system.h: Poison free_machine_status.
4170 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
4171 struct machine_function.
4172 (xtensa_free_machine_status): Delete.
4173 (override_options): Don't set free_machine_status.
4174 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
4175 free_machine_status.
4176 (rs6000_init_machine_status): Use GC on struct machine_function.
4177 (rs6000_free_machine_status): Delete.
4178 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
4179 machine_function.
4180 (ia64_mark_machine_status): Likewise.
4181 (ia64_free_machine_status): Delete.
4182 (ia64_override_options): Don't set free_machine_status.
4183 * config/i386/i386.c (override_options): Don't set
4184 free_machine_status.
4185 (ix86_init_machine_status): Use GC on struct machine_function.
4186 (ix86_mark_machine_status): Likewise.
4187 (ix86_free_machine_status): Delete.
4188 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
4189 machine_function.
4190 (d30v_mark_machine_status): Likewise.
4191 (d30v_free_machine_status): Delete.
4192 (d30v_init_expanders): Don't set free_machine_status.
4193 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
4194 machine_function.
4195 (arm_init_machine_status): Likewise.
4196 (arm_free_machine_status): Delete.
4197 (arm_init_expanders): Don't set free_machine_status.
4198 * config/alpha/alpha.c (override_options): Don't set
4199 free_machine_status.
4200 (alpha_init_machine_status): Use GC on struct machine_function.
4201 (alpha_mark_machine_status): Likewise.
4202 (alpha_free_machine_status): Delete.
4203
4204 * varasm.c (compare_constant): Fix typo.
4205
4206 * varasm.c: Don't include obstack.h.
4207 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
4208 (struct rtx_const): Give substructures names, improve formatting.
4209 (struct constant_descriptor): Delete.
4210 (struct constant_descriptor_tree): New, based on constant_descriptor.
4211 (const_hash_table): Is a hash table of trees.
4212 (mark_const_hash_entry): Is used for hashes of trees. Mark
4213 constant_descriptor_tree structure.
4214 (mark_const_str_htab_1): Mark deferred_string structure.
4215 (compare_constant): Rewrite to compare trees.
4216 (compare_constant_1): Delete.
4217 (record_constant): Delete.
4218 (record_constant_1): Delete.
4219 (output_constant_def): Use struct constant_descriptor_tree.
4220 Don't duplicate trees twice.
4221 (struct constant_descriptor_rtx): New.
4222 (struct pool_constant): Used for rtx constants.
4223 (init_varasm_status): Update for change to struct varasm_status.
4224 (mark_varasm_status): Likewise.
4225 (free_varasm_status): Delete.
4226 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
4227 (record_constant_rtx): Likewise.
4228 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
4229 (force_const_mem): Likewise.
4230 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
4231 * function.c (free_after_compilation): Don't use free_varasm_status.
4232 * function.h: Don't prototype free_varasm_status.
4233
4234 * ggc-common.c (ggc_realloc): Handle X being NULL.
4235
4236 * ggc-common.c (ggc_realloc): New function.
4237 * ggc.h: Prototype it.
4238 * emit-rtl.c (free_emit_status): Delete.
4239 (init_emit): Allocate emit subarrays using GC.
4240 (gen_reg_rtx): Reallocate subarrays using GC.
4241 (init_emit): Use GC to allocate 'struct emit_status' and its
4242 subarrays.
4243 (mark_emit_status): Mark structure and its subarrays.
4244 * stmt.c (free_stmt_status): Delete.
4245 * expr.c (free_expr_status): Delete.
4246 * function.h: Remove prototypes for deleted functions.
4247 * function.c (free_after_compilation): Don't use deleted functions.
4248 Don't call free() on x_parm_reg_stack_loc.
4249 (free_after_parsing): Don't use free_stmt_status.
4250 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
4251 (mark_function_status): Mark x_parm_reg_stack_loc.
4252
4253 * varasm.c (init_varasm_status): Use GC to allocate
4254 'struct varasm_status' and its fields x_const_rtx_hash_table
4255 and x_const_rtx_sym_hash_table.
4256 (mark_varasm_status): Mark them.
4257 (free_varasm_status): Use GC to free them.
4258 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
4259 (mark_expr_status): Mark the structure itself.
4260 (free_expr_status): Use GC to free the structure.
4261 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
4262 (mark_stmt_status): Mark the 'struct stmt_status' itself.
4263 (init_stmt_for_function): Allocate the structure for GC.
4264
4265 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
4266 (equate_type_number_to_die): Likewise.
4267 * tree.h (TYPE_SYMTAB_DIE): New macro.
4268 (struct die_struct): Predeclare.
4269 (struct tree_type): Add field symtab.die. Add a tag
4270 to the union type of field symtab.
4271
4272 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
4273 'struct rtvec_def *', not 'struct rtvec_def'.
4274
4275 * function.h (original_arg_vector): Make a real rtvec.
4276 * function.c (ggc_mark_struct_function): Adjust.
4277 * integrate.c (expand_inline_function): Adjust.
4278
4279 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4280
4281 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
4282 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
4283 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
4284 (TARGET_VERSION_CPU): Define according to the
4285 default target.
4286 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
4287 TARGET_VERSION_CPU.
4288 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
4289 if TARGET_SHMEDIA64.
4290 (LINK_DEFAULT_CPU_EMUL): Define according to the
4291 default target.
4292 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
4293 (SUBTARGET_LINK_SPEC): Define.
4294 (LINK_SPEC): Use SH_LINK_SPEC.
4295 (ASM_SPEC): Remove.
4296 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
4297 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
4298 and TARGET_SHMEDIA64 which abort, for now.
4299 * config/sh/t-netbsd-sh5: New file.
4300 * config/sh/t-netbsd-sh5-32: New file.
4301 * config/sh/t-netbsd-sh5-64: New file.
4302
4303 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
4304 Richard Henderson <rth@redhat.com>
4305
4306 * config/alpha/alpha.c (reg_or_const_int_operand): New.
4307 (some_operand, input_operand): Accept CONST_VECTOR.
4308 (alpha_extra_constraint): Add 'W'.
4309 (alpha_expand_zap_mask): New.
4310 (alpha_expand_builtin_vector_binop): New.
4311 (enum alpha_builtin): New.
4312 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
4313 (alpha_init_builtins, alpha_expand_builtin): New.
4314 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
4315 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
4316 (PREDICATE_CODES): Update.
4317 * config/alpha/alpha-protos.h: Update.
4318 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
4319 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
4320 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
4321 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
4322 (movv2si, movv2si_fix, movv2si_nofix): New.
4323 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
4324 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
4325 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
4326 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
4327 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
4328 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
4329 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
4330 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
4331 builtin_unpkbw, unpkbw): New.
4332 * doc/extend.texi (Alpha Built-in Functions): New.
4333
4334 2002-06-03 Richard Henderson <rth@redhat.com>
4335
4336 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
4337 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
4338
4339 2002-06-03 Richard Henderson <rth@redhat.com>
4340
4341 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
4342
4343 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
4344 (const0_operand): New.
4345 (reg_or_fp0_operand, fp0_operand): Remove.
4346 * config/alpha/alpha.h (PREDICATE_CODES): Update.
4347 * config/alpha/alpha-protos.h: Update.
4348 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
4349 and fp0_operand with reg_or_0_operand and const0_operand.
4350
4351 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
4352
4353 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
4354
4355 2002-06-03 Roger Sayle <roger@eyesopen.com>
4356
4357 * gcse.c (cprop_jump): Use single_set to get the pattern
4358 from the setcc argument.
4359
4360 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
4361
4362 * diagnostic.h (diagnostic_count): Move from output_buffer to
4363 diagnostic_context.
4364 (diagnostic_kind_count): Adjust definition.
4365
4366 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
4367
4368 * except.c (except.c): Do not rebuild CFG.
4369 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
4370 optimization.
4371
4372 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
4373
4374 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
4375 * toplev.c: Include cfglahout.h
4376 * Makefile.in (toplev.c): Add dependnecy.
4377
4378 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
4379
4380 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
4381 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
4382 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
4383
4384 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
4385
4386 * config/ns32k/netbsd.h: Update copyright years.
4387 (TARGET_OS_CPP_BUILTINS): Define.
4388 (CPP_PREDEFINES): Remove.
4389 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
4390 (TARGET_CPU_CPP_BUILTINS): Define.
4391
4392 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
4393
4394 * emit-rtl.c: Fix formatting.
4395 * errors.h: Likewise.
4396 * except.c: Likewise.
4397 * explow.c: Likewise.
4398 * expmed.c: Likewise.
4399 * expr.c: Likewise.
4400 * expr.h: Likewise.
4401
4402 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
4403
4404 * config/h8300/elf.h: Fix formatting.
4405 * config/h8300/rtems.h: Likewise.
4406
4407 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
4408
4409 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
4410
4411 2002-06-02 Tom Tromey <tromey@redhat.com>
4412
4413 * fixinc/fixincl.x: Rebuilt.
4414 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
4415
4416 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4417
4418 config/i370:
4419 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
4420 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
4421 * mvs.h: Similarly.
4422 * oe.h: Similarly.
4423
4424 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
4425
4426 * final.c (final): Allow notes to not have computed addresses;
4427 kill no longer needed STACK_REGS ifdef.
4428
4429 2002-06-02 Richard Henderson <rth@redhat.com>
4430
4431 * gcse.c (bypass_conditional_jumps): Fix typo last change.
4432
4433 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4434
4435 * loop.c (emit_prefetch_instructions): Properly place the address
4436 computation.
4437
4438 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
4439
4440 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
4441 (set_block_for_insn): Turn into macro.
4442 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
4443 * cfglayout.c (insn_scopes): Kill.
4444 (scope_to_insns_initialize): Do not use insn_scopes.
4445 (scope_to_insns_finalize): Likewise.
4446 (duplicate_insn_chain): Likewise.
4447 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
4448 * cfgrtl.c (basic_block_for_insn): Kill.
4449 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
4450 (create_basic_block_structure): Use reorder_insns.
4451 (compute_bb_for_insn): Do not use basic_block_for_insn.
4452 (merge_blocks_nomove): Likewise.
4453 (update_bb_for_insn): Likewise.
4454 (verify_flow_info): Likewise.
4455 (set_block_for_insn): Kill.
4456 * combine.c (try_combine): Update gen_rtx_INSN call.
4457 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
4458 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
4459 scopes and BBs.
4460 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
4461 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
4462 Clear BB.
4463 (emit_insns_after): Simplify.
4464 (emit_copy_of_insn_after): Copy scope.
4465 * final.c (final_start_function): Lower scopes.
4466 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
4467 * integrate.c (copy_insn_list): Cope scopes.
4468 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
4469 * loop.c (loop_optimize): Do not care block notes.
4470 * print-rtl.c (print_rtx): Print BB.
4471 * recog.c (apply_change_group): Simplify.
4472 * rtl.c (copy_rtx): Handle 'B'.
4473 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
4474 * rtl.h (Field accessors): Update indexes.
4475 * sched-ebb.c (schedule_ebbs): Do not lower notes.
4476 * sched-rgn.c (schedule_insns): Likewise.
4477 * toplev.c (rest_of_compilation): Lower notes.
4478 * unroll.c (unroll_loop): Do not care scoping notes.
4479 (copy_loop_body): Copy scopes.
4480
4481 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4482
4483 config/h8300:
4484 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4485 SUBTARGET_SPEC.
4486 * rtems.h: Similarly.
4487 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
4488 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
4489 (TARGET_CPU_CPP_BUILTINS): Use.
4490
4491 2002-06-02 Richard Henderson <rth@redhat.com>
4492
4493 * alias.c: Include target.h.
4494 (mark_constant_function): Use targetm.binds_local_p instead
4495 of checking TREE_PUBLIC ourselves.
4496 * Makefile.in (alias.o): Add TARGET_H.
4497
4498 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4499
4500 * c-lex.c: Update copyright and file description.
4501
4502 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4503
4504 * config/fr30/fr30.h: Update to new CPP macros.
4505
4506 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4507
4508 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
4509
4510 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4511 Zack Weinberg <zack@codesourcery.com>
4512
4513 * c-common.c (c_common_init): Override cpplib's default
4514 warn_long_long setting.
4515 * c-lex.c (lex_number): Replace with interpret_integer,
4516 interpret_float, narrowest_unsigned_type and
4517 narrowest_signed_type, taking advantage of the new
4518 cpplib functionality.
4519 * cpperror.c (_cpp_begin_message): If a warning is turned
4520 into an error, avoid printing "warning:".
4521 * cppexp.c (cpp_num_sign_extend): New.
4522 * cppinit.c: Update comment.
4523 * cpplib.h (cpp_num_sign_extend): New.
4524 * tree.h: Update comment.
4525
4526 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
4527
4528 * diagnostic.h (struct diagnostic_context): Add new member
4529 internal_error.
4530 (internal_error_function): Remove declaration.
4531 * diagnostic.c (internal_error_function): Remove definition..
4532 (internal_error): Adjust use.
4533
4534 2002-06-02 Richard Henderson <rth@redhat.com>
4535
4536 * rtl.h (CC0_P): New.
4537 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
4538 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
4539 (bypass_block): Save old dest block for dump text.
4540 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
4541 Allow only true SET insns, not single_set.
4542
4543 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
4544
4545 * diagnostic.c (diagnostic_finish): Rename to output_flush.
4546 (clear_disgnostic_info): Rename to output_clear_data. Use false
4547 instead of 0 for boolean value.
4548 Adjust function call throughout.
4549
4550 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
4551
4552 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
4553 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
4554
4555 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4556
4557 * d30v.h (CPP_PREDEFINES): Replace with
4558 (TARGET_CPU_CPP_BUILTINS): New.
4559
4560 2002-06-02 Roger Sayle <roger@eyesopen.com>
4561
4562 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
4563
4564 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
4565
4566 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
4567
4568 2002-06-02 Richard Henderson <rth@redhat.com>
4569
4570 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
4571
4572 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
4573
4574 Support for C++ constructors/destructors.
4575 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
4576 instead of looping if main() returns.
4577 (asm_file_start): Output global symbols that cause .data and .bss
4578 initialization code to be linked in, unconditionally for now.
4579 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
4580 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
4581 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
4582 (LIBSTDCXX): New.
4583 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
4584 (__tablejump__): New.
4585 (__do_copy_data, __do_clear_bss): New.
4586 (__do_global_ctors, __do_global_dtors): New.
4587 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
4588 _ctors, _dtors.
4589
4590 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4591
4592 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
4593 (CPP_SPEC, CPP_PREDEFINES): Kill.
4594 * c4x/rtems.h (CPP_PREDEFINES): Kill.
4595 (TARGET_OS_CPP_BUILTINS): New.
4596
4597 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
4598
4599 * Makefile.in (tracer.o): New.
4600 * params.def (TRACER_*): New options.
4601 * rtl.h (tracer): Declare.
4602 * timevar.def (TV_TRACER): New.
4603 * toplev.c (dump_file_index): Add DFI_tracer.
4604 (dump_file_info): Add tracer.
4605 (flag_tracer): New.
4606 (lang_indepdenent_options): Add tracer.
4607 (rest_of_compilation): Call tracer.
4608 * tracer.c: New file.
4609 * invoke.texi (-ftracer): Document.
4610 (--param tracer-*): Document.
4611
4612 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
4613
4614 * tree-inline.c (expand_call_inline): Make the statement
4615 expression we generate have a COMPOUND_STMT.
4616
4617 2002-06-01 Roger Sayle <roger@eyesopen.com>
4618
4619 * gcse.c (cprop_cc0_jump): Function deleted.
4620 (cprop_jump): Take an additional argument which is the possibly
4621 NULL cc setting insn immediately before the conditional jump.
4622 When a MODE_CC set is present, substitute it into the JUMP_INSN
4623 before attempting the constant propagation.
4624 (cprop_insn): Recognize cc setters followed by conditional jumps
4625 as a special case. Use cprop_jump instead of cprop_cc0_jump.
4626 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
4627 (find_bypass_set): New function based upon find_avail_set used by
4628 cprop, but finds constant expressions available at the end of
4629 basic blocks.
4630 (bypass_block): New function. Given a basic block that begins
4631 with a conditional jump and multiple incoming edges, perform
4632 the jump bypass optimization.
4633 (bypass_conditional_jumps): New function. Call bypass_block with
4634 each suitable basic block in the CFG using a simple single pass.
4635
4636 2002-06-01 Roger Sayle <roger@eyesopen.com>
4637
4638 * tree.c (real_minus_onep): New function to test for -1.0.
4639 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
4640
4641 2002-06-01 Roger Sayle <roger@eyesopen.com>
4642
4643 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
4644 and "!p && !q" into "(p|q) == 0" under suitable conditions.
4645
4646 2002-06-01 Andreas Jaeger <aj@suse.de>
4647
4648 * cppexp.c (cpp_classify_number): Cast precission to int for
4649 correct printf format.
4650
4651 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
4652
4653 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
4654 expected, but don't really exist: atmega83, atmega85, attiny10.
4655 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
4656 emulations for all devices.
4657 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
4658 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
4659
4660 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
4661
4662 * config/h8300/h8300-protos.h: Add a prototype for
4663 h8300_shift_needs_scratch_p.
4664 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
4665 * config/h8300/h8300.h (OK_FOR_R): New.
4666 (OK_FOR_S): Likewise.
4667 (OK_FOR_T): Likewise.
4668 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
4669 * config/h8300/h8300.md (anonymous shift patterns): Use
4670 constraints R, S, and T.
4671
4672 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4673
4674 * basic-block.h (struct basic_block_def): New field loop_father.
4675 (BB_VISITED): New flag.
4676 (struct loop): New field pred, removed field shared.
4677 (struct loops): New field parray.
4678 (LOOP_EXITS_DOMS): Removed.
4679 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
4680 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
4681 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
4682 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
4683 verify_loop_structure): Declare.
4684 * cfg.c (entry_exit_blocks): Initialize loop_father field.
4685 * cfganal.c (dfs_enumerate_from): New function.
4686 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
4687 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4688 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
4689 flow_loop_dump, flow_loops_dump, flow_loops_free,
4690 flow_loop_tree_node_add, flow_loop_level_compute,
4691 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
4692 flow_loop_outside_edge_p): Modified for new infrastructure.
4693 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
4694 redirect_edge_with_latch_update, flow_loop_free): New static functions.
4695 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
4696 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
4697 find_common_loop, verify_loop_structure, loop_latch_edge,
4698 loop_preheader_edge): New functions.
4699 (flow_loops_cfg_dump): Do not show dominators, as this information
4700 does not remain up to date long.
4701 (flow_loops_find): Store results in new format.
4702 * predict.c (propagate_freq, estimate_probability,
4703 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
4704 infrastructure.
4705
4706 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
4707
4708 * except.c (nothrow_function_p): Walk epilogue delay list
4709 checking the insn, not the chain for potential throws.
4710
4711 2002-05-31 Zack Weinberg <zack@codesourcery.com>
4712
4713 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
4714 (install): Refer to install-cpp directly.
4715 (uninstall-cpp): Folded into uninstall rule.
4716 * configure.in: Delete all code relating to --disable-cpp.
4717 * configure: Regenerate.
4718 * config/t-install-cpp: Delete.
4719
4720 2002-05-31 Richard Henderson <rth@redhat.com>
4721
4722 * configure.in (HAVE_AS_TLS): Add alpha tests.
4723 * configure: Rebuild.
4724 * config/alpha/alpha.c (TARGET_AS_TLS): New.
4725 (alpha_tls_size, alpha_tls_size_string): New.
4726 (overide_options): Set it. Always install machine_status hooks.
4727 (input_operand): Accept got tls predicates.
4728 (local_symbol_p): Merge into ...
4729 (local_symbolic_operand): ... here. Reject tls symbols.
4730 (global_symbolic_operand): Likewise.
4731 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
4732 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
4733 (tp16_symbolic_operand, tp32_symbolic_operand): New.
4734 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
4735 (alpha_encode_section_info): Handle TLS symbols.
4736 (alpha_strip_name_encoding): Likewise.
4737 (alpha_legitimate_address_p): Likewise.
4738 (alpha_legitimize_address): Likewise.
4739 (alpha_expand_mov): Early exit to avoid nop moves.
4740 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
4741 (alpha_init_machine_status, alpha_mark_machine_status,
4742 alpha_free_machine_status): Always define.
4743 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
4744 (print_operand, print_operand_address): Add TLS relocs.
4745 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
4746 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
4747 (TARGET_SWITCHES): Add -mtls-kernel.
4748 (alpha_tls_size, alpha_tls_size_string): New.
4749 (TARGET_OPTIONS): Add -mtls-size=.
4750 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
4751 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
4752 (ASM_OUTPUT_LABELREF): Skip %.
4753 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
4754 (PREDICATE_CODES): Update.
4755 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
4756 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
4757 UNSPEC_TP, UNSPECV_SET_TP): New.
4758 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
4759 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
4760 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
4761 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
4762 (call_value_osf_2_er): Accept anything as op4.
4763 * config/alpha/alpha-protos.h: Update.
4764 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
4765
4766 2002-05-31 Zack Weinberg <zack@codesourcery.com>
4767
4768 * cppinit.c (append_include_chain): Always pay attention to
4769 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
4770 marker on argument.
4771
4772 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
4773
4774 * target.h: Fix formatting.
4775 * timevar.h: Likewise.
4776 * tlink.c: Likewise.
4777 * toplev.c: Likewise.
4778 * toplev.h: Likewise.
4779 * tree.c: Likewise.
4780 * tree-dump.h: Likewise.
4781 * tree.h: Likewise.
4782 * tree-inline.h: Likewise.
4783 * unroll.c: Likewise.
4784 * unwind-dw2.c: Likewise.
4785 * unwind-dw2-fde.c: Likewise.
4786 * unwind-dw2-fde-glibc.c: Likewise.
4787 * unwind-dw2-fde.h: Likewise.
4788 * unwind.h: Likewise.
4789 * unwind-sjlj.c: Likewise.
4790 * varasm.c: Likewise.
4791 * varray.h: Likewise.
4792 * vmsdbg.h: Likewise.
4793 * vmsdbgout.c: Likewise.
4794 * xcoffout.h: Likewise.
4795
4796 2002-05-31 Igor Shevlyakov <igor@microunity.com>
4797
4798 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
4799 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
4800
4801 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
4802
4803 * gcc.c (cpp_unique_options): Remove "-d" options.
4804 (cpp_debug_options): New spec string.
4805 (default_compilers): Use it.
4806 * objc/lang-specs.h: Likewise.
4807
4808 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
4809
4810 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
4811 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
4812 * gcc/mklibgcc.in: Likewise.
4813 * gcc/config/arc/t-arc: Likewise.
4814 * gcc/configure.in: Likewise.
4815 * gcc/configure: Regenerate.
4816
4817 2002-05-31 Stan Shebs <shebs@apple.com>
4818 Turly O'Connor <turly@apple.com>
4819
4820 * c-decl.c (struct binding_level): Change int field n_incomplete
4821 to tree list incomplete_list.
4822 (clear_binding_level): Init field with NULL.
4823 (pushdecl): Add incomplete type to list.
4824 (mark_binding_level): Mark the incomplete list.
4825 (finish_struct): Scan the incomplete list for types instead
4826 of all decls in the current binding level.
4827
4828 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4829
4830 * pa.c (output_millicode_call): Add missing '%' characters.
4831 (output_call): Likewise.
4832
4833 2002-05-31 David Edelsohn <edelsohn@gnu.org>
4834
4835 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
4836 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4837
4838 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
4839
4840 * varasm.c (mark_constant_pool): Walk epilogue delay list
4841 checking the insn, not the chain for potential constants.
4842
4843 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
4844
4845 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
4846
4847 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
4848
4849 * i386.c (classify_argument): Properly handle base types.
4850
4851 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
4852 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
4853 registers.
4854
4855 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4856
4857 * gcse.c (gcse_emit_move_after): New.
4858 (pre_delete, hoist_store): Use it.
4859
4860 * reload1.c (emit_input_reload_insns): Use constrain_operands
4861 instead of constraint_accepts_reg_p to verify optimization.
4862 (constraint_accepts_reg_p): Kill
4863
4864 * reload1.c (reload_cse_delete_noop_set): Kill.
4865 (reload_cse_simplify): use delte_insn_and_edges.
4866
4867 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4868
4869 * cfgloop.c (flow_loops_find): Initialize first and last fields
4870 correctly.
4871
4872 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
4873
4874 * c-common.c (builtin_define_std): Correct logic.
4875
4876 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4877
4878 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
4879 (output_call): Likewise.
4880
4881 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4882
4883 * pa.c: Move output.h include after tree.h include.
4884 (pa_asm_output_mi_thunk): Constify identifier lab.
4885
4886 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4887
4888 * config/ns32k/ns32k.h: Define named constants for the
4889 bits in target_flags and use them.
4890 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
4891
4892 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4893
4894 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
4895 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
4896 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
4897 default scheduling model.
4898 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
4899 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
4900 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
4901 * doc/install.texi (hppa*-*-*): Document default scheduling.
4902
4903 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4904
4905 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4906
4907 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4908
4909 * config.gcc (ns32k-*-netbsd*): Set tm_file to
4910 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
4911 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
4912 netbsd.h, or netbsd-aout.h.
4913
4914 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4915
4916 * longlong.h (count_trailing_zeros): Add missing \, and clean up
4917 whitespace in __ns32000__ case.
4918
4919 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
4920
4921 * expr.c (expand_expr): Output partially zeroed out vectors with
4922 output_constant_def.
4923
4924 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4925
4926 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
4927 (sh-*-netbsdelf*)
4928 (shl*-*-netbsdelf*): New targets.
4929 * config/sh/netbsd-elf.h: New file.
4930 * config/sh/t-netbsd: New file.
4931
4932 2002-05-30 Richard Henderson <rth@redhat.com>
4933 Eric Botcazou <ebotcazou@multimania.com>
4934
4935 PR optimization/6822
4936 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
4937 to unsigned int for op1 comparisons. Use gen_int_mode.
4938
4939 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
4940
4941 * expmed.c (const_mult_add_overflow_p): New.
4942 * expr.h: Declare it.
4943 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
4944 Don't eliminate the biv if the giv has a constant multiplier and
4945 the rhs argument of the comparison does satisfy the predicate.
4946 Use expand_mult_add to compute the replacement constant.
4947
4948 2002-05-30 Osku Salerma <osku@iki.fi>
4949
4950 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
4951 (c_common_get_alias_set): Handle it.
4952 * doc/extend.texi: Document it.
4953
4954 2002-05-30 Richard Henderson <rth@redhat.com>
4955
4956 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4957 * toplev.c (process_options): Don't check it.
4958 * doc/tm.texi: Don't document it.
4959 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
4960 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4961 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
4962 frame pointer optimization if current_function_profile.
4963
4964 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
4965
4966 * langhooks.c: Fix formatting.
4967 * langhooks.h: Likewise.
4968 * lcm.c: Likewise.
4969 * libgcc2.c: Likewise.
4970 * lists.c: Likewise.
4971 * local-alloc.c: Likewise.
4972 * loop.c: Likewise.
4973 * loop.h: Likewise.
4974
4975 2002-05-30 Marc Espie <espie@openbsd.org>
4976
4977 * config.gcc (sparc64-*-openbsd*): New.
4978 * config/sparc/openbsd1-64.h: New.
4979 * config/sparc/openbsd64.h: New.
4980
4981 2002-05-30 Jeff Law <law@redhat.com>
4982
4983 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
4984 a dead insn with a REG_RETVAL note when the entire libcall is not
4985 dead and remove the associated REG_LIBCALL note at the same time.
4986
4987 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
4988
4989 * lcm.c (output.h): #include.
4990 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
4991 as an ordinary block.
4992 (optimize_mode_switching): Don't pretend that the exit block is
4993 an ordinary block, or handle sucessors of entry block specially.
4994 Instead, split edges from entry block and to exit block, and
4995 put a computing definition on the thus gained post-entry-block,
4996 and a need on the pre-exit-block.
4997
4998 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
4999
5000 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
5001 * rtl.texi: Document 'B'
5002
5003 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5004
5005 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
5006 at run-time.
5007 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
5008
5009 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
5010
5011 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
5012 const0_rtx instead of NULL_RTX when in error.
5013 (altivec_expand_abs_builtin): Same.
5014 (rs6000_expand_binop_builtin): Same.
5015 (altivec_expand_predicate_builtin): Same.
5016 (altivec_expand_stv_builtin): Same.
5017 (rs6000_expand_ternop_builtin): Same.
5018 (altivec_expand_builtin): Same.
5019
5020 2002-05-29 David S. Miller <davem@redhat.com>
5021
5022 * rtl.h (clear_emit_caches): Delete.
5023 * integrate.c (output_inline_function): Don't call it.
5024 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
5025 (clear_emit_caches): Delete definition.
5026 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
5027
5028 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
5029
5030 * config/mmix/mmix.c: Include real.h.
5031 (mmix_constant_address_p): Remove redundant test before switch.
5032
5033 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5034
5035 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
5036 only if not already defined.
5037
5038 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
5039
5040 * config/h8300/h8300-protos.h: Remove prototypes for
5041 ok_for_bclr and small_power_of_two.
5042 * config/h8300/h8300.c (small_power_of_two): Remove.
5043 (ok_for_blcr): Likewise.
5044 (fix_bit_operand): Make WHAT deal with an integer instead of a
5045 constraint character.
5046 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
5047 (CONST_OK_FOR_P): Likewise.
5048 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
5049 CONST_OK_FOR_P any more.
5050 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
5051 of fix_bit_operand.
5052 (iorqi3): Likewise.
5053 (xorqi3): Likewise.
5054
5055 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5056
5057 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5058 (CPP_PREDEFINES): Make sure this is undefined.
5059 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
5060 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
5061 or -U__MIPSEB__ before defining one or the other. Instead,
5062 use %(subtarget_endian_default) if neither -EB nor -EL are
5063 specified.
5064 (SUBTARGET_EXTRA_SPECS): Define.
5065 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
5066 %(netbsd_cpp_spec).
5067
5068 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
5069
5070 * doc/md.texi (Patterns): Note pattern condition pitfall
5071 for unnamed insn.
5072
5073 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
5074
5075 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
5076 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
5077 ternary operations from here...
5078 (rs6000_expand_builtin): ...to here.
5079 New argument expandedp.
5080 Change all instances of altivec_expand_binop_builtin to
5081 rs6000_expand_binop_builtin.
5082 (altivec_expand_unop_builtin): Rename to
5083 rs6000_expand_unop_builtin.
5084 (altivec_expand_binop_builtin): Rename to
5085 rs6000_expand_binop_builtin.
5086 (altivec_expand_ternop_builtin): Rename to
5087 rs6000_expand_ternop_builtin.
5088
5089 2002-05-29 Richard Henderson <rth@redhat.com>
5090
5091 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
5092 (TARGET_BI_ARCH): Likewise.
5093 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
5094 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
5095 (TARGET_64BIT_DEFAULT): Default to 0.
5096 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
5097
5098 2002-05-29 Richard Henderson <rth@redhat.com>
5099
5100 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
5101 (get_pc_thunk_name): New.
5102 (output_set_got): Use it.
5103 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
5104 into linkonce sections.
5105
5106 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5107
5108 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
5109 (CPP_PREDEFINES): Make sure this is undefined.
5110 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
5111 (CPP_SUBTARGET_SPEC): Don't provide different versions for
5112 default-32 and default-64. Just always use %(netbsd_cpp_spec).
5113 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
5114 cpp_subtarget_spec64. Add netbsd_cpp_spec.
5115 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5116 (CPP_PREDEFINES): Make sure this is undefined.
5117 (SUBTARGET_EXTRA_SPECS): Define.
5118 (CPP_SPEC): Use %(netbsd_cpp_spec).
5119
5120 2002-05-29 Jeff Law <law@redhat.com>
5121
5122 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
5123
5124 * flow.c (propagate_one_insn): Do not remove a dead insn if it
5125 contains a REG_RETVAL note.
5126
5127 * haifa-sched (sched_analyze): Remove another useless clearing
5128 of SCHED_GROUP_P I missed yesterday.
5129
5130 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
5131 * pa.c (pa_asm_output_mi_thunk): New function.
5132 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
5133
5134 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
5135 Marek Michalkiewicz <marekm@amelek.gda.pl>
5136
5137 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
5138 (avr_asm_only_p): Make non-static.
5139 (enum avr_arch): Remove.
5140 (avr_arch_types): New.
5141 (avr_mcu_types): Update.
5142 (avr_override_options): Use avr_arch_types table instead of switch.
5143 * avr.h (CPP_PREDEFINES): Die.
5144 (avr_base_arch_macro, avr_extra_arch_macro): New.
5145 (TARGET_CPU_CPP_BUILTINS): New.
5146 (CPP_SPEC, EXTRA_SPECS): Simplify.
5147 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
5148 CPP_AVR5_SPEC): Die.
5149
5150 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5151
5152 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
5153 NETBSD_OS_CPP_BUILTINS_AOUT.
5154 (SUBTARGET_EXTRA_SPECS): Define.
5155 (CPP_SPEC): Use %(netbsd_cpp_spec).
5156
5157 2002-05-29 Richard Henderson <rth@redhat.com>
5158
5159 * config/i386/i386.c (ix86_output_function_epilogue): New.
5160 (TARGET_ASM_FUNCTION_EPILOGUE): New.
5161 (pic_label_name): Remove.
5162 (pic_labels_used): New.
5163 (ix86_asm_file_end): Emit one pc load stub for each register used.
5164 (output_set_got): Generate deep pc load to any register.
5165 (ix86_select_alt_pic_regnum): New.
5166 (ix86_save_reg): Don't save pic register if we can find a valid
5167 call-clobbered replacement.
5168 (ix86_expand_prologue): If we found a valid replacement, renumber
5169 pic_offset_table_rtx.
5170 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
5171 pic_offset_table_rtx after reload.
5172 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
5173 * config/i386/i386.md (set_got): Make insn, not expander.
5174 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
5175
5176 2002-05-29 Richard Henderson <rth@redhat.com>
5177
5178 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
5179 alignment for alloca.
5180
5181 2002-05-29 Richard Henderson <rth@redhat.com>
5182
5183 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
5184 (print_operand_address): Only add rip for symbolic addresses
5185 for which we do not have another relocation type.
5186
5187 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5188
5189 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
5190 (EXTRA_SPECS): Add netbsd_cpp_spec.
5191 (CPP_SPEC): Use %(netbsd_cpp_spec).
5192 (CPP_PREDEFINES): Remove.
5193 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5194 (EXTRA_SPECS): Define.
5195 (CPP_SPEC): Use %(netbsd_cpp_spec).
5196 (CPP_PREDEFINES): Remove.
5197
5198 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
5199
5200 PR preprocessor/6844
5201 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
5202 NUL.
5203
5204 2002-05-29 Eric Christopher <echristo@redhat.com>
5205
5206 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
5207 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
5208
5209 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
5210
5211 * config/fr30/fr30.md: Remove previous restriction on splits.
5212 Enforce conformance through gen_lowpart and cont_int_operand.
5213 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
5214 as the assembler does not support ".bss".
5215
5216 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5217
5218 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
5219 (CPP_PREDEFINES): Remove.
5220 (SUBTARGET_EXTRA_SPECS): Define.
5221 (CPP_SPEC): Use %(netbsd_cpp_spec).
5222 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5223 (CPP_PREDEFINES): Remove.
5224 (SUBTARGET_EXTRA_SPECS): Define.
5225 (CPP_SPEC): Use %(netbsd_cpp_spec).
5226 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
5227 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
5228 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
5229 Add netbsd_cpp_spec.
5230 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
5231
5232 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
5233 Zack Weinberg <zack@codesourcery.com>
5234
5235 * cppexp.c (cpp_num): Move to cpplib.h.
5236 (CPP_ERROR): Remove.
5237 (interpret_float_suffix, interpret_int_suffix): New.
5238 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
5239 (cpp_classify_number, cpp_interpret_integer): New.
5240 (interpret_number): Remove.
5241 (eval_token): Update to use new routines.
5242 * cpphash.h (cpp_num_part): Move to cpplib.h.
5243 * cppinit.c (cpp_post_options): Set warn_long_long.
5244 * cpplib.h (struct cpp_options): Add warn_long_long.
5245 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
5246 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
5247 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
5248 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
5249 cpp_interpret_integer): New.
5250
5251 2002-05-29 Joel Sherrill <joel@OARcorp.com>
5252
5253 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
5254
5255 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5256
5257 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
5258 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
5259 (CPP_SUBTARGET_SPEC): Define.
5260 (SUBTARGET_EXTRA_SPECS): Define.
5261 (CPP_SPEC): Remove.
5262
5263 2002-05-29 Chris Lattner <sabre@nondot.org>
5264
5265 * ssa.c (rename_insn_1): Rename uses of undefined registers to
5266 prevent confusion if/when the register is defined.
5267
5268 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
5269
5270 PR target/6838
5271 * config/cris/cris.md: Fix typos and thinkos in comments.
5272 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
5273 second alternative.
5274 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
5275 ("*mov_sideqi_mem"): Similar, but for operand 3.
5276 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
5277 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
5278 Remove spurious mode specifier on operand 2.
5279
5280 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
5281
5282 * config/h8300/h8300-protos.h: Remove the prototype for
5283 o_operand.
5284 Add prototypes for single_one_operand and single_zero_operand.
5285 * config/h8300/h8300.c (o_operand): Remove.
5286 (single_one_operand): New.
5287 (single_zero_operand): Likewise.
5288 (print_operand): For 'V' operand, and the operand with 0xff.
5289 For 'V' and 'W' operands, do not and the bit position with 7.
5290 * config/h8300/h8300.md (various anonymous patterns): Replace
5291 use of exact_log2 with single_one_operand/single_zero_operand.
5292
5293 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
5294
5295 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
5296
5297 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
5298
5299 * config/s390/s390.c (legitimate_pic_operand_p): Do not
5300 accept symbolic LARL operands.
5301 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
5302 epilogue insns.
5303
5304 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
5305
5306 * config/s390/s390.md (cmpstr_64/31): Mark whole
5307 input registers as used.
5308
5309 2002-05-28 Richard Henderson <rth@redhat.com>
5310
5311 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
5312 not current_function_uses_pic_offset_table and
5313 current_function_uses_const_pool; examine current_function_profile.
5314 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
5315 input to blockage if needed.
5316 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
5317 (legitimize_pic_address): Likewise. Set regs_ever_live for
5318 pic_offset_table_rtx when invoked during reload.
5319 * config/i386/i386.h (FINALIZE_PIC): Remove.
5320 * config/i386/i386.md (tablejump): Reformat. Do not set
5321 current_function_uses_pic_offset_table.
5322 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
5323 (blockage): Accept anything as operand 0.
5324
5325 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5326
5327 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
5328 common CPP built-ins for all NetBSD a.out targets.
5329 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
5330 common CPP built-ins for all NetBSD ELF targets.
5331 * config/netbsd.h: Add missing notice.
5332 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
5333 for all NetBSD targets.
5334 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
5335 for all NetBSD targets using an LP64 code model.
5336 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
5337 NetBSD targets.
5338
5339 2002-05-28 Richard Henderson <rth@redhat.com>
5340
5341 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
5342 update if UPDATE_LIFE_LOCAL.
5343
5344 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5345
5346 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
5347
5348 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
5349 Jason R. Thorpe <thorpej@wasabisystems.com>
5350
5351 config/sh reorganization to factor out endianness and coff:
5352
5353 * config/sh/little.h: New file.
5354 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
5355 defined, define to 0 to select big-endian.
5356 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
5357 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5358 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5359 * config/sh/t-be: New file.
5360 * config/sh/t-le: New file.
5361
5362 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
5363 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
5364 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
5365 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
5366 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
5367 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
5368 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
5369 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
5370 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
5371 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
5372 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
5373 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
5374 (LINK_SPEC): Define to SH_LINK_SPEC.
5375 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
5376 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
5377 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
5378 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
5379 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
5380 * config/sh/coff.h: New file.
5381 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
5382 (TARGET_OBJFMT_CPP_BUILTINS): Define.
5383 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
5384 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
5385 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
5386 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
5387 (PTRDIFF_TYPE): Likewise.
5388 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
5389 (CPP_PREDEFINES): Don't define.
5390 (TARGET_OBJFMT_CPP_BUILTINS): Define.
5391 (LINK_SPEC): Define to SH_LINK_SPEC.
5392 (LINK_EMUL_PREFIX): Redefine.
5393 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
5394 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
5395 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
5396 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
5397 (TARGET_OS_CPP_BUILTINS): Define.
5398 (TARGET_DEFAULT): Redefine.
5399 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
5400 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
5401 (LINK_SPEC): Don't redefine.
5402 (LINK_DEFAULT_CPU_EMUL): Redefine.
5403 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5404 * sh.c (sh_asm_named_section): Don't declare / define.
5405 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
5406 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
5407 (sh64-*-elf* tm_file): Likewise.
5408 (sh-*-rtemself* tm_file): Likewise.
5409 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
5410 (sh-*-linux* tmake_file): Add sh/t-le.
5411 (sh-*-rtems* tm_file): Add sh/coff.h
5412 (sh-*-* tm_file): Likewise.
5413
5414 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
5415
5416 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
5417 CONSTANT_POOL_ADDRESS_P.
5418
5419 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
5420
5421 2002-05-28 David Edelsohn <edelsohn@gnu.org>
5422 Jeff Law <law@redhat.com>
5423
5424 * optabs.c (expand_binop): Fix nwords sign warnings.
5425 generate pseudo for add_optab.
5426
5427 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
5428 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
5429
5430 2002-05-28 Marc Espie <espie@openbsd.org>
5431
5432 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
5433 inherited from gas.h.
5434 (ASM_QUAD): Undef. OpenBSD does not support it.
5435
5436 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
5437
5438 * doc/install.texi (binaries): Change mingw binaries
5439 link to www.mingw.org.
5440
5441 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5442
5443 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
5444
5445 2002-05-28 Richard Henderson <rth@redhat.com>
5446
5447 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
5448 bottom alignment for leaf functions.
5449
5450 2002-05-28 Zack Weinberg <zack@codesourcery.com>
5451
5452 * config/pa/milli32.S, config/pa/lib1funcs.asm,
5453 config/sparc/sol2-g1.asm: Delete unused files.
5454
5455 2002-05-28 Richard Henderson <rth@redhat.com>
5456
5457 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
5458
5459 * flow.c (calculate_global_regs_live): Rename call_used to
5460 invalidated_by_call. Initialize from regs_invalidated_by_call
5461 instead of call_used_regs.
5462
5463 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
5464 DECL_EXTERNAL.
5465
5466 2002-05-28 Zack Weinberg <zack@codesourcery.com>
5467
5468 * tree.h: Don't include real.h.
5469 Forward-declare struct realvaluetype.
5470 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
5471 contain it.
5472 (TREE_REAL_CST_PTR): New accessor.
5473 (TREE_REAL_CST): Update.
5474 * real.h: Include machmode.h.
5475 (realvaluetype): Make it struct realvaluetype, not a typedef.
5476 (build_real): Prototype here.
5477
5478 * tree.c: Include real.h.
5479 (build_real): Allocate the REAL_VALUE_TYPE as a separate
5480 object in GC memory, set TREE_REAL_CST_PTR to point to it.
5481 (build_real_from_int_cst): Use build_real.
5482 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
5483 REAL_CST.
5484
5485 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
5486 fold-const.c, print-tree.c, real.c: Include real.h.
5487 * Makefile.in: Update dependency lists.
5488
5489 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5490
5491 * basic-block.h (last_basic_block): Declare.
5492 (expunge_block_nocompact): Declaration removed.
5493 (compact_blocks): Declare.
5494 * cfg.c (last_basic_block): New variable.
5495 (expunge_block_nocompact): Removed.
5496 (expunge_block): Do not compact basic blocks.
5497 (compact_blocks): New.
5498 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
5499 longer change.
5500 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
5501 last_basic_block.
5502 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
5503 real positions of blocks.
5504 (delete_unreachable_blocks): Simplified -- quadratic behavior now
5505 cannot occur.
5506 (cleanup_cfg): Compact blocks.
5507 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
5508 basic_block_info varray.
5509 (flow_delete_block): Comment update.
5510 (back_edge_of_syntactic_loop_p): Modify position check code.
5511 (verify_flow_info): Update checking.
5512 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
5513 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5514 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
5515 indices no longer change.
5516 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
5517 last_basic_block.
5518 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
5519 * profile.c (branch_prob): Compact blocks.
5520 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
5521 last_basic_block.
5522
5523 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
5524
5525 * config/h8300/h8300.md (two anonymous patterns): New.
5526
5527 2002-05-28 David S. Miller <davem@redhat.com>
5528
5529 * config/sparc/sparc.md (cpu): Tidy.
5530 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
5531 'trap'.
5532 (in_call_delay): Delete reference to 'return' type.
5533 (eligible_for_return_delay, in_return_delay, define_delay
5534 referencing those): Delete.
5535 (rest of file): Use new type attributes as appropriate.
5536 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
5537 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
5538 * config/sparc/ultra1_2.md (us1_single): New reservation.
5539 (us1_ialuX): Likewise.
5540 * config/sparc/ultra3.md (us3_single): Likewise.
5541 (us3_ialuX): Likewise.
5542 (us3_imul, us3_idiv): Tweak.
5543
5544 2002-05-28 Richard Henderson <rth@redhat.com>
5545
5546 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
5547 STRING_CST.
5548
5549 2002-05-28 Richard Henderson <rth@redhat.com>
5550
5551 * config.gcc: Obsolete mn10200.
5552
5553 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
5554
5555 * cppexp.c (interpret_number): Optimize for single-digit
5556 and less-than-half-precision cases.
5557 (num_trim, num_positive, num_div_op): Cast constants.
5558
5559 2002-05-27 Bo Thorsen <bo@suse.de>
5560
5561 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
5562 3.1 branch. The file was made by Jakub Jelinek.
5563 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
5564 support so multilib doesn't break. And don't define this at all
5565 when -Dinhibit_libc is used.
5566 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
5567 * config/i386/t-linux64: Implement full multilib support. Patch
5568 originally done by Andreas Jaeger and Jakub Jelinek.
5569
5570 2002-05-27 Roger Sayle <roger@eyesopen.com>
5571
5572 * c-common.c: Add support for __attribute__((nothrow)) to specify
5573 that a function cannot throw an exception (using TREE_NOTHROW).
5574 (handle_nothrow_attribute): New function to process this attribute.
5575
5576 * doc/extend.texi: Document the new nothrow function attribute.
5577
5578 2002-05-27 H.J. Lu (hjl@gnu.org)
5579
5580 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
5581 (num_positive): Likewise.
5582 (num_div_op): Likewise.
5583
5584 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
5585
5586 * c-common.c (c_common_init): Always use intmax_t.
5587
5588 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
5589
5590 * c-common.c (c_common_init): Use intmax_t for now.
5591
5592 2002-05-24 Andrew Haley <aph@redhat.com>
5593
5594 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
5595 if T is a boolean type.
5596
5597 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5598
5599 * basic-block.h (last_basic_block): Defined as synonym for
5600 n_basic_blocks.
5601 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
5602 flow_depth_first_order_compute, flow_preorder_transversal_compute,
5603 flow_dfs_compute_reverse_init): Replaced relevant occurences of
5604 n_basic_blocks with last_basic_block.
5605 * cfgbuild.c (make_edges): Likewise.
5606 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
5607 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
5608 * combine.c (combine_instructions): Likewise.
5609 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
5610 iterative_dataflow_bitmap): Likewise.
5611 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5612 calc_idoms, idoms_to_doms): Likewise.
5613 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
5614 Likewise.
5615 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
5616 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
5617 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
5618 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
5619 delete_null_pointer_checks, compute_code_hoist_vbeinout,
5620 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5621 compute_store_table, build_store_vectors): Likewise.
5622 * haifa-sched.c (sched_init): Likewise.
5623 * ifcvt.c (if_convert): Likewise.
5624 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5625 pre_edge_lcm, compute_available, compute_nearerout,
5626 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
5627 Likewise.
5628 * predict.c (estimate_probability, process_note_prediction,
5629 note_prediction_to_br_prob): Likewise.
5630 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
5631 * recog.c (split_all_insns, peephole2_optimize): Likewise.
5632 * regrename.c (copyprop_hardreg_forward): Likewise.
5633 * resource.c (init_resource_info): Likewise.
5634 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
5635 init_regions, schedule_insns): Likewise.
5636 * ssa-ccp.c (ssa_const_prop): Likewise.
5637 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5638 * ssa.c (compute_dominance_frontiers,
5639 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
5640
5641 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
5642 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
5643 sizes consistently.
5644
5645 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
5646
5647 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
5648 new.
5649 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
5650 hoist_insn_after, hoist_insn_to_edge): New.
5651
5652 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
5653
5654 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
5655 (PROP_FINAL): Include.
5656 * flow.c (life_analysis, update_life_info,
5657 init_propagate_block_info, mark_set_1, mark_used_rgs):
5658 Support SCAN_DEAD_STORE.
5659
5660 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
5661
5662 * c-common.c (c_common_init): Set CPP arithmetic precision.
5663 * cppexp.c (cpp_num_part): Move typedef ...
5664 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
5665 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
5666 (sanity_checks): Update.
5667
5668 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
5669
5670 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
5671 (mkheaders): New rule.
5672 (install-mkheaders): New rule.
5673 * configure.in (all_outputs): Add mkheaders.
5674 * configure: Regenerate.
5675 * mkheaders.in: New file.
5676
5677 2002-05-26 Jakub Jelinek <jakub@redhat.com>
5678
5679 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
5680
5681 2002-05-26 Andreas Jaeger <aj@suse.de>
5682
5683 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
5684
5685 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
5686
5687 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
5688 right_shift): Remove.
5689 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
5690 HIGH_PART): New.
5691 (struct op): Use cpp_num.
5692 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
5693 num_part_mul, num_unary_op, num_binary_op, num_negate,
5694 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
5695 num_div_op, num_lshift, num_rshift, append_digit): New.
5696 (interpret_number, parse_defined, eval_token, reduce): Update
5697 for two-integer arithmetic.
5698 (binary_handler): New typedef.
5699 (optab): Update.
5700 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
5701 (_cpp_parse_expr, reduce): Update to handle two-integers.
5702 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
5703
5704 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
5705
5706 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
5707 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
5708 branch insn into account, do not assume 1.
5709 (avr_out_sbxx_branch): New function. Optimize cases of skipping
5710 over single word insn. Handle upper half of I/O space too.
5711 * config/avr/avr.md (*sbrx_branch): Use it.
5712 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
5713 (*sbix_branch, *sbix_branch_bit7): Likewise.
5714 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
5715 Use RTL peepholes to optimize register operand sign tests.
5716
5717 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
5718
5719 * config/avr/avr.c (avr_asm_only_p): New variable.
5720 (avr_override_options): Set it here if AVR1.
5721 (asm_file_start): Test it here, report an error if set.
5722
5723 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
5724
5725 * alias.c: Fix formatting.
5726 * attribs.c: Likewise.
5727 * bb-reorder.c: Likewise.
5728 * bitmap.c: Likewise.
5729 * bitmap.h: Likewise.
5730 * builtins.c: Likewise.
5731
5732 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
5733
5734 * reload.c (find_valid_class): Accept new argument DEST,
5735 choose class accordingly.
5736 (push_reload): Update callers.
5737
5738 2002-05-26 Andreas Jaeger <aj@suse.de>
5739
5740 * combine.c (combine_instructions): Do not indent #if for
5741 traditional C.
5742
5743 2002-05-25 Richard Henderson <rth@redhat.com>
5744
5745 * c-pragma.c (apply_pragma_weak): Convert value identifier to
5746 string for decl_attributes.
5747 (handle_pragma_weak): Call assemble_alias if we're modifying
5748 an existing decl.
5749
5750 2002-05-25 Richard Henderson <rth@redhat.com>
5751
5752 PR target/6788
5753 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
5754 using rtl instead of fprintf.
5755 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
5756 * config/sparc/sparc-protos.h: Update.
5757
5758 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
5759
5760 * Makefile.in (C_COMMON_H): Fix.
5761 Update other targets.
5762 * c-common.c: Don't include c-lex.h.
5763 (builtin_define_with_value): Make static and prototype.
5764 (builtin_define_std): Move from c-lex.h.
5765 * c-common.h (init_c_lex): Move from c-lex.h.
5766 * c-decl.c: Don't include c-lex.h.
5767 (make_pointer_declarator): Move from c-parse.in.
5768 * c-lex.c: Don't include c-lex.h.
5769 * c-lex.h: Remove.
5770 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
5771 (make_pointer_declarator): Move to c-decl.c.
5772 * c-pragma.c: Don't include c-lex.h.
5773 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
5774 * c-tree.h (make_pointer_declarator): New.
5775 doc:
5776 * passes.texi, tm.texi: Update.
5777 objc:
5778 * Make-lang.in: Update and correct.
5779 * objc-act.c: Don't include c-lex.h or cpplib.h.
5780 treelang:
5781 * treetree.c: Don't include c-lex.h.
5782 config:
5783 * darwin-c.c: Don't include c-lex.h.
5784 * c4x/c4x-c.c: Don't include c-lex.h.
5785 * c4x/t-c4x: Update.
5786 * i370/i370-c.c: Don't include c-lex.h.
5787 * i370/t-i370: Update.
5788 * i960/i960-c.c: Don't include c-lex.h.
5789 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
5790 * i960/t-960bare: Update.
5791 * i960/t-vxworks: Update.
5792 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
5793 * rs6000/t-darwin: Update.
5794 * rs6000/t-rs6000-c-rule: Update.
5795 * v850/v850-c.c: Don't include c-lex.h.
5796 * v850/v850.c: Don't include c-lex.h or cpplib.h.
5797
5798
5799 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
5800
5801 * tree.def: Fix typos.
5802 * doc/install.texi: Likewise.
5803
5804 2002-05-25 Richard Henderson <rth@redhat.com>
5805
5806 * configure.in (HAVE_AS_TLS): Add ia64 test.
5807 * configure: Rebuild.
5808 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
5809 (override_options): Set it.
5810 (TARGET_HAVE_TLS): New.
5811 (sdata_symbolic_operand): Look for 's'.
5812 (tls_symbolic_operand): New.
5813 (ia64_expand_load_address): Abort for tls symbols.
5814 (gen_tls_get_addr): New.
5815 (gen_thread_pointer): New.
5816 (ia64_expand_move): Split out from movdi. Handle tls symbols.
5817 (rtx_needs_barrier): Add new unspecs.
5818 (ia64_encode_section_info): Handle tls symbols.
5819 (ia64_strip_name_encoding): Strip two encoding chars.
5820 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
5821 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
5822 (TARGET_OPTIONS): Add tls-size.
5823 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
5824 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
5825 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
5826 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
5827 (movsf, movdf): Likewise.
5828 (movdi_symbolic): Use match_scratch. Don't split if we won't
5829 have a scratch availiable.
5830 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
5831 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
5832 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
5833 * config/ia64/ia64-protos.h: Update.
5834 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
5835 sdata_symbolic_operand.
5836 (ASM_OUTPUT_LABELREF): Strip two characters.
5837
5838 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
5839
5840 * combine.c (simplify_set): Remove an unnecessary subreg.
5841
5842 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
5843
5844 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
5845
5846 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
5847
5848 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
5849
5850 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
5851
5852 2002-05-25 Roger Sayle <roger@eyesopen.com>
5853
5854 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
5855 (cond (compare x y) 0) into the equivalent (cond x y).
5856
5857 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
5858
5859 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
5860
5861 2002-05-24 Zack Weinberg <zack@codesourcery.com>
5862
5863 * config.gcc: Remove all stanzas for previously obsoleted
5864 systems. Where necessary, add explicit error stanzas to
5865 prevent removed systems from being misidentified as something
5866 else. Begin a fresh obsoletions list, with the systems that
5867 were reprieved last round.
5868 * doc/install.texi: Remove all mention of dead targets.
5869 * fixinc/mkfixinc.sh: Likewise.
5870
5871 * config/arm/arm.h: Bit 31 of target_flags is no longer
5872 reserved.
5873
5874 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
5875 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
5876 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
5877 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
5878 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
5879 config/alpha/osf12.h, config/alpha/osf2or3.h,
5880 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
5881 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
5882 config/clipper/clipper-protos.h, config/clipper/clipper.c,
5883 config/clipper/clipper.h, config/clipper/clipper.md,
5884 config/clipper/clix.h, config/convex/convex-protos.h,
5885 config/convex/convex.c, config/convex/convex.h,
5886 config/convex/convex.md, config/convex/fixinc.convex,
5887 config/convex/proto.h, config/elxsi/elxsi-protos.h,
5888 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
5889 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
5890 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
5891 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
5892 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
5893 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
5894 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
5895 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
5896 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
5897 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
5898 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
5899 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
5900 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
5901 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
5902 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
5903 config/m68k/altos3068.h, config/m68k/apollo68.h,
5904 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
5905 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
5906 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
5907 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
5908 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
5909 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
5910 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
5911 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
5912 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
5913 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
5914 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
5915 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
5916 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
5917 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
5918 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
5919 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
5920 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
5921 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
5922 config/mips/dec-osf1.h, config/mips/elflorion.h,
5923 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
5924 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
5925 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
5926 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
5927 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
5928 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
5929 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
5930 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
5931 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
5932 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
5933 config/ns32k/sequent.h, config/ns32k/tek6000.h,
5934 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
5935 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
5936 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
5937 config/sparc/rtems.h, config/we32k/we32k-protos.h,
5938 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
5939 Delete file.
5940
5941 2002-05-24 Richard Henderson <rth@redhat.com>
5942
5943 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
5944 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
5945 * config/i386/i386.c (tls_model_chars): Add leading space.
5946 (tls_symbolic_operand): Don't bias by 1.
5947 (legitimize_address): Don't unbias by 1.
5948
5949 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5950
5951 * lcm.c (optimize_mode_switching): Change bb used as indices
5952 to bb->index.
5953
5954 2002-05-24 Richard Henderson <rth@redhat.com>
5955
5956 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
5957 of update_life_info_in_dirty_blocks.
5958
5959 2002-05-24 Jakub Jelinek <jakub@redhat.com>
5960
5961 PR other/6782
5962 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
5963
5964 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
5965
5966 PR preprocessor/6780
5967 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
5968
5969 2002-05-24 Jim Blandy <jimb@redhat.com>
5970
5971 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
5972 entry with a type code of zero, marking the end of the compilation
5973 unit's macro info.
5974
5975 2002-05-24 Richard Henderson <rth@redhat.com>
5976
5977 * varasm.c (asm_output_bss): Always output one byte.
5978 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5979
5980 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5981
5982 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
5983 namespace.
5984
5985 2002-05-24 Andreas Jaeger <aj@suse.de>
5986
5987 * ggc-page.c (alloc_page): Cast variables of type size_t to
5988 unsigned long, adjust printf format string.
5989 (ggc_alloc): Likewise.
5990 (ggc_print_statistics): Likewise.
5991 (ggc_print_statistics): Correct printf format string for SCALE to
5992 use unsigned long.
5993
5994 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
5995
5996 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
5997
5998 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
5999 Zack Weinberg <zack@codesourcery.com>
6000
6001 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
6002 quoted strings.
6003 * dwarf2out.c (lookup_filename): Properly quote filename in .file
6004 directive in assembly file.
6005 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
6006 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
6007 * config/pj/pj.h (ASM_FILE_START): Likewise.
6008 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
6009 * config/avr/avr.c (asm_file_end): Likewise.
6010 * toplev.c (output_quoted_string): Handle possibly signed plain
6011 char.
6012 * toplev.h (output_clean_symbol_name): Declare
6013 * toplev.c (output_clean_symbol_name): Define.
6014 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
6015 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
6016
6017 2002-05-24 Alan Modra <amodra@bigpond.net.au>
6018
6019 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
6020
6021 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
6022
6023 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
6024 of size of unsigned.
6025
6026 2002-05-23 Richard Henderson <rth@redhat.com>
6027
6028 * configure.in (HAVE_AS_TLS): New test.
6029 * config.in, configure: Rebuild.
6030 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
6031 (ix86_tls_dialect_string, ix86_tls_dialect): New.
6032 (override_options): Set it.
6033 (tls_model_chars, tls_symbolic_operand): New.
6034 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
6035 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
6036 (local_exec_symbolic_operand): New.
6037 (get_pic_label_name): Merge into output_set_got.
6038 (ix86_asm_file_end): Emit pic_label_name if defined.
6039 (legitimate_constant_p, constant_address_p): New.
6040 (legitimate_pic_operand_p): New.
6041 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
6042 (legitimate_address_p): Likewise.
6043 (ix86_encode_section_info): Rename from i386_; handle tls decls.
6044 (ix86_strip_name_encoding): New.
6045 (get_thread_pointer): New.
6046 (legitimize_address): Handle tls symbols.
6047 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
6048 Remove UNSPEC_PLT.
6049 (struct machine_function): Add some_ld_name.
6050 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
6051 (print_operand) [&]: Use it. Handle UNSPEC_TP.
6052 (output_addr_const_extra): New.
6053 (maybe_get_pool_constant): New.
6054 (ix86_split_to_parts): Use it.
6055 (ix86_expand_move): Handle tls symbols.
6056 (ix86_tls_get_addr): New.
6057 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
6058 (TARGET_OPTIONS): Add tls-dialect.
6059 (CONSTANT_ADDRESS_P): Use new out-of-line function.
6060 (LEGITIMATE_CONSTANT_P): Likewise.
6061 (LEGITIMATE_PIC_OPERAND_P): Likewise.
6062 (TARGET_STRIP_NAME_ENCODING): New.
6063 (ASM_OUTPUT_LABELREF): New.
6064 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
6065 (OUTPUT_ADDR_CONST_EXTRA): New.
6066 (PREDICATE_CODES): Update.
6067 (ix86_tls_dialect, ix86_tls_dialect_string): New.
6068 * config/i386/i386.md: Regroup and renumber unspec constants.
6069 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
6070 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
6071 (tls_global_dynamic, tls_local_dynamic_base): New.
6072 (tls_local_dynamic_once): New.
6073 * config/i386/i386-protos.h: Update.
6074
6075 2002-05-23 Richard Henderson <rth@redhat.com>
6076
6077 * genemit.c (gen_insn): Print file:lineno comment before function.
6078 (main): likewise.
6079 * gensupport.c (struct queue_elem): Add filename member.
6080 (queue_pattern): Initialize it; update all callers.
6081 (process_include): Don't free filename.
6082 (read_md_rtx): Set read_rtx_filename.
6083
6084 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
6085
6086 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
6087
6088 2002-05-23 Richard Henderson <rth@redhat.com>
6089
6090 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
6091
6092 2002-05-23 Richard Henderson <rth@redhat.com>
6093
6094 * doc/extend.texi (C++98 Thread-Local Edits): Update with
6095 commentary from Mark.
6096
6097 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6098
6099 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
6100 Use FOR_EACH_BB macros to iterate over basic block chain.
6101 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
6102 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
6103 Likewise.
6104 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
6105 find_unreachable_blocks, create_edge_list, verify_edge_list,
6106 remove_fake_edges, add_noreturn_fake_exit_edges,
6107 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
6108 Likewise.
6109 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
6110 find_sub_basic_blocks): Likewise.
6111 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
6112 Likewise.
6113 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
6114 Likewise.
6115 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
6116 Likewise.
6117 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
6118 commit_edge_insertions, commit_edge_insertions_watch_calls,
6119 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
6120 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
6121 * conflict.c (conflict_graph_compute): Likewise.
6122 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
6123 df_modified_p, df_refs_unlink, df_dump): Likewise.
6124 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
6125 * final.c (compute_alignments): Likewise.
6126 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
6127 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
6128 count_or_remove_death_notes): Likewise.
6129 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
6130 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
6131 classic_gcse, compute_transp, cprop, compute_pre_data,
6132 compute_transpout, invalidate_nonnull_info,
6133 delete_null_pointer_checks_1, delete_null_pointer_checks,
6134 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
6135 compute_store_table, build_store_vectors, store_motion): Likewise.
6136 * global.c (global_conflicts, mark_elimination): Likewise.
6137 * graph.c (print_rtl_graph_with_bb): Likewise.
6138 * haifa-sched.c (sched_init): Likewise.
6139 * ifcvt.c (if_convert): Likewise.
6140 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
6141 compute_available, compute_nearerout, compute_rev_insert_delete,
6142 optimize_mode_switching): Likewise.
6143 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
6144 * predict.c (estimate_probability, note_prediction_to_br_prob,
6145 propagate_freq, counts_to_freqs, expensive_function_p,
6146 estimate_bb_frequencies): Likewise.
6147 * profile.c (instrument_edges, get_exec_counts,
6148 compute_branch_probabilities, compute_checksum, branch_prob,
6149 find_spanning_tree): Likewise.
6150 * recog.c (split_all_insns, peephole2_optimize): Likewise.
6151 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
6152 Likewise.
6153 * regclass.c (scan_one_insn, regclass): Likewise.
6154 * regmove.c (mark_flags_life_zones, regmove_optimize,
6155 record_stack_memrefs): Likewise.
6156 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
6157 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
6158 * resource.c (find_basic_block): Likewise.
6159 * sched-ebb.c (schedule_ebbs): Likewise.
6160 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
6161 find_single_block_region, find_rgns, schedule_insns)
6162 * sibcall.c (optimize_sibling_and_tail_recursive_call)
6163 * ssa-ccp.c (optimize_unexecutable_edges,
6164 ssa_ccp_df_delete_unreachable_insns): Likewise.
6165 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6166 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
6167 rename_block, convert_to_ssa, compute_conservative_reg_partition,
6168 compute_coalesced_reg_partition, rename_equivalent_regs,
6169 convert_from_ssa): Likewise.
6170 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
6171 process_for_unwind_directive): Likewise.
6172
6173 * df.c (FOR_ALL_BBS): Removed.
6174 * gcse.c (struct null_pointer_info): Type of current_block field
6175 changed.
6176 (struct reg_avail_info): Type of last_bb field changed.
6177 * config/ia64/ia64.c (block_num): Removed.
6178 (need_copy_state): Type changed.
6179 (last_block): New.
6180
6181 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
6182
6183 * cppinit.c (mark_named_operators): Split out from init_builtins.
6184 (cpp_finish_options): Call it from here instead.
6185
6186 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
6187
6188 * builtin-attrs.def: Update copyright years.
6189 (ATTR_NONNULL): New attribute identifier.
6190 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
6191 attribute tree lists.
6192 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
6193 format operand.
6194 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
6195 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
6196 attribute lists. Chain the appropriate nonnull attribute.
6197 * c-format.c (check_format_arg): Remove null format string
6198 warning.
6199 * testsuite/gcc.dg/format/null-1.c: New test.
6200
6201 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6202
6203 * Makefile.in (ADAC): Define.
6204 (SYSLIBS): Define.
6205 (.SUFFIXES): Move before language makefile fragments.
6206 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
6207
6208 2002-05-23 Mark Mitchell <mark@codesourcery.com>
6209
6210 * varasm.c (make_decl_rtl): Don't allow weak variables to be
6211 placed in common.
6212
6213 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
6214
6215 * cfg.c (dump_flow_info): Print results of
6216 maybe_hot/probably_never_executed predicates.
6217 * toplev.c (open_dump_file): Print function frequency.
6218
6219 2002-05-23 David S. Miller <davem@redhat.com>
6220
6221 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
6222 regsets.
6223
6224 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
6225
6226 * c-common.c (warn_nonnull): Declare.
6227 (c_common_attribute_table): Add "nonnull" attribute.
6228 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
6229 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
6230 check_function_arguments_recurse): New functions.
6231 * c-common.h (warn_nonnull): Declare extern.
6232 (check_function_arguments, check_function_arguments_recurse): New
6233 prototypes.
6234 * c-decl.c (c_decode_option): Add -Wnonnull option.
6235 * c-format.c (set_Wformat): Set warn_nonnull if enabling
6236 format checking.
6237 (format_check_context): New structure.
6238 (check_format_info_recurse): Remove recursion and rename to...
6239 (check_format_arg): ...this. Update comment.
6240 (check_format_info): Use check_function_arguments_recurse.
6241 * c-typeck.c (build_function_call): Call check_function_arguments
6242 instead of check_function_format.
6243 * doc/extend.texi: Document "nonnull" attribute.
6244 * doc/invoke.texi: Docuemnt -Wnonnull option.
6245 * testsuite/gcc.dg/nonnull-1.c: New test.
6246 * testsuite/gcc.dg/nonnull-2.c: New test.
6247
6248 2002-05-23 David S. Miller <davem@redhat.com>
6249
6250 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
6251 * cfgcleanup.c (cleanup_cfg): If it is set do not
6252 attempt to delete trivially dead insns.
6253 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
6254 * toplev.c (rest_of_compilation): Document non-trivial aspect
6255 the RTL before optimize_save_area_alloca is run.
6256
6257 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
6258
6259 * c-lex.c (indent_level): Remove.
6260 (cb_file_change, c_lex): Remove indent level handling.
6261 * c-lex.h (indent_level): Remove.
6262 * input.h (struct file_stack): Remove indent_level.
6263 * toplev.c (push_srcloc): Remove indent_level handling.
6264
6265 2002-05-23 Jakub Jelinek <jakub@redhat.com>
6266
6267 PR target/6753
6268 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
6269 of x in constraints for clarity.
6270 (sse_mov?fcc split): abort if op2 == op3.
6271 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
6272 sse_movsfcc_const0_4): Add earlyclobber.
6273 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
6274 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
6275 Use Y instead of x in constraints.
6276
6277 2002-05-23 Richard Henderson <rth@redhat.com>
6278
6279 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
6280 (C++98 Thread-Local Edits): New subsection.
6281
6282 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
6283 (ix86_arch): Set type to enum processor_type.
6284
6285 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
6286 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
6287
6288 2002-05-23 Jakub Jelinek <jakub@redhat.com>
6289
6290 * configure.in: Fix as version test for binutils 2.12.1 releases
6291 (without dates).
6292 * configure: Rebuilt.
6293
6294 2002-05-23 Richard Henderson <rth@redhat.com>
6295
6296 * config/i386/i386.c (get_pic_label_name): New.
6297 (load_pic_register): Remove.
6298 (output_set_got): New.
6299 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
6300 * config/i386/i386.md (UNSPEC_SET_GOT): New.
6301 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
6302 (prologue_set_got, prologue_get_pc): Remove.
6303 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
6304 (builtin_setjmp_receiver): Use gen_set_got.
6305 * config/i386/i386-protos.h: Update.
6306
6307 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
6308
6309 * gcse.c (hash_expr): Do not use alias set for hashing.
6310
6311 2002-05-22 Kevin Buettner <kevinb@redhat.com>
6312
6313 * dbxout.c (dbxout_class_name_qualifiers): New function.
6314 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
6315
6316 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
6317
6318 * cpperror.c (_cpp_begin_message): No special casing
6319 of CPP_FATAL_LIMIT.
6320 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
6321 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
6322 * cpplib.c (do_include_common): Use DL_ERROR.
6323 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
6324 (DL_ICE): Renumber.
6325 * fix-header.c (read_scan_file): Update.
6326
6327 2002-05-22 Richard Henderson <rth@redhat.com>
6328
6329 * config/i386/i386.c (ix86_expand_call): New function, extracted
6330 from md call patterns. Add pic_offset_table_rtx to
6331 CALL_INSN_FUNCTION_USAGE when needed.
6332 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
6333 (call_value_pop, call_value, untyped_call): Likewise.
6334 (call_exp, call_value_exp): Remove.
6335 * config/i386/i386-protos.h: Update.
6336
6337 2002-05-22 Richard Henderson <rth@redhat.com>
6338
6339 * varasm.c (default_section_type_flags): Check for VAR_DECL
6340 before using DECL_THREAD_LOCAL.
6341
6342 2002-05-22 David Edelsohn <edelsohn@gnu.org>
6343
6344 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
6345 (STARTFILE_SPEC): Delete PE crt0.o.
6346 * config/rs6000/aix51.h: Same.
6347 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
6348 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
6349 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
6350 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
6351 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
6352
6353 2002-05-22 Richard Henderson <rth@redhat.com>
6354
6355 * varasm.c (default_section_type_flags): Handle tls data and
6356 default sections.
6357 (default_unique_section): Handle tls sections.
6358
6359 2002-05-23 Alan Modra <amodra@bigpond.net.au>
6360
6361 * configure.in (CROSS): Define NATIVE_CROSS.
6362 * configure: Regenerate.
6363 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
6364 (startfile_prefix_spec): New var.
6365 (static_specs): Add startfile_prefix_spec.
6366 (do_spec_2): Split out from..
6367 (do_spec): ..here.
6368 (main): Process startfile_prefix_spec.
6369 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
6370 dynamic linker.
6371 (STARTFILE_PREFIX_SPEC): Define.
6372 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
6373 absolute paths.
6374
6375 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
6376
6377 * cpperror.c: Fix formatting.
6378 * cppexp.c: Likewise.
6379 * cppfiles.c: Likewise.
6380 * cpphash.c: Likewise.
6381 * cpphash.h: Likewise.
6382 * cppinit.c: Likewise.
6383 * cpplex.c: Likewise.
6384 * cpplib.c: Likewise.
6385 * cppmacro.c: Likewise.
6386 * cppmain.c: Likewise.
6387 * cppspec.c: Likewise.
6388
6389 2002-05-22 Jakub Jelinek <jakub@redhat.com>
6390
6391 * combine.c (force_to_mode): Use gen_int_mode.
6392 Don't clear CONST_INT bits outside of mode.
6393
6394 2002-05-22 Richard Henderson <rth@redhat.com>
6395
6396 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
6397 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6398
6399 2002-05-22 Jakub Jelinek <jakub@redhat.com>
6400
6401 PR c/6643
6402 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
6403 if DECL_SIZE_UNIT is INTEGER_CST.
6404
6405 2002-05-22 Richard Henderson <rth@redhat.com>
6406
6407 * flow.c (life_analysis): Delete broken reg_label check.
6408
6409 2002-05-22 Richard Henderson <rth@redhat.com>
6410
6411 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
6412 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6413
6414 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6415
6416 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
6417 (embed-bb.c): New rule.
6418 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
6419 * config/sh/embed_bb.c: Delete.
6420
6421 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
6422
6423 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
6424
6425 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
6426
6427 * config/h8300/h8300.md (*andorqi3): New.
6428
6429 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
6430
6431 PR preprocessor/6517
6432 * Makefile.in: Update.
6433 * c-common.c (c_common_post_options): Add preprocessor
6434 errors to the error count.
6435 * c-lang.c (c_post_options): Kill.
6436 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6437 * hooks.h: Add header guards.
6438 * langhooks-def.h: Include hooks.h.
6439 (LANG_HOOKS_POST_OPTIONS): Update.
6440 * langhooks.h (struct lang_hooks): Update post_options.
6441 * toplev.c (parse_options_and_default_flags): Update.
6442 objc:
6443 * objc-lang.c (objc_post_options): Kill.
6444 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6445
6446 2002-05-21 Bruce Korb <bkorb@gnu.org>
6447
6448 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
6449 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
6450 * fixinc/fixincl.x: regen.
6451
6452 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
6453
6454 * cfgbuild.c: Fix formatting.
6455 * cfg.c: Likewise.
6456 * cfgcleanup.c: Likewise.
6457 * cfglayout.c: Likewise.
6458 * cfgloop.c: Likewise.
6459 * cfgrtl.c: Likewise.
6460
6461 2002-05-21 Richard Henderson <rth@redhat.com>
6462
6463 * c-common.h (enum rid): Add RID_THREAD.
6464 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
6465 (grokdeclarator): Grok __thread.
6466 * c-parse.in (reswords): Add __thread.
6467 (rid_to_yy): Add RID_THREAD.
6468
6469 * tree.h (DECL_THREAD_LOCAL): New.
6470 (struct tree_decl): Add thread_local_flag.
6471 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
6472 * tree.c (staticp): TLS variables are not static.
6473
6474 * target-def.h (TARGET_HAVE_TLS): New.
6475 * target.h (have_tls): New.
6476 * output.h (SECTION_TLS): New.
6477 * varasm.c (assemble_variable): TLS variables can't be common for now.
6478 (default_section_type_flags): Handle .tdata and .tbss.
6479 (default_elf_asm_named_section): Handle SECTION_TLS.
6480 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
6481
6482 * flags.h (flag_tls_default): Declare.
6483 * toplev.c (flag_tls_default): Define.
6484 (display_help): Display help for it.
6485 (decode_f_option): Set it.
6486
6487 * doc/extend.texi (Thread-Local): New node describing language-level
6488 thread-local storage.
6489 * doc/invoke.texi (-ftls-model): Document.
6490
6491 * fixinc/inclhack.def (thread_keyword): New.
6492 * fixinc/fixincl.x: Rebuild.
6493
6494 2002-05-21 Jeffrey A Law <law@redhat.com>
6495
6496 * optabs.c (expand_binop): For double-word integer multiplies,
6497 do not compute intermediate results into something that is
6498 not a register (such as a SUBREG or MEM).
6499
6500 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
6501 (ix86_sched_reorder): Make sure to initialize scheduling
6502 data even when there's only one insn in the ready queue.
6503
6504 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
6505
6506 * genautomata.c (reserv_sets_hash_value): Fix a typo.
6507
6508 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
6509
6510 * genautomata.c (reserv_sets_hash_value): Define hash_value as
6511 set_el_t. Transform the hash value into unsigned.
6512 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
6513 (transform_3): Add code to process `(A,B)+(D,E)'.
6514
6515 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
6516
6517 * reload1.c (do_output_reload): Run delete_output_reload
6518 only if optimizing.
6519
6520 2002-05-21 Roger Sayle <roger@eyesopen.com>
6521
6522 PR middle-end/6600
6523 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
6524 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
6525 (can_store_by_pieces): ... and here to limit the largest mode used.
6526 Add a comment to document this function.
6527
6528 2002-05-21 Richard Henderson <rth@redhat.com>
6529
6530 * flow.c (life_analysis): Fix test for deleted label.
6531
6532 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
6533
6534 * doc/tm.texi: Fix typo.
6535
6536 2002-05-21 Zack Weinberg <zack@codesourcery.com>
6537
6538 * c-common.c (c_common_init): Set options->unsigned_char from
6539 flag_signed_char.
6540 (cb_register_builtins): Define __STRICT_ANSI__ and
6541 __CHAR_UNSIGNED__ here...
6542 * cppinit.c (init_builtins): Not here.
6543 (cpp_create_reader): unsigned_char option defaults to 0, not
6544 !DEFAULT_SIGNED_CHAR.
6545 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
6546 and -funsigned-char.
6547
6548 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
6549 * cpphash.c (_cpp_init_hashtable): Don't set it.
6550 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
6551 directly. Clarify comment.
6552
6553 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6554
6555 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
6556 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
6557 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
6558 BASIC_BLOCK (n_basic_blocks - 1).
6559 * cfganal.c (can_fallthru, flow_call_edges_add,
6560 flow_preorder_transversal_compute): Too.
6561 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
6562 find_sub_basic_blocks): Too.
6563 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
6564 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
6565 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
6566 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
6567 * combine.c (this_basic_block): Type changed to basic_block.
6568 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
6569 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6570 get_last_value, distribute_notes, distribute_links): Too.
6571 * final.c (compute_alignments): Too.
6572 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
6573 * function.c (thread_prologue_and_epilogue_insns): Too.
6574 * gcse.c (compute_code_hoist_vbeinout): Too.
6575 * global.c (build_insn_chain): Too.
6576 * ifcvt.c (find_if_block, find_cond_trap): Too.
6577 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
6578 * regmove.c (regmove_optimize): Too.
6579 * resource.c (find_basic_block): Too.
6580 * sched-ebb.c (schedule_ebbs): Too.
6581 * ssa-dce.c (find_control_dependence, find_pdom): Too.
6582
6583 2002-05-21 Andreas Jaeger <aj@suse.de>
6584
6585 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
6586
6587 2002-05-21 Richard Henderson <rth@redhat.com>
6588
6589 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
6590 unspec names, not numbers.
6591
6592 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
6593
6594 * doc/sourcebuild.texi: Mention snapshot-README and
6595 snapshot-index.html as needing updating for new front ends.
6596
6597 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6598
6599 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
6600 disabling checking, and avoid multiple evaluation of RTX.
6601
6602 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
6603
6604 * bitmap.c (bitmap_find_bit): Return early if we have the correct
6605 element cached.
6606
6607 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6608
6609 * profile.c (gen_edge_profiler): Set alias set before the memory is
6610 used.
6611
6612 2002-05-20 David S. Miller <davem@redhat.com>
6613
6614 * cselib.c (max_value_regs): New.
6615 (cselib_lookup, cselib_invalidate_regno): Initialize it when
6616 adding new entries to the REG_VALUES table and we are dealing with
6617 a hard register.
6618 (clear_table): Initialize it.
6619 (cselib_invalidate_regno): Use it to determine which hard
6620 registers to scan when mode is not VOIDmode.
6621
6622 2002-05-20 Duraid Madina <duraid@fl.net.au>
6623
6624 * tradcpp.c (fixup_newlines): Use old-style function header.
6625
6626 2002-05-20 Krister Walfridsson <cato@df.lth.se>
6627
6628 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
6629
6630 2002-05-20 H.J. Lu (hjl@gnu.org)
6631
6632 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
6633
6634 * config/mips/mips.h (DFMODE_NAN): Defined.
6635 (SFMODE_NAN): Likewise.
6636
6637 2002-05-20 Dale Johannesen <dalej@apple.com>
6638
6639 * combine.c (cant_combine_insn_p): Back out my
6640 previous patch.
6641
6642 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6643
6644 * params.c: Fix formatting.
6645 * params.h: Likewise.
6646 * predict.c: Likewise.
6647 * prefix.c: Likewise.
6648 * print-rtl.c: Likewise.
6649 * print-tree.c: Likewise.
6650 * profile.c: Likewise.
6651
6652 2002-05-20 H.J. Lu (hjl@gnu.org)
6653
6654 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
6655
6656 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
6657
6658 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
6659 switches straight on to the assembler, do not abbreviate them.
6660 * config/arm/elf.h (ASM_SPEC): As above.
6661 * config/arm/semi.h (ASM_SPEC): As above.
6662 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
6663 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
6664 -mcpu=xscale on to the assembler by default.
6665 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
6666
6667 2002-05-20 Richard Henderson <rth@redhat.com>
6668
6669 * cse.c (canon_hash): Reorder do_not_record test. Always
6670 allow pic_offset_table_rtx.
6671
6672 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
6673
6674 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
6675 (expand_binop): Ditto (3 times).
6676
6677 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
6678
6679 * Makefile.in (distclean): Remove QMTest stuff.
6680 (QMTEST_PATH): New variable.
6681 (QMTESTFLAGS): Likewise.
6682 (QMTESTRUNFLAGS): Likewise.
6683 (QMTEST): Likewise.
6684 (QMTEST_GPP_TESTS): Likewise.
6685 (QMTEST_DIR): Likewise.
6686 (QMTEST_DIR/context): New target.
6687 (qmtest-g++): Likeise.
6688 (qmtest-gui): Likewise.
6689 (QMTEST_DIR/gpp-expected.qmr): Likewise.
6690
6691 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
6692
6693 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
6694 an altivec register if TARGET_ALTIVEC.
6695
6696 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
6697 to ALTIVEC_VECTOR_MODE.
6698 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
6699 (rs6000_va_arg): Vectors may go in registers if they are not
6700 altivec vectors.
6701
6702 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
6703
6704 * protoize.c: Fix formatting.
6705
6706 2002-05-19 Richard Henderson <rth@redhat.com>
6707
6708 * gensupport.c (init_include_reader): Merge into ...
6709 (process_include): ... here. Simplify composite path creation.
6710 Plug memory leaks. Fix file/line number tracking. Do not
6711 process_define_cond_exec. Return void.
6712 (process_rtx): Don't check process_include return value.
6713
6714 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6715
6716 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
6717 fields.
6718 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6719 traversing basic block chain.
6720 (create_basic_block_structure, create_basic_block): Declaration changed.
6721 (link_block, unlink_block): Declare.
6722 * cfg.c (entry_exit_blocks): Initialize new fields.
6723 (link_block, unlink_block): New.
6724 (expunge_block_nocompact): Unlink basic block.
6725 (dump_flow_info): Print prev_bb/next_bb fields.
6726 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
6727 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
6728 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
6729 * cfgrtl.c (create_basic_block_structure, create_basic_block,
6730 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
6731 (verify_flow_info): Check that list agrees with numbering.
6732
6733 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
6734
6735 * c-common.c (preprocessing_asm): New macro.
6736 * c-lex.h (builtin_define, builtin_assert): Use pfile.
6737 doc:
6738 * tm.texi: Update.
6739 config/alpha:
6740 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
6741 (CPP_SPEC): Simplify.
6742 (TARGET_CPU_CPP_BUILTINS): Update.
6743 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
6744 (CPP_SPEC): Simplify.
6745 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
6746 (TARGET_OS_CPP_BUILTINS): Update.
6747 * osf.h (CPP_XFLOAT_SPEC): Kill.
6748 (TARGET_OS_CPP_BUILTINS): Update.
6749 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
6750 * osf5.h (CPP_XFLOAT_SPEC): Kill.
6751 * vms.h (CPP_SUBTARGET_SPEC): Kill.
6752 (TARGET_OS_CPP_BUILTINS): Update.
6753
6754 2002-05-19 Richard Henderson <rth@redhat.com>
6755
6756 * varasm.c (default_binds_local_p): Fix typo.
6757
6758 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
6759
6760 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
6761 CONST_INT operand to the correct mode after adding 1 to it.
6762
6763 2002-05-19 Mark Mitchell <mark@codesourcery.com>
6764
6765 * config.gcc (powerpc-wrs-windiss*): New target.
6766
6767 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6768
6769 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
6770 (ashrdi3): Use it.
6771
6772 2002-05-18 Mark Mitchell <mark@codesourcery.com>
6773
6774 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
6775 alphasort.
6776 * config.in: Regenerated.
6777 * configure: Regenerated.
6778
6779 2002-05-19 Richard Henderson <rth@redhat.com>
6780
6781 * target-def.h (TARGET_BINDS_LOCAL_P): New.
6782 * target.h (struct gcc_target): Move boolean fields to the end.
6783 Add binds_local_p.
6784 * varasm.c (default_binds_local_p): New.
6785 * output.h: Declare it.
6786
6787 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
6788 * config/cris/cris.c (cris_encode_section_info): Likewise.
6789 * config/i386/i386.c (i386_encode_section_info): Likewise.
6790 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
6791 * config/sh/sh.c (sh_encode_section_info): Likewise.
6792
6793 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
6794 (TARGET_BINDS_LOCAL_P): New.
6795
6796 2002-05-19 Richard Henderson <rth@redhat.com>
6797
6798 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
6799 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
6800 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
6801
6802 * toplev.c (display_help): Kill -a -ax help.
6803
6804 * config/1750a/1750a.h, config/alpha/alpha.h,
6805 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
6806 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
6807 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
6808 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
6809
6810 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
6811 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
6812
6813 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
6814 (ix86_output_function_block_profiler): Kill.
6815 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
6816 (m68hc11_function_block_profiler): Kill.
6817 * config/m68hc11/m68hc11-protos.h: Update.
6818 * config/m88k/m88k.c (output_block_profiler): Kill.
6819 (output_function_block_profiler): Kill.
6820 * config/m88k/m88k-protos.h: Update.
6821
6822 2002-05-19 Richard Henderson <rth@redhat.com>
6823
6824 * system.h (STRIP_NAME_ENCODING): Poison it.
6825 * output.h (STRIP_NAME_ENCODING): Remove.
6826 (default_strip_name_encoding): Declare.
6827 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
6828 * target.h (strip_name_encoding): New.
6829 * varasm.c (default_strip_name_encoding): New.
6830
6831 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
6832 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
6833 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
6834 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
6835 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
6836 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
6837 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
6838 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
6839 config/v850/v850.h: Use the hook, not the macro.
6840
6841 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6842 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
6843 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
6844 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
6845 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
6846 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
6847 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6848 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
6849 config/v850/v850.c, config/v850/v850.h:
6850 Move STRIP_NAME_ENCODING to out-of-line function and add
6851 TARGET_STRIP_NAME_ENCODING.
6852
6853 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
6854 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
6855 with TARGET_STRIP_NAME_ENCODING referencing existing function;
6856 make function static.
6857
6858 * xcoffout.c: Include target.h
6859 * Makefile.in (xcoffout.o): Update.
6860
6861 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
6862 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
6863 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
6864 reloc argument unused.
6865 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
6866
6867 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
6868 STRIP_NAME_ENCODING docs.
6869
6870 2002-05-19 Andreas Jaeger <aj@suse.de>
6871
6872 * gengenrtl.c: Add prototype for excluded_rtx.
6873
6874 * real.h: Add prototype for exact_real_truncate.
6875
6876 2002-05-18 Richard Henderson <rth@redhat.com>
6877
6878 * system.h (ENCODE_SECTION_INFO): Poison it.
6879 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
6880 * target.h (encode_section_info): New.
6881 * varasm.c (make_decl_rtl, output_constant_def): Use it.
6882 * hooks.c (hook_tree_int_void): New.
6883 * hooks.h: Declare it.
6884
6885 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6886 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
6887 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
6888 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
6889 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
6890 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
6891 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6892 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
6893 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6894 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6895 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
6896 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
6897 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
6898 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
6899 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
6900 referencing existing function. Make function static.
6901
6902 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
6903 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
6904 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
6905 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
6906 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
6907 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
6908 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
6909 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
6910 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
6911 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
6912 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
6913 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
6914 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
6915 Move ENCODE_SECTION_INFO to out-of-line function and add
6916 TARGET_ENCODE_SECTION_INFO.
6917
6918 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
6919 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6920
6921 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
6922 from SUBTARGET_*
6923 (switch_to_section): Replace in_rdata case with in_readonly_data.
6924
6925 * config/h8300/h8300.c (h8300_encode_label): Make static.
6926 * config/h8300/h8300-protos.h: Update.
6927
6928 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
6929 from rs6000_encode_section_info; make static.
6930 (rs6000_xcoff_encode_section_info): New.
6931
6932 * config/v850/v850.c (v850_encode_data_area): Make static.
6933 * config/v850/v850-protos.h: Update.
6934
6935 * config/vax/vax.c: Include flags.h.
6936 (vms_select_section): Fix typo.
6937
6938 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
6939 ENCODE_SECTION_INFO docs.
6940
6941 2002-05-18 Richard Henderson <rth@redhat.com>
6942
6943 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
6944 REGISTER_TARGET_PRAGMAS.
6945 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
6946
6947 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
6948
6949 2002-05-18 Richard Henderson <rth@redhat.com>
6950
6951 * system.h (SELECT_RTX_SECTION): Poison.
6952 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
6953 * target.h (select_rtx_section): New.
6954 * varasm.c (output_constant_pool): Use it.
6955 (default_select_rtx_section, default_elf_select_rtx_section): New.
6956 * output.h: Declare them.
6957
6958 * config/darwin.h (SELECT_RTX_SECTION): Move ...
6959 * config/darwin.c (machopic_select_rtx_section): ... here.
6960 * config/darwin-protos.h: Update.
6961
6962 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
6963 * config/nextstep.c (machopic_select_rtx_section): ... here.
6964 (nextstep_select_section): Rename variable to avoid macro clash.
6965 * config/nextstep-protos.h: Update.
6966
6967 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
6968 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
6969 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
6970 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
6971 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
6972 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
6973 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
6974 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
6975 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
6976 (SELECT_RTX_SECTION): Remove.
6977
6978 * config/darwin.h, config/elfos.h, config/nextstep.h,
6979 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
6980 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
6981 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
6982 config/sparc/lynx.h, config/xtensa/xtensa.c
6983 (TARGET_ASM_SELECT_RTX_SECTION): New.
6984
6985 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
6986 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
6987 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
6988 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
6989 (ia64_aix_select_rtx_section): New.
6990 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
6991 redefining.
6992 * config/mips/mips.c (mips_select_rtx_section): Make static.
6993 Support ELF SHF_MERGE features.
6994 * config/mips/mips-protos.h: Update.
6995 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
6996 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
6997 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
6998 make static, fall back to default_elf_select_rtx_section.
6999 * config/rs6000/rs6000-protos.h: Update.
7000 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
7001 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
7002 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
7003 * config/romp/romp.c (romp_select_rtx_section): New.
7004 * config/s390/s390.c (s390_select_rtx_section): New.
7005 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
7006 declarations before target macro definition.
7007 (xtensa_emit_call): Use static buffer.
7008 (xtensa_select_rtx_section): New.
7009 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
7010 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
7011 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
7012
7013 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
7014 SELECT_RTX_SECTION docs.
7015
7016 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
7017
7018 * i386.md (movsi/movdi): Fix template.
7019 (sse2 patterns): Set attributes consistently.
7020
7021 * i386.md (pushqi2, ashrqi_*): Fix constraint.
7022
7023 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
7024
7025 * optabs.c (complex_part_zero_p): New.
7026 * (expand_cmplxdiv_straight): Use it.
7027 * (expand_cmplxdiv_wide): Ditto.
7028 * (expand_binop): Ditto.
7029
7030 2002-05-18 Richard Henderson <rth@redhat.com>
7031
7032 * final.c (HAVE_READONLY_DATA_SECTION): New.
7033 (shorten_branches): Use it instead of ifdefs.
7034 * varasm.c (enum in_section): Add in_readonly_data.
7035 (text_section, data_section): Tidy.
7036 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
7037
7038 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
7039 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
7040 (READONLY_DATA_SECTION): Don't undef.
7041
7042 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
7043 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
7044 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
7045
7046 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
7047 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
7048 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
7049 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
7050
7051 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
7052 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
7053 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
7054 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
7055 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
7056 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
7057 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
7058 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
7059 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
7060
7061 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
7062 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
7063 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
7064 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
7065 config/pa/pa64-hpux.h, config/sparc/litecoff.h
7066 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
7067
7068 * config/elfos.h, config/netware.h, config/svr3.h,
7069 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
7070 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
7071 config/h8300/h8300.h, config/i386/i386-interix.h,
7072 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
7073 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
7074
7075 * config/elfos.h, config/netware.h, config/svr3.h,
7076 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
7077 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
7078 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
7079 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
7080
7081 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
7082 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
7083 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
7084 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
7085 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
7086 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
7087 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
7088 config/rs6000/sysv4.h, config/v850/v850.h
7089 (EXTRA_SECTIONS): Remove in_const/in_rdata.
7090 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
7091
7092 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
7093 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
7094 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
7095 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
7096 * config/alpha/alpha.c (alpha_start_function): Likewise.
7097 (alpha_write_linkage): Likewise.
7098 * config/m32r/m32r.c (m32r_select_section): Likewise.
7099 * config/m88k/m88k.c (m88k_select_section): Likewise.
7100 * config/mips/mips.c (mips_select_rtx_section): Likewise.
7101 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
7102 (rs6000_elf_select_section): Likewise.
7103 * config/v850/v850.c (v850_select_section): Likewise.
7104
7105 * config/1750a/1750a.h, config/i860/sysv3.h
7106 (READONLY_DATA_SECTION_ASM_OP): New.
7107 READONLY_DATA_SECTION_ASM_OP.
7108 * config/i386/interix.c, config/i386/winnt.c
7109 (i386_pe_unique_section): Always use .rdata prefix.
7110 * config/pa/som.h (readonly_data): Always switch to read-only section.
7111 (READONLY_DATA_SECTION): Predicate on flag_pic.
7112 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
7113 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
7114 (READONLY_DATA_SECTION): Update.
7115
7116 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
7117
7118 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
7119 is used without -Wformat.
7120 * c-common.h (warn_format_zero_length): Declare extern.
7121 * c-decl.c (warn_options): Add "format-zero-length".
7122 * c-format.c (warn_format_zero_length): Declare.
7123 (set_Wformat): Set warn_format_zero_length for -Wformat.
7124 (check_format_info): Only warn about zero-length formats if
7125 warn_format_zero_length is true. Include the format type
7126 name in the warning message.
7127 * doc/invoke.texi: Document -Wformat-zero-length.
7128 * testsuite/gcc.dg/format/zero-length-1.c: New test.
7129
7130 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
7131
7132 * timevar.c: Fix formatting.
7133 * tlink.c: Likewise.
7134 * toplev.c: Likewise.
7135 * tree-dump.c: Likewise.
7136 * tree-inline.c: Likewise.
7137
7138 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
7139
7140 * cppinit.c (cpp_post_options): If preprocessed, turn off
7141 traditional. If traditional, turn off column numbers.
7142 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
7143 * cpptrad.c (handle_newline): Update line_base.
7144 (skip_comment): Handle -Wcomment.
7145
7146 2002-05-17 Zack Weinberg <zack@codesourcery.com>
7147
7148 * cppinit.c (struct builtin): Remove unused fields.
7149 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
7150 (operator_array): New - was second half of builtin_array.
7151 (init_builtins): Simplify loop over builtin_array/operator_array.
7152
7153 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
7154
7155 * defaults.h (UNIQUE_SECTION): Remove.
7156 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
7157
7158 2002-05-17 Richard Henderson <rth@redhat.com>
7159
7160 * expr.c (init_expr_once): Don't use start/end_sequence.
7161 Use rtx_alloc instead of emit_insn.
7162 * toplev.c (lang_dependent_init): Run init_expr_once here ...
7163 (lang_independent_init): ... not here.
7164
7165 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7166
7167 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
7168
7169 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
7170
7171 * config/avr/avr.c (avr_regs_to_save): New function. Also check
7172 for fixed registers, possibly used for global register variables.
7173 (initial_elimination_offset, avr_output_function_prologue,
7174 avr_output_function_epilogue): Move common code to avr_regs_to_save.
7175
7176 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
7177
7178 * Makefile.in: Update for cpptrad.c.
7179 * cpphash.h (struct cpp_buffer): New members for buffer
7180 overlays.
7181 (struct cpp_reader): New members for traditional output.
7182 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
7183 * cppinit.c (cpp_create_reader): Set trad_line.
7184 (cpp_destroy): Free trad_out_base if used.
7185 (cpp_read_main_file): Overlay an empty buffer if traditional.
7186 (cpp_finish_options): Don't do builtins.
7187 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
7188 (cpp_handle_option): Handle it.
7189 * cpplex.c (continue_after_nul): New.
7190 (_cpp_lex_direct): Use handle_nul.
7191 * cpplib.h (struct cpp_options): New traditional option.
7192 * cpptrad.c: New file.
7193
7194 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
7195
7196 * c-common.c (c_common_init_options): Use C89 for Objective-C,
7197 and set the options flag.
7198 * cppinit.c (lang_flags): Remove objc.
7199 (lang_defaults): Remove OBJC and OBJCXX.
7200 (set_lang): Update.
7201 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
7202 (cpp_handle_option): Remove -+ and -lang-objc++.
7203 For ObjC, just set a flag.
7204 (print_help): Update.
7205 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
7206
7207 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7208
7209 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
7210 bootstrap with -mips3.
7211
7212 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
7213
7214 * final.c: Fix formatting.
7215 * fix-header.c: Likewise.
7216 * flow.c: Likewise.
7217 * fold-const.c: Likewise.
7218 * function.c: Likewise.
7219
7220 2002-05-17 David S. Miller <davem@redhat.com>
7221
7222 PR c/6689, PR optimization/6615
7223 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
7224 and make it a pointer to rtx. Update comments.
7225 (update_equiv_regs): When scanning for equivalences, record
7226 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
7227 it while making the equiv replacements.
7228
7229 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7230
7231 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
7232
7233 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
7234
7235 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
7236 when encoding visibility into SYMBOL_REF_FLAG.
7237
7238 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
7239
7240 * expr.c (force_operand): Fix reversed move.
7241
7242 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
7243
7244 * doc/install.texi (Testing): Mention two common DejaGnu warnings
7245 that can be ignored.
7246
7247 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7248
7249 * doc/install.texi (Final install): Recommend to install into a
7250 "clean" target directory.
7251
7252 2002-05-17 Richard Henderson <rth@redhat.com>
7253
7254 * config/ia64/ia64.md: Use braced strings instead of quoted strings
7255 for code blocks. Tidy whitespace.
7256
7257 2002-05-17 Richard Henderson <rth@redhat.com>
7258
7259 * hooks.c (hook_tree_bool_false): New.
7260 * hooks.h: Declare it.
7261 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
7262 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
7263 * target.h (select_section, unique_section): New.
7264 (in_small_data_p): New.
7265 * varasm.c (resolve_unique_section): Use hooks instead of macros.
7266 (variable_section, output_constant_def_contents): Likewise.
7267 (default_select_section, default_unique_section): New.
7268 (categorize_decl_for_section, default_elf_select_section): New.
7269 * output.h: Declare them.
7270
7271 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
7272 (TARGET_ASM_SELECT_SECTION): New.
7273 (SELECT_SECTION): Move ...
7274 * config/darwin.c (machopic_select_section): ... here.
7275 * config/darwin-protos.h: Update.
7276
7277 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
7278 (SELECT_SECTION): Move ...
7279 * config/nextstep.c (nextstep_select_section): ... here.
7280 * config/nextstep-protos.h: Update.
7281
7282 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
7283 (TARGET_ASM_SELECT_SECTION): New.
7284 * config/svr3.h (SELECT_SECTION): Remove.
7285
7286 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
7287 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
7288 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
7289 (alpha_encode_section_info): Use it.
7290 * config/alpha/alpha-protos.h: Update.
7291 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
7292 (SELECT_SECTION, UNIQUE_SECTION): Remove.
7293 (TARGET_ASM_SELECT_SECTION): New.
7294 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
7295
7296 * config/arm/pe.h (UNIQUE_SECTION): Remove.
7297 (TARGET_ASM_UNIQUE_SECTION): New.
7298
7299 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
7300 (avr_unique_section): Rename from unique_section; make static.
7301 * config/avr/avr-protos.h: Update.
7302 * config/avr/avr.h (UNIQUE_SECTION): Remove.
7303
7304 * config/c4x/c4x.h (SELECT_SECTION): Remove.
7305
7306 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
7307 (TARGET_ASM_UNIQUE_SECTION): New.
7308 * config/i386/i386-interix.h: Likewise.
7309 * config/i386/win32.h: Likewise.
7310 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
7311 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
7312 * config/i386/sco5.h (SELECT_SECTION): Remove.
7313 (TARGET_ASM_SELECT_SECTION): New.
7314 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
7315
7316 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
7317 instead of SELECT_SECTION.
7318 * config/m68k/dpx2.h: Likewise.
7319 * config/rs6000/lynx.h: Likewise.
7320
7321 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7322 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
7323 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
7324 (ia64_in_small_data_p): New.
7325 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
7326 (ia64_aix_select_section, ia64_aix_unique_section): New.
7327 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
7328 (SELECT_SECTION, UNIQUE_SECTION): Remove.
7329
7330 * config/m32r/m32r.h (SELECT_SECTION): Remove.
7331 (TARGET_ASM_SELECT_SECTION): New.
7332 * config/m32r/m32r.c (m32r_select_section): Take align argument.
7333 * config/m32r/m32r-protos.h: Update.
7334
7335 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
7336 (SELECT_SECTION): Move ...
7337 * config/m88k/m88k.c (m88k_select_section): ... here.
7338
7339 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
7340 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
7341 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
7342 (mcore_unique_section): Make static.
7343 * config/mcore/mcore-protos.h: Update.
7344
7345 * config/mips/elf.h (UNIQUE_SECTION): Remove.
7346 (TARGET_ASM_UNIQUE_SECTION): New.
7347 * config/mips/elf64.h: Likewise.
7348 * config/mips/iris6gld.h: Likewise.
7349 * config/mips/linux.h: Likewise.
7350 * config/mips/mips-protos.h: Update.
7351 * config/mips/mips.c (mips_select_section): Add align argument.
7352 * config/mips/mips.h (SELECT_SECTION): Remove.
7353 (TARGET_ASM_SELECT_SECTION): New.
7354
7355 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7356 * config/mmix/mmix.c (mmix_select_section): Remove.
7357 (mmix_unique_section): Remove.
7358 * config/mmix/mmix-protos.h: Update.
7359
7360 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
7361 (SELECT_SECTION): Move ...
7362 * config/pa/pa.c (pa_select_section): ... here.
7363 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
7364
7365 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
7366 from rs6000_select_section and make static.
7367 (rs6000_elf_unique_section): Similarly.
7368 (rs6000_xcoff_select_section): From xcoff.h.
7369 (rs6000_xcoff_unique_section): Likewise.
7370 * config/rs6000/rs6000-protos.h: Update.
7371 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7372 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
7373 * config/rs6000/xcoff.h: Likewise.
7374
7375 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
7376 (SELECT_SECTION): Move ...
7377 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
7378
7379 * config/v850/v850.h (SELECT_SECTION): Move ...
7380 * config/v850/v850.c (v850_select_section): ... here.
7381 (TARGET_ASM_SELECT_SECTION): New.
7382
7383 * config/vax/vms.h (SELECT_SECTION): Move ...
7384 * config/vax/vax.c (vms_select_section): ... here.
7385 (TARGET_ASM_SELECT_SECTION): New.
7386
7387 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
7388 for the target hooks.
7389
7390 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
7391
7392 * config/arm/arm.c (emit_multi_reg_push): Do not set
7393 RTX_FRAME_RELATED_P on the SEQUENCE.
7394
7395 2002-05-16 Richard Henderson <rth@redhat.com>
7396
7397 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
7398 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
7399
7400 2002-05-16 Richard Henderson <rth@redhat.com>
7401
7402 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
7403
7404 * config/ia64/ia64.c (saveable_obstack): Do not declare.
7405
7406 2002-05-16 Richard Henderson <rth@redhat.com>
7407
7408 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
7409 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
7410 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
7411 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
7412 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
7413 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
7414 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
7415 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
7416 Revert "Basic block renumbering removal", and two followup patches.
7417
7418 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
7419
7420 * lcm.c (optimize_mode_switching): Revert previous change.
7421
7422 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7423
7424 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
7425 with only extant block numbers.
7426
7427 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
7428
7429 * lcm.c (optimize_mode_switching): Fix typo.
7430
7431 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7432
7433 * flow.c (calculate_global_regs_live): Queue blocks in program order.
7434
7435 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7436
7437 * doc/install.texi (Configuration): Document PWDCMD.
7438
7439 2002-05-16 Dale Johannesen <dalej@apple.com>
7440
7441 * combine.c (cant_combine_insn_p): Reenable combinations
7442 involving hard regs unless CLASS_LIKELY_SPILLED_P.
7443
7444 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
7445
7446 * c-common.c (cb_register_builtins): Handle more built-ins
7447 here rather than in gcc.c specs.
7448 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
7449 (cpp_options): Pass -O flags even when only preprocessing.
7450 * toplev.c (set_fast_math_flags): New prototype.
7451 (fast_math_flags_set_p): New.
7452 (set_no_fast_math_flags): Remove.
7453 (decode_f_option): Update.
7454 * toplev.h (set_fast_math_flags): Update.
7455 (fast_math_flags_set_p): New.
7456 (set_no_fast_math_flags): Remove.
7457 config:
7458 * c4x/c4x.c (c4x_override_options): Update.
7459
7460 2002-05-16 Zack Weinberg <zack@codesourcery.com>
7461
7462 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
7463 Default-define here.
7464 (builtin_define_with_value): Can now wrap the expansion in
7465 quotation marks if such is wanted.
7466 (cb_register_builtins): Update calls to builtin_define_with_value.
7467 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
7468 here.
7469 (c_common_init): Set options->stdc_0_in_system_headers.
7470 * c-lex.h: Update prototype of builtin_define_with_value.
7471 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
7472 and REGISTER_PREFIX.
7473
7474 * cppinit.c (VERS, ULP, C, X): Kill.
7475 (builtin_array): Remove entries for __VERSION__,
7476 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
7477 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
7478 a constant.
7479 (init_builtins): Kill off a bunch of now-dead code.
7480 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
7481 -fno-leading-underscore.
7482 (cpp_handle_option): Remove code to set user_label_prefix.
7483 (cpp_post_options): Likewise.
7484
7485 * cpplib.h (struct cpp_options): Remove user_label_prefix.
7486 (stdc_0_in_system_headers): New.
7487 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
7488 stdc_0_in_system_headers) too to decide the value of __STDC__.
7489
7490 * tradcpp.c (user_label_prefix): Kill.
7491 (main): Remove code handling -f(no-)leading-underscore.
7492 (initialize_builtins): Don't define __REGISTER_PREFIX__
7493 or __USER_LABEL_PREFIX__.
7494 (install_value): Wrap compound statement in dummy loop so the
7495 macro works properly in an if statement.
7496
7497
7498 2002-05-16 Janis Johnson <janis187@us.ibm.com>
7499
7500 * loop.h (struct loop_info): Add member has_prefetch.
7501 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
7502 (prescan_loop): Initialize has_prefetch.
7503 (struct prefetch_info): Change prefetch_in_loop and
7504 prefetch_before_loop from bit fields to ints.
7505 (emit_prefetch_instructions): Several small fixes.
7506 (check_dbra_loop): Don't reverse loop that uses prefetch.
7507
7508 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7509
7510 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
7511 * configure.in: Likewise.
7512 * fixinc/check.tpl: Likewise.
7513 * fixinc/fixinc.dgux: Likewise.
7514 * fixinc/fixinc.svr4: Likewise.
7515 * fixinc/fixinc.winnt: Likewise.
7516 * fixinc/fixincl.sh: Likewise.
7517 * fixproto: Likewise.
7518 * configure: Regenerate.
7519
7520 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7521
7522 Basic block renumbering removal:
7523 * basic_block.h (struct basic_block_def): Renamed index to sindex,
7524 added prev_bb and next_bb fields.
7525 (n_basic_blocks): Renamed to num_basic_blocks.
7526 (last_basic_block): New, index of last basic block.
7527 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7528 traversing basic block chain.
7529 (BLOCK_NUM): index -> sindex.
7530 (create_basic_block_structure, create_basic_block): Declaration changed.
7531 (debug_num2bb): Declare.
7532 (expunge_block_nocompact): Declaration removed.
7533 (link_block, unlink_block, compact_blocks): Declare.
7534 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
7535 * cfg.c (entry_exit_blocks): Initialize new fields.
7536 (clear_edges, alloc_block, expunge_block, cached_make_edge,
7537 redirect_edge_pred, dump_flow_info, dump_edge_info,
7538 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
7539 free_aux_for_edges): Modified.
7540 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
7541 (expunge_block_nocompact): Removed.
7542 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
7543 find_unreachable_blocks, create_edge_list, print_edge_list,
7544 verify_edge_list, flow_edge_list_print, remove_fake_successors,
7545 remove_fake_edges, flow_reverse_top_sort_order_compute,
7546 flow_depth_first_order_compute, flow_preorder_transversal_compute,
7547 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
7548 flow_dfs_compute_reverse_execute): Modified.
7549 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
7550 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
7551 Modified.
7552 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7553 merge_blocks_move_predecessor_nojumps,
7554 merge_blocks_move_successor_nojumps, merge_blocks,
7555 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
7556 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
7557 * cfglayout.c (skip_insns_after_block, label_for_bb,
7558 record_effective_endpoints, scope_to_insns_finalize,
7559 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
7560 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
7561 cfg_layout_duplicate_bb): Modified.
7562 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
7563 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7564 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
7565 flow_loops_find, flow_loop_outside_edge_p): Modified.
7566 * cfgrtl.c (create_basic_block_structure, create_basic_block,
7567 flow_delete_block, compute_bb_for_insn, split_block,
7568 try_redirect_by_replacing_jump, redirect_edge_and_branch,
7569 force_nonfallthru_and_redirect, tidy_fallthru_edge,
7570 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
7571 commit_edge_insertions, commit_edge_insertions_watch_calls,
7572 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7573 purge_all_dead_edges): Modified.
7574 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
7575 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7576 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
7577 Modified.
7578 * conflict.c (conflict_graph_compute): Modified.
7579 * df.c (FOR_ALL_BBS): Removed.
7580 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7581 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
7582 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
7583 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
7584 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7585 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
7586 * final.c (compute_alignments, final_scan_insn): Modified.
7587 * flow.c (verify_local_live_at_start, update_life_info,
7588 update_life_info_in_dirty_blocks, free_basic_block_vars,
7589 delete_noop_moves, calculate_global_regs_live,
7590 initialize_uninitialized_subregs, allocate_bb_life_data,
7591 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
7592 mark_used_reg, count_or_remove_death_notes): Modified.
7593 * function.c (thread_prologue_and_epilogue_insns): Modified.
7594 * gcse.c (struct null_pointer_info): Change typo of current_block
7595 to basic_block.
7596 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
7597 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
7598 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
7599 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
7600 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
7601 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
7602 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
7603 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
7604 pre_delete, one_pre_gcse_pass, compute_transpout,
7605 invalidate_nonnull_info, delete_null_pointer_checks_1,
7606 free_code_hoist_mem, compute_code_hoist_vbeinout,
7607 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7608 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
7609 compute_store_table, build_store_vectors, insert_insn_start_bb,
7610 insert_store, replace_store_insn, free_store_memory, store_motion):
7611 Modified.
7612 * global.c (global_alloc, global_conflicts, mark_elimination,
7613 build_insn_chain): Modified.
7614 * graph.c (print_rtl_graph_with_bb): Modified.
7615 * haifa-sched.c (sched_init): Modified.
7616 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7617 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
7618 if_convert): Modified.
7619 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
7620 compute_insert_delete, pre_edge_lcm, compute_available,
7621 compute_farthest, compute_nearerout, compute_rev_insert_delete,
7622 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
7623 Modified.
7624 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
7625 * loop.c (loop_dump_aux): Modified.
7626 * predict.c (combine_predictions_for_insn, estimate_probability,
7627 last_basic_block_p, process_note_prediction, process_note_predictions,
7628 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
7629 expensive_function_p, estimate_bb_frequencies,
7630 compute_function_frequency): Modified.
7631 * print-rtl.c (print_rtx): Modified.
7632 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
7633 get_exec_counts, compute_branch_probabilities, compute_checksum,
7634 branch_prob, find_spanning_tree): Modified.
7635 * recog.c (split_all_insns, peephole2_optimize): Modified.
7636 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
7637 convert_regs_1, convert_regs_2, convert_regs): Modified.
7638 * regclass.c (scan_one_insn, regclass): Modified.
7639 * regmove.c (mark_flags_life_zones, regmove_optimize,
7640 combine_stack_adjustments): Modified.
7641 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
7642 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
7643 * reorg.c (dbr_schedule): Modified.
7644 * resource.c (find_basic_block, init_resource_info): Modified.
7645 * sbitmap.c (sbitmap_intersection_of_succs,
7646 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
7647 sbitmap_union_of_preds): Modified.
7648 * sched-deps.c (init_dependency_caches): Modified.
7649 * sched-ebb.c (schedule_ebbs): Modified.
7650 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
7651 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
7652 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
7653 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
7654 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
7655 ssa_const_prop): Modified.
7656 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
7657 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
7658 * ssa.c (remove_phi_alternative, find_evaluations,
7659 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
7660 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
7661 make_regs_equivalent_over_bad_edges,
7662 make_equivalent_phi_alternatives_equival,
7663 compute_conservative_reg_partition,
7664 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
7665 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
7666 Modified.
7667
7668 2002-05-16 Mark Mitchell <mark@codesourcery.com>
7669
7670 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
7671
7672 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
7673
7674 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
7675 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7676 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
7677 calling CONSTANT_POOL_ADDRESS_P.
7678 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
7679 to decide whether to define __arm__ or __thumb.
7680 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
7681 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7682
7683 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
7684
7685 * config/arc/arc.h (CPP_PREDEFINES): Remove.
7686 (CPP_SPEC): Update.
7687 (TARGET_CPU_CPP_BUILTINS): New.
7688
7689 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
7690
7691 * cpphash.h (cpp_macro): Move here, and make expansion a union.
7692 * cppmacro.c (cpp_macro): Remove.
7693 (enter_macro_context, replace_args, warn_of_redefinition,
7694 _cpp_create_definition, cpp_macro_definition): Update.
7695
7696 2002-05-16 Jason Merrill <jason@redhat.com>
7697
7698 * config/mips/mips.c (mips_output_external): Don't do sdata
7699 optimization for a variable with DECL_COMDAT set.
7700
7701 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
7702
7703 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
7704 Cleanups for accepting modifiers on pointers.
7705 Fix predicate typos.
7706 Allow long pointers as well as int pointers.
7707
7708 2002-05-15 Richard Henderson <rth@redhat.com>
7709
7710 * varasm.c (merge_weak): Remove special case for extern and common.
7711
7712 2002-05-15 Matt Hiller <hiller@redhat.com>
7713
7714 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
7715 XFAILing.
7716 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
7717 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
7718 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
7719 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
7720 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
7721 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
7722
7723 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
7724
7725 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
7726
7727 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
7728
7729 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
7730 ("altivec_mfvscr"): Read from VSCR.
7731
7732 Add vscr sets for the following insns: altivec_vctuxs,
7733 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
7734 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
7735 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
7736 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
7737 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
7738 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
7739 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
7740 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
7741 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
7742 altivec_vsum2sws, altivec_vsumsws.
7743
7744 * config/rs6000/rs6000.h: Add VSCR fixed register.
7745 (CALL_REALLY_USED_REGISTERS): Add vscr.
7746 (CALL_USED_REGISTERS): Same.
7747 (FIXED_REGISTERS): Same.
7748 (REG_ALLOC_ORDER): Same.
7749 (reg_class): Add VSCR_REGS.
7750 (REG_CLASS_NAMES): Same.
7751 (REG_CLASS_CONTENTS): Same.
7752 (VSCR_REGNO): New.
7753 (REGISTER_NAMES): Add vscr.
7754 (DEBUG_REGISTER_NAMES): Same.
7755 (ADDITIONAL_REGISTER_NAMES): Same.
7756 (FIRST_PSEUDO_REGISTER): Increment.
7757 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
7758
7759 2002-05-15 Jakub Jelinek <jakub@redhat.com>
7760
7761 * fold-const.c (fold): Fix a typo.
7762
7763 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
7764
7765 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
7766 comparison against the highest or lowest integer value before
7767 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
7768 transformation and that of an unsigned comparison against 0
7769 right after.
7770
7771 2002-05-15 Richard Henderson <rth@redhat.com>
7772
7773 * varasm.c (merge_weak): Error for any weakening after definition.
7774 Adjust weakening after use warning to catch more cases.
7775 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
7776 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
7777
7778 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
7779
7780 * invoke.texi (-malign-double): Re-add lost warning.
7781
7782 * i386-protos.h (x86_output_mi_thunk): Declare.
7783 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
7784 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
7785
7786 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
7787 when flag_asynchronous_unwind_tables is set.
7788
7789 * flags.h (flag_reorder_functions): Declare.
7790 * function.c (prepare_function_start): Initialize frequnecy.
7791 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
7792 * Makefile.in (predict.o): Add dependency on target.h and params.h
7793 * defaults.h (HOT_TEXT_SECTION_NAME,
7794 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
7795 * predict.c (choose_function_section): New function.
7796 (estimate_bb_frequencies): Use it.
7797 * toplev.c (flag_reorder_functions): New global variable.
7798 (lang_independent_options): New.
7799 (parse_options_and_default_flags): Set.
7800 * varasm.c (assemble_start_function): Bypass functdion alignment
7801 for never executed functions.
7802 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
7803 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
7804 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7805 Document.
7806
7807 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
7808
7809 * predict.c: Inlude profile.h
7810 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
7811 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
7812 Use the information about maximal counter in the program.
7813
7814 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
7815
7816 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
7817 probably_never_executed_bb_p): New functions.
7818 * cfgcleanup.c (outgoing_edges_match): Use them.
7819 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
7820 (maybe_hot_bb_p, probably_cold_bb_p,
7821 probably_never_executed_bb_p): New functions.
7822
7823 * function.h (function): Add new field function_frequency.
7824 * predict.c (compute_function_frequency): New function.
7825 (estimate_probability): Call it.
7826
7827 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7828
7829 PR optimization/5172, optimization/5200
7830 * gcse.c (gcse_main): Disable store_motion.
7831
7832 2002-05-14 Zack Weinberg <zack@codesourcery.com>
7833
7834 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
7835 (c_common_nodes_and_builtins): Use it.
7836 (builtin_define_with_value): New function.
7837 (cb_register_builtins): Define __SIZE_TYPE__,
7838 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
7839 using builtin_define_with_value. Use consistent notation when
7840 defining __GXX_WEAK__.
7841 (WCHAR_TYPE_SIZE): Don't redefine.
7842 (combine_strings): Don't use WCHAR_TYPE_SIZE.
7843
7844 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
7845 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
7846 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
7847 * tradcpp.c (initialize_builtins): Likewise.
7848 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
7849
7850 * c-lex.h (builtin_define_with_value): Prototype.
7851 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
7852 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
7853 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
7854
7855 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7856 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
7857 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
7858 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
7859 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
7860 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
7861 config/sparc/sol2-bi.h, config/sparc/sparc.h:
7862 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
7863 to __SIZE_TYPE__ etc from all spec strings. When this makes
7864 extra specs empty, delete them.
7865
7866 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
7867
7868 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
7869 for PA8000 or generating dwarf2 call frame information.
7870 (output_call): Remove DO_FRAME_NOTES check from return pointer
7871 optimization.
7872 (following_call): Return 0 when scheduling for PA8000 or generating
7873 dwarf2 call frame information. Revise comment.
7874
7875 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7876
7877 config/alpha:
7878 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
7879 and __IEEE_FP_INEXACT as appropriate.
7880 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
7881 (CPP_SPEC): Remove ieee defines.
7882 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
7883
7884 2002-05-14 Richard Henderson <rth@redhat.com>
7885
7886 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
7887 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
7888
7889 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7890
7891 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
7892 (CPP_SPEC): Update.
7893 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
7894 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
7895 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
7896 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
7897 (EXTRA_SPECS): Update.
7898 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
7899 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
7900 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
7901 define TARGET_OS_CPP_BUILTINS if necessary.
7902
7903 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7904
7905 * gcc.c (cpp_options): Must pass -m* and -f* options
7906 to the front end even when only preprocessing.
7907 (cc1_options): Remove redundant -lang-c.
7908 * tradcpp.c (main): Ignore -m options.
7909 objc:
7910 * lang-specs.h: Similarly.
7911
7912 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
7913
7914 * genautomata.c (transform_3): Add code for transformation
7915 `(A,B,...)+C -> A+C,B,...'.
7916
7917 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
7918
7919 * final.c (end_final): Do not output profile_arcs constructor, when
7920 no functions are instrumented.
7921
7922 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
7923
7924 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
7925
7926 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7927
7928 * doc/install.texi: Remove special markup originally required for
7929 HTML generation with texi2html.
7930
7931 2002-05-14 Andreas Schwab <schwab@suse.de>
7932
7933 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
7934 SELECT_SECTION.
7935 (UNIQUE_SECTION): Define to get small data correctly.
7936
7937 * varasm.c (resolve_unique_section): Add third parameter
7938 flag_function_or_data_sections and use it instead of
7939 flag_function_sections.
7940 (assemble_start_function): Pass flag_function_sections.
7941 (asm_emit_uninitialised): Pass flag_data_sections.
7942 (assemble_variable): Likewise.
7943
7944 2002-05-14 Richard Henderson <rth@redhat.com>
7945
7946 * config/i386/i386.md: Use define_constants for unspec numbers.
7947 * config/i386/i386.c: Likewise.
7948
7949 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7950
7951 * doc/contrib.texi: Update my entry.
7952
7953 2002-05-13 Mark Mitchell <mark@codesourcery.com>
7954
7955 * fixinc/inclhack.def (winidss_valist): Limit applicability.
7956 * fixinc/fixincl.x: Regenerated.
7957 * fixinc/tests/base/math.h: Update.
7958 * fixinc/tests/base/testing.h: Likewise.
7959
7960 2002-05-13 Zack Weinberg <zack@codesourcery.com>
7961
7962 * genattr.c (gen_attr): Don't emit a comma after the last
7963 enumerator.
7964
7965 2002-05-13 Richard Henderson <rth@redhat.com>
7966
7967 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
7968 by non-local gotos.
7969 * recog.c (peephole2_optimize): Likewise.
7970
7971 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
7972
7973 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
7974 input to O_BINARY.
7975
7976 2002-05-13 Jeffrey A Law (law@redhat.com)
7977
7978 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
7979 Update prototype and callers.
7980 (propagate_one_insn): Stack pointer adjustments kill MEMs on
7981 the mem_set_list which reference the stack pointer, as do
7982 calls to constant functions as they may clobber outgoing
7983 argument space.
7984
7985 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
7986
7987 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7988 (ia32_multipass_dfa_lookahead): New function.
7989
7990 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7991
7992 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
7993 (translate_options): Remove 'V'.
7994 (process_command): Similarly.
7995 doc:
7996 * invoke.texi: Remove documentation of 'V'.
7997
7998 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7999
8000 * config/s390/linux.h: Revert 2002-04-22 changes.
8001
8002 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
8003
8004 * config/fr30/fr30.md: Only allow splits of immediate loads
8005 if the destination is a register.
8006
8007 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
8008
8009 * Makefile.in (c-common.o, cppinit.o): Update.
8010 * c-common.c: Include except.h.
8011 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
8012 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
8013 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
8014 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
8015 CPP_PREDEFINES): Handle here.
8016 config:
8017 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
8018 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
8019 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
8020 TARGET_OS_CPP_BUILTINS.
8021 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
8022 (CPP_SPEC, EXTRA_SPECS): Update.
8023 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
8024 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
8025 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
8026 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
8027 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
8028 doc:
8029 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
8030 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
8031
8032 2002-05-12 Zack Weinberg <zack@codesourcery.com>
8033
8034 * emit-rtl.c (global_rtl): Update comment.
8035 (const_double_htab, const_double_htab_hash,
8036 const_double_htab_hash, lookup_const_double): New.
8037 (const_int_htab_hash, const_int_htab_eq): Remove const
8038 qualifiers, which cause tons of warnings with RTL checking on.
8039 (gen_rtx_CONST_DOUBLE): Deleted.
8040 (const_double_from_real_value): New function - bears some
8041 resemblance to the former immed_real_const_1.
8042 (immed_double_const): Moved here from varasm.c and
8043 simplified.
8044 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
8045 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
8046 (gen_rtx): Use immed_double_const.
8047 (init_emit_once): Initialize the const_double_htab. Use
8048 REAL_VALUE_FROM_INT where possible. Can now use
8049 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
8050 * varasm.c (struct varasm_status): Remove x_const_double_chain.
8051 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
8052 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
8053 (init_varasm_status, mark_varasm_status): Don't touch
8054 x_const_double_chain.
8055
8056 * output.h: Delete prototype for clear_const_double_mem.
8057 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
8058 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
8059 const_double_from_real_value, not immed_real_const_1, and use
8060 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
8061 CONST_DOUBLE_ATOF.
8062 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
8063 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
8064 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
8065 (gen_rtx_REG): Second arg is unsigned.
8066
8067 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
8068 (excluded_rtx): New, return true for CONST_DOUBLE.
8069 (genmacro): Write nothing for excluded codes.
8070 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
8071 * expr.c (expand_expr): Likewise.
8072 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
8073 CONST_DOUBLE_CHAIN.
8074 * toplev.c (rest_of_compilation): Don't call
8075 clear_const_double_mem.
8076
8077 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
8078 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
8079 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
8080 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
8081 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
8082 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
8083 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
8084 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
8085
8086 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8087
8088 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
8089
8090 2002-05-12 Tom Tromey <tromey@redhat.com>
8091
8092 * tree.h (copy_node): Don't mention TREE_PERMANENT.
8093
8094 2002-05-12 Zack Weinberg <zack@codesourcery.com>
8095
8096 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
8097 (scan_comma_elt): New function. Accepts whitespace in comma lists.
8098 * gensupport.h: Prototype new routines.
8099 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
8100 use of printf.
8101 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
8102 (next_comma_elt): Use scan_comma_elt.
8103
8104 * config/i386/i386.md: Use new attribute notation to break up
8105 long lines in define_attr forms.
8106
8107 2002-05-12 Richard Henderson <rth@redhat.com>
8108
8109 * expr.c (compress_float_constant): New.
8110 (emit_move_insn): Use it.
8111 (float_extend_from_mem): New.
8112 (init_expr_once): Initialize it.
8113 * real.c (exact_real_truncate): New.
8114
8115 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
8116 dropped into memory; penalize for size.
8117 (RTX_COSTS): FLOAT_EXTEND is free.
8118 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
8119 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
8120
8121 2002-05-12 Richard Henderson <rth@redhat.com>
8122
8123 * profile.h (profile_info): Add missing extern to declaration.
8124 * profile.c (profile_info): Define it.
8125
8126 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8127
8128 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
8129 used for DImode and TImode.
8130
8131 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
8132
8133 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
8134 fake a newline.
8135
8136 2002-05-11 Zack Weinberg <zack@codesourcery.com>
8137
8138 * config/rs6000/rs6000.c (rs6000_default_long_calls,
8139 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
8140 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
8141 (rs6000_override_options): Handle -m(no-)longcall.
8142 (init_cumulative_args, output_mi_thunk): Check for both
8143 longcall and shortcall attributes on the function.
8144 (rs6000_attribute_table): Add "shortcall".
8145 (rs6000_handle_longcall_attribute): Update comment.
8146 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
8147 altivec_expand_ternop_builtin): Add default clauses to switches
8148 to silence warnings.
8149
8150 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
8151 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
8152 (TARGET_OPTIONS): Add longcall and no-longcall.
8153
8154 * config/rs6000/rs6000.md (call_nonlocal_sysv,
8155 call_value_nonlocal_sysv): Split by alternatives. One pair
8156 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
8157 the call cookie. The other pair accepts only LR/CTR and has
8158 no restriction.
8159
8160 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
8161 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
8162 tmake_file.
8163 * config/rs6000/rs6000-c.c: New file.
8164 * config/rs6000/t-rs6000-c-rule: New file.
8165 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
8166 Prototype rs6000_pragma_longcall.
8167
8168 * doc/extend.texi: Document shortcall attribute.
8169 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
8170
8171 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8172
8173 * reorg.c (dbr_schedule): Remove unnecessary test.
8174
8175 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
8176
8177 * i386.md (testsi to testqi spliters): New.
8178
8179 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
8180
8181 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
8182
8183 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
8184
8185 * basic-block.h: New flag EDGE_CAN_FALLTHRU
8186 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
8187 that can be made fallthru.
8188
8189 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
8190
8191 * cfglayout.c (cleanup_unconditional_jumps): New static function.
8192 (cfg_layout_initialize): Use it.
8193
8194 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
8195
8196 * config/avr/avr.c (avr_mcu_types): Update supported devices.
8197 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
8198 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
8199
8200 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
8201
8202 * dbxout.c: Fix formatting.
8203 * dependence.c: Likewise.
8204 * df.c: Likewise.
8205 * diagnostic.c: Likewise.
8206 * doloop.c: Likewise.
8207 * dominance.c: Likewise.
8208 * doschk.c: Likewise.
8209 * dwarf2asm.c: Likewise.
8210 * dwarf2out.c: Likewise.
8211 * dwarfout.c: Likewise.
8212
8213 2002-05-10 Richard Henderson <rth@redhat.com>
8214
8215 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
8216 Convert integers constants as needed. Replace "nwords" field with
8217 "sizeof_bb".
8218 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
8219 * function.h: Fix typo in comment.
8220 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
8221
8222 2002-05-10 Roger Sayle <roger@eyesopen.com>
8223
8224 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
8225 into the equivalent (signed char)c > 0.
8226
8227 2002-05-10 Janis Johnson <janis187@us.ibm.com>
8228
8229 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
8230 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
8231 (struct prefetch_info): Fix spelling of member bytes_accessed.
8232 (emit_prefetch_instructions): Make dump messages more regular;
8233 restructure code to add more dump messages; use new macros for
8234 heuristics. (There are no code generation changes in any of this).
8235
8236 2002-05-10 David S. Miller <davem@redhat.com>
8237
8238 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
8239 (struct rtx_def): Update unchanging flag comment.
8240 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
8241 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
8242 to be handled to INSN too.
8243 (dbr_schedule): Likewise.
8244 * resource.c (next_insn_no_annul): Likewise.
8245
8246 * cse.c (rtx_cost): Remove multiplication by power of 2 special
8247 casing.
8248
8249 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8250
8251 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
8252 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
8253 (possibly) work around broken /bin/sh.
8254
8255 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8256
8257 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
8258 . as N64/N32 libgcc_s.so subdirs.
8259
8260 2002-05-10 David S. Miller <davem@redhat.com>
8261
8262 * config/sparc/sparc.md: Use define_constants for unspec numbers.
8263
8264 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
8265 more accurately.
8266 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
8267 comment.
8268 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
8269 * doc/rtl.texi: Document these macros more accurately.
8270 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
8271 JUMP_INSNs and CALL_INSNs.
8272 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
8273 or INSN_FROM_TARGET_P if the code is appropriate.
8274
8275 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
8276
8277 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
8278 before using SYMBOL_REF_FLAG (addr).
8279
8280 * config/avr/avr-protos.h (avr_io_address_p): Declare.
8281 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
8282 Make non-static. Update all callers.
8283 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
8284 New insns to clear/set/test a single bit in I/O address space.
8285
8286 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8287
8288 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
8289
8290 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
8291
8292 * Makefile.in: Update.
8293 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
8294 builtin_define_std): New.
8295 (c_common_init): Register CPP builtins callback.
8296 * c-common.h (flag_iso, flag_undef): New.
8297 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
8298 * c-lex.c: Don't include target.h.
8299 (cb_register_builtins): Move to c-common.c.
8300 (init_c_lex): Don't register hook here.
8301 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
8302 (cpp_define, cpp_assert): Remove.
8303 * gcc.c (cc1_options): Pass -undef to front end.
8304 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
8305 (TARGET_INITIALIZER): Update.
8306 * target.h (struct cpp_reader): Don't predeclare.
8307 (struct gcc_target): Remove cpp builtin hook.
8308 * tree.c (default_register_cpp_builtins): Remove.
8309 doc:
8310 * tm.texi: Update.
8311
8312 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
8313
8314 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
8315
8316 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8317
8318 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
8319 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
8320
8321 2002-05-09 Jakub Jelinek <jakub@redhat.com>
8322
8323 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
8324 * config/sparc/libgcc-sparc-glibc.ver: New file.
8325 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
8326 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
8327
8328 2002-05-09 Jakub Jelinek <jakub@redhat.com>
8329
8330 PR target/6429
8331 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
8332 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
8333 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
8334 base multilibs.
8335 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
8336 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
8337 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
8338 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
8339
8340 2002-05-09 Richard Henderson <rth@redhat.com>
8341
8342 * config/ia64/ia64.md: Use define_constants for unspec numbers.
8343 * config/ia64/ia64.c: Likewise.
8344
8345 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
8346
8347 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
8348 (save_restore_insns): Likewise.
8349 (mips_expand_prologue, mips_expand_epilogue): Update callers.
8350 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
8351
8352 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
8353
8354 * athlon.md, k6.md, pentium.md, ppro.md): New files.
8355 * i386.md: Move scheduling information into new files.
8356
8357 * i386.md (type attribute): Add "rotate" for rotate insns.
8358 (rotate insns): Set type to "rotate".
8359 (various attributes and function units): Treat rotate like shift.
8360 (pent_pair attribute): Only rotates by one bit position are
8361 pairable.
8362 (sbb insns): Explicitly set pent_pair attribute on a couple
8363 that were missing it.
8364
8365 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
8366
8367 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
8368 make sure that buffer starts on odd word address.
8369 (sh_va_arg): Skip odd fp registers when reading a double precision
8370 value.
8371
8372 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
8373
8374 * tree.h (preserve_data, object_permanent_p, type_precision):
8375 Remove.
8376
8377 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
8378
8379 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
8380 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
8381 doc:
8382 * cpp.texi: Update for removal of obsolete features.
8383
8384 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
8385 Jeffrey A Law (law@redhat.com)
8386
8387 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
8388 the DFA interface for Pentium processors.
8389 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
8390 (attr_pent_pair, ix86_pent_find_pair): Remove.
8391 (ix86_sched_reorder_pentium): Remove.
8392 (ix86_sched_reorder): Remove reordering for Pentium.
8393 * i386.md (Pentium scheduling): Rewrite using DFA description.
8394
8395 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
8396
8397 * cfganal.c (can_fallthru): Fix fast path.
8398 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
8399 with edges to the next block.
8400
8401 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
8402 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
8403
8404 * final.c (end_final): Use C trees to output data structures for profiling.
8405
8406 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
8407 (profile.o): New dependency profile.h
8408 (final.o): New dependency profile.h
8409 * profile.h: New file. New global structure profile_info.
8410 * final.h (count_edges_instrumented_now): Declare.
8411 (current_function_cfg_checksum): Declare.
8412 (function_list): New structure.
8413 (functions_head, functions_tail): New static variables.
8414 (end_final): Emits more data, removed some -ax stuff.
8415 (final): Stores function names and chcksums.
8416 * gcov-io.h (__write_gcov_string): New function.
8417 (__read_gcov_string): New function.
8418 * gcov.c (read_profile): New function.
8419 (create_program_flow_graph): Uses read_profile instead of reading
8420 da_file.
8421 (read_files): Removed da_file checking, it's done by read_profile now.
8422 * libgcc2.c (bb_function_info): New structure.
8423 (bb): New field in structure, removed some -ax stuff.
8424 (__bb_exit_func): Changed structure of da_file.
8425 * profile.c (count_edges_instrumented_now): New global variable.
8426 (current_function_cfg_checksum): New global variable.
8427 (max_counter_in_program): New global variable.
8428 (get_exec_counts): New function.
8429 (compute_checksum): New function.
8430 (instrument_edges): Sets count_edges_instrumented_now.
8431 (compute_branch_probabilities): Uses get_exec_counts instead of
8432 reading da_file.
8433 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
8434 (init_branch_prob): Removed da_file checking, done in get_exec_counts
8435 now.
8436 (end_branch_prob): Removed da_file checking, done in get_exec_counts
8437 now.
8438 * gcov.texi: Updated information about gcov file format.
8439
8440 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
8441
8442 * sbitmap.c: Fix formatting.
8443 * scan.c: Likewise.
8444 * scan-decls.c: Likewise.
8445 * sched-deps.c: Likewise.
8446 * sched-ebb.c: Likewise.
8447 * sched-rgn.c: Likewise.
8448 * sched-vis.c: Likewise.
8449 * sdbout.c: Likewise.
8450 * sibcall.c: Likewise.
8451 * simplify-rtx.c: Likewise.
8452 * ssa.c: Likewise.
8453 * ssa-ccp.c: Likewise.
8454 * ssa-dce.c: Likewise.
8455 * stmt.c: Likewise.
8456 * stor-layout.c: Likewise.
8457 * stringpool.c: Likewise.
8458
8459 2002-05-09 David S. Miller <davem@redhat.com>
8460
8461 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
8462
8463 2002-05-07 David S. Miller <davem@redhat.com>
8464
8465 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
8466 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
8467 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
8468 library implementation clobbers the output before the inputs
8469 are fully consumed, use stack temporary for the output.
8470
8471 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
8472
8473 * config/netbsd.h (CPP_SPEC): Remove.
8474 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
8475 * config/i386/netbsd.h (CPP_SPEC): Define.
8476 * config/ns32k/netbsd.h (CPP_SPEC): Define.
8477 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
8478 * config/sparc/netbsd.h (CPP_SPEC): Define.
8479 * config/vax/netbsd.h (CPP_SPEC): Define.
8480
8481 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
8482
8483 * read-rtl.c: Fix formatting.
8484 * real.c: Likewise.
8485 * recog.c: Likewise.
8486 * regclass.c: Likewise.
8487 * regmove.c: Likewise.
8488 * reg-stack.c: Likewise.
8489 * reload1.c: Likewise.
8490 * reload.c: Likewise.
8491 * resource.c: Likewise.
8492 * rtlanal.c: Likewise.
8493 * rtl.c: Likewise.
8494 * rtl-error.c: Likewise.
8495
8496 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
8497
8498 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
8499 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
8500
8501 2002-05-08 Bernd Schmidt <bernds@redhat.com>
8502
8503 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
8504 use __SSE2__ macro instead.
8505 * config/i386/xmmintrin.h: Likewise.
8506
8507 2002-05-08 Janis Johnson <janis187@us.ibm.com>
8508
8509 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
8510 and use it in all invocations of these macros. Clean up comments.
8511 * rtl.c (rtl_check_failed_flag): Add an argument for the name
8512 of the flag access macro whose check failed.
8513 * doc/rtl.texi (Flags): Document additional flag uses.
8514
8515 2002-05-08 Robert Spier <rspier@pobox.com>
8516 Neil Booth <neil@daikokuya.demon.co.uk>
8517
8518 PR preprocessor/6521
8519 * cppfiles.c (handle_missing_header): Don't do anything
8520 different for <> includes.
8521 doc:
8522 * cppopts.texi: Update documentation for -MG.
8523
8524 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
8525
8526 * cpplex.c (cpp_interpret_charconst): Truncate as well as
8527 sign-extend.
8528 doc:
8529 * cpp.texi: Clarify multichar charconst valuation.
8530
8531 2002-05-08 Mark Mitchell <mark@codesourcery.com>
8532
8533 * doc/invoke.texi: Document -mwindiss option.
8534
8535 2002-05-08 Jason Merrill <jason@redhat.com>
8536
8537 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
8538
8539 * dwarf2out.c (gen_type_die): Abort on broken recursion.
8540
8541 PR c++/6381
8542 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
8543 REAL_CST.
8544
8545 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
8546
8547 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
8548 little-endian multilibs to override arm/thumb multilibs.
8549 Do not build hardware floating point multilibs, nor apcs-26
8550 multilibs for the Thumb.
8551
8552 2002-05-08 Mark Mitchell <mark@codesourcery.com>
8553
8554 PR c/6569.
8555 * varasm.c (mark_weak): New function.
8556 (merge_weak): Use it. Do not call declare_weak.
8557 (declare_weak): Use merge_weak.
8558
8559 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
8560
8561 * cse.c (dead_libcall_p): Update counts.
8562 (delete_trivially_dead_insns): Update call of dead_libcall_p.
8563
8564 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
8565
8566 * cfglayout.c (function_tail_eff_head): Rename to ...
8567 (function_footer): ... this one.
8568 (unlink_insn_chain): New functions.
8569 (label_for_bb): Only call block_label and emit debug message.
8570 (record_effective_endpoints): Actually unlink the headers and footers.
8571 (fixup_reorder_cahin): Re-insert the unlinked sequences.
8572 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
8573 * cfglayout.h (struct reorder_block_def): New fields footer/header;
8574 remove eff_head/eff_end.
8575 * rtl.h (set_first_insn): Declare.
8576 * emit-rtl.c (set_first_insn): New function.
8577
8578 * cfglayout.c (fixup_reorder_chain): Dump duplicated
8579 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8580 cfg_layout_duplicate_bb): New global function.
8581 (duplicate_insn_chain): New static function.
8582 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8583 cfg_layout_duplicate_bb): Declare.
8584 (struct reorder_block_def): Add "original" field.
8585 * emit-rtl.c (emit_copy_of_insn_after): New function.
8586 * rtl.h (emit_copy_of_insn_after): Declare.
8587
8588 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
8589 (fixup_reorder_chain): properly handle edges to exit block.
8590
8591 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8592 Jan Hubicka <jh@suse.cz>
8593
8594 * basic-block.h (note_prediction_to_br_prob): declare.
8595 * c-semantics.c: Inlucde predit.h
8596 (expand_stmt): predict GOTO_STMT as not taken.
8597 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
8598 (cleanup_cfg): Do not free tail_recursion_list.
8599 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
8600 (flow_delete_block): Kill predictions past end of basic block.
8601 * output.h (delete_unreachable_blocks): Declare.
8602 * predict.c (predicted_by_p, process_note_predictions,
8603 process_note_prediction, last_block_p): New function.
8604 (estimate_probability): Bypass loop on PRED_CONTINUE;
8605 do not handle noreturn heuristics; kill PRED_RETURN; add
8606 PRED_EARLY_RETURN.
8607 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
8608 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
8609 * predict.h (IS_TAKEN): New constant.
8610 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
8611 * rtl.c (NOTE_INSN_PREDICTION): New.
8612 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
8613 New macro.
8614 (insn_note): add NOTE_INSN_PREDICTION.
8615 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
8616 CFG; free tail_recursion_label_list.
8617 * stmt.c: Include predict.h;
8618 (return_prediction): New.
8619 (expand_value_return): Use it.
8620 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
8621
8622 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
8623
8624 * config/mips/mips.md: Name the unspecs with define_constant.
8625 (*HILO_delay): Rename to 'hilo_delay' (no star).
8626 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
8627 (reload_outdi, reload_outsi): Likewise.
8628
8629 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
8630
8631 * toplev.c: Fix formatting.
8632
8633 2002-05-07 Janis Johnson <janis187@us.ibm.com>
8634
8635 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
8636 * configure.in (ac_rtlflag_checking): New.
8637 * doc/install.texi (--enable-checking): Document RTL flag checking.
8638
8639 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
8640
8641 * c-common.c (c_common_init): Set options->unsigned_wchar.
8642 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
8643 group target dependencies.
8644 (init_builtins, cpp_handle_option): Update.
8645 * cpplex.c (cpp_interpret_charconst): Update.
8646 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
8647 signed_char to unsigned_char, group target dependencies.
8648 * defaults.h (WCHAR_UNSIGNED): Remove.
8649 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
8650 config:
8651 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
8652 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
8653 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
8654 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
8655 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
8656 doc:
8657 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
8658
8659 2002-05-07 Mark Mitchell <mark@codesourcery.com>
8660
8661 * fixinc/inclhack.def (windiss_math1): New fix.
8662 (windiss_math2): Likewise.
8663 (windiss_valist): Likewise.
8664 * fixinc/fixincl.x: Regenerated.
8665
8666 2002-05-07 Andreas Jaeger <aj@suse.de>
8667
8668 * genautomata.c (output_internal_min_issue_delay_func): Add
8669 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
8670 (output_internal_trans_func): Likewise.
8671
8672 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
8673
8674 * pa.c (hppa_profile_hook): Use force_reg to get the address
8675 of the profile hook into an appropriate pseudo register.
8676
8677 2002-05-07 Mark Mitchell <mark@codesourcery.com>
8678
8679 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
8680 (LINK_START_SPEC): Handle it.
8681 (LINK_OS_SPEC): Likewise.
8682 (CPP_SPEC): Likewise.
8683 (STARTFILE_SPEC): Likewise.
8684 (LIB_SPEC): Likewise.
8685 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
8686 all platforms.
8687 (CRTSAVRES_DEFAULT_SPEC): New macro.
8688 (LIB_WINDISS_SPEC): New macro.
8689 (CPP_OS_WINDISS_SPEC): Likewise.
8690 (STARTFILE_WINDISS_SPEC): Likewise.
8691 (ENDFILE_WINDISS_SPEC): Likewise.
8692 (LINK_START_WINDISS_SPEC): Likewise.
8693 (LINK_OS_WINDISS_SPEC): Likewise.
8694 * config/rs6000/windiss.h: New file.
8695
8696 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
8697
8698 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
8699
8700 2002-05-06 David S. Miller <davem@redhat.com>
8701
8702 * config/sparc/sparc.md (shift insns): Do not mask off
8703 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
8704 take care of it.
8705
8706 2002-05-06 Richard Henderson <rth@redhat.com>
8707
8708 PR c++/6212
8709 * expr.c (highest_pow2_factor_for_type): New.
8710 (expand_assignment): Use it.
8711
8712 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
8713
8714 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
8715 unspec_volatile.
8716 ("altivec_mfvscr"): Same.
8717
8718 2002-05-06 Janis Johnson <janis187@us.ibm.com>
8719
8720 * rtl.h (struct rtx_def): Update comments.
8721 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
8722 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
8723 RTL_FLAG_CHECK macros with list of expected RTL codes.
8724 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
8725 (rtl_check_failed_flag): New.
8726 * reload1.c (reload): Use REG macro before changing rtx to MEM.
8727 (reload_cse_noop_set_p): Check rtx code before using access macro.
8728 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
8729 before using access macro.
8730
8731 2002-05-06 Janis Johnson <janis187@us.ibm.com>
8732
8733 * doc/rtl.texi (Flags): Update to reflect current usage.
8734
8735 2002-05-06 Roger Sayle <roger@eyesopen.com>
8736
8737 PR opt/3995
8738 * fold-const.c (sign_bit_p): New function.
8739 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
8740 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
8741 Reapply fold when converting (A & C) == C into (A & C) != 0.
8742 (fold_binary_op_with_conditional_arg): Fix typo in comment.
8743
8744 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
8745
8746 * c-common.c (warn_multichar): New.
8747 (c_common_init): Set CPP's warn_multichar.
8748 * c-common.h (warn_multichar): New.
8749 * c-decl.c (warn_multichar): Remove.
8750 * c-lex.c (lex_charconst): Update.
8751 * c-tree.h (warn_multichar): Remove.
8752 * cppexp.c (eval_token): Sign-extend charconst value.
8753 * cppinit.c (cpp_create_reader): Set warn_multichar.
8754 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
8755 each character. Update prototype. Sign-extend the result.
8756 * cpplib.h: Fix conditions.
8757 (struct cpp_options): Add new warning flag.
8758 (cpp_interpret_charconst): Update prototype.
8759 doc:
8760 * cpp.texi: Update documentation.
8761
8762 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
8763
8764 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
8765 Fix typo in usage of allof instead of unit.
8766
8767 2002-05-06 Richard Henderson <rth@redhat.com>
8768
8769 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
8770 and any jump or call for IN.
8771
8772 2002-05-06 Bernd Schmidt <bernds@redhat.com>
8773
8774 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
8775 -msse2.
8776 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
8777
8778 2002-05-06 Roger Sayle <roger@eyesopen.com>
8779
8780 * fold-const.c (lshift-double): Cast the high word to an unsigned
8781 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
8782 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
8783 avoid compiler warning. (fold): Remove redundant code from
8784 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
8785
8786 2002-05-06 Jeff Law <law@redhat.com>
8787
8788 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
8789 * pa.c (pa_adjust_cost): Remove all true dependency cost
8790 adjustments. Also remove support for non-DFA scheduling.
8791 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
8792 to adjust true dependency costs. Update various comments.
8793 (7100lc, 7200, 7300 scheduling): Simplify by combining the
8794 FP ALU & MPY units into a single unit.
8795
8796 2002-05-06 Catherine Moore <clm@redhat.com>
8797
8798 * config/v850/v850.c (compute_register_save_size): Make sure
8799 to count all of the registers that will be saved.
8800
8801 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
8802
8803 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
8804
8805 2002-05-06 David S. Miller <davem@redhat.com>
8806
8807 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
8808 allow result to overlap input operands in memory.
8809
8810 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
8811
8812 doc:
8813 * cpp.texi: Update multichar charconst docs.
8814
8815 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
8816
8817 * cpplex.c (cpp_interpret_charconst): Sign-extend each
8818 character. Don't ignore excess characters. Treat
8819 multicharacter character constants as signed.
8820 (cpp_parse_escape): Clarify diagnostic.
8821
8822 2002-05-05 Jakub Jelinek <jakub@redhat.com>
8823
8824 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
8825 use add instead of shift.
8826 (ashldi3_sp64): Likewise.
8827 (ashlsi3_const1, ashldi3_const1): Remove.
8828 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
8829 * config/sparc/sparc.c (const1_operand): New.
8830
8831 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
8832
8833 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
8834
8835 2002-05-05 Jakub Jelinek <jakub@redhat.com>
8836
8837 PR target/6561
8838 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
8839
8840 2002-05-05 Richard Henderson <rth@redhat.com>
8841
8842 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
8843 memory latency adjustments.
8844 (alpha_variable_issue): Remove.
8845 (alpha_use_dfa_pipeline_interface): New.
8846 (alpha_multipass_dfa_lookahead): New.
8847 * config/alpha/alpha.md: Remove define_function_unit scheduling;
8848 include new dfa scheduling.
8849 (attr type): Add none.
8850 (blockage): Use it.
8851 * config/alpha/ev4.md: New.
8852 * config/alpha/ev5.md: New.
8853 * config/alpha/ev6.md: New.
8854
8855 2002-05-05 David S. Miller <davem@redhat.com>
8856
8857 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
8858
8859 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
8860
8861 * cse.c: Fix formatting.
8862 * emit-rtl.c: Likewise.
8863
8864 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
8865
8866 * genautomata.c (initiate_states): Add additional guard to
8867 initialize `units_array'.
8868
8869 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
8870
8871 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
8872 process_unit_to_form_the_same_automaton_unit_lists,
8873 form_the_same_automaton_unit_lists
8874 check_unit_distributions_to_automata): New prototypes and
8875 functions.
8876 (check_automata): Rename it into `check_automata_insn_issues'.
8877 (unit_decl): New fields `the_same_automaton_unit' and
8878 `the_same_automaton_message_reported_p'.
8879 (unit_decl_t): New typedef.
8880 (the_same_automaton_lists): New gloval variable.
8881 (unit_regexp, unit_set_el, units_array, units_cmp,
8882 output_get_cpu_unit_code_func): Use the typedef.
8883 (evaluate_max_reserv_cycles): Increment
8884 `description->max_insn_reserv_cycles'.
8885 (initiate_states): Don't increment `max_cycles_num'.
8886 (transform_insn_regexps): Move code around transformation of
8887 regexps from `generate'.
8888 (generate): Remove call of `transform_insn_regexps'.
8889 (expand_automata): Call `transform_insn_regexps' and
8890 `check_unit_distributions_to_automata'. Check errors before
8891 `generate'.
8892
8893 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
8894 automaton `ultrasparc3_1'.
8895
8896 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
8897
8898 * c-common.c (c_common_init): Set up CPP arithmetic.
8899 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
8900 something reasonable for the host.
8901 (sanity_checks): Add checks.
8902 (cpp_read_main_file): Call sanity_checks() from here...
8903 (cpp_post_options): ... not here.
8904 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
8905 * cpplib.h (struct cpp_options): New member int_precision.
8906
8907 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8908
8909 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
8910
8911 2002-05-04 David S. Miller <davem@redhat.com>
8912
8913 * config/sparc/linux.h, config/sparc/linux64.h
8914 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
8915
8916 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
8917 more RTX codes.
8918 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
8919
8920 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
8921 of SETs.
8922
8923 2002-05-05 Tim Josling <tej@melbpc.org.au>
8924
8925 * treelang; New directory for new sample language treelang.
8926
8927 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8928
8929 * Makefile.in (c-lex.o): Update.
8930 * c-lex.c: Include target.h.
8931 (cb_register_builtins): New.
8932 (init_c_lex): Set builtins callback.
8933 * c-lex.h (cpp_define, cpp_assert): New prototypes.
8934 * cppinit.c (init_builtins): Use callback, including for
8935 GXX_WEAK.
8936 * cpplib.h (struct cpp_callbacks): New member.
8937 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
8938 (TARGET_INITIALIZER): Update.
8939 * target.h (struct gcc_target): New hook.
8940 * tree.c (default_register_cpp_builtins): New.
8941 * tree.h (default_register_cpp_builtins): New.
8942 doc:
8943 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
8944
8945 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8946
8947 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
8948 (cpp_post_options): Move sanity checks to...
8949 (sanity_checks): New.
8950 * cpplex.c (maybe_read_ucs): Fix prototype.
8951 (parse_string, cpp_parse_escape): Cast for %c format specifier.
8952 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
8953 if necessary.
8954
8955 2002-05-04 Bernd Schmidt <bernds@redhat.com>
8956
8957 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
8958 builtins. Use V2DI patterns instead of TI for logical operations.
8959 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
8960 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
8961 (ix86_expand_builtins): Change the pattern used for movntdq.
8962 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
8963 sse2_nandv2di3): New patterns.
8964 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
8965 on operands.
8966 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
8967 (cvtdq2pd): Correct mode on operand 1.
8968 (sse2_umulsidi3): Describe without unspec.
8969 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
8970 machine modes.
8971 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
8972 (ashlv2di3): Likewise, from sse2_ashlv2di3.
8973 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
8974 ashlv4si3, ashlv2di3): Use SImode for shift count.
8975 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
8976 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
8977 New patterns.
8978 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
8979 New typedefs.
8980 (__m128i, __m128d): New macros.
8981 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
8982 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
8983 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
8984 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
8985 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
8986 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
8987 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
8988 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
8989 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
8990 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
8991 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
8992 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
8993 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
8994 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
8995 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
8996 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
8997 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
8998 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
8999 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
9000 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
9001 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
9002 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
9003 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
9004 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
9005 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
9006 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
9007 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
9008 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
9009 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
9010 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
9011 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
9012 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
9013 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
9014 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
9015 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
9016 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
9017 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
9018 functions.
9019 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
9020 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
9021
9022 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
9023
9024 * dwarf2out.c: Fix formatting.
9025 * varasm.c: Likewise.
9026
9027 2002-05-04 David Edelsohn <edelsohn@gnu.org>
9028
9029 PR c/6543
9030 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
9031 clobber and use result as temporary value.
9032
9033 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
9034
9035 * expr.c (force_operand): Use expand_simple_* to handle more
9036 cases.
9037
9038 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
9039
9040 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
9041 and sign-extension.
9042 (lex_charconst): Update for change in prototype of
9043 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
9044 appropriately.
9045 * cpphash.h (BITS_PER_CPPCHAR_T): New.
9046 * cppinit.c (cpp_create_reader): Initialize them for no
9047 change in semantics.
9048 (cpp_post_options): Add sanity checks.
9049 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
9050 and truncation issues. Calculate in type cppchar_t.
9051 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
9052 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
9053 run-time dependent precision correctly. Return whether the
9054 result is signed or not.
9055 * cpplib.c (dequote_string): Use cppchar_t; update.
9056 * cpplib.h (cppchar_signed_t): New.
9057 struct cpp_options): New precision members.
9058 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
9059 * cppexp.c (eval_token): Update.
9060
9061 2002-05-03 David S. Miller <davem@redhat.com>
9062
9063 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
9064 * config/sparc/sparc.c (sparc_rtx_costs): New function
9065 implementing RTX_COSTS and CONST_COSTS.
9066 * config/sparc/sparc.h (CONST_COSTS): Delete.
9067 (RTX_COSTS_CASES): Define.
9068 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
9069 the work.
9070
9071 * config/sparc/sparc.md (DFA schedulers): Split out...
9072 * config/sparc/cypress.md, config/sparc/hypersparc.md,
9073 config/sparc/sparclet.md, config/sparc/supersparc.md,
9074 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
9075
9076 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
9077 checks on it, always defined for Sparc.
9078
9079 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
9080 Tweak, and add more detailed comments.
9081
9082 2002-05-03 Zack Weinberg <zack@codesourcery.com>
9083
9084 * Re-apply patch accidentally reverted with
9085 DFA scheduler merge: remove all rules and variables to slurp
9086 source files out of libiberty and rebuild them with HOST_CC.
9087 ($(HOST_PREFIX_1)varray.o): New rule.
9088 (genattrtab rule): Word wrap.
9089
9090 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
9091
9092 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
9093 (CPP_SUBTARGET_SPEC): Define.
9094 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
9095 cpp_subtarget specs.
9096 (CPP_SPEC): Redefine to include %(cpp_subtarget).
9097
9098 2002-05-03 David S. Miller <davem@redhat.com>
9099
9100 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
9101 * target.h (struct gcc_target): Delete cycle_display member.
9102
9103 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
9104 (rtx_needs_barrier): Delete reference to cycle_display unspec.
9105 (ia64_sched_reorder2): Mention need for cycle display handling
9106 once such notes exist.
9107
9108 2002-05-03 Richard Henderson <rth@redhat.com>
9109
9110 * real.c (etoasc): Strip most trailing zeros for clarity.
9111 * sched-vis.c: Include real.h.
9112 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
9113 * Makefile.in (sched-vis.o): Add real.h.
9114
9115 2002-05-03 David S. Miller <davem@redhat.com>
9116
9117 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
9118 no longer needed.
9119
9120 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
9121
9122 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
9123 when we get an out of range literal.
9124 (altivec_expand_ternop_builtin): Same.
9125 (altivec_expand_unop_builtin): Same.
9126 (altivec_expand_builtin): Same, for dss.
9127 (altivec_expand_builtin): Use trees instead of rtl when
9128 determining literal argument validity.
9129
9130 2002-05-03 David S. Miller <davem@redhat.com>
9131
9132 Delete cycle display scheduling hook.
9133 * config/ia64/ia64.c (ia64_cycle_display,
9134 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
9135 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
9136 and use emit_insn_before instead of ia64_emit_insn_before.
9137 * config/ia64/ia64.md (unspec usage): Delete cycle display.
9138 (cycle_display): Delete insn pattern.
9139 * config/sparc/sparc.md (unspec usage): Delete cycle display.
9140 (cycle_display): Delete insn pattern.
9141 * config/sparc/sparc.c (sparc_cycle_display,
9142 TARGET_SCHED_CYCLE_DISPLAY): Delete.
9143 * doc/md.texi (cycle_display): Don't mention.
9144 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
9145
9146 2002-05-03 Richard Henderson <rth@redhat.com>
9147
9148 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
9149 * recog.h: Declare them.
9150
9151 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
9152 * config/sparc/sparc.md: Use store_data_bypass_p instead.
9153 * config/sparc/sparc-protos.h: Update.
9154
9155 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
9156
9157 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
9158 -D__arch64__. Add -D_LP64.
9159 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
9160 from sparc.h.
9161 (CPP_ARCH64_SPEC): Likewise.
9162 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
9163 (NO_BUILTIN_SIZE_TYPE): Undef.
9164
9165 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
9166
9167 * genautomata.c (min_issue_delay_pass_states): Change return type
9168 in the prototype.
9169 (min_issue_delay_pass_states): Change the algorithm.
9170 (min_issue_delay): Set up min_insn_issue_delay for the state.
9171 (output_min_issue_delay_table): Interchange the nested loops and
9172 and initiate min_insn_issue_delay for states.
9173
9174 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
9175
9176 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
9177 jump is simplejump.
9178
9179 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
9180
9181 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
9182 sequence.
9183
9184 2002-05-03 Richard Henderson <rth@redhat.com>
9185
9186 PR opt/6534
9187 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
9188 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
9189 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
9190 code before JUMP, not EARLIEST.
9191
9192 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
9193
9194 * c-format.c (check_format_info_main): Don't check for presence of
9195 parameter for * width until after operand number has been read,
9196 and only check for it if format parameters are available.
9197 Fixes PR c/6547.
9198
9199 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
9200
9201 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
9202 (LINK_SPEC): Undef before defining.
9203
9204 2002-05-03 Jakub Jelinek <jakub@redhat.com>
9205
9206 PR preprocessor/6489
9207 * tradcpp.c (fixup_newlines): New.
9208 (main, finclude): Use it.
9209
9210 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
9211
9212 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
9213 * config/mips/mips.c (mips_unique_section): Strip encoding from
9214 decl name.
9215
9216 2002-05-03 Jakub Jelinek <jakub@redhat.com>
9217
9218 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
9219 mode.
9220
9221 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9222
9223 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
9224 (Specific): Removed buildstats references.
9225 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
9226 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
9227 Accomodate Solaris versions beyond 8.
9228 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
9229 (Specific, *-*-solaris2.8): Removed, obsolete.
9230
9231 2002-05-03 Jakub Jelinek <jakub@redhat.com>
9232
9233 PR target/6542
9234 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
9235 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
9236 fill leaf_reg_remap with identity.
9237 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
9238
9239 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
9240
9241 * config/h8300/crti.asm: Remove trailing spaces.
9242 * config/h8300/h8300.c: Likewise.
9243 * config/h8300/lib1funcs.asm: Likewise.
9244
9245 2002-05-02 Jason Merrill <jason@redhat.com>
9246
9247 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
9248 * c-decl.c (c_init_decl_processing): Use it.
9249 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
9250 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
9251 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
9252
9253 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
9254
9255 * regrename.c: Fix formatting.
9256 * tree.c: Likewise.
9257
9258 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
9259
9260 * i386.md (attribute memory): Handle compares properly.
9261
9262 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
9263
9264 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
9265 to none.
9266
9267 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
9268
9269 * function.c: Fix formatting.
9270
9271 2002-05-02 Jan Hubicka <jh@suse.cz>
9272
9273 * haifa-sched.c (schedule_insn): Print table of instructions and
9274 reservations.
9275 (sched_block): Do not print ready list at verbosity level 1.
9276 * sched-vis.c (print_insn): Make global.
9277 * sched-ebb.c (ebb_print_insn): Rename from...
9278 (print_insn): ... this one.
9279 * sched-int.h (print_insn): Declare
9280
9281 2002-05-02 Richard Henderson <rth@redhat.com>
9282
9283 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
9284 emitted by cycle_display.
9285
9286 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
9287
9288 * doc/install.texi (*-*-freebsd*): Update to latest status.
9289
9290 2002-05-02 Jakub Jelinek <jakub@redhat.com>
9291
9292 PR target/6540
9293 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
9294 * config/float-sparc.h: Assume 128-bit long double if
9295 __LONG_DOUBLE_128__ is defined.
9296
9297 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
9298
9299 * genattrtab.c (write_function_unit_info): Add a dummy element
9300 when num_units == 0.
9301
9302 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9303
9304 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
9305 TYPE_MODE (double_type_node) instead of DFmode.
9306
9307 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
9308
9309 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
9310 jumps post reload.
9311 * toplev.c (rest_of_compilation): Revert Richard's patch.
9312
9313 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
9314
9315 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
9316
9317 2002-05-02 Catherine Moore <clm@redhat.com>
9318
9319 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
9320
9321 2002-05-02 Kazu Hirata <kazu@hxi.com>
9322
9323 * combine.c: Fix comment typos.
9324 * expr.c: Likewise.
9325 * genautomata.c: Likewise.
9326 * stmt.c: Likewise.
9327 * tree.h: Likewise.
9328
9329 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
9330
9331 * doc/install.texi: State GNAT version requirements.
9332
9333 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
9334
9335 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
9336 of the frame pointer or arg pointer register which strict register
9337 checking is not enabled.
9338
9339 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
9340
9341 * gcc.dg/altivec-8.c: New.
9342
9343 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
9344 PRE_INC and PRE_DEC for altivec modes.
9345
9346 2002-05-01 Bruce Korb <bkorb@gnu.org>
9347
9348 * fixinc/check.tpl(set-writable): make sure the function exists first
9349 * fixinc/inclhack.def(alpha_assert): fix test_text
9350 * fixinc/tests/base/assert.h: add in missing result
9351
9352 2002-05-01 Jeff Law <law@redhat.com>
9353
9354 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
9355 'T' constraint.
9356
9357 2002-05-01 Joel Brobecker <brobecker@gnat.com>
9358
9359 * dbxout.c (dbxout_type): Emit size information for range types,
9360 as well, but only when using GDB extensions.
9361
9362 2002-05-01 Richard Henderson <rth@redhat.com>
9363
9364 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
9365 target-independent gnu binutils date test.
9366
9367 2002-05-01 Richard Henderson <rth@redhat.com>
9368
9369 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
9370 info before expunging the block.
9371
9372 2002-05-01 Jakub Jelinek <jakub@redhat.com>
9373
9374 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
9375 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
9376 -M -or -MM is in effect.
9377
9378 2002-05-01 Zack Weinberg <zack@codesourcery.com>
9379
9380 * config.gcc: Correct test of --enable-obsolete. Obsolete all
9381 A29k configurations.
9382 * doc/install.texi: Update to match.
9383
9384 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9385
9386 PR bootstrap/6514
9387 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
9388 for duplicates. Always loop over whole list.
9389
9390 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9391
9392 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
9393
9394 2002-05-01 Joel Sherrill <joel@OARcorp.com>
9395
9396 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
9397 support routines.
9398
9399 2002-05-01 Joel Sherrill <joel@OARcorp.com>
9400
9401 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
9402
9403 2002-05-01 David Edelsohn <edelsohn@gnu.org>
9404
9405 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
9406 (nabs_nopower): Same.
9407 (floatdisf2): New pattern.
9408 (absdi2): Convert to define_insn_and_split.
9409 (nabsdi2): Same.
9410 (trunctfsf2): Same.
9411 (floatditf2): Same.
9412 (floatsitf2): Same.
9413 (fix_trunctfdi2): Same.
9414 (fix_trunctfsi2): Same.
9415
9416 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
9417
9418 * doc/install.texi: Update Texinfo version requirement
9419 documentation.
9420
9421 2002-05-01 Jakub Jelinek <jakub@redhat.com>
9422
9423 PR target/6512, PR target/5628
9424 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
9425 when memory is not aligned.
9426 (movdf_insn_v9only_vis): Likewise.
9427 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
9428 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
9429 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
9430
9431 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
9432
9433 * gcc.dg/altivec-7.c: New.
9434
9435 * config/rs6000/altivec.h: Cleanup.
9436
9437 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
9438
9439 * doc/invoke.texi (Option Summary): Add -mvrsave=.
9440 (RS/6000 and PowerPC Options): Document -mvrsave=.
9441
9442 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
9443 (rs6000_altivec_vrsave_string): Same.
9444 (rs6000_override_options): Call rs6000_parse_vrsave_option.
9445 (rs6000_parse_vrsave_option): New.
9446 (rs6000_stack_info): Only generate vrsave instructions when
9447 TARGET_ALTIVEC_VRSAVE.
9448
9449 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
9450 (rs6000_altivec_vrsave_string): Define extern.
9451 (rs6000_altivec_vrsave): Same.
9452 (TARGET_ALTIVEC_VRSAVE): New.
9453
9454 2002-04-30 Richard Henderson <rth@redhat.com>
9455
9456 PR opt/6516
9457 * toplev.c (rest_of_compilation): Don't run cross-jump before
9458 bb-reorder.
9459
9460 2002-04-30 Tom Rix <trix@redhat.com>
9461
9462 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
9463 check which_alternative.
9464
9465 2002-04-30 Kazu Hirata <kazu@hxi.com>
9466
9467 * cpplex.c: Fix comment formatting.
9468 * function.c: Likewise.
9469 * integrate.c: Likewise.
9470 * regrename.c: Likewise.
9471 * sibcall.c: Likewise.
9472 * simplify-rtx.c: Likewise.
9473 * tree-inline.c: Likewise.
9474
9475 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
9476
9477 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
9478 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
9479 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
9480 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
9481 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
9482 * pa/x-ada: New file. Define ADA_CFLAGS.
9483
9484 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
9485
9486 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
9487 from MMIX_LAST_REGISTER_FILE_REGNUM.
9488 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
9489 (struct machine_function): New member highest_saved_stack_register
9490 previously static variable in mmix.c.
9491 (MACHINE_DEPENDENT_REORG): Define.
9492 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
9493 (MMIX_OUTPUT_REGNO): New.
9494 (mmix_target_asm_function_prologue): Move calculation of last used
9495 saved-stack-register into...
9496 (mmix_machine_dependent_reorg): New function. Update to also handle
9497 !TARGET_ABI_GNU.
9498 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
9499 register names, simplify somewhat by new variable regno.
9500 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
9501 register.
9502 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
9503 emitting register names.
9504 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
9505 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
9506 Remove fixed FIXME.
9507 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
9508 Declare.
9509
9510 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
9511
9512 2002-04-30 Richard Henderson <rth@redhat.com>
9513
9514 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
9515 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
9516 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
9517 emit_tfmode_cvt): New.
9518 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
9519 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
9520 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
9521 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
9522 * config/sparc/sparc-protos.h: Update.
9523
9524 2002-04-30 Janis Johnson <janis187@us.ibm.com>
9525
9526 * install.texi (Final install): Add to the list of info to include
9527 in a report of a successful bootstrap, and add link to 3.1 list.
9528
9529 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
9530
9531 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
9532 (mode): Add vector modes
9533 (i387): Kill attribute.
9534 (unit): New attribute.
9535 (length_immediate): Grok new types.
9536 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
9537 (modrm): Use "unit".
9538 (memory): Handle MMX/SSE properly.
9539 (scheduling descriptions): Kill uses of fop1.
9540 (sse, mmx, fp patterns): Set type and mode properly.
9541
9542 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
9543
9544 * pa.c (override_options): Default to PA8000 scheduling.
9545 * doc/invoke.texi (HP-PA options): Mention newly added 7300
9546 scheduling parameter.
9547
9548 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
9549 handling of double precision multiplies.
9550
9551 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
9552 fpdiv and fpsqrt instructions.
9553 (7200 & 7300 scheduling): Fix typo in handling of
9554 store-load and store-store penalties.
9555
9556 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9557
9558 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
9559 mips. Add two missing commas.
9560
9561 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
9562
9563 * doc/contrib.texi (Contributors): Update Paolo Carlini's
9564 and Benjamin Kosnik's entries.
9565
9566 2002-04-29 David S. Miller <davem@redhat.com>
9567
9568 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
9569 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
9570 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
9571 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9572
9573 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9574
9575 * combine.c (find_split_point): Use gen_int_mode.
9576
9577 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
9578
9579 Merging code from dfa-branch:
9580
9581 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
9582
9583 * genautomata.c (output_reserv_sets): Fix typo.
9584
9585 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
9586
9587 * genautomata.c (output_reserv_sets): Remove
9588 next_cycle_output_flag.
9589
9590 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
9591
9592 * sched-rgn.c (init_ready_list): Make the DFA code handle
9593 USE/CLOBBER insns in the same way as the traditional
9594 scheduler.
9595 (new_ready): Similarly..
9596
9597 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
9598
9599 * haifa-sched.c (schedule_block): Change the DFA state only after
9600 issuing insn.
9601
9602 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
9603
9604 * pa.c (hppa_use_dfa_pipeline_interface): New function.
9605 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
9606 (override_options): Add PA7300 scheduling support.
9607 (pa_adjust_cost): Update various comments. Properly
9608 handle anti and output dependencies when using the
9609 DFA scheduler.
9610 (pa_issue_rate): Add PA7300 scheduling support.
9611 (pa_can_combine_p): Call extract_insn before calling
9612 constrain_operands (taken from mainline tree).
9613 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
9614 * pa.md (cpu attr): Add 7300. Rewrite pipeline
9615 descriptions using DFA descriptions. Add PA7300
9616 scheduling support.
9617
9618 2002-03-30 David S. Miller <davem@redhat.com>
9619
9620 Add UltraSPARC-III DFA scheduling support.
9621 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
9622 Update FP conditional move on register insn patterns to use it, as
9623 appropriate.
9624 (define_attr cpu): Add ultrasparc3.
9625 (define_attr us3load_type): New, update integer load patterns to
9626 set it, as appropriate.
9627 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
9628 (rest): Add UltraSPARC3 scheduling description.
9629 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
9630 (PROCESSOR_ULTRASPARC3): New.
9631 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
9632 ({ASM,CPP}_CPU_SPEC): Likewise.
9633 (REGISTER_MOVE_COST): Likewise.
9634 (RTX_COSTS): Likewise.
9635 * config/sparc/sparc.c (sparc_override_options,
9636 sparc_initialize_trampoline, sparc64_initialize_trampoline,
9637 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9638 sparc_issue_rate): Likewise.
9639 * config/sparc/sol2.h: Likewise.
9640 * config/sparc/sol2-sld-64.h: Likewise.
9641 * config/sparc/linux64.h: Likewise.
9642
9643 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
9644
9645 * doc/md.texi: Add comments about usage the latency time for the
9646 different dependencies and about case when two or more conditions
9647 in different define_insn_reservations returns TRUE for an insn.
9648
9649 * doc/md.texi: Add reference for automaton based pipeline
9650 description.
9651
9652 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
9653
9654 * doc/passes.texi: Add missed information about genattrtab.
9655
9656 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
9657
9658 * genautomata.c (output_automata_list_transition_code): Check
9659 automata_list on NULL.
9660
9661 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
9662
9663 * genautomata.c (output_insn_code_cases,
9664 output_automata_list_min_issue_delay_code,
9665 output_automata_list_transition_code,
9666 output_automata_list_state_alts_code): Comment the functions.
9667
9668 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
9669
9670 * genautomata.c (automata_list_el_t): New typedef.
9671 (get_free_automata_list_el,free_automata_list_el,
9672 free_automata_list, automata_list_hash, automata_list_eq_p,
9673 initiate_automata_lists, automata_list_start, automata_list_add,
9674 automata_list_finish, finish_automata_lists,
9675 output_insn_code_cases, output_automata_list_min_issue_delay_code,
9676 output_automata_list_transition_code,
9677 output_automata_list_state_alts_code, add_automaton_state,
9678 form_important_insn_automata_lists): New functions and prototypes.
9679 (insn_reserv_decl): Add members important_automata_list and
9680 processed_p.
9681 (ainsn): Add members important_p.
9682 (automata_list_el): New structure.
9683 (first_free_automata_list_el, current_automata_list,
9684 automata_list_table): New global variables.
9685 (create_ainsns): Initiate member important_p.
9686 (output_internal_min_issue_delay_func): Generate the switch and
9687 call output_insn_code_cases.
9688 (output_internal_trans_func, output_internal_state_alts_func):
9689 Ditto.
9690 (generate): Call initiate_automata_lists.
9691 (automaton_states): New global variable.
9692 (expand_automata): Call form_important_insn_automata_lists.
9693 (write_automata): Call finish_automata_lists.
9694
9695 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
9696
9697 * genautomata.c (add_excls, add_presence_absence): Check that
9698 cpu units in the sets belong the same automaton.
9699
9700 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
9701 about that cpu units in the sets belong the same automaton.
9702
9703 * doc/md.texi: Ditto.
9704
9705 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
9706 Nitin Gupta <niting@noida.hcltech.com>
9707
9708 * config/sh/sh.c (sh_use_dfa_interface): New function.
9709
9710 (sh_issue_rate): New Function.
9711 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
9712 TARGET_SCHED_ISSUE_RATE: define.
9713
9714 * config/sh/sh.md: Add DFA based pipeline description for SH4.
9715
9716 (define_attr insn_class): New attribute used for DFA
9717 scheduling.
9718 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
9719 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
9720 cmpeqdi_t): Likewise.
9721
9722 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
9723 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
9724 ex_group.
9725 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
9726
9727 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
9728
9729 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
9730 break.
9731
9732 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
9733
9734 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
9735 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
9736 necessary.
9737 (output_dfa_start_func): Initiate new variable insn_codes_length,
9738 (write_automata): Output definition of the new variable.
9739
9740 2001-10-02 David S. Miller <davem@redhat.com>
9741
9742 * haifa-sched.c (advance_one_cycle): New function.
9743 (schedule_block): Use it.
9744 (queue_to_ready): Use it, and also make sure to advance the DFA
9745 state on all stall cycles, not just those where insn_queue links
9746 are found.
9747
9748 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
9749
9750 * haifa-sched.c (max_issue): Remove last_p argument. Only return
9751 non-zero if the highest-priority instruction could be scheduled.
9752 (choose_ready): Remove last argument from max_issue call.
9753
9754 2001-09-28 David S. Miller <davem@redhat.com>
9755
9756 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
9757 ultrasparc and 3 for other multi-issue sparcs.
9758
9759 2001-09-27 David S. Miller <davem@redhat.com>
9760
9761 * config/sparc/sparc.md (cycle_display): New pattern.
9762 * config/sparc/sparc.c (sparc_cycle_display): New.
9763 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
9764
9765 2001-09-25 David S. Miller <davem@redhat.com>
9766
9767 Convert all of Sparc scheduling to DFA
9768 * config/sparc/sparc.md: Kill all define_function_unit
9769 directives and replace with DFA equivalent.
9770 * config/sparc/sparc.c (ultrasparc_adjust_cost,
9771 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
9772 ultra_fpmode_conflict_exists, ultra_find_type,
9773 ultra_build_types_avail, ultra_flush_pipeline,
9774 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
9775 ultrasparc_variable_issue, ultrasparc_sched_init,
9776 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
9777 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
9778 ultra_cur_hist, ultra_cycles_elapsed): Kill.
9779 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9780 ultrasparc_store_bypass_p): New.
9781 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
9782 Declare.
9783
9784 2001-09-24 David S. Miller <davem@redhat.com>
9785
9786 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
9787 ready->vec[foo] not ready[foo].
9788
9789 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
9790
9791 * doc/md.texi: Correct examples for define_insn_reservations
9792 `mult' and `div'.
9793
9794 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
9795
9796 * genautomata.c (create_automata): Print message about creation of
9797 each automaton.
9798 (generate): Remove printing meease about creation of
9799 automata.
9800
9801 2001-09-05 David S. Miller <davem@redhat.com>
9802
9803 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9804 * config/sparc/linux64.h: Likewise.
9805
9806 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
9807
9808 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
9809 schedule_block, sched_init, sched_finish): Add missed calls of
9810 use_dfa_pipeline_interface.
9811
9812 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
9813 Ditto.
9814
9815 * sched-vis.c (get_visual_tbl_length): Ditto.
9816
9817 2001-08-27 Richard Henderson <rth@redhat.com>
9818
9819 * genattr.c (main): Emit state_t even when not doing scheduling.
9820
9821 2001-08-27 Richard Henderson <rth@redhat.com>
9822
9823 * genautomata.c (expand_automata): Always create a description.
9824
9825 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
9826
9827 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9828 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9829 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9830 RTL constructions.
9831
9832 * genattr.c (main): New variable num_insn_reservations. Increase
9833 it if there is DEFINE_INSN_RESERVATION. Output automaton based
9834 pipeline hazard recognizer interface.
9835
9836 * genattrtab.h: New file.
9837
9838 * genattrtab.c: Include genattrtab.h.
9839 (attr_printf, check_attr_test, make_internal_attr,
9840 make_numeric_value): Move protypes into genattrtab.h. Define them
9841 as external.
9842 (num_dfa_decls): New global variable.
9843 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9844 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9845 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9846 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
9847
9848 * genautomata.c: New file.
9849
9850 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9851
9852 * sched-int.h: (curr_state): Add the external definition for
9853 automaton pipeline interface.
9854 (haifa_insn_data): Add comments for members blockage and units.
9855
9856 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9857 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9858 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9859 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9860 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9861 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9862 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9863 macros.
9864 (TARGET_SCHED): Use the new macros.
9865
9866 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9867 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9868 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9869 dfa_bubble): New members in gcc_target.sched.
9870
9871 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9872 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9873 (insn_queue): Redefine it as pointer to array.
9874 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9875 INSN_QUEUE_SIZE.
9876 (max_insn_queue_index_macro_value): New variable.
9877 (curr_state, dfa_state_size, ready_try): New varaibles for
9878 automaton interface.
9879 (ready_element, ready_remove, max_issue): New function prototypes
9880 for automaton interface.
9881 (choose_ready): New function prototype.
9882 (insn_unit, blockage_range): Add comments.
9883 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9884 FUNCTION_UNITS_SIZE == 0.
9885 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9886 actual_hazard, potential_hazard): Add comments.
9887 (insn_cost): Use cost -1 as undefined value. Remove
9888 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
9889 pipeline interface.
9890 (ready_element, ready_remove): New functions for automaton
9891 interface.
9892 (schedule_insn): Add new code for automaton pipeline interface.
9893 (queue_to_ready): Add new code for automaton pipeline interface.
9894 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9895 (debug_ready_list): Print newline when the queue is empty.
9896 (max_issue): New function for automaton pipeline interface.
9897 (choose_ready): New function.
9898 (schedule_block): Add new code for automaton pipeline interface.
9899 Print ready list before scheduling each insn.
9900 (sched_init): Add new code for automaton pipeline interface.
9901 Initiate insn cost by -1.
9902 (sched_finish): Free the current automaton state and finalize
9903 automaton pipeline interface.
9904
9905 * sched-rgn.c: Include target.h.
9906 (init_ready_list, new_ready, debug_dependencies): Add new code for
9907 automaton pipeline interface.
9908
9909 * sched-vis.c: Include target.h.
9910 (get_visual_tbl_length): Add code for automaton interface.
9911 (target_units, print_block_visualization): Add comments.
9912
9913 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9914 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9915 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9916 (getruntime.o, genautomata.o): New entries.
9917 (genattrtab.o): Add new dependency file genattrtab.h.
9918 (genattrtab): Add new dependencies. Link it with `libm.a'.
9919 (getruntime.o, hashtab.o): New entries for canadian cross.
9920
9921 * doc/md.texi: Description of automaton based model.
9922
9923 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9924 Add comments.
9925 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9926 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9927 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9928 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9929 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9930 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9931 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9932 hook descriptions.
9933 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9934 MAX_DFA_ISSUE_RATE): New macro descriptions.
9935
9936 * doc/contrib.texi: Add dfa based scheduler contribution.
9937
9938 * doc/gcc.texi: Add more information about genattrtab.
9939
9940 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9941
9942 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
9943 adjust_address_nv call.
9944
9945 2002-04-29 Janis Johnson <janis187@us.ibm.com>
9946
9947 * doc/install.texi (Testing): Provide additional information, and
9948 a stronger encouragement, for running the testsuites.
9949
9950 2002-04-29 DJ Delorie <dj@redhat.com>
9951
9952 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
9953 given in upper case.
9954
9955 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9956
9957 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
9958 Solaris 2 <widec.h> if missing.
9959 * fixinc/fixincl.x: Regenerate.
9960 * fixinc/tests/base/widec.h: New file.
9961
9962 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
9963
9964 * toplev.c (f_options): Add "profile" switch so that
9965 -fno-profile can be used to disable -p.
9966
9967 2002-04-29 Bernd Schmidt <bernds@redhat.com>
9968
9969 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
9970 UV2DImode.
9971 * tree.c (build_common_tree_nodes_2): Likewise.
9972 * tree.h (enum tree_index): Likewise.
9973 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
9974
9975 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
9976 entries.
9977 (init_mmx_sse_builtins): Initialize SSE2 builtins.
9978 (ix86_expand_builtin): Add support for SSE2 builtins.
9979 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
9980 (VALID_SSE_REG_MODE): Use it.
9981 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
9982 (enum ix86_builtins): Add SSE2 builtins.
9983 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
9984 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
9985 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
9986 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
9987 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
9988 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
9989 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
9990 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
9991 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
9992 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
9993 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
9994 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
9995 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
9996 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
9997 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
9998 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
9999 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
10000 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
10001 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
10002 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
10003 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
10004 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
10005 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
10006 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
10007 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
10008 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
10009 lfence_insn): New patterns.
10010 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
10011 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
10012
10013 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
10014
10015 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
10016
10017 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10018
10019 * doc/contrib.texi (Contributors): Add Paolo Carlini and
10020 Janis Johnson.
10021 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
10022 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
10023 and CPU instead of cpu.
10024
10025 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
10026
10027 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
10028 variables.
10029 (lang_independent_options): Add -fif-conversion, -fif-conversion2
10030 (rest_of_compilation): Do if conversion only when asked for.
10031 (parse_options_and_default_flags): Set new variables to 1 for -O1
10032 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
10033
10034 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
10035
10036 * i386.c (dbx64_register_map): Fix typo.
10037
10038 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
10039
10040 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
10041 real_one_half, real_bb_freq_max): New static variables.
10042 (debug_profile_bbauxs): Kill.
10043 (process_note_predictions): Kill unused variable.
10044 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
10045 volatile double.
10046 (propagate_freq): Use REAL_ARITHMETICS.
10047 (estimate_bb_frequencies): Likevise; init new static variables.
10048 * Makefile.in (predict.o): Add dependency on real.h
10049
10050 2002-04-28 David S. Miller <davem@redhat.com>
10051
10052 PR target/6500
10053 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
10054 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
10055 several {reads,writes} instead.
10056 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
10057 Define.
10058
10059 2002-04-27 David S. Miller <davem@redhat.com>
10060
10061 PR target/6494
10062 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
10063 of the stack bias.
10064
10065 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
10066 including signal.h and sys/ucontext.h, not needed.
10067
10068 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
10069
10070 * varasm.c (output_constant_def): Correct test for not calling
10071 ENCODE_SECTION_INFO for INTEGER_CST.
10072
10073 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
10074
10075 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
10076 keep most cases as function eval_token.
10077 (eval_token): New function.
10078 (_cpp_parse_expr): Read token here for improved diagnostics.
10079 Don't use op_as_text. Detect bad ':' here.
10080 (reduce): Don't detect bad ':' here.
10081 (op_as_text): Remove.
10082 * cpphash.h (_cpp_test_assertion): Change prototype.
10083 * cpplib.c (_cpp_test_assertion): Change prototype.
10084
10085 2002-04-28 Richard Henderson <rth@redhat.com>
10086
10087 PR c/5154
10088 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
10089 (ggc_mark_rtx_children): New.
10090
10091 2002-04-28 Jakub Jelinek <jakub@redhat.com>
10092
10093 PR target/6496
10094 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
10095 after call peepholes for UltraSPARC.
10096 (call + jump 64-bit peepholes): Remove.
10097
10098 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10099
10100 PR c/6497
10101 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
10102 result as temporary value.
10103
10104 2002-04-28 Jakub Jelinek <jakub@redhat.com>
10105
10106 PR c++/6396
10107 * toplev.c (rest_of_compilation): Only run regrename and copy
10108 propagation if optimizing.
10109
10110 2002-04-28 Jakub Jelinek <jakub@redhat.com>
10111
10112 PR optimization/6475
10113 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
10114 register of REGNO_DECL (i).
10115 * Makefile.in (reload1.o): Add $(TREE_H).
10116
10117 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
10118
10119 * cppexp.c (lex): Update to use state.skip_eval.
10120 (struct op): Remove prio and flags members.
10121 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
10122 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
10123 (LEFT_ASSOC): New macro.
10124 (optab): New table of operator priorities and flags.
10125 (SHIFT): Update.
10126 (_cpp_parse_expr): Clean up logic. Return bool. Use a
10127 malloc-ed parser stack.
10128 (reduce): New; reduce the operator stack.
10129 (_cpp_expand_op_stack): Expand the operator stack as necessary.
10130 * cpphash.h (struct op): Predeclare.
10131 (struct cpp_reader): New members op_stack, op_limit.
10132 (struct lexer_state): New member skip_eval.
10133 (_cpp_parse_expr): Update.
10134 (_cpp_expand_op_stack): New.
10135 * cpplib.c (do_if): Update.
10136 * cppinit.c (cpp_create_reader): Create op stack.
10137 (cpp_destroy): And destroy it.
10138 * cpplib.h (CPP_LAST_CPP_OP): Correct.
10139 (TTYPE_TABLE): Correct.
10140
10141 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10142
10143 PR c/6343
10144 * c-decl.c (duplicate_decls): Call merge_weak.
10145 * c-pragma.c (apply_pragma_weak): Warn about misuse.
10146 * output.h (merge_weak): Prototype merge_weak.
10147 * varasm.c (merge_weak): New function.
10148 (declare_weak): Make sure we don't give an error on VAR_DECLs.
10149 Mark RTL with SYMBOL_REF_WEAK.
10150
10151 2002-04-27 Kurt Garloff <garloff@suse.de>
10152
10153 * tree-inline.c (inlinable_function_p): Improve heuristics
10154 by using a smoother function to cut down allowable inlinable size.
10155 * param.def: Add parameters max-inline-insns-single,
10156 max-inline-slope, min-inline-insns that determine the exact
10157 shape of the above function.
10158 * param.h: Likewise.
10159
10160 2002-04-26 Richard Henderson <rth@redhat.com>
10161
10162 * c-parse.in (malloced_yyss, malloced_yyvs): New.
10163 (yyoverflow): Re-add. Set them.
10164 (free_parser_stacks): New.
10165 * c-common.h: Declare it.
10166 * c-lex.c (c_common_parse_file): Call it.
10167
10168 2002-04-26 Richard Henderson <rth@redhat.com>
10169
10170 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
10171 for fallthru search.
10172
10173 2002-04-26 Eric Christopher <echristo@redhat.com>
10174
10175 PR optimization/3700
10176 * config/mips/mips.c (mips_issue_rate): Define. New function.
10177 (TARGET_SCHED_ISSUE_RATE): Use.
10178
10179 2002-04-25 David S. Miller <davem@redhat.com>
10180
10181 PR target/6422
10182 * reorg.c (optimize_skip): Do not allow exception causing
10183 instructions to be considered for delay slots.
10184 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
10185 (relax_delay_slots): Do not try to consider exception causing
10186 instructions as redundant.
10187
10188 2002-04-26 Richard Henderson <rth@redhat.com>
10189
10190 PR c/5225
10191 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
10192
10193 2002-04-26 Mark Mitchell <mark@codesourcery.com>
10194
10195 PR bootstrap/6445
10196 * config/i386/i386.md (untyped_call): Return the value in a float
10197 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
10198 TARGET_80387.
10199
10200 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
10201
10202 * tree.c (tree_int_cst_lt): Compare constants whose types differ
10203 in unsigned-ness correctly.
10204
10205 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
10206
10207 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
10208 portable runtime model.
10209
10210 2002-04-26 Richard Henderson <rth@redhat.com>
10211
10212 * c-parse.in (yyoverflow): Revert.
10213
10214 2002-04-26 David Edelsohn <edelsohn@gnu.org>
10215 Richard Henderson <rth@redhat.com>
10216
10217 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
10218 result as temporary value.
10219
10220 2002-04-26 Richard Henderson <rth@redhat.com>
10221
10222 PR c/3581
10223 * c-common.c (fix_string_type): Split out of ...
10224 (combine_strings): ... here. Take a varray, not a tree list.
10225 (c_expand_builtin_printf): Use fix_string_type.
10226 * c-common.h: Update decls.
10227 * c-parse.in (string): Remove. Update all uses to use STRING
10228 instead, and not call combine_strings.
10229 (yylexstring): New.
10230 (_yylex): Use it.
10231 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
10232 (build_asm_stmt): Likewise.
10233 * objc/objc-act.c (my_build_string): Use fix_string_type.
10234 (build_objc_string_object): Build varray for combine_strings.
10235
10236 2002-04-26 Bo Thorsen <bo@suse.co.uk>
10237
10238 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
10239 x86-64.
10240
10241 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
10242
10243 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
10244 (HAVE_NO_R_OPERAND): Remove.
10245 (HAVE_VALUE): Remove.
10246 (op_to_prio): Update.
10247 (UNARY): Don't alter flags.
10248 (_cpp_parse_expr): want_value used to indicate whether
10249 a number or unary operator is expected next. Distinguish
10250 unary and binary +/-.
10251 (op_as_text): Update for unary operators.
10252
10253 2002-04-25 Richard Henderson <rth@redhat.com>
10254
10255 PR c/2161
10256 * c-parse.in (yyoverflow): New.
10257
10258 2002-04-25 Richard Henderson <rth@redhat.com>
10259
10260 PR c/2098
10261 * c-common.c (shorten_compare): Simplfy conditions leading to
10262 the generation of a warning.
10263
10264 2002-04-25 Richard Henderson <rth@redhat.com>
10265
10266 PR c/2035
10267 * expmed.c (extract_bit_field): Fall through to generic code rather
10268 than aborting on subreg special case.
10269
10270 2002-04-25 David S. Miller <davem@redhat.com>
10271
10272 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
10273 for DECL being NULL.
10274
10275 2002-04-25 Steve Christiansen <smc@us.ibm.com>
10276
10277 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
10278
10279 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
10280
10281 * c-decl.c (grokdeclarator): Remove outdated ??? note
10282 on invalid declaration of flexible array members.
10283
10284 2002-04-25 Richard Henderson <rth@redhat.com>
10285
10286 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
10287
10288 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
10289
10290 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
10291 needed by the compiler, even if they are used as global regs.
10292
10293 2002-04-25 Matt Hiller <hiller@redhat.com>
10294
10295 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
10296 functions.
10297 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
10298 of the corresponding functions.
10299 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
10300 New prototypes.
10301
10302 2002-04-25 Matt Hiller <hiller@redhat.com>
10303
10304 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
10305
10306 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
10307 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
10308 registers, adjust comment accordingly.
10309 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
10310 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
10311 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
10312 for coprocessor registers.
10313 (ADDITIONAL_REGISTER_NAMES): Include
10314 ALL_COP_ADDITIONAL_REGISTER_NAMES.
10315
10316 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
10317 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
10318 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
10319 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
10320 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
10321
10322 (mips_char_to_class): Adjust comment to include coprocessor
10323 constraint letters.
10324
10325 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
10326 New functions.
10327 (mips_reg_names, mips_regno_to_class): Include coprocessor
10328 information.
10329 (mips_sw_reg_names): Ditto, make non-static.
10330 (mips_move_1word): Handle moves to and from coprocessor registers.
10331 (mips_move_2words): Handle moves to and from coprocessor
10332 registers.
10333 (mips_class_max_nregs, mips_register_move_cost): Handle
10334 coprocessor register classes.
10335 (override_options): Initialize mips_char_to_class and
10336 mips_hard_regno_mode_ok properly for coprocessor registers.
10337
10338 * config/mips/mips.md (movdi_internal, movdi_internal2,
10339 movsi_internal1, movsi_internal2): Add constraint-sets for
10340 coprocessor registers.
10341 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
10342 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
10343 isn't mips.
10344 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
10345 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
10346 isn't mips.
10347 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
10348 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
10349 isn't mips.
10350 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
10351 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
10352 isn't mips.
10353
10354 * doc/tm.texi: Document feature.
10355
10356 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
10357
10358 * integrate.c (function_attribute_inlinable_p): Simplify.
10359 Check the table pointer is not NULL.
10360
10361 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
10362
10363 * doc/c-tree.texi: Fix typo in introduction.
10364
10365 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
10366
10367 * c-common.h (c_common_parse_file): Update.
10368 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
10369 * c-lex.c (YYDEBUG): Get from c-lex.h.
10370 (c_common_parse_file): Update.
10371 * c-lex.h (YYDEBUG, yydebug): New.
10372 * c-parse.in (YYDEBUG): Get from c-lex.h.
10373 (c_set_yydebug): Remove.
10374 * c-tree.h (c_set_yydebug): Remove.
10375 * langhooks-def.h (lhd_do_nothing_i): New.
10376 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
10377 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
10378 * langhooks.c (lhd_do_nothing_i): New.
10379 (lhd_set_yydebug): Remove.
10380 * langhooks.h (struct lang_hooks): Update.
10381 * toplev.c (set_yydebug): New.
10382 (compile_file): Update call to parse_file hook.
10383 (decode_d_option): Update.
10384 objc:
10385 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
10386
10387 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
10388
10389 * loop.c (load_mems): Don't change the interface of called functions.
10390
10391 * calls.c (expand_call): Take current_function_pretend_args_size
10392 into account when setting argblock for sibcalls.
10393
10394 2002-04-24 Matt Hiller <hiller@redhat.com>
10395
10396 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
10397 * c-lex.c: Ditto.
10398
10399 * cpplex.c (skip_line_comment): Process comment one multibyte
10400 character at a time rather than one char at a time, if
10401 appropriate.
10402 (parse_string): Process string one multibyte character at a time
10403 rather than one char at a time, if appropriate.
10404 * c-lex.c (lex_string): Lex and copy multibyte strings
10405 appropriately.
10406 * cpplib.h (cppchar_t): Change to unsigned.
10407
10408 2002-04-24 Richard Henderson <rth@redhat.com>
10409
10410 PR c/3467
10411 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
10412 for c99.
10413
10414 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
10415
10416 * sh.c (sh_va_arg): If argument was passed by reference,
10417 dereference the pointer.
10418
10419 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10420
10421 * sh.md (divsi3_i4_media): Use match_operand for input values
10422 rather than hard registers.
10423 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
10424 unnecessarily through hard registers. Keep copies of pseudo
10425 registers outside of the libcall sequence.
10426
10427 * sh.md (casesi_shift_media): Add modes.
10428
10429 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
10430 values in memory.
10431
10432 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
10433
10434 * attribs.c (c_common_attribute_table): Move table and handlers
10435 to c-common.c.
10436 (format_attribute_table, lang_attribute_table,
10437 lang_attribute_common): Remove.
10438 (init_attributes): Replace NULL pointers with pointers to the
10439 empty table.
10440 (handle_packed_attribute, handle_nocommon_attribute,
10441 handle_common_attribute, handle_noreturn_attribute,
10442 handle_noinline_attribute, handle_always_inline_attribute,
10443 handle_used_attribute, handle_unused_attribute,
10444 handle_const_attribute, handle_transparent_union_attribute,
10445 handle_constructor_attribute, handle_destructor_attribute,
10446 handle_mode_attribute, handle_section_attribute,
10447 handle_aligned_attribute, handle_weak_attribute,
10448 handle_alias_attribute, handle_visibility_attribute,
10449 handle_no_instrument_function_attribute, handle_malloc_attribute,
10450 handle_no_limit_stack_attribute, handle_pure_attribute,
10451 handle_deprecated_attribute, handle_vector_size_attribute,
10452 vector_size_helper): Move to c-common.c.
10453 * c-common.c (c_common_attribute_table,
10454 handle_packed_attribute, handle_nocommon_attribute,
10455 handle_common_attribute, handle_noreturn_attribute,
10456 handle_noinline_attribute, handle_always_inline_attribute,
10457 handle_used_attribute, handle_unused_attribute,
10458 handle_const_attribute, handle_transparent_union_attribute,
10459 handle_constructor_attribute, handle_destructor_attribute,
10460 handle_mode_attribute, handle_section_attribute,
10461 handle_aligned_attribute, handle_weak_attribute,
10462 handle_alias_attribute, handle_visibility_attribute,
10463 handle_no_instrument_function_attribute, handle_malloc_attribute,
10464 handle_no_limit_stack_attribute, handle_pure_attribute,
10465 handle_deprecated_attribute, handle_vector_size_attribute,
10466 vector_size_helper): Move from attribs.c.
10467 * c-common.h (c_common_attribute_table,
10468 c_common_format_attribute_table): New.
10469 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10470 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10471 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
10472 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
10473 (LANG_HOOKS_INITIALIZER): Update.
10474 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
10475 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
10476 * target.h: Update comment.
10477 * tree.c (default_target_attribute_table): Remove.
10478 * tree.h (default_target_attribute_table, format_attribute_table,
10479 lang_attribute_table, lang_attribute_common): Remove.
10480 objc:
10481 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10482 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10483
10484 2002-04-24 Jason Merrill <jason@redhat.com>
10485
10486 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
10487 * dwarf2out.c (dwarf_attr_name): Support it.
10488 (gen_array_type_die): Emit it.
10489 (lookup_type_die): No special handling for VECTOR_TYPE.
10490 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
10491
10492 2002-04-24 Richard Henderson <rth@redhat.com>
10493
10494 * config/mips/mips.md (movdi_usd): Renumber.
10495
10496 2002-04-24 David S. Miller <davem@redhat.com>
10497
10498 PR target/6420
10499 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
10500 32-bit Sparc and current_function_returns_struct is true.
10501
10502 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
10503
10504 * loop.c (canonicalize_condition): Use gen_int_mode.
10505
10506 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
10507
10508 * config/rs6000/altivec.h: Cleanup file. Add non individual
10509 variants.
10510 (vec_vaddubm): New.
10511 (vec_vadduhm): New.
10512 (vec_vadduwm): New.
10513 (vec_vaddfp): New.
10514 (vec_vaddcuw): New.
10515 (vec_vaddubs): New.
10516 (vec_vaddsbs): New.
10517 (vec_vadduhs): New.
10518 (vec_vadduws): New.
10519 (vec_vaddsws): New.
10520 (vec_vand): New.
10521 (vec_vandc): New.
10522 (vec_vavgub): New.
10523 (vec_vavgsb): New.
10524 (vec_vavguh): New.
10525 (vec_vavgsh): New.
10526 (vec_vavguw): New.
10527 (vec_vavgsw): New.
10528 (vec_vrfip): New.
10529 (vec_vcmpbfp): New.
10530 (vec_vcmpequb): New.
10531 (vec_vcmpequh): New.
10532 (vec_vcmpequw): New.
10533 (vec_vcmpeqfp): New.
10534 (vec_vcmpgefp): New.
10535 (vec_vcmpgtub): New.
10536 (vec_vcmpgtsb): New.
10537 (vec_vcmpgtuh): New.
10538 (vec_vcmpgtsh): New.
10539 (vec_vcmpgtuw): New.
10540 (vec_vcmpgtsw): New.
10541 (vec_vcmpgtfp): New.
10542 (vec_vcmpgefp): New.
10543 (vec_vcfux): New.
10544 (vec_vcfsx): New.
10545 (vec_vctsxs): New.
10546 (vec_vctuxs): New.
10547 (vec_vexptefp): New.
10548 (vec_vrfim): New.
10549 (vec_lvx): New.
10550 (vec_lvebx): New.
10551 (vec_lvehx): New.
10552 (vec_lde): Add vector float variant.
10553 (vec_lvewx): New.
10554 (vec_lvxl): New.
10555 (vec_vlogefp): New.
10556 (vec_vmaddfp): New.
10557 (vec_vmhaddshs): New.
10558 (vec_vmaxub): New.
10559 (vec_vmaxsb): New.
10560 (vec_vmaxuh): New.
10561 (vec_vmaxsh): New.
10562 (vec_vmaxuw): New.
10563 (vec_vmaxsw): New.
10564 (vec_vmaxsw): New.
10565 (vec_vmaxfp): New.
10566 (vec_vmrghb): New.
10567 (vec_vmrghh): New.
10568 (vec_vmrghw): New.
10569 (vec_vmrglb): New.
10570 (vec_vmrglh): New.
10571 (vec_vmrglw): New.
10572 (vec_vminub): New.
10573 (vec_vminsb): New.
10574 (vec_vminuh): New.
10575 (vec_vminsh): New.
10576 (vec_vminuw): New.
10577 (vec_vminsw): New.
10578 (vec_vminfp): New.
10579 (vec_vmladduhm): New.
10580 (vec_vmhraddshs): New.
10581 (vec_msumubm): New.
10582 (vec_vmsummbm): New.
10583 (vec_vmsumuhm): New.
10584 (vec_vmsumshm): New.
10585 (vec_vmsumuhs): New.
10586 (vec_vmsumshs): New.
10587 (vec_vmuleub): New.
10588 (vec_vmulesb): New.
10589 (vec_vmuleuh): New.
10590 (vec_vmulesh): New.
10591 (vec_vmuloub): New.
10592 (vec_mulosb): New.
10593 (vec_vmulouh): New.
10594 (vec_vmulosh): New.
10595 (vec_vnmsubfp): New.
10596 (vec_vnor): New.
10597 (vec_vor): New.
10598 (vec_vpkuhum): New.
10599 (vec_vpkuwum): New.
10600 (vec_vpkpx): New.
10601 (vec_vpkuhus): New.
10602 (vec_vpkshss): New.
10603 (vec_vpkuwus): New.
10604 (vec_vpkswss): New.
10605 (vec_vpkshus): New.
10606 (vec_vpkswus): New.
10607 (vec_vperm): New.
10608 (vec_vrefp): New.
10609 (vec_vrlb): New.
10610 (vec_vrlh): New.
10611 (vec_vrlw): New.
10612 (vec_vrfin): New.
10613 (vec_vrsqrtefp): New.
10614 (vec_vsel): New.
10615 (vec_vslb): New.
10616 (vec_vslh): New.
10617 (vec_vslw): New.
10618 (vec_vsldoi): New.
10619 (vec_vsl): New.
10620 (vec_vslo): New.
10621 (vec_vspltb): New.
10622 (vec_vsplth): New.
10623 (vec_vspltw): New.
10624 (vec_vspltisb): New.
10625 (vec_vspltish): New.
10626 (vec_vspltisw): New.
10627 (vec_vsrb): New.
10628 (vec_vsrh): New.
10629 (vec_vsrw): New.
10630 (vec_vsrab): New.
10631 (vec_vsrah): New.
10632 (vec_vsraw): New.
10633 (vec_vsr): New.
10634 (vec_vsro): New.
10635 (vec_stvx): New.
10636 (vec_stvebx): New.
10637 (vec_stvehx): New.
10638 (vec_stvewx): New.
10639 (vec_stvxl): New.
10640 (vec_vsububm): New.
10641 (vec_vsubuhm): New.
10642 (vec_vsubuwm): New.
10643 (vec_vsubfp): New.
10644 (vec_vsubcuw): New.
10645 (vec_vsububs): New.
10646 (vec_vsubsbs): New.
10647 (vec_vsubuhs): New.
10648 (vec_vsubshs): New.
10649 (vec_vsubuws): New.
10650 (vec_vsubsws): New.
10651 (vec_vsum4ubs): New.
10652 (vec_vsum4sbs): New.
10653 (vec_vsum4shs): New.
10654 (vec_vsum2sws): New.
10655 (vec_vsumsws): New.
10656 (vec_vrfiz): New.
10657 (vec_vupkhsb): New.
10658 (vec_vupkhpx): New.
10659 (vec_vupkhsh): New.
10660 (vec_vupklsb): New.
10661 (vec_vupklpx): New.
10662 (vec_vupklsh): New.
10663 (vec_vxor): New.
10664
10665 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
10666
10667 PR c/5430
10668 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
10669 added literals from substracted literals.
10670 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
10671 (fold) [associate]: Preserve MINUS_EXPR if needed.
10672
10673 2002-04-23 Zack Weinberg <zack@codesourcery.com>
10674
10675 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
10676 are obsoleted.
10677
10678 2002-04-23 Tom Tromey <tromey@redhat.com>
10679
10680 * gcc.c: Added --resource. For PR java/6314.
10681
10682 2002-04-23 David O'Brien <obrien@FreeBSD.org>
10683
10684 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
10685 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
10686 these libraries.
10687
10688 2002-04-23 David O'Brien <obrien@FreeBSD.org>
10689
10690 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
10691
10692 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
10693
10694 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
10695 workaround.
10696 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
10697 (ix86_expand_clrstr): Fix typo.
10698 * loop.c (gen_load_of_final_value): New.
10699 (loop_givs_rescan, strength_reduce, check_dbra_loop):
10700 Use it.
10701
10702 2002-04-23 Roger Sayle <roger@eyesopen.com>
10703
10704 * builtins.c (builtin_memset_gen_str): New function.
10705 (expand_builtin_memset): Optimize the case of constant length, but
10706 unknown value.
10707
10708 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
10709
10710 * config/rs6000/altivec.h (vec_step): Remove extraneous
10711 parentheses.
10712 (vec_ctu): Cast return.
10713
10714 2002-04-23 Alan Modra <amodra@bigpond.net.au>
10715
10716 PR target/6413
10717 * function.h: (struct function): Add profile_label_no field.
10718 (current_function_profile_label_no): Define.
10719 * function.c: (profile_label_no): New static var.
10720 (expand_function_start): Increment it, and copy to
10721 current_function_profile_label_no.
10722 * output.h (profile_label_no): Delete.
10723 * final.c (profile_label_no): Delete.
10724 (profile_function): Use current_function_profile_label_no.
10725 (final_end_function): Don't increment profile_label_no here.
10726 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
10727 profile_label_no with current_function_profile_label_no.
10728 * config/pa/pa.c (current_function_number): Delete.
10729 (pa_output_function_prologue): Don't output profile label here.
10730 (hppa_profile_hook): Use label_no param rather than
10731 current_function_number.
10732 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
10733 * config/pa/pa.h: .. here.
10734 (FUNCTION_PROFILER): Output profile label here.
10735
10736 2002-04-22 Eric Christopher <echristo@redhat.com>
10737
10738 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
10739 patch of 2002-04-09 due to binutils issues.
10740 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
10741
10742 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
10743
10744 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
10745 constraint to 'o' for m=r and r=m alternatives.
10746 ("*movv8hi_internal1"): Same.
10747 ("*movv16qi_internal1"): Same.
10748 ("*movv4sf_internal1"): Same.
10749
10750 2002-04-22 Janis Johnson <janis187@us.ibm.com>
10751
10752 * rtl.h (RTX_FLAG): New macro.
10753 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
10754 * final.c (alter_subreg): Use macro to access rtx flag.
10755 * integrate.c (copy_rtx_and_substitute): Use new access macro.
10756 * print-rtl.c (print_rtx): Use new access macro.
10757
10758 * cse.c (insert): Check rtx code before accessing flag.
10759
10760 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
10761 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
10762 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
10763 convert_const_symbol_ref, make_canonical, make_alternative_compare,
10764 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
10765 simplify_test_exp, optimize_attrs, simplify_by_exploding,
10766 find_and_mark_used_attributes, unmark_used_attributes,
10767 add_values_to_cover, simplify_with_current_value,
10768 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
10769 copy_rtx_unchanging, main): Use new access macros.
10770
10771 2002-04-22 Tom Rix <trix@redhat.com>
10772
10773 * expmed.c (init_expmed): Generate shifted constant once.
10774
10775 2002-04-22 Zack Weinberg <zack@codesourcery.com>
10776
10777 * c-lex.c (lex_charconst): Call convert to get constant in
10778 proper type; don't just smash the type field.
10779 Fixes PR c/6300.
10780
10781 * config.gcc: Add list of obsolete configurations. Disallow
10782 building these without --enable-obsolete.
10783 * doc/install.texi: Document --enable-obsolete and obsoletion
10784 policy. Mention obsoletion of individual targets in
10785 appropriate places.
10786
10787 2002-04-22 Richard Henderson <rth@redhat.com>
10788
10789 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
10790
10791 2002-04-22 Mark Mitchell <mark@codesourcery.com>
10792
10793 PR f/6138.
10794 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
10795 (walk_fixup_memory_subreg): Likewise.
10796 (fixup_var_refs_insn): Adjust accordingly.
10797 (fixup_var_refs_1): Likewise.
10798
10799 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
10800
10801 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
10802 LIBPATH_ARCH64_SPEC): Define.
10803 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
10804 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
10805 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
10806 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
10807
10808 2002-04-22 Joel Sherrill <joel@OARcorp.com>
10809
10810 * gthr-rtems.h: Correct prototypes to remove warnings.
10811
10812 2002-04-22 Richard Henderson <rth@redhat.com>
10813
10814 PR c/6344
10815 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
10816
10817 * gcse.c (free_insn_expr_list_list): New.
10818 (clear_modify_mem_tables): Use it. Fix bit set usage.
10819 (canon_list_insert): Use EXPR_LISTs for expressions.
10820 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
10821
10822 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
10823
10824 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
10825 file change and include code to _cpp_pop_buffer.
10826 * cpphash.h (struct pending_option): Predeclare.
10827 (struct cpp_reader): New member next_include_file.
10828 (_cpp_pop_file_buffer): Update.
10829 (_cpp_push_next_buffer): Update, rename.
10830 * cppinit.c (cpp_destroy): Free include chain and pending here.
10831 (cpp_finish_options): Simplify.
10832 (_cpp_push_next_buffer): Rename and clean up.
10833 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
10834 Clarify.
10835 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
10836
10837 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
10838
10839 * config/rs6000/altivec.h (vec_xor): Add variant for both args
10840 being vector signed int.
10841 (vec_andc): Same.
10842 (vec_xor): Add variant for both args being vector signed char.
10843 Remove redundant variant.
10844 (vec_andc): Same.
10845
10846 2002-04-21 David S. Miller <davem@redhat.com>
10847
10848 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
10849 compare mode in output RTL.
10850
10851 2002-04-22 David Edelsohn <edelsohn@gnu.org>
10852
10853 * config/rs6000/rs6000.c (rs6000_override_options): Correct
10854 style and formatting of previous patch.
10855
10856 2002-04-22 Alan Modra <amodra@bigpond.net.au>
10857
10858 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
10859 flag_pic for ABI_AIX.
10860
10861 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
10862
10863 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
10864 * cppfiles.c (read_include_file): Similarly.
10865 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
10866 uxstrdup ustrchr, ufputs): Similarly.
10867 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
10868 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
10869 cpp_ideq, parse_identifier, parse_number): Similarly.
10870 * cpplib.c (struct directive, dequote_string, D, run_directive,
10871 cpp_push_buffer): Similarly.
10872 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
10873 _cpp_create_definition, check_trad_stringification,
10874 cpp_macro_definition): Similarly.
10875
10876 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
10877
10878 * cppmacro.c (funlike_invocation_p): Don't step back
10879 over CPP_EOF.
10880
10881 2002-04-21 David Edelsohn <edelsohn@gnu.org>
10882
10883 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
10884 labelno.
10885
10886 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
10887
10888 * doc/invoke.texi: Remove Chill references.
10889 * doc/gcc.texi: Update last modified date.
10890
10891 2002-04-20 Kazu Hirata <kazu@hxi.com>
10892
10893 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
10894 push and pop. Replace add.l with add.w.
10895
10896 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
10897
10898 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
10899 multiply instructions for H8/300H case.
10900
10901 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
10902
10903 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
10904 Bum three instructions from each routine.
10905
10906 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
10907
10908 * Makefile.in: Update.
10909 * decl.c (push_c_function_context, pop_c_function_context,
10910 mark_c_function_context): Rename for consistency.
10911 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
10912 * c-tree.h (push_c_function_context, pop_c_function_context,
10913 mark_c_function_context): Rename for consistency.
10914 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10915 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10916 * function.c (init_lang_status, save_lang_status,
10917 restore_lang_status, mark_lang_status, free_lang_status):
10918 Move to langhooks.h.
10919 (push_function_context_to, pop_function_context_from,
10920 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
10921 Update.
10922 * function.h (init_lang_status, save_lang_status,
10923 restore_lang_status, mark_lang_status, free_lang_status):
10924 Move to langhooks.h.
10925 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
10926 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10927 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
10928 LANG_HOOKS_FUNCTION_INITIALIZER): New.
10929 (LANG_HOOKS_INITIALIZER): Update.
10930 (lhd_do_nothing_f): New.
10931 * langhooks.h (struct lang_hooks_for_functions): New.
10932 (struct lang_hooks): New hooks.
10933 * langhooks.c (lhd_do_nothing_f): New.
10934 objc:
10935 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10936 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10937
10938 2002-04-19 David S. Miller <davem@redhat.com>
10939
10940 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
10941 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
10942
10943 2002-04-19 Jakub Jelinek <jakub@redhat.com>
10944
10945 PR optimization/3756
10946 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
10947 x = ((int) y < 0) ? cst1 : cst2.
10948
10949 2002-04-19 Jakub Jelinek <jakub@redhat.com>
10950
10951 PR c/6358
10952 * function.c: Reapply patch for c/6358.
10953 (expand_function_end): Copy decl_rtl's mode, not
10954 current_function_return_rtx mode.
10955
10956 2002-04-19 Joel Sherrill <joel@OARcorp.com>
10957
10958 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
10959 targets.
10960
10961 2002-04-19 Tom Tromey <tromey@redhat.com>
10962
10963 * doc/install.texi (Specific): Update status of Solaris 2.8.
10964 For PR libgcj/6158.
10965
10966 2002-04-19 Andreas Schwab <schwab@suse.de>
10967
10968 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
10969 (PUT_REAL): Restore old definition.
10970
10971 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
10972 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10973
10974 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
10975 binutils 2.11.2 and higher generate smaller binaries than Sun's
10976 native tools.
10977
10978 2002-04-19 Mark Mitchell <mark@codesourcery.com>
10979
10980 PR c++/6352
10981 * toplev.c (rest_of_compilation): Do not defer functions for which
10982 TREE_SYMBOL_REFERENCED has already been set.
10983
10984 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
10985
10986 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
10987 alternative.
10988
10989 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
10990
10991 * builtins.c: Include langhooks.h.
10992 (lang_type_promotes_to): Remove.
10993 (expand_builtin_va_arg): Use new hook.
10994 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
10995 (simple_type_promotes_to): Move to c-typeck.c.
10996 * c-common.h (simple_type_promotes_to): Remove.
10997 * c-decl.c (duplicate_decls, grokdeclarator): Update.
10998 * c-format.c: Include langhooks.h.
10999 (check_format_types): Update.
11000 * c-tree.h (c_type_promotes_to): New.
11001 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
11002 (type_lists_compatible_p): Update.
11003 * langhooks-def.h (lhd_type_promotes_to): New.
11004 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
11005 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
11006 * langhooks.c (lhd_type_promotes_to): New.
11007 * langhooks.h (struct lang_hooks_for_types): New hook.
11008 * tree.h (lang_type_promotes_to): Remove.
11009 objc:
11010 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
11011
11012 2002-04-18 Richard Henderson <rth@redhat.com>
11013
11014 * function.c: Revert patch for c/6358.
11015
11016 2002-04-18 Richard Henderson <rth@redhat.com>
11017
11018 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
11019 blocks. Handle multiple references to the TRAP block. Handle
11020 non-adjacent THEN and OTHER blocks.
11021
11022 2002-04-18 Richard Henderson <rth@redhat.com>
11023
11024 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
11025 crash with no type for by-mode libcalls.
11026
11027 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
11028
11029 2002-04-18 Bob Wilson <bob.wilson@acm.org>
11030
11031 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
11032 __xtensa_nonlocal_goto): Use a syscall instructions to flush
11033 the register windows.
11034
11035 2002-04-18 Zack Weinberg <zack@codesourcery.com>
11036
11037 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
11038 appropriate. Document need for extended precision even when
11039 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
11040 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
11041 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
11042 instead of relying on later syntax error when REAL_WIDTH > 5.
11043 * real.c: Define NE based only on whether or not we have a
11044 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
11045 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
11046 define GET_REAL and PUT_REAL as simple memcpy operations; no
11047 need to byteswap or round.
11048 Use #error instead of #ifdef-ing out the entire file, for
11049 prompt error detection.
11050
11051 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
11052
11053 2002-04-18 David S. Miller <davem@redhat.com>
11054
11055 * config/sparc/sparc.h (BRANCH_COST): Define.
11056
11057 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
11058 does it.
11059
11060 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
11061
11062 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
11063 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
11064 propagate_block calls after relaxation loop using new variable
11065 stabilized_prop_flags.
11066
11067 2002-04-18 Richard Henderson <rth@redhat.com>
11068
11069 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
11070 (ia64_va_arg): Expect variable sized types by reference.
11071 * config/ia64/ia64-protos.h: Update.
11072 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
11073 ia64_function_arg_pass_by_reference.
11074
11075 2002-04-18 Richard Henderson <rth@redhat.com>
11076
11077 * ifcvt.c: Include except.h.
11078 (block_has_only_trap): Break out from find_cond_trap.
11079 (find_cond_trap): Use it. Always delete the trap block.
11080 (merge_if_block): Allow then block null. Be less simplistic about
11081 what insns can end a block.
11082 * Makefile.in (ifcvt.o): Depend on except.h.
11083
11084 * config/ia64/ia64.md (trap, conditional_trap): New.
11085
11086 2002-04-18 Jakub Jelinek <jakub@redhat.com>
11087
11088 PR c/6358
11089 * function.c (assign_parms): Assign hard current_function_return_rtx
11090 register here...
11091 (expand_function_end): ...not here.
11092
11093 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
11094
11095 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
11096 * c-tree.h (c_incomplete_type_error): New.
11097 * c-typeck.c (require_complete_type, build_component_ref): Update.
11098 (incomplete_type_error): Rename.
11099 * langhooks-def.h (lhd_incomplete_type_error): New.
11100 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
11101 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
11102 * langhooks.c (lhd_incomplete_type_error): New.
11103 * langhooks.h (struct lang_hooks_for_types): New hook.
11104 * tree.c (size_in_bytes): Use new hook.
11105 * tree.h (incomplete_type_error): Remove.
11106 objc:
11107 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
11108
11109 2002-04-18 Zack Weinberg <zack@codesourcery.com>
11110
11111 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
11112 TARGET_FLOAT_FORMAT blocks.
11113
11114 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11115
11116 * doc/install.texi (Downloading the source): Do not mention Chill
11117 any longer, but mention Ada.
11118 (Configuration): Do not mention Chill any longer.
11119
11120 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
11121
11122 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
11123
11124 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
11125
11126 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
11127 in last patch.
11128
11129 2002-04-18 Jakub Jelinek <jakub@redhat.com>
11130
11131 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
11132 instead of unsigned_type.
11133
11134 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
11135
11136 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
11137 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
11138 later.
11139
11140 2002-04-18 Bernd Schmidt <bernds@redhat.com>
11141
11142 * attribs.c (vector_type_node_list): New static variable.
11143 (handle_vector_size_attribute): Use it to avoid generating a
11144 new type node each time we are called.
11145
11146 * combine.c (subst): Avoid trying to make a vector mode subreg of
11147 an integer constant.
11148 (gen_lowpart_for_combine): Likewise.
11149
11150 2002-04-18 Roger Sayle <roger@eyesopen.com>
11151 Jakub Jelinek <jakub@redhat.com>
11152
11153 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
11154 for integer constant c (if x has unsigned type or sign bit is not
11155 set in c). This folds the zero/sign extension into the bit-wise and
11156 operation.
11157
11158 2002-04-18 Jakub Jelinek <jakub@redhat.com>
11159
11160 PR middle-end/6205
11161 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
11162 otherwise xorps.
11163
11164 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
11165
11166 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
11167
11168 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
11169
11170 * gcc.c (read_specs): Detect and fail if an attempt is made to
11171 rename a spec string to an already existing string.
11172
11173 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
11174
11175 * config/s390/s390.c (legitimize_pic_address): Do not generate
11176 illegal address constant without CONST.
11177
11178 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11179
11180 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
11181 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11182
11183 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
11184
11185 PR optimization/6305
11186 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
11187 to make sure previous reloads are taken into account. Generate
11188 better code if one operand is an in-range immediate constant.
11189
11190 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
11191
11192 * doc/install.texi (Building): libgcj requires GNU make.
11193
11194 2002-04-17 Jakub Jelinek <jakub@redhat.com>
11195
11196 PR bootstrap/6315
11197 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
11198 even if hard quad and register is not floating.
11199 (movtf reg<-mem split): Disallow splitting if hard quad and
11200 register is floating.
11201 (movtf mem<-reg split): Likewise.
11202 * config/sparc/sparc.c (fp_register_operand): New predicate.
11203 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
11204
11205 2002-04-17 Zack Weinberg <zack@codesourcery.com>
11206
11207 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
11208 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
11209 (unprotoize.o): Ditto. Build from protoize.c. Define
11210 UNPROTOIZE on command line.
11211 * protoize.c: Include cppdefault.h. Delete include_defaults.
11212 (in_system_include_dir): Use cpp_include_defaults (defined in
11213 cppdefault.o).
11214 * unprotoize.c: Delete file.
11215
11216 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
11217
11218 * config/rs6000/altivec.h (vec_ld): Add array variants.
11219 (vec_lde): Same.
11220 (vec_ldl): Same.
11221
11222 2002-04-17 Alan Matsuoka <alanm@redhat.com>
11223 Aldy Hernandez <aldyh@redhat.com>
11224
11225 * config/rs6000/altivec.h: Define __ALTIVEC__.
11226 (bool): New.
11227 (__pixel): New.
11228 (pixel): New.
11229 (vec_cfux): New.
11230 (vec_vmaddfp): New.
11231 (vec_vsldoi): New.
11232 Add parentheses to all macro arguments.
11233
11234 2002-04-16 Richard Henderson <rth@redhat.com>
11235
11236 PR c++/6320
11237 * except.c (remove_eh_handler): Insert inner regions at beginning
11238 of sibling chain. Refactor expressions.
11239
11240 2002-04-16 Richard Henderson <rth@redhat.com>
11241
11242 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
11243 * config/sparc/sol2-gas-bi.h: New file.
11244 * config.gcc (sparc*-solaris): Add it as needed.
11245 * configure.in (AS_SPARC64_FLAG): Remove check.
11246 * config.in, configure: Regenerate.
11247
11248 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
11249
11250 2002-04-16 Richard Henderson <rth@redhat.com>
11251
11252 * config/mips/mips.c (override_options): Don't override N32 for
11253 a 64-bit ISA.
11254
11255 PR 6202
11256 * config/mips/mips.md (can_delay): Split out of existing define_delays.
11257 (HILO_delay): Set can_delay false.
11258
11259 2002-04-16 Dale Johannesen <dalej@apple.com>
11260
11261 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
11262 instruction addresses.
11263 (rs6000_output_function_epilogue): Likewise.
11264
11265 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
11266
11267 * c-parse.in (poplevel, compstmt_start,
11268 compstmt_primary_start): Add ending ';', in accordance
11269 with POSIX.
11270
11271 2002-04-16 Richard Henderson <rth@redhat.com>
11272
11273 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
11274 Adjust tm_file order to get TARGET_DEFAULT set properly.
11275 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
11276 * doc/install.texi (sparc-solaris): Update.
11277
11278 2002-04-16 Dale Johannesen <dalej@apple.com>
11279
11280 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
11281 comparison operands do not match each other or if modes of
11282 conditions do not match result.
11283
11284 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
11285
11286 PR target/6305
11287 * config/s390/s390.md (mulsidi3): Set both subregs of the
11288 multiword register.
11289
11290 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
11291
11292 * config/rs6000/altivec.h (vec_addc): Type check.
11293
11294 2002-04-16 Jakub Jelinek <jakub@redhat.com>
11295
11296 PR middle-end/6279
11297 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
11298
11299 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
11300
11301 2002-04-15 Richard Henderson <rth@redhat.com>
11302
11303 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
11304 call_really_used_regs too.
11305
11306 2002-04-15 Richard Henderson <rth@redhat.com>
11307
11308 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
11309
11310 2002-04-15 David S. Miller <davem@redhat.com>
11311
11312 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
11313 as being CLOBBERed.
11314
11315 2002-04-16 Jakub Jelinek <jakub@redhat.com>
11316
11317 PR c/6290
11318 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
11319 CONST_VECTOR is { 0, ... 0 }.
11320
11321 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
11322
11323 * doc/install.texi (Installing GCC: Configuration): Clarify
11324 the only supported ways to configure gcc.
11325
11326 2002-04-15 Roland McGrath <roland@frob.com>
11327
11328 * config.gcc (alpha*-*-gnu*): New target configuration.
11329 * config/alpha/gnu.h: New file for it.
11330 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
11331
11332 2002-04-16 Mark Mitchell <mark@codesourcery.com>
11333
11334 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
11335 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
11336 * tree.h (expand_start_stmt_expr): Update prototype.
11337 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
11338 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
11339 on the STMT_EXPR created for the inline function.
11340
11341 2002-04-15 Richard Henderson <rth@redhat.com>
11342
11343 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
11344 config/i386/linux-aout.h, config/i386/linux-oldld.h,
11345 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
11346 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
11347 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
11348 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
11349 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
11350 Define __gnu_linux__, not gnu_linux.
11351 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
11352
11353 2002-04-15 Mark Mitchell <mark@codesourcery.com>
11354
11355 Remove Chill front end.
11356 * gcc.c (default_compilers): Remove Chill entries.
11357 * ch: Remove directory.
11358 * doc/frontends.texi: Remove information about Chill.
11359 * doc/sourcebuild.texi: Likewise.
11360 * doc/standards.texi: Likewise.
11361
11362 2002-04-15 Douglas B Rupp <rupp@gnat.com>
11363
11364 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
11365 (LONGLONG_STANDALONE): Define.
11366
11367 2002-04-15 David S. Miller <davem@redhat.com>
11368
11369 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
11370 Call emit_library_call with LCT_NORMAL.
11371 (sparc_initialize_trampoline): Use LCT_foo instead of
11372 magic constant in emit_library_call invocations.
11373 (sparc64_initialize_trampoline): Likewise.
11374 (sparc_profile_hook): Likewise.
11375 * config/sparc/sparc.md: Likewise.
11376
11377 * config/sparc/sparc.c (sparc_extra_constraint_check):
11378 Fix type of argument 'c'.
11379 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
11380 Likewise.
11381
11382 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
11383
11384 * diagnostic.h (output_buffer_state): Redefine.
11385 (output_format_decoder): New macro.
11386 (output_prefixing_rule): Likewise.
11387 (output_line_cutoff): Likewise.
11388 (diagnostic_format_decoder): Adjust.
11389 (diagnostic_prefixing_rule): Likewise.
11390 (diagnostic_line_cutoff): Likewise.
11391 (diagnostic_state): Likewise.
11392 (diagnostic_kind_count): Likewise.
11393 (diagnostic_buffer): Now a macro.
11394
11395 * diagnostic.c (diagnostic_buffer): Remove definition.
11396 (output_is_line_wrapping): Adjust.
11397 (set_real_maximum_length): Likewise.
11398 (output_set_maximum_length): Likewise.
11399 (init_output_buffer): Likewise.
11400 (lhd_print_error_function): Likewise.
11401 (output_do_verbatim): Likewise.
11402
11403 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
11404
11405 * cpperror.c (print_location): Don't print include chain
11406 if line == 0.
11407 (cpp_begin_message): Update to use DL_ macros.
11408 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11409 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11410 cpp_notice, cpp_notice_from_errno): Remove.
11411 (cpp_error, cpp_error_with_line): Update to take a diagnostic
11412 level.
11413 (cpp_errno): New.
11414 * cppexp.c (CPP_ICE): Remove.
11415 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
11416 lex, integer_overflow, _cpp_parse_expr): Update.
11417 * cppfiles.c (read_include_file, find_include_file,
11418 handle_missing_header, _cpp_read_file, remap_filename): Update.
11419 * cpphash.h (enum error_type): Remove.
11420 (_cpp_begin_message): Update.
11421 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
11422 cpp_handle_option, cpp_post_options): Update.
11423 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
11424 skip_whitespace, parse_identifier, parse_slow, parse_string,
11425 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
11426 cpp_interpret_charconst): Update.
11427 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
11428 lex_macro_node, do_undef, glue_header_name, parse_include,
11429 do_include_common, read_flag, do_line, do_linemarker, do_ident,
11430 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
11431 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
11432 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
11433 _cpp_pop_buffer, do_diagnostic): Update.
11434 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
11435 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
11436 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11437 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11438 cpp_notice, cpp_notice_from_errno): Remove.
11439 (cpp_error, cpp_error_with_line): Update to take a diagnostic
11440 level.
11441 (cpp_errno): New.
11442 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
11443 collect_args, enter_macro_context, save_parameter, parse_params,
11444 _cpp_create_definition, check_trad_stringification,
11445 cpp_macro_definition): Update.
11446 * cppmain.c (cpp_preprocess_file): Update.
11447 * fix-header.c (read_scan_file): Update.
11448
11449 2002-04-14 Andreas Schwab <schwab@suse.de>
11450
11451 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
11452
11453 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
11454
11455 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
11456
11457 2002-04-13 Mark Mitchell <mark@codesourcery.com>
11458
11459 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
11460 not gnu_hurd.
11461
11462 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
11463
11464 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
11465
11466 2002-04-13 Joel Sherrill <joel@OARcorp.com>
11467
11468 * config/sparc/t-elf: Enable v8 multilibs. Impacts
11469 sparc-elf and sparc-rtems targets.
11470
11471 2002-04-13 Mark Mitchell <mark@codesourcery.com>
11472
11473 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
11474 defined, and __gnu_hurd__ wherever __GNU__ is defined.
11475 * arm/linux-elf.h: Likewise.
11476 * cris/aout.h: Likewise.
11477 * cris/linux.h: Likewise.
11478 * i370/linux.h: Likewise.
11479 * i386/gnu.h: Likewise.
11480 * i386/linux-aout.h: Likewise.
11481 * i386/linux-oldld.h: Likewise.
11482 * i386/linux.h: Likewise.
11483 * i386/linux64.h: Likewise.
11484 * ia64/linux.h: Likewise.
11485 * m68k/linux-aout.h: Likewise.
11486 * m68k/linux.h: Likewise.
11487 * mips/linux.h: Likewise.
11488 * pa/pa-linux.h: Likewise.
11489 * pj/linux.h: Likewise.
11490 * rs6000/sysv4.h: Likewise.
11491 * s390/linux.h: Likewise.
11492 * sh/linux.h: Likewise.
11493 * sparc/linux-aout.h: Likewise.
11494 * sparc/linux.h: Likewise.
11495 * sparc/linux64.h: Likewise.
11496 * xtensa/linux.h: Likewise.
11497
11498 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
11499
11500 * stmt.c (check_unique_operand_names): Expect operand names to
11501 be strings rather than identifiers. Use simple_cst_equal to
11502 compare them.
11503 (resolve_operand_name_1): Make same identifier to string change here.
11504 * c-parse.in (asm_operand): Convert a named operand into a string.
11505 * cp/parse.y (asm_operand): Likewise.
11506
11507 2002-04-13 Andreas Schwab <schwab@suse.de>
11508
11509 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
11510
11511 2002-04-12 Mark Mitchell <mark@codesourcery.com>
11512
11513 Revert these changes:
11514
11515 2002-04-06 Mark Mitchell <mark@codesourcery.com>
11516
11517 PR c++/5571
11518 * stor-layout.c (layout_decl): Reset the RTL for the decl.
11519
11520 2002-04-12 Richard Henderson <rth@redhat.com>
11521
11522 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
11523 (sparc*-*-solaris): Clean up header files.
11524 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
11525 and plan on generating 64-bit code.
11526 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
11527 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
11528 * config/sparc/sol2-sld-64.h: Rename ...
11529 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
11530 for AS_SPARC64_FLAG not defined.
11531 * config/sparc/sol2-gld-bi.h: New.
11532 * config/sparc/sol2-sld.h: Remove.
11533 * config/sparc/sol26-sld.h: New.
11534 * config/sparc/sol2.h: Tidy comments.
11535 * doc/install.texi: Document sparc-solaris configury changes.
11536
11537 2002-04-12 Richard Henderson <rth@redhat.com>
11538
11539 * recog.c (offsettable_address_p): Match the logic in adjust_address.
11540
11541 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
11542 in 64-bit mode only. Use only for 32-bit or MEDLOW.
11543
11544 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11545
11546 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
11547
11548 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
11549
11550 * pa.c (pa_can_combine_p): Call extract_insn before calling
11551 constrain_operands.
11552
11553 2002-04-12 Douglas B Rupp <rupp@gnat.com>
11554
11555 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
11556 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
11557 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
11558 (CPP_PREDEFINES): Handle __declspec.
11559 * config/i386/t-interix (USER_H): Remove.
11560
11561 2002-04-12 DJ Delorie <dj@redhat.com>
11562
11563 * integrate.c (compare_blocks): Make comparisons safe for when
11564 sizeof(int) < sizeof(char *).
11565 (find_block): Likewise.
11566
11567 2002-04-12 Jan Hubicka <jh@suse.cz>
11568 David Edelsohn <edelsohn@gnu.org>
11569
11570 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
11571 registers.
11572 (symbol_ref_operand): New.
11573 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
11574 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
11575
11576 2002-04-12 Andreas Schwab <schwab@suse.de>
11577
11578 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
11579 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
11580 overrides the definition in config/svr4.h.
11581
11582 2002-04-12 Eric Norum <eric.norum@usask.ca>
11583
11584 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
11585 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
11586 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
11587 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
11588 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
11589 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
11590 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
11591 definitions to config/rtems.h and make the targets more similar.
11592
11593 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11594
11595 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
11596 POINTERS_EXTEND_UNSIGNED.
11597 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
11598 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
11599
11600 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
11601 not specified.
11602
11603 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
11604
11605 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
11606 depends on TARGET_SHMEDIA, not TARGET_SH5.
11607
11608 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
11609
11610 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
11611 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
11612
11613 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
11614
11615 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
11616 no r0 clobber.
11617
11618 2002-04-12 Andreas Schwab <schwab@suse.de>
11619
11620 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
11621
11622 2002-04-12 Richard Henderson <rth@redhat.com>
11623
11624 PR bootstrap/4191
11625 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
11626
11627 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
11628 modes spanning multiple hard regs.
11629
11630 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
11631
11632 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
11633
11634 * pa.c (pa_output_function_prologue): Don't accumulate the total
11635 number of code bytes when using TARGET_64BIT, or gas, SOM and not
11636 the portable runtime.
11637 (output_deferred_plabels): Handle 64bit plabels.
11638 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
11639 generating pic code using the GAS assembler for object formats that
11640 are not SOM (ie., ELF32 and ELF64).
11641 (output_millicode_call): Check attribute type if attribute length is 28.
11642 Likewise use $PIC_pcrel$0. Only call get_attr_length and
11643 dbr_sequence_length once.
11644 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
11645 dbr_sequence_length once.
11646 * pa.h (TARGET_SOM): Define if not defined.
11647 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
11648 with GAS and not SOM.
11649 (jump, call_internal_reg, call_value_internal_reg): Likewise.
11650 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
11651
11652 2002-04-11 David O'Brien <obrien@FreeBSD.org>
11653
11654 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
11655 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
11656 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
11657 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
11658 elfos.h and dbxelf.h values are fine now.
11659 * config/i386/freebsd.h, config/alpha/freebsd.h
11660 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
11661
11662 2002-04-11 David O'Brien <obrien@FreeBSD.org>
11663
11664 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
11665 or set Acpu or Amachine. Reformat.
11666 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11667 define.
11668 (LINK_SPEC): Do not need to undef.
11669 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
11670 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
11671 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11672 define.
11673 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
11674 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
11675 (LINK_SPEC): Do not need to undef.
11676 (DONT_USE_BUILTIN_SETJMP): Do not define.
11677 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
11678 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
11679 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
11680 Remove trailing spaces.
11681 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
11682 __ELF__, or set Acpu or Amachine. Reformat.
11683 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11684 define.
11685
11686 2002-04-11 David O'Brien <obrien@FreeBSD.org>
11687
11688 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
11689 all other *-*-freebsd* targets.
11690
11691 2002-04-11 Richard Henderson <rth@redhat.com>
11692
11693 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
11694
11695 2002-04-11 David O'Brien <obrien@FreeBSD.org>
11696
11697 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
11698 Include {cpu}/{cpu}.h thru tm_file.
11699 (alpha*-*-linux*ecoff): Remove target.
11700 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
11701 (LINK_SPEC): Remove, is not OS independent.
11702 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
11703 (LINK_SPEC): Do not need to #undef any longer.
11704 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
11705 any longer.
11706 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
11707 __ELF__.
11708 (LINK_SPEC): Moved here from alpha/elf.h.
11709 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
11710 SUB_CPP_PREDEFINES.
11711 * config/alpha/linux-ecoff.h: Remove.
11712 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
11713 (CPP_SPEC): Define _POSIX_SOURCE as needed.
11714 (CPP_SUBTARGET_SPEC): Do not define.
11715 (LINK_SPEC): Do not need to #undef any longer.
11716 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
11717 * config/alpha/vms.h: Likewise.
11718
11719 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
11720
11721 * doc/extend.texi: Remove old claim that typedefs cannot have
11722 an alignment attribute.
11723
11724 2002-04-11 Jakub Jelinek <jakub@redhat.com>
11725
11726 PR optimization/6177
11727 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
11728 bitpos is 0 and bitsize CONCAT size.
11729
11730 2002-04-11 Jakub Jelinek <jakub@redhat.com>
11731
11732 PR c/6223
11733 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
11734
11735 2002-04-10 David O'Brien <obrien@FreeBSD.org>
11736
11737 * config/alpha/freebsd.h: Minor reformatting.
11738 (CPP_SPEC): Define ELF and add cpp_subtarget.
11739 (ASM_SPEC): No longer needed.
11740
11741 2002-04-11 Richard Henderson <rth@redhat.com>
11742
11743 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
11744 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
11745 (dimode mem/zero splitter): New.
11746
11747 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
11748
11749 * config/cris/cris.c (cris_override_options): Tweak error message
11750 for PIC not implemented.
11751
11752 * config/cris/cris.h: Tweak comments related to parameter-passing.
11753
11754 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
11755
11756 2002-04-10 Richard Henderson <rth@redhat.com>
11757
11758 * except.c (add_ehl_entry): Allow duplicates after landing pad
11759 creation.
11760
11761 2002-04-10 David Edelsohn <edelsohn@gnu.org>
11762
11763 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
11764
11765 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
11766
11767 * c-decl.c (c_init_decl_processing): Move generation of
11768 decls for g77_integer_type_node and friends from here ...
11769 * c-common.c (c_common_nodes_and_builtins): ... to here.
11770
11771 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
11772
11773 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
11774 is only used as frame pointer when frame_pointer_needed is true.
11775
11776 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
11777
11778 PR target/817
11779 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
11780 for the fact that the pool entry uses two words.
11781 (movdf_hard_insn): Similarly. Also, ADR instruction can span
11782 1k bytes.
11783 (movdf_soft_insn): Similarly.
11784 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
11785 for the fact that the pool entry uses three words.
11786
11787 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
11788
11789 * config/mips/mips.c (mips_va_arg): When using the struct version
11790 of the EABI va_list, allow arguments in the register save area to
11791 take up less room than a stack argument.
11792
11793 2002-04-10 Richard Henderson <rth@redhat.com>
11794
11795 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
11796 if EXPAND_INITIALIZER.
11797
11798 2002-04-09 Richard Henderson <rth@redhat.com>
11799
11800 * config/alpha/alpha.md (movdi_er_maybe_g): New.
11801 * config/alpha/alpha.c (alpha_expand_mov): Use it.
11802
11803 2002-04-10 Alan Modra <amodra@bigpond.net.au>
11804
11805 PR optimization/6233
11806 * rtlanal.c (pure_call_p): New function.
11807 * rtl.h (pure_call_p): Declare.
11808 * loop.c (prescan_loop): Use it to set has_nonconst_call.
11809 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
11810
11811 2002-04-09 Eric Christopher <echristo@redhat.com>
11812
11813 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
11814 information to .comm directive.
11815
11816 2002-04-09 Richard Henderson <rth@redhat.com>
11817
11818 PR c/5078
11819 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
11820
11821 2002-04-09 Richard Henderson <rth@redhat.com>
11822
11823 * basic-block.h (flow_delete_block_noexpunge): Declare.
11824 (expunge_block_nocompact): Declare.
11825 * cfg.c (expunge_block_nocompact): Split out from ...
11826 (expunge_block): ... here.
11827 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
11828 (flow_delete_block_noexpunge): Split out from ...
11829 (flow_delete_block): ... here.
11830 * cfgcleanup.c (delete_unreachable_blocks): Compact while
11831 removing dead blocks.
11832 * except.c (exception_handler_labels): Remove.
11833 (exception_handler_label_map): New.
11834 (struct eh_region): Add aka member.
11835 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
11836 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
11837 (for_each_eh_label, for_each_eh_label_1): New.
11838 (init_eh): Register exception_handler_label_map.
11839 (free_eh_status): Use free_region.
11840 (find_exception_handler_labels): Use the map, not the list.
11841 (remove_exception_handler_label): Likewise.
11842 (maybe_remove_eh_handler): Likewise.
11843 (remove_eh_handler): Use the region aka bitmap.
11844 * except.h (exception_handler_labels): Remove.
11845 (for_each_eh_label): Declare.
11846 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
11847 * loop.c (invalidate_loops_containing_label): New.
11848 (find_and_verify_loops): Use it. Use for_each_eh_label.
11849 * sched-rgn.c (is_cfg_nonregular): Use
11850 current_function_has_exception_handlers.
11851
11852 2002-04-09 Richard Henderson <rth@redhat.com>
11853
11854 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
11855 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
11856 Do not return changed status.
11857 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
11858 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
11859 New functions that do return changed status.
11860 * sbitmap.h: Update decls.
11861 * gcse.c, lcm.c: Use _cg functions as needed.
11862
11863 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
11864
11865 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
11866 (sh64-*-elf*, sh-*-rtemself*): Likewise.
11867 * config/sh/embed_bb.c: New file.
11868 * config/sh/embed-elf.h: New file.
11869 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
11870 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
11871 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11872 __PTRDIFF_TYPE__ .
11873 (SUBTARGET_CPP_PTR_SPEC): Don't define.
11874 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
11875 Add subtarget_asm_endian_spec.
11876 (ASM_SPEC): Use subtarget_asm_endian_spec.
11877 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
11878 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
11879 (WCHAR_UNSIGNED): Define.
11880 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
11881 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11882 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
11883 Fix value.
11884 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
11885 (sh_adjust_cost): Likewise.
11886 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11887 __PTRDIFF_TYPE__ .
11888 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
11889 (WCHAR_TYPE_SIZE): Likewise.
11890 (ASM_SPEC): Use subtarget_asm_endian_spec.
11891 (SH_ELF_WCHAR_TYPE): #undef/ #define.
11892 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
11893 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
11894 (MAX_WCHAR_TYPE_SIZE): Don't #define .
11895 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
11896 (USER_LABEL_PREFIX): Don't #undef /#define .
11897 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11898 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
11899 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
11900 (ASM_SPEC): Likewise.
11901 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
11902 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
11903 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
11904 (LIB2FUNCS_EXTRA): Define.
11905 * t-sh64 (LIB2FUNCS_EXTRA): Define.
11906 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
11907 (LIB1ASMFUNCS_CACHE): Define.
11908 (LIB2FUNCS_EXTRA): Redefine empty.
11909
11910 2002-04-08 Richard Henderson <rth@redhat.com>
11911
11912 * reorg.c (get_branch_condition): Use reversed_comparison_code.
11913
11914 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11915
11916 * config/m68hc11/larith.asm (__map_data_section): Fix condition
11917 and optimize for size.
11918 (__do_global_ctors): Fix pointer comparison.
11919 (__do_global_dtors): Likewise.
11920
11921 2002-04-09 David S. Miller <davem@redhat.com>
11922
11923 * config/sparc/sparc.c (sparc_extra_constraint_check): New
11924 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
11925 allow reloading pseudos.
11926 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
11927 * config/sparc/sparc-protos.h: Declare it.
11928
11929 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
11930 unsigned comparison warning.
11931 (output_restore_regs): Mark leaf_function as unused.
11932
11933 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11934
11935 * expr.c (is_aligning_offset): New function.
11936 (expand_expr, case COMPONENT_EXPR): Call it.
11937
11938 2002-04-08 David S. Miller <davem@redhat.com>
11939
11940 PR target/6082
11941 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
11942
11943 Make init_priority work on Sparc when using GNU ld.
11944 * config/sparc/linux.h, config/sparc/linux64.h,
11945 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
11946 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
11947 * config/sparc/sol2-gld.h: New file to do the same.
11948 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
11949 sparc/sol2-gld.h to tm_file.
11950
11951 PR optimization/4328
11952 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
11953 * doc/md.texi: Document it.
11954 * config/sparc/sparc.md (movdi_insn_sp64_novis,
11955 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
11956 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
11957 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
11958 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
11959
11960 2002-04-08 Andreas Jaeger <aj@suse.de>
11961
11962 * stmt.c (expand_asm_operands): Revert last patch from Richard
11963 Henderson.
11964
11965 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11966
11967 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
11968 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
11969
11970 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11971
11972 * doc/contrib.texi (Contributors): Add David O'Brien.
11973
11974 2002-04-08 Alan Modra <amodra@bigpond.net.au>
11975
11976 * configure.in (auto-build.h): Use target_alias and build_alias
11977 when running configure.
11978 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
11979 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
11980 * configure: Regenerate.
11981
11982 2002-04-07 David S. Miller <davem@redhat.com>
11983
11984 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
11985
11986 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11987
11988 PR 5933
11989 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
11990 generating 32-bit pic code.
11991
11992 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
11993
11994 * cppinit.c (cpp_create_reader): Initialize
11995 discard_comments_in_macro_exp.
11996 (COMMAND_LINE_OPTIONS): Add "-CC" option.
11997 (cpp_handle_option): Handle "-CC" option.
11998 * cpplex.c (save_comment): If saving a C++ comment in
11999 a directive, convert it to a C comment.
12000 (_cpp_lex_direct): Pass second comment start character to
12001 save_comment to indicate comment type.
12002 * cpplib.c (_cpp_handle_directive): If processing
12003 a "#define" directive and discard_comments_in_macro_exp
12004 is false, re-enable saving of comments.
12005 (lex_macro_node): If discard_comments_in_macro_exp is false,
12006 discard any comments before the macro identifier.
12007 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
12008 member.
12009 * cppmacro.c (cpp_get_token): If expanding a macro while
12010 processing a directive, discard any comments we might encounter.
12011 (parse_params): If discard_comments_in_macro_exp is false,
12012 ignore comments in the macro parameter list.
12013 * gcc.c (cpp_unique_options): Add "-CC" option.
12014 (option_map): Map "--comments-in-macros" to "-CC".
12015 * doc/cppopts.texi: Document "-CC" option.
12016 * f/lang-specs.h: Add "-CC" option.
12017 * testsuite/gcc.dg/cpp/maccom1.c: New test.
12018 * testsuite/gcc.dg/cpp/maccom2.c: New test.
12019 * testsuite/gcc.dg/cpp/maccom3.c: New test.
12020 * testsuite/gcc.dg/cpp/maccom4.c: New test.
12021 * testsuite/gcc.dg/cpp/maccom5.c: New test.
12022 * testsuite/gcc.dg/cpp/maccom6.c: New test.
12023
12024 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
12025
12026 PR middle-end/6180
12027 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
12028
12029 2002-04-06 Mark Mitchell <mark@codesourcery.com>
12030
12031 PR c++/5571
12032 * stor-layout.c (layout_decl): Reset the RTL for the decl.
12033
12034 PR opt/5120
12035 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
12036 RTX_UNCHANGING_P for the functions arguments when a tail call
12037 is made.
12038
12039 2002-04-06 Jason Merrill <jason@redhat.com>
12040
12041 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
12042 (parse_options_and_default_flags): Set them appropriately.
12043 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
12044
12045 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
12046
12047 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
12048 here.
12049
12050 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
12051 semicolon.
12052
12053 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
12054 types come in by-reference. Fix typo in comment.
12055
12056 2002-04-05 David S. Miller <davem@redhat.com>
12057
12058 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
12059 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
12060 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
12061 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
12062
12063 2002-04-05 David S. Miller <davem@redhat.com>
12064
12065 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
12066 are not going to emit return instructions, emit at least a nop
12067 for the sake of sane backtraces.
12068
12069 2002-04-05 Richard Henderson <rth@redhat.com>
12070
12071 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
12072
12073 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
12074
12075 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
12076
12077 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
12078
12079 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
12080 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
12081 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
12082
12083 2002-04-05 Andreas Schwab <schwab@suse.de>
12084
12085 * c-convert.c: Include c-common.h.
12086 * Makefile.in (c-convert.o): Updated.
12087
12088 2002-04-05 Jakub Jelinek <jakub@redhat.com>
12089
12090 * mklibgcc.in: Use separate libgcc.map for each multilib.
12091 * Makefile.in (distclean): Don't remove libgcc.map here.
12092
12093 2002-04-05 Jakub Jelinek <jakub@redhat.com>
12094
12095 * Makefile.in (s-mlib): Handle --disable-multilib by separate
12096 genmultilib invocation.
12097
12098 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
12099
12100 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
12101 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
12102 to num_gprs for symmetry.
12103 * config/mips/mips.c: Adjust accordingly.
12104
12105 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
12106
12107 * c-common.c (truthvalue_conversion): Rename, update.
12108 * c-common.h (c_common_truthvalue_conversion): New.
12109 * c-convert.c (convert): Update.
12110 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
12111 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
12112 * c-typeck.c (build_binary_op, build_unary_op,
12113 build_conditional_expr): Update.
12114 * fold-const.c (constant_boolean_node, fold): Use langhook.
12115 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
12116 * langhooks.h (struct lang_hooks): New hook.
12117 * stmt.c (expand_decl_cleanup): Use langhook.
12118 * tree.h (truthvalue_conversion): Remove.
12119 objc:
12120 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
12121
12122 2002-04-05 Alan Modra <amodra@bigpond.net.au>
12123
12124 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
12125 Add rules to make null object file.
12126
12127 2002-04-04 Jim Blandy <jimb@redhat.com>
12128
12129 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
12130 macro formal parameter names.
12131
12132 2002-04-04 David S. Miller <davem@redhat.com>
12133
12134 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
12135
12136 2002-04-04 Richard Henderson <rth@redhat.com>
12137
12138 PR middle-end/5099
12139 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
12140 Support copies into and out of memory. Don't accept allows_reg
12141 and allows_mem as gospel.
12142
12143 2002-04-04 Richard Henderson <rth@redhat.com>
12144
12145 PR opt/6165
12146 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
12147 (write_dependence_p): Likewise.
12148
12149 2002-04-04 Richard Henderson <rth@redhat.com>
12150
12151 * predict.c (estimate_bb_frequencies): Do frequency calculation
12152 with a volatile temporary.
12153
12154 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
12155
12156 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
12157
12158 2002-04-04 Jakub Jelinek <jakub@redhat.com>
12159
12160 PR c++/6119
12161 * final.c (final_start_function): Don't bump profile_label_no here...
12162 (final_end_function): ...but here.
12163
12164 2002-04-04 Jakub Jelinek <jakub@redhat.com>
12165
12166 * config/sparc/sparc.md (pic): New attribute.
12167 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
12168 into stack slots.
12169 (split after do_builtin_setjmp_setup): New.
12170
12171 2002-04-04 Jakub Jelinek <jakub@redhat.com>
12172
12173 PR fortran/6106
12174 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
12175 change.
12176
12177 2002-04-04 Jakub Jelinek <jakub@redhat.com>
12178
12179 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
12180 UNITS_PER_WORD for zero sized aggregates.
12181
12182 2002-04-03 David S. Miller <davem@redhat.com>
12183
12184 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
12185 one-character spec for this, just use %(link_gcc_c_sequence).
12186
12187 2002-04-03 David S. Miller <davem@redhat.com>
12188
12189 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
12190 handling.
12191
12192 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
12193
12194 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
12195 (DWARF_FRAME_RETURN_COLUMN): Move.
12196 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12197 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
12198 * pa.c (except.h, predict.h): Include.
12199 (FRP): Delete.
12200 (store_reg_modify, set_reg_plus_d): Revise prototypes.
12201 (output_ascii): Add cast.
12202 (store_reg_modify): Revise to add frame notes.
12203 (set_reg_plus_d): Likewise.
12204 (compute_frame_size): Include space for eh data registers in frame if
12205 the current function calls eh_return.
12206 (hppa_expand_prologue): Ensure register %r2 is saved if the current
12207 function calls eh_return. Save eh data registers if the current
12208 function calls eh_return. Fix code to add frame notes. Emit
12209 blockage to prevent insns with frame notes being scheduled in the
12210 delay slot of calls.
12211 (hppa_expand_epilogue): Restore eh data registers and do final stack
12212 adjustment if the current function calls eh_return. Don't add frame
12213 notes.
12214 (output_call): Revise for change in length of call insn. Don't do
12215 return pointer adjustment for an unconditional jump in the delay slot
12216 of a call when using frame notes.
12217 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
12218 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
12219 (ARG_POINTER_CFA_OFFSET): Define.
12220 * pa.md (return_external_pic): New pattern.
12221 (prologue): Correct formatting. Use return_external_pic if current
12222 function calls eh_return.
12223 (call_internal_symref, call_value_internal_symref,
12224 sibcall_internal_symref, sibcall_value_internal_symref): Change default
12225 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
12226 respectively.
12227 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
12228
12229 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
12230 list of targets to check using "nop" insn.
12231 * configure: Rebuilt.
12232
12233 2002-04-04 Alan Modra <amodra@bigpond.net.au>
12234
12235 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
12236
12237 2002-04-03 David S. Miller <davem@redhat.com>
12238
12239 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
12240 library sequence passed to the linker.
12241 (LINK_COMMAND_SPEC): Use it.
12242 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
12243 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
12244 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12245
12246 2002-04-03 Jason Merrill <jason@redhat.com>
12247
12248 * except.c (struct eh_status): Remove protect_list.
12249 (begin_protect_partials, end_protect_partials): Remove.
12250 (add_partial_entry): Remove.
12251 * except.h: Remove prototypes.
12252
12253 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
12254 expand_decl_cleanup_eh.
12255
12256 PR c++/5636
12257 * tree.h (CLEANUP_EH_ONLY): New macro.
12258 * stmt.c (expand_decl_cleanup_eh): New fn.
12259 (expand_cleanups): Check CLEANUP_EH_ONLY.
12260 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
12261 Use expand_decl_cleanup_eh.
12262 (expand_stmt): Adjust.
12263 * c-common.h: Adjust prototype.
12264
12265 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
12266
12267 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
12268 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
12269 (cris_target_asm_function_epilogue): Ditto.
12270 (cris_initial_frame_pointer_offset): Ditto.
12271 (cris_simple_epilogue): Ditto.
12272 (cris_expand_builtin_va_arg): Variable-size types come in
12273 by-reference.
12274
12275 2002-04-03 David S. Miller <davem@redhat.com>
12276
12277 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
12278 little-endian.
12279 (set_fast_math): Correct 'fsr' type.
12280
12281 2002-04-03 Richard Henderson <rth@redhat.com>
12282
12283 PR opt/3569
12284 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
12285 * toplev.c (check_global_declarations): Use it.
12286 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
12287 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12288 (LANG_HOOKS_DECLS): Add it.
12289 * langhooks.c (lhd_warn_unused_global_decl): New.
12290 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12291 * c-objc-common.c (c_warn_unused_global_decl): New.
12292 * c-tree.h (c_warn_unused_global_decl): Declare.
12293 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12294
12295 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
12296
12297 * langhooks-def.h (lhd_set_decl_assembler_name,
12298 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
12299 (LANG_HOOKS_INITIALIZER): Update.
12300 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
12301 * langhooks.h (struct lang_hooks): New hook.
12302 * tree.c (set_decl_assembler_name): Move to langhooks.c.
12303 (lang_set_decl_assembler_name): Remove.
12304 (init_obstacks): Don't set hook.
12305 (decl_assembler_name): New function.
12306 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
12307 (decl_assembler_name): New.
12308 (lang_set_decl_assembler_name): Remove.
12309
12310 2002-04-03 Jakub Jelinek <jakub@redhat.com>
12311
12312 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
12313 works properly with .hidden symbols.
12314 * configure: Rebuilt.
12315 * config.in: Rebuilt.
12316 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
12317 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
12318 properly with .hidden symbols.
12319
12320 2002-04-03 Jakub Jelinek <jakub@redhat.com>
12321
12322 PR middle-end/6102
12323 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
12324 USE argument.
12325
12326 2002-04-03 Richard Henderson <rth@redhat.com>
12327
12328 PR opt/4120
12329 * sched-rgn.c (sets_likely_spilled): New.
12330 (sets_likely_spilled_1): New.
12331 (add_branch_dependences): Use it.
12332
12333 2002-04-02 Richard Henderson <rth@redhat.com>
12334
12335 PR opt/4311
12336 * loop.h (LOOP_FIRST_PASS): New.
12337 * loop.c (strength_reduce): Mind it when deciding to unroll.
12338 * toplev.c (rest_of_compilation): Set it.
12339
12340 2002-04-02 David S. Miller <davem@redhat.com>
12341
12342 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
12343 mems_ok_for_ldd_peep when the order of the loads being examined
12344 is reversed.
12345 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
12346 existing comment to increase comprehension of this situation.
12347
12348 2002-04-02 Zack Weinberg <zack@codesourcery.com>
12349
12350 * config/sh/sh.md: Don't use union real_extract.
12351
12352 2002-04-02 Richard Henderson <rth@redhat.com>
12353
12354 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
12355
12356 2002-04-02 David O'Brien <obrien@FreeBSD.org>
12357
12358 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
12359 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
12360 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
12361 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
12362 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
12363 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
12364 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
12365 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
12366 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
12367 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
12368 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
12369 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
12370 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
12371 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
12372 Include as many configury headers via tm_file as possible. This
12373 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
12374 * config/openbsd-oldgas.h: New file.
12375 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
12376 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
12377 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
12378 config/i386/i386-coff.h, config/i386/i386-interix.h,
12379 config/i386/iscdbx.h, config/i386/linux-aout.h,
12380 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
12381 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
12382 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
12383 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
12384 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
12385 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
12386 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
12387 config/i386/vxi386.h: Do not directly include configury headers.
12388 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
12389 Directly include configury headers that are no longer automatically
12390 included by the above headers.
12391 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
12392 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
12393 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
12394 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
12395 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
12396 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
12397 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
12398 (TARGET_VERSION): Define.
12399 * config/i386/beos-elf.h, config/i386/freebsd.h,
12400 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
12401 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
12402 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
12403 config/i386/sco5.h, config/i386/sysv4.h
12404 (TARGET_VERSION): Do not need to protect.
12405 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
12406 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
12407 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
12408 config/i386/i386-interix.h, config/i386/linux-aout.h,
12409 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
12410 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
12411 (YES_UNDERSCORES): Do not define - not needed.
12412 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
12413 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12414 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
12415 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
12416 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12417 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
12418 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
12419 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
12420
12421 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
12422 Richard Henderson <rth@redhat.com>
12423
12424 PR c/5484
12425 * function.c (assign_temp): Accept either type or decl argument.
12426 Detect variables whose size is too large to fit into an integer.
12427 * stmt.c (expand_decl): Pass the decl, not the type.
12428
12429 2002-04-02 David O'Brien <obrien@FreeBSD.org>
12430
12431 * protoize.c: Match include directory usage with cppdefault.c.
12432
12433 2002-04-03 Jeffrey A Law (law@redhat.com)
12434 Hans-Peter Nilsson <hp@bitrange.com>
12435
12436 * combine.c (simplify_comparison): Avoid narrowing a comparison
12437 with a paradoxical subreg when doing so would drop signficant bits.
12438
12439 2002-04-02 Steve Ellcey <sje@cup.hp.com>
12440
12441 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
12442 if POINTERS_EXTEND_UNSIGNED is defined.
12443
12444 2002-04-02 Richard Henderson <rth@redhat.com>
12445
12446 PR opt/3967
12447 * local-alloc.c (contains_replace_regs): LO_SUM may contain
12448 replace regs.
12449
12450 2002-04-02 Richard Henderson <rth@redhat.com>
12451
12452 * doc/standards.texi: Document required freestanding libc entry points.
12453
12454 2002-04-02 Alan Modra <amodra@bigpond.net.au>
12455
12456 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
12457 associated splitter. Remove MQ constraint.
12458 (ctrdi_internal4): Correct CCmode clobber.
12459
12460 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
12461
12462 * milli64.S ($$dyncall): New function.
12463 * t-linux (LIB1ASMFUNCS): Revise module list.
12464 (LIB1ASMSRC): Use pa/milli64.S.
12465
12466 2002-04-02 Richard Henderson <rth@redhat.com>
12467
12468 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
12469 rename solaris_sys_varargs_h.
12470
12471 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12472
12473 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
12474 the same mode as its component.
12475
12476 2002-04-02 Richard Henderson <rth@redhat.com>
12477
12478 PR opt/190
12479 * final.c (this_is_asm_operands): Export.
12480 * output.h (this_is_asm_operands): Declare.
12481 * config/i386/i386.c (print_operand): Error odd asm operands.
12482
12483 2002-04-02 Richard Henderson <rth@redhat.com>
12484
12485 PR opt/420
12486 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
12487
12488 2002-04-01 Richard Henderson <rth@redhat.com>
12489
12490 PR target/1538
12491 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
12492 * fixinc/fixincl.x: Rebuild.
12493
12494 2002-04-01 Richard Henderson <rth@redhat.com>
12495
12496 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
12497 (atomic_alloc, atomic_free): New.
12498 (SIZE, MASK_FOR, PTR_IN): New.
12499 (emergency_reg_state, emergency_reg_state_free): New.
12500 (emergency_labeled_state, emergency_labeled_state_free): New.
12501 (reg_state_alloced, labeled_state_alloced): New.
12502 (alloc_reg_state, free_reg_state): New.
12503 (alloc_label_state, free_label_state, free_label_states): New.
12504 (push, pop, dup_state_stack, free_state_stack): Use them.
12505 (desc_label_state): Likewise.
12506 (uw_frame_state_for): Free label states and state stack.
12507 (uw_update_reg_address): Eliminate warnings.
12508
12509 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
12510
12511 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
12512 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
12513
12514 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12515
12516 * c-decl.c (grokdeclarator): Update.
12517 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12518 * c-tree.h (c_mark_addressable): New.
12519 * c-typeck.c (default_function_array_conversion, build_unary_op,
12520 build_array_ref, convert_for_assignment): Update.
12521 (mark_addressable): Rename.
12522 * calls.c (try_to_integrate, expand_call): Use langhook.
12523 * expr.c (expand_expr): Use langhook.
12524 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
12525 * langhooks.h (struct lang_hooks): New hook.
12526 * stmt.c (expand_asm_operands): Use langhook.
12527 * tree.h (mark_addressable): Remove.
12528 objc:
12529 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12530
12531 2002-04-01 Bob Wilson <bob.wilson@acm.org>
12532
12533 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
12534 in previous change.
12535
12536 2002-04-01 Bob Wilson <bob.wilson@acm.org>
12537
12538 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
12539 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
12540
12541 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12542
12543 * c-common.c (unsigned_conversion_warning, convert_and_check,
12544 unsigned_type, signed_type, shorten_compare,
12545 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
12546 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
12547 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
12548 New.
12549 * c-decl.c (grokdeclarator): Update.
12550 * c-format.c (check_format_types): Update.
12551 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12552 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12553 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
12554 * convert.c (convert_to_integer): Use new hooks.
12555 * expmed.c (make_tree): Use new hooks.
12556 * expr.c (store_expr): Use new hooks.
12557 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
12558 all_ones_mask_p, unextend, fold): Use new hooks.
12559 * langhooks.h (struct lang_hooks_for_types): New hooks.
12560 * tree.h (signed_or_unsigned_type, signed_type,
12561 unsigned_type): Remove.
12562 objc:
12563 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12564 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12565
12566 2002-03-31 Richard Henderson <rth@redhat.com>
12567
12568 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
12569 (desc_frgr_mem): Fix reference to f16-f31.
12570
12571 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12572
12573 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
12574 RTVEC_ELT): Const-ify.
12575 * varray.h (VARRAY_CHECK): Const-ify.
12576 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
12577 ggc_mark_rtvec, ggc_mark): Const-ify.
12578
12579 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12580
12581 * diagnostic.c: Include langhooks-def.h.
12582 * Makefile.in (diagnostic.o): Update.
12583
12584 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
12585
12586 * c-common.c (c_unsafe_for_reeval): Rename.
12587 * c-common.h (c_unsafe_for_reeval): Rename.
12588 * c-decl.c (finish_incomplete_decl): Rename.
12589 (c_init_decl_processing): Don't set langhook.
12590 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12591 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12592 * c-objc-common.c (c_objc_common_init): Don't set langhook.
12593 * c-tree.h (finish_incomplete_decl): Rename.
12594 * langhooks-def.h (lhd_unsafe_for_reeval): New.
12595 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
12596 (LANG_HOOKS_INITIALIZER): Update.
12597 * langhooks.c (lhd_unsafe_For_reeval): New.
12598 * langhooks.h (struct langhooks): New hooks.
12599 * toplev.c (incomplete_decl_finalize_hook): Remove.
12600 (wrapup_global_declarations): Update.
12601 * tree.c (lang_unsafe_for_reeval): Remove.
12602 (unsafe_for_reeval): Update.
12603 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
12604 Remove.
12605 objc:
12606 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12607 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12608
12609 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
12610
12611 * diagnostic.c (print_error_function): Remove.
12612 (default_print_error_function): Rename.
12613 (report_error_function): Update.
12614 * diagnostic.h (print_error_function): Remove.
12615 (default_print_error_function): Remove.
12616 * langhooks-def.h (struct diagnostic_context): Predeclare.
12617 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
12618 (LANG_HOOKS_INITIALIZER): Update.
12619 * langhooks.h (struct diagnostic context): Predeclare.
12620 (struct lang_hooks): New hook.
12621
12622 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12623
12624 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
12625 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
12626 !flag_pic.
12627 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
12628 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
12629 of PIC_OFFSET_TABLE_REGNUM thruout.
12630 * config/rs6000/rs6000.md: Likewise.
12631 * config/rs6000/darwin.h: Likewise.
12632
12633 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12634
12635 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
12636 unsigned HOST_WIDE_INT, not unsigned int.
12637
12638 2002-03-31 Jakub Jelinek <jakub@redhat.com>
12639
12640 PR middle-end/6096, middle-end/6098, middle-end/6099
12641 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
12642 CODE_LABELs.
12643 (fill_slots_from_thread): Likewise.
12644
12645 2002-03-31 Jakub Jelinek <jakub@redhat.com>
12646
12647 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
12648 floating fields in float regs.
12649 (function_arg_record_value_2): Likewise.
12650
12651 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
12652
12653 * config/mmix/mmix.md (define_constants): Remove misleading
12654 FIXME. Add MMIX_fp_rO_OFFSET.
12655 ("nonlocal_goto_receiver"): Don't have stack-frame address of
12656 saved rO as part of the pattern. Remove FIXME.
12657 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
12658 here, at output-time.
12659
12660 2002-03-31 Jakub Jelinek <jakub@redhat.com>
12661
12662 PR middle-end/6100
12663 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
12664 REG_BR_PRED.
12665 (output_v9branch): Likewise.
12666
12667 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
12668
12669 * gcc.c: Revert previous patch for now.
12670 * config/i386/djgpp.h: Likewise.
12671
12672 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
12673
12674 * config/mmix/crti.asm (_init): Register _fini with atexit.
12675 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
12676
12677 2002-03-31 Richard Henderson <rth@redhat.com>
12678
12679 PR target/3997
12680 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
12681 (ASM_OUTPUT_DEF_FROM_DECLS): New.
12682
12683 2002-03-31 Richard Henderson <rth@redhat.com>
12684
12685 * libgcc2.c (__bb_exit_func): Make static.
12686
12687 * config/alpha/alpha.md (trap): New.
12688
12689 2002-03-31 Richard Henderson <rth@redhat.com>
12690
12691 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
12692 promoted argument types; build trap.
12693 (expand_builtin_trap): New.
12694 (expand_builtin): Use it.
12695 * stmt.c (expand_nl_goto_receivers): Likewise.
12696 * expr.h (expand_builtin_trap): Declare.
12697 * libfuncs.h (LTI_abort, abort_libfunc): New.
12698 * optabs.c (init_optabs): Init abort_libfunc.
12699
12700 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
12701
12702 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
12703 (LINK_COMMAND_SPEC): ... from here.
12704 (init_gcc_specs): Duplicate it here too, omitting
12705 shared_name in the second copy.
12706 (init_spec): Test for duplicate
12707 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
12708
12709 2002-03-30 David S. Miller <davem@redhat.com>
12710
12711 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12712 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
12713
12714 2002-03-30 Roger Sayle <roger@eyesopen.com>
12715 Richard Henderson <rth@redhat.com>
12716
12717 * regmove.c (combine_stack_adjustments_for_block): Avoid
12718 emitting a stack adjustment of zero bytes. Let delete_insn
12719 update bb->head.
12720
12721 2002-03-30 Richard Henderson <rth@redhat.com>
12722
12723 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
12724 (sparc_emitting_epilogue): New.
12725 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
12726 * config/sparc/sparc-protos.h: Update.
12727 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
12728 (TARGET_SWITCHES): Update.
12729 * config/sparc/sparc.md (return): Remove.
12730 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
12731 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
12732 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
12733 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
12734 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
12735 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
12736 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
12737 Remove MASK_EPILOGUE.
12738 * doc/invoke.texi: Update.
12739
12740 2002-03-30 Daniel Berlin <dan@dberlin.org>
12741
12742 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
12743 CPP will start the file for us.
12744
12745 2002-03-30 Richard Henderson <rth@redhat.com>
12746
12747 PR target/5446
12748 * config/ia64/ia64.c (group_barrier_needed_p): Special case
12749 prologue_allocate_stack.
12750 (ia64_single_set): Use insn codes for recognition of special
12751 cases, not rtl matching.
12752 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
12753
12754 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
12755
12756 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
12757
12758 2002-03-30 Richard Henderson <rth@redhat.com>
12759
12760 PR target/6032
12761 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
12762 or -fomit-frame-pointer with profiling.
12763 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12764 (FUNCTION_PROFILER): Do nothing.
12765 (PROFILE_HOOK): New.
12766 * config/sparc/sparc.c (sparc_override_options): Don't check
12767 code models for profiling.
12768 (sparc_function_profiler): Remove.
12769 (sparc_profile_hook): New.
12770 * config/sparc/sparc-protos.h: Update.
12771
12772 2002-03-30 Jakub Jelinek <jakub@redhat.com>
12773
12774 PR optimization/6086
12775 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
12776 of SUBREG of volatile MEM or because the MEM was mode dependent,
12777 return CLOBBER instead of unmodified SUBREG.
12778
12779 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
12780
12781 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
12782 when not optimizing.
12783
12784 * toplev.c (rest_of_compilation): Cann mark_constant_function
12785 only when optimizing.
12786
12787 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
12788 are NULL.
12789
12790 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
12791 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
12792 (try_optimize_cfg): clear all AUX fields.
12793
12794 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
12795 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
12796 (ix86_address_cost): Be prepared for SUBREGed registers.
12797 (legitimate_address_p): Accept SUBREGed registers.
12798
12799 2002-03-29 Richard Henderson <rth@redhat.com>
12800
12801 PR target/5672
12802 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
12803
12804 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12805
12806 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
12807 for aggregate and TFmode types.
12808
12809 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
12810
12811 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
12812
12813 2002-03-29 Richard Henderson <rth@redhat.com>
12814
12815 PR target/5886
12816 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
12817 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
12818
12819 2002-03-29 Richard Henderson <rth@redhat.com>
12820
12821 PR target/6041
12822 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
12823 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
12824 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
12825 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
12826 conditional.
12827 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
12828
12829 2002-03-29 Dale Johannesen <dalej@apple.com>
12830
12831 * loop.c (combine_movables): Do allow combination of pseudos.
12832
12833 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
12834
12835 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
12836 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
12837 No functional change except ...
12838 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
12839 * doc/install.texi (*-*-freebsd*): Document port configuration.
12840
12841 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
12842
12843 * Makefile.in (convert.o, calls.o, expmed.o): Update.
12844 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
12845 Use new hooks.
12846 * builtin-types.def (BT_PTRMODE): Update.
12847 * c-common.c (type_for_size): Rename c_common_type_for_size.
12848 (type_for_mode): Similarly.
12849 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
12850 Use new hook.
12851 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
12852 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
12853 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
12854 Redefine.
12855 * c-typeck.c (common_type, comptypes, default_conversion):
12856 Use new hooks.
12857 * calls.c: Include langhooks.h.
12858 (emit_library_call_value_1): Use new hooks. Avoid redundant
12859 calls.
12860 * convert.c: Include langhooks.h
12861 (convert_to_pointer, convert_to_integer): Use new hooks.
12862 * except.c (init_eh): Similarly.
12863 * expmed.c: Include langhooks.h.
12864 (expand_mult_add): Use new hooks.
12865 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
12866 try_casesi): Similarly.
12867 * fold-const.c (optimize_bit_field_compare, make_range,
12868 decode_field_reference, fold_truthop, fold): Similarly.
12869 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
12870 put_var_into_stack): Similarly.
12871 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
12872 LANG_HOOKS_TYPE_FOR_SIZE): New.
12873 (LANG_HOOKS_TYPES_INITIALIZER): Update.
12874 * langhooks.h (lang_hooks_for_types): New hooks.
12875 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
12876 * tree.c (get_unwidened, get_narrower): Similarly.
12877 * tree.h (type_for_mode, type_for_size): Remove.
12878 * varasm.c (force_const_mem): Use new hooks.
12879 * utils2.c (nonbinary_modular_operation): Update.
12880 objc:
12881 * objc-act.c (handle_impent): Update.
12882 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
12883 Redefine.
12884
12885 2002-03-29 Steve Ellcey <sje@cup.hp.com>
12886
12887 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
12888 * config/ia64/ia64.c (basereg_operand): New.
12889 * config/ia64/ia64-protos.h (basereg_operand): Declare.
12890 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
12891
12892 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
12893
12894 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
12895 unwind information when frame_pointer_needed.
12896 (mmix_assemble_integer): Tweak wording in comment.
12897
12898 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
12899
12900 * Makefile.in (except.o): Update.
12901 * except.c: Include langhooks.h.
12902 (init_eh): Use langhook.
12903 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
12904 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
12905 (LANG_HOOKS_INITIALIZER): Update.
12906 * langhooks.h (lang_hooks_for_types): New.
12907 (struct lang_hooks): Add it.
12908 * tree.c (make_lang_type_fn, make_lang_type): Remove.
12909 * tree.h (make_lang_type_fn, make_lang_type): Remove.
12910 config:
12911 * alpha/alpha.c: Include langhooks.h.
12912 (alpha_build_va_list): Use langhook.
12913 * d30v/d30v.c: Include langhooks.h.
12914 (d30v_build_va_list): Use langhook.
12915 * i386/i386.c: Include langhooks.h.
12916 (ix86_build_va_list): Use langhook.
12917 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
12918 * s390/s390.c: Include langhooks.h.
12919 (s390_build_va_list): Use langhook.
12920 * stormy16/stormy16.c: Include langhooks.h.
12921 (stormy16_build_va_list): Use langhook.
12922
12923 2002-03-29 Jakub Jelinek <jakub@redhat.com>
12924
12925 PR c++/5964
12926 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
12927 attributes.
12928 (length): Compute variable length for branches/calls/jumps here.
12929 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
12930 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
12931 define branch_type attribute.
12932 (divsi3_sp32): Maximum length is 6 not 7.
12933 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
12934 call_address_untyped_struct_value_sp32,
12935 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
12936 * config/sparc/sparc.c (empty_delay_slot): New function.
12937 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
12938 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
12939
12940 2002-03-29 Jakub Jelinek <jakub@redhat.com>
12941
12942 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
12943 nonzero_bits if not needed.
12944 (nonzero_bits) [XOR]: Likewise.
12945 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
12946 reg_last_set_mode and mode are both MODE_INT, but not equal.
12947 (record_value_for_reg): Compute reg_last_set_nonzero_bits
12948 in nonzero_bits_mode for MODE_INT modes.
12949
12950 2002-03-28 Richard Henderson <rth@redhat.com>
12951
12952 PR target/5715
12953 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
12954 to GAS. Correct drift between alternatives.
12955
12956 2002-03-28 Richard Henderson <rth@redhat.com>
12957
12958 PR target/6087
12959 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
12960
12961 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
12962
12963 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
12964 emulation to the linker.
12965
12966 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
12967
12968 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
12969 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
12970
12971 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
12972
12973 * combine.c (simplify_and_const_int): Make sure to apply mask
12974 when force_to_mode returns a constant integer. PR3311.
12975
12976 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
12977
12978 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
12979
12980 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12981
12982 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
12983 and Objective-C Dialect Options.
12984
12985 2002-03-28 Richard Henderson <rth@redhat.com>
12986
12987 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
12988 comparison should be done vs !=0 not >0 return code. Tidy cases.
12989
12990 2002-03-28 Richard Henderson <rth@redhat.com>
12991
12992 * c-decl.c (finish_function): New arg can_defer_p. Pass it
12993 on to c_expand_body.
12994 * c-tree.h (finish_function): Update decl.
12995 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
12996
12997 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
12998
12999 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
13000
13001 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
13002
13003 * rtlanal.c: Include flags.h
13004 (may_trap_p): Do not mark FP operations if trapping
13005 if !flag_trapping_math
13006 * Makefile.in (rtlanal.o): Add dependency on flag.h
13007 * ifcvt.c (noce_operand_ok): Avoid the lameness.
13008
13009 2002-03-27 Zack Weinberg <zack@codesourcery.com>
13010
13011 * mips.md: Use dconst1, not 1.0, as first argument of
13012 REAL_VALUE_LDEXP. Don't use union real_extract.
13013
13014 2002-03-28 Alan Modra <amodra@bigpond.net.au>
13015
13016 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
13017 rather than $target. Heed program_prefix and
13018 program_transform_name. Search for gas in cross-compiler case too.
13019 "test -x" rather than "test -f".
13020 (gcc_cv_ld): Likewise.
13021 (gcc_cv_nm): Heed program_prefix and program_transform_name.
13022 (gcc_cv_objdump): Likewise.
13023 * configure: Regenerate.
13024
13025 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
13026
13027 * Makefile.in (attribs.o): Update.
13028 * attribs.c: Include langhooks.h.
13029 (decl_attributes): Use langhook.
13030 * c-decl.c (insert_default_attributes): Rename.
13031 * c-tree.h (c_insert_default_attributes): New.
13032 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
13033 (LANG_HOOKS_INITIALIZER): Update.
13034 * langhooks.h (struct lang_hooks): New hook.
13035 * tree.h (insert_default_attributes): Remove.
13036 objc:
13037 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
13038
13039 2002-03-27 Andreas Schwab <schwab@suse.de>
13040
13041 * config/i386/i386.c (classify_argument): Also check for
13042 QUAL_UNION_TYPE.
13043
13044 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13045
13046 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
13047 any more.
13048
13049 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
13050
13051 * i960.md (ret): Set PC.
13052 (nonlocal_goto): Fix expander.
13053 * builtins.c (epxand_builin_longjmp): Check that we've emitted
13054 some jump or call.
13055
13056 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
13057
13058 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
13059 of libcall regions.
13060
13061 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13062
13063 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
13064 assigning to BLOCK_FOR_INSN directly.
13065
13066 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
13067
13068 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
13069
13070 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
13071
13072 * c-common.c (c_expand_expr): Fix prototype.
13073 * c-common.h (c_expand_expr): Always declare, update.
13074 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
13075 * c-objc-common.c (c_objc_common_init): No global hook.
13076 * expr.c (expand_expr): Use langhook.
13077 * expr.h (enum expand_modifier): Conditionally declare.
13078 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
13079 (LANG_HOOKS_INITIALIZER): Update.
13080 * langhooks.c (lhd_expand_expr): New.
13081 * langhooks.h (struct lang_hooks): New hook.
13082 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
13083 (lang_independent_init): Don't default hook.
13084 objc:
13085 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
13086
13087 2002-03-27 Richard Henderson <rth@redhat.com>
13088
13089 PR target/6054
13090 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
13091 TARGET_CONST_GP. Simplify conditions.
13092
13093 2002-03-27 Richard Henderson <rth@redhat.com>
13094
13095 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
13096 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
13097 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
13098
13099 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
13100
13101 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
13102 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
13103 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
13104 Remove unnecessary masks.
13105 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
13106 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
13107 -mwindows, -mdll switches and their negations.
13108
13109 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
13110
13111 * gcc-common.c (lang_mark_false_label_stack): Remove.
13112 * ggc.h (lang_mark_false_label_stack): Similarly.
13113
13114 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
13115
13116 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
13117
13118 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
13119 or __rtems_ is defined.
13120
13121 2002-03-26 Richard Henderson <rth@redhat.com>
13122
13123 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
13124 if a non-trivial load was emitted.
13125 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
13126 in high+extra+low case.
13127
13128 2002-03-26 Richard Henderson <rth@redhat.com>
13129
13130 * config.gcc (sparc*-solaris): Use float_format=sparc.
13131
13132 2002-03-26 Richard Henderson <rth@redhat.com>
13133
13134 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13135 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
13136 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
13137 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
13138 (WINT_TYPE_SIZE): Fix at 32.
13139
13140 2002-03-26 Richard Henderson <rth@redhat.com>
13141
13142 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
13143 until after eh landing pad generation.
13144 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
13145 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
13146
13147 2002-03-26 Richard Henderson <rth@redhat.com>
13148
13149 * expr.h (ADD_PARM_SIZE): One more convert for INC.
13150
13151 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
13152
13153 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
13154 and warning switches.
13155 (cc1_options): Likewise.
13156
13157 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
13158
13159 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
13160 Restore more of the signal context. Set no_reg_stack_frame.
13161 * config/ia64/unwind-ia64.c (unw_state_record):
13162 Add no_reg_stack_frame, comments.
13163 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
13164 (uw_update_context): Adjust bsp when unwinding from leaf,
13165 but not signal frame.
13166
13167 2002-03-26 David Edelsohn <edelsohn@gnu.org>
13168
13169 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
13170
13171 2002-03-26 Bob Wilson <bob.wilson@acm.org>
13172
13173 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
13174
13175 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
13176
13177 PR target/5621
13178 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
13179 "Add a pool_range attribute", which was lost during the ARM/Thumb
13180 merge.
13181
13182 2002-03-26 Bob Wilson <bob.wilson@acm.org>
13183
13184 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
13185 a register into the MAC16 accumulator.
13186
13187 2002-03-26 Andrew Cagney <ac131313@redhat.com>
13188
13189 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
13190 (Warning Options): Document -Wswitch-enum.
13191 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
13192 -Wswitch.
13193 (warn_switch_enum): Define variables.
13194 * flags.h (warn_switch_enum): Declare variables.
13195 * stmt.c (expand_end_case_type): When warn_switch_enum /
13196 -Wswitch-enum, perform switch checks.
13197 Fix PR c/5044.
13198
13199 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
13200
13201 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
13202 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
13203 (reload_muladdsi_compare0_scratch): Delete.
13204
13205 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
13206
13207 * doc/install.texi (*-*-freebsd*): Update.
13208
13209 2002-03-26 Richard Henderson <rth@redhat.com>
13210
13211 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
13212 (SUB_PARM_SIZE): Cast DEC to ssizetype.
13213
13214 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
13215 types from the normal argument frame.
13216
13217 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
13218 variable sized objects by reference.
13219 (sparc_va_arg): Receive them by reference too.
13220
13221 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
13222
13223 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
13224 code to not restoring global registers.
13225
13226 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
13227
13228 * Makefile.in (ggc-common.o): Update.
13229 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
13230 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
13231 * c-tree.h (c_mark_tree): New.
13232 * ggc-common.c: Include langhooks.h.
13233 (gcc_mark_trees): Use new langhook.
13234 * ggc-callbacks.c: Delete file.
13235 * ggc.h (lang_mark_tree): Remove.
13236 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
13237 (LANG_HOOKS_INITIALIZER): Update.
13238 * langhooks.h (struct lang_hooks): New hook.
13239 objc:
13240 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
13241
13242 2002-03-25 Zack Weinberg <zack@codesourcery.com>
13243
13244 * doc/cpp.texi: Exclude entire Top node from printed manual.
13245 Move option index after directive index. Insert page breaks
13246 before GFDL and concept index. Index environment variables
13247 with command line options.
13248 * doc/cppenv.texi: Use @vtable for environment variable list.
13249 Add paragraph explaining semantics of empty elements in path
13250 variables. Exclude a cross-reference to Fishkill from the
13251 manpage. Remove an unnecessary cross-reference of the entry
13252 right above the referer. Don't use @anchor in text that goes
13253 into manpage.
13254 * doc/cppopts.texi: Cross-reference the environment variables
13255 section, not the specific environment variable, for consistency.
13256
13257 2002-03-25 Richard Henderson <rth@redhat.com>
13258
13259 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
13260 anywhere in the block. Don't refer to insns that have been
13261 removed from the chain. Iterate backward through the new insns.
13262 Don't refer to edges that have been removed.
13263
13264 2002-03-26 Alan Modra <amodra@bigpond.net.au>
13265
13266 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
13267 test for overflow of constant.
13268
13269 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
13270
13271 PR target/2623
13272 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
13273 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
13274 these patterns on arm_archv4.
13275
13276 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
13277
13278 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
13279 int".
13280
13281 2002-03-25 Zack Weinberg <zack@codesourcery.com>
13282
13283 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
13284 float_handled, float_handler, float_signal, set_float_handler,
13285 and do_float_handler. Set handler for SIGFPE to crash_signal.
13286 * toplev.h: Don't prototype do_float_handler.
13287
13288 * c-lex.c: Fold parse_float into lex_number. Make warning
13289 about portability of hex float constants more informative, and
13290 don't issue it on top of a syntax error.
13291 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
13292 their callers.
13293 * real.h: Define REAL_VALUE_ABS here...
13294 * simplify-rtx.c: ... not here. Fold check_fold_consts,
13295 simplify_unary_real, simplify_binary_real, and
13296 simplify_binary_is2orm1 into their callers.
13297 * tree.c: Fold build_real_from_int_cst_1 into caller.
13298
13299 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
13300
13301 * tsystem.h: Include float.h here...
13302 * libgcc2.c: ... not here.
13303
13304 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
13305
13306 Fixes for: PR bootstrap/3591, target/5676
13307 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
13308 defined. Do not disable exceptions or rtti.
13309 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
13310 mcore.h. Disable exceptions and rtti, since they are not
13311 supported by EPOC.
13312
13313 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
13314
13315 * c-decl.c (maybe_build_cleanup): Remove.
13316 * expr.c (expand_expr): Use langhook.
13317 * langhooks-def.h (lhd_return_null_tree,
13318 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
13319 (LANGHOOKS_INITIALIZER): Update.
13320 * langhooks.c (lhd_return_null_tree): New.
13321 * langhooks.h (struct lang_hooks): New hook.
13322 * tree-inline.c (initialize_inlined_parameters): Use langhook.
13323 * tree.h (maybe_build_cleanup): Remove.
13324
13325 2002-03-25 Jakub Jelinek <jakub@redhat.com>
13326
13327 * regrename.c (build_def_use): Move recog_memoized
13328 before extract_insn.
13329
13330 2002-03-25 Jakub Jelinek <jakub@redhat.com>
13331
13332 PR target/6043
13333 * expr.c (emit_group_store): Handle storing into CONCAT.
13334
13335 2002-03-25 Jakub Jelinek <jakub@redhat.com>
13336
13337 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
13338 corresponding MATCH_DUP.
13339
13340 2002-03-24 Richard Henderson <rth@redhat.com>
13341
13342 * unroll.c (unroll_loop): Zero label_map.
13343
13344 * gcse.c: Include except.h.
13345 * Makefile.in (gcse.o): Update.
13346
13347 2002-03-24 Richard Henderson <rth@redhat.com>
13348
13349 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
13350 Do resolve_unique_section before shared data clause.
13351
13352 2002-03-24 Richard Henderson <rth@redhat.com>
13353
13354 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
13355
13356 2002-03-24 Richard Henderson <rth@redhat.com>
13357
13358 * recog.c (peephole2_optimize): Split blocks when EH insns are
13359 generated in the middle of a block. Do global life update if
13360 zapped EH edges.
13361
13362 2002-03-24 Richard Henderson <rth@redhat.com>
13363
13364 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
13365
13366 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
13367
13368 preprocessor/3951
13369 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
13370 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
13371 (init_dependency_output): Don't make no_output decision here.
13372
13373 2002-03-24 Andrew Cagney <ac131313@redhat.com>
13374
13375 * stmt.c (check_for_full_enumeration_handling): Remove tests of
13376 warn_switch. Update description.
13377 (expand_end_case_type): Call check_for_full_enumeration_handling
13378 when warn_switch.
13379
13380 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13381
13382 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
13383 (m68hc11_split_move): Call it to see if the source and destination
13384 operands use the same direction auto inc/dec mode, otherwise make the
13385 source an offsetable memory operand and generate an add.
13386
13387 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13388
13389 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
13390 register for operand 2.
13391 ("*subsi3_zero_extendqi"): Likewise.
13392 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
13393 bits so that it is compatible with a pop.
13394 ("*andhi3_gen"): Likewise.
13395 ("xorhi3"): Likewise.
13396
13397 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
13398
13399 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
13400 -pedantic here...
13401 (cpp_post_options): ... not here.
13402
13403 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
13404 Aldy Hernandez <aldyh@redhat.com>
13405
13406 Removal of separate preprocessor cpp0.
13407
13408 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
13409 cpp0, install-common): Update.
13410 * c-common.c (flag_preprocess_only): New.
13411 (c_common_init): Preprocess for -E.
13412 * c-common.h (flag_preprocess_only): New.
13413 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
13414 * c-objc-common.c (c_init_decl_processing): Exit quickly
13415 for NULL return from c_common_init.
13416 * cpplib.h (cpp_preprocess_file): New.
13417 * cppmain.c (main, general_init, pfile, progname): Remove.
13418 (do_preprocessing): Rename cpp_preprocess_file, don't call
13419 cpp_finish. Don't close stdout here.
13420 (setup_callbacks): Update prototype.
13421 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
13422 Update.
13423 * tradcpp.c (main): Ignore -quiet.
13424 objc:
13425 * lang-specs.h (default_compilers): Preprocess with cc1obj.
13426
13427 2002-03-24 Richard Henderson <rth@redhat.com>
13428
13429 PR optimization/5742
13430 * machmode.def: Add inner mode field to complex modes.
13431 * config/mips/mips.c (mips_function_value): Always define. Add
13432 new argument to handle libcalls.
13433 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
13434 (FUNCTION_VALUE): Likewise.
13435 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
13436 * config/mips/mips-protos.h: Update.
13437
13438 2002-03-23 Richard Henderson <rth@redhat.com>
13439
13440 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
13441 * config/sparc/sparc-protos.h: Update.
13442 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
13443
13444 2002-03-23 Richard Henderson <rth@redhat.com>
13445
13446 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
13447 _start or _init begins the text segment.
13448
13449 2002-03-23 David Edelsohn <edelsohn@gnu.org>
13450
13451 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
13452 not HOST_WIDEST_INT.
13453 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
13454
13455 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
13456
13457 PR java/5489
13458 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
13459 operand argument to output_return_instruction.
13460 * arm.c (arm_print_operand, case 'd'): If the operand is
13461 const_true_rtx then just return.
13462 (arm_print_operand, case 'D'): If the operand is const_true_rtx
13463 then abort.
13464
13465 2002-03-23 Andrew Cagney <ac131313@redhat.com>
13466
13467 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
13468 (Warning Options): Document -Wswitch-default.
13469 * toplev.c (W_options): Add -Wswitch-default. Update comment on
13470 -Wswitch.
13471 (warn_switch_default): Define variable.
13472 (warn_switch): Update comment.
13473 * flags.h (warn_switch_default): Declare variable.
13474 (warn_switch): Update comment.
13475 * stmt.c (expand_end_case): Check for and, when
13476 warn_switch_no_default, warn of a missing default case.
13477
13478 2002-03-23 Alan Modra <amodra@bigpond.net.au>
13479
13480 * real.h (N): Special case 128 bit doubles.
13481
13482 * combine.c (simplify_comparison): When widening modes, ignore
13483 sign extension on CONST_INTs.
13484
13485 2002-03-22 Bob Wilson <bob.wilson@acm.org>
13486
13487 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
13488 passed to adjust_address. Fix comment formatting.
13489
13490
13491 2002-03-22 Zack Weinberg <zack@codesourcery.com>
13492
13493 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
13494 Always make REAL_VALUE_TYPE a struct containing an array of
13495 HOST_WIDE_INT, not a double. Tidy up the code deciding how
13496 big it is. Don't declare or use union real_extract.
13497
13498 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
13499 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
13500 (print_operand), config/arm/arm.c (output_move_double),
13501 config/arm/arm.md (consttable_4, consttable_8),
13502 config/romp/romp.c (output_fpops), config/s390/s390.h
13503 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
13504 (xtensa_output_literal): Don't use union real_extract.
13505
13506 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
13507 (sfmode_constant_to_ulong), config/ns32k/merlin.h
13508 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
13509 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
13510 (PRINT_OPERAND): Don't use local version of union
13511 real_extract.
13512
13513 * config/convex/convex.c (check_float_value), config/vax/vax.c
13514 (vax_float_literal), config/m88k/m88k.md (divdf3),
13515 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
13516 config/pdp11/pdp11.c (output_move_quad): Don't do host
13517 arithmetic on target floating point quantities.
13518
13519 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
13520 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
13521
13522 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
13523 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
13524
13525 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
13526 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
13527 INFINITY.
13528 * print-rtl.c (print_rtx): Disable code which needs
13529 floating-point emulator.
13530 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
13531 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
13532 depending on HOST_FLOAT_FORMAT to be defined properly.
13533
13534 * config/1750a/1750a.c (get_double, float_label): Delete.
13535 (print_operand): Delete huge commented-out chunk. Use
13536 REAL_VALUE_TO_DECIMAL.
13537 * config/1750a/1750a-protos.h: Delete prototypes of deleted
13538 functions.
13539 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
13540 IEEE_FLOAT_FORMAT.
13541 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
13542 Use REAL_VALUE_TO_DECIMAL as ELF version does.
13543 * config/m88k/m88k.c (real_power_of_2_operand,
13544 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
13545 real_extract out of the union; run the input through
13546 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
13547 from that into the union.
13548 * config/pdp11/pdp11.c (output_move_double): Rearrange
13549 parentheses to make automatic indenter happy.
13550
13551 * doc/tm.texi (Cross-compilation): Rename node to "Floating
13552 Point" and rewrite to describe current situation. Also adjust
13553 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
13554 match code.
13555 * doc/rtl.texi: Adjust cross reference.
13556
13557 2002-03-22 Bob Wilson <bob.wilson@acm.org>
13558
13559 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
13560 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
13561 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
13562 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
13563 prevent use of sp as a reload register.
13564 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
13565 non_acc_reg_operand.
13566 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
13567 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
13568 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
13569 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
13570
13571 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
13572
13573 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
13574 * cpplex.c (unterminated): Delete.
13575 (parse_string): No string literal may extend over multiple
13576 lines. Suppress the error when preprocessing assembly.
13577 * cppmain.c (scan_translation_unit): Strings are single-line.
13578
13579 * doc/cpp.texi: Update to match.
13580
13581 2002-03-22 Jakub Jelinek <jakub@redhat.com>
13582
13583 PR optimization/5854
13584 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
13585 Shut up warnings.
13586 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
13587 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
13588 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
13589 const0 if scratch register was not allocated.
13590 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
13591 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
13592 with GEN_INT (...).
13593 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
13594 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
13595 with GEN_INT (...) everywhere. Remove constraints in define_split
13596 patterns.
13597 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
13598 require scratch register for setting 0 into regs/non-pushable memory.
13599
13600 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
13601
13602 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
13603 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
13604
13605 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
13606
13607 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
13608 * cppinit.c (cpp_create_reader): On by default.
13609 (cpp_handle_option): Handle -W[no-]endif-labels.
13610 (cpp_post_options): Also enable if -pedantic.
13611 * cpplib.c (do_else): Use it.
13612 (do_endif): Likewise.
13613 * doc/cppopts.texi: Document new option.
13614 * doc/invoke.texi: Document new option.
13615
13616 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
13617
13618 * config/i386/i386.c, config/i386/i386.md: Change all occurences
13619 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
13620
13621 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
13622
13623 * flow.c (calculate_global_regs_live): Clear aux fields of
13624 ENTRY and EXIT.
13625
13626 2002-03-22 Jakub Jelinek <jakub@redhat.com>
13627
13628 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
13629 REG or MEM subregs, pass rtx * instead of rtx to it.
13630 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
13631 rtx * instead of rtx to alter_subreg.
13632 * config/m32r/m32r.c (gen_split_move_double): Likewise.
13633 * config/pj/pj.c (pj_output_rval): Likewise.
13634
13635 2002-03-22 Richard Henderson <rth@redhat.com>
13636
13637 PR target/3177
13638 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
13639 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
13640 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
13641 (ia64_expand_prologue): Look at int_regs, not words, for number
13642 of incomming int regs.
13643
13644 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
13645
13646 * expr.c (expand_expr): A RESULT_DECL is part of a call.
13647
13648 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
13649
13650 * toplev.c (flag_loop_optimize, flag_crossjumping):
13651 New static variables.
13652 (rest_of_compilation): Conditionalize crossjumping and
13653 loop optimizer.
13654 (parse_options_and_default_flags): Default loop_optimize and
13655 crossjumping.
13656 (lang_independent_options): Add -fcrossjumping and -floop-optimize
13657 * invoke.texi (crossjumping, loop-optimize): Document.
13658
13659 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
13660
13661 * real.c (eiisneg): Move outside #ifdef NANS.
13662
13663 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
13664
13665 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
13666 frequencies match; avoid match on different loop depths.
13667 (try_crossjump_to_bb): Kill tests that no longer brings time
13668 savings.
13669 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
13670 updating code.
13671 (split_edge): Likewise.
13672
13673 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
13674 variable.
13675
13676 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
13677 * cfgrtl.c: Include insn-config.h
13678 (split_block) Dirtify block in presence of conditional execution
13679
13680 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
13681
13682 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
13683 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
13684 (function_arg): Constify CUMULATIVE_ARGS.
13685 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
13686 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
13687 (UNITS_PER_DOUBLE): New macro.
13688 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
13689 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
13690 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
13691 fp_regs and stack_words.
13692 (EABI_FLOAT_VARARGS_P): New macro.
13693 * config/mips/mips.c (struct mips_arg_info): New.
13694 (mips_arg_info): New function.
13695 (function_arg_advance): Use it. Add adjustment instructions here
13696 rather than in function_arg.
13697 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
13698 for VOIDmode at the beginning of the function.
13699 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
13700 (function_arg_pass_by_reference): Likewise.
13701 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
13702 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
13703 (mips_va_start): Likewise. Use the new stack_words field of
13704 CUMULATIVE_ARGS to set up overflow area. Reformat.
13705 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
13706 doubles and other types, aligning the overflow pointer for non-doubles
13707 too. Remove some code duplication. Replace hard-coded constants.
13708
13709 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
13710
13711 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
13712 (CLASS_UNITS): Undefine.
13713 (CLASS_MAX_NREGS): Use FP_INC.
13714 * config/mips/mips.c (compute_frame_size): Likewise.
13715 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
13716
13717 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
13718
13719 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
13720 prototype, and handle lexing numbers and identifiers.
13721 (parse_identifier): Update to new form of parse_slow.
13722 (parse_number): Fast path only, use parse_slow otherwise.
13723 (_cpp_lex_direct): Update calls to parse_number.
13724
13725 2002-03-21 DJ Delorie <dj@redhat.com>
13726
13727 * bb-reorder.c (make_reorder_chain_1): Protect against
13728 when redundant edges are omitted.
13729 * predict.c (dump_prediction): Likewise.
13730
13731 2002-03-21 Richard Henderson <rth@redhat.com>
13732
13733 PR target/5996
13734 * fixinc/inclhack.def (solaris_stdio_tag): New.
13735 * fixinc/fixincl.x: Regenerate.
13736
13737 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
13738
13739 PR c/5597
13740 * c-typeck.c (process_init_element): Flag non-static
13741 initialization of a flexible array member as illegal.
13742
13743 2002-03-22 Alan Modra <amodra@bigpond.net.au>
13744
13745 * config/rs6000/t-linux64: New.
13746 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
13747 t-ppccomm. Use t-rs6000 and t-linux64.
13748 (powerpc64-*-gnu* <tmake_file>): Likewise.
13749 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
13750 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
13751 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
13752
13753 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
13754
13755 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
13756 flag_really_no_inline instead of optimize == 0.
13757
13758 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
13759
13760 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
13761
13762 * flags.h (flag_really_no_inline): New.
13763
13764 * c-common.c (c_common_post_options): Initialize
13765 flag_really_no_inline.
13766
13767 * toplev.c (flag_really_no_inline): New.
13768
13769 2002-03-21 Jakub Jelinek <jakub@redhat.com>
13770
13771 * config/avr/avr.md (length): Fix length computation for
13772 conditional branches.
13773
13774 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
13775
13776 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
13777 sdbout.o, profile.o): Update.
13778 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
13779 langhook.
13780 * c-common.h (gettags): Move here from tree.h.
13781 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
13782 insert_block, getdecls, kept_level_p, global_bindings_p): New.
13783 * dbxout.c (dbxout_init): Use getdecls langhook.
13784 * expr.c (expand_expr): Use insert_block langhook.
13785 * fold-const.c: Include langhooks.h.
13786 (fold_range_test, fold_binary_op_with_conditional_arg,
13787 fold): Use global_bindings_p langhook.
13788 * integrate.c (expand_inline_function): Use insert_block langhook.
13789 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
13790 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
13791 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
13792 LANG_HOOKS_GETDECLS): New.
13793 (LANG_HOOKS_INITIALIZER): Update.
13794 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
13795 langhook.
13796 * langhooks.h (struct lang_hooks_for_decls): New.
13797 (struct lang_hooks): Update.
13798 * profile.c: Include langhooks.h.
13799 (output_func_start_profiler): Use new langhooks.
13800 * sdbout.c: Include langhooks.h.
13801 (sdbout_init, sdbout_finish): Use getdecls langhook.
13802 * stmt.c: Include langhooks.h.
13803 (expand_fixup, fixup_gotos): Use new langhooks.
13804 * stor-layout.c: Include langhooks.h.
13805 (variable_size): Use global_bindings_p langhook.
13806 * toplev.c (compile_file): Use getdecls langhook.
13807 * tree-inline.c (remap_block): Use insert_block langhook.
13808 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
13809 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
13810
13811 2002-03-21 Richard Henderson <rth@redhat.com>
13812
13813 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
13814 constants in .data when -fpic.
13815
13816 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13817
13818 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
13819 where appropriate.
13820
13821 2002-03-21 Tom Tromey <tromey@redhat.com>
13822
13823 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
13824
13825 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13826
13827 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
13828
13829 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
13830
13831 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
13832 Richard Henderson <rth@redhat.com>
13833
13834 PR c/5354
13835 * c-common.c (c_expand_expr): Preserve result of a statement
13836 expression if needed.
13837
13838 2002-03-21 Jakub Jelinek <jakub@redhat.com>
13839
13840 PR bootstrap/4195
13841 * genrecog.c (maybe_both_true_mode): Remove.
13842 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
13843 * machmode.def (Pmode): Likewise.
13844
13845 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
13846
13847 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
13848 (nonlocal_mentioned_p_1): New function.
13849 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
13850 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
13851 (mark_constant_function): Recognize pure functions.
13852 * rtl.h (global_reg_mentioned_p): New prototype.
13853 * rtlanal.c (global_reg_mentioned_p,
13854 global_reg_mentioned_p_1): New function.
13855
13856 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13857
13858 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
13859 UNIX assert.h.
13860 * fixinc/fixincl.x: Regenerate.
13861
13862 2002-03-20 Jason Merrill <jason@redhat.com>
13863
13864 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
13865
13866 2002-03-20 Michael Meissner <meissner@redhat.com>
13867
13868 * doc/invoke.texi (Optimize Options): Document that -O2 sets
13869 -fstrict-aliasing.
13870
13871 2002-03-20 Bob Wilson <bob.wilson@acm.org>
13872
13873 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
13874 ".literal_position" directive before the constant pool.
13875
13876 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13877
13878 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
13879 Add Craig Rodrigues.
13880 Add Brad Lucier to testers.
13881
13882 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13883
13884 PR target/4792
13885 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
13886 to if_then_else.
13887 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
13888 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
13889 instead of insn_extract.
13890
13891 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13892
13893 PR bootstrap/4192
13894 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
13895
13896 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
13897 stmt if some case has been output.
13898
13899 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13900
13901 PR c/5972
13902 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
13903 movsfcc_1, movdfcc_1): Add %O2.
13904 * config/i386/i386.c (print_operand): Handle %ON.
13905 Print . before float condition codes in Sun as cmov syntax.
13906 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
13907 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
13908 no longer true.
13909
13910 2002-03-20 Philip Blundell <pb@nexus.co.uk>
13911
13912 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
13913 return instruction if PC was popped.
13914
13915 2002-03-20 Bob Wilson <bob.wilson@acm.org>
13916
13917 * config/xtensa/xtensa.md: Remove unused type attributes.
13918 (adddi_carry, subddi_carry): Change type attribute to "multi".
13919
13920 2002-03-19 Dale Johannesen <dalej@apple.com>
13921
13922 PR optimization/5999, middle-end/5731
13923 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
13924 multiplications by reciprocals.
13925
13926 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
13927
13928 * Makefile.in: Update.
13929 * c-common.c: Include langhooks.h.
13930 (inline_forbidden_p): Use new hook.
13931 * diagnostic.c: Include langhooks.h.
13932 (format_with_decl, announce_function,
13933 default_print_error_function): Use new hook.
13934 * dwarf2out.c (dwarf2_name): Use new hook.
13935 * function.c: Include langhooks.h.
13936 (init_function_start): Use new hook.
13937 * langhooks-def.h (lhd_decl_printable_name): New.
13938 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
13939 (LANGHOOKS_INITIALIZER): Update.
13940 * langhooks.c (lhd_decl_printable_name): New.
13941 * langhooks.h (struct lang_hooks): New hook.
13942 * toplev.c (decl_name, decl_printable_name): Remove.
13943 (open_dump_file): Use new hook.
13944 (process_options): Remove old hook.
13945 * tree.h (decl_printable_name): Remove.
13946 objc:
13947 * objc-act.c (objc_init): Remove old hook.
13948 (objc_printable_name): Export.
13949 * objc-act.h (objc_printable_name): New.
13950 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13951
13952 2002-03-19 Jim Blandy <jimb@redhat.com>
13953
13954 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
13955 the start_source_file debug hook, not the current line number.
13956
13957 2002-03-19 Richard Henderson <rth@redhat.com>
13958
13959 * flow.c (EH_USES): Provide default.
13960 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
13961 * doc/tm.texi (EH_USES): New.
13962
13963 * config/ia64/ia64.c (ia64_eh_uses): New.
13964 * config/ia64/ia64-protos.h: Update.
13965 * config/ia64/ia64.h (EH_USES): New.
13966
13967 2002-03-19 Richard Henderson <rth@redhat.com>
13968
13969 * varasm.c (output_constant_def): Fix stupid typo.
13970
13971 2002-03-19 Richard Henderson <rth@redhat.com>
13972
13973 PR 5879
13974 * except.c (current_function_has_exception_handlers): New.
13975 * except.h: Declare it.
13976 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
13977 Combine tests that disable all sibcalls for the function.
13978
13979 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
13980
13981 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
13982 for INTEGER_CST.
13983
13984 2002-03-19 Richard Henderson <rth@redhat.com>
13985
13986 PR 5977, 5991
13987 * config/ia64/ia64.c: Revert 2002-03-01 patch.
13988 * config/ia64/ia64.h (INIT_EXPANDERS): New.
13989
13990 2002-03-19 Jim Blandy <jimb@redhat.com>
13991
13992 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
13993 name, even if the replacement list contains no tokens, as required
13994 by Dwarf.
13995
13996 2002-03-19 Jason Merrill <jason@redhat.com>
13997
13998 * varasm.c (globalize_decl): Get the name from the RTL, not
13999 DECL_ASSEMBLER_NAME.
14000
14001 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
14002
14003 2002-03-19 Bob Wilson <bob.wilson@acm.org>
14004
14005 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
14006 subdi_carry): Define.
14007
14008 2002-03-19 David Edelsohn <edelsohn@gnu.org>
14009
14010 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
14011 about -fpic/-fPIC if extra_warnings set.
14012
14013 2002-03-19 David Edelsohn <edelsohn@gnu.org>
14014
14015 * expr.c (expand_expr): Sign-extend CONST_INT generated from
14016 TREE_STRING_POINTER.
14017 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
14018
14019 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14020
14021 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
14022 in favor of SP if FRAME_POINTER_REQUIRED is false.
14023
14024 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
14025
14026 * emit-rtl.c (gen_int_mode): New function.
14027 * rtl.h: Prototype for it.
14028 * combine.c (make_extraction, simplify_comparison), expmed.c
14029 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
14030 (convert_modes, store_field), optabs.c (expand_fix),
14031 simplify-rtx.c (neg_const_int, simplify_unary_real),
14032
14033 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
14034 Use it instead of GEN_INT (trunc_int_for_mode (...)).
14035
14036 2002-03-19 Jakub Jelinek <jakub@redhat.com>
14037
14038 PR c/5656
14039 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
14040 convert_parm_for_inlining.
14041 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
14042 Define.
14043 * langhooks-def.h: Likewise.
14044 * objc/objc-lang.c: Likewise.
14045 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
14046 function.
14047 * tree-inline.c (initialize_inlined_parameters):
14048 Call convert_parm_for_inlining lang hook if needed.
14049 * c-typeck.c (c_convert_parm_for_inlining): New function.
14050 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
14051
14052 2002-03-18 Mark Mitchell <mark@codesourcery.com>
14053
14054 * calls.c (precompute_arguments): Do not assume that temporaries
14055 can be destroyed after expanding the argument.
14056 (expand_call): Likewise.
14057
14058 2002-03-15 Eric Christopher <echristo@redhat.com>
14059
14060 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
14061 Fix register preference on last change.
14062 * config/mips/mips.c (mips_return_in_memory): New function.
14063 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
14064 * config/mips/mips-protos.h: Declare.
14065 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
14066 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
14067
14068 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
14069
14070 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
14071 a register too.
14072 (anddi3, iorsi3): Likewise.
14073
14074 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
14075 use %gprel for symbols that are going to be placed in linkonce
14076 sections.
14077
14078 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
14079 RETURN_ADDRESS_POINTER_REGNUM to $ra.
14080 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
14081 not needed. Disregard leaf_function_p().
14082 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
14083 mips16 frame pointer.
14084 * config/mips/mips.md (store ra): Only to small SP offsets.
14085 2001-08-22 Graham Stott <grahams@redhat.com>
14086 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
14087 return a REG rtx for the return address register.
14088
14089 2002-03-18 Bob Wilson <bob.wilson@acm.org>
14090
14091 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
14092 constant-pool addresses as "mode-dependent".
14093 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
14094
14095 2002-03-18 Jakub Jelinek <jakub@redhat.com>
14096
14097 PR target/5740
14098 * expr.c (emit_group_load): Use extract_bit_field if
14099 needed for CONCAT arguments.
14100
14101 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
14102
14103 PR target/4863
14104 * arm.md (tablejump): Make this a define_expand. For PIC add the
14105 offset to the base of the table.
14106 (thumb_tablejump): Matcher for Thumb tablejump insn.
14107 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
14108 as the difference of two labels.
14109 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14110 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
14111 tables in the code.
14112 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14113 * arm.c (get_jump_table_size): If the table is not in the text
14114 section, return zero.
14115
14116 2002-03-18 Bernd Schmidt <bernds@redhat.com>
14117
14118 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
14119 of gen_rtx_SUBREG.
14120 (arm_reload_out_hi): Use gen_lowpart instead of
14121 gen_rtx_SUBREG to access QImode components.
14122 * config/arm/arm.md: Disable zero_extend split for QImode
14123 subregs in BIG_ENDIAN mode.
14124 (storehi_bigend): Match use of least significant byte.
14125 (storeinthi): Remove extraneous SUBREG.
14126 Add missing construction of operands[2].
14127 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
14128 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
14129 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
14130
14131 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
14132
14133 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
14134 any_operand.
14135
14136 2002-03-17 Richard Henderson <rth@redhat.com>
14137
14138 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
14139 explicitly.
14140
14141 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
14142
14143 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
14144 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
14145
14146 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14147
14148 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
14149
14150 * predict.c (estimate_bb_frequencies): Delete unused variables.
14151
14152 2002-03-17 Richard Henderson <rth@redhat.com>
14153
14154 * config/ia64/ia64.c (ia64_attribute_table): Move before
14155 targetm definition. Make static.
14156
14157 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
14158
14159 * c-common.h (yyparse, c_common_parse_file): New.
14160 * c-lang.c: Include c-common.h.
14161 (LANG_HOOKS_PARSE_FILE): Redefine.
14162 * c-lex.c: Include c-common.h.
14163 (yyparse): Rename c_common_parse_file. Call yyparse.
14164 * c-parse.in (yyparse): Remove macro.
14165 * c-tree.h (yyparse_1): Remove.
14166 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
14167 (LANG_HOOKS_INITIALIZER): Update.
14168 * langhooks.h (struct lang_hoooks): New hook parse_file.
14169 * toplev.c (compile_file): Use parse_file hook.
14170 * tree.h (yyparse): Remove.
14171 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
14172
14173 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
14174
14175 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
14176 float_truncate, not fix.
14177 ("*truncdfsf2_real"): Ditto.
14178 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
14179
14180 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
14181
14182 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
14183
14184 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
14185 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
14186 where appropriate. Make the second reference to
14187 leaf_function_p a function call, as intended. Reindented.
14188
14189 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
14190 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
14191
14192 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
14193 add register to non-constant into sp.
14194
14195 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
14196 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
14197 (mips16_gp_pseudo_rtx): Lose.
14198 (INIT_EXPANDERS): Deleted.
14199 * config/mips/mips.c (mips_init_machine_status): New.
14200 (mips_free_machine_status): New.
14201 (mips_mark_machine_status): New.
14202 (override_options): Set them.
14203 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
14204 (struct machine_function): ... new. Replaced all references.
14205 (mips_add_gc_roots): Don't mark them.
14206 (embedded_pic_fnaddr_reg): New, extracted from...
14207 (embedded_pic_offset): ... here.
14208 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
14209 (movsi): Likewise.
14210
14211 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
14212
14213 * cppinit.c: Revert -MD removal.
14214
14215 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14216
14217 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
14218 soft registers by default for 68HC12.
14219 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
14220 when compiling with -fomit-frame-pointer.
14221 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
14222 (expand_epilogue): Likewise.
14223 (m68hc11_gen_rotate): Use exg when rotating by 8.
14224
14225 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14226
14227 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
14228 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
14229 (splits): Remove unused add splits.
14230 ("*addhi3_68hc12"): Tune constraints.
14231 ("addhi_sp"): Try to use X instead of Y in all cases and if the
14232 constant fits in 8-bits and D is dead use abx/aby instructions.
14233 ("*addhi3"): Remove extern declaration of ix_reg.
14234 ("*subsi3"): Optimize and provide new split.
14235 ("subhi3"): Cleanup.
14236 ("*subhi3_sp"): Avoid saving X if we know it is dead.
14237 (arith splits): For 68hc12 save the address register on the stack
14238 and do the arithmetic operation with a pop.
14239
14240 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14241
14242 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
14243 allocating QImode in address registers.
14244 ("*movqi_m68hc11"): Likewise.
14245
14246 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
14247
14248 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
14249
14250 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
14251
14252 * cppinit.c (print_help): Display -MD and -MMD.
14253 Don't display usage string. Update assertion syntax and
14254 typo.
14255 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
14256 (cpp_handle_option): Update.
14257
14258 2002-03-15 Chris Demetriou <cgd@broadcom.com>
14259
14260 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
14261 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
14262 and define it so that regardless of target CPU size,
14263 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
14264 of "int" rather than "long."
14265
14266 2002-03-15 Richard Henderson <rth@redhat.com>
14267
14268 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
14269 size as a tree.
14270
14271 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14272
14273 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
14274 ("tstqi" split): Avoid using memory for tstqi on address register.
14275 (splits): Remove constraints.
14276 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
14277 ("cmpdf", "cmpsf"): Remove since not used.
14278 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
14279 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
14280
14281 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14282
14283 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
14284 ("neghi2"): Tighten constraints.
14285 ("one_cmplsi2"): Optimize and simplify split.
14286 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
14287
14288 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14289
14290 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
14291 and split of AND operation to clear the upper bits.
14292 ("*logicalsi3_zextqi"): Likewise.
14293 ("*logicallhi3_zexthi_ashift8"): Likewise.
14294 ("*logicalsi3_silshr16"): Likewise.
14295 ("logicalsi3_silshl16"): Likewise.
14296 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
14297
14298 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14299
14300 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
14301 (m68hc11_indirect_p): New function.
14302 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
14303 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
14304 TARGET_M6812.
14305 (asm_print_register): Likewise.
14306 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
14307 (m68hc11_indirect_p): Declare.
14308 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
14309 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
14310 (TARGET_SWITCHES): New option -mrelax.
14311 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
14312 destination.
14313 ("iorsi3", "xorsi3"): Likewise.
14314 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
14315 ("*andhi3_mem"): New to handle destination in memory with bclr
14316 and a scratch register.
14317 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
14318 ("*andhi3_const"): New when operand2 is constant.
14319 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
14320 ("*andhi3_gen"): Cleanup of the old "andhi3".
14321 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
14322 ("xorqi3"): Update constraints.
14323
14324 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14325
14326 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
14327 for reg_equiv_memory_loc when the operand is a register that does
14328 not get a hard register (stack location).
14329 (tst_operand): After reload, accept all memory operand.
14330 (symbolic_memory_operand): Fix detection of symbolic references.
14331 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
14332 accept symbols and any constant.
14333
14334 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14335
14336 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
14337 note on the insn that sets the soft frame register.
14338 (must_parenthesize): ix and iy are also reserved names.
14339 (print_operand_address): One more place where parenthesis are required
14340 to avoid confusion with register names.
14341 (m68hc11_gen_movhi): Allow push of stack pointer.
14342 (m68hc11_check_z_replacement): Fix handling of parallel with a
14343 clobber.
14344 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
14345 the replacement register is.
14346 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
14347 and D8_REGS classes.
14348 (MODES_TIEABLE_P): All modes are tieable except QImode.
14349
14350 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14351
14352 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
14353 (___subdi3): Likewise.
14354 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
14355 (__map_data_section): Optimize 68hc11 case.
14356
14357 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14358
14359 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
14360 than a shift to avoid adding a register with itself.
14361 (m68hc11_memory_move_cost): Take into account NO_REGS.
14362 (m68hc11_register_move_cost): Update and use memory move cost
14363 for soft registers.
14364 (m68hc11_address_cost): Make cost of valid offset not 0 so that
14365 it gives more opportunities to cse to optimize.
14366 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
14367 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
14368
14369 2002-03-15 Mark Mitchell <mark@codesourcery.com>
14370
14371 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
14372 * c-common.def (CLEANUP_STMT): New tree node.
14373 * c-common.h (CLEANUP_DECL): New macro.
14374 (CLEANUP_EXPR): Likewise.
14375 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
14376 * expr.c (expand_expr): Tidy.
14377 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
14378 * tree-inline.c (initialize_inlined_parameters): Clean up
14379 new local variables.
14380
14381 2002-03-15 Jakub Jelinek <jakub@redhat.com>
14382
14383 PR bootstrap/4128
14384 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
14385 before movrXX only, use reg_overlap_mentioned_p.
14386 Only special case NE if just one insn can be generated.
14387
14388 2002-03-15 Jason Merrill <jason@redhat.com>
14389
14390 * varasm.c (assemble_variable): Call resolve_unique_section before
14391 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
14392 of error_mark_node.
14393
14394 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
14395
14396 PR target/5170
14397 * arm.md (split pattern for thumb shiftable immediates): Add comment
14398 explaining non-obvious test.
14399
14400 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
14401
14402 PR target/5712
14403 * arm.md (movaddr, movaddr_insn): Delete.
14404
14405 2002-03-15 Jason Merrill <jason@redhat.com>
14406
14407 * toplev.c (wrapup_global_declarations): Clarify variable handling.
14408 -fkeep-static-consts doesn't apply to comdats.
14409
14410 2002-03-14 Richard Henderson <rth@redhat.com>
14411
14412 * c-decl.c: Include c-pragma.h.
14413 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
14414 (finish_function): Tidy.
14415 * c-pragma.c: Include c-common.h.
14416 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
14417 (handle_pragma_weak): Use them.
14418 (init_pragma): Register pending_weaks.
14419 * c-pragma.h (maybe_apply_pragma_weak): Declare.
14420 * print-tree.c (print_node): Print DECL_WEAK.
14421 * varasm.c (mark_weak_decls): Remove.
14422 (remove_from_pending_weak_list): Remove.
14423 (add_weak): Remove.
14424 (asm_emit_uninitialised): Call globalize_decl for weak commons.
14425 (weak_decls): Make a tree_list.
14426 (declare_weak): Cons weak_decls directly.
14427 (globalize_decl): Remove weak_decls elements directly.
14428 (weak_finish): Simplify weak_decls walk. Don't weaken unused
14429 symbols. Don't pretend to handle aliases.
14430 (init_varasm_once): Update weak_decls registry.
14431 * Makefile.in: Update dependencies.
14432
14433 2002-03-14 Richard Henderson <rth@redhat.com>
14434
14435 PR target/5312
14436 * config/ia64/ia64.c: Include tm_p.h last.
14437 (gen_nop_type): Remove duplicate definition.
14438 (cycle_end_fill_slots): Set sched_data for second L slot.
14439 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
14440 (nop_cycles_until): Fix typos.
14441
14442 2002-03-15 Jakub Jelinek <jakub@redhat.com>
14443
14444 PR optimization/5891
14445 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
14446
14447 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
14448
14449 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
14450 descriptors correctly.
14451
14452 2002-03-14 Michael Meissner <meissner@redhat.com>
14453
14454 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
14455 100, allowing MAX_UNROLLED_INSNS to be overridden.
14456
14457 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
14458 --param.
14459
14460 * unroll.c (params.h): Include.
14461 (MAX_UNROLLED_INSNS): Delete, now in params.h.
14462
14463 * doc/invoke.texi (--param max-unroll-insns): Document.
14464
14465 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
14466
14467 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
14468
14469 * arm.md: Fix warnings about constraints in peepholes and splits.
14470
14471 2002-03-14 Zack Weinberg <zack@codesourcery.com>
14472
14473 * cpphash.h (struct lexer_state): Remove line_extension member.
14474 * cpplib.c (dequote_string, do_linemarker): New functions.
14475 (linemarker_dir): New data object.
14476 (DIRECTIVE_TABLE): No longer need to interpret #line in
14477 preprocessed source. Delete obsolete comment about return
14478 values of handlers.
14479 (end_directive, directive_diagnostics, _cpp_handle_directive):
14480 Don't muck with line_extension.
14481 (directive_diagnostics): No need to issue warnings for
14482 linemarkers here.
14483 (_cpp_handle_directive): Issue warnings for linemarkers here,
14484 when appropriate. Dispatch linemarkers to do_linemarker, not
14485 do_line.
14486 (do_line): Code to handle linemarkers split out to do_linemarker.
14487 Convert escape sequences in filename argument, both places.
14488
14489 * cppmacro.c (quote_string): Rename cpp_quote_string and
14490 export. All callers changed.
14491 * cpplib.h (cpp_quote_string): Prototype.
14492 * cppmain.c (print_line): Call cpp_quote_string on to_file
14493 before printing it.
14494
14495 * doc/cpp.texi: Document that escapes are now interpreted in
14496 #line and in linemarkers, and that non-printing characters are
14497 converted to octal escapes when linemarkers are generated.
14498
14499 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
14500
14501 * emit-rtl.c (try_split): Use delete_insns.
14502 * recog.c (split_all_insns): Fix terminating condition.
14503
14504 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
14505 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
14506
14507 PR target/5828
14508 * arm.c (arm_output_epilogue): Fix floating-point register save
14509 adjustment when using a frame pointer.
14510
14511 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
14512
14513 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
14514 * config/mips/mips.c (compute_frame_size): Retrofit them here.
14515 (save_restore_insns, mips_expand_epilogue): And here.
14516 (build_mips16_call_stub): And here.
14517 (mips_function_value): Use the new macros to decide whether a single
14518 or complex float can be returned in floating-point registers. Return
14519 a parallel rtx in the complex case.
14520
14521 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
14522
14523 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
14524 call after liveness analysis.
14525
14526 * recog.c (split_insn): Use delete_insn_and_edges.
14527
14528 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
14529 instructions to have branch prediction notes.
14530 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
14531
14532 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
14533
14534 * configure.in: Don't pass -Wno-long-long to a ADA compiler
14535 that doesn't support it.
14536 * configure: Regenerate.
14537
14538 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14539
14540 PR target/5626
14541 * config/sparc/sparc.md (normal_branch, inverted_branch,
14542 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
14543 inverted_fp_branch): Adjust calls to output_cbranch.
14544 Set length attribute.
14545 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
14546 output_v9branch. Set length attribute.
14547 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
14548 predicates.
14549 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
14550 (output_cbranch): Likewise. Handle far branches.
14551 (output_v9branch): Handle far branches.
14552 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
14553 Adjust prototypes.
14554 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
14555 noov_compare64_op predicates.
14556
14557 2002-03-13 Jason Merrill <jason@redhat.com>
14558
14559 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
14560 into the function and constify it.
14561 * gthr-dce.h, gthr-solaris.h: Likewise.
14562
14563 2002-03-13 David Edelsohn <edelsohn@gnu.org>
14564
14565 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
14566 * config/rs6000/rs6000.c (rs6000_va_arg): Use
14567 std_expand_builtin_va_arg if not ABI_V4.
14568
14569 2002-03-13 Jason Merrill <jason@redhat.com>
14570
14571 * varasm.c (globalize_decl): New fn.
14572 (assemble_start_function): Use it.
14573 (asm_emit_uninitialized): Use it.
14574 (assemble_alias): Use it.
14575 (assemble_variable): Use it.
14576
14577 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
14578
14579 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
14580 2002-03-12 internal visibility change.
14581 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
14582 visibility into SYMBOL_REF_FLAG.
14583
14584 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
14585
14586 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
14587 VOIDmode operand. Add compile-time optimization for constant results.
14588
14589 2002-03-12 Jason Merrill <jason@redhat.com>
14590
14591 * c-typeck.c (convert_for_assignment): Don't allow conversions
14592 between pointers and references. Only allow lvalues to convert to
14593 reference.
14594
14595 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
14596
14597 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
14598 before prologue, to avoid scheduling problems.
14599
14600 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14601
14602 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
14603 (ELIMINABLE_REGS): Add sfp->sp.
14604 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
14605
14606 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14607
14608 PR optimization/5892
14609 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
14610
14611 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14612
14613 * loop.c (basic_induction_var): Don't call convert_modes if mode
14614 classes are different.
14615
14616 2002-03-12 Richard Henderson <rth@redhat.com>
14617
14618 PR optimization/5901
14619 * function.c (reposition_prologue_and_epilogue_notes): Position
14620 the markers after/before the last/first insn not deleted.
14621
14622 2002-03-12 Richard Henderson <rth@redhat.com>
14623
14624 PR optimization/5878
14625 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
14626 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
14627 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
14628
14629 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
14630 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
14631 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
14632
14633 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
14634 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
14635 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
14636 also. Don't set it if not flag_pic.
14637 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
14638 to be INVALID_REGNUM when not used.
14639
14640 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
14641
14642 * expmed.c (store_bit_field): Reset alias set for memory.
14643 (extract_bit_field): Same.
14644
14645 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14646
14647 * c-common.c (c_tree_code_type, c_tree_code_length,
14648 c_tree_code_name, add_c_tree_codes): Delete.
14649 * c-common.h (add_c_tree_codes): Delete.
14650 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
14651 Define.
14652 * c-objc-common.c (c_objc_common_init): Don't call
14653 add_c_tree_codes, instead set lang_unsafe_for_reeval.
14654 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
14655 objc_tree_code_name, add_objc_tree_codes): Delete.
14656 (objc_init): Don't call add_objc_tree_codes.
14657 * objc/objc-lang.c (tree_code_type, tree_code_length,
14658 tree_code_name): Define.
14659 * toplev.c (lang_independent_init): Don't set
14660 tree_code_length[IDENTIFIER_NODE].
14661 * tree.c (tree_code_type, tree_code_length, tree_code_name):
14662 Delete definitions, moved to language front-ends.
14663 * tree.def (IDENTIFIER_NODE): Hardwire the length.
14664 * tree.h (tree_code_type, tree_code_length, tree_code_name):
14665 Const-ify.
14666 (tree_code_length): Change type to unsigned char.
14667
14668 2002-03-12 Richard Henderson <rth@redhat.com>
14669
14670 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
14671 internal visibility change.
14672
14673 2002-03-12 Bob Wilson <bob.wilson@acm.org>
14674
14675 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
14676 validize_mem() instead of change_address to avoid clobbering
14677 memory attributes.
14678
14679 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
14680
14681 * c-lex.h (position_after_whitespace): Remove.
14682
14683 2002-03-12 Jakub Jelinek <jakub@redhat.com>
14684
14685 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
14686 (lex_string): Use unsigned char pointers.
14687
14688 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
14689
14690 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
14691 is not a valid memory_operand.
14692
14693 2002-03-12 Bob Wilson <bob.wilson@acm.org>
14694
14695 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
14696 * config/xtensa/lib1funcs.asm: Fix copyright to include
14697 special case for libgcc files.
14698 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
14699 (__divsi3): Likewise.
14700 (__umodsi3): Likewise.
14701 (__modsi3): Likewise.
14702 * config/xtensa/lib2funcs.S: Fix copyright to include
14703 special case for libgcc files.
14704
14705 2002-03-12 Tom Rix <trix@redhat.com>
14706
14707 * collect2.c (resolve_lib_name): Move outside of
14708 OBJECT_FORMAT_COFF ifdef.
14709 (ignore_library): Same.
14710
14711 2002-03-12 Bob Wilson <bob.wilson@acm.org>
14712
14713 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
14714
14715 2002-03-12 Bob Wilson <bob.wilson@acm.org>
14716
14717 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
14718 to function_section before writing out the constant pool.
14719
14720 2002-03-12 David Edelsohn <edelsohn@gnu.org>
14721
14722 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
14723 zero_constant.
14724 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
14725
14726 2002-03-12 Alan Modra <amodra@bigpond.net.au>
14727
14728 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
14729 (adddi3): Likewise.
14730 (movdf): Likewise.
14731 (movdi): Likewise.
14732 (cmpsi splitter): Likewise.
14733 (modsi3): Fail if <= 0.
14734 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
14735 redundant test when HOST_BITS_PER_WIDE_INT != 32.
14736 (reg_or_sub_cint64_operand): Likewise.
14737 (num_insns_constant_wide): Optimize sign extension.
14738 (rs6000_legitimize_address): Likewise.
14739
14740 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
14741
14742 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14743 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14744
14745 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
14746
14747 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
14748 address calculation.
14749
14750 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
14751
14752 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
14753 scratch register to DImode / TImode.
14754 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
14755 register used does not overlap the target.
14756
14757 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14758
14759 * Makefile.in (debug.o): Depend on debug.h.
14760 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
14761 * debug.c (do_nothing_debug_hooks): Likewise.
14762 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
14763 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
14764 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
14765 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14766 * dwarfout.c (dwarf_debug_hooks): Likewise.
14767 * integrate.c (output_inline_function): Likewise.
14768 * objc/objc-act.c (synth_module_prologue): Likewise.
14769 * sdbout.c (sdb_debug_hooks): Likewise.
14770 * toplev.c (debug_hooks): Likewise.
14771 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14772
14773 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14774
14775 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
14776 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
14777 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
14778 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
14779 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
14780 * defaults.h (POINTER_SIZE): Define.
14781 * doc/tm.texi (POINTER_SIZE): Document default.
14782
14783 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14784
14785 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
14786
14787 2002-03-11 Richard Henderson <rth@redhat.com>
14788
14789 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
14790 if rebuild_label_notes_after_reload.
14791
14792 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
14793
14794 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
14795 emit pic register load if "internal" visibility.
14796 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
14797 (cris_expand_builtin_va_arg): Do all computations on trees.
14798
14799 2002-03-11 Richard Henderson <rth@redhat.com>
14800
14801 * rtlanal.c: Include recog.h.
14802 (keep_with_call_p): Fix thinko.
14803 * Makefile.in (rtlanal.o): Update dependencies.
14804
14805 2002-03-11 Chris Meyer <cmeyer@gatan.com>
14806
14807 * genflags.c (gen_insn): Use IS_VSPACE.
14808 * genoutput.c (output_insn_data): Likewise.
14809 (process_template): Likewise.
14810
14811 2002-03-11 Richard Henderson <rth@redhat.com>
14812
14813 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
14814
14815 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
14816
14817 * Makefile.in: Update.
14818 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
14819 Update documentation.
14820 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
14821 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
14822
14823 2002-03-11 Zack Weinberg <zack@codesourcery.com>
14824
14825 * Makefile.in: Give texi2pod its input file as a command line
14826 argument, not on stdin.
14827
14828 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
14829 Daniel Berlin <dan@dberlin.org>
14830
14831 C++ alias analysis improvement.
14832 * alias.c (record_component_aliases): Record aliases for base
14833 classes too.
14834
14835 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
14836
14837 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
14838
14839 2002-03-11 Douglas B Rupp <rupp@gnat.com>
14840
14841 * toplev.c (vms_fopen): Remove, not needed.
14842
14843 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
14844
14845 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
14846
14847 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
14848 for FP, already done later.
14849
14850 * toplev.c (debug_args): Add entry for VMS_DEBUG.
14851 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
14852
14853 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
14854
14855 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
14856 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
14857 LARGEST_EXPONENT_IS_NORMAL for the given mode.
14858 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
14859 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
14860 (ediv, emul, eldexp, esqrt): Likewise.
14861 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
14862 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
14863 (saturate): New function.
14864 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
14865 (make_nan): Use a saturation value instead of a NaN if
14866 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
14867 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
14868 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
14869 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
14870 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
14871 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
14872 !ROUND_TOWARDS_ZERO.
14873 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
14874 (ROUND_TOWARDS_ZERO): Document.
14875
14876 2002-03-11 Andreas Jaeger <aj@suse.de>
14877
14878 * cfg.c (dump_flow_info): Remove unused variable.
14879
14880 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
14881
14882 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
14883 computations on trees.
14884
14885 2002-03-10 Richard Henderson <rth@redhat.com>
14886
14887 PR 5693:
14888 * reload.c (copy_replacements_1): New.
14889 (copy_replacements): Use it to recurse through the rtx.
14890
14891 2002-03-10 Richard Henderson <rth@redhat.com>
14892
14893 * loop.c (strength_reduce): Compute number of iterations as
14894 unsigned HOST_WIDE_INT.
14895
14896 2002-03-10 Richard Henderson <rth@redhat.com>
14897
14898 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
14899 to move away from the end of the block.
14900
14901 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
14902
14903 PR preprocessor/5899
14904 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
14905
14906 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14907
14908 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
14909
14910 * attribs.c (decl_attributes): Fix signed/unsigned warning.
14911
14912 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
14913
14914 * config/mmix/mmix.c: Improve comments.
14915 (mmix_target_asm_function_prologue): Drop variable
14916 empty_stack_frame. Don't allocate unused slot above fp.
14917 (mmix_target_asm_function_epilogue): Mirror prologue changes.
14918 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
14919 brace in first column.
14920 (enum reg_class): Ditto.
14921 (FIRST_PARM_OFFSET): Now 0.
14922 (USER_LABEL_PREFIX): Remove #if 0:d definition.
14923
14924 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14925
14926 * combine.c (make_extraction): Fix error in last change.
14927
14928 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14929
14930 * c4x.c (c4x_fp_reglist): Const-ify.
14931 * cris.c (cris_print_operand): Likewise.
14932 * i386.c (ix86_va_arg): Likewise.
14933 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
14934 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
14935 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
14936 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
14937 * mcore.h (regno_reg_class): Likewise.
14938 * mips.c (gen_int_relational): Likewise.
14939 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
14940 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
14941 * pdp11.c (move_costs): Likewise.
14942 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
14943 * s390.c (s390_branch_condition_mnemonic, regclass_map):
14944 Likewise.
14945 * s390.h (regclass_map): Likewise.
14946 * sh.c (shift_amounts): Likewise.
14947 * sh.md (rotlsi3): Likewise.
14948
14949 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
14950
14951 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
14952 (ne0+5): Use new clobber to generate proper shift pattern.
14953 Patch by Michael Matz <matz@kde.org>.
14954
14955 2002-03-09 Andreas Schwab <schwab@suse.de>
14956
14957 * gcc.c (validate_all_switches): Also handle `%W{...}'.
14958
14959 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
14960
14961 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
14962
14963 2002-03-09 Jakub Jelinek <jakub@redhat.com>
14964
14965 PR middle-end/5877
14966 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
14967 even for non-representable constants.
14968
14969 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14970
14971 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
14972 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
14973 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
14974 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
14975 (pop_function_context): Compute MAY_SHARE parameter for
14976 fixup_var_refs.
14977 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
14978 (gen_mem_addressof): Call fixup_var_refs with new parm.
14979
14980 * combine.c (make_extraction): Don't make extension of CONST_INT.
14981
14982 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
14983
14984 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
14985 in o32 and o64 ABIs.
14986 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
14987 but getting fixed-size structs passed in registers regardless of
14988 padding in o32 and o64 ABIs.
14989
14990 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
14991 offset before loading address of argument passed by transparent
14992 reference.
14993
14994 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
14995
14996 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
14997
14998 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
14999
15000 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
15001 marker such that registers after it are saved.
15002
15003 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15004
15005 * sparc.c (arith_4096_operand): Fix error in last change.
15006
15007 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
15008
15009 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
15010 defaults for MEABI.
15011
15012 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
15013
15014 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
15015 vectors.
15016
15017 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
15018
15019 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
15020
15021 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
15022
15023 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
15024 removed; fix return value.
15025 * combine.c (combine_instructions): Dirtify blocks where we failed to
15026 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
15027 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
15028
15029 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15030
15031 * gcse.c (insert_insn_end_bb): Fix typo in last change.
15032
15033 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
15034
15035 * recog.c (peephole2_optimize): Re-distribute EH edges.
15036
15037 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
15038
15039 * expr.c (expand_expr): Use unsave lang hook.
15040 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
15041 (LANG_HOOKS_INITIALIZER): Update.
15042 * langhooks.h (struct lang_hooks): New hook unsave.
15043 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
15044 (unsave_expr_1): Remove unused lang_unsave_expr_now.
15045 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
15046 (unsave_expr_now): Remove.
15047 * tree.h (unsave_expr_now, lang_unsave,
15048 lang_unsave_expr_now): Remove.
15049 (lhd_unsave): New.
15050
15051 2002-03-08 Andreas Jaeger <aj@suse.de>
15052
15053 * flow.c (propagate_block_delete_insn): Remove unused variable.
15054
15055 2002-03-08 Kazu Hirata <kazu@hxi.com>
15056
15057 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
15058 insn length for memory load/store.
15059
15060 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
15061
15062 * doc/install.texi (--with-libiconv-prefix): Document.
15063
15064 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
15065
15066 * doc/sourcebuild.texi: Fix typo.
15067
15068 2002-03-08 Jakub Jelinek <jakub@redhat.com>
15069
15070 PR c/3711
15071 * builtins.c (std_expand_builtin_va_arg): Do all computations on
15072 trees.
15073
15074 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15075
15076 * rtl.c (copy_most_rtx): Move from here ...
15077 * emit-rtl.c (copy_most_rtx): ... to here.
15078
15079 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
15080
15081 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
15082 SUBTARGET_CPP_SIZE_SPEC.
15083 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
15084
15085 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
15086
15087 2002-03-07 Matt Hiller <hiller@redhat.com>
15088
15089 * gensupport.c (first_dir_md_include): Renamed from include;
15090 change all references.
15091 (last_dir_md_include): Renamed from last_include; change all
15092 references.
15093 (init_md_reader): Unconditionally initialize base_dir whether or
15094 not filename is a relative path.
15095
15096 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
15097
15098 * config/fp-bit.c (_unord_f2): Compile it in even if
15099 US_SOFTWARE_GOFAST is enabled.
15100
15101 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
15102 NULL_RTX. Set all HFmode operations as NULL_RTX.
15103 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
15104 NULL_RTX, try reversing the comparison and the operands.
15105
15106 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
15107
15108 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
15109 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
15110 and MATCH_OP_DUP.
15111
15112 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
15113
15114 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
15115
15116 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
15117
15118 * basic-block.h (fixup_abnormal_edges): Declare.
15119 * reload1.c (fixup_abnormal_edges): New function.
15120 * reg-stack.c (convert_regs): Use it.
15121
15122 * gcse.c (insert_insn_end_bb): Handle trapping insns.
15123
15124 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
15125
15126 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
15127
15128 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
15129 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
15130 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
15131 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
15132 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
15133 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
15134 unless x and y could be infinite.
15135 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
15136 Check that the common type of both arguments is a real, even for
15137 targets without unordered comparisons. Allow an integer argument
15138 to be compared against a real.
15139 (expand_tree_builtin): Use expand_unordered_cmp.
15140 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
15141 * cse.c (fold_rtx): Likewise. Fix indentation.
15142 * fold-const.c (fold_real_zero_addition_p): New.
15143 (fold): Use it, and the new HONOR_... macros.
15144 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
15145 * jump.c (reversed_comparison_code_parts): After searching for
15146 the true comparison mode, use HONOR_NANS to decide whether it
15147 can be safely reversed.
15148 (reverse_condition_maybe_unordered): Remove IEEE check.
15149 * simplify-rtx.c (simplify_binary_operation): Use the new macros
15150 to decide which simplifications are valid. Allow the following
15151 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
15152 and (a - -b) to (a + b).
15153 (simplify_relational_operation): Use HONOR_NANS.
15154 * doc/tm.texi: Document the MODE_HAS_... macros.
15155
15156 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
15157
15158 * combine.c (simplify_comparison): If simplifying a logical shift
15159 right and compare with constant, force the comparison to unsigned.
15160
15161 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
15162
15163 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
15164
15165 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
15166 -mabi=no-altivec
15167 (alt_reg_names): Remove % for vrsave.
15168
15169 2002-03-06 Richard Henderson <rth@redhat.com>
15170
15171 PR optimization/5844
15172 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
15173 if used indicates we've already emitted one copy of an operand.
15174 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
15175 (gen_split): Supply a non-null used.
15176
15177 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
15178
15179 * reload1.c (reload): Unshare all rtl after reload is done.
15180
15181 * simplify-rtx.c (simplify_plus_minus): Do not abort,
15182 but simply fail if the expression is too complex to simplify.
15183 (simplify_gen_binary): Handle simplify_plus_minus failures.
15184
15185 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
15186
15187 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
15188 consistently call delete_trivially_dead_insns after CSE and GCSE;
15189 fix DFI_life dumping; do jump threading after liveness; do crossjumping
15190 after liveness2; update comment in last crossjumping.
15191 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
15192
15193 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
15194
15195 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
15196 after completing fast dead code elimination.
15197
15198 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
15199 COMPARE operator.
15200
15201 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
15202
15203 * version.c: Fix misplaced leading blanks on first line.
15204
15205 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
15206
15207 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
15208
15209 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
15210
15211 * cfgcleanup.c (mentions_nonequal_regs): New function.
15212 (thread_jump): Use it.
15213 * toplev.c (rest_of_compilation): Run jump threading after
15214 liveness.
15215
15216 2002-03-06 Jakub Jelinek <jakub@redhat.com>
15217
15218 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
15219 patch.
15220
15221 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
15222
15223 * predict.c (estimate_bb_frequencies): Do not reload the
15224 frequencies from notes.
15225
15226 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
15227
15228 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
15229 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
15230
15231 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
15232 delete_noop_moves): Return indeger.
15233 * flow.c (ndead): New variable.
15234 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
15235 BB argument; update callers.
15236 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
15237 (life_analysis): Do not call purge_all_dead_edges.
15238 (update_life_info): Return number of deleted insns; print statistics.
15239 (update_life_info_in_dirty_blocks): likewise.
15240 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
15241 return number of insns deleted.
15242
15243 * cse.c: Include timevar.h
15244 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
15245 iterate until stabilizes; print statistics; return number of killed
15246 insns.
15247 * Makefile.in: (cse.o): Add timevar.h dependency
15248 * rtl.h (delete_trivially_dead_insns): New.
15249 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
15250 * toplev.c (rest_of_compilation): Update callers.
15251
15252 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
15253 (try_optimize_cfg): Do not update liveness.
15254 (cleanup-cfg): Loop until try_optimize_cfg and dead code
15255 removal stabilizes; use delete_trivially_dead_insns.
15256
15257 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
15258
15259 2002-03-05 Zack Weinberg <zack@codesourcery.com>
15260
15261 * cppmain.c (setup_callbacks): Disable #pragma and #ident
15262 callbacks when processing assembly language.
15263
15264 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
15265
15266 * pa.h (ASM_FILE_END): Define.
15267 * som.h (ASM_FILE_END): Delete.
15268
15269 * pa.c (function_arg): Don't pass floats in general registers in
15270 indirect calls if TARGET_ELF32.
15271
15272 2002-03-05 Richard Henderson <rth@redhat.com>
15273
15274 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
15275
15276 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
15277
15278 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
15279
15280 2002-03-05 Jakub Jelinek <jakub@redhat.com>
15281
15282 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
15283 -r command line. Don't hide any symbols if not building
15284 shared libgcc.
15285
15286 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
15287
15288 * cfg.c (dump_flow_info): Warn about profile mismatches.
15289 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
15290 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
15291
15292 2002-03-05 Jakub Jelinek <jakub@redhat.com>
15293
15294 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
15295 wide volatile memory by parts.
15296
15297 2002-03-05 Jakub Jelinek <jakub@redhat.com>
15298
15299 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
15300 is NULL.
15301
15302 2002-03-05 Richard Henderson <rth@redhat.com>
15303
15304 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
15305
15306 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
15307
15308 * toplev.c (documented_lang_options): Document more
15309 language-specific options.
15310 * doc/invoke.texi (Warning Options): Correct documentation for
15311 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
15312 * c-decl.c (c_decode_option): Use a table to handle warning options.
15313
15314 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
15315
15316 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
15317 parameter to mmix_encode_section_info.
15318 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
15319 relocatably. Always produce ELF, not mmo if linking relocatably.
15320 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
15321 first is non-zero, don't add symbol prefix.
15322 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
15323 prototype accordingly.
15324
15325 2002-03-04 Krister Walfridsson <cato@df.lth.se>
15326
15327 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
15328
15329 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
15330
15331 * configure.in: Increase required makeinfo version to 4.1.
15332 * configure: Regenerate.
15333
15334 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
15335
15336 * .cvsignore: Remove *.info* and genrtl*; these files are generated
15337 elsewhere now.
15338
15339 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
15340
15341 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
15342 * doc/invoke.texi: Fix @math uses.
15343
15344 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
15345
15346 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
15347 removal
15348
15349 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
15350
15351 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
15352 (powerpc-*-eabisimaltivec*): Same.
15353
15354 * config/rs6000/t-ppcendian: New.
15355
15356 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15357
15358 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
15359 nonimmediate_src_operand and nonimmediate_lsrc_operand to
15360 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
15361
15362 2002-03-03 Richard Henderson <rth@redhat.com>
15363
15364 * toplev.c (rest_of_decl_compilation): Revert last two changes.
15365
15366 2002-03-03 Zack Weinberg <zack@codesourcery.com>
15367
15368 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
15369 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
15370 tree.c, config/m68k/m68k.c:
15371 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
15372 REAL_ARITHMETIC blocks unconditional. Delete some further
15373 #ifdef blocks predicated on REAL_ARITHMETIC.
15374 * flags.h, toplev.c: Delete remaining references to
15375 flag_pretend_float.
15376
15377 * doc/invoke.texi: Remove documentation of -fpretend-float.
15378 * doc/tm.texi: Describe the various REAL_* macros as provided by
15379 real.h, not by the target configuration files.
15380
15381 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
15382 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
15383 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15384 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
15385 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
15386 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
15387 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
15388 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
15389 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15390 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
15391 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15392 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
15393 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
15394 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
15395 config/xtensa/xtensa.h:
15396 Do not define, undefine, or mention in comments any of
15397 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
15398 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
15399 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
15400 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
15401 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
15402 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
15403 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
15404 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
15405 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
15406
15407 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15408
15409 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
15410 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
15411 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
15412 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
15413 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
15414 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
15415 Delete.
15416 * defaults.h (BITS_PER_WORD): Define.
15417 * doc/tm.texi (BITS_PER_WORD): Document default value.
15418
15419 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
15420 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
15421 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
15422
15423 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15424
15425 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
15426 lieu of explicit sizeof/sizeof.
15427 * i386.c (override_options, ix86_init_mmx_sse_builtins,
15428 ix86_expand_builtin): Likewise.
15429 * mips.c (mips_add_gc_roots): Likewise.
15430 * mmix.c (mmix_output_condition): Likewise.
15431 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
15432 altivec_init_builtins): Likewise.
15433 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
15434 * cppexp.c (Nsuff, parse_number): Likewise.
15435 * cppinit.c (builtin_array_end): Likewise.
15436 * gcc.c (n_default_compilers, process_command): Likewise.
15437 * genpreds.c (output_predicate_decls): Likewise.
15438 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
15439 * lcm.c (N_ENTITIES): Likewise.
15440 * stor-layout.c (set_sizetype): Likewise.
15441
15442 2002-03-03 Richard Henderson <rth@redhat.com>
15443
15444 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
15445 for types or labels.
15446
15447 2002-03-03 Richard Henderson <rth@redhat.com>
15448
15449 * c-decl.c (start_decl): Initialized variables are not common.
15450
15451 2002-03-02 Per Bothner <per@bothner.com>
15452
15453 * gcc.c (option_map): Suport new --bootclasspath option.
15454 --CLASSPATH is now just an alias for --classpath.
15455
15456 2002-03-02 Richard Henderson <rth@redhat.com>
15457
15458 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
15459 load if "internal" visibility.
15460 * doc/extend.texi: Document visibility meanings.
15461
15462 2002-03-02 Richard Henderson <rth@redhat.com>
15463
15464 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
15465 to functions as well.
15466
15467 2002-03-02 Richard Henderson <rth@redhat.com>
15468
15469 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
15470 (handle_visibility_attribute): Don't call assemble_visibility.
15471 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
15472 without asmspec. Invoke assemble_alias when needed.
15473 * varasm.c (maybe_assemble_visibility): New.
15474 (assemble_start_function, assemble_variable, assemble_alias): Use it.
15475
15476 2002-03-02 Richard Henderson <rth@redhat.com>
15477
15478 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
15479 invoke ENCODE_SECTION_INFO with first call flag.
15480
15481 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
15482 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
15483 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
15484 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
15485 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
15486 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
15487 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
15488 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
15489 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
15490 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
15491 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
15492 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
15493 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
15494 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
15495 config/mcore/mcore-protos.h, config/mcore/mcore.c,
15496 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
15497 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
15498 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
15499 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
15500 config/sh/sh.h, config/sparc/sparc.h,
15501 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
15502 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
15503 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
15504 FIRST argument. As needed, examine it and do nothing.
15505
15506 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
15507 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15508 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
15509
15510 * config/arm/t-pe (pe.o): Add dependencies.
15511
15512 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15513
15514 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
15515 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
15516 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
15517 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
15518 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
15519 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
15520 * defaults.h (BITS_PER_UNIT): Define.
15521 * doc/tm.texi (BITS_PER_UNIT): Document default value.
15522
15523 2002-03-02 Kazu Hirata <kazu@hxi.com>
15524
15525 * config/h8300/h8300-protos.h: Add a prototype for
15526 compute_a_shift_length.
15527 * config/h8300/h8300.c (h8300_asm_insn_count): New.
15528 (compute_a_shift_length): Likewise.
15529 (h8300_adjust_insn_length): Do not adjust insn length of shift
15530 insns.
15531 * config/h8300/h8300.md (anonymous shift patterns): Use
15532 compute_a_shift_length.
15533
15534 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15535
15536 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
15537 trunc_int_for_mode.
15538
15539 * emit-rtl.c (offset_address): Call update_temp_slot_address.
15540
15541 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15542
15543 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
15544 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
15545 * flags.h (flag_zero_initialized_in_bss): Declare.
15546 * toplev.c (flag_zero_initialized_in_bss): New flag.
15547 (lang_independent_options): Add flag_zero_initialized_in_bss.
15548 * tree.c (initializer_zerop): New function.
15549 * tree.h (initializer_zerop): Declare.
15550 * varasm.c (assemble_variable): If we can emit bss, put zero
15551 initializers in the bss section.
15552
15553 2002-03-02 Alan Modra <amodra@bigpond.net.au>
15554
15555 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
15556 like more than one symbol per .weak directive.
15557
15558 2002-03-01 Richard Henderson <rth@redhat.com>
15559
15560 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
15561 adjust argument_pointer by pretend_args_size.
15562 (ia64_va_start): Adjust va_start address by -pretend_args_size.
15563
15564 2002-03-01 Kazu Hirata <kazu@hxi.com>
15565
15566 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
15567
15568 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
15569
15570 * toplev.c (rest_of_compilation): Delete dead jumptables before
15571 loop.
15572 * flow.c (delete_dead_jumptables): Make global.
15573 * rtl.h (delete_dead_jumptables): Declare.
15574
15575 2002-03-01 David Edelsohn <edelsohn@gnu.org>
15576
15577 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
15578 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
15579 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
15580
15581 2002-03-01 Kazu Hirata <kazu@hxi.com>
15582
15583 * config/h8300/h8300-protos.h: Fix formatting.
15584 * config/h8300/h8300.c: Likewise.
15585 * config/h8300/h8300.h: Likewise.
15586
15587 2002-03-01 Kazu Hirata <kazu@hxi.com>
15588
15589 * config/h8300/h8300.c (print_operand): Support 16-bit
15590 constant addresses.
15591 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
15592
15593 2002-02-28 Richard Henderson <rth@redhat.com>
15594
15595 * expmed.c (store_bit_field): Prevent generation of CONCATs;
15596 pun complex values as integers; use gen_lowpart instead of
15597 gen_rtx_SUBREG.
15598 (extract_bit_field): Likewise.
15599
15600 2002-03-01 Alan Modra <amodra@bigpond.net.au>
15601 David Edelsohn <edelsohn@gnu.org>
15602
15603 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
15604 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
15605 (SUPPORTS_WEAK): Likewise.
15606 * output.h (add_weak): Add tree param.
15607 * varasm.c (add_weak): Likewise. Save decl.
15608 (struct weak_syms): Add decl field.
15609 (mark_weak_decls): New function.
15610 (init_varasm_once): ggc_add_root mark_weak_decls.
15611 (assemble_start_function): Use ASM_WEAKEN_DECL.
15612 (assemble_variable): Likewise.
15613 (assemble_alias): Likewise.
15614 (declare_weak): Pass decl to add_weak.
15615 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
15616 (remove_from_pending_weak_list): Declare and define for
15617 ASM_WEAKEN_DECL.
15618 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
15619 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
15620 * defaults.h (SUPPORTS_WEAK): Likewise.
15621 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15622 .weak for code sym. Do emit .size for descriptor sym.
15623 (ASM_DECLARE_FUNCTION_SIZE): Define.
15624 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
15625 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
15626 .lglobl unless TARGET_XCOFF. Formatting fixes.
15627 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15628 .weak for code sym.
15629 (HANDLE_PRAGMA_WEAK): Remove.
15630 (ASM_WEAKEN_LABEL): Remove.
15631 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
15632
15633 2002-03-01 Jason Merrill <jason@redhat.com>
15634
15635 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
15636 (TARGET_EXPR_CLEANUP): New macro.
15637
15638 2002-02-28 Steve Ellcey <sje@cup.hp.com>
15639
15640 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
15641 to take ptr_extend into account as third type of extension.
15642 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
15643 fields used by SUBREG_PROMOTED_UNSIGNED_P.
15644 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
15645 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
15646 * calls.c (precompute_arguments): Use new macro.
15647 (expand_call): Ditto.
15648 * combine.c (nonzero_bits): Ditto.
15649 (record_promoted_value): Ditto.
15650 * expr.c (store_expr): Ditto.
15651 (expand_expr): Ditto.
15652 * function.c (assign_parms): Ditto.
15653
15654 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
15655
15656 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
15657 override -shared and -shared-libgcc.
15658
15659 2002-02-28 David O'Brien <obrien@FreeBSD.org>
15660
15661 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
15662 of "ultrasparc".
15663 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
15664 to be broken.
15665
15666 2002-02-28 Richard Henderson <rth@redhat.com>
15667
15668 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
15669 4 cycle latency from MM producers.
15670 (ia64_internal_sched_reorder): Likewise with pipeline flush.
15671
15672 2002-02-28 Jakub Jelinek <jakub@redhat.com>
15673
15674 * mklibgcc.in: Don't use GNU make extension.
15675
15676 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
15677
15678 * c-parse.in (STATIC): New terminal.
15679 (scspec): New non-terminal. Update productions accordingly.
15680 (program): Remove bogus ifc / end ifc.
15681 (array_declarator): Simplify production using STATIC.
15682
15683 2002-02-28 Jim Meyering <meyering@lucent.com>
15684
15685 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
15686 \a still means TARGET_BELL.
15687
15688 2002-02-28 Richard Henderson <rth@redhat.com>
15689
15690 * haifa-sched.c (sched_emit_insn): New.
15691 (schedule_block): Use last_scheduled_insn to track last insn.
15692 * sched-int.h (sched_emit_insn): Prototype.
15693 * config/ia64/ia64.c (last_issued): Remove.
15694 (ia64_variable_issue): Don't set it.
15695 (nop_cycles_until): Use sched_emit_insn.
15696
15697 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
15698
15699 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
15700 extended constants.
15701
15702 2002-02-28 Kazu Hirata <kazu@hxi.com>
15703
15704 * config/h8300/h8300.c: Fix formatting.
15705 * config/h8300/h8300.h: Likewise.
15706
15707 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
15708
15709 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
15710 which may overwrite the high byte of the frame pointer.
15711
15712 2002-02-28 Bo Thorsen <bo@suse.de>
15713
15714 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
15715 (STARTFILE_SPEC): Add 64 bit files.
15716 (ENDFILE_SPEC): Likewise.
15717
15718 2002-02-28 Jason Merrill <jason@redhat.com>
15719
15720 * c-decl.c (finish_function): Only warn about missing return
15721 statement with -Wreturn-type.
15722
15723 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
15724
15725 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
15726
15727 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
15728 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
15729
15730 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
15731
15732 * basic-block.h (BB_REACHABLE): Renumber.
15733 (BB_DIRTY, BB_NEW): New flags.
15734 (clear_bb_flags): Declare.
15735 (update_life_info_in_dirty_blocks): Declare.
15736 * cfg.c (clear_bb_flags): New function.
15737 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
15738 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
15739 reorder_insns, emit_insn_after): Mark block as dirty.
15740 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
15741 (update_life_info_in_dirty_blocks): New function.
15742 * recog.c (apply_change_group): Dirtify block.
15743
15744 * cse.c (cse_insn): Reorder emitting of jump insn to keep
15745 cfg consistent.
15746 * gcse.c (delete_null_pointer_checks): Likewise.
15747
15748 * toplev.c (dump_file_index): Move cse2 after bp,
15749 add DFI_null
15750 (dump_file_info): Similary.
15751 (rest_of_compilation): Avoid most of CFG rebuilds;
15752 do first if converision after null pointer checks, do cse2
15753 after branch prediction; avoid full liveness rebuild after
15754 initializing subregs.
15755 * invoke.texi (-d options): Document -du, renumber.
15756
15757 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
15758 (notice_new_block): Do not set BB_UPDATE_LIFE.
15759 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
15760 merge_blocks_move_successor_nojumps, merge_blocks,
15761 try_crossjump_to_edge): Likewise.
15762 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
15763 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
15764 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
15765 (merge_of_block): Do not use life_data_ok.
15766 (find_if_case_1): Do not use SET_UPDATE_LIFE.
15767 (if_convert): Use BB_DIRTY mechanizm to update life.
15768 * lcm.c (optimize_mode_switching): Update
15769 update_life_info_in_dirty_blocks
15770
15771 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
15772
15773 * Makefile.in (integrate.o): Update.
15774 * c-decl.c (copy_lang_decl): Rename.
15775 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15776 * integrate.c: Include langhooks.h.
15777 (copy_decl_for_inlining): Update to use langhook.
15778 * langhooks-def.h (lhd_do_nothing_t,
15779 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
15780 (LANG_HOOKS_INITIALIZER): Update.
15781 * langhooks.c (lhd_do_nothing_t): New.
15782 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
15783 * tree.h (copy_lang_decl): Remove.
15784 objc:
15785 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15786
15787 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
15788
15789 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
15790 POST_DEC, and POST_MODIFY.
15791
15792 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15793
15794 * c-typeck.c (digest_init): Remove unused parameter; all
15795 callers changed.
15796
15797 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
15798
15799 * expmed.c (expand_shift): Correctly test for low part of a
15800 subreg.
15801
15802 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15803
15804 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
15805 insn UIDs with insn addresses.
15806
15807 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15808
15809 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
15810 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
15811 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
15812 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
15813 gcc.c, toplev.c: Delete code implementing -traditional mode.
15814
15815 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
15816 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
15817 Document removal of -traditional mode for compilation, and
15818 remove documentation only relevant to that mode.
15819
15820 * config/nextstep.h, config/ptx4.h, config/svr4.h,
15821 config/convex/convex.h, config/d30v/d30v.h,
15822 config/i386/dgux.h, config/i386/osf1elf.h,
15823 config/i386/osfelf.h, config/i386/osfrose.h,
15824 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
15825 config/m68k/hp310.h, config/m88k/dgux.h,
15826 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
15827 config/m88k/m88k.h, config/m88k/openbsd.h,
15828 config/mips/abi64.h, config/mips/osfrose.h,
15829 config/mips/svr4-5.h, config/mips/svr4-t.h,
15830 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15831 config/stormy16/stormy16.h: Remove all references to
15832 -traditional from target specs. Delete all mention of the
15833 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
15834 delete a couple of commented-out definitions of
15835 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
15836 to -traditional.
15837
15838 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
15839 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
15840
15841 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15842
15843 * mklibgcc.in: Don't use \n in a line subject to
15844 interpretation by echo.
15845
15846 2002-02-27 Graham Stott <grahams@redhat.com>
15847
15848 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
15849 Constify NAME.
15850
15851 * loop.c (prescan_loop): Handle PARALLEL.
15852
15853 * unroll.c (loop_iterations): Return 0 if the add_val for
15854 a BIV is REG.
15855
15856 * final.c (output_operand_lossage): Constify PFX_STR.
15857
15858 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
15859
15860 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
15861
15862 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
15863 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
15864
15865 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
15866
15867 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15868
15869 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
15870
15871 * cpplex.c (_cpp_lex_token): Handle directives in macro
15872 arguments.
15873 * cpplib.c (_cpp_handle_directive): Save and restore state
15874 if parsing macro args when entering a directive.
15875 * cppmacro.c (collect_args): No need to handle directives
15876 in macro arguments.
15877 (enter_macro_context, replace_args): Use the original macro
15878 definition in case it was redefined whilst collecting arguments.
15879 doc:
15880 * cpp.texi: Update.
15881
15882 2002-02-26 David Edelsohn <edelsohn@gnu.org>
15883
15884 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
15885 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
15886 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
15887 method on AIX.
15888 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
15889 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
15890 (load_toc_v4_PIC_2): Same.
15891
15892 2002-02-26 Alan Modra <amodra@bigpond.net.au>
15893
15894 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
15895
15896 2002-02-26 Richard Henderson <rth@redhat.com>
15897
15898 * config/alpha/alpha.md (ashldi_se): Re-enable.
15899
15900 2002-02-26 Richard Henderson <rth@redhat.com>
15901
15902 * config/alpha/alpha.c (alpha_encode_section_info): Examine
15903 MODULE_LOCAL_P; improve commentary.
15904
15905 2002-02-26 Zack Weinberg <zack@codesourcery.com>
15906
15907 * doc/cpp.texi: Clarify documentation of relationship between
15908 #line and #include.
15909
15910 2002-02-26 Kazu Hirata <kazu@hxi.com>
15911
15912 * config/h8300/h8300-protos.h: Update the prototype for
15913 compute_logical_op_length. Add the prototype for
15914 compute_logical_op_cc.
15915 * config/h8300/h8300.c (compute_logical_op_length): Figure out
15916 code from operands.
15917 (compute_logical_op_cc): New.
15918 * config/h8300/h8300.md: Combine all the logical op patterns
15919 in HImode and SImode. Use compute_logical_op_cc.
15920
15921 2002-02-26 Kelley Cook <kelleycook@comcast.net>
15922
15923 * config/i386/i386.c (print_operand): Don't append ATT-style
15924 length suffixs to x87 opcodes when in Intel mode.
15925
15926 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
15927
15928 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
15929 (init_emit_once): Update calls.
15930 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
15931 (init_syntax_once): Prototype.
15932
15933 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
15934
15935 * pa-linux.h (LIB_SPEC): Update definition.
15936 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15937
15938 2002-02-26 Richard Henderson <rth@redhat.com>
15939
15940 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
15941 if we emitted a stop bit.
15942
15943 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15944
15945 * configure.in (libgcc_visibility): Substitute.
15946 * configure: Rebuilt.
15947 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
15948 defined symbols .hidden.
15949
15950 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15951
15952 * attribs.c (c_common_attribute_table): Add visibility.
15953 (handle_visibility_attribute): New function.
15954 * varasm.c (assemble_visibility): New function.
15955 * output.h (assemble_visibility): Add prototype.
15956 * tree.h (MODULE_LOCAL_P): Define.
15957 * crtstuff.c (__dso_handle): Use visibility attribute.
15958 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
15959 for MODULE_LOCAL_P symbols too.
15960 * config/ia64/ia64.c (ia64_encode_section_info): Handle
15961 MODULE_LOCAL_P symbols the same way as local symbols.
15962 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
15963 into .sdata/.sbss by the user.
15964 * doc/extend.texi (Function Attributes): Document visibility
15965 attribute.
15966
15967 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15968
15969 PR debug/5770
15970 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
15971 STRING_CST initializer spanning the whole variable without
15972 embedded zeros.
15973 If expand_expr returned MEM, don't use it.
15974
15975 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
15976
15977 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
15978 generate a die for the lexical block.
15979
15980 2002-02-26 Kazu Hirata <kazu@hxi.com>
15981
15982 * config/h8300/h8300-protos.h: Add a prototype for
15983 compute_logical_op_length.
15984 * config/h8300/h8300.c (compute_logical_op_length): New.
15985 * config/h8300/h8300.md (anonymous logical patterns): Use
15986 compute_logical_op_length for length.
15987
15988 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15989
15990 * dwarf2out.c (modified_type_die): Do not call type_main_variant
15991 for vectors.
15992 (gen_type_die): Same.
15993
15994 * attribs.c (handle_vector_size_attribute): Set debug information.
15995
15996 2002-02-26 Daniel Egger <degger@fhm.edu>
15997
15998 * config/rs6000/rs6000.md: Swap define_insn attributes to
15999 fix incorrect generation of merge high instructions instead
16000 of merge low.
16001
16002 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
16003
16004 * c-typeck.c (really_start_incremental_init): Use
16005 bitsize_zero_node for vectors.
16006
16007 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
16008
16009 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
16010 ("*set_vrsave_internal"): Same.
16011
16012 2002-02-25 Richard Henderson <rth@redhat.com>
16013
16014 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
16015 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
16016
16017 2002-02-25 Jakub Jelinek <jakub@redhat.com>
16018
16019 PR target/5755
16020 * config/i386/i386.c (ix86_return_pops_args): Only pop
16021 fake structure return argument if it was passed on the stack.
16022
16023 2002-02-25 Jason Merrill <jason@redhat.com>
16024
16025 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
16026 RESULT_DECL.
16027
16028 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
16029
16030 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
16031 link with shared_name only.
16032 * doc/invoke.texi (Link Options): Document new behavior.
16033
16034 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
16035
16036 * c-typeck.c (push_init_level): Handle vectors.
16037
16038 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
16039
16040 * config/sparc/sparc.c (const64_high_operand): Zero-extend
16041 operands of SPARC_SETHI_P.
16042 (input_operand): Likewise.
16043 (sparc_emit_set_const32): Likewise.
16044 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
16045 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
16046 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
16047 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
16048 (movdi_insn_sp64_vis): Likewise.
16049 (movdi split, movdf split): Use SETHI32.
16050 * doc/md.texi: Document SPARC constraints L, M and N.
16051
16052 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
16053
16054 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
16055 ("*set_vrsave_internal"): use mfspr for Darwin.
16056
16057 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
16058 gen_get_vrsave_internal.
16059
16060 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16061
16062 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
16063
16064 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
16065
16066 * cpplex.c (cpp_interpret_charconst): Get signedness or
16067 otherwise of wide character constants correct.
16068 * cppexp.c (lex): Get signedness of wide charconsts correct.
16069
16070 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16071
16072 * optabs.c (widen_operand): Only call convert_modes for
16073 promoted SUBREG if signedness matches.
16074 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
16075
16076 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
16077
16078 * cpplib.c (glue_header_name): Use local buffer to build up
16079 header name.
16080
16081 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
16082
16083 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
16084
16085 2002-02-23 Kazu Hirata <kazu@hxi.com>
16086
16087 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
16088 H8/300[HS] separately.
16089 * config/h8300/h8300.md: Remove the early clobber constraint
16090 from bit field patterns.
16091
16092 2002-02-23 Kazu Hirata <kazu@hxi.com>
16093
16094 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
16095 register_operand.
16096 (mulhisi3): Likewise.
16097 (umulqisi3): Likewise.
16098 (umulhisi3): Likewise.
16099
16100 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
16101
16102 * cppinit.c (output_deps): Correct test for stdout output.
16103 (init_dependency_output): Cure warning.
16104
16105 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16106
16107 * expr.c (store_expr): When converting expression to promoted
16108 equivalent type, allow using SUBREG_REG of TARGET as the target
16109 of the expansion of EXP.
16110 * loop.c (basic_induction_var, case SUBREG): Always look inside.
16111 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
16112 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
16113 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
16114 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
16115
16116 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
16117
16118 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
16119 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
16120 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
16121
16122 2002-02-23 Jakub Jelinek <jakub@redhat.com>
16123
16124 PR optimization/5747
16125 * loop.c (scan_loop): Update reg info if move_movables created new
16126 pseudos.
16127
16128 2002-02-23 David Edelsohn <edelsohn@gnu.org>
16129
16130 * gcc.c (init_gcc_spec): Revert last change.
16131
16132 2002-02-23 David Edelsohn <edelsohn@gnu.org>
16133
16134 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
16135 gpc_reg_operand constraint.
16136
16137 2002-02-23 Alan Modra <amodra@bigpond.net.au>
16138
16139 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
16140 Simplify comparison of `low'.
16141 (add_operand): Fix formatting.
16142 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
16143 (mask_operand): Disallow mask to wrap in 64-bit mode.
16144 (rs6000_stack_info): Remove redundant test setting push_p.
16145 (output_toc): Fix formatting.
16146 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
16147 cc_reg_not_cr0_operand constraint.
16148 (booldi3, boolcdi3 splitters): Same.
16149
16150 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
16151
16152 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
16153
16154 2002-02-22 David Edelsohn <edelsohn@gnu.org>
16155
16156 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
16157 gcc invoked with -shared-libgcc.
16158
16159 2002-02-22 Jakub Jelinek <jakub@redhat.com>
16160
16161 PR c++/5748
16162 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
16163 decl if any of elements was TREE_USED.
16164
16165 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
16166
16167 * config/sparc/sol2.h: Don't include sys/mman.h.
16168 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
16169 (arith_4096_operand): Don't throw high bits away.
16170 (const64_operand): Take sign extension of CONST_INTs into account.
16171 (const64_high_operand, sparc_emit_set_const32): Likewise.
16172 (GEN_HIGHINT64): Likewise.
16173 (sparc_emit_set_const64_quick1): Likewise.
16174 (const64_is_2insns): Likewise.
16175 (print_operand): Use trunc_int_for_mode for sign extension.
16176 * config/sparc/sparc.h (SMALL_INT32): Likewise.
16177 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
16178 chars. Assume CONST_INT is already properly sign-extended.
16179 (movdi split): Sign-extend each SImode part.
16180 (andsi3 split): Don't mask high bits off, so that result
16181 remains properly sign-extend.
16182 (iorsi3 split): Likewise.
16183 (xorsi3 split): Likewise.
16184
16185 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
16186
16187 * fold-const.c (fold): Fix typo in comments.
16188
16189 2002-02-21 Diego Novillo <dnovillo@redhat.com>
16190
16191 * Makefile.in (langhooks.o): Update dependencies.
16192
16193 2002-02-21 Diego Novillo <dnovillo@redhat.com>
16194
16195 * langhooks.c: Include flags.h.
16196
16197 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
16198
16199 * testsuite/gcc.dg/attr-alwaysinline.c: New.
16200
16201 * c-common.c (c_common_post_options): Set inline trees by
16202 default.
16203
16204 * doc/extend.texi (Function Attributes): Document always_inline
16205 attribute.
16206 Update documentation about inlining when not optimizing.
16207
16208 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
16209
16210 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
16211 unless DECL_ALWAYS_INLINE.
16212
16213 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
16214 unless DECL_ALWAYS_INLINE.
16215 (c_disregard_inline_limits): Disregard if always_inline set.
16216
16217 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
16218 Disregard if always_inline set.
16219 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
16220 unless DECL_ALWAYS_INLINE.
16221
16222 * attribs.c (handle_always_inline_attribute): New.
16223 (c_common_attribute_table): Add always_inline.
16224
16225 * config/rs6000/altivec.h: Add prototypes for builtins
16226 requiring the always_inline attribute.
16227
16228 2002-02-21 Eric Christopher <echristo@redhat.com>
16229
16230 * expmed.c (store_bit_field): Try to simplify the subreg
16231 before generating a new one when when the mode size of
16232 value is less than maxmode.
16233
16234 2002-02-21 Richard Henderson <rth@redhat.com>
16235
16236 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
16237 than gen_rtx_PLUS to form the sum.
16238 * explow.c (force_reg): Rearrange to not allocate new pseudo
16239 when force_operand returns a register.
16240 * expr.c (expand_assignment): Allow offset_rtx expansion to
16241 return a sum. Do not force addresses into registers.
16242 (expand_expr): Likewise.
16243 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
16244 to canonicalize arithmetic that didn't simpify.
16245 (simplify_plus_minus): New argument force; update
16246 all callers. Don't split CONST unless we can do something with it,
16247 and wouldn't lose the constness of the operands.
16248
16249 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
16250 that we generated earlier.
16251
16252 2002-02-21 Tom Tromey <tromey@redhat.com>
16253
16254 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16255 (output_line_info): Use constant `1', with a long explanatory
16256 comment.
16257 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
16258
16259 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
16260
16261 * jump.c (redirect_jump): If old label has no UID, don't try to
16262 delete it.
16263
16264 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
16265
16266 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
16267 If input is constant, do shifts at compile time.
16268
16269 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
16270
16271 * doc/extend.texi: Fix some more overfull hboxes.
16272
16273 2002-02-21 Jakub Jelinek <jakub@redhat.com>
16274
16275 PR optimization/4994
16276 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
16277 register moves.
16278
16279 2002-02-21 Jakub Jelinek <jakub@redhat.com>
16280
16281 PR c++/4574
16282 * expr.h (expand_and): Add mode argument.
16283 * expmed.c (expand_and): Add mode argument.
16284 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
16285 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
16286 * except.c (expand_builtin_extract_return_addr): Likewise.
16287 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
16288 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
16289 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
16290 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
16291 * config/c4x/c4x.md: Use GEN_INT (x) instead of
16292 gen_rtx (CONST_INT, VOIDmode, x).
16293
16294 2002-02-21 Jakub Jelinek <jakub@redhat.com>
16295
16296 PR c/4697:
16297 * stmt.c (warn_if_unused_value): Move side effects test once more.
16298
16299 2002-02-20 Torbjorn Granlund <tege@swox.com>
16300
16301 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
16302 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
16303
16304 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
16305
16306 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
16307 SUBREG or ZERO_EXTEND.
16308
16309 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
16310
16311 * sh.h (current_function_anonymous_args): Remove.
16312 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
16313 of current_function_varargs and current_function_stdarg is set.
16314 * sh.c (sh_expand_prologue): Check current_function_varargs /
16315 current_function_stdarg / TARGET_SH5 instead of
16316 current_function_anonymous_args.
16317
16318 * sh64.h (TARGET_VERSION): Define.
16319
16320 2002-02-20 David Edelsohn <edelsohn@gnu.org>
16321
16322 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
16323 VRSAVE_REGNO on TARGET_ALTIVEC.
16324
16325 2002-02-20 Alan Modra <amodra@bigpond.net.au>
16326
16327 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
16328 bits of SImode const_int.
16329 (includes_rshift_p): Likewise.
16330 (print_operand): Call mask_operand and mask64_operand with correct
16331 mode.
16332 (rs6000_output_function_epilogue): Pad traceback table to word.
16333 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
16334 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
16335 mask64_operand with correct mode.
16336 (FUNCTION_ARG_REGNO_P): Correct parentheses.
16337
16338 2002-02-20 Jakub Jelinek <jakub@redhat.com>
16339
16340 PR debug/4461
16341 * varasm.c (get_pool_constant_mark): New.
16342 * rtl.h (get_pool_constant_mark): Add prototype.
16343 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
16344 be represented if it has not been output.
16345
16346 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
16347
16348 * combine.c (do_SUBST): Sanity check substitutions of
16349 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
16350 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
16351 CONST_INT into its operand.
16352 (known_cond): Likewise, for ZERO_EXTEND.
16353 * simplify-rtx.c (simplify_unary_operation): Fix condition to
16354 allow for simplification of wide modes. Reject CONST_INTs in
16355 ZERO_EXTEND when their actual mode is not given.
16356
16357 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
16358
16359 * c-decl.c (pushdecl): If no global declaration is found for an
16360 extern declaration in block scope, try a limbo one.
16361
16362 2002-02-20 Jakub Jelinek <jakub@redhat.com>
16363
16364 PR c++/4401
16365 * c-common.c (pointer_int_sum): Moved from...
16366 * c-typeck.c (pointer_int_sum): ...here.
16367 * c-common.h (pointer_int_sum): Add prototype.
16368
16369 2002-02-20 Jakub Jelinek <jakub@redhat.com>
16370
16371 PR c++/5713
16372 * c-decl.c (duplicate_decls): Return 0 if issued error about
16373 redeclaration.
16374
16375 2002-02-20 Roger Sayle <roger@eyesopen.com>
16376 Jakub Jelinek <jakub@redhat.com>
16377
16378 PR c/4389
16379 * tree.c (host_integerp): Ensure that the constant integer is
16380 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
16381 when pos is zero or non-zero respectively. Clarify comment.
16382 * c-format.c (check_format_info_recurse): Fix host_integerp
16383 usage; the pos argument should be zero when assigning to a
16384 signed HOST_WIDE_INT.
16385
16386 2002-02-20 Richard Henderson <rth@redhat.com>
16387
16388 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
16389 of the operand, rather than assuming TImode.
16390 (ix86_expand_binop_builtin): Cope with commutative patterns
16391 using nonimmediate_operand for both operands.
16392 (ix86_expand_timode_binop_builtin): Likewise.
16393 (ix86_expand_store_builtin): Validate operand 1.
16394 (ix86_expand_unop1_builtin): Likewise.
16395
16396 2002-02-20 Philip Blundell <philb@gnu.org>
16397
16398 PR 5705
16399 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
16400
16401 2002-02-20 Richard Henderson <rth@redhat.com>
16402
16403 PR c/5615
16404 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
16405
16406 2002-02-20 Tom Tromey <tromey@redhat.com>
16407
16408 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16409 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16410 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16411 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16412 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
16413 unconditionally.
16414
16415 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
16416
16417 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
16418 for (const_int 0) in X not just INTVAL.
16419
16420 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
16421
16422 * doc/extend.texi: Avoid or reduce overfull hboxes.
16423
16424 2002-02-20 Diego Novillo <dnovillo@redhat.com>
16425
16426 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
16427 operations if the field does not start at a mode boundary.
16428
16429 2001-02-20 Joel Sherrill <joel@OARcorp.com>
16430
16431 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
16432 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
16433 Also done for -Acpu and -Amachine.
16434
16435 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
16436
16437 * cppinit.c (init_dependency_output): Take deps output file
16438 from -o if none given with -MF. Suppress normal output.
16439 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
16440 * doc/cpp.texi, doc/invoke.texi: Update.
16441
16442 2002-02-19 Zack Weinberg <zack@codesourcery.com>
16443
16444 * toplev.c (output_quoted_string): Write unprintable
16445 characters with octal escapes.
16446
16447 2002-02-19 David Edelsohn <edelsohn@gnu.org>
16448
16449 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
16450 really_call_used[VRSAVE_REGNO] if not Altivec.
16451
16452 2002-02-19 Alan Modra <amodra@bigpond.net.au>
16453
16454 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
16455 MODE_MASK.
16456 (constant_pool_expr_1): Fix formatting.
16457 (rs6000_legitimize_reload_address): Likewise.
16458
16459 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16460
16461 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
16462 now that we have one.
16463
16464 2002-02-19 Zack Weinberg <zack@codesourcery.com>
16465
16466 * tree.h (struct tree_common): Remove aux. Add unused_0 at
16467 end of first block of bitfields (which was only seven bits);
16468 rename dummy to unused_1; remove comment which is no longer true.
16469
16470 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
16471
16472 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
16473
16474 2002-02-19 Philip Blundell <pb@nexus.co.uk>
16475
16476 PR 5399
16477 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
16478 if generating PIC.
16479
16480 PR 5054
16481 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
16482 arm_is_longcall_p rather than inspecting call-type cookie
16483 directly.
16484 (call_value_insn) [TARGET_THUMB]: Likewise.
16485
16486 2002-02-19 Graham Stott <grahams@redhat.com>
16487
16488 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
16489
16490 2002-02-19 David Edelsohn <edelsohn@gnu.org>
16491
16492 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
16493 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
16494 (FP_SAVE_INLINE): Delete.
16495
16496 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
16497 * config/rs6000/eabi.asm: Remove ABI save restore routines.
16498 * config/rs6000/t-ppccomm: Build crtsavres.o.
16499 * config/rs6000/crtsavres.asm: New file.
16500
16501 2002-02-19 Philip Blundell <philb@gnu.org>
16502
16503 * config/arm/arm.c (use_return_insn): Don't reject interrupt
16504 functions.
16505 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
16506 (output_return_instruction): Allow interrupt functions to return with
16507 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
16508 (arm_expand_prologue): Subtract 4 before stacking LR in an
16509 interrupt function.
16510
16511 2002-02-19 Philip Blundell <pb@nexus.co.uk>
16512
16513 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
16514 decl, not just FUNCTION_DECL.
16515 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
16516 (arm_assemble_integer): Likewise.
16517 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
16518 marked local.
16519
16520 2002-02-19 matthew green <mrg@eterna.com.au>
16521
16522 * config.gcc (sparc-*-netbsdelf*): Enable target.
16523 (sparc64-*-netbsd*): New target.
16524 * config/sparc/netbsd-elf.h: New file.
16525 * config/sparc/t-netbsd64: New file.
16526
16527 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
16528
16529 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
16530
16531 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
16532
16533 * doc/invoke.texi: explicitly list the style guidelines that
16534 -Weffc++ checks for.
16535
16536 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
16537
16538 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
16539
16540 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
16541
16542 PR other/5718
16543 * gcc.c (cpp_unique_options): Treat -o as indicating object file
16544 only if not -E. If -E, pass -o through to the preprocessor.
16545
16546 2002-02-19 Kazu Hirata <kazu@hxi.com>
16547
16548 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
16549 register number with an appropriate macro.
16550
16551 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16552
16553 * doc/rtl.texi (Constants): Close @code tag.
16554
16555 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
16556
16557 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
16558 ("mmx_uavgv4hi3"): Same.
16559 ("pmulhrwv4hi3"): Same.
16560
16561 * tree-inline.c (walk_tree): Handle vectors.
16562
16563 * c-common.c (constant_expression_warning): Handle vectors.
16564 (overflow_warning): Same.
16565
16566 * sched-deps.c (sched_analyze_2): Handle vectors.
16567
16568 * rtlanal.c (rtx_unstable_p): Handle vectors.
16569 (rtx_varies_p): Same.
16570 (count_occurrences): Same.
16571 (regs_set_between_p): Same.
16572 (modified_between_p): Same.
16573 (modified_in_p): Same.
16574 (volatile_insn_p): Same.
16575 (volatile_refs_p): Same.
16576 (side_effects_p): Same.
16577 (may_trap_p): Same.
16578 (inequality_comparisons_p): Same.
16579 (replace_regs): Same.
16580 (computed_jump_p_1): Same.
16581
16582 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
16583 argument.
16584 (inner_mode_array): New.
16585 (copy_rtx): Handle vectors.
16586 (copy_most_rtx): Same.
16587 (rtx_equal_p): Same.
16588 (get_mode_alignment): Adjust for vectors.
16589
16590 * resource.c (mark_referenced_resources): Handle vectors.
16591 (mark_set_resources): Same.
16592
16593 * reload1.c (eliminate_regs): Handle vectors.
16594 (elimination_effects): Same.
16595 (scan_paradoxical_subregs): Same.
16596
16597 * reload.c (subst_reg_equivs): Handle vectors.
16598
16599 * regrename.c (scan_rtx): Handle vectors.
16600
16601 * regclass.c (reg_scan_mark_refs): Handle vectors.
16602
16603 * recog.c (find_single_use_1): Handle vectors.
16604
16605 * local-alloc.c (equiv_init_varies_p): Handle vectors.
16606 (contains_replace_regs): Same.
16607 (memref_referenced_p): Same.
16608
16609 * integrate.c (copy_rtx_and_substitute): Handle vectors.
16610 (subst_constants): Same.
16611
16612 * genattrtab.c (attr_copy_rtx): Handle vectors.
16613 (encode_units_mask): Same.
16614 (clear_struct_flag): Same.
16615 (count_sub_rtxs): Same.
16616
16617 * gcse.c (want_to_gcse_p): Handle vectors.
16618 (oprs_unchanged_p): Same.
16619 (hash_expr_1): Same.
16620 (oprs_not_set_p): Same.
16621 (expr_killed_p): Same.
16622 (compute_transp): Same.
16623 (store_ops_ok): Same.
16624
16625 * function.c (purge_addressof_1): Do not allow paradoxical subregs
16626 of vectors.
16627 (fixup_var_refs_1): Same.
16628 (instantiate_virtual_regs_1): Same.
16629
16630 * fold-const.c (operand_equal_p): Handle vectors.
16631 (fold): Same.
16632 (rtl_expr_nonnegative_p): Same.
16633
16634 * flow.c (mark_used_regs): Handle vectors.
16635
16636 * df.c (df_uses_record): Handle vectors.
16637
16638 * cselib.c (cselib_subst_to_values): Handle vectors.
16639 (cselib_mem_conflict_p): Same.
16640 (hash_rtx): Same.
16641
16642 * cse.c (canon_reg): Handle vectors.
16643 (fold_rt): Same.
16644 (cse_process_notes): Same.
16645 (count_reg_usage): Same.
16646 (canon_hash): Same.
16647
16648 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
16649
16650 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
16651
16652 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
16653 (gen_rtx): Handle CONST_VECTOR.
16654 (gen_const_vector_0): New.
16655 (copy_rtx_if_shared): CONST_VECTORs can be shared.
16656 (reset_used_flags): Same.
16657 (copy_insn_1): Same.
16658 (initializer_constant_valid_p): Handle VECTOR_CST.
16659
16660 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
16661
16662 * doc/rtl.texi (Constants): Document const_vector.
16663 (CONST0_RTX): Update for vectors.
16664 (RTL sharing): Same.
16665
16666 * print-tree.c (print_node): Add case for VECTOR_CST.
16667
16668 * tree.h (TREE_VECTOR_CST_ELTS): New.
16669 (struct tree_vector): New.
16670 (union tree_node): Add vector node.
16671 (build_vector): Add prototype.
16672
16673 * tree.def (VECTOR_CST): New.
16674
16675 * tree.c (build_vector): New.
16676
16677 * expmed.c (make_tree): Handle CONST_VECTOR.
16678
16679 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
16680 (CONST_VECTOR_ELT): New.
16681 (CONST_VECTOR_NUNITS): New.
16682
16683 * machmode.h (GET_MODE_INNER): New.
16684 (DEF_MACHMODE): Accept 8th arg.
16685
16686 * machmode.def: Add 8th argument for vector inner mode.
16687 Add inner vector modes for vectors.
16688
16689 * rtl.def (VEC_CONST): Remove.
16690 (CONST_VECTOR): New.
16691
16692 * expr.c (clear_storage): Allow vectors.
16693 (is_zeros_p): Handle VECTOR_CST.
16694
16695 * varasm.c (output_constant_pool): Handle vectors.
16696 (rtx_const): Add veclo and vechi fields.
16697 (kind): Add RTX_VECTOR.
16698 (decode_rtx_const): Add case for vector.
16699
16700 * config/rs6000/rs6000-protos.h: Add zero_constant.
16701
16702 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
16703 constants. Force easy vector constants into memory.
16704 (easy_vector_constant): New.
16705 (emit_easy_vector_constant): New.
16706 (rs6000_legitimize_reload_address): Do not generate bad reloads on
16707 darwin.
16708
16709 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
16710 instruction does.
16711 ("altivec_lvxl"): Same.
16712 (altivec_lvebx): Same.
16713 (altivec_lvehx): Same.
16714 (altivec_lvewx): Same.
16715 ("*movv4si_const0"): New.
16716 ("*movv4sf_const0"): New.
16717 ("*movv8hi_const0"): New.
16718 ("*movv16qi_const0"): New.
16719
16720 2002-02-18 Kazu Hirata <kazu@hxi.com>
16721
16722 * config/h8300/h8300.c (notice_update_cc): Use
16723 cc_status.value2.
16724
16725 2002-02-18 Kazu Hirata <kazu@hxi.com>
16726
16727 * config/h8300/h8300.md (divmod patterns): Change the
16728 constraints for operands[1] to register_operand.
16729
16730 2002-02-18 Kazu Hirata <kazu@hxi.com>
16731
16732 * config/h8300/h8300-protos.h: Remove the prototype for
16733 p_operand.
16734 * config/h8300/h8300.c (p_operand): Remove.
16735 * config/h8300/h8300.md: Replace p_operand with
16736 const_int_operand.
16737
16738 2002-02-18 Philip Blundell <pb@nexus.co.uk>
16739
16740 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
16741 comment.
16742 (output_return_instruction): Allow use of LDR to unstack
16743 return addresss even for interrupt handlers or when
16744 interworking. If compiling for ARMv5, use interworking-safe
16745 return instructions by default. Remove duplicated code and
16746 lengthy "strcat" sequences.
16747
16748 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16749
16750 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
16751 (LINK_EH_SPEC): Define.
16752 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
16753
16754 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
16755
16756 * config/s390/s390.c (s390_emit_prologue): Do not set the
16757 frame_related flag for call-clobbered registers.
16758
16759 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
16760
16761 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
16762 (construct_container): Fix handling of SSE operands.
16763 (ix86_expand_builtin): Fix handling of 64bit pointers.
16764 (mmx_maskmovq_rex): New pattern.
16765
16766 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
16767
16768 * regrename.c (kill_set_value): Handle subregs properly.
16769
16770 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
16771
16772 * objc/objc-act.c (handle_impent): Remove leading '*'
16773 from objc_class_name.
16774
16775 2002-02-17 Richard Henderson <rth@redhat.com>
16776
16777 * config/alpha/alpha.c (some_small_symbolic_operand,
16778 some_small_symbolic_operand_1, split_small_symbolic_operand,
16779 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
16780 Handle small SYMBOL_REFs anywhere, not just inside memories.
16781 * config/alpha/alpha-protos.h: Update.
16782 * config/alpha/alpha.h (PREDICATE_CODES): Update.
16783 * config/alpha/alpha.md (small symbolic operand splitter): Update.
16784
16785 2002-02-17 Roland McGrath <roland@frob.com>
16786
16787 * config.gcc (powerpc-*-gnu-gnualtivec*,
16788 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
16789 * config/rs6000/gnu.h: New file.
16790 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
16791 Grok "gnu" in rs6000_abi_name.
16792 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
16793 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
16794 Grok -mcall-gnu analogous to -mcall-linux et al.
16795 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16796 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
16797 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
16798
16799 2002-02-17 Jakub Jelinek <jakub@redhat.com>
16800
16801 PR c/3444:
16802 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
16803 shortening.
16804
16805 2002-02-17 Philipp Thomas <pthomas@suse.de>
16806
16807 * config/cris/cris.h: Undefine STARTFILE_SPEC and
16808 ENDFILE_SPEC before (re)defining them.
16809
16810 2002-02-17 Kazu Hirata <kazu@hxi.com>
16811
16812 * config/h8300/h8300.c: Fix formatting.
16813 * config/h8300/h8300.h: Likewise.
16814
16815 2002-02-17 Philipp Thomas <pthomas@suse.de>
16816
16817 * doc/tm.texi: Explain why empty strings should not be
16818 marked for translation.
16819
16820 2002-02-17 Philipp Thomas <pthomas@suse.de>
16821
16822 * final.c (output_operand_lossage): Changed to accept
16823 printf style arguments. Change calls where necessary.
16824 * output.h (output_operand_lossage): Change declaration
16825 accordingly. Update copyright.
16826 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
16827 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
16828 Update copyright date where necessary.
16829
16830 * config/i386/i386.c (print_operand): Likewise. Remove use of
16831 sprintf.
16832
16833 * config/cris/cris.c (cris_operand_lossage): Likewise.
16834 Rename parameter so that exgettext recognizes it as
16835 translatable message.
16836 (LOSE_AND_RETURN): Rename parameter to msgid.
16837
16838 2002-02-17 Kazu Hirata <kazu@hxi.com>
16839
16840 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
16841 hard coded register number with an appropriate macro.
16842 (HARD_REGNO_MODE_OK): Likewise.
16843 (ARG_POINTER_REGNUM): Likewise.
16844 (STATIC_CHAIN_REGNUM): Likewise.
16845 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
16846 * config/h8300/h8300.md (define_constants): Define more
16847 register numbers.
16848
16849 2002-02-17 Philipp Thomas <pthomas@suse.de>
16850
16851 * config/i386/i386.h: Don't mark empty strings for translation.
16852
16853 2002-02-16 H.J. Lu <hjl@gnu.org>
16854
16855 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
16856
16857 2002-02-16 Zack Weinberg <zack@codesourcery.com>
16858
16859 * cppinit.c (merge_include_chains): Check for brack being
16860 NULL before attempting to merge it with qtail.
16861
16862 2002-02-16 Andrew Cagney <ac131313@redhat.com>
16863
16864 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
16865 DBX_DEBUG.
16866
16867 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
16868
16869 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
16870
16871 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
16872
16873 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
16874 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
16875 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
16876
16877 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16878
16879 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
16880 now only if !TARGET_FIX.
16881 (*movsi_nt_vms_fix): New pattern.
16882
16883 2002-02-16 Douglas B Rupp <rupp@gnat.com>
16884
16885 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
16886 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
16887 (alpha_sa_mask, alpha_sa_size): Reflect above change.
16888 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
16889 (alpha_start_function, alpha_expand_epilogue): Likewise.
16890 (unicosmk_gen_dsib): Likewise.
16891
16892 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16893
16894 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
16895
16896 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
16897
16898 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
16899 check_and_change_labels, s390_final_chunkify): Delete.
16900 (s390_split_branches, s390_chunkify_pool): New functions.
16901 (s390_function_prologue): Call them.
16902
16903 * config/s390/s390.h (S390_REL_MAX): Delete.
16904 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
16905
16906 * config/s390/s390.md (cjump, icjump, jump): Fix length
16907 attribute calculation.
16908
16909
16910 2002-02-15 David Edelsohn <edelsohn@gnu.org>
16911
16912 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
16913 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
16914
16915 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
16916
16917 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
16918 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
16919 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
16920
16921 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
16922
16923 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
16924
16925 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
16926
16927 * reload.c (find_dummy_reload): Check that an output register
16928 is valid for its mode.
16929
16930 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
16931
16932 * combine.c (known_cond): After replacing the REG of a SUBREG, try
16933 to simplify it.
16934
16935 * function.c (assign_parms): Demote promoted argument passed by
16936 transparent reference.
16937
16938 2001-02-14 Joel Sherrill <joel@OARcorp.com>
16939
16940 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
16941 -Acpu() and -Amachine() to eliminate warnings.
16942
16943 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
16944
16945 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
16946
16947 2002-02-14 Kazu Hirata <kazu@hxi.com>
16948
16949 * config/h8300/h8300-protos.h: Update the prototype for
16950 const_costs.
16951 * config/h8300/h8300.c (const_costs): Treat SET as a little
16952 more expensive operation.
16953 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
16954 reference to const_costs.
16955
16956 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
16957
16958 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
16959
16960 2002-02-14 Jakub Jelinek <jakub@redhat.com>
16961
16962 PR c/5503:
16963 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
16964 use arguments from newtype.
16965
16966 2002-02-13 Eric Christopher <echristo@redhat.com>
16967
16968 * config/mips/mips.c (override_options): Add check for march/mipsX
16969 on the same command line. Fix error message in cpu processing.
16970 Remove architecture and ISA checks.
16971
16972 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
16973
16974 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
16975
16976 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
16977
16978 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
16979
16980 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
16981 alternatives.
16982 ("*movv8hi_internal1"): Same.
16983 ("*movv16qi_internal1"): Same.
16984 ("*movv4sf_internal1"): Same.
16985
16986 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
16987 not push_reload for altivec modes.
16988
16989 2002-02-13 Joel Sherrill <joel@OARcorp.com>
16990
16991 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
16992 all RTEMS targets including removal of #includes from config/*/rtems*.h
16993 file and adding them to tm_file setting. Added xm_defines=POSIX to
16994 many targets.
16995 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
16996 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
16997 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
16998 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
16999 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
17000 config/m68k/rtemself.h: Ditto.
17001 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
17002 config/mips/rtems64.h: Ditto.
17003 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
17004 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
17005 Ditto.
17006 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
17007 config/sparc/rtemself.h: Ditto.
17008 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
17009 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
17010 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
17011 more like arm-elf.
17012 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
17013 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
17014 target made more similar to i386-elf.
17015 * config/i386/t-rtems-i386: Added soft float support and multilibs.
17016 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
17017 be similar to config/m68k/t-m68kelf.
17018 * gthr-rtems.h: Encapsulate with extern "C" for C++.
17019
17020 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
17021
17022 * regmove.c (kill_value): Handle subregs.
17023
17024 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
17025
17026 * i386.md (mul patterns): Allow memory operand to be first;
17027 add expanders where needed; fix constraints.
17028 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
17029 Allow memory operand to be the first.
17030
17031 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
17032 operands.
17033
17034 2002-02-13 Jakub Jelinek <jakub@redhat.com>
17035
17036 PR c/5681:
17037 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
17038 GET_MODE (x).
17039
17040 2002-02-13 Jakub Jelinek <jakub@redhat.com>
17041
17042 PR optimization/5547:
17043 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
17044 all valid IA-32 address modes involving non-scaled %ebx and
17045 GOT/GOTOFF as displacement.
17046
17047 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
17048
17049 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
17050 after emitting ltorg insns.
17051
17052 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
17053 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
17054 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
17055 *abssf2): Fix "op_type" attribute.
17056
17057 2002-02-13 Douglas B Rupp <rupp@gnat.com>
17058
17059 * mkconfig.sh: Avoid using a subshell redirect.
17060 ($output.T): Change to $(output)T.
17061 (ENABLE_NLS): Remove unneeded undef.
17062
17063 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
17064 * config/alpha/x-vms (libsubdir): Define.
17065
17066 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
17067 register frame procedures. Optimize retrieving context.
17068
17069 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
17070 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
17071 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
17072
17073 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17074
17075 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
17076 Make same change as for find_base_value.
17077
17078 2002-02-13 Kazu Hirata <kazu@hxi.com>
17079
17080 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
17081 of QImode and SImode.
17082
17083 2002-02-13 Kazu Hirata <kazu@hxi.com>
17084
17085 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
17086 length computation of movsi.
17087 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
17088
17089 2002-02-13 Kazu Hirata <kazu@hxi.com>
17090
17091 * config/h8300/h8300.md (subqi3): Tighten the predicate for
17092 operands[2] to register_operand.
17093
17094 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
17095
17096 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
17097
17098 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
17099
17100 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
17101 for altivec_lvx* and altivec_stvx*.
17102 ("*movv4si_internal"): Add constraint for loading from GPRs.
17103 ("*movv8hi_internal1"): Same.
17104 ("*movv16qi_internal1"): Same.
17105 ("*movv4sf_internal1"): Same.
17106
17107 * config/rs6000/rs6000.c (altivec_register_operand): New.
17108
17109 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
17110 altivec_register_operand.
17111
17112 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
17113
17114 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
17115 handle SYMBOL_REF.
17116
17117 2002-02-13 Stan Shebs <shebs@apple.com>
17118
17119 * c-typeck.c (digest_init): Handle vectors.
17120 (really_start_incremental_init): Same.
17121 (pop_init_level): Same.
17122 (process_init_element): Same.
17123
17124 * varasm.c (output_constant): Same.
17125
17126 * expr.c (clear_storage): Same.
17127 (store_constructor): Same.
17128
17129 2002-02-12 Eric Christopher <echristo@redhat.com>
17130
17131 * explow.c (hard_function_value): Add comment explaining
17132 signed/unsigned comparison.
17133
17134 2002-02-12 Jakub Jelinek <jakub@redhat.com>
17135
17136 * jump.c (never_reached_warning): Add finish argument.
17137 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
17138 real insn after end.
17139 * rtl.h (never_reached_warning): Adjust prototype.
17140 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
17141 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
17142 never_reached_warning.
17143
17144 2002-02-12 Graham Stott <grahams@redhat.com>
17145
17146 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
17147
17148 2002-02-12 Kazu Hirata <kazu@hxi.com>
17149
17150 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
17151 logical shifts on H8/300.
17152 (shift_alg_si): Improve several shifts on H8/300.
17153 (get_shift_alg): Likewise.
17154
17155 2002-02-12 Graham Stott <grahams@redhat.com>
17156
17157 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
17158
17159 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17160
17161 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
17162 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
17163
17164 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
17165
17166 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
17167 non-CONST_INT through default_assemble_integer.
17168 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
17169 <case 8>: Abort for CONST_DOUBLE.
17170
17171 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
17172
17173 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
17174 is specified.
17175 * config/pa/pa-linux.h (LIB_SPEC): Delete.
17176 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
17177
17178 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
17179
17180 * config/stormy16/stormy16.md (zero_extendqihi2): New.
17181
17182 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
17183
17184 * regrename.c (regrename_optimize): Don't accept a
17185 part-clobbered register if the replaced register is not part
17186 clobbered.
17187
17188 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
17189 take padding into account when computing the argument value.
17190
17191 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
17192
17193 * combine.c (try_combine): Apply substitutions in
17194 CALL_INSN_FUNCTION_USAGE too.
17195
17196 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
17197
17198 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
17199 __builtin_altivec_abs*.
17200 (bdesc_abs): New.
17201
17202 * config/rs6000/rs6000.h (rs6000_builtins): Add
17203 ALTIVEC_BUILTIN_ABS*.
17204
17205 * config/rs6000/altivec.h: Use const char for builtins expecting
17206 literals.
17207 (vec_abs): New versions for C and C++.
17208 (vec_abss): Same.
17209
17210 2002-02-10 Kazu Hirata <kazu@hxi.com>
17211
17212 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
17213 using Pmode.
17214
17215 2002-02-10 Kazu Hirata <kazu@hxi.com>
17216
17217 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
17218 constant definition from h8300.md.
17219 (FRAME_POINTER_REGNUM): Likewise.
17220 * config/h8300/h8300.md (define_constants): Add FP_REG.
17221
17222 2002-02-10 Kazu Hirata <kazu@hxi.com>
17223
17224 * config/h8300/h8300.c (print_operand): Remove redundant code.
17225
17226 2002-02-10 Kazu Hirata <kazu@hxi.com>
17227
17228 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
17229 * config/h8300/h8300.c (byte_reg): Make it static.
17230
17231 2002-02-10 Richard Henderson <rth@redhat.com>
17232
17233 PR c/5623
17234 * c-typeck.c (incomplete_type_error): Handle flexible array members.
17235
17236 2002-02-10 Richard Henderson <rth@redhat.com>
17237
17238 PR c++/5624
17239 * tree.c (append_random_chars): Don't abort if main_input_filename
17240 does not exist.
17241
17242 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
17243
17244 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
17245
17246 2002-02-10 Kazu Hirata <kazu@hxi.com>
17247
17248 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
17249 (pushhi1): Likewise.
17250
17251 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
17252
17253 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
17254 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
17255
17256 2002-02-09 David O'Brien <obrien@FreeBSD.org>
17257
17258 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
17259 remove MASK_VIS.
17260 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
17261
17262 2002-02-09 Kazu Hirata <kazu@hxi.com>
17263
17264 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
17265 a half of an SImode register on H8/300.
17266
17267 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
17268
17269 * i386.md (movdi_2): Add missing '!'.
17270
17271 2002-02-09 Kazu Hirata <kazu@hxi.com>
17272
17273 * config/h8300/h8300.h: Fix formatting. Remove commented-out
17274 definitions.
17275
17276 2002-02-09 Kazu Hirata <kazu@hxi.com>
17277
17278 * config/h8300/h8300.md (length): Correct the distance valid
17279 for the short branch.
17280
17281 2002-02-09 Kazu Hirata <kazu@hxi.com>
17282
17283 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
17284
17285 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
17286
17287 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
17288 registers in SImode.
17289 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
17290 part-clobbered.
17291
17292 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
17293 patch.
17294
17295 Contribute sh64-elf.
17296 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
17297 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
17298 (sh_cannot_modify_jumps_p): New function.
17299 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
17300 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
17301 (sh_ms_bitfield_layout_p): New function.
17302 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
17303 Zack Weinberg <zack@codesourcery.com>
17304 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
17305 expand_simple_binop instead of expand_binop.
17306 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
17307 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
17308 use of .quad and .uaquad.
17309 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
17310 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
17311 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
17312 * config/sh/sh.md (movdi_const, movdi_const_32bit,
17313 movdi_const_16bit): Make sure all CONSTs have modes.
17314 (sym2PIC): Ditto, but by adjusting all callers.
17315 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
17316 if the prologue calls the SHmedia argument decoder or register
17317 saver.
17318 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
17319 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
17320 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
17321 (sh_expand_epilogue): Don't emit USE of return target register.
17322 (prepare_move_operands): Legitimize DImode PIC addresses.
17323 (sh_media_register_for_return): Skip tr0, used to initialize the
17324 PIC register.
17325 (sh_expand_prologue): Remove explicit USE of return register.
17326 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
17327 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
17328 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
17329 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
17330 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
17331 EXTRA_CONSTRAINT_T.
17332 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
17333 (MOVI_SHORI_BASE_OPERAND_P): New.
17334 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
17335 (EXTRA_CONSTRAINT_T): Define in terms of them.
17336 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
17337 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
17338 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
17339 alternatives supporting TARGET_REGS.
17340 (UNSPEC_GOTPLT): New constant.
17341 (movdi split): Move incrementing of LABEL_NUSES...
17342 (movdi_const, movdi_const_32bit): Here. Use
17343 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
17344 (movdi_const_16bit): New.
17345 (call, call_value) [flag_pic]: Use GOTPLT.
17346 (call_pop, call_value_pop): New expands.
17347 (call_pop_compact, call_pop_rettramp): New insns.
17348 (call_value_pop_compact, call_value_pop_rettramp): New insns.
17349 (sibcall) [flag_pic]: Use GOT.
17350 (builtint_setjmp_receiver): Remove bogus, unused expand.
17351 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
17352 (*pt, *ptb, ptrel): New insns.
17353 (sym2GOT): Handle DImode GOT.
17354 (sym2GOTPLT, symGOTPLT2reg): New expands.
17355 (sym2PIC): New expand.
17356 (shcompact_return_tramp): Use GOTPLT to return trampoline.
17357 (shcompact_return_tramp_i): Use return register explicitly.
17358 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
17359 disable flag_reorder_blocks.
17360 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
17361 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
17362 clobbers, for clarity.
17363 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
17364 restoring of r0 in macl as MAYBE_DEAD.
17365 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
17366 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
17367 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
17368 alter_subreg all over.
17369 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
17370 reload, instead of emitting instructions that would require
17371 reloading.
17372 (casesi_load_media): Add missing modes.
17373 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
17374 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
17375 as used if the argument decoder is called.
17376 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
17377 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
17378 Pmode, then extend it to DImode if necessary.
17379 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
17380 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
17381 constants in FPU-enabled SHmedia, let them be loaded from memory.
17382 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
17383 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
17384 Adjust whitespace in assembly output templates.
17385 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
17386 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
17387 mode of if_then_else.
17388 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
17389 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
17390 sh.h.
17391 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
17392 Joern Rennecke <amylaar@redhat.com>
17393 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
17394 (SUBTARGET_CPP_PTR_SPEC): New.
17395 (SUBTARGET_CPP_SPEC): Remove.
17396 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
17397 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17398 Fix typo in previous checkin.
17399 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
17400 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
17401 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
17402 Alexandre Oliva <aoliva@redhat.com>
17403 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
17404 what single FP register can hold for SHmedia target.
17405 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
17406 Alexandre Oliva <aoliva@redhat.com>
17407 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17408 Do not split into SUBREG.
17409 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
17410 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
17411 and added new functions as specified in SH5 ABI r9.
17412 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
17413 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
17414 8-byte boundary.
17415 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
17416 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
17417 gen_consttable_4 and gen_consttable_8. Emit multiple labels
17418 and consttable_window_ends.
17419 2001-06-03 Graham Stott <grahams@redhat,com>
17420 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
17421 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
17422 * config/sh/sh.c (print_operand): Handle floating-point pair,
17423 vector and matrix registers.
17424 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
17425 vector modes into account.
17426 * config/sh/sh.md (movv2sf): Split move between registers into
17427 movdf.
17428 (movv4sf, movv16sf): Introduce insns that get split only after
17429 reload.
17430 * config/sh/shmedia.h: Fix Copyright dates.
17431 * config/sh/ushmedia.h: Likewise. Move loop counter
17432 declarations into conditionals that uses them.
17433 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
17434 loop boundary.
17435 * config/sh/sshmedia.h: Fix Copyright dates.
17436 (sh_media_PUTCFG): Fix constraints.
17437 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
17438 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
17439 ptrmemfunc_vbit_in_delta for SH5.
17440 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
17441 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
17442 * invoke.texi: Likewise.
17443 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
17444 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
17445 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
17446 GCC_pop_shmedia_regs_nofpu): New global symbols.
17447 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
17448 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
17449 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
17450 compact function with nonlocal labels.
17451 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
17452 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
17453 (initial_elimination_offset): Account for their stack space.
17454 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
17455 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
17456 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
17457 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
17458 least one of the operands to be a register.
17459 (movv2sf): Likewise. Renamed to movv2sf_i.
17460 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
17461 prepare_move_operands() before emitting SHmedia insns.
17462 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
17463 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
17464 Don't save nor initialize r12. Don't mis-align the stack.
17465 Pad the code with a nop.
17466 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
17467 stack.
17468 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
17469 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
17470 [__SHMEDIA__]: Implement.
17471 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
17472 * config/sh/sh.md: Set latency of `pt' closer to reality.
17473 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
17474 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
17475 Set move, load and store type attributes.
17476 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
17477 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
17478 profiling.
17479 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
17480 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
17481 * config/sh/sh.c (sh_media_register_for_return): New function.
17482 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
17483 branch-target register.
17484 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
17485 * config/sh/sh.md (return_media_i): Use any call-clobbered
17486 branch-target register.
17487 (return_media): If r18 wasn't copied in the prologue, copy it
17488 here.
17489 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
17490 Clear class FP0_REGS.
17491 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
17492 from elf.h.
17493 2001-03-08 DJ Delorie <dj@redhat.com>
17494 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
17495 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
17496 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
17497 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
17498 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
17499 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
17500 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
17501 return value correctly for call_cookie.
17502 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
17503 * config/sh/crt1.asm (start): Modified so as to call
17504 ___setup_argv_and_call_main.
17505 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
17506 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
17507 SHmedia mode.
17508 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
17509 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
17510 (STRIP_NAME_ENCODING): Use it.
17511 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
17512 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
17513 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
17514 prepare_scc_operands().
17515 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
17516 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
17517 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
17518 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
17519 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
17520 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
17521 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
17522 used in shcompact_incoming_args.
17523 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
17524 change.
17525 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
17526 mode.
17527 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
17528 Adjust accordingly.
17529 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
17530 Simplify. Adjust. Add sanity check.
17531 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
17532 FPU_SINGLE_BIT.
17533 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
17534 TARGET_SHCOMPACT.
17535 (udivsi3, divsi3): Use them.
17536 (force_mode_for_call): New insn.
17537 (call, call_value, sibcall_value): Emit it before SHcompact
17538 calls.
17539 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
17540 * config/sh/sh.md (call, call_value, sibcall): Make sure the
17541 call cookie is non-NULL before taking its value.
17542 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
17543 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
17544 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
17545 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
17546 block.
17547 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
17548 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
17549 temporary for stack adjusts. Use MACL and MACH to pass
17550 arguments to shcompact_incoming_args.
17551 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
17552 clobber r1.
17553 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
17554 (nested_trampoline): Load static chain address into r1.
17555 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
17556 2001-01-07 Alexandre Oliva <aoliva@redhat.com
17557 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
17558 fp_arith_reg_operand().
17559 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
17560 * config/sh/sh.md (casesi): Sign-extend the first two operands,
17561 and use signed compares for them.
17562 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
17563 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
17564 ones properly aligned.
17565 (find_barrier): Account for extra alignment needed for 8-byte wide
17566 constants.
17567 (machine_dependent_reorg): Require a label for the second 4-byte
17568 constant after an 8-byte one.
17569 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
17570 change.
17571 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
17572 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
17573 last_float when switching float modes.
17574 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
17575 auto-increment for general-purpose registers.
17576 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
17577 result.
17578 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
17579 for stack adjust.
17580 * config/sh/sh.c (sh_builtin_saveregs): Support using all
17581 registers for varargs.
17582 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
17583 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
17584 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
17585 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
17586 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
17587 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
17588 call_cookie accordingly.
17589 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
17590 (SHCOMPACT_BYREF): Likewise.
17591 (SHCOMPACT_FORCE_ON_STACK): New macro.
17592 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
17593 (sh_builtin_saveregs): Likewise.
17594 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17595 shcompact_incoming_args): Use new shift values. Support
17596 sequences of consecutive and non-consecutive pushes/pops.
17597 * config/sh/sh.md (return): Don't explicitly use PR_REG.
17598 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
17599 * config/sh/sh.h (TEXT_SECTION): Define.
17600 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
17601 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
17602 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
17603 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
17604 return values on FPU-enabled SHmedia.
17605 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
17606 FPU-enabled SHmedia.
17607 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
17608 value is returned in a non-FP reg and is not returned by
17609 reference.
17610 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
17611 jump_ind.
17612 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
17613 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
17614 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
17615 quad-aligned to be passed by callee-copy reference.
17616 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
17617 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
17618 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
17619 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
17620 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
17621 copying low-numbered FP regs to r7 and r8.
17622 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
17623 FP regs to general-purpose regs only if the copy was passed on the
17624 stack.
17625 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
17626 copying FP reg to r9.
17627 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
17628 copy FP regs to general-purpose regs only in outgoing calls.
17629 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
17630 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
17631 HOST_WIDE_INT.
17632 * config/sh/sh.h (struct sh_args): Document all fields.
17633 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
17634 passed partially on the stack should not consider making
17635 sibcalls.
17636 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
17637 stack_regs only for incoming calls. When passing FP args,
17638 make sure there are FP regs available before modifying
17639 call_cookie.
17640 (SHCOMPACT_BYREF): Pass double args in general-purpose
17641 registers by reference.
17642 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
17643 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
17644 attempt to generate sibcalls if the caller got any arguments
17645 by reference.
17646 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
17647 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
17648 to 8-byte boundaries.
17649 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
17650 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
17651 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
17652 stored in the stack.
17653 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
17654 for the offsets to have the ISA bit set.
17655 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
17656 invocation. Use beq instead of bgt to mark end of sequence of
17657 loads.
17658 (shcompact_incoming_args): Fix store of r2. Use beq instead of
17659 bgt to mark end of sequence of stores.
17660 * config/sh/sh.c (arith_operand): Don't check whether
17661 CONST_OK_FOR_J for now.
17662 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
17663 instead of long for conversion.
17664 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
17665 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
17666 before passing it to fprintf.
17667 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
17668 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
17669 Call set_fpscr before reading/writing SR.
17670 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
17671 Call set_fpscr.
17672 * config/sh/lib1funcs.asm: Add `.align 2' directives before
17673 SHmedia code.
17674 (FMOVD_WORKS): Define on SH5 with FPU.
17675 (set_fpscr): Define on SH5. Remove separate _fpscr_values
17676 setting.
17677 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
17678 _fpscr_values.
17679 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
17680 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
17681 address.
17682 (ia_main_table): Ditto.
17683 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
17684 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
17685 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
17686 the definitions from sh.h.
17687 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
17688 TARGET_SH5.
17689 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
17690 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
17691 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17692 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
17693 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
17694 Increment LABEL_NUSES.
17695
17696 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
17697 TARGET_SH5.
17698 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
17699 defined.
17700 * config/sh/elf.h (SIZE_TYPE): Likewise.
17701 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17702 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17703 shcompact_incoming_args): Load switch table addresses using
17704 datalabel.
17705 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17706 (NO_BUILTIN_SIZE_TYPE): Define.
17707 (SIZE_TYPE): Don't define.
17708 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17709 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
17710 definition of __SH5__=32 for -m5-compact-nofpu.
17711 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
17712 ADDR_DIFF_VEC.
17713 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
17714 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
17715 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
17716 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
17717 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
17718 (INSN_LENGTH_ALIGNMENT): Likewise.
17719 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
17720 * config/sh/sh.md (call, call_value, sibcall): Simplify
17721 copying of non-branch-target register.
17722 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
17723 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
17724 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
17725 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
17726 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
17727 floating-point values as structs.
17728 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
17729 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
17730 general-purpose register.
17731 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
17732 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
17733 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
17734 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
17735 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
17736 (ENCODE_SECTION_INFO): Enclose variables and constants in
17737 DATALABEL unspecs.
17738 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
17739 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
17740 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
17741 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
17742 only for LABEL_REFs. For SYMBOL_REFs, prepend
17743 SH_DATALABEL_ENCODING to the symbol name.
17744 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
17745 convert_mode().
17746 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
17747 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
17748 UNSPEC_DATALABEL.
17749 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
17750 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
17751 (DATALABEL_REF_P): Don't require CONST.
17752 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
17753 REL label.
17754 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
17755 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
17756 right.
17757 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
17758 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
17759 Use shallow_copy_rtx and PUT_MODE to change the mode of
17760 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
17761 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
17762 on SHmedia using GENERAL_REGs.
17763 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17764 bltu_media_i): Fix reversion of conditions.
17765 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
17766 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
17767 * config/sh/sh.c (output_far_jump): Save r13 in macl.
17768 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
17769 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
17770 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
17771 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
17772 (GCC_nested_trampoline): Likewise.
17773 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
17774 * config/sh/sh.c (gen_datalabel_ref): Define.
17775 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
17776 (INITIALIZE_TRAMPOLINE): Likewise.
17777 (TRAMPOLINE_ADJUST_ADDRESS): Define.
17778 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
17779 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
17780 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
17781 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
17782 (ic_invalidate): Adjust for SH5.
17783 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
17784 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
17785 _nested_trampoline.
17786 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
17787 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
17788 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
17789 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
17790 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
17791 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
17792 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
17793 * config/sh/sh.c (target_reg_operand): Match only target-branch
17794 registers and pseudos that aren't virtual registers.
17795 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17796 Copy operands that don't match target_reg_operand to pseudos.
17797 (call_media, call_value_media, sibcall_media): Use
17798 target_reg_operand instead of target_operand.
17799 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
17800 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
17801 * config/sh/sh.c (target_reg_operand): Match hardware registers
17802 other than branch-target registers.
17803 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
17804 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
17805 (fpscr_values) [SH5 == 32]: Define.
17806 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
17807 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17808 Handle function addresses coming in SUBREGs.
17809 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
17810 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17811 shcompact_return_trampoline): Use datalabel where appropriate.
17812 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
17813 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
17814 general-purpose register to copy one branch-target register to
17815 another.
17816 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
17817 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
17818 SYMBOL_REFs with VOIDmode.
17819 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17820 bltu_media_i): New insns.
17821 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
17822 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
17823 (INIT_CUMULATIVE_ARGS): Likewise.
17824 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
17825 * machmode.def (V16SFmode): New mode.
17826 * c-common.c (type_for_mode): Support V2SF and V16SF.
17827 * tree.c (build_common_tree_nodes_2): Likewise.
17828 * tree.h (tree_index): Likewise.
17829 * calls.c (emit_call_1): Take args_so_far. Adjust all
17830 callers. Introduce CALL_POPS_ARGS.
17831 * tm.texi (CALL_POPS_ARGS): Document.
17832 * config/sh/crt1.asm: Implement in SHmedia mode.
17833 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
17834 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
17835 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
17836 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
17837 Implement divsi and udivsi in SHmedia mode. Introduce
17838 SHcompact trampolines.
17839 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
17840 only in SHmedia64.
17841 (regno_reg_class): Rewrite.
17842 (fp_reg_names): Remove.
17843 (sh_register_names, sh_additional_register_names): New.
17844 (print_operand): Added `u'. Support SUBREGs in addresses.
17845 Add parentheses around shifted CONSTs.
17846 (output_file_start): Output .mode and .abi directives.
17847 (shiftcosts, addsubcosts, multcosts): Adjust.
17848 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
17849 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
17850 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
17851 bytes, not registers. Take into account the need for the
17852 SHcompact incoming args trampoline. Adjust all callers.
17853 (sh_expand_prologue): Take stack_regs into account. Call
17854 incoming args trampoline. Keep stack aligned as per SH5 ABI.
17855 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
17856 stack aligned as per SH5 ABI.
17857 (sh_builtin_saveregs): Support SH5 ABI.
17858 (sh_build_va_list, sh_va_start): Likewise.
17859 (initial_elimination_offset): Take alignment into account.
17860 Compute location of PR according to the SH5 stack frame.
17861 (arith_reg_operand): Reject branch-target registers.
17862 (shmedia_6bit_operand): New.
17863 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
17864 (target_reg_operand): Match DImode only. Accept SUBREGs.
17865 (target_operand): New.
17866 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
17867 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
17868 SIBCALL_REGS for SHmedia.
17869 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
17870 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
17871 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
17872 (TARGET_SWITCHES): New SH5 flags.
17873 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
17874 VALID_REGISTER_P to disable unsupported registers.
17875 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
17876 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
17877 (FUNCTION_ARG_PADDING): Define.
17878 (FASTEST_ALIGNMENT): Adjust.
17879 (SH_REGISTER_NAMES_INITIALIZER): New.
17880 (sh_register_names): Declare.
17881 (DEBUG_REGISTER_NAMES): Define.
17882 (REGISTER_NAMES): Define based on sh_register_names.
17883 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
17884 (sh_additional_register_names): Declare.
17885 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
17886 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
17887 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
17888 (REGISTER_NATURAL_MODE): Define.
17889 (FIRST_PSEUDO_REGISTER): Adjust.
17890 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
17891 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
17892 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
17893 (VECTOR_MODE_SUPPORTED_P): Define.
17894 (REG_CLASS_CONTENTS): Adjust.
17895 (SMALL_REGISTER_CLASSES): Adjust.
17896 (REG_ALLOC_ORDER): Adjust.
17897 (INDEX_REG_CLASS): Adjust.
17898 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
17899 (CONST_OK_FOR_LETTER_P): Adjust.
17900 (PREFERRED_RELOAD_CLASS): Adjust.
17901 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
17902 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
17903 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
17904 (FIRST_FP_PARM_REG): Adjust.
17905 (CALL_POPS_ARGS): Define.
17906 (FUNCTION_ARG_REGNO_P): Adjust.
17907 (struct sh_args): New fields.
17908 (GET_SH_ARG_CLASS): Adjust.
17909 (INIT_CUMULATIVE_ARGS): Adjust.
17910 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
17911 (FUNCTION_ARG_ADVANCE): Adjust.
17912 (FUNCTION_ARG): Adjust.
17913 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
17914 (FUNCTION_ARG_CALLEE_COPIES): Define.
17915 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
17916 (STRICT_ARGUMENT_NAMING): Define.
17917 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
17918 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
17919 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
17920 (SETUP_INCOMING_VARARGS): Adjust.
17921 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
17922 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
17923 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
17924 (SUBREG_OK_FOR_INDEX_P): Adjust.
17925 (EXTRA_CONSTRAINT_S): Update.
17926 (EXTRA_CONSTRAINT_T): New.
17927 (EXTRA_CONSTRAINT): Adjust.
17928 (GO_IF_LEGITIMATE_INDEX): Adjust.
17929 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
17930 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
17931 (MOVE_MAX): Adjust.
17932 (MAX_MOVE_MAX): Define.
17933 (Pmode): Adjust.
17934 (CONST_COSTS): Adjust.
17935 (REGISTER_MOVE_COST): Adjust.
17936 (BRANCH_COST): Adjust.
17937 (TEXT_SECTION_ASM_OP): Adjust.
17938 (DBX_REGISTER_NUMBER): Adjust.
17939 (ASM_OUTPUT_DOUBLE_INT): New.
17940 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
17941 (PREDICATE_CODES): Adjust.
17942 (PROMOTE_MODE): Adjust.
17943 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
17944 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
17945 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
17946 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
17947 (DR0_REG, DR2_REG, DR4_REG): Renumber.
17948 (TR0_REG, TR1_REG, TR2_REG): New.
17949 (XD0_REG): Renumber.
17950 (UNSPEC_COMPACT_ARGS): New.
17951 (type): Added pt and ptabs.
17952 (length): Default to 4 on SHmedia. Default pt length to 12
17953 and 20 on SHmedia32 and SHmedia64, respectively.
17954 (pt): New function unit.
17955 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
17956 Add whitespace between operands of SHmedia instructions.
17957 (movdicc): Fix.
17958 (adddi3_media, addsi3_media): Adjust constraints.
17959 (subsi3) [SHmedia]: Force operand 1 into a register.
17960 (udivsi3_i1_media, udivsi3_i4_media): New.
17961 (udivsi3): Support SHmedia.
17962 (divsi3_i1_media, divsi3_i4_media): New.
17963 (divsi3): Support SHmedia.
17964 (anddi3, iordi3, xordi3): Adjust constraints.
17965 (zero_extendhidi2, zero_extendqidi2): New.
17966 (extendsidi2, extendhidi2, extendqidi2): New.
17967 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
17968 (pop_e, pop_fpul, pop_4): Likewise.
17969 (movsi_media): Support FP and BT registers.
17970 (movsi_media_nofpu): New. Adjust splits to DImode.
17971 (lduw, ldub): Renamed to zero_extend* above.
17972 (movqi_media): Fix typo.
17973 (movdi_media): Support FP and BT registers.
17974 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
17975 (movdi_const_32bit): New.
17976 (shori_media): Require immediate operand. Use `u' for output.
17977 (movdf_media, movsf_media): Simplified.
17978 (movdf_media_nofpu, movsf_media_nofpu): New.
17979 (movdf, movsf): Adjust
17980 (movv2sf, movv2sf, movv16sf): New.
17981 (beq_media, beq_media_i): Adjust constraints. Don't use
17982 scratch BT register.
17983 (bne_media, bne_media_i): Likewise.
17984 (bgt_media, bgt_media_i): Likewise.
17985 (bge_media, bge_media_i): Likewise.
17986 (bgtu_media, bgtu_media_i): Likewise.
17987 (bgeu_media, bgeu_media_i): Likewise.
17988 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
17989 bunordered): Emit jump insn. Force operands to registers when
17990 needed.
17991 (jump_media, jump): Simplify.
17992 (call_compact, call_compact_rettramp): New.
17993 (call_value_compact, call_value_compact_rettramp): New.
17994 (call_media, call_value_media): Simplify.
17995 (sibcall_compact, sibcall_media): New.
17996 (call, call_value): Adjust for SHmedia and SHcompact.
17997 (sibcall, sibcall_value, untyped_call): Likewise.
17998 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
17999 (indirect_jump): Adjust for SHmedia.
18000 (casesi_jump_media): New.
18001 (nop): Re-enable for SHmedia.
18002 (call_site): Restrict to SH1.
18003 (casesi): Adjust for SHmedia.
18004 (casesi_shift_media, casesi_load_media): New.
18005 (return): Explicitly use PR register. Call return trampoline
18006 on SHcompact.
18007 (return_i): Explicitly use PR register.
18008 (shcompact_return_tramp, shcompact_return_tramp_i): New.
18009 (return_media): Adjust.
18010 (shcompact_incoming_args): New.
18011 (epilogue): Adjust.
18012 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
18013 (movstrsi): Disable on SH5.
18014 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
18015 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
18016 (subsf3, subsf3_media): Likewise.
18017 (mulsf3, mulsf3_media, mac_media): Likewise.
18018 (divsf3, divsf3_media): Likewise.
18019 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
18020 (floatsisf2, fux_truncsfsi2): Likewise.
18021 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
18022 constraints.
18023 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
18024 (cmpunsf_media, cmpsf): Likewise.
18025 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
18026 (abssf2, abssf2_media): Likewise.
18027 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
18028 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
18029 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
18030 (floatsidf2, fix_truncdfsi2): Likewise.
18031 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
18032 constraints.
18033 (cmpeqdf_media, cmpgtdf_media): Likewise.
18034 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
18035 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
18036 (absdf2, absdf2_media): Likewise.
18037 (extendsfdf2, extendsfdf2_media): Likewise.
18038 (truncsfdf2, truncsfdf2_media): Likewise.
18039 * config/sh/sh64.h: New file.
18040 * config/sh/t-sh64: New file.
18041 * config/sh/shmedia.h: New file.
18042 * config/sh/ushmedia.h: New file.
18043 * config/sh/sshmedia.h: New file.
18044 * configure.in: Added sh64-*-elf.
18045 * configure: Rebuilt.
18046 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
18047 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
18048 (reg_class_from_letter): Use `b' for TARGET_REGS.
18049 (print_operand): Support `%M', `%m', `AND' and
18050 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
18051 (andcosts): Adjust for SHmedia.
18052 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
18053 Likewise.
18054 (target_reg_operand): New function.
18055 * config/sh/sh-protos.h (target_reg_operand): Declare.
18056 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
18057 FP registers on SH5.
18058 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
18059 on SH4.
18060 (TARGET_REGISTER_P): New macro.
18061 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
18062 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
18063 (EXTRA_CONSTRAINT_S): New macro.
18064 (EXTRA_CONSTRAINT): Adjust.
18065 (FLOAT_TYPE_SIZE): Define to 32.
18066 (Pmode): DImode on SHmedia.
18067 (CONST_COSTS): Adjust for SHmedia literals.
18068 (PREDICATE_CODES): Added target_reg_operand.
18069 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
18070 * config/sh/sh.md: Remove all attrs from SHmedia insns.
18071 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
18072 (cmpdi): Accept SHmedia.
18073 (movdicc_false, movdicc_true): New insns.
18074 (movdicc): New expand.
18075 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
18076 no_new_pseudos.
18077 (addsi3_media): Match `S' constraint.
18078 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
18079 (negdi2): Expand for SHmedia.
18080 (one_cmpldi2): New expand.
18081 (zero_extendsidi2): Change from expand to insn.
18082 (extendsidi2): Add constraints.
18083 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
18084 LD/ST address. Fix SI immediate loading split.
18085 (movhi_media, movqi_media, lduw, ldub): New insns.
18086 (movhi, movqi): Accept SHmedia.
18087 (shori_media, movdi_media): Relax input constraints. Split
18088 symbolic constants.
18089 (movdf_media, movsf_media): New insn. New split to movdi.
18090 (movdf, movsf): Match on SHmedia.
18091 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
18092 bgeu_media): New insns and splits. New insns with `_i' suffix.
18093 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
18094 (bunordered): New expand.
18095 (jump_compact): Renamed from `jump'.
18096 (jump_media): New insn.
18097 (jump): New expand.
18098 (call_media, call_value_media): New insns.
18099 (call, call_value): Adjust.
18100 (indirect_jump_compact): Renamed from `indirect_jump'.
18101 (indirect_jump_media): New insn.
18102 (indirect_jump): New expand.
18103 (untyped_call, return): Accept SHmedia.
18104 (return_media): New insn.
18105 (prologue, epilogue, blockage): Accept SHmedia.
18106 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
18107 (sunordered): New expand.
18108 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
18109 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
18110 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
18111 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
18112 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
18113 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
18114 abssf2_media): New insns.
18115 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
18116 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
18117 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
18118 floatdidf2, floatsidf2_media, fix_truncdfdi2,
18119 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
18120 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
18121 absdf2_media): New insns.
18122 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
18123 (extendsfdf2_media, truncdfsf2_media): New insns.
18124 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
18125 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
18126 * config/sh/sh.h (CONST_OK_FOR_J): Document.
18127 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
18128 * config/sh/sh.md (adddi3): New expand.
18129 (adddi3_media, adddi3z_media): New insns.
18130 (adddi3_compact): Renamed from adddi3.
18131 (addsi3_media): Use add.l r63 to add constant zero.
18132 (subdi3): New expand.
18133 (subdi3_media): New insn.
18134 (subdi3_compact): Renamed from subdi3.
18135 (mulsidi3): New expand.
18136 (mulsidi3_media): New insn.
18137 (mulsidi3_compact): Renamed from mulsidi3.
18138 (umulsidi3): New expand.
18139 (umulsidi3_media): New insn.
18140 (umulsidi3_compact): Renamed from umulsidi3.
18141 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
18142 (ashlsi3, ashrsi3, lshrsi3): Use them.
18143 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
18144 (ashldi3, ashrdi3, lshrdi3): Use them.
18145 (zero_extendsidi2): New expand.
18146 (extendsidi2): New insn.
18147 (movsi_media): New insn. Split to movdi to load constants.
18148 (movsi): Enable for shmedia.
18149 (movdi_media): New insn. Use shori_media to load wide constants.
18150 (short_media): New insn.
18151 (movdi): Enable for shmedia.
18152 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
18153 * config/sh/sh.h (CPP_SPEC): Added `m5'.
18154 (SUBTARGET_CPP_SPEC): Added `!m5'.
18155 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
18156 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
18157 to all other SH variants.
18158 (TARGET_DEFAULT): Set to SH1_BIT.
18159 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
18160 (BITS_PER_WORD): Raise to 64 on shmedia.
18161 (MAX_BITS_PER_WORD): Change to 64.
18162 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
18163 (INT_TYPE_SIZE): Keep as 32.
18164 (UNITS_PER_WORD): Raise to 8 on shmedia.
18165 (MIN_UNITS_PER_WORD): Keep as 4.
18166 (POINTER_SIZE): Raise to 64 on shmedia.
18167 (CONST_OK_FOR_J): New macro.
18168 (CONST_OK_FOR_LETTER_P): Use it.
18169 (processor_type): Add PROCESSOR_SH5.
18170 * config/sh/sh.md: Conditionalize all expands, insns and
18171 splits to TARGET_SH1.
18172 (cpu): Added sh5.
18173 (addsi3_compact): Renamed from...
18174 (addsi3): Now an expand.
18175 (addsi3_media, subsi3_media): New insns.
18176 (subsi3): Don't negate constants with SHmedia.
18177
18178 * hooks.c: New file.
18179 * hooks.h: New file.
18180 * Makefile.in (HOOKS_H): New.
18181 (TARGET_DEF_H): Added $(HOOKS_H).
18182 (OBJS): Added hooks.o.
18183 (cfgcleanup.o, bb-reorder.o): Added target.h.
18184 (hooks.o): Added dependencies.
18185 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
18186 (TARGET_INITIALIZER): this.
18187 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
18188 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
18189 * bb-reorder.c: Include target.h.
18190 (reorder_basic_blocks): Skip if cannot modify jumps.
18191 * cfgcleanup.c: Include target.h.
18192 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
18193
18194 2002-02-08 Chris Demetriou <cgd@broadcom.com>
18195
18196 * config/mips/mips.md (casesi_internal, casesi_internal_di):
18197 Protect jump delay slot instructions with .set noreorder and
18198 .set nomacro.
18199
18200 2002-02-08 Chris Demetriou <cgd@broadcom.com>
18201
18202 * config/mips/mips.md (casesi_internal_di): Calculate
18203 the index into the target offset table correctly.
18204
18205 2002-02-08 Richard Henderson <rth@redhat.com>
18206
18207 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
18208 * final.c (output_addr_const): Accept and discard SUBREG.
18209 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
18210 mark them unknown instead.
18211 (simplify_subtraction): Handle RTX_UNKNOWN.
18212 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
18213
18214 2002-02-08 David Edelsohn <edelsohn@gnu.org>
18215
18216 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
18217
18218 2002-02-08 Richard Henderson <rth@redhat.com>
18219
18220 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
18221
18222 2002-02-08 Andreas Jaeger <aj@suse.de>
18223
18224 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
18225 * config/i386/t-linux64: New file.
18226
18227 2002-02-08 Jakub Jelinek <jakub@redhat.com>
18228
18229 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
18230 * c-parse.in (compstmt): Clear last_expr_type.
18231
18232 2002-02-07 Richard Henderson <rth@redhat.com>
18233
18234 * loop.c (strength_reduce): Sink final_value when not
18235 eliminating a biv.
18236
18237 2002-02-07 David O'Brien <obrien@FreeBSD.org>
18238
18239 * config/sparc/freebsd.h: Fix mismatched spec {.
18240
18241 2002-02-07 Richard Henderson <rth@redhat.com>
18242
18243 * cfgrtl.c: Include recog.h and insn-config.h.
18244 (keep_with_call_p): Fix general_operand invocation.
18245 * Makefile.in (cfgrtl.o): Update dependencies.
18246
18247 2002-02-07 Kazu Hirata <kazu@hxi.com>
18248
18249 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
18250 comment. Accept HImode only if TARGET_H8300.
18251
18252 2002-02-07 Eric Christopher <echristo@redhat.com>
18253
18254 * config/mips/crtn.asm: Cleanup #ifdefs.
18255
18256 2002-02-07 Eric Christopher <echristo@redhat.com>
18257
18258 * config/mips/crti.asm: Add changes for mips16. mips16 uses
18259 register 7 as RA instead of $31.
18260 * config/mips/crtn.asm: Ditto.
18261 * config/mips/mips.c (mips_move_2words): Add case for
18262 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
18263 (compute_frame_size): Fix typo.
18264 (save_restore_insns): Ditto. Make documentation about using
18265 register $7 as return register more precise.
18266 (mips_expand_epilogue): Fix comment. Add code to work around not
18267 being able to add to the stack pointer directly.
18268 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
18269 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
18270 epilogue.
18271
18272 2002-02-07 Tom Rix <trix@redhat.com>
18273
18274 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
18275 immediates in ldu and stdu DS opcode field.
18276 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
18277 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
18278 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
18279
18280 2002-02-07 Jeff Sturm <jsturm@one-point.com>
18281
18282 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
18283 offset for stack bias.
18284
18285 2002-02-07 H.J. Lu <hjl@gnu.org>
18286
18287 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
18288
18289 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
18290
18291 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
18292
18293 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
18294
18295 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
18296 * i386.c (x86_order_regs_for_local_alloc): New global function.
18297 * i386.h (REG_ALLOC_ORDER): CLeanup.
18298 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
18299
18300 2002-02-07 Richard Henderson <rth@redhat.com>
18301
18302 PR optimization/2463
18303 * alias.c (find_base_value): Recall base values for fixed hard regs.
18304 * loop.c (loop_regs_update): Don't use single_set on non-insns.
18305
18306 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
18307
18308 * config/mips/mips.md (define_delay) [mips16]: Adjust required
18309 length.
18310
18311 2002-02-06 Richard Henderson <rth@redhat.com>
18312
18313 PR c/5609
18314 * stmt.c (resolve_operand_name_1): Take more care with mixed
18315 named and unnamed operands.
18316
18317 2002-02-06 Janis Johnson <janis187@us.ibm.com>
18318 Jan Hubicka <jh@suse.cz>
18319
18320 * loop.c (remove_constant_addition): Avoid clobbering a shared
18321 CONST expression.
18322
18323 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
18324
18325 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
18326 * config/s390/t-linux64: New file.
18327 * config/s390/libgcc-glibc.ver: New file.
18328
18329 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
18330
18331 * config/s390/linux64.h: Delete file.
18332 * config/s390/s390x.h: New file.
18333 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
18334 as target header file.
18335 * config/s390/linux.h (TARGET_VERSION): Define depending on
18336 DEFAULT_TARGET_64BIT.
18337 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
18338 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
18339 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
18340 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
18341 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
18342 (EXTRA_SPEC): New define.
18343 * config/s390/s390.h (TARGET_VERSION): Define depending on
18344 DEFAULT_TARGET_64BIT.
18345 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
18346
18347 2002-02-06 Jason Merrill <jason@redhat.com>
18348
18349 * c-decl.c (finish_function): Warn about a non-void function with
18350 no return statement and no abnormal exit.
18351 (current_function_returns_abnormally): New variable.
18352 (start_function): Clear it.
18353 (struct c_language_function): Add returns_abnormally.
18354 (push_c_function_context): Save it.
18355 (pop_c_function_context): Restore it.
18356 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
18357 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
18358 an explicit return type.
18359 * c-tree.h: Declare current_function_returns_abnormally.
18360 (C_FUNCTION_IMPLICIT_INT): New macro.
18361 * c-typeck.c (build_function_call): Set it.
18362 (c_expand_return): Set current_function_returns_value even if the
18363 value is erroneous.
18364
18365 2002-02-06 Jakub Jelinek <jakub@redhat.com>
18366
18367 PR c/5420:
18368 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
18369 unsafe for reevaluation.
18370
18371 2002-02-06 Jakub Jelinek <jakub@redhat.com>
18372
18373 PR c/5482:
18374 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
18375 EXPR_STMT, but COMPOUND_STMT, recurse into it.
18376
18377 2002-02-06 Richard Henderson <rth@redhat.com>
18378
18379 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
18380 be a general_operand. Dest for function value must be a pseudo.
18381
18382 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
18383
18384 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
18385 as SYMBOL_REFs from the constant pool.
18386
18387 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
18388
18389 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
18390 passed by invisible reference.
18391
18392 2002-02-05 Richard Henderson <rth@redhat.com>
18393
18394 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
18395
18396 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
18397
18398 Implement using "base addresses" in insn operands as default.
18399 * config/mmix/mmix.c (mmix_conditional_register_usage): if
18400 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
18401 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
18402 used to read the rtx value.
18403 (mmix_target_asm_function_epilogue): Fix spacing.
18404 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
18405 (mmix_legitimate_address): Ditto.
18406 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
18407 should be loaded with a GETA insn. Don't allocate needless extra
18408 char for nul termination and fix misleading comment.
18409 (mmix_print_operand_address): Handle constants if
18410 TARGET_BASE_ADDRESSES.
18411 (mmix_output_register_setting): Use base addressing if
18412 TARGET_BASE_ADDRESSES and the number of insns is 3.
18413 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
18414 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
18415 to use R as constraint, add LDA to match s.
18416 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
18417 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
18418 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
18419 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
18420 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
18421 order with other fixed registers.
18422 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
18423 other parameter/call-clobbered registers.
18424 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
18425 -mbase-addresses, -mno-base-addresses.
18426 (MMIX Options): Ditto.
18427
18428 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
18429
18430 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
18431
18432 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
18433
18434 * config/rs6000/altivec.h: Change elem to _S_elem.
18435
18436 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
18437
18438 * config/netbsd.h (WCHAR_TYPE): Define.
18439 (WCHAR_TYPE_SIZE): Ditto.
18440 (WINT_TYPE): Ditto.
18441 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
18442 (WCHAR_UNSIGNED): Ditto.
18443 (WCHAR_TYPE_SIZE): Ditto.
18444 (WINT_TYPE): Ditto.
18445 * config/arm/netbsd.h: Likewise.
18446 * config/i386/netbsd-elf.h: Likewise.
18447 * config/i386/netbsd.h: Likewise.
18448 * config/m68k/netbsd-elf.h: Likewise.
18449 * config/m68k/netbsd.h: Likewise.
18450 * config/ns32k/netbsd.h: Likewise.
18451 * config/sparc/netbsd.h: Likewise.
18452 * config/vax/netbsd.: Likewise.
18453
18454 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
18455
18456 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
18457 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
18458 (TARGET_INITIALIZER): this.
18459 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
18460 (BITFIELD_NBYTES_LIMITED): Markup fix.
18461 * tree.h (default_ms_bitfield_layout_p): Declare.
18462 (record_layout_info): Added prev_field.
18463 * tree.c (default_ms_bitfield_layout_p): New fn.
18464 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
18465 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
18466 * stor-layout.c: Include target.h.
18467 (start_record_layout): Initialize prev_field.
18468 (place_field): Handle MS bit-field layout, and disregard
18469 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
18470 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
18471 * Makefile.in (stor-layout.o): Adjust dependencies.
18472
18473 2002-02-05 Jason Merrill <jason@redhat.com>
18474
18475 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
18476
18477 2002-02-05 Andreas Jaeger <aj@suse.de>
18478
18479 * crtstuff.c: Fix comments.
18480
18481 2002-02-05 Richard Henderson <rth@redhat.com>
18482
18483 PR fortran/3393
18484 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
18485 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
18486
18487 PR fortran/3392
18488 * config/mips/mips.c (function_arg): Handle TImode.
18489 (function_arg_advance): Likewise.
18490
18491 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
18492
18493 * config/rs6000/altivec.h (vec_step_help): Rename to
18494 __vec_step_help.
18495
18496 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
18497
18498 * config/rs6000/altivec.h: Fix typos.
18499
18500 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
18501
18502 * config/arm/netbsd.h: Correct a comment.
18503
18504 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
18505
18506 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
18507 building void typed builtins.
18508
18509 * config/rs6000/altivec.h (vec_ld*): Fix typos.
18510 (vec_step): Implement for C++.
18511
18512 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18513
18514 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
18515
18516 2002-02-04 Richard Henderson <rth@redhat.com>
18517
18518 * combine.c (nonzero_bits): Re-introduce special case for
18519 sp/fp/ap wrt REGNO_POINTER_ALIGN.
18520
18521 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
18522
18523 * doc/extend.texi: Warn about unsupported usage of altivec
18524 builtins.
18525
18526 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
18527 (altivec_predicate_*): New.
18528
18529 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
18530 Add C++ version of vec_*() functions.
18531
18532 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
18533 (bdesc_2arg): Remove altivec predicates.
18534 (altivec_expand_builtin): Handle predicates.
18535 (altivec_init_builtins): Handle predicates.
18536 (altivec_expand_predicate_builtin): New.
18537
18538 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18539
18540 * pa.c (DO_FRAME_NOTES): Move forward.
18541 (store_reg): Revise handling of frame notes.
18542 (load_reg): Likewise.
18543 (set_reg_plus_d): Likewise.
18544 (hppa_expand_prologue): Likewise.
18545 (hppa_expand_epilogue): Likewise.
18546
18547 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18548
18549 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
18550
18551 2002-02-04 Jakub Jelinek <jakub@redhat.com>
18552
18553 PR c/4475, c++/3780:
18554 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
18555 * c-common.h (SWITCH_TYPE): Define.
18556 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
18557 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
18558 Rename spareness variable to sparseness.
18559 (expand_end_case_type): Renamed from expand_end_case, use orig_type
18560 if non-NULL instead of TREE_TYPE (orig_index).
18561 * tree.h (expand_end_case_type): Renamed from expand_end_case.
18562 (expand_end_case): Define using expand_end_case_type.
18563 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
18564 to expand_end_case_type.
18565 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
18566
18567 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18568
18569 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
18570 (BIGGEST_ALIGNMENT): Change to 128.
18571
18572 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18573
18574 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
18575
18576 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18577
18578 * pa.md (call_internal_reg_64bit): Remove unused variable.
18579
18580 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
18581
18582 * config/arm/arm.h (machine_function): Add uses_anonymous_args
18583 field.
18584 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
18585 * config/arm/arm.c (current_function_anonymous_args): Delete,
18586 replace uses with cfun->machine->uses_anonymous_args.
18587 (arm_reorg): Do not reset uses_anonymous_args.
18588
18589 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
18590 any geenral register.
18591
18592 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
18593
18594 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
18595 the entry block.
18596
18597 2002-02-04 Richard Henderson <rth@redhat.com>
18598
18599 * combine.c (force_to_mode): Remove STACK_BIAS code.
18600 (nonzero_bits): Likewise. Replace sp/fp special case with
18601 REGNO_POINTER_ALIGN.
18602
18603 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
18604 (HARD_FRAME_POINTER_REGNUM): New.
18605 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
18606 (FIXED_REGS, CALL_USED_REGS): Update.
18607 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
18608 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
18609 (HARD_REGNO_NREGS): Update for SFP.
18610 (STACK_POINTER_OFFSET): Include bias here ...
18611 (FIRST_PARM_OFFSET): ... not here.
18612 (STACK_BIAS): Remove.
18613 (INIT_EXPANDERS): New.
18614 (STARTING_FRAME_OFFSET): Do not include bias.
18615 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
18616 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
18617 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
18618 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
18619 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
18620 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
18621 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
18622 (MUST_SAVE_REGISTER): Likewise.
18623 (sparc_flat_function_prologue): Likewise.
18624 (sparc_flat_function_epilogue): Likewise.
18625 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
18626 (sparc_init_modes): SFP is GENERAL_REGS.
18627 (sparc_builtin_saveregs): SFP does not have bias applied.
18628
18629 2002-02-04 Richard Henderson <rth@redhat.com>
18630
18631 * config/alpha/alpha.c (current_function_is_thunk): Don't check
18632 current_function_is_thunk.
18633 (alpha_sa_mask): Distinguish between current_function_is_thunk
18634 called from ASM_OUTPUT_MI_THUNK and not.
18635 (alpha_does_function_need_gp): Thunks always need gp.
18636 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
18637 (alpha_output_mi_thunk_osf): New.
18638 * config/alpha/alpha-protos.h: Update.
18639 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
18640
18641 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
18642
18643 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
18644 function types, not when they're taken away.
18645
18646 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
18647
18648 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
18649 CODE_LABEL and jump table when replacing a table jump with a
18650 simple jump.
18651
18652 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
18653
18654 * config/s390/s390-protos.h (legitimize_la_operand,
18655 s390_secondary_input_reload_class, s390_plus_operand,
18656 s390_expand_plus_operand): Add prototypes.
18657
18658 config/s390/s390.c (s390_secondary_input_reload_class,
18659 s390_plus_operand, s390_expand_plus_operand): New functions.
18660
18661 (struct s390_address): New member 'pointer'.
18662 (s390_decompose_address): Compute it.
18663 (legitimate_la_operand_p): Use it.
18664 (legitimize_la_operand): New function.
18665 (movti, movdi, movdf splitters): Call it.
18666
18667 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
18668 (PREDICATE_CODES): Add s390_plus_operand.
18669
18670 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
18671 (la_ccclobber): Allow GENERAL_REGS as output operand.
18672
18673 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
18674 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
18675 (*la_64, *la_31, reload_indi, reload_insi): ... these.
18676
18677 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
18678
18679 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
18680 register names for regular asm () construct.
18681
18682 2002-02-04 Jakub Jelinek <jakub@redhat.com>
18683
18684 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
18685 registers.
18686
18687 2002-02-04 Jakub Jelinek <jakub@redhat.com>
18688
18689 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
18690 pat for recog.
18691
18692 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
18693
18694 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
18695 constant pool to be identical by string address and index.
18696
18697 2002-02-04 Anthony Green <green@redhat.com>
18698
18699 * output.h (SECTION_OVERRIDE): Define.
18700 * varasm.c (named_section): Obey SECTION_OVERRIDE.
18701
18702 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
18703
18704 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
18705 by existing arm*-*-netbsd* (a.out) target.
18706 (ns32k-*-netbsdelf*): Likewise.
18707 (sparc-*-netbsdelf*): Likewise.
18708 (vax-*-netbsdelf*): Likewise.
18709
18710 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
18711
18712 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
18713 headers and libobjc headers.
18714
18715 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
18716
18717 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
18718 (_mingw.h): Remove duplicate include.
18719
18720 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
18721
18722 * config.gcc: Set cpu_type to m68k for 68010, as well.
18723 (m68010-*-netbsdelf*): New...
18724 (m68k*-*-netbsdelf*): ...targets.
18725 * config/m68k/netbsd-elf.h: New file.
18726
18727 2002-02-02 Kazu Hirata <kazu@hxi.com>
18728
18729 * config/h8300/h8300.c (hand_list): Move inside function_arg.
18730
18731 2002-02-02 Kazu Hirata <kazu@hxi.com>
18732
18733 * config/h8300/h8300.c (h8_push_ops): Move inside
18734 h8300_init_once.
18735 (h8_pop_ops): Likewise.
18736 (h8_move_ops): Likewise.
18737
18738 2002-02-02 Kazu Hirata <kazu@hxi.com>
18739
18740 * config/h8300/h8300.c (os_task): Make it static.
18741 (monitor): Likewise.
18742 (pragma_saveall): Likewise.
18743
18744 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
18745
18746 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
18747 constant is a valid sign-extension for Pmode.
18748
18749 2002-02-02 Kazu Hirata <kazu@hxi.com>
18750
18751 * config/h8300/h8300.c: Fix formatting.
18752
18753 2002-02-02 Kazu Hirata <kazu@hxi.com>
18754
18755 * config/h8300/h8300.md: Fix formatting.
18756
18757 2002-02-02 Kazu Hirata <kazu@hxi.com>
18758
18759 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
18760 predicates of operands[1]. Split the patterns for each
18761 processor variant.
18762
18763 2002-02-02 Kazu Hirata <kazu@hxi.com>
18764
18765 * config/h8300/h8300.md (xor patterns): Tighten the predicates
18766 of operands[1] to register_operand.
18767
18768 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
18769
18770 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
18771 * cpphash.c (_cpp_init_hashtable): Similarly.
18772 * cppinit.c (cpp_create_reader): Default the signed_char flag.
18773 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
18774 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
18775 (cpp_handle_option): Handle the new options.
18776 * cpplex.c (cpp_interpret_charconst): Use new flag.
18777 * cpplib.h (struct cpp_options): New member signed_char.
18778 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
18779 (cpp_options): Handle -fsigned-char and -funsigned-char.
18780 (static_specs): Remove signed_char_spec.
18781 (do_spec1): Don't handle %c.
18782 * system.h: Poison SIGNED_CHAR_SPEC.
18783 * tradcif.y (yylex): Use flag_signed_char.
18784 * tradcpp.h (flag_signed_char): New.
18785 * tradcpp.c (flag_signed_char): New.
18786 (main): Handle new command-line options.
18787 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
18788 config:
18789 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
18790 * avr/avr.h: Remove old comments.
18791 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
18792 (CC1_SPEC): Pass -fsigned-char if -mic*.
18793 (SIGNED_CHAR_SPEC): Remove.
18794 doc:
18795 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
18796
18797 2002-02-01 Eric Christopher <echristo@redhat.com>
18798
18799 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
18800 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
18801 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
18802 (ASM_OUTPUT_REG_POP): Ditto.
18803
18804 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
18805
18806 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
18807 patch.
18808
18809 2002-02-02 Jakub Jelinek <jakub@redhat.com>
18810
18811 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
18812
18813 2002-02-02 Jakub Jelinek <jakub@redhat.com>
18814
18815 PR c/5304:
18816 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
18817 unconditionally.
18818
18819 2002-02-01 Janis Johnson <janis187@us.ibm.com>
18820
18821 * cfganal.c: Include tm_p.h.
18822 (keep_with_call_p): Fix the test that determines if a register holds
18823 the return value of a call.
18824
18825 2002-02-01 DJ Delorie <dj@redhat.com>
18826
18827 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
18828 we are given conflicting registers, switch to the other one we
18829 had allocated for us.
18830 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
18831 as TImode so we know when the "other" register is available.
18832
18833 2002-02-01 David O'Brien <obrien@FreeBSD.org>
18834
18835 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
18836 sparc/sparc_bi.h.
18837
18838 2002-02-01 Janis Johnson <janis187@us.ibm.com>
18839
18840 * cfganal.c (keep_with_call_p): New function.
18841 (flow_call_edges_add): Prevent splitting a block between a call and
18842 a single-set instruction that should be kept in the same block.
18843
18844 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
18845
18846 * doc/install.texi (avr): Update outdated URL.
18847
18848 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
18849
18850 * config/stormy16/stormy16.md (pushqi): New.
18851 (popqi): New.
18852 (pushhi): New.
18853 (pophi): New.
18854 (movhi): Remove stack operands.
18855 (movqi): Likewise.
18856 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
18857 nonimmediate_nonstack_operand.
18858 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
18859 New.
18860 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
18861 New.
18862
18863 2002-01-31 Jason Merrill <jason@redhat.com>
18864
18865 * Makefile.in (c-parse.c): Handle .output file.
18866 * objc/Make-lang.in (objc-parse.c): Likewise.
18867
18868 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
18869
18870 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
18871 the -me[lb] option is given. Don't output the default flag
18872 twice.
18873
18874 2002-01-31 Zack Weinberg <zack@codesourcery.com>
18875
18876 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
18877 the primary source file; this has not been done yet.
18878 * c-decl.c (c_expand_body): Reset input_filename from
18879 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
18880
18881 2002-01-31 Kazu Hirata <kazu@hxi.com>
18882
18883 * rtlanal.c (subreg_regno_offset): Do not use
18884 SUBREG_REGNO_OFFSET.
18885 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
18886 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
18887
18888 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
18889
18890 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
18891 version rather than GNATS version in --version output.
18892
18893 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
18894
18895 * ifcvt.c (noce_process_if_block): Make a copy of the destination
18896 when copying back from a temporary.
18897
18898 2002-01-30 Richard Henderson <rth@redhat.com>
18899
18900 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
18901 and new_dest are the same.
18902
18903 2002-01-30 Richard Henderson <rth@redhat.com>
18904
18905 PR opt/5076
18906 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
18907 * rtl.c (note_insn_name): Update.
18908 * emit-rtl.c (remove_unnecessary_notes): Kill it.
18909 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
18910 to perform loop rotation.
18911 (expand_exit_loop_top_cond): New.
18912 * tree.h (expand_exit_loop_top_cond): Declare it.
18913 * c-semantics.c (genrtl_while_stmt): Use it.
18914 (genrtl_for_stmt): Likewise.
18915
18916 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
18917
18918 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
18919 arguments to 64-bit boundaries on 64-bit ABIs.
18920
18921 2002-01-30 Steve Ellcey <sje@cup.hp.com>
18922
18923 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
18924
18925 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
18926
18927 * c-decl.c (grokdeclarator): Handle type being a typedef for an
18928 invalid type.
18929
18930 2002-01-30 David O'Brien <obrien@FreeBSD.org>
18931
18932 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
18933 * config/sparc/sparc_bi.h: Remove file.
18934 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
18935
18936 2002-01-30 Richard Henderson <rth@redhat.com>
18937
18938 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
18939
18940 2002-01-30 Zack Weinberg <zack@codesourcery.com>
18941
18942 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
18943
18944 2002-01-30 Jason Merrill <jason@redhat.com>
18945
18946 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
18947 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
18948 (reg_save): Use DW_CFA_offset_extended_sf instead.
18949
18950 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
18951
18952 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18953
18954 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
18955 in cselib_lookup.
18956
18957 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
18958
18959 * rs6000.md ("*call_value_local32"): Remove constraints.
18960 ("*call_value_local64"): Same.
18961 ("*call_value_indirect_nonlocal_aix32"): Same.
18962 ("*call_value_nonlocal_aix32"): Same.
18963 ("*call_value_indirect_nonlocal_aix64"): Same.
18964 ("*call_value_nonlocal_aix64"): Same.
18965 ("*call_value_nonlocal_sysv"): Same.
18966
18967 2002-01-29 Richard Henderson <rth@redhat.com>
18968
18969 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
18970
18971 2002-01-29 Richard Henderson <rth@redhat.com>
18972
18973 * expr.c (force_operand): Ignore flag_pic for detecting pic
18974 address loads.
18975 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
18976 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
18977 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
18978 instead of open-coded loop.
18979 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
18980 be fixed when in use.
18981
18982 2002-01-29 Richard Henderson <rth@redhat.com>
18983
18984 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
18985 * sched-rgn.c (propagate_deps): Update them.
18986 * sched-deps.c (sched_analyze_insn): Update them. Flush the
18987 clobbers list when either gets too long.
18988
18989 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18990
18991 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
18992 and INDEX_REGS the same as GENERAL_REGS.
18993 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18994
18995 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
18996
18997 * tree.c (build_nonstandard_integer_type): Correct prototype.
18998
18999 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
19000
19001 * config/s390/s390.md (movstrsico, movstrdix_64,
19002 movstrsix_31): Remove, replace by ...
19003 (movstrdi_short, movstrsi_short, movstrdi_long,
19004 movstrsi_long): ... these. New.
19005 (movstrdi, movstrsi): Adapt.
19006
19007 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
19008 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
19009 Remove unnecessary CC clobber.
19010 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
19011 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
19012
19013 (divmoddi4): Don't partially initialize TImode register.
19014
19015 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
19016
19017 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
19018
19019 2002-01-29 Richard Henderson <rth@redhat.com>
19020
19021 * flow.c (print_rtl_and_abort): Remove.
19022 (print_rtl_and_abort_fcn): Remove.
19023 (verify_local_live_at_start): Use dump_bb instead.
19024 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
19025 (verify_wide_reg_1): Return 2 on mode test failure.
19026
19027 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
19028
19029 PR c/3325, c/3326, c/2511, c/3347
19030 * c-decl.c (enum_decl_context): Remove BITFIELD.
19031 (grokdeclarator): Take bitfield width as an input.
19032 Ensure bitfields are given the correct type. Perform
19033 bitfield width validation with build_bitfield_integer_type
19034 rather than waiting for finish_struct.
19035 (grok_typename, grok_typename_in_parm_context, start_decl,
19036 push_parmdecl, grokfield, start_function): Update calls to
19037 grokdeclarator.
19038 (build_bitfield_integer_type): New function.
19039 (finish_struct): Move bitfield validation to grokdeclarator
19040 and build_bitfield_integer_type.
19041 * tree.c (build_nonstandard_integer_type): New function.
19042 * tree.h (build_nonstandard_integer_type): New prototype.
19043 objc:
19044 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
19045
19046 2002-01-29 Jakub Jelinek <jakub@redhat.com>
19047
19048 PR other/1502:
19049 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
19050 don't ignore unrecognized -W* options.
19051 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
19052 * cpplib.h (cpp_handle_option): Adjust prototype.
19053 * c-decl.c (c_decode_options): Pass 0 as last argument to
19054 cpp_handle_option.
19055
19056 PR c/2896:
19057 * gcc.c (cpp_unique_options): Split from cpp_options.
19058 (cpp_options): Source cpp_unique_options.
19059 (default_compilers): Use cpp_unique_options instead of cpp_options
19060 when used together with cc1_options.
19061 (static_specs): Add cpp_unique_options.
19062 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
19063 when used together with cc1_options.
19064
19065 2002-01-29 Kazu Hirata <kazu@hxi.com>
19066
19067 * config/h8300/h8300-protos.h: Update the prototype of
19068 output_a_shift.
19069 * config/h8300/h8300.c (output_a_shift): Remove an unused
19070 argument 'insn'. Remove redundant code.
19071 * config/h8300/h8300.md: Adust to the new prototype of
19072 output_a_shift.
19073
19074 2002-01-29 Kazu Hirata <kazu@hxi.com>
19075
19076 * config/h8300/h8300-protos.h: Update the prototypes of
19077 emit_a_rotate and expand_a_rotate.
19078 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
19079 first argument to 'enum rtx_code'.
19080 (expand_a_rotate): Likewise.
19081
19082 2002-01-28 Kazu Hirata <kazu@hxi.com>
19083
19084 * config/h8300/h8300-protos.h: Update the prototype of
19085 output_simode_bld.
19086 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
19087 'log2'.
19088 * config/h8300/h8300.md: Adjust to the new prototype.
19089
19090 2002-01-28 Kazu Hirata <kazu@hxi.com>
19091
19092 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
19093 redundant code.
19094
19095 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
19096
19097 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
19098 is a fixed register before returning pic_offset_table_rtx.
19099 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
19100 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
19101
19102 2002-01-28 Jason Merrill <jason@redhat.com>
19103
19104 * dwarf2.h: Sync with src version.
19105
19106 2002-01-28 Paul Koning <pkoning@equallogic.com>
19107
19108 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
19109 BT_FN_VOID_PTR_VAR.
19110 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
19111 * doc/extend.texi (__builtin_prefetch): Update documentation:
19112 first argument is now const void ptr.
19113
19114 2002-01-28 Kazu Hirata <kazu@hxi.com>
19115
19116 * config/h8300/h8300-protos.h: Remove an unused prototype.
19117
19118 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
19119
19120 * toplev.c (lang_independent_init): Round up identifier size.
19121
19122 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
19123
19124 * config.gcc: Revert previous change.
19125
19126 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
19127
19128 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
19129
19130 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
19131
19132 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
19133 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
19134 other non-elf netbsd config frags.
19135 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
19136 collect2 will does that.
19137 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
19138 shared-lib frobbing will work.
19139
19140 2002-01-28 Kazu Hirata <kazu@hxi.com>
19141
19142 * config/h8300/h8300.h: Fix formatting.
19143 * config/h8300/h8300.md: Likewise.
19144
19145 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
19146
19147 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
19148 the old, removed AAA_standards fix.
19149 * fixinc/fixincl.x: Rebuilt.
19150
19151 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
19152
19153 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
19154 atexit call in crtbegin, hooked in after call to frame_dummy;
19155 register EH before registering __fini__start.
19156
19157 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
19158
19159 * config/rs6000/altivec.h: Remove spurious semicolons.
19160
19161 2002-01-27 Kazu Hirata <kazu@hxi.com>
19162
19163 * config/h8300/h8300.md: Replace dead bit extraction patterns
19164 with ones that work.
19165
19166 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19167
19168 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
19169 if not STRICT_ALIGNMENT.
19170 * rtl.h (MEM_ALIGN): Likewise.
19171
19172 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
19173
19174 * doc/invoke.texi (-fdump-translation-unit): Revert this
19175 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
19176
19177 2002-01-27 Kazu Hirata <kazu@hxi.com>
19178
19179 * config/h8300/h8300.md (define_constants): New.
19180 (anonymous patterns) Use defined constants appropriately.
19181
19182 2002-01-27 Kazu Hirata <kazu@hxi.com>
19183
19184 * config/h8300/h8300.c (function_arg): Remove redundant code.
19185
19186 2002-01-26 Richard Henderson <rth@redhat.com>
19187
19188 * sched-deps.c (reg_pending_uses_head): New.
19189 (reg_pending_barrier): Rename from reg_pending_sets_all.
19190 (find_insn_list): Don't mark inline.
19191 (find_insn_mem_list): Remove.
19192 (add_dependence_list, add_dependence_list_and_free): New.
19193 (flush_pending_lists): Replace only_write param with separate
19194 for_read and for_write parameters. Update all callers. Use
19195 add_dependence_list_and_free.
19196 (sched_analyze_1): Do not add reg dependencies here; just set
19197 the pending bits. Use add_dependence_list.
19198 (sched_analyze_2): Likewise.
19199 (sched_analyze_insn): Replace schedule_barrier_found with
19200 reg_pending_barrier. Add all dependencies for pending reg
19201 uses, sets, and clobbers.
19202 (sched_analyze): Don't add reg dependencies for calls, just
19203 set pending bits. Use regs_invalidated_by_call. Treat
19204 sched_before_next_call as a normal list, not a fake insn.
19205 (init_deps): No funny init for sched_before_next_call.
19206 (free_deps): Free pending mems lists. Don't zero reg_last.
19207 (init_deps_global): Init reg_pending_uses.
19208 (finish_deps_global): Free it.
19209 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
19210 (find_insn_mem_list): Remove.
19211 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
19212 (propagate_deps): Use them. Zero temp mem lists.
19213
19214 2002-01-26 Richard Henderson <rth@redhat.com>
19215
19216 * Makefile.in (CRTSTUFF_CFLAGS): New.
19217 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
19218 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
19219 crtstuff.c instead of alpha assembly version.
19220 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
19221 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
19222 not FORCE_{INIT,FINI}_SECTION_ALIGN.
19223 (__do_global_dtors_aux): Mark used.
19224 (frame_dummy, __do_global_ctors_aux): Mark used.
19225 (fini_dummy, init_dummy): Remove.
19226
19227 * config/alpha/crtbegin.asm: Remove file.
19228 * config/alpha/crtend.asm: Remove file.
19229 * config/alpha/t-crtbe: Remove file.
19230 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
19231 (LINK_EH_SPEC): New.
19232
19233 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
19234 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
19235 calling constructors.
19236 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
19237
19238 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
19239 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
19240 CRT_END_INIT_DUMMY hack.
19241 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
19242 FORCE_{INIT,FINI}_SECTION_ALIGN.
19243
19244 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
19245 FORCE_{INIT,FINI}_SECTION_ALIGN.
19246
19247 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
19248 invocation sequence.
19249 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
19250
19251 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
19252 (FORCE_CODE_SECTION_ALIGN): New.
19253
19254 2002-01-26 Richard Henderson <rth@redhat.com>
19255
19256 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
19257
19258 2002-01-26 Richard Henderson <rth@redhat.com>
19259
19260 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
19261 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
19262
19263 2002-01-26 Kazu Hirata <kazu@hxi.com>
19264
19265 * config/h8300/h8300.md: Remove bit extraction patterns that
19266 cannot be triggered.
19267 Restrict each bit extraction pattern to a variant on which the
19268 pattern is tested.
19269
19270 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
19271
19272 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
19273
19274 2002-01-26 Kazu Hirata <kazu@hxi.com>
19275
19276 * config/h8300/h8300.md: Remove bit test patterns that cannot
19277 be triggered.
19278 Restrict each bit test pattern to a variant on which the
19279 pattern is tested.
19280
19281 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19282
19283 * builtins.c (expand_builtin_strncat): Remove redundant check for
19284 INTEGER_CST.
19285
19286 2002-01-25 David O'Brien <obrien@FreeBSD.org>
19287
19288 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
19289 default setting.
19290 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
19291 existing setting.
19292
19293 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
19294
19295 * dbxout.c (dbxout_init): Use assemble_name rather than just
19296 stripping off the first character.
19297 (dbxout_source_file): Likewise.
19298
19299 2002-01-25 DJ Delorie <dj@redhat.com>
19300
19301 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
19302 using rtx_equal_p, not by comparing pointers.
19303
19304 2002-01-25 Steve Ellcey <sje@cup.hp.com>
19305
19306 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
19307 for PIC_OFFSET_TABLE_REGNUM.
19308 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
19309
19310 2002-01-25 David O'Brien <obrien@FreeBSD.org>
19311
19312 * config.gcc (x86_64-*-freebsd*): New target.
19313 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
19314 value.
19315 (i[34567]86-*-freebsd*): Don't include svr4.h.
19316 * config/i386/freebsd64.h: New file.
19317
19318 2002-01-25 Douglas B Rupp <rupp@gnat.com>
19319
19320 * config/alpha/x-vms (version): Make static.
19321
19322 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
19323 in previous checkin.
19324
19325 * Makefile.in (install-headers-cp): New target.
19326 * config.gcc (alpha-dec-*vms*): Install headers with
19327 install-headers-cp
19328
19329 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
19330
19331 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
19332 avoid it's copies.
19333
19334 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19335
19336 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
19337 of compare_tree_int.
19338 (expand_builtin_strncat): Likewise.
19339 * c-decl.c (finish_struct): Use tree_low_cst.
19340 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
19341 * tree.c (compare_tree_int): Likewise.
19342
19343 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
19344
19345 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
19346 adjustments even if they are implemented by more than two insns.
19347
19348 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
19349
19350 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
19351 * df.h (struct ref): Kill B.
19352 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
19353
19354 * basic-block.h (PROP_EQUAL_NOTES): New flag.
19355 * flow.c (propagate_one_insn): Use it.
19356 (mark_used_regs): Handle NIL.
19357
19358 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
19359
19360 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
19361 to help folding.
19362
19363 2002-01-25 David Edelsohn <edelsohn@gnu.org>
19364
19365 * rs6000.md (prefetch): Make address V4SI mode so that the address
19366 is restricted to legitimate form for instruction.
19367
19368 2002-01-25 Bob Wilson <bob.wilson@acm.org>
19369
19370 * doc/install.texi (xtensa-*-elf): New target.
19371 (xtensa-*-linux*): New target.
19372 * doc/contrib.texi: Add myself.
19373
19374 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
19375
19376 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
19377 purpose register to hold an SImode (or smaller) value.
19378
19379 2002-01-25 Jakub Jelinek <jakub@redhat.com>
19380
19381 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
19382 registry only.
19383 * crtstuff.c: Likewise.
19384
19385 2002-01-25 Kazu Hirata <kazu@hxi.com>
19386
19387 * config/h8300/h8300.md (negation patterns): Tighten
19388 predicates to register_operand.
19389
19390 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
19391
19392 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
19393 mode, not Pmode.
19394
19395 * builtins.c (expand_builtin_prefetch): Same.
19396
19397 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19398
19399 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
19400 modes.
19401
19402 2002-01-24 Kazu Hirata <kazu@hxi.com>
19403
19404 * config/h8300/h8300.c (print_operand): Remove support for
19405 operand character 'A'.
19406 * config/h8300/h8300.md (three anonymous patterns): Replace
19407 operand character 'A' with either 'T' or 'S'.
19408
19409 2002-01-24 Kazu Hirata <kazu@hxi.com>
19410
19411 * config/h8300/h8300.c (print_operand): Remove support for
19412 operand character 'U'.
19413
19414 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
19415
19416 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
19417
19418 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
19419
19420 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
19421 values to be assigned to the stack pointer.
19422
19423 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
19424
19425 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
19426 to const_double needs to be done right for big-endian systems.
19427
19428 2002-01-24 Jason Merrill <jason@redhat.com>
19429
19430 PR c++/2432
19431 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
19432 to can_throw_internal.
19433
19434 2002-01-23 Richard Henderson <rth@redhat.com>
19435
19436 * fold-const.c (fold): Change UINT_MAX test to check vs precision
19437 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
19438
19439 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19440
19441 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
19442 (symGOT2reg): Use them, then set as GOT value as unchanging.
19443 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
19444 as a temporary, if possible.
19445 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
19446 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
19447
19448 2002-01-23 Kazu Hirata <kazu@hxi.com>
19449
19450 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
19451 accept to accept 0x80 as operands[2].
19452
19453 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19454
19455 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
19456
19457 2002-01-23 Richard Henderson <rth@redhat.com>
19458
19459 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
19460
19461 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
19462
19463 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
19464 (parmlist_or_identifiers_1): Verify that only a parmlist follows
19465 an attribute.
19466
19467 2002-01-23 Richard Henderson <rth@redhat.com>
19468
19469 * expr.c (move_by_pieces_1): Extend size before negation.
19470
19471 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
19472 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
19473 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
19474 * config/m68k/t-m68kelf: Likewise.
19475
19476 2002-01-23 Bob Wilson <bob.wilson@acm.org>
19477
19478 * config/xtensa/elf.h: New file.
19479 * config/xtensa/lib1funcs.asm: New file.
19480 * config/xtensa/lib2funcs.S: New file.
19481 * config/xtensa/linux.h: New file.
19482 * config/xtensa/t-xtensa: New file.
19483 * config/xtensa/xtensa-config.h: New file.
19484 * config/xtensa/xtensa-protos.h: New file.
19485 * config/xtensa/xtensa.c: New file.
19486 * config/xtensa/xtensa.h: New file.
19487 * config/xtensa/xtensa.md: New file.
19488 * config.gcc (xtensa-*-elf*): New target.
19489 (xtensa-*-linux*): New target.
19490 * cse.c (canon_hash): Compare rtx pointers instead of register
19491 numbers. This is required for the Xtensa port.
19492 * integrate.c (copy_insn_list): Handle case where the static
19493 chain is in memory and the memory address has to be copied to
19494 a register.
19495 * doc/invoke.texi (Option Summary): Add Xtensa options.
19496 (Xtensa Options): New node.
19497 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
19498
19499 2002-01-23 Zack Weinberg <zack@codesourcery.com>
19500
19501 * diagnostic.c (internal_error): Do ICE suppression only
19502 when ENABLE_CHECKING is not defined.
19503
19504 * c-typeck.c (require_complete_type): Return error_mark_node
19505 if type is error_mark_node.
19506
19507 2002-01-23 Janis Johnson <janis187@us.ibm.com>
19508
19509 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
19510 -Os and issue a warning.
19511
19512 2002-01-23 Zack Weinberg <zack@codesourcery.com>
19513
19514 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
19515 current (lack of) need for host configuration by hand.
19516
19517 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
19518 references. Documentation of some target macros moved from
19519 hostconfig.texi to tm.texi.
19520
19521 2002-01-23 Will Cohen <wcohen@redhat.com>
19522
19523 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
19524 defined.
19525
19526 2002-01-23 Kazu Hirata <kazu@hxi.com>
19527
19528 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
19529 operand[3].
19530
19531 2002-01-23 Jason Merrill <jason@redhat.com>
19532
19533 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
19534
19535 * function.c (assign_parms): Don't put args of inline functions
19536 into registers when not optimizing.
19537
19538 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
19539
19540 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
19541 (prologue_use): New pattern.
19542 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
19543 preference to gen_rtx_USE.
19544 (thumb_expand_prologue): Use gen_prologue_use in preference to
19545 gen_rtx_USE.
19546 (thumb_expand_epilogue): Use gen_prologue_use in preference to
19547 gen_rtx_USE.
19548
19549 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
19550
19551 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
19552
19553 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
19554
19555 PR c/3504
19556 * doc/extend.texi: Correct documentation of __alignof__.
19557
19558 2002-01-22 Zack Weinberg <zack@codesourcery.com>
19559
19560 * params.h: Rename arguments of DEFPARAM so that it will be
19561 recognized as a translation keyword.
19562
19563 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
19564
19565 * extend.texi: Document altivec functions.
19566 Fix N-bit adjectives in X86 builtin documentation.
19567
19568 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
19569
19570 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
19571 auto_inc_dec values.
19572
19573 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
19574
19575 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
19576 after backslash.
19577 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
19578
19579 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
19580
19581 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
19582
19583 2002-01-22 Richard Henderson <rth@redhat.com>
19584
19585 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
19586 copy_insn not copy_rtx.
19587
19588 2002-01-23 Alan Modra <amodra@bigpond.net.au>
19589
19590 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
19591 "nonzero" as that might add "1" bits. Ensure "constop" is
19592 properly sign extened.
19593 (force_to_mode): Tweak for sign extended constop.
19594
19595 2002-01-22 Richard Henderson <rth@redhat.com>
19596
19597 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
19598 for_each_rtx instead of assuming we're already looking at the MEM.
19599 (split_small_symbolic_mem_operand): Likewise.
19600 * config/alpha/alpha.h (PREDICATE_CODES): Update.
19601 * config/alpha/alpha.md (small symbolic memory splitters): Update.
19602
19603 2002-01-22 Richard Henderson <rth@redhat.com>
19604
19605 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
19606 sequence number for the literal.
19607 (divmoddi_internal_er): Likewise.
19608
19609 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
19610
19611 PR java/4972
19612 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
19613 in LIBICONV variable.
19614 * configure: Regenerated.
19615
19616 2002-01-22 Krister Walfridsson <cato@df.lth.se>
19617
19618 * dependence.c (build_def_use): Remove array_idx.
19619
19620 * dwarfout.c (last_filename): Remove.
19621 (output_compile_unit_die): Remove last_filename.
19622
19623 2002-01-22 Roger Sayle <roger@eyesopen.com>
19624 Richard Henderson <rth@redhat.com>
19625
19626 PR opt/3640
19627 * fold-const.c (fold): Optimize unsigned comparisons against
19628 UINT_MAX (and similar unsigned constants).
19629
19630 2002-01-22 Janis Johnson <janis187@us.ibm.com>
19631
19632 * Makefile.in (loop.o): Depend on OPTABS_H.
19633 * loop.c (emit_prefetch_instructions): Check the prefetch operand
19634 against the predicate.
19635
19636 PR target/5379
19637 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
19638 for the address operand.
19639
19640 2002-01-22 Richard Henderson <rth@redhat.com>
19641
19642 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
19643
19644 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
19645
19646 PR other/5450
19647 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
19648 preprocessor flags.
19649
19650 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
19651
19652 * config.gcc (x86_64-*-netbsd*): New target.
19653 * config/i386/netbsd64.h: New file.
19654
19655 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
19656
19657 * regrename.c (kill_value): Fix typo.
19658
19659 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
19660
19661 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
19662
19663 * config/rs6000/rs6000.h: Same.
19664
19665 * function.c (instantiate_virtual_regs): Remove
19666 STARTING_FRAME_PHASE.
19667 (assign_stack_local_1): Same.
19668 Calculate frame phase.
19669
19670 2002-01-22 Nick Clifton <nickc@redhat.com>
19671
19672 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
19673 variable declaration to outer scope in order to simplify
19674 future extensions.
19675 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
19676 arm_hard_regno_mode_ok.
19677 * config/arm/arm-protos.h: Add a prototype for
19678 arm_hard_regno_mode_ok.
19679 * config/arm/arm.c (soft_df_operand): Remove now redundant
19680 check for DImode values using IP_REGNUM.
19681 (nonimmediate_soft_df_operand): Remove now redundant check for
19682 DImode values using IP_REGNUM.
19683 (arm_hard_regno_mode_ok): New function. New check: make sure
19684 that DImode values are not stored in IP_REGNUM.
19685
19686 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
19687 note with a USE.
19688 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
19689
19690 2002-01-22 Jason Merrill <jason@redhat.com>
19691
19692 * c-semantics.c (genrtl_compound_stmt): Only check nesting
19693 consistency if this COMPOUND_STMT is scoped.
19694
19695 2002-01-22 Kazu Hirata <kazu@hxi.com>
19696
19697 * predict.c: Fix formatting.
19698 * print-tree.c: Likewise.
19699 * protoize.c: Likewise.
19700 * real.h: Likewise.
19701 * rtl.h: Likewise.
19702 * sbitmap.h: Likewise.
19703 * scan.c: Likewise.
19704 * sched-deps.c: Likewise.
19705 * sched-vis.c: Likewise.
19706 * sdbout.c: Likewise.
19707 * sibcall.c: Likewise.
19708 * ssa.c: Likewise.
19709 * ssa-ccp.c: Likewise.
19710 * ssa-dce.c: Likewise.
19711 * stmt.c: Likewise.
19712 * stor-layout.c: Likewise.
19713 * system.h: Likewise.
19714
19715 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19716
19717 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
19718 if fits in bounds of base type.
19719
19720 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
19721 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
19722 (add_bound_info, default): If can't find a context, make a
19723 SAVE_EXPR.
19724 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
19725
19726 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
19727
19728 * c-typeck.c (parser_build_binary_op): If result from
19729 build_binary_op is ERROR_MARK just return error_mark_node without
19730 further processing.
19731
19732 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
19733
19734 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
19735 Split a.out-specific bits into...
19736 * config/netbsd-aout.h: ...this.
19737 * config/netbsd-elf.h: New file.
19738 * config/alpha/netbsd-elf.h: Remove.
19739 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
19740 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
19741 (STARTFILE_SPEC): Remove redundant definition.
19742 (ENDFILE_SPEC): Likewise.
19743 (LINK_SPEC): Likewise.
19744 (CPP_SPEC): Likewise.
19745 (ASM_SPEC): Likewise.
19746 (LIB_SPEC): Likewise.
19747 (SWITCH_TAKES_ARG): Likewise.
19748 (TARGET_MEM_FUNCTIONS): Likewise.
19749 (CPP_PREDEFINES): Redefine.
19750 (ASM_FINAL_SPEC): Remove redefinition.
19751 (ASM_COMMENT_START): Redefine.
19752 (FUNCTION_PROFILER): Define.
19753 (TARGET_VERSION): Redefine.
19754 Comment and formatting cleanup.
19755 * config/i386/netbsd.h: Include <netbsd-aout.h>.
19756 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
19757 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
19758 big- or little-endian.
19759 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
19760 * config.gcc (*-*-netbsd*): Add definitions common to all
19761 NetBSD configs.
19762 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
19763 gnu_ld definitions. Add netbsd-elf.h to and remove
19764 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
19765 tmake_file, and don't lose previous tmake_file contents.
19766 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
19767 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
19768 gnu_ld definitions. Add netbsd-elf.h to tm_file.
19769 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
19770 (mipsel-*-netbsd*): Rename this to...
19771 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
19772 mips/little.h to tm_file for mips*el-*.
19773 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
19774 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
19775 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
19776
19777 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
19778
19779 * pa-protos.h (reg_before_reload_operand): New function prototype.
19780 * pa.c (reg_before_reload_operand): New function implementation.
19781 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
19782 contraints to "*m".
19783
19784 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19785
19786 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
19787
19788 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
19789
19790 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
19791 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
19792 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
19793 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
19794 (ENDFILE_SPEC): Undefine.
19795 (STARTFILE_SPEC): Redefine for PA.
19796
19797 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19798
19799 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
19800
19801 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
19802
19803 * config.gcc: Add entries to supported PowerPC --with-cpu
19804 types.
19805
19806 2002-01-21 Jakub Jelinek <jakub@redhat.com>
19807
19808 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
19809 true for 64-bit mode only SSE registers in 32-bit mode.
19810
19811 2002-01-21 Kazu Hirata <kazu@hxi.com>
19812
19813 * unwind-dw2.c: Fix formatting.
19814 * unwind-dw2-fde.c: Likewise.
19815 * unwind-dw2-fde.h: Likewise.
19816 * unwind-pe.h: Likewise.
19817 * varasm.c: Likewise.
19818 * varray.h: Likewise.
19819
19820 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
19821
19822 Remove workaround for register stack overwrite bug in mmix.
19823 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
19824 support for TARGET_REG_STACK_FILL_BUG.
19825 * config/mmix/mmix.h: Remove member has_call_without_parameters.
19826 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
19827 Delete.
19828 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
19829 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
19830 -mno-reg-stack-fill-bug-workaround.
19831 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
19832 machine member has_call_without_parameters.
19833 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
19834 -mreg-stack-fill-bug-workaround and
19835 -mno-reg-stack-fill-bug-workaround.
19836 (MMIX Options): Ditto.
19837
19838 2002-01-21 Kazu Hirata <kazu@hxi.com>
19839
19840 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
19841 as appropriate.
19842 Remove redundant code.
19843
19844 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
19845
19846 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
19847 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19848 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19849 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
19850 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
19851 out target macro definitions and non-target-specific comments
19852 mostly taken from old versions of the manual.
19853
19854 2002-01-20 Kazu Hirata <kazu@hxi.com>
19855
19856 * config/h8300/h8300.h: Fix comment formatting.
19857 * config/ia64/aix.h: Likewise.
19858 * config/ia64/ia64-protos.h: Likewise.
19859 * config/ia64/ia64.c: Likewise.
19860 * config/ia64/ia64.h: Likewise.
19861 * config/ia64/ia64intrin.h: Likewise.
19862 * config/ia64/linux.h: Likewise.
19863 * config/ia64/unwind-aix.c: Likewise.
19864 * config/ia64/unwind-ia64.c: Likewise.
19865
19866 2002-01-20 Kazu Hirata <kazu@hxi.com>
19867
19868 * config/h8300/h8300.c: Revise comments about shift code.
19869
19870 2002-01-20 Kazu Hirata <kazu@hxi.com>
19871
19872 * config/h8300/h8300.c (function_arg): Update a comment.
19873
19874 2002-01-20 Kazu Hirata <kazu@hxi.com>
19875
19876 * config/h8300/h8300.md: Update the comments at the beginning
19877 of the file.
19878
19879 2002-01-20 Kazu Hirata <kazu@hxi.com>
19880
19881 * config/i370/i370.c: Fix comment formatting.
19882 * config/i370/i370.h: Likewise.
19883 * config/i370/i370.md: Likewise.
19884 * config/i370/linux.h: Likewise.
19885
19886 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19887
19888 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
19889
19890 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
19891 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
19892 in incomplete case.
19893
19894 2002-01-20 Graham Stott <grahams@redhat.com>
19895
19896 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
19897
19898 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
19899
19900 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
19901
19902 2002-01-19 Tom Rix <trix@redhat.com>
19903
19904 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
19905
19906 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
19907
19908 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
19909
19910 * function.c (assign_stack_local_1): Adjust x_frame_offset with
19911 STARTING_FRAME_PHASE.
19912 (STARTING_FRAME_PHASE): New.
19913 (instantiate_virtual_regs): Check saneness of
19914 STARTING_FRAME_PHASE.
19915
19916 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
19917
19918 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
19919
19920 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
19921
19922 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
19923
19924 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
19925 be used for bootstrapping GCC 3.0.
19926
19927 2002-01-18 Kazu Hirata <kazu@hxi.com>
19928
19929 * config/h8300/h8300.md: Fix an insn length.
19930
19931 2002-01-18 Kazu Hirata <kazu@hxi.com>
19932
19933 * bitmap.h: Fix comment formatting.
19934 * combine.c: Likewise.
19935 * cppfiles.c: Likewise.
19936 * c-pragma.h: Likewise.
19937 * c-typeck.c: Likewise.
19938 * df.c: Likewise.
19939 * dwarf2out.c: Likewise.
19940 * function.c: Likewise.
19941 * gcc.c: Likewise.
19942 * genattrtab.c: Likewise.
19943 * gthr-win32.h: Likewise.
19944 * haifa-sched.c: Likewise.
19945 * predict.c: Likewise.
19946 * rtlanal.c: Likewise.
19947 * rtl.h: Likewise.
19948 * unwind-dw2-fde.h: Likewise.
19949 * unwind-pe.h: Likewise.
19950 * vmsdbgout.c: Likewise.
19951
19952 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19953
19954 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
19955 if type_required and passed decl.
19956
19957 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
19958
19959 * config.gcc (cpu_type): Include altivec.h in powerpc
19960 extra_headers.
19961 Same for darwin.
19962
19963 * config/rs6000/altivec.h: New.
19964
19965 2002-01-17 David Edelsohn <edelsohn@gnu.org>
19966
19967 * doc/install.texi (*-ibm-aix*): Update assembler and exception
19968 handling information.
19969 * doc/trouble.texi (Interoperation): Add libstdc++ information
19970 for AIX.
19971 (Misunderstandings): Add template instantiation and static template
19972 member information for AIX.
19973
19974 2002-01-17 Jason Merrill <jason@redhat.com>
19975
19976 * dbxout.c (dbxout_type): Support const and volatile.
19977
19978 * except.c (add_partial_entry): Remove backwards compatibility code.
19979 (end_protect_partials): Likewise.
19980
19981 2002-01-17 Jakub Jelinek <jakub@redhat.com>
19982
19983 * config/ia64/ia64.md (prologue_use): New.
19984 * config/ia64/ia64.c (ia64_expand_prologue): Use
19985 gen_prologue_use instead of gen_rtx_USE.
19986 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
19987 as CODE_FOR_pred_rel_mutex.
19988 (ia64_sched_reorder2): Likewise.
19989
19990 2002-01-16 Eric Christopher <echristo@redhat.com>
19991
19992 * config/mips/r3900.h: Reformat.
19993 (SUBTARGET_CPP_SIZE_SPEC): Remove.
19994 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
19995 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
19996 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
19997 * config/mips/t-elf: Remove mips3 multilib.
19998
19999 2002-01-16 H.J. Lu <hjl@gnu.org>
20000
20001 * config/mips/linux.h: Include "mips/abi64.h".
20002
20003 2002-01-16 H.J. Lu <hjl@gnu.org>
20004
20005 * config/mips/t-linux: New.
20006
20007 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
20008
20009 * config/mips/linux.h: Don't include "gofast.h".
20010 (INIT_SUBTARGET_OPTABS): Removed.
20011
20012 2002-01-16 Kazu Hirata <kazu@hxi.com>
20013
20014 * config/h8300/h8300-protos.h: Replace emit_a_shift with
20015 output_a_shift.
20016 * config/h8300/h8300.c: Likewise.
20017 * config/h8300/h8300.md: Likewise.
20018
20019 2002-01-16 Kazu Hirata <kazu@hxi.com>
20020
20021 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
20022 spaces after an opcode name.
20023 (pushqi1_h8300hs): Likewise.
20024 (pushhi1_h8300hs): Likewise.
20025
20026 2002-01-16 Kazu Hirata <kazu@hxi.com>
20027
20028 * doc/extend.texi: Replace "option" with "attribute"
20029 appropriately.
20030
20031 2002-01-16 Jakub Jelinek <jakub@redhat.com>
20032
20033 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
20034 (and:DI () (const_int -8)).
20035 (split_small_symbolic_mem_operand): Split
20036 (mem (and:DI () (const_int -8)).
20037
20038 2002-01-16 Jakub Jelinek <jakub@redhat.com>
20039
20040 PR target/5309:
20041 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
20042 same way as TYPE_IMUL.
20043 (ultrasparc_sched_reorder): Likewise.
20044 * config/sparc/sparc.md (type): Add comment to update
20045 ultrasparc_sched_reorder when making changes.
20046
20047 2002-01-16 Kazu Hirata <kazu@hxi.com>
20048
20049 * doc/invoke.texi: Change the dump file name of block
20050 reordering pass from 28.bbro to 29.bbro.
20051 Mention -dk option.
20052
20053 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
20054
20055 * i386.md (minsf splitter): Fix pasto.
20056
20057 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
20058
20059 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
20060 to frame pointer initialisation instruction.
20061 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
20062 initialisation instruction.
20063 (soft_df_operand): Do not accept the IP register.
20064 (nonimmediate_soft_df_operand): Do not accept the IP register.
20065
20066 2002-01-16 Jakub Jelinek <jakub@redhat.com>
20067
20068 PR target/5357:
20069 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
20070 MASK_V8 being both set.
20071
20072 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
20073
20074 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
20075 insn for GOT register; add REG_MAYBE_DEAD notes instead.
20076 config/s390/s390.md (call, call_value): Add GOT register to
20077 CALL_INSN_FUNCTION_USAGE where needed.
20078 (call_exp, call_value_exp): New.
20079
20080 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
20081
20082 * config/arm/arm.c: General formatting tidy up.
20083
20084 2002-01-16 Graham Stott <grahams@redhat.com>
20085
20086 * calls.c (try_to_integrate): Use "(size_t)" intermediate
20087 cast and when casting an integer literal to "rtx" pointer.
20088 (expand_call): Likewise.
20089 * flow.c (try_pre_increment): Likewise.
20090 (find_use_as_address): Likewise.
20091 * integrate.c (expand_iline_function): Likewise.
20092 * regmove.c (try_auto_increment): Likewise.
20093
20094 2002-01-16 Graham Stott <grahams@redhat.com>
20095
20096 * sched-rgn.c (passed): Use sbitmap_free.
20097 (header): Likewise.
20098 (inner): Likewise.
20099 (in_queue): Likewise.
20100 (in_stack): Likewise.
20101
20102 2002-01-15 Eric Christopher <echristo@redhat.com>
20103
20104 * flow.c (propagate_one_insn): Change to use fatal_insn.
20105
20106 2002-01-15 Kazu Hirata <kazu@hxi.com>
20107
20108 * expmed.c (extract_fixed_bit_field): Remove unused code.
20109 * system.h: Poison SLOW_ZERO_EXTEND.
20110 * doc/tm.texi: Remove.
20111 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
20112 * config/arm/arm.h: Likewise.
20113 * config/avr/avr.h: Likewise.
20114 * config/clipper/clipper.h: Likewise.
20115 * config/convex/convex.h: Likewise.
20116 * config/d30v/d30v.h: Likewise.
20117 * config/dsp16xx/dsp16xx.h: Likewise.
20118 * config/elxsi/elxsi.h: Likewise.
20119 * config/fr30/fr30.h: Likewise.
20120 * config/h8300/h8300.h: Likewise.
20121 * config/i370/i370.h: Likewise.
20122 * config/i386/i386.h: Likewise.
20123 * config/m68k/m68k.h: Likewise.
20124 * config/mips/mips.h: Likewise.
20125 * config/ns32k/ns32k.h: Likewise.
20126 * config/pdp11/pdp11.h: Likewise.
20127 * config/pj/pj.h: Likewise.
20128 * config/s390/s390.h: Likewise.
20129 * config/sh/sh.h: Likewise.
20130 * config/stormy16/stormy16.h: Likewise.
20131 * config/v850/v850.h: Likewise.
20132 * config/vax/vax.h: Likewise.
20133 * config/we32k/we32k.h: Likewise.
20134
20135 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
20136
20137 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
20138 (altivec_lvsl): Change constraint to b.
20139 (altivec_lvsr): Same.
20140 (altivec_lvebx): Same.
20141 (altivec_lvehx): Same.
20142 (altivec_lvewx): Same.
20143 (altivec_lvxl): Same.
20144 (altivec_lvx): Same.
20145 (altivec_stvx): Add parallel.
20146 (altivec_stvxl): Same.
20147 (altivec_stvehx): Same.
20148 (altivec_stvebx): Same.
20149 (altivec_stvebx): Same.
20150
20151 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
20152
20153 * config.gcc: Change altivec.h to altivec-defs.h.
20154
20155 * config/rs6000/altivec.h: Delete.
20156
20157 * config/rs6000/altivec-defs.h: Add.
20158
20159 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
20160
20161 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
20162 and UMOD modes.
20163
20164 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
20165 less than or equal to eight bytes.
20166
20167 * vax.md (andsi3): Remove constraints and change SET destination
20168 operand type to nonimmediate_operand.
20169 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
20170 when it is a CONST_INT.
20171
20172 2002-01-15 Jason Merrill <jason@redhat.com>
20173
20174 * c-common.def (FILE_STMT): New code.
20175 * c-common.c (statement_code_p): It's a statement.
20176 * c-common.h (stmt_tree_s): Add x_last_filename.
20177 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
20178 (last_expr_filename): New macro.
20179 * c-semantics.c (begin_stmt_tree): Initialize it.
20180 (add_stmt): If the filename changed, also insert a
20181 FILE_STMT.
20182 (expand_stmt): Handle seeing one.
20183
20184 2002-01-15 Eric Christopher <echristo@redhat.com>
20185
20186 * flow.c (propagate_one_insn): Add error message and print out
20187 insn for debugging.
20188
20189 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
20190
20191 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
20192 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
20193 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
20194 TRAMPOLINE_ALIGNMENT.
20195 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
20196 to be in bits.
20197 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
20198 PCC_BITFIELD_TYPE_MATTERS.
20199 * config/interix.h (STDC_VALUE): Remove. Use
20200 STDC_0_IN_SYSTEM_HEADERS.
20201 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
20202 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
20203 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
20204
20205 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
20206
20207 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
20208 not work on this platform currently.
20209
20210 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
20211
20212 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
20213 readonly_warning in _().
20214
20215 2002-01-15 Douglas B Rupp <rupp@gnat.com>
20216
20217 * gcc.c (delete_if_ordinary): Backout previous change.
20218
20219 2002-01-15 Kazu Hirata <kazu@hxi.com>
20220
20221 * config/h8300/h8300.c (print_operand): Remove support for
20222 unused operand characters.
20223
20224 * read-rtl.c: Fix formatting.
20225 * real.c: Likewise.
20226 * recog.c: Likewise.
20227 * regclass.c: Likewise.
20228 * regmove.c: Likewise.
20229 * reg-stack.c: Likewise.
20230 * reload1.c: Likewise.
20231 * rtlanal.c: Likewise.
20232
20233 2002-01-15 Kazu Hirata <kazu@hxi.com>
20234
20235 * config/i386/i386.c: Fix formatting.
20236
20237 2002-01-15 Jakub Jelinek <jakub@redhat.com>
20238
20239 * c-typeck.c (process_init_element): Don't save_expr
20240 COMPOUND_LITERAL_EXPR if just its initializer will be used.
20241
20242 2002-01-15 David Edelsohn <edelsohn@gnu.org>
20243
20244 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
20245 emit optional traceback table if optimize_size or TARGET_ELF.
20246 * config/rs6000/rs6000.md (prefetch): New.
20247
20248 2002-01-15 Andreas Jaeger <aj@suse.de>
20249
20250 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
20251
20252 2002-01-15 Kazu Hirata <kazu@hxi.com>
20253
20254 * mips-tfile.c: Fix formatting.
20255
20256 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
20257
20258 * unroll.c (final_reg_note_copy): Fix previous commit.
20259
20260 2002-01-14 Kazu Hirata <kazu@hxi.com>
20261
20262 * config/h8300/h8300-protos.h: Remove the prototype for
20263 eq_operator.
20264 * config/h8300/h8300.c (eq_operator): Remove.
20265
20266 2002-01-14 Richard Henderson <rth@redhat.com>
20267
20268 * config/i386/i386.md (prefetch): Tidy.
20269 (prefetch_3dnow): Fix locality operand.
20270
20271 2002-01-14 Richard Henderson <rth@redhat.com>
20272
20273 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
20274 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
20275
20276 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
20277
20278 * reload1.c (reload_combine): Pass reg_sum replacement through
20279 copy_rtx in loop performing multiple changes.
20280
20281 2002-01-14 Jakub Jelinek <jakub@redhat.com>
20282
20283 * except.c (remove_unreachable_regions): New.
20284 (free_eh_status): Clear exception_handler_labels.
20285 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
20286 (find_exception_handler_labels): Don't add the same label more than
20287 once.
20288 (remove_exception_handler_label): Don't die if
20289 find_exception_handler_labels hasn't been called for the current
20290 function yet.
20291
20292 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
20293
20294 * toplev.c (rest_of_compilation): Rebuild jump labels after
20295 gcse.
20296
20297 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
20298
20299 * doc/extend.texi: Move documentation of X86 built-in functions
20300 here.
20301 * doc/invoke.texi: From here.
20302 * doc/sourcebuild.texi: Document location of documentation for
20303 machine built-in functions.
20304
20305 2002-01-13 Christopher Faylor <cgf@redhat.com>
20306
20307 * cppfiles.c (TEST_THRESHOLD): New macro.
20308 (SHOULD_MMAP): Ditto.
20309 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
20310 be used.
20311
20312 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
20313
20314 * unroll.c (final_reg_note_copy): Properly handle
20315 REG_LABEL
20316 (unroll_loops): Fix LOOP_CONDITION heuristics.
20317
20318 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
20319
20320 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
20321 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
20322
20323 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
20324
20325 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
20326 threaded loop.
20327
20328 2002-01-14 Tom Rix <trix@redhat.com>
20329
20330 * config/rs6000/rs6000.md: Fix typo with sradi.
20331
20332 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
20333
20334 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
20335 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
20336 (clrstrdi, clrstrsi): Adapt callers.
20337
20338 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
20339
20340 (movti splitter): Never use register 0 as base register.
20341
20342 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
20343
20344 * combine.c (simplify_shift_const): Always generate new rtx
20345 for shift expression instead of reusing given expression.
20346
20347 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20348
20349 * config/alpha/alpha.c (alpha_expand_mov): Don't call
20350 alpha_legitimize_address unless mode is Pmode.
20351
20352 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
20353
20354 * doc/md.texi (Modifiers): Document the '*' constraint for the
20355 user.
20356
20357 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
20358 * doc/extend.texi (Function Attributes): 'interrupt' is valid
20359 for xstormy16 too.
20360
20361 2002-01-13 Richard Henderson <rth@redhat.com>
20362
20363 * reload.c (find_reloads): Use a hard reg destination as reload reg
20364 for an input reload of the source.
20365
20366 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20367
20368 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
20369 more generic.
20370
20371 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
20372
20373 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
20374 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
20375
20376 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
20377
20378 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20379
20380 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
20381
20382 2002-01-12 Tom Rix <trix@redhat.com>
20383
20384 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
20385 TARGET_POWERPC64.
20386
20387 2002-01-12 Richard Henderson <rth@redhat.com>
20388
20389 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
20390
20391 * doc/invoke.texi: Update Alpha options.
20392
20393 * doc/invoke.texi: Update i386 built-in function lists.
20394
20395 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
20396
20397 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
20398 referencing outside.
20399
20400 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20401
20402 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
20403 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
20404 offsets, and change line folding.
20405 * optabs.c (expand_binop): Remove warnings.
20406 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
20407
20408 2002-01-12 Graham Stott <grahams@redhat.com>
20409
20410 * attribs.c (handle_deprecated_attribute): constify WHAT.
20411 * diagnostic.c (warn_deprecated_use): Add braces, fixes
20412 dangling else warning and constify WHAT.
20413 * except.h (struct function, struct inline_remap): Move
20414 struct tag forward defs before all prototypes.
20415 (duplicate_eh_regions): Whitespace.
20416
20417 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
20418
20419 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20420 MODE_BASE_REG_CLASS.
20421 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
20422
20423 2002-01-12 Richard Henderson <rth@redhat.com>
20424
20425 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
20426 (ix86_expand_vector_move): New.
20427 (bdesc_2arg): Remove andps, andnps, orps, xorps.
20428 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
20429 Remove old prefetch builtins. Special case the logicals removed above.
20430 (ix86_expand_builtin): Likewise.
20431 (safe_vector_operand): Use V4SFmode, not TImode.
20432 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
20433 (ix86_expand_timode_binop_builtin): New.
20434 * config/i386/i386-protos.h: Update.
20435 * config/i386/i386.h (enum ix86_builtins): Update.
20436 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
20437 Use ix86_expand_vector_move in vector move expanders.
20438 (movti_internal, movti_rex64): Add xorps alternative.
20439 (sse_clrv4sf): Rename and adjust from sse_clrti.
20440 (prefetch): Don't work so hard.
20441 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
20442 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
20443 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
20444
20445 2002-01-11 Richard Henderson <rth@redhat.com>
20446
20447 * config/i386/mmintrin.h: New file.
20448 * config/i386/xmmintrin.h: New file.
20449 * config.gcc (i?86-*-*): Add extra_headers.
20450 * simplify-rtx.c (simplify_unary_operation): Handle saturating
20451 truncation codes.
20452 (simplify_binary_operation): Handle saturating arithmetic codes.
20453 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
20454 not the lowpart subreg.
20455 (ix86_expand_builtin): Return a TImode dummy register instead of 0
20456 on error.
20457 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
20458
20459 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20460
20461 * conflict.c (conflict_graph_compute): Free regsets when finished.
20462 * ssa.c (compute_coalesced_reg_partition): Likewise.
20463
20464 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20465
20466 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
20467 every where we allocate a register.
20468
20469 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20470
20471 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
20472 * lcm.c (compute_earliest, compute_farthest): Likewise.
20473
20474 2002-01-11 Janis Johnson <janis187@us.ibm.com>
20475
20476 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
20477
20478 2002-01-11 Janis Johnson <janis187@us.ibm.com>
20479
20480 * doc/rtl.texi (Insns): Fix 2 typos.
20481
20482 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
20483
20484 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
20485 options. Use @table @gcctabopt for MMIX options. Add index
20486 entries for MMIX options. Start new paragraph with first
20487 heading of the machine-dependent options.
20488
20489 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
20490
20491 PR other/5299
20492 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
20493 * combine.c (force_to_mode): Same.
20494 * reload1.c (clear_reload_reg_in_use): Same.
20495
20496 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
20497
20498 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
20499 and 'subtargets'.
20500
20501 2002-01-11 Andreas Jaeger <aj@suse.de>,
20502 Brad Lucier <lucier@math.purdue.edu>
20503
20504 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
20505 mcpu.
20506
20507 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
20508
20509 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
20510 Protect with IN_LIBGCC.
20511 (LINK_EH_SPEC): Add required trailing space.
20512
20513 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
20514
20515 * c-tree.h: Move function declarations so that they are listed
20516 under the filename which contains them.
20517 (check_identifier, finish_decl_top_level,
20518 lookup_name_current_level_global, shadow_record_fields): Remove.
20519
20520 2002-01-11 Andreas Jaeger <aj@suse.de>
20521
20522 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
20523 march.
20524
20525 2002-01-10 Richard Henderson <rth@redhat.com>
20526
20527 * config/alpha/alpha.c (print_operand): Add 'J'.
20528 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
20529 new operand with the sequence number for the lituse. When splitting
20530 the insns, use gen_movdi_er_high_g and generate a sequence number.
20531 (gen_movdi_er_high_g): Print the sequence number if non-zero.
20532
20533 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
20534
20535 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
20536 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
20537 stvxl.
20538 (altivec_expand_builtin): Same.
20539 (altivec_expand_stv_builtin): New.
20540
20541 * config/rs6000/rs6000.h (rs6000_builtins): Same.
20542
20543 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
20544 ("altivec_lvehx"): New.
20545 ("altivec_lvewx"): New.
20546 ("altivec_lvxl"): New.
20547 ("altivec_lvx"): New.
20548 ("altivec_stvx"): New.
20549 ("altivec_stvebx"): New.
20550 ("altivec_stvehx"): New.
20551 ("altivec_stvewx"): New.
20552 ("altivec_stvxl"): New.
20553
20554 2002-01-10 Richard Henderson <rth@redhat.com>
20555
20556 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
20557 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
20558 care not to delete instructions twice.
20559
20560 2002-01-10 Zack Weinberg <zack@codesourcery.com>
20561
20562 * toplev.c: Don't declare environ (it's not used anywhere).
20563 * configure.in: Don't check for declaration of environ.
20564 * config/i386/xm-mingw32.h: Don't #define environ.
20565 * config.in, configure: Regenerate.
20566
20567 2002-01-10 Zack Weinberg <zack@codesourcery.com>
20568
20569 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
20570 * configure: Regenerate.
20571
20572 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
20573 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
20574 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
20575 alpha/xm-vms.h.
20576 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
20577 LIMITS_H_TEST here, not in m68k/x-next.
20578 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
20579 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
20580
20581 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
20582 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
20583 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
20584
20585 * config/i386/x-djgpp: Renamed i386/t-djgpp.
20586 * config/m88k/x-dolph: Renamed m88k/t-dolph.
20587 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
20588 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
20589 replacement of quadlib.asm with quadlib.c.
20590
20591 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
20592 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
20593 config/rs6000/xm-beos.h: Delete file.
20594
20595 * config.gcc: Update to match above changes.
20596
20597 2002-01-10 Kazu Hirata <kazu@hxi.com>
20598
20599 * config/h8300/h8300.h: Fix comment typos.
20600 * config/h8300/h8300.md: Likewise.
20601 * config/h8300/lib1funcs.asm: Likewise.
20602
20603 2002-01-10 Dale Johannesen <dalej@apple.com>
20604
20605 PR optimization/5269
20606 * unroll.c (precondition_loop_p): Make *increment be the correct
20607 sign when n_iterations known, to avoid confusing caller.
20608
20609 2002-01-10 Kazu Hirata <kazu@hxi.com>
20610
20611 * doc/extend.texi (deprecated): Fix a typo.
20612
20613 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
20614
20615 * basic-block.h (update_br_prob_note): Declare.
20616 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
20617 (try_forward_edges): Care negative frequencies and update note.
20618 (outgoing_edges_match): Tweek conditional merging heuristics.
20619 (try_crossjump_to_edge): use update_br_prob_note.
20620 * cfglayout.c (fixup_reorder_chain): Likewise.
20621 * cfrtl.c (update_br_prob_note): New.
20622 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
20623
20624 * i386.c (ix86_decompose_address): Return -1 if address contains
20625 shift.
20626 (legitimate_address_p): Require ix86_decompose_address to return 1.
20627
20628 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
20629 (cprop_insn): Likewise.
20630
20631 2002-01-10 Kazu Hirata <kazu@hxi.com>
20632
20633 * toplev.c: Fix formatting.
20634 * tree.c: Likewise.
20635 * tree-dump.c: Likewise.
20636 * unroll.c: Likewise.
20637 * unwind-dw2.c: Likewise.
20638 * unwind-dw2-fde.c: Likewise.
20639 * unwind-dw2-fde-glibc.c: Likewise.
20640 * unwind-sjlj.c: Likewise.
20641
20642 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
20643
20644 * doc/invoke.texi: Document PDP-11 options.
20645
20646 2002-01-10 Kazu Hirata <kazu@hxi.com>
20647
20648 * config/h8300/h8300.h: Fix formatting.
20649
20650 2002-01-10 Ira Ruben <ira@apple.com>
20651
20652 Add __attribute__ ((deprecated)).
20653 * extend.texi: Document __attribute__ ((deprecated)).
20654 * invoke.texi: Document -Wno-deprecated-declarations.
20655 * testsuite/g++.dg/other/deprecated.C: New C++ test.
20656 * testsuite/gcc.dg/deprecated.c: New C test.
20657 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
20658 (c_common_attribute_table): Add "deprecated" entry.
20659 (handle_deprecated_attribute): New function.
20660 * c-decl.c (deprecated_states): New enum.
20661 deprecated_state: State of "deprecated" handling.
20662 (start_decl): Set deprecated_state based on attributes.
20663 (grokdeclarator): Test for deprecated uses, propagate attribute.
20664 * c-typeck.c (build_component_ref): Test for deprecated fields.
20665 (build_external_ref): Test for deprecated primaries.
20666 * diagnostic.c (warn_deprecated_use) New function to issue
20667 warnings about __attribute__ ((depricated)) references.
20668 * flags.h (warn_deprecated_decl): Extern declared for
20669 -W[no-]deprecated-declarations option.
20670 * print-tree.c (print_node): Show deprecated flag status.
20671 * toplev.c (warn_deprecated_decl): Defined.
20672 (W_options): Added "deprecated-declaration".
20673 * toplev.h (warn_deprecated_use): Extern declared.
20674 * tree.h (struct tree_common): Define deprecated_flag.
20675 (TREE_DEPRECATED): New macro to access flag.
20676 * cp/call.c (build_call): Test for deprecated calls.
20677 * cp/class.c (add_implicitly_declared_members): Set global
20678 flag to tell grokdeclarator to not issue deprecated warnings.
20679 * cp/cp-tree.h: Add extern for adding_implicit_members.
20680 * cp/decl.c (deprecated_states): New enum.
20681 (start_decl): Set deprecated_state based on attributes.
20682 (grokdeclarator): Test for deprecated uses, propagate attribute.
20683 * cp/lex.c (do_identifier): Test for deprecated primaries.
20684 * cp/typeck.c (build_component_ref): Test for deprecated fields.
20685
20686 2002-01-10 Ira Ruben <ira@apple.com>
20687
20688 Fix to assign attributes to inline member functions.
20689 * cp/decl.c (start_method): Handle attrlist.
20690
20691 2002-01-10 Kazu Hirata <kazu@hxi.com>
20692
20693 * combine.c (expand_field_assignment): Use subreg_lsb().
20694
20695 2002-01-10 David Edelsohn <edelsohn@gnu.org>
20696
20697 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
20698 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
20699 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
20700 Recurse for any operand of AND as long as constant is non-zero.
20701
20702 2002-01-10 Kazu Hirata <kazu@hxi.com>
20703
20704 * config/h8300/h8300.md: Remove constraints from expanders.
20705
20706 2002-01-10 Kazu Hirata <kazu@hxi.com>
20707
20708 * varasm.c: Fix formatting.
20709 * varray.c: Likewise.
20710 * vmsdbgout.c: Likewise.
20711 * xcoffout.c: Likewise.
20712
20713 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
20714
20715 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
20716 update edge probabilities to match.
20717
20718 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
20719
20720 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
20721 dependencies.
20722 * doc/languages.texi, doc/sourcebuild.texi: New files.
20723 * doc/configfiles.texi: Make a subsubsection. Update.
20724 * doc/configterms.texi: Add @node. Remove warning that this isn't
20725 instructions for building GCC.
20726 * doc/makefile.texi: Make a subsection.
20727 * doc/gccint.texi: Update.
20728
20729 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
20730
20731 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
20732
20733 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
20734
20735 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
20736
20737 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
20738
20739 * optabs.c (expand_fix): Look for wider integer modes first.
20740
20741 * i386.md (mov?f): Avoid the fake const double trick for medium
20742 memory model.
20743 (min?f*/max?f*): Prohibit memory operands for i387 variant.
20744 (fop_df_4): Disable for SSE compilation.
20745
20746 2002-01-10 Graham Stott <grahams@redhat.com>
20747
20748 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
20749 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
20750
20751 2002-01-10 Richard Henderson <rth@redhat.com>
20752
20753 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
20754
20755 2002-01-10 Richard Henderson <rth@redhat.com>
20756
20757 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
20758 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
20759
20760 2002-01-10 Kazu Hirata <kazu@hxi.com>
20761
20762 * combine.c (can_combine_p): Fix a comment typo.
20763
20764 2002-01-09 Zack Weinberg <zack@codesourcery.com>
20765
20766 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
20767 empty list correctly. Change loop index $t to $f for
20768 consistency with rest of Makefile.
20769
20770 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
20771
20772 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
20773 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20774
20775 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
20776 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
20777 (altivec_init_builtins): Same.
20778 (altivec_expand_unop_builtin): Return NULL_RTX on error.
20779 (altivec_expand_binop_builtin): Same.
20780 (altivec_expand_ternop_builtin): Same.
20781 (bdesc_dst): New.
20782
20783 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
20784 ("altivec_vctuxs"): Fix typo.
20785 ("altivec_vnmsubfp"): Same.
20786 ("altivec_dssall"): New.
20787 ("altivec_mfvscr"): New.
20788 ("altivec_dss"): New.
20789 ("altivec_lvsl"): New.
20790 ("altivec_lvsr"): New.
20791 ("altivec_dstt"): New.
20792 ("altivec_dstst"): New.
20793 ("altivec_dststt"): New.
20794 ("altivec_dst"): New.
20795
20796 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
20797 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20798
20799 2002-01-09 Richard Henderson <rth@redhat.com>
20800
20801 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
20802
20803 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
20804
20805 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
20806 function.
20807 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
20808 prototype.
20809 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
20810
20811 2002-01-09 Kazu Hirata <kazu@hxi.com>
20812
20813 * read-rtl.c: Fix formatting.
20814 * real.c: Likewise.
20815 * regclass.c: Likewise.
20816 * regrename.c: Likewise.
20817 * reg-stack.c: Likewise.
20818 * reload1.c: Likewise.
20819 * reload.c: Likewise.
20820 * rtl.c: Likewise.
20821
20822 2002-01-09 Kazu Hirata <kazu@hxi.com>
20823
20824 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
20825 to extract items in the expr_list chain.
20826
20827 2002-01-09 Richard Henderson <rth@redhat.com>
20828
20829 * config/vax/vax.c (vax_rtx_cost): Never abort.
20830
20831 * config/vax/vax.h (REAL_ARITHMETIC): Define.
20832
20833 2002-01-09 Jan Hubicka <jh@suse.cz>
20834
20835 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
20836
20837 2002-01-09 Richard Henderson <rth@redhat.com>
20838
20839 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
20840 Unify code from various alternatives.
20841
20842 2002-01-09 Richard Henderson <rth@redhat.com>
20843
20844 * regrename.c (copy_value): Ignore the copy if the source register
20845 is present in the value chain with a narrower mode.
20846
20847 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20848
20849 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
20850 for the c4x target. Also improve layout.
20851
20852 2002-01-09 Richard Henderson <rth@redhat.com>
20853
20854 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
20855 * config/m32r/m32r.md (and ior xor splitters): Swap operands
20856 to match insn patterns.
20857
20858 2002-01-09 Richard Henderson <rth@redhat.com>
20859
20860 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
20861 (copyprop_hardreg_forward_1): Likewise.
20862
20863 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
20864
20865 * pa.md (decrement_and_branch_until_zero): Change predicate for
20866 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
20867
20868 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
20869
20870 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
20871 gets undefined. For Darwin.
20872
20873 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20874
20875 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
20876
20877 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20878
20879 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
20880
20881 2002-01-08 Richard Henderson <rth@redhat.com>
20882
20883 * regrename.c (copy_value): Ignore overlapping copies.
20884
20885 2002-01-08 Richard Henderson <rth@redhat.com>
20886
20887 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
20888 as needed to avoid shared structure.
20889
20890 2002-01-08 Kazu Hirata <kazu@hxi.com>
20891
20892 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
20893 H8/300H and H8/S.
20894
20895 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20896
20897 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
20898 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
20899 documentation of obsolete macros.
20900 * system.h: Poison these macros.
20901 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
20902 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
20903 config/c4x/c4x.h, config/clipper/clipper.h,
20904 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
20905 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
20906 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
20907 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
20908 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
20909 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
20910 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20911 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
20912 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
20913 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20914 config/sparc/sparc.h, config/stormy16/stormy16.h,
20915 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
20916 definitions and commented out definitions of obsolete macros.
20917 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
20918 of MAX_INT_TYPE_SIZE.
20919
20920 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
20921
20922 * config/s390/s390.c (s390_preferred_reload_class): Never
20923 return ADDR_REGS if it isn't a subset of the given class.
20924 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
20925 FP_REGS, but all superclasses as well.
20926
20927 * config/s390/s390.c (s390_function_profiler): Fix thinko.
20928
20929 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
20930 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
20931 must not be a const_int.
20932
20933 2002-01-08 Richard Henderson <rth@redhat.com>
20934
20935 * Makefile.in (toplev.o): Depend on options.h.
20936 (gcc.o): Depend on specs.h.
20937
20938 2002-01-08 Jakub Jelinek <jakub@redhat.com>
20939
20940 * expr.c (store_expr): Convert VOIDmode constants back to target's
20941 mode.
20942
20943 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20944
20945 * doc/invoke.texi: Markup gcc as @command. Refer to
20946 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
20947 of http://gcc.gnu.org/thanks.html.
20948
20949 2002-01-08 Dale Johannesen <dalej@apple.com>
20950
20951 * config/rs6000/rs6000.md: Add missing int register
20952 target case to movdf_low.
20953
20954 2002-01-08 Zack Weinberg <zack@codesourcery.com>
20955
20956 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
20957 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
20958 (cppinit.o): Depend on except.h.
20959 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
20960 s-specs): New rules.
20961
20962 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
20963 Don't create specs.h/options.h/gencheck.h here. Remove
20964 unnecessary variable settings from last argument of AC_OUTPUT.
20965 * config.in, configure: Regenerate.
20966 * intl.c: Hardcode package name as "gcc".
20967
20968 * cppinit.c: Include except.h.
20969 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
20970 appropriate.
20971 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
20972 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
20973 (!)USING_SJLJ_EXCEPTIONS.
20974 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
20975
20976 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20977
20978 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
20979 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
20980 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
20981 documentation of obsolete macros.
20982 * system.h: Poison these macros.
20983 * config/d30v/d30v.h, config/ns32k/encore.h,
20984 config/stormy16/stormy16.h: Remove definitions and commented out
20985 definitions of obsolete macros.
20986
20987 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
20988
20989 * objc/objc-act.c (handle_class_ref): Mark the declaration of
20990 %sobjc_class_ref_%s as used - to prevent unwanted compiler
20991 warnings.
20992
20993 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
20994
20995 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
20996 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
20997 to insn adjusting stack/frame pointer.
20998 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
20999 accept operands that cause the insn to be non-splittable.
21000
21001 2002-01-08 Graham Stott <grahams@redhat.com>
21002
21003 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
21004 (C_TYPE_FIELDS_VOLATILE): Likewise.
21005 (C_TYPE_BEING_DEFINED): Likewise.
21006 (C_IS_RESERVED_WORD): Likewise.
21007 (C_TYPE_VARIABLE_SIZE): Likewise.
21008 (C_DECL_VARIABLE_SIZE): Likewise.
21009 (C_MISSING_PROTOTYPE_WARNED): Likewise.
21010 (C_SET_EXP_ORIGINAL_CODE): Likewise.
21011 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
21012 parenthesis.
21013 (C_DECL_ANTICIPATED): Likewise.
21014 (c_build_type_variant): Add parenthesis.
21015
21016 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
21017
21018 * gcc.c (option_map): Remove --version.
21019 (process_command): Handle -fversion following the GNU Coding
21020 Standards. Partially addresses PR other/704.
21021
21022 2002-01-08 Graham Stott <grahams@redhat.com>
21023
21024 * combine.c (combine_instructions): Fix typo.
21025
21026 2002-01-08 Graham Stott <grahams@redhat.com>
21027
21028 * debug.h: Use "tree" and "rtx" throughout.
21029
21030 * debug.c: Likewise.
21031
21032 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
21033
21034 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
21035 constant pool, use the pool's version of the symbol instead.
21036
21037 2002-01-07 Richard Henderson <rth@redhat.com>
21038
21039 * regrename.c (find_oldest_value_reg): Ignore the value chain if
21040 the original register was copied in a mode with a fewer number of
21041 hard registers than the desired mode.
21042 (copyprop_hardreg_forward_1): Likewise.
21043 (debug_value_data): Fix loop test.
21044 * toplev.c (parse_options_and_default_flags): Reenable
21045 -fcprop-registers at -O1.
21046
21047 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
21048
21049 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
21050 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
21051
21052 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
21053 predicates.
21054
21055 * config/rs6000/rs6000.md: Add altivec predicate patterns.
21056
21057 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
21058
21059 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
21060 (pa_output_function_prologue): Output local label at the beginning of
21061 the prologue when profiling.
21062 (hppa_profile_hook): Use the local label rather than the function label.
21063 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
21064
21065 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
21066
21067 * config/rs6000/rs6000.c (print_operand): Remove extra space.
21068 (altivec_expand_unop_builtin): Fix thinko.
21069 (altivec_expand_binop_builtin): Same.
21070 (altivec_expand_ternop_builtin): Same.
21071 (altivec_expand_builtin): Same.
21072
21073 2002-01-07 Richard Henderson <rth@redhat.com>
21074
21075 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
21076
21077 2002-01-07 Jason Merrill <jason@redhat.com>
21078
21079 * unwind-dw2.c (execute_cfa_program): Use < again.
21080
21081 2002-01-07 Jakub Jelinek <jakub@redhat.com>
21082
21083 * predict.c (combine_predictions_for_insn): Avoid division by zero.
21084
21085 2002-01-07 Jakub Jelinek <jakub@redhat.com>
21086
21087 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
21088 Don't allow -1 - x -> ~x simplifications in the first pass.
21089
21090 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
21091
21092 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
21093 arguments.
21094 (altivec_expand_binop_builtin): Same.
21095 (altivec_expand_unop_builtin): Same.
21096 (print_operand): Fix typo.
21097 (bdesc_1arg): Add vupk* variants.
21098
21099 * rs6000.h (rs6000_builtins): Add vupk* enums.
21100
21101 * rs6000.md: Add altivec_vupk* variants.
21102
21103 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
21104
21105 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
21106 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
21107 and last update dates.
21108
21109 2002-01-07 Janis Johnson <janis187@us.ibm.com>
21110
21111 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
21112
21113 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
21114
21115 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
21116 * config/avr/avr.h (CPP_SPEC): Likewise.
21117 (LINK_SPEC): Likewise.
21118 (CRT_BINUTILS_SPECS): Likewise.
21119 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
21120 * doc/invoke.texi (AVR Options): Document them.
21121
21122 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
21123
21124 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
21125 LABEL_NUSES.
21126
21127 2002-01-07 Graham Stott <grahams@redhat.com>
21128
21129 * config/i386/i386.h: Update copyright date.
21130 (HALF_PIC_PTR): Add parenthesis.
21131 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
21132 (CONSTANT_ALIGNMENT): Add parenthesis.
21133 (DATA_ALIGNMENT): Likewise.
21134 (LOCAL_ALIGNMENT): Likewise.
21135 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
21136 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
21137 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
21138 (HARD_REGNO_NREGS): Add paranethesis.
21139 (VALID_SSE_REG_MODE): Whitespace.
21140 (VALID_MMX_REG_MODE): Whitespace.
21141 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
21142 (ix86_hard_regno_mode_ok): Add parenthesis.
21143 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
21144 (RETURN_IN_MEMORY): Whitespace.
21145 (N_REG_CLASSES): Add parenthesis.
21146 (INTEGER_CLASS_P): Add parenthesis and wrap.
21147 (FLOAT_CLASS_P): Likewise.
21148 (SSE_CLASS_P): Likewise.
21149 (MMX_CLASS_P): Likewise.
21150 (MAYBE_INTEGER_CLASS_P): Likewise.
21151 (MAYBE_FLOAT_CLASS_P): Likewise.
21152 (MAYBE_SSE_CLASS_P): Likewise.
21153 (MAYBE_MMX_CLASS_P): Likewise.
21154 (Q_CLASS_P): Likewise.
21155 (GENERAL_REGNO_P): Uppercase macro parameter.
21156 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
21157 (FP_REGNO_P): Likewise.
21158 (ANY_FP_REGNO_P): Uppercase macro parameter.
21159 (SSE_REGNO_P): Likewise.
21160 (SSE_REGNO): Likewise.
21161 (SSE_REG_P): Likewise.
21162 (SSE_FLOAT_MODE_P): Likewise.
21163 (MMX_REGNO_P): Likewise.
21164 (MMX_REG_P):Likewise.
21165 (STACK_REG_P): Likewise.
21166 (NON_STACK_REG_P): Likewise.
21167 (STACK_TOP_P): Likewise.
21168 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
21169 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
21170 (SECONDARY_MEMORY_NEEDED): Likewise.
21171 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
21172 (MD_ASM_CLOBBERS): Whitespace and wrap.
21173 (MUST_PASS_IN_STACK): Whitespace and wrap.
21174 (RETURN_POPS_ARGS): Add parenthesis.
21175 (INIT_CUMULATIVE_ARGS): Likewise.
21176 (FUNCTION_ARG): Likewise.
21177 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
21178 (SETUP_INCOMING_VARARGS): Likewise.
21179 (BUILD_VA_LIST_TYPE): Add parenthesis.
21180 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
21181 parenthsis.
21182 (EXPAND_BUILTIN_VA_ARG): Likewise.
21183 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
21184 (INITIALIZE_TRAMPOLINE): Add parenthesis.
21185 (INITIAL_ELIMINATION_OFFSET): Likewise.
21186 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
21187 (REGNO_OK_FOR_BASE_P): Likewise.
21188 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
21189 (REGNO_OK_FOR_DIREG_P): Likewise.
21190 (REG_OK_FOR_INDEX_P): Whitespace.
21191 (REG_OK_FOR_BASE_P): Whitespace.
21192 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
21193 parenthesis.
21194 (FIND_BASE_TERM): Fix typo.
21195 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
21196 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
21197 (SYMBOLIC_CONST; Whitespace.
21198 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
21199 (ENCODE_SECTION_INFO): Whitespace.
21200 (FINALIZE_PIC): Remove do { ... } while (0).
21201 (PROMOTE_MODE): Wrap in do { ... } while (0).
21202 (CONST_COSTS): Whitespace.
21203 (RTX_COSTS): Add paramethesis, whitespace and wrap.
21204 (REGISTER_MOVE_COST): Add parenthesis.
21205 (MEMORY_MOVE_COST): Likewise.
21206 (EXTRA_CC_MODES): Whitespace.
21207 (SELECT_CC_MODE): Add parenthesis and whitespace.
21208 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
21209 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
21210 (ASM_OUTPUT_LABEL): Add paramethesis.
21211 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
21212 (ASM_OUTPUT_REG_POP): Likewise.
21213 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
21214 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21215
21216 * config/i386/i386.c: Update copyright.
21217 (CHECK_STACK_LIMIT): Add parenthesis.
21218 (AT_BP): Uppercase macro parameter.
21219 (x86_64_int_parameter_registers): Constify.
21220 (x86_64_int_return_registers): Likewise.
21221 (ix86_compare_op0): Use rtx.
21222 (construct_container): Constify INTREG parameter.
21223 (function_arg): Use rtx.
21224
21225 * diagnostic.h: Update copyright date.
21226 (output_buffer_state): Add parenthesis.
21227 (output_buffer_format_args): Likewise.
21228
21229 * combine.c (combine_instructions): Replace XEXP (links, 0)
21230 with link.
21231
21232 2002-01-06 H.J. Lu <hjl@gnu.org>
21233
21234 * cfgcleanup.c (thread_jump): Fix 2 typos.
21235
21236 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
21237
21238 * config.gcc: Add support for --enable-altivec.
21239
21240 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
21241
21242 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
21243
21244 2002-01-06 Jakub Jelinek <jakub@redhat.com>
21245
21246 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
21247 __objc_class_name_*.
21248
21249 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
21250
21251 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
21252
21253 2002-01-06 Richard Henderson <rth@redhat.com>
21254
21255 * reorg.c (emit_delay_sequence): Remove death notes, not merely
21256 nop them out. Increment label reference count for REG_LABEL.
21257 (fill_slots_from_thread): Frob label reference count around
21258 delete_related_insns.
21259
21260 2002-01-05 Richard Henderson <rth@redhat.com>
21261
21262 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
21263 jump threading.
21264
21265 2002-01-05 Richard Henderson <rth@redhat.com>
21266
21267 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
21268 * integrate.c (output_inline_function): Likewise.
21269 * toplev.c (rest_of_compilation): Do it here instead. Move call
21270 to remove_unnecessary_notes after emitting abstract instance.
21271 Force an emitted nested function to have its parent emited as well.
21272 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
21273 for null.
21274 (rtl_for_decl_location): Do not look at reload data structures
21275 before reload has run.
21276
21277 2002-01-05 Kazu Hirata <kazu@hxi.com>
21278
21279 * cse.c: Fix formatting.
21280 * dwarf2asm.c: Likewise.
21281 * dwarf2out.c: Likewise.
21282 * explow.c: Likewise.
21283 * expmed.c: Likewise.
21284 * function.c: Likewise.
21285 * gcov.c: Likewise.
21286 * gencheck.c: Likewise.
21287 * genrecog.c: Likewise.
21288 * ggc-common.c: Likewise.
21289 * ggc-page.c: Likewise.
21290 * global.c: Likewise.
21291
21292 2002-01-05 Kazu Hirata <kazu@hxi.com>
21293
21294 * combine.c: Fix formatting.
21295
21296 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
21297
21298 PR middle-end/1557
21299 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
21300
21301 2002-01-05 David Edelsohn <edelsohn@gnu.org>
21302
21303 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
21304 as 1 for __powerpc64__ as well.
21305
21306 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
21307
21308 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
21309 return it.
21310
21311 2002-01-05 Daniel Berlin <dan@dberlin.org>
21312
21313 * lcm.c: Revert change, due to performance regression it causes on
21314 SPEC because it's slightly more conservative (sigh, I hate
21315 edge-based LCM).
21316
21317 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
21318
21319 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
21320
21321 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
21322
21323 * doc/cppinternals.texi: Update.
21324
21325 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
21326
21327 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
21328 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
21329 negatives.
21330 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
21331 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
21332 kludge for pre-october-14th mmix versions to handle new-found bug
21333 with PUSHJ/PUSHGO and the register stack.
21334 * config/mmix/mmix.h (struct machine_function): Rename member
21335 has_call_value_without_parameters to has_call_without_parameters.
21336 All referers changed.
21337 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
21338 TARGET_MASK_BRANCH_PREDICT): New macros.
21339 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
21340 -mno-reg-stack-fill-bug-workaround.
21341 * config/mmix/mmix.md ("call"): Set struct machine member
21342 has_call_without_parameters.
21343
21344 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
21345
21346 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
21347
21348 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
21349
21350 * cfgcleanup.c: Include tm_p.h
21351 (mark_effect): Fix handling of hard register; fix handling of SET
21352
21353 2002-01-04 Kazu Hirata <kazu@hxi.com>
21354
21355 * config/h8300/h8300.md (anonymous patterns): Check that
21356 operands are registers before using REGNO on them.
21357
21358 2002-01-03 Roland McGrath <roland@frob.com>
21359
21360 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
21361
21362 2002-01-04 Jakub Jelinek <jakub@redhat.com>
21363
21364 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
21365 * c-common.h (genrtl_expr_stmt_value): Likewise.
21366 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
21367 (expand_expr_stmt_value): Add maybe_last argument.
21368 Don't warn about statement with no effect if it is the last statement
21369 in expression statement.
21370 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
21371 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
21372 expand_expr_stmt_value.
21373 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
21374 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
21375 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
21376 as maybe_last to expand_expr_stmt_value.
21377
21378 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
21379
21380 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
21381 be passed in, do not build it.
21382 (c_begin_if_stmt): New function.
21383 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
21384 * c-common.h (c_expand_start_cond): Update prototype.
21385 (c_begin_if_stmt): Prototype new function.
21386 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
21387 * c-parse.in (if_prefix): Use c_begin_if_stmt,
21388 c_begin_while_stmt and c_finish_while_stmt_cond.
21389
21390 2002-01-04 William Cohen <wcohen@redhat.com>
21391
21392 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
21393 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
21394 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21395 * config/pa/som.h (ASM_FILE_START): Likewise.
21396
21397 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
21398
21399 * lcm.c: Include df.h.
21400 Add available_transfer_function prototype.
21401 (compute_available): Rework to use iterative dataflow framework.
21402 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
21403 with bb_info in df.h
21404 (available_transfer_function): New function.
21405
21406 * Makefile.in (lcm.o): add df.h to dependencies.
21407
21408 2002-01-04 Richard Henderson <rth@redhat.com>
21409
21410 * config/alpha/alpha.c (some_operand): Accept HIGH.
21411 (input_operand): Likewise; accept simple references to globals.
21412 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
21413 (alpha_const_double_ok_for_letter_p): Likewise.
21414 (alpha_extra_constraint): Likewise.
21415 (alpha_preferred_reload_class): Likewise. Do not force
21416 symbolic constants to memory.
21417 (alpha_legitimate_address_p): Accept simple references
21418 to small_symbolic_operand.
21419 (alpha_legitimize_address): New arg scratch. Be prepared to be
21420 called when no_new_pseudos. Emit simple symbolic references.
21421 Split integers into low, high, and rest.
21422 (alpha_expand_mov): Use alpha_legitimize_address.
21423 (some_small_symbolic_mem_operand): New.
21424 (split_small_symbolic_mem_operand): New.
21425 * config/alpha/alpha-protos.h: Update.
21426 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
21427 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
21428 (EXTRA_CONSTRAINT): Likewise.
21429 (PREFERRED_RELOAD_CLASS): Likewise.
21430 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
21431 (PREDICATE_CODES): Update.
21432 * config/alpha/alpha.md: New post-reload splitters to convert
21433 simplfied symbolic operands to the form that references $29.
21434 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
21435 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
21436
21437 2002-01-03 Richard Henderson <rth@redhat.com>
21438
21439 * local-alloc.c (function_invariant_p): Update commentary.
21440
21441 2002-01-04 H.J. Lu <hjl@gnu.org>
21442
21443 * toplev.c (rest_of_compilation): Fix a typo when calling
21444 cleanup_cfg.
21445
21446 2002-01-03 Kazu Hirata <kazu@hxi.com>
21447
21448 * c-common.c: Fix formatting.
21449 * diagnostic.c: Likewise.
21450 * doloop.c: Likewise.
21451 * dwarf2out.c: Likewise.
21452
21453 2002-01-03 Kazu Hirata <kazu@hxi.com>
21454
21455 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
21456 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
21457
21458 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
21459
21460 * cpperror.c: Update comments and copyright.
21461 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
21462 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
21463
21464 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
21465
21466 * collect2.c (main): Use strcmp when testing for "-shared".
21467
21468 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
21469
21470 * cppmacro.c: Don't include intl.h. Update comments.
21471 (new_number_token): Allocate enough buffer for 64-bit unsigned
21472 integers; update prototype.
21473 * cppmain.c: Update comments.
21474
21475 2002-01-03 William Cohen <wcohen@redhat.com>
21476
21477 * function.h (struct function): Add profile.
21478 (current_function_profile): New.
21479 doc/extend.texi: Update documentation.
21480 * final.c (final_start_function): Use current_function_profile
21481 instead of profile_flag.
21482 (profile_after_prologue): Likewise.
21483 * function.c (expand_function_start): Likewise.
21484 (expand_function_start): Likewise.
21485 * config/alpha/alpha.c (direct_call_operand):
21486 (alpha_does_function_need_gp): Likewise.
21487 (alpha_expand_prologue): Likewise.
21488 * config/arm/arm.c (arm_expand_prologue): Likewise.
21489 thumb_expand_prologue: Likewise.
21490 * config/d30v/d30v.c (d30v_stack_info): Likewise.
21491 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
21492 (fr30_expand_prologue): Likewise.
21493 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
21494 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
21495 * config/i386/i386.h (FINALIZE_PIC): Likewise.
21496 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
21497 * config/i960/i960.c (i960_output_function_prologue): Likewise.
21498 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
21499 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
21500 (m32r_expand_prologue): Likewise.
21501 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
21502 (m88k_expand_prologue): Likewise.
21503 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
21504 * config/mips/mips.c (compute_frame_size): Likewise.
21505 (mips_expand_prologue): Likewise.
21506 (mips_can_use_return_insn): Likewise.
21507 * config/pa/elf.h (ASM_FILE_START): Likewise.
21508 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
21509 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21510 * config/pa/som.h (ASM_FILE_START): Likewise.
21511 * config/romp/romp.c (romp_using_r14): Likewise.
21512 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
21513 (rs6000_stack_info): Likewise.
21514 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21515 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
21516 * config/v850/v850.c (compute_register_save_size): Likewise.
21517
21518 2002-01-03 Jakub Jelinek <jakub@redhat.com>
21519
21520 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
21521 gen_lowpart_common fails, use gen_lowpart_SUBREG.
21522
21523 2002-01-03 Turly O'Connor <turly@apple.com>
21524
21525 * darwin.c (machopic_output_possible_stub_label): Don't generate
21526 stub routines for pseudo-stubs which we've just defined.
21527
21528 2002-01-03 Kazu Hirata <kazu@hxi.com>
21529
21530 * builtins.c: Fix formatting.
21531 * c-typeck.c: Likewise.
21532 * combine.c: Likewise.
21533 * expr.c: Likewise.
21534 * loop.c: Likewise.
21535
21536 2002-01-03 Andreas Schwab <schwab@suse.de>
21537
21538 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
21539 and return true if _cpp_push_next_buffer pushed a new include
21540 file.
21541 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
21542 _cpp_pop_file_buffer did not push a new file.
21543 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
21544
21545 2002-01-02 Eric Christopher <echristo@redhat.com>
21546
21547 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
21548 FIND_REG_INC_NOTE call. Update copyright.
21549 * loop.c (canonicalize_condition): Ditto.
21550 * reorg.c (delete_scheduled_jump): Ditto.
21551
21552 2002-01-03 Kazu Hirata <kazu@hxi.com>
21553
21554 * gcse.c: Fix formatting.
21555
21556 2002-01-03 Graham Stott <grahams@redhat.com>
21557
21558 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
21559 forward defs for struct tags rtx_def, union_tree, rtvec_def
21560 also output corresponding typedefs for rtx, tree, and rtvec.
21561
21562 * system.h: Move forward defs for struct tags rtx_def, union_tree,
21563 rtvec_def along with corresponding typedefs for rtx, tree, and
21564 rtvec to config.h, hconfig.h, tconfig.h.
21565
21566 2002-01-03 Graham Stott <grahams@redhat.com>
21567
21568 * tree.h: Update copyright date.
21569 (IS_EXPR_CODE_CLASS): Add parenthesis.
21570 (TREE_SET_CODE): Add whitespace.
21571 (TREE_CHECK): Add parenthesis.
21572 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
21573 (CST_OR_CONSTRUCTOR_CHECK):
21574 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
21575 (TREE_SYMBOL_REFERENCED): Whitespace.
21576 (INT_CST_LT): Likewise.
21577 (INT_CST_LT_UNSIGNED): Likewise.
21578 (tree_real_cst): Unwrap comment.
21579 (tree_string): Likewise.
21580 (tree_complex): Likewise.
21581 (IDENTIFIER_POINTER): correct cast.
21582 (SAVE_EXPR_CONTEXT): Whitespace.
21583 (EXPR_WFL_FILENAME_NODE): Likewise.
21584 (EXPR_WFL_FILENAME): Remove parenthesis.
21585 (DECL_ORIGIN): Add parenthesis.
21586 (DECL_FROM_INLINE): Use NULL_TREE.
21587 (build_int_2): Whitespace.
21588 (build_type_variant): Add parenthesis.
21589
21590 * gcc/jcf-parse.c: Update copyright date.
21591 (yyparse): Constify resource_filename.
21592
21593 2002-01-03 Graham Stott <grahams@redhat.com>
21594
21595 * rtl.h: Update copyright date.
21596 (RTL_CHECK1): Wrap long line.
21597 (RTL_CHECK2): Likewise.
21598 (RTL_CHECKC1): Wrap long line and whitespace.
21599 (RTL_CHECKC2): Likewise.
21600 (XWINT): Whitespace.
21601 (XINT): Likewise.
21602 (XSTR): Likewise.
21603 (XEXP): Likewise.
21604 (XVEC): Likewise.
21605 (XMODE): Likewise.
21606 (XBITMAP): Likewise.
21607 (XTREE): Likewise.
21608 (XBBDEF): Likewise.
21609 (XTMPL): Likewise.
21610 (X0WINT): Likewise.
21611 (X0INT):Likewise.
21612 (X0UINT): Likewise.
21613 (X0STR): Likewise.
21614 (X0EXP): Likewise.
21615 (X0VEC): Likewise.
21616 (X0MODE): Likewise.
21617 (X0BITMAP): Likewise.
21618 (X0TREE): Likewise.
21619 (X0BBDEF): Likewise.
21620 (X0ADVFLAGS): Likewise.
21621 (X0CSELIB): Likewise.
21622 (X0MEMATTR): Likewise.
21623 (XCWINT): Likewise.
21624 (XCINT): Likewise.
21625 (XCUINT): Likewise.
21626 (XCSTR): Likewise.
21627 (XCEXP): Likewise.
21628 (XCVEC): Likewise.
21629 (XCMODE): Likewise.
21630 (XCBITMAP): Likewise.
21631 (XCTREE): Likewise.
21632 (XCBBDEF): Likewise.
21633 (XCADVFLAGS): Likewise.
21634 (XCCSELIB): Likewise.
21635 (XC2EXP): Likewise.
21636 (INSN_UID): Likewise.
21637 (PREV_INSN): Likewise.
21638 (PATTERN): Likewise.
21639 (INSN_CODE): Likewise.
21640 (PUT_REG_NOTE_KIND): Likewise.
21641 (CODE_LABEL_NUMBER): Likewise.
21642 (NOTE_SOURCE_FILE): Likewise.
21643 (NOTE_BLOCK): Likewise.
21644 (NOTE_EH_HANDLER): Likewise.
21645 (NOTE_RANGE_INFO): Likewise.
21646 (NOTE_LIVE_INFO): Likewise.
21647 (NOTE_BASIC_BLOCK): Likewise.
21648 (NOTE_EXPECTED_VALUE): Likewise.
21649 (NOTE_LINE_NUMBER): Likewise.
21650 (LABEL_NAME): Likewise.
21651 (LABEL_NUSES): Likewise.
21652 (LABEL_ALTERNATE_NAME): Likewise.
21653 (ADDRESSOF_DECL): Likewise.
21654 (JUMP_LABEL): Likewise.
21655 (LABEL_NEXTREF): Likewise.
21656 (REGNO): Likewise.
21657 (ORIGINAL_REGNO: Likewise.
21658 (HARD_REGISTER_NUM_P): Add parenthesis.
21659 (SUBREG_REG): Whitespace.
21660 (SUBREG_BYTE): Likewise.
21661 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
21662 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
21663 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
21664 (ASM_OPERANDS_INPUT_VEC): Likewise.
21665 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
21666 (ASM_OPERANDS_INPUT): Likewise.
21667 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
21668 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
21669 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
21670 (ASM_OPERANDS_INPUT_MODE): Likewise.
21671 (ASM_OPERANDS_SOURCE_FILE): Likewise.
21672 (ASM_OPERANDS_SOURCE_LINE): Likewise.
21673 (MEM_SET_IN_STRUCT_P): Minor reformat.
21674 (TRAP_CONDITION): Whitespace.
21675 (TRAP_CODE): Likewise.
21676 (COND_EXEC_TEST): Likewise.
21677 (COND_EXEC_CODE): Likewise.
21678 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
21679 (PHI_NODE_P): Add parenthesis.
21680 (plus_constant): Whitespace and add parenthesis.
21681
21682 2002-01-03 Kazu Hirata <kazu@hxi.com>
21683
21684 * config/avr/avr.c: Fix comment typos.
21685 * config/c4x/c4x.md: Likewise.
21686 * config/dsp16xx/dsp16xx.h: Likewise.
21687 * config/dsp16xx/dsp16xx.md: Likewise.
21688 * config/i386/i386.md: Likewise.
21689 * config/ia64/ia64.c: Likewise.
21690 * config/m32r/m32r.h: Likewise.
21691 * config/m68hc11/m68hc11.md: Likewise.
21692 * config/mmix/mmix.c: Likewise.
21693 * config/mn10200/mn10200.c: Likewise.
21694 * config/romp/romp.c: Likewise.
21695 * config/sh/sh.c: Likewise.
21696 * config/stormy16/stormy16.c: Likewise.
21697 * config/stormy16/stormy16.h: Likewise.
21698 * config/stormy16/stormy16.md: Likewise.
21699
21700 2002-01-03 Graham Stott <grahams@redhat.com>
21701
21702 * loop.h: Update copyright date.
21703 (LOOP_MOVABLES): Fix typo.
21704 (LOOP_REGS): Likewise.
21705 (LOOP_IVS): Likewise.
21706
21707 2002-01-03 Graham Stott <grahams@redhat.com>
21708
21709 * cppinit.c: Update copyright date.
21710 Don't include output.h
21711 * Makefile.in: Update copyright date.
21712 Update dependency.
21713
21714 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
21715
21716 PR c/5226
21717 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
21718 (-pthread) Add to RS/6000 options.
21719
21720 2002-01-02 Kazu Hirata <kazu@hxi.com>
21721
21722 * except.c: Fix comment typos.
21723 * loop.c: Likewise.
21724 * varasm.c: Likewise.
21725 * doc/tm.texi: Fix a typo.
21726
21727 2002-01-02 Jakub Jelinek <jakub@redhat.com>
21728
21729 * c-typeck.c (output_init_element): Allow initializing static storage
21730 duration objects with compound literals.
21731
21732 2002-01-02 Richard Henderson <rth@redhat.com>
21733
21734 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
21735 after abusing it.
21736
21737 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21738
21739 * gcc.c (default_compilers): Const-ify.
21740 * mips-tdump.c (stab_names): Likewise.
21741 * mips-tfile.c (map_coff_types, map_coff_storage,
21742 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
21743 pseudo_ops_t, pseudo_ops): Likewise.
21744 * protoize.c (default_include): Likewise
21745
21746 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
21747 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
21748 Add array size in declaration.
21749 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
21750 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
21751 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
21752 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
21753 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
21754 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
21755 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
21756 emtens, make_nan): Const-ify.
21757 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
21758 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
21759
21760 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
21761
21762 * config.gcc (ia64-*-*): Set extra_headers.
21763 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
21764 * config/alpha/t-osf: Remove.
21765 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
21766
21767 2002-01-02 David Edelsohn <edelsohn@gnu.org>
21768
21769 * config/rs6000/t-aix43: Revert previous change.
21770
21771 2002-01-02 Jason Merrill <jason@redhat.com>
21772
21773 * c-decl.c (c_expand_body): Call outlining_inline_function when
21774 emitting an inline function out of line.
21775
21776 2002-01-02 Richard Henderson <rth@redhat.com>
21777
21778 * dwarf2out.c (limbo_die_node): Add created_for member.
21779 (new_die): New argument created_for. Update all callers.
21780 (mark_limbo_die_list): New.
21781 (dwarf2out_init): Register limbo_die_list as a root.
21782 (dwarf2out_finish): Force insert limbo dies into their function
21783 context.
21784
21785 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
21786
21787 PR c++/5089
21788 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
21789
21790 2002-01-02 Kazu Hirata <kazu@hxi.com>
21791
21792 * config/h8300/fixunssfsi.c: Update copyright.
21793 Fix comment typos.
21794 Fix formatting.
21795 * config/h8300/h8300.c: Update copyright.
21796 Eliminate warnings.
21797
21798 2002-01-02 Kazu Hirata <kazu@hxi.com>
21799
21800 * config/romp/romp.c: Fix comment formatting.
21801 * config/romp/romp.h: Likewise.
21802 * config/romp/romp.md: Likewise.
21803 * config/s390/s390.c: Likewise.
21804 * config/stormy16/stormy16.c: Likewise.
21805 * config/stormy16/stormy16.h: Likewise.
21806
21807 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
21808
21809 * c-common.h (genrtl_expr_stmt_value): Declare.
21810 * c-semantics.c (genrtl_goto_stmt): Redirect to...
21811 (genrtl_goto_stmt_value): ... this new function. Pass new
21812 argument down to expand_expr_stmt_value, taking
21813 TREE_ADDRESSABLE into account.
21814 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
21815 STMT_EXPR as addressable, i.e., one whose result we want.
21816 * expr.c (expand_expr): Don't save expression statement value
21817 of labeled_blocks or loop_exprs.
21818 * stmt.c (expand_expr_stmt): Redirect to...
21819 (expand_expr_stmt_value): ... this new function. Use new
21820 argument to tell whether to save expression value.
21821 (expand_end_stmt_expr): Reset last_expr_type and
21822 last_expr_value if we don't have either.
21823 * tree-inline.c (declare_return_variable): Mark its use
21824 statement as addressable.
21825 * tree.h: Document new use of TREE_ADDRESSABLE.
21826 (expand_expr_stmt_value): Declare.
21827
21828 2002-01-01 Tom Rix <trix@redhat.com>
21829
21830 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
21831 rs6000_emit_allocate_stack.
21832
21833 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
21834
21835 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
21836 ${srcdir}/ginclude/ to every entry in extra_headers.
21837 * configure: Regenerate.
21838 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
21839 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
21840 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
21841 * ginclude/proto.h: Rename to config/convex/proto.h.
21842
21843 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21844
21845 * attribs.c (handle_vector_size_attribute): Use host_integerp
21846 and tree_int_cst; remove warnings.
21847 * caller-save.c (insert_restore): Add cast to get rid of warning.
21848 (insert_save): Likewise.
21849 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
21850 * regmove.c (find_matches): Add temporary var to kill a warning.
21851
21852 2002-01-01 Douglas B Rupp <rupp@gnat.com>
21853
21854 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
21855 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
21856 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
21857 (vms-dwarf2eh.o): Add Makefile rule.
21858 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
21859 * config/alpha/vms-dwarf2eh.asm: New file.
21860
21861 * gcc.c (delete_if_ordinary): Delete all versions.
21862
21863 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
21864
21865 * config/mmix/mmix.md: Update FIXME to not mention
21866 define_constants.
21867 (MMIX_rJ_REGNUM): New define_constants constant.
21868 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
21869 "*movdicc_real"): Adjust contraints formatting.
21870 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
21871 for branch prediction.
21872 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
21873 output template.
21874 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
21875 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
21876 number. Delete related FIXMEs.
21877 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
21878 from number to MMIX_rJ_REGNUM.
21879 (TARGET_MASK_BRANCH_PREDICT): New.
21880 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
21881 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
21882 value. Add -mbranch-predict and -mno-branch-predict.
21883 (TARGET_VERSION): Drop date.
21884 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
21885 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
21886 for finding out global symbols.
21887 (mmix_asm_output_labelref): Revert condition for global symbol.
21888 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
21889 (mmix_print_operand_punct_valid_p): A '+' is valid.
21890
21891 See ChangeLog.6 for earlier changes.