* config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
[official-gcc.git] / gcc / ChangeLog
blob704ed18abd7a885a523bc33b566a6608139ce20a
1 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
3         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
4         in FPR as preference.
5         (fctiwz): Same.
6         (floatdidf2, fix_truncdfdi2): Same.
7         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
8         (floatditf2): Same.
9         (floatsitf2, fix_trunctfsi2): SImode in GPR.
10         (ctrdi): Remove FPR alternative and splitter.
12 2002-07-03  Will Cohen  <wcohen@redhat.com>
14         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
16 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
18         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
19         than UNITS_PER_WORD, unless this is little endian and the first unit
20         in this word.  Let extract_bit_field decide how to load an element.
21         Force arguments to matching mode.
22         (expand_vector_unop): Likewise.
24         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
25         consist of word_mode elements.
26         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
27         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
28         (build_unary_op): Allow vector types for BIT_NOT_EPR.
29         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
30         CONST_VECTOR.
31         * optabs.c (expand_vector_binop): Try to perform operation in
32         smaller vector modes with same inner size.  Add handling of AND, IOR
33         and XOR.  Reject expansion to inner-mode sized scalars when using
34         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
35         (expand_vector_unop): Try to perform operation in smaller vector
36         modes with same inner size.  Add handling of one's complement.
37         When there is no vector negate operation, try a vector subtract
38         operation.  Use simplify_gen_subreg on constants.
39         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
40         constants into smaller vectors with same inner mode, and to
41         integer CONST_DOUBLEs.
43 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
45         * c-parse.in (parsing_iso_function_signature): New variable.
46         (extdef_1): New, copied from...
47         (extdef): ... here.  Reset parsing_iso_function_signature.
48         (old_style_parm_decls):  Reset parsing_iso_function_signature.
49         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
50         Warn about ISO C style function definitions.
51         (nested_function, notype_nested_function): Reset
52         parsing_iso_function_signature.
53         (parmlist_2): Set parsing_iso_function_signature.
55         * doc/invoke.texi (-Wtraditional): Document new behavior.
57 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
59         * config.gcc (mips*el-*-*): Use tm_defines to set
60         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
61         * config/mips/little.h: Remove.
63 2002-07-02 Devang Patel <dpatel@apple.com>
65         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
66         object as parameter. Prevent something like 'NSObject' to be
67         used as the type for a method argument.
69 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
71         * cpptrad.c: Update comment.
73 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
74         
75         * doc/cpp.texi: Update for traditional preprocessing changes.
76         * goc/cppopts.texi: Similarly.
78 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
80         * c-parse.in (designator): Enable designated initializers if ObjC.
81         (objcmessageexpr): Remove references to objc_receiver_context.
82         * objc/objc-act.h (objc_receiver_context): Remove decl.
83         * objc/objc-act.c (objc_receiver_context): Remove.
84         (lookup_objc_ivar): Test objc_method_context instead of
85         objc_receiver_context.
87 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
89         * sh.c (print_operand, case 'N'): Allow zero vector.
90         (arith_reg_or_0_operand): Likewise.
91         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
92         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for 
93         IOR, XOR, PLUS and SET and take their respective constant
94         ranges into account.
95         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
96         * sh.md (subdi3, subdi3_media): Allow zero operand.
97         (movv8qi_i+3): Only vector that is not split is the zero vector.
98         Fix operand 3 to simplify_subreg.
99         (movv2si_i): Split alternative 1.
100         (mshfhi_l_di_rev+1): New splitter.
102 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
104         PR preprocessor/7029
105         * cppinit.c (cpp_handle_option):  Suppress warnings with an
106         implicit "-w" for "-M" and "-MM".
107         * doc/cppopts.texi: Update.
109 2002-07-01  Roger Sayle  <roger@eyesopen.com>
111         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
112         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
113         builtin_function.
115 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
117         * README.Portability: Fix typos.
119 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
121         PR target/7177
122         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
123         of indirections for register inside sign-extended mem part.
125 2002-07-01  Roger Sayle  <roger@eyesopen.com>
127         * tree.h:  Modify builtin_function interface to take an extra
128         argument ATTRS, which is a tree representing an attribute list.
130         * c-decl.c (builtin_function): Accept additional parameter.
131         * objc/objc-act.c (builtin_function): Likewise.
132         * f/com.c (builtin_function): Likewise.
133         * java/decl.c (builtin_function): Likewise.
134         * ada/utils.c (builtin_function): Likewise.
135         * cp/decl.c (builtin_function): Likewise.
136         (builtin_function_1): Likewise.
138         * c-common.c (c_common_nodes_and_builtins): Pass an additional
139         NULL_TREE argument to builtin_function.  (builtin_function_2):
140         Likewise.
141         * cp/call.c (build_java_interface_fn_ref): Likewise.
142         * objc/objc-act.c (synth_module_prologue): Likewise.
143         * java/decl.c (java_init_decl_processing): Likewise.
144         * f/com.c (ffe_com_init_0): Likewise.
146         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
147         NULL_TREE argument to builtin_function.
148         * config/arm/arm.c (def_builtin): Likewise.
149         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
150         * config/i386/i386.c (def_builtin): Likewise.
151         * config/ia64/ia64.c (def_builtin): Likewise.
152         * config/rs6000/rs6000.c (def_builtin): Likewise.
154 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
156         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
157         * config/mips/t-isa3264: Likewise.
158         * config/mmix/t-mmix: Likewise.
160 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
162         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
164 2002-07-01  Roger Sayle  <roger@eyesopen.com>
166         PR opt/4046
167         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
168         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
169         B are truth values.
171 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
173         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
175 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
177         * README.Portability (Function prototypes): Give an example of
178         declaring and defining a function with no arguments.
180         * README.Portability (Function prototypes): Document new
181         variable-argument function macros.
183 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
185         * sh.c (langhooks.h): Include.
186         (sh_init_builtins, sh_media_init_builtins): New functions.
187         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
188         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
189         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
190         (builtin_description): New struct tag.
191         (signature_args, bdesc): New arrays.
192         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
193         (print_operand): Add 'N' modifier.
194         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
195         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
196         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
197         (CONST_COSTS): Add special case for SHmedia AND.
198         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
199         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
200         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
201         target_operand can also be const or unspec.
202         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
203         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
204         (attribute type): Add new types.
205         (anddi3): Add splitter.
206         (movdi_const_16bit+1): Add code to handle vector constants and
207         bitmasks efficiently.
208         (shori_media): Have generator function made.
209         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
210         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
211         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
212         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
213         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
214         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
215         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
216         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
217         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
218         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
219         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
220         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
221         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
222         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
223         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
224         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
225         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
226         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
227         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
228         (ftrv): Likewise.
230         (fpu_switch+1, fpu_switch+2): Remove constraint.
232 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
234         * tree.c (build_function_type_list): Update function comment.
235         Rename first argument to return_type.
237 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
239         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
240         tradcif.y and related files.
242 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
244         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
246 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
248         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
250 2002-06-30  Devang Patel  <dpatel@apple.com>
252         * objc/objc-act.c (finish_file): Avoid finish_objc() if
253         -fsyntax-only.
255 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
256                           Frank Ch. Eigler  <fche@redhat.com>
257                           Matthew Green  <mrg@redhat.com>
258                           Richard Henderson <rtl@redhat.com>
259                           Dave Hudson  <dave.hudson@ubicom.com>
260                           Jeff Johnston  <jjohnstn@redhat.com>
261                           Alan Lehotsky <apl@alum.mit.edu>
262                           Bernd Schmidt  <bernds@redhat.com>
263                           Graham Stott  <grahams@redhat.com>
264                           
265         * doc/extend.texi: Add ip2k port to description of attribute
266         naked.
267         * doc/install.texi (Specific): Add ip2k description.
268         * doc/install-old.texi (Configurations): Add ip2k to possible
269         cpu types.
270         * doc/md.texi: Document ip2k constraints.
271         * config/ip2k/crt0.S: New file.
272         * config/ip2k/ip2k-protos.h: New file.
273         * config/ip2k/ip2k.c: New file.
274         * config/ip2k/ip2k.h: New file.
275         * config/ip2k/ip2k.md: New file.
276         * config/ip2k/libgcc.S: New file.
277         * config/ip2k/t-ip2k: New file.
279 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
281         * config/mmix/mmix.md ("return"): New pattern.
282         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
283         (TARGET_USE_RETURN_INSN): New macros.
284         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
285         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
286         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
287         (MMIX_POP_ARGUMENT): New macro.
288         (mmix_target_asm_function_prologue): When no epilogue is executed,
289         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
290         (mmix_print_operand) <case '.'>: New case.
291         (mmix_print_operand_punct_valid_p): Match '.'.
292         (mmix_use_simple_return): New function.
293         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
294         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
295         -msingle-exit, -mno-single-exit.
296         (MMIX Options): Ditto.
298 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
300         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
302 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
304         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
306 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
308         * unroll.c (loop_iterations): Handle EQ loops.
310 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
312         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
313         constraint in define_expand, not splitter.
314         Formatting.
316 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
318         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
319         build_function_type_list instead of build_function_type.
321         * config/ia64/ia64.c (ia64_init_builtins): Same.
323         * config/alpha/alpha.c (alpha_init_builtins): Same.
325         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
327         * config/arm/arm.c (arm_init_builtins): Same.
329         * tree.h: Add build_function_type_list prototype.
331         * tree.c (build_function_type_list): New.
333 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
335         * collect2.c (scan_prog_file): Fix typo in message.
337 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
339         * fold-cont.c: Remove unused CHARMASK.
341 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
343         PR preprocessor/7150
344         * cppmain.c (scan_translation_unit_trad): Simplify.
345         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
347 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
349         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
350         Don't use CPP_PREDEFINES.
351         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
352         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
353         * config/i386/djgpp.h, config/i386/i386-coff.h,
354         config/i386/i386-interix.h, config/i386/i386-interix3.h,
355         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
356         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
357         config/i386/uwin.h: Similarly.
359 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
361         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
362         flag_inline_trees to enable inlining.
364 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
366         * configure.in (gcc_gxx_include_dir):  Change to match versioned
367         C++ headers if --enable-version-specific-runtime-libs is used.
368         * configure:  Regenerate.
370 2002-06-28  Jan Hubicka  <jh@suse.cz>
372         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
374 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
376         * combine.c (combine_simplify_rtx): Pass the mode of the
377         shift count, not the shift operation when trying to simplify
378         a shift on a SHIFT_COUNT_TRUNCATED target.
380 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
382         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
383         avoid the auto increment addressing modes.
384         ("*subsi3"): Likewise.
385         (split for add/sub on address): For 68HC12 push the value on 
386         the stack and do the operation with a pop.
388 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
390         * cpplib.c (_cpp_handle_directive): Move #define-specific
391         code to the #define handler...
392         (do_define): ...here.
393         (lex_macro_node): No longer a need to check for comments here.
395 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
397         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
398         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
399         Declare.
400         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
401         do not reorder basic blocks at the end when optimizing for size.
403 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
405         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
406         (m68hc11_make_autoinc_notes): New function.
407         (m68hc11_split_move): Be very cautious when spliting a move with
408         auto increment/decrement modes because this may result in incompatible
409         directions; add REG_INC notes to the resulting insn for CSE reg.
411 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
413         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
414         can be a valid address.
416 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
418         * config/rs6000/rs6000.c: Remove unusued variables from last
419         patch.
421 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
423         Revert:
424         * config/rs6000/rs6000.c (rs6000_override_options): Move
425         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
427 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
429         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
430         lvx/stv/dst builtins...
431         (altivec_expand_ld_builtin): ...to here.
432         (altivec_expand_st_builtin): ...here.
433         (altivec_expand_dst_builtin): ...and here (respectively).
435 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
437         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
439 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
441         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
442         subregs.
443         * recog.c (general_operand, register_operand): Disallow them.
445 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
447         PR preprocessor/7138
448         * cpplib.c (_cpp_handle_directive): Do traditional
449         preparation after setting state.angled_headers.
450         * cpptrad.c (scan_out_logical_line): Fix potential
451         quote bug.
453 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
455         * config/rs6000/rs6000.c (rs6000_override_options): Move
456         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
458 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
460         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
461         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
462         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
464 2002-06-27  Roger Sayle  <roger@eyesopen.com>
466         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
467         * config/stormy16/stormy16.h: Likewise.
469         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
470         with #define.
472 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
474         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
475         Hitachi entry.  Make punctuation more consistent.
477 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
479         * doc/install.texi: Change ` bit' to `-bit'.
480         * doc/md.texi: Change `-bits' to `-bit'.
481         * doc/tm.texi: Change `-bits' to ` bits'.
483 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
485         * gcse.c (hoist_code): Rewrite to only get list of dominated
486         blocks once per BB. Also fix reversed test (by removing need for 
487         the test at all).
489 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
491         * cpphash.h (_cpp_set_trad_context): Remove.
492         * cpplib.c (prepare_directive_trad): Do nothing for #define.
493         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
494         * cpptrad.c: Update comments.
495         (_cpp_read_logical_line_trad): Let scan_logical_line handle
496         updating the current context.
497         (scan_logical_line): Update the current context.
498         (_cpp_create_trad_definition): Similarly.
499         (_cpp_set_trad_context): Remove.
501 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
503         PR preprocessor/7070
504         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
506 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
508         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
509         config/xtensa/xtensa.c (xtensa_return_addr): New function.
510         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
511         config/xtensa/xtensa.md (fix_return_addr): New pattern.
513 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
515         * mips.c (coprocessor_operand, coprocessor2_operand,
516         symbolic_operand): Move prototypes from here...
517         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
518         symbolic_operand): ...to here.
520 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
522         * config/sh/crt1.asm: remove _stack label definition
523         and sentinel value.
525 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
527         * varasm.c: Include real.h before output.h.
529 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
531         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
532         check for TARGET_ALTIVEC.
534 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
536         * config.gcc (vax-*-vms*): Make obselete.
538 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
540         * gcc.c (warn_std): Delete.
542 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
544         * doc/extend.texi: Fix formatting of last checkin.
546 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
548         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
549         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
551 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
553         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
554         discrepancies from motorola's documentation.
556 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
558         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
559         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
561         * config/sh/lib1funcs.asm (udivdi3): Make first divide step 
562         produce a 32 bit result before normalization, then normalize with a
563         left shift.  Compute approximative error of 2nd reciprocal
564         approximation in 2's complement.  Fix mask generation from upper
565         longword of second divide stage result.
566         For large divisor, fix shift count used to truncate first stage
567         divide result; make decision if to adjust upwards based on comparison
568         of higher parts of normalized values.
569         (udivdi): Likewise.  Undo normalization of result for large divisor
570         case.
572 2002-06-25  David S. Miller  <davem@redhat.com>
574         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
576 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
578         * cpplib.c (do_include_common): Revert to correct line number
579         if -traditional.
580         * cpptrad.c (scan_out_logical_line): Treat null directive as
581         white space.  Invlidate MI optimization for non-whitespace
582         text outside a directive.
584 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
586         * Makefile.in (SHELL): Set to @SHELL@.
587         * fixinc/Makefile.in (SHELL): Likewise.
589         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
590         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
591         initialization.
593 2002-06-24  Jeff Law <law@redhat.com>
595         * flow.c (propagate_one_insn): When removing an insn
596         with a REG_LIBCALL note but not the entire libcall sequence,
597         delete the associated REG_RETVAL note.
599 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
601         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
602         (udivsi3): Likewise.  Rewrite SH1 implementation.
603         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
604         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
605         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
606         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
607         (_moddi3): Likewise.
609         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
611         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
612         arguments into account for stack_regs.
614 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
616         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
617         in examples.
618         
619 2002-06-24  Art Haas  <ahaas@neosoft.com>
621         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
622         * doc/tm.texi (Frame Layout): Likewise.
624 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
625         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
626         Set float_format to i128.
628 2002-06-24  David S. Miller  <davem@redhat.com>
630         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
631         32-bit ABI libfuncs to NULL.
633         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
634         strings instead of quoted strings for code blocks.
636         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
637         optabs if op1 is const0_rtx.
639         * Makefile.in (GTFILES): Add basic-block.h
640         * basic-block.h (label_value_list, tail_recursion_label_list):
641         Mark with GTY.
643 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
645         * cpptrad.c (scan_out_logical_line): Check recursing only when
646         we know we have a macro invocation in the function-like case.
647         Only call _cpp_handle_directive if we know we have a good
648         directive, or we want to reject a bad directive.
650 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
652         * doloop.c (doloop_valid_p): Correct comment.
653         (doloop_modify_runtime <abs_inc != 1>): Simplify.
654         (doloop_modify_runtime <do-while>): Don't emit code when NE.
656 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
658         * config.gcc: Add support for ip2k.
660 2002-06-23  Jan Hubicka  <jh@suse.cz>
661             Jeff Law <law@redhat.com>
663         * function.h (struct emit_status): Clarify potential contents
664         of regno_reg_rtx array.
665         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
666         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
668         * reg-stack.c (convert_regs_exit): Push the registers to stack in
669         proper order.
671 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
673         PR middle-end/6963
674         * function.c (assign_stack_temp_for_type): Do not return
675         the same MEM rtx for multiple uses of a stack slot.
677 2002-06-22  David S. Miller  <davem@redhat.com>
679         PR target/6841 target/6770 target/6719
680         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
681         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
682         GENERAL_OR_EXTRA_FP_REGS.
684 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
686         * cpptrad.c (struct fun_macro): Add line number.
687         (scan_out_logical_line): Set it, and use it to report unterminated
688         macro invocations.
690 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
692         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
693         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
694         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
695         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
696         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
697         REGEXP_ONEOF, check_name): Const-ify.
699 2002-06-21  Matt Thomas  <matt@3am-software.com>
701         * config/vax/vax.c (vax_output_function_prologue): Use
702         REGISTER_PREFIX.  Fix some indentation.
703         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
704         (VAX_ISTREAM_SYNC): Define.
705         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
706         i-stream sync to the end.
707         (REGISTER_PREFIX): Define as "".
708         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
710 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
712         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
713         configurations.
715 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
717         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
718         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
720 2002-06-21  Matt Thomas  <matt@3am-software.com>
722         * config/vax/netbsd.h: Adjust a comment.
723         (TARGET_DEFAULT): Redefine as 0.
725 2002-06-21  Richard Henderson  <rth@redhat.com>
727         * bb-reorder.c (make_reorder_chain_1): Search harder for the
728         vax casesi fallthru edge.
729         * cfglayout.c (cleanup_unconditional_jumps): Use
730         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
731         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
732         block after ADDR_VEC.
734 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
736         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
738 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
740         * cpperror.c (cpp_error): For traditional CPP, default to
741         diagnostics on pfile->line.
742         * cpplib.c (prepare_directive_trad): Set line number for
743         diagnostics for #define too.
744         * cpptrad.c (skip_whitespace): Skip comments properly.
745         (_cpp_expansions_different_trad): Initialize quote2.
747 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
749         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
750         * config/mmix/mmix.h: Ditto.
751         * config/mmix/mmix-protos.h: Ditto.
752         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
753         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
754         comment.  Comment extra CC modes.
756 2002-06-20 Jan Hubicka  <jh@suse.cz>
758         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
759         (scope_to_insns_finalize): Do not call set_block_levels; handle
760         sequences.
761         (choose_inner_scope): New.
762         * rtl.h (choose_inner_scope): Declare.
764 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
766         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
767         HOST_WIDE_INT.
768         * pa.c (pa_asm_output_mi_thunk): Likewise.
769         (n_deferred_plabels): Change type to size_t.
770         (output_deferred_plabels, output_call): Use size_t instead of int.
772 2002-06-20  Richard Henderson  <rth@redhat.com>
774         PR target/4041
775         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
776         pattern and adjust constraints for coldfire.
778 2002-06-20  Richard Henderson  <rth@redhat.com>
780         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
782 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
784         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
786 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
788         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
790 2002-06-20  Stan Shebs  <shebs@apple.com>
792         * dominance.c: Include errors.h instead of error.h.
794 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
796         * cppexp.c (cpp_interpret_integer): Don't force traditional
797         numbers to be unsigned.
798         * cpplib.c (prepare_directive_trad): Set line number for
799         diagnostics.
800         * cpptrad.c (scan_out_logical_line): Continue scanning out
801         at start of buffer.
802         * gcc.c (trad_capable_cpp): Use cc1 always.
804 2002-06-20  Jeffrey Law  <law@redhat.com>
806         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
807         elimination in leaf functions by default yet.
809 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
811         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
813 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
815         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
816         multilibs.
817         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
818         Fixes PR other/6836.
820 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
821                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
823         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
825         * basic-block.h: Do not include et-forest.h
826         (dominance_info): Declare as struct dominance-info.
827         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
828         deleting block.
829         * dominance.c (struct dominance_info): Define.
830         (BB_NODE, SET_BB_NODE): New macros.
831         (bb_hash_func, bb_eq_func): Kill.
832         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
833         nearest_common_dominator, dominated_by_p, recount_dominator,
834         add_to_dominance_info, delete_from_dominance_info): update for new
835         representation.
836         (get_dominated_by, redirect_immediate_dominators): Rewrite using
837         enumerate_sons.
838         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
839         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
840         structure.
842         * et-forest.h: Update copyright; revamp all function to operate on
843         nodes
844         (et_forest_value): Kill.
845         (et_forest_enumerate_sons, et_forest_node_value): New.
846         * et-forest.c: Update copyright.
847         * et-forest.h: Update copyright; revamp all function to operate on
848         nodes
849         (et_forest_value): Kill.
850         (et_forest_enumerate_sons, et_forest_node_value): New.
852         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
854         * basic-block.h: Inlude et-forest.h
855         (basic_block_def): Kill dominator.
856         (dominance_info): New type.
857         (loops): Use dominace_info.
858         (dominace handling functions): Take dominace_info as argument
859         instead of bitmaps.
860         (create_preheader): Likewise.
861         * cfg.c (entry_exit_blocks): Kill dominator.
862         (dump_flow_info): Do not dump dominators.
863         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
864         dominators.
865         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
866         (flow_loops_pre_header_scan, make_forwarder_block,
867         canonicale_loop_headers, flow_loops_find): Likewise.
868         * dominance.c: Include error.h
869         (idoms_to_doms): Kill.
870         (bb_hash_func, bb_eq_func): New static functions.
871         (debug_dominace_info): New global function.
872         (calculate_dominance_info): Use new et forest structure.
873         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
874         get_dominated_by, redirect_immediate_dominators,
875         nearest_common_dominator, dominated_by_p, verify_dominators,
876         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
877         delete_from_dominance_info): New global functions.
878         * gcse.c (domnators): CHange to dominance_info.
879         (alloc_hoist_mem): Do not alloc dominators
880         (free_code_hoist_mem): Use free_dominance_info.
881         (compute_code_hoist_data): Use dominance_info.
882         (hoist_code): Likewise.
883         * ifcvt.c (post_dominators): Likewise.
884         (find_if_case_2, if_convert): Likewise.
885         * predict.c (process_note_predictions, process_note_prediction,
886         estimate-probability): Likewise.
887         * sched-rgn.c (find_rgns, init_regions): Likewise.
888         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
889         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
890         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
891         find_evaluations, convert_to_ssa): Likewise.
892         * ssa.h (compute_dominance_frontiers): Likewise.
894         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
896         * Makefile.in (et-forest.c): Add.
897         * et-forest.c: New file.
898         * at-forest.h: New file.
900 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
902         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
903         array size calculation.
904         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
905         Likewise.
907         * diagnostic.c (diagnostic_kind_text): Const-ify.
908         * gengtype.c (lang_names): Likewise.
910 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
912         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
914 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
916         * config/sol2.h: New file.
917         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
918         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
919         (sparc-*-chorusos*): Likewise.
920         (sparc-*-elf*): Likewise.
921         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
922         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
923         (sparc-hal-solaris2*): Likewise.
924         (sparc-*-solaris2*): Likewise.
925         (sparclite-*-elf*): Likewise.
926         (sparc86x-*-elf*): Likewise.
927         (sparc64-*-elf*): Likewise.
929         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
930         config/sol2.h.
931         (ASM_SPEC): Override config/sol2.h version for now.
932         Removed obsolete GAS_REJECTS_MINUS_S variant.
933         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
934         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
935         (TARGET_OS_CPP_BUILTINS): Likewise.
936         Assert system=unix.
937         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
938         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
939         config/sol2.h.
940         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
941         (ASM_CPU_SPEC): Define.
942         (SUBTARGET_EXTRA_SPECS): Define.
944         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
945         in config/sparc/sol2.h.
946         (ASM_SPEC): Moved to config/sol2.h.
947         (CPP_CPU_SPEC): Simplified.
948         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
949         consistency.
950         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
951         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
952         STARTFILE_ARCH64_SPEC.
953         (STARTFILE_SPEC): Moved to config/sol2.h
954         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
955         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
956         (LINK_ARCH64_SPEC): Simplified.
957         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
958         (LINK_SPEC): Moved to config/sol2.h
960         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
961         config/sol2.h.
962         Use BITS_PER_WORD for size.
963         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
964         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
965         (CPP_PREDEFINES): Removed OS-specific part handled by
966         TARGET_OS_CPP_BUILTINS.
967         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
968         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
969         (ASM_SPEC): Moved to config/sol2.h.
970         (PREFERRED_DEBUGGING_TYPE): Likewise.
971         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
972         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
973         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
974         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
976         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
977         * config/i386/sol2gas.h: Removed.
979 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
981         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
983 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
984         
985         * gcc.c-torture/execute/simd-1.c: New.
987         * gcc.dg/simd-1.c: New.
989         * doc/extend.texi (Vector Extensions): Document that we can
990         specify simd types not specifically supported by the hardware.
991         Document that simd types can be used as function arguments.
992         Document that signness does make a difference in SIMD types.
993         Misc cleanups and revisions to the vector extensions section.
995         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
996         constants.
998         * expr.c (vector_mode_valid_p): New.
1000         * expr.h: Add vector_mode_valid_p.
1002         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
1004         * c-common.c (type_for_mode): Always build vector nodes regardless
1005         of VECTOR_MODE_SUPPORTED_P.
1006         (handle_mode_attribute): Error if we can't emulate a nonexisting
1007         vector mode.
1008         (handle_vector_size_attribute): Same.
1010         * optabs.c (expand_binop): Open-code vector operations.
1011         (expand_unop): Open-code vector unops.
1012         (expand_vector_binop): New.
1013         (expand_vector_unop): New.
1014         
1015         * c-typeck.c (build_binary_op): Allow vectors in binops.
1016         Allow vectors in conditional operatiors.
1017         (build_unary_op): Allow vectors in unary minus.
1019         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
1020         TARGET_ALTIVEC.
1022 2002-05-20  Richard Henderson  <rth@redhat.com>
1024         * c-common.c (c_common_get_alias_set): Correctly handle characters.
1025         Rearrange order of expressions; don't handle vectors here.
1026         * alias.c (get_alias_set): Let vectors match their components.
1028 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
1030         * config/mips/mips.c (mips_emit_prefetch): Use hints which
1031         match desired locality.
1033 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
1035         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
1036         (h8300_insert_attributes): New.
1038 2002-06-19  Akim Demaille  <akim@epita.fr>
1040         * c-parse.in (initelt: identifier ':' initval): Add an empty
1041         action to fix a type clash.
1042         (aliasdecl, classdef): Add the missing closing `;'.
1043         Whitespace changes.
1044         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
1045         $$ = $1 type clashes.
1047 2002-06-19  Eric Christopher  <echristo@redhat.com>
1049         * config/mips/mips.c (symbol_operand): New function.
1050         (mips_emit_prefetch): Ditto.
1051         * config/mips/mips-protos.h: Define.
1052         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
1053         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
1054         (LEGITIMIZE_ADDRESS): Ditto.
1055         * config/mips/mips.md (prefetch, prefetch_si_address,
1056         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
1058 2002-06-19  Eric Christopher  <echristo@redhat.com>
1060         * config/fp-bit.h: Add unordered defines for gofast.
1062 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
1064         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
1065         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
1066         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
1067         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
1068         checking and without it.
1069         (decl_name, decl_mode_check_failed, regexp_name,
1070         regexp_mode_check_failed): New functions.
1071         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
1072         gen_presence_set, gen_absence_set, gen_automaton,
1073         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
1074         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
1075         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
1076         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
1077         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
1078         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
1079         (decl_hash, decl_eq_p): Use the macros.
1080         (find_decl): Ditto.  Set up mode of work_decl.
1081         (process_excls, process_presence_absence, process_decls,
1082         check_automaton_usage, process_regexp, process_regexp_decls,
1083         check_usage, loop_in_regexp, check_loops_in_regexps,
1084         process_regexp_cycles, add_advance_cycle_insn_decl,
1085         initiate_states, initiate_excl_sets,
1086         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
1087         transform_2): Use the macros.
1088         (transform_3): Ditto.  Check mode before making transformations of
1089         ALLOF.
1090         (regexp_transform_func, transform_insn_regexps,
1091         process_unit_to_form_the_same_automaton_unit_lists,
1092         form_the_same_automaton_unit_lists_from_regexp,
1093         form_the_same_automaton_unit_lists,
1094         process_seq_for_forming_states, process_alts_for_forming_states,
1095         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
1096         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
1097         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
1098         units_to_automata_heuristic_distr, create_ainsns,
1099         units_to_automata_distr, create_automata): Use the macros.
1100         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
1101         (longest_path_length, min_issue_delay_pass_states,
1102         output_dead_lock_vect, output_tables, output_insn_code_cases,
1103         output_internal_insn_latency_func, output_print_reservation_func,
1104         output_description, output_automaton_units, generate): Use the
1105         macros.
1106         (make_insn_alts_attr): Ditto.  Check case when there are not
1107         alternatives in the reservation.
1108         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
1109         make_bypass_attr, form_important_insn_automata_lists,
1110         expand_automata): Use the macros.
1112 2002-06-20  Tim Josling  <tej@melbpc.org.au>
1114         * Makefile.in: Clean up code to check for misspecified languages
1115         in enable-languages.
1117 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
1119         * cpptrad.c (_cpp_replacement_text_len): initialize len.
1121 2002-06-19  Jason Merrill  <jason@redhat.com>
1123         * Makefile.in (unstrap, restrap): New targets.
1124         (bootstrap): Mention restrap.
1126 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
1128         * except.c (ehl_free): Remove.
1130         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
1131         builtin_define and builtin_define_std.
1133 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
1135         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
1136         (sCOND): Restrict operand class so that gcc knows how to reload them.
1137         (bitfield_set): Merge two unnamed insn's using alternatives.
1138         (call_value): Remove constraint on unused uperand.
1139         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
1140         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
1142         * longlong.h (count_trailing_zeros): Escape newline and beautify.
1144 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
1146         * Makefile.in (QMTEST_DIR): Simplify definition.
1148 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
1150         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
1151         #define.
1153 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
1155         * cpphash.h (struct cpp_reader): Make date and time strings.
1156         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
1157         _cpp_replacement_text_len): New.
1158         * cppinit.c (cpp_create_reader): Update.
1159         (init_builtins): Register appropriate builtins for -traditional-cpp.
1160         * cppmacro.c (new_number_token): Remove.
1161         (_cpp_builtin_macro_text): New.
1162         (builtin_macro): Use it.
1163         (cpp_macro_definition): Update to handle traditional macros.
1164         * cppmain.c (cb_line_change): Don't do column positioning for
1165         traditional output.
1166         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
1167         state ls_fun_close.
1168         (skip_whitespace): Fix.
1169         (maybe_start_funlike): Don't set state.parsing_args.
1170         (scan_out_logical_line): Remove duplicate error.  Use lex_state
1171         rather than state.parsing_args.
1172         (push_replacement_text): Handle builtins.
1173         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
1175 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
1176             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1178         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
1179         attribute __always_inline__.
1181 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
1183         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
1184         when generating the call to _mcount.
1185         (NO_PROFILE_COUNTERS): Define.
1187 2002-06-18  Richard Henderson  <rth@redhat.com>
1189         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
1190         2002-06-02 change.
1192 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
1194         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
1195         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
1196         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
1197         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
1199         * sh-protos.h (sh_pr_interrupt): Declare.
1200         * sh.c (sh_pr_interrupt): New function.
1201         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
1202         (sh_hard_regno_rename_ok): Likewise.
1203         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
1205 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
1207         * rtl.def (DEFINE_AUTOMATON): Add description of new options
1208         `time' and `v'.  Fix incorrect description of option `w'.
1210         * doc/md.texi: Ditto.
1212         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
1213         (gen_automata_option): Process the new options.
1214         (transform_2, transform_3): Initialize some variables.
1215         (initiate_automaton_gen): Use the new macros.
1217 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
1219         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
1220         (mips_set_return_address, mips_restore_gp): Declare.
1221         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
1222         (current_frame_info): Remove.
1223         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
1224         * config/mips/mips.c: Remove uses of current_frame_info.
1225         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
1226         (struct machine_function): Add 'frame' and 'insns_len'.
1227         (current_frame_info, zero_frame_info): Remove.
1228         (mips_restore_gp, mips_set_return_address): New.
1229         (mips_initial_elimination_offset): New.
1230         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
1231         (eh_return define_split): Use mips_set_return_address.
1233 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1235         * cpplib.c (dtable): Update.
1236         (end_directive): Decrement expansion prevention count.
1237         Clear state.in_expression.
1238         (prepare_directive_trad): Set state.in_expression.
1239         Increment expansion prevention count.
1240         * cpptrad.c (enum ls): New.
1241         (_cpp_overlay_buffer): Set overlaid_buffer.
1242         (_cpp_remove_overlay): Use overlaid_buffer.
1243         (_cpp_read_logcial_line_trad): Update buffer when it might
1244         have changed.
1245         (scan_out_logical_line): Handle state transitions for assertions
1246         and defined() in #if, and for funlike invocations including the
1247         directive case.  Handle '<' and '>' as a quote mechanism in
1248         #include.  Warn about unterminated macro invocations.
1249         * cpphash.h (struct lexer_state): New member in_expression.
1250         (struct cpp_reader): New member overlaid buffer.
1252 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
1254         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
1255         __always_inline__.
1257 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
1259         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
1261         * doloop.c (doloop_optimize): Extract pattern from insn.
1263 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
1265         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
1267 2002-06-17  Jeff Law <law@redhat.com>
1269         * libgcc2.c: Do not include symcat.h or machmode.h.
1271 2002-06-17  Richard Henderson  <rth@redhat.com>
1273         PR target/6922
1274         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
1276 2002-06-17  Tom Tromey  <tromey@redhat.com>
1278         * dwarfout.c: Include function.h.
1280 2002-06-17  Andreas Schwab  <schwab@suse.de>
1282         * print-rtl.c (print_rtx): Print space before vector, not after.
1283         (debug_rtx): Clear sawclose before printing.
1284         (debug_rtx_list): Print newline after each list element.
1285         (debug_rtx_range): Likewise.
1287 2002-06-17  Richard Henderson  <rth@redhat.com>
1289         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
1290         (current_function_funcdef_no): Similarly.
1291         * function.c (funcdef_no): Similarly.
1292         (prepare_function_start): Set current_function_funcdef_no.
1293         (expand_function_start): Don't set current_function_profile_label_no.
1294         * dwarf2out.h (current_funcdef_number): Remove.
1295         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
1296         current_function_funcdef_no throughout.
1297         * dwarfout.c, vmsdbgout.c: Similarly.
1298         * except.c (sjlj_funcdef_number): Remove.
1299         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
1300         (output_function_exception_table): Likewise.
1301         * final.c (profile_function): Use current_function_funcdef_no
1302         instead of current_function_profile_label_no.
1304 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
1306         * sched-ebb.c (init_ready_list): Check INSN_P first.
1308 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
1310         * sh.md (divsi3): Update way how to find insns in a sequence.
1312         * reload1.c (merge_assigned_reloads): Don't change reloads
1313         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
1314         to RELOAD_OTHER when there are conflicting input reloads.
1316 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
1318         * function.c (epilogue_done): Correctly build a sequence of insns for
1319         a sibcall epilogue.
1321 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
1323         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
1324         #define.
1326         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
1328 2002-06-16  Richard Henderson  <rth@redhat.com>
1330         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1331         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
1333 2002-06-16  Richard Henderson  <rth@redhat.com>
1335         PR opt/6722
1336         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
1338 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
1340         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
1341         * config/i386/i386-aout.h, config/i386/i386elf.h,
1342         config/i386/sysv4.h: Remove CPP_PREDEFINES.
1343         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
1344         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
1345         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
1346         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
1347         CPP_PREDEFINES and part of CPP_SPEC.
1348         * config/i386/sysv4-cpp.h: New.
1350 2002-06-16  Richard Henderson  <rth@redhat.com>
1352         PR c/7030
1353         * dwarf2out.c (modified_type_die): Don't assign the qualified die
1354         to the unqualified type.
1356 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
1358         * i386-protos.h (x86_field_alignment): Declare.
1359         * i386.c (x86_field_alignment): Define.
1360         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
1361         (BIGGEST_FIELD_ALIGNMENT): Kill.
1363 2002-06-16  Richard Henderson  <rth@redhat.com>
1365         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
1367 2002-06-16  Richard Henderson  <rth@redhat.com>
1369         * c-common.c (flag_ms_extensions): Move from c++ front end.
1370         * c-common.h (flag_ms_extensions): Declare.
1371         * c-decl.c (c_decode_option): Add -fms-extensions.
1372         (grokfield): Don't accept anonymous structures in ISO C mode;
1373         accept only unnamed anonymous structures in GNU C mode; accept
1374         Plan 9 extensions in MS mode.
1375         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
1376         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
1377         (extension): Clear flag_iso.
1378         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
1380 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
1382         PR target/7042
1383         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
1384         early if current_function_epilogue_delay_list is non-empty.
1385         * config/cris/cris.md ("return"): Add sanity check asserting that
1386         current_function_epilogue_delay_list is empty.
1388 2002-06-16  Jeff Law <law@redhat.com>
1390         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
1391         sharing of hard registers.
1393         * toplev.c (rest_of_compilation): Remove redundant conditional.
1395         * toplev.c (rest_of_compilation): Perform a simpler, less costly
1396         cleanup of the CFG when not optimizing.
1398 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
1400         * gcc.c (main): Correct startfile_prefix_spec check.
1402 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
1404         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
1405         include both darwin.o and rs6000-c.o.
1407 2002-06-15  Roger Sayle  <roger@eyesopen.com>
1409         * expr.c (compare_from_rtx): Call simplify_relational_operation
1410         on all comparisons, not just those between integer constants,
1411         with the correct (possibly unsigned) comparison code.
1412         (do_compare_rtx_and_jump): Likewise.
1414 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1416         * Makefile.in (tm_defines): New configuration variable.
1417         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
1418         Pass tm_defines in TM_DEFINES.
1419         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
1420         * config.gcc (tm_defines): New configuration variable.
1421         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
1422         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
1423         * configure.in: Substitute tm_defines.
1424         * configure: Rebuilt.
1425         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
1426         * doc/install.texi: Update.
1427         * pa/pa-700.h: Delete file.
1428         * pa/pa-7100.h: Delete file.
1430 2002-06-15  Roger Sayle  <roger@eyesopen.com>
1432         * fold-const.c (comparison_to_compcode): New function to convert
1433         an comparison TREE CODE into a bit-based representation.
1434         (compcode_to_comparison): New function to convert from this bit
1435         based representation back to a comparison TREE CODE.
1436         (fold_truthop): Simplify (x<y) && (x==y) and related composite
1437         comparisons.
1439 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
1441         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
1443         * stor-layout.c (compute_record_mode): Remove check for
1444         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
1445         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
1446         MEMBER_TYPE_FORCES_BLK.
1448         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
1450         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
1452 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
1454         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
1456 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
1458         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
1459         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
1460         * configure, config.in: Regenerate.
1462 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1464         * loop.c (check_final_value): Use v->always_executed
1465         instead of v->always_computable.
1466         * unroll.c (final_giv_value): Don't calculate the final
1467         value as a function of the biv if the giv is not computed
1468         for every loop iteration.
1470 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1472         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
1474 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1476         PR c/6677
1477         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
1478         the truncation down when the target type is signed.
1479         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
1480         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
1481         the conversion if the target type is a smaller type.
1483 2002-06-14  Richard Henderson  <rth@redhat.com>
1485         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
1486         earlier.  Re-factor comparisons vs extrema.
1488 2002-06-14  Richard Henderson  <rth@redhat.com>
1490         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
1492 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1494         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
1495         * sched-deps.c (add_dependence): Likewise.
1496         (group_leader): Likewise.
1497         * sched-rgn.c (init_ready_list): Likewise.
1498         * doc/rtl.texi: Adjust accordingly.
1500 2002-06-13  Jeffrey Law  <law@redhat.com>
1502         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
1503         null pointer checks were eliminated.  Update prototype.
1504         (delete_null_pointer_checks): Similarly.
1505         * rtl.h (delete_null_pointer_checks): Update prototype.
1506         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
1507         delete_null_pointer_checks deletes one or more null
1508         pointer checks.  Do not run cleanup_cfg before gcse, the
1509         CFG is accurate and optimized at that point..
1511         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
1512         of hard registers.
1514 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
1516         * Makefile.in (libgcc.mk): Depend on specs.
1518 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
1520         * sh.md (mulsi3): Update way how to find insns in a sequence.
1522 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
1524         * sh.h: Define HARD_REGNO_RENAME_OK
1525         * sh.c: sh_hard_regno_rename_ok: New. If current function has
1526         interrupt_handler attribute, only registers saved on stack are OK.
1527         * sh-protos.h: Declare sh_hard_regno_rename_ok.
1529 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1531         * config/sh/sh.md (jump): Emit jump insn.
1532         (call_pcrel): Get pattern of the result of gen_call_site.
1533         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
1535 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1537         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
1538         * cpptrad.c: Update comments.
1539         (skip_whitespace, copy_comment): Take a new parameter.
1540         (skip_escaped_newlines): Don't duplicate escaped newline test.
1541         (copy_comment): Different location for CUR, decide here how
1542         to copy / replace the comment.
1543         (skip_whitespace): Copy whitespace.
1544         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
1545         (scan_out_logical_line): Let copy comment handle keeping or
1546         replacing comments.
1547         (scan_parameters, _cpp_create_trad_definition): Update.
1549 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
1551         * reload.c (get_secondary_mem,find_reloads_address,
1552         find_reloads_address_1): Pass reference to MEM to find_reloads_address
1553         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
1555 2002-06-13  Jessica Han  <jessica@cup.hp.com>
1557         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1558         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1559         * doc/tm.texi: Document them.
1560         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1561         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1562         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
1563         (ASM_OUTPUT_FDESC): Likewise.
1565 2002-06-13  Eric Christopher  <echristo@redhat.com>
1567         * diagnostic.c (output_format): Fix thinko.
1569 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
1571         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
1572         (DWARF2_UNWIND_INFO): Define to 0.
1574         * config/sh/sh.c (calc_live_regs): Don't use initial_value
1575         optimization for PR_MEDIA_REG.
1577 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1579         * cpphash.h (_cpp_lex_identifier_trad): Remove.
1580         * cpplib.c (end_directive): Don't skip, always remove overlay
1581         apart from #define.
1582         (prepare_directive_trad): Handle NULL pfile->directive.
1583         (_cpp_handle_directive): Always call prepare_directive_trad
1584         if traditional.
1585         * cppmain.c (check_multiline_token): Rename account_for_newlines,
1586         generalize inputs.
1587         (scan_translation_unit_trad): Use it.
1588         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
1589         output, get escaped newline in comment close correct.
1590         (check_output_buffer, skip_whitespace): Update.
1591         (_cpp_lex_identifier_trad): Remove.
1592         (scan_out_logical_line): Handle -C and comments in directives
1593         properly.
1595 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
1597         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
1598         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1599         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
1600         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
1601         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
1602         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
1603         (SELECT_SH5_COMPACT_NOFPU): Likewise.
1604         (TARGET_SWITCHES): Use them.
1605         (TARGET_CPU_DEFAULT): Define if not already defined.
1606         (TARGET_DEFAULT): Use it.
1607         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
1608         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
1609         * config/sh/t-monolib: New file.
1611 2002-06-13  Roger Sayle  <roger@eyesopen.com>
1613         * toplev.c (rest_of_compilation): Simplify (and correct) the
1614         logic of the first delete-null-pointer-checks pass.
1616 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1618         * i386.c (ix86_expand_movstr):  Fix pasto.
1620 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1622         * reload.c (find_valid_class):  Fix thinko in my previous patch.
1624 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
1626         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
1627         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
1628         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
1629         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
1631 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1633         * tree-inline.c (expand_call_inline): Don' mess with _DECL
1634         fields.
1636 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1638         * diagnostic.c (output_format): Recognize "%H" as a format
1639         specifier for a location_t.
1640         (text_specifies_location): New function.
1641         (diagnostic_set_info): Use it.
1643 2002-06-13  Jeffrey Law  <law@redhat.com>
1645         * emit-rtl.c (static_regno_reg_rtx): Define.
1646         (init_emit_once): Initialize static_regno_reg_rtx.
1647         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
1648         of building new hard reg objects once per function.
1649         (gen_rtx_REG): Try to share hard regs.
1650         * regclass.c (init_fake_stack_mems): New function broken out from
1651         init_regs.
1652         * rtl.h (init_fake_stack_mems): Declare.
1653         * toplev.c (lang_independent_init): Call init_regs before
1654         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
1656         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
1658         * alias.c (argument_registers): Remove.
1659         (init_alias_once): Initialize static_reg_base_value here.  Remove
1660         initialization of argument_registers.
1661         (init_alias_once_per_function): Remove.
1662         (init_alias_analysis): Copy all the entries from static_reg_base_value
1663         into new_reg_base_value all at once.
1664         * rtl.h (init_alias_once_per_function): Remove declaration.
1665         * function.c (prepare_function_start): Do not call
1666         init_alias_once_per_function.
1668         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
1669         starting a sequence and emitting an INSN.
1671 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
1673         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
1675 2002-06-13  David S. Miller  <davem@redhat.com>
1677         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
1679 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1681         * cpplib.c (end_directive): Handle line skipping.  Only remove
1682         the rest of the line if the directive was valid.
1683         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
1684         expanding a traditional macro.
1685         * cpptrad.c (recursive_macro): New.
1686         (read_logical_line_trad): Handle skipping.
1687         (scan_out_logical_line): Continue after a successful directive.
1688         Don't expand macros whilst skipping, or if recursing.
1689         (_cpp_create_trad_definition): scan_out_logical_line now sets
1690         the output current position.
1692 2002-06-12  Eric Christopher  <echristo@redhat.com>
1694         From Chris Demetriou  <cgd@broadcom.com>
1695         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
1696         comment.
1697         (ISA_HAS_MADD_MSUB): Ditto.
1698         (ISA_HAS_NMADD_NMSUB): Ditto.
1700 2002-06-12  Eric Christopher  <echristo@redhat.com>
1702         * config.gcc: Consolidate little endian handling and
1703         little/big endian targets.
1704         * config/mips/elfl.h: Remove file.
1705         * config/mips/elfl64.h: Ditto.
1706         * config/mips/ecoffl.h: Ditto.
1707         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
1709 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
1711         * gengtype.h (xvasprintf): New prototype.
1712         (xasprintf): New prototype.
1713         (struct outf): New.
1714         (get_output_file): Return an outf_p.
1715         (header_file): Is now an outf_p.
1716         (base_files): Now are outf_p.
1717         (oprintf): New.
1718         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
1719         rather than stdio operations.  Use xasprintf in a few places,
1720         when appropriate.
1721         (xvasprintf): New.
1722         (xasprintf): New.
1723         (struct filemap): Delete.
1724         (files): Delete.
1725         (output_files): New.
1726         (oprintf): New.
1727         (create_file): Create an outf_p.  Add parameter to indicate output
1728         file name, change all callers.
1729         (open_base_files): Create gtype-desc.c here.
1730         (get_output_file_with_visibility): Rewrite.
1731         (get_output_file_name): Just look at 'name' field in struct outf.
1732         (close_output_files): Rewrite.
1734 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
1736         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1737         (MASK_G_FLOAT): Define.
1738         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
1739         (TARGET_SWITCHES): Likewise.
1740         (TARGET_DEFAULT): Likewise.
1742 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
1744         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1745         * config/mips/mips.c (mips_output_filename): Don't print a
1746         ".file" directive if we are using DWARF-2.
1747         (mips_output_function_prologue): Do not emit source file
1748         name for TARGET_GAS.
1750 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
1752         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
1753         decide whether emit the short opcode.
1754         * i386.h (x86_shift1): Declare.
1755         (TARGET_SHIFT1): New macro.
1756         * i386.c (x86_shift1): New global variable.
1758         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
1759         unconditionally; make loop to rebuild CFG; kill unnecesary
1760         find_basic_block calls; kill compute_bb_for_insn call.
1761         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
1762         * haifa-sched.c (sched_init): Likewise.
1763         * ssa-ccp.c (ssa_const_prop): Likewise.
1764         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1766 2002-06-11  David S. Miller  <davem@redhat.com>
1768         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
1769         active_insn_p.
1771 2002-06-11  Richard Henderson  <rth@redhat.com>
1773         * c-common.c (builtin_define_type_max): New.
1774         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
1775         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
1777         From Joseph S. Myers:
1778         * glimits.h: Rewrite to expect the double underscore definitions
1779         from the compiler.
1781         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
1782         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
1783         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
1784         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1785         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
1786         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
1787         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
1788         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
1790 2002-06-11  Richard Henderson  <rth@redhat.com>
1792         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
1793         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
1794         (code_for_builtns): Update.
1795         (alpha_init_builtins): Add __builtin_thread_pointer and
1796         __builtin_set_thread_pointer.
1797         (alpha_expand_builtin): Handle void builtins.
1798         * doc/extend.texi (Alpha Built-in Functions): Update.
1800 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
1802         PR target/6997
1803         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1805 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1807         * config.gcc: Make the name of the extra-modes file adjustable
1808         by target stanzas.
1809         (s390x, strongarm, xscale stanzas): Use this facility.
1810         * configure.in: Update to match.
1811         * configure: Regenerate.
1813 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
1815         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
1816         max/mins as unsigned GE compares.
1818 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
1820         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
1821         * config/vax/bsd.h: New file.
1822         * config/vax/netbsd.h: Add missing notice.
1823         (CPP_PREDEFINES): Remove.
1824         (TARGET_OS_CPP_BUILTINS): Define.
1825         (CPP_SPEC): Use NETBSD_CPP_SPEC.
1826         * config/vax/openbsd.h: Update copyright years.
1827         (CPP_PREDEFINES): Remove.
1828         (TARGET_OS_CPP_BUILTINS): Define.
1829         * config/vax/ultrix.h: Likewise.
1830         * config/vax/vaxv.h: Likewise.
1831         * config/vax/vms.h: Likewise.
1832         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
1833         (CPP_PREDEFINES, CPP_SPEC): Remove.
1835 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
1837         * i386.md (addqi_1_slp, subqi_1_slp
1838         (andqi_ext0, testqi_ext0): Remove unnecesary check.
1839         (addhi*, addqi*): Simplify "dec" condition.
1840         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
1841         (and, or, xor to QImode splitters): New.
1842         (iorqi_ext*): New.
1843         (xorqi_ext_0): New.
1844         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
1845         (andqi_ext_1_rex64): New.
1846         (ashrqi*_slp): New.
1847         (ashlqi*_slp): New.
1848         (lshlqi*_slp): New.
1849         (rotrqi3*_slp): New.
1850         (rotlqi3*_slp): New.
1852 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1854         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
1855         softfloat.h.
1856         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
1857         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1858         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
1859         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
1860         __LONG_DOUBLE_128__ setting, _CALL_* setting.
1861         (CPP_DEFAULT_SPEC): Delete.
1862         (CPP_FLOAT_DEFAULT_SPEC): Delete.
1863         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
1864         (CPP_SYSV_DEFAULT_SPEC): Delete.
1865         (CPP_ENDIAN_BIG_SPEC): Delete.
1866         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1867         (CPP_ENDIAN_SPEC): Delete.
1868         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
1869         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
1870         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
1871         cpp_longdouble_default.
1872         * config/rs6000/softfloat.h: Delete.
1873         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
1874         (EXTRA_SPECS): Delete cpp_cpu.
1875         (TARGET_CPU_CPP_BUILTINS): New.
1876         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
1877         prototype.
1878         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
1879         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
1880         (CPP_DEFAULT_SPEC): Delete.
1881         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
1882         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
1883         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
1884         (CPP_DEFAULT_SPEC): Delete.
1885         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1886         (CPLUSPLUS_CPP_SPEC): Likewise.
1887         (CPP_CPU_SPEC): Delete.
1888         (CPP_DEFAULT_SPEC): Delete.
1889         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1890         (CPLUSPLUS_CPP_SPEC): Likewise.
1891         (CPP_CPU_SPEC): Delete.
1892         (CPP_DEFAULT_SPEC): Delete.
1893         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
1894         (CPP_DEFAULT_SPEC): Delete.
1895         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
1896         (CPP_DEFAULT_SPEC): Delete.
1898         * doc/gty.texi: Small updates.
1900 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
1902         * objc/objc-act.c (warn_with_ivar): Adjust calls to
1903         diagnostic_count_error.
1904         (warn_with_method): Likewise.
1906         * diagnostic.h (warnings_are_errors_message): New field of
1907         diagnostic_context.
1908         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
1909         match semantics.
1910         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
1911         (diagnostic_count_diagnostic): Make aware of other kinds of
1912         diagnostics.
1913         (diagnostic_initialize): Initialize warnings_are_errors_message field.
1915 2002-06-11  Tom Tromey  <tromey@redhat.com>
1917         For PR java/6520:
1918         * fold-const.c (fold_convert): Don't modify existing tree's type.
1920 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1922         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
1924 2002-06-11  Richard Henderson  <rth@redhat.com>
1926         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
1928 2002-06-11  Richard Henderson  <rth@redhat.com>
1930         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
1931         DWARF2_UNWIND_INFO is false.
1933 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
1935         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
1937         * config/s390/s390.c (emit_prologue): gen_store_multiple
1938         returns an insn now, not a pattern.
1940 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1942         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
1943         $(TEXI2DVI) -o.
1945 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
1947         * i386.c (x86_promote_QImode): Set for Athlon
1948         (x86_fast_prefix): New global variable.
1949         (x86_arch_always_fancy_math_387): Fix formating.
1950         * i386.h (x86_fast_prefix): Declare
1951         (TARGET_FAST_PREFIX): define.
1952         * i386.md (and to strict_low_part, HI to SI
1953         promoting splitter): Use new macro.
1955         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
1957 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1959         * Makefile.in (distclean): Delete junk left in testsuite
1960         directory, too.
1962 2002-06-11  Jeffrey Law <law@redhat.com>
1964         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
1965         last insn created by the splitter.
1967         * caller-save.c (init_caller_save): Move creation of SAVEINSN
1968         and RESTINSN into into the scope of the sequence.
1970         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
1971         RETURN insns.
1973         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
1975         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
1976         not the pattern.  So extract the pattern from the insn.
1978         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
1980 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1982         * config/s390/s390.md (movsi): Only use floating point
1983         register alternatives when operands are already fprs.
1984         (movdi_31, movdi_64): Likewise.
1986 2002-06-11  David S. Miller  <davem@redhat.com>
1988         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
1989         Only run RTX equality checks on INSN_P rtl.
1991 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1993         * config/s390/s390.md (reload_base, ltorg): Remove.
1994         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
1995         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1996         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
1997         s390_asm_output_pool_prologue): Likewise.
1998         * s390.h (s390_pool_start_insn): Likewise.
2000         * s390.c (s390_output_symbolic_const): Remove support for
2001         old-style pool chunks.
2002         (s390_function_epilogue): Likewise.
2003         (s390_output_constant_pool): Likewise.  Also, fix incorrect
2004         alignment for 64-bit literal pools.
2005         (print_operand_address): Remove 'y' and 'Y' format flags.
2006         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
2007         old-style pool chunks.
2008         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
2009         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
2010         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
2012         * s390.c (consttable_operand): New function.
2013         * s390-protos.h (consttable_operand): Declare it.
2014         * s390.h (PREDICATE_CODES): Add consttable_operand.
2015         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
2016         consttable_sf, consttable_df, pool_start_31, pool_end_31,
2017         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
2018         * s390.c (struct constant, struct constant_pool): New data types.
2019         (constant_modes, gen_consttable): New variables.
2020         (s390_start_pool, s390_end_pool, s390_add_pool,
2021         s390_dump_pool, s390_free_pool): New functions.
2022         (s390_chunkify_pool): Completely reimplement literal pool
2023         overflow handling.
2025         * s390.c (s390_pool_overflow): New variable.
2026         * s390.h (s390_pool_overflow): Declare it.
2027         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
2028         jumps in literal pool overflow situations.
2030         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
2031         (s390_frame_info): Account for possible use of RETURN_REGNUM
2032         by new literal pool overflow code.
2033         (s390_emit_prologue): Likewise.
2035 2002-06-05  David S. Miller  <davem@redhat.com>
2037         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
2038         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
2039         emit_insns_before_scope, emit_insns_after,
2040         emit_insns_after_scope): Delete declaration.
2041         * ada/misc.c (insert_code_for): Use emit_insn* instead of
2042         emit_insns_foo.
2043         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
2044         (alpha_set_memflags): Fix comment.
2045         (set_frame_related_p): Use get_insns instead of gen_sequence.
2046         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
2047         emitting no insns.
2048         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
2049         gen_sequence.
2050         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
2051         * config/fr30/fr30.c (fr30_move_double): Likewise.
2052         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
2053         Likewise.
2054         * config/ia64/ia64.c (spill_restore_mem): Likewise.
2055         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
2056         no insns.
2057         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
2058         instead of gen_sequence.
2059         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
2060         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
2061         * config/sh/sh.c (sh_need_epilogue): Likewise.
2062         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
2063         attributes.
2064         (setjmp pattern and split): Use them to avoid splitter which emits
2065         no RTL.
2066         * genattrtab.c (main): Emit include of function.h
2067         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
2068         get_insns instead of gen_sequence.
2069         * config/cris/cris.c (cris_split_movdx): Likewise.
2070         * emit-rtl.c (emit_insns*): Kill.
2071         (try_split): Expect insn list instead of SEQUENCE.
2072         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
2073         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
2074         Make them abort if a SEQUENCE is given and RTL checking is
2075         enabled.
2076         (emit_*_scope): Don't forget to set scope on final insn.
2077         (gen_sequence): Move from here...
2078         * ssa.c (gen_sequence): To here as private function.
2079         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
2080         comments.
2081         (expand_builtin_return, expand_builtin_mathfn): Likewise.
2082         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
2083         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
2084         (expand_builtin_expect_jump): Use get_insns and fix comments.
2085         * calls.c (try_to_integrate): Use emit_insn_foo.
2086         (expand_call, emit_library_call_value_1): Likewise.
2087         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
2088         (emit_move_insn_1): Use get_insns instead of gen_sequence.
2089         (expand_expr): Use emit_insn_foo.
2090         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
2091         * except.c (build_post_landing_pads): Likewise.
2092         * flow.c (attempt_auto_inc): Likewise.
2093         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
2094         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
2095         * function.c (fixup_var_refs_insn): Use get_insns instead of
2096         gen_sequence.
2097         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
2098         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
2099         (fixup_stack_1, purge_addressof_1, expand_main_function,
2100         get_arg_pointer_save_area): Likewise.
2101         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
2102         expand_function_end): Use emit_insn_foo.
2103         (record_insns, keep_stack_depressed): Work with insn list instead
2104         of SEQUENCE, fix comments.
2105         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
2106         noce_try_store_flag_constants, noce_try_store_flag_inc,
2107         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
2108         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
2109         (noce_process_if_block): Use get_insns instead of gen_sequence.
2110         * optabs.c (add_equal_note): Work with insn list, fix comments.
2111         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
2112         (expand_unop, expand_complex_abs, expand_unop_insn,
2113         expand_no_conflict_block): Likewise.
2114         (gen_move_insn): Use get_insns instead of gen_sequence.
2115         (gen_cond_trap): Likewise.
2116         * integrate.c (copy_rtx_and_substitute): Likewise.
2117         (emit_initial_value_sets): Use emit_insn_foo.
2118         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
2119         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
2120         now that RTL generators give insn lists.
2121         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
2122         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
2123         instead of gen_sequence.
2124         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
2125         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
2126         instead of gen_sequence.
2127         * loop.c (move_movables, emit_prefetch_instructions,
2128         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
2129         Likewise.
2130         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
2131         (product_cheap_p): Likewise, and add commentary about RTL wastage
2132         here.
2133         * lcm.c (optimize_mode_switching): Use get_insns instead of
2134         gen_sequence.
2135         * profile.c (gen_edge_profiler): Likewise.
2136         * regmove.c (copy_src_to_dest): Likewise.
2137         * reg-stack.c (compensate_edge): Likewise and fix comment.
2138         * gcse.c (process_insert_insn): Likewise.
2139         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
2140         * jump.c (delete_prior_computation): Update comment.
2141         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
2142         of gen_sequence, update comments to match.
2143         * recog.c (peephole2_optimize): Work with insn lists instead of
2144         SEQUENCE rtl.
2145         * sched-vis.c (print_pattern): Abort on SEQUENCE.
2146         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
2147         Use get_insns instead of gen_sequence.
2148         (copy_loop_body): Likewise and don't emit dummy NOTE.
2149         * genrecog.c: Don't mention SEQUENCE rtl in comments.
2150         * combine.c (try_combine): Expect insn lists from split generator.
2151         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
2152         hand.
2154 2002-06-11  Roger Sayle  <roger@eyesopen.com>
2155             Andreas Jaeger <aj@suse.de>
2157         * cfgbuild.c: Update copyright years.
2159 2002-06-11  Andreas Schwab  <schwab@suse.de>
2161         * config/m68k/m68k.h (PREDICATE_CODES): Define.
2163 2002-06-11  Eric Christopher  <echristo@redhat.com>
2165         * doc/tm.texi (Run-time Target): Add comment about flag_iso
2166         and strict ANSI.
2167         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
2168         * config/mips/ecoffl.h: Ditto.
2169         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
2170         (CPP_PREDEFINES): Ditto.
2171         * config/mips/elfl64.h: Ditto.
2172         * config/mips/elfl.h: Ditto.
2173         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
2174         out until irix header consolidation.
2175         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
2176         with SUBTARGET_OS_CPP_BUILTINS.
2177         * config/mips/iris6.h: Ditto.
2178         (CPLUSPLUS_CPP_SPEC): Remove.
2179         * config/mips/linux.h: Ditto.
2180         * config/mips/netbsd.h: Ditto.
2181         * config/mips/openbsd.h: Ditto.
2182         * config/mips/rtems.h: Ditto.
2183         * config/mips/rtems64.h: Ditto.
2184         * config/mips/sni-svr4.h: Ditto.
2185         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
2186         ISA_MIPS32, ISA_MIPS64): New defines.
2187         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
2188         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
2189         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2190         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
2191         (TARGET_CPU_CPP_BUILTINS): Define.
2192         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
2193         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
2194         (movdicc): Remove check for ISA_MIPS32.
2195          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
2196         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
2197         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
2198         sunge_sf, sunle_df, sunle_sf): New patterns.
2200 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2202         * Makefile.in: Update cppmain.o.
2203         * cpphash.h (struct cpp_reader): Move some members to a
2204         nested structure.
2205         (trad_line): Rename saved_line.
2206         (_cpp_read_logical_line_trad): Update.
2207         (_cpp_remove_overlay): New.
2208         * cppinit.c (cpp_create_reader): No need to set saved_line.
2209         (cpp_destroy): Update.
2210         (cpp_read_main_file): Only overlay if compiling.
2211         * cpplex.c (continue_after_nul): Return false if in directive.
2212         * cpplib.c (EXPAND): New.
2213         (directive_table, SEEN_EOL): Update.
2214         (end_directive): Remove overlay if traditional; don't skip
2215         line in traditional #define.
2216         (prepare_directive_trad): New.
2217         (_cpp_handle_directive, run_directive): Update for traditional
2218         directives.
2219         (lex_macro_node): Simplify, don't use lex_identifier_trad.
2220         * cpplib.h (struct options): Add preprocess_only.
2221         * cppmain.c: Don't include intl.h.
2222         (cpp_preprocess_file): Set options->preprocess_only.
2223         (scan_translation_unit_trad): Fix, and print line numbers.
2224         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
2225         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
2226         save_replacement_text, _cpp_create_trad_definition): Update for
2227         variable renaming.
2228         (_cpp_overlay_buffer): Save line number.
2229         (_cpp_remove_overlay): Rename from restore_buff, restore line.
2230         (_cpp_read_logical_line_trad): Don't handle overlays here.
2231         (scan_out_logical_line): Process directives.
2233 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
2235         * gthr-win32.h: Wrap functions in extern "C".
2236         (__gthread_key_t): Typedef as unsigned long,
2237         not win32 DWORD.
2238         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
2239         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
2240         (__gthr_win32_once, __gthr_win32_key_create,
2241         __gthr_win32_key_delete, __gthr_win32_getspecific,
2242         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
2243         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
2244         __gthr_win32_mutex_unlock): Declare.
2245         (__gthread_once,__gthread_key_create,
2246         __gthread_key_delete, __gthread_getspecific,
2247         __gthread_setspecific, __gthread_mutex_init_function,
2248         __gthread_mutex_lock,__gthread_mutex_trylock,
2249         __gthread_mutex_unlock): Call corresponding
2250         __gthr_win32_* extern implementations if #defined
2251         __GTHREAD_HIDE_WIN32API.
2252         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
2253         $(srcdir)/config/i386/gthr-win32.c
2254         * config/i386/gthr-win32.c: New implementation file.
2255         (__gthr_win32_once, __gthr_win32_key_create,
2256         __gthr_win32_key_delete, __gthr_win32_getspecific,
2257         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
2258         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
2259         __gthr_win32_mutex_unlock): New functions, based on
2260         static inlines in gthr-win32.h.
2262 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
2264         * config/xtensa/xtensa.c (override_options): Don't warn about
2265         using -fpic or -fPIC when PIC is enabled by default.
2267 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2269         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
2271 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2273         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
2274         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
2275         exists, substitute its pathname as @extra_modes_file@, define
2276         EXTRA_MODES_FILE to be an appropriate string to #include it
2277         with, and define EXTRA_CC_MODES to 1.
2279         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
2280         it's defined.  Get rid of redundancy in calling sequence for
2281         CC; don't use it to define CCmode, to avoid a warning.
2282         * libgcc2.c: Include symcat.h for the sake of machmode.def.
2284         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
2285         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
2286         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
2287         New files.
2288         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
2289         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
2291         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
2292         defining extra CC modes.
2294 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2295             Andreas Jaeger <aj@suse.de>
2297         * cfgrtl.c (create_basic_block_structure):  Remove index argument
2298         and use last_basic_block++ instead.  (create_basic_block): Update.
2299         * cfgbuild.c (find_basic_blocks_1): Likewise.
2301         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
2302         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
2303         * sched-ebb.c (schedule_ebbs): Likewise.
2304         * sched-rgn.c (schedule_insns): Likewise.
2305         * ssa-ccp.c (ssa_const_prop): Likewise.
2306         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
2307         * toplev.c (rest_of_compilation): Likewise.
2308         * config/ia64/ia64.c (ia64_reorg): Likewise.
2310 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2312         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
2313         of matching registers.
2315 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2317         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
2318         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
2320 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
2322         * config/mmix/mmix.h: Improve comments.
2323         (CPP_SPEC, CPP_PREDEFINES): Don't define.
2324         (TARGET_CPU_CPP_BUILTINS): Define.
2325         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
2326         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
2327         unused predicate.
2328         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
2329         compiler warning.
2330         (mmix_constant_address_p): Remove another
2331         redundant test before case.
2332         (mmix_canonicalize_comparison): Remove unused function.
2333         (mmix_print_operand_address): Don't test and adjust for operand in
2334         non-canonical format.
2335         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
2336         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
2338 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2340         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
2341         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
2342         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
2343         (gen_compare): Use CCmode unconditionally.
2345 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2347         PR optimization/6759
2348         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
2349         the REQ_EQUAL note.
2351 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2353         PR c/6660
2354         * c-decl.c (grokfield): Allow user defined types if they declare
2355         structs or unions for unnamed fields.
2357 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2359         PR c/6809
2360         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
2362 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2364         PR optimization/6842
2365         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
2366         operand subreg cannot be simplified.
2368 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2370         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
2371         (compare_constant): Likewise.
2372         (output_addressed_constants): Likewise.
2374 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2376         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
2377         merge bb with itself.
2379 2002-06-10  Richard Henderson  <rth@redhat.com>
2381         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
2382         (builtin_zapnot): Likewise.
2384         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
2385         reservation.
2387 2002-06-10  Eric Christopher  <echristo@redhat.com>
2389         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
2390         prototype and function.
2391         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
2392         (call_insn_operand): Remove half pic references.
2393         (legitimate_address_p): Ditto.
2394         * config/i386/i386.h: Remove half pic defines.
2396 2002-06-10  Eric Christopher  <echristo@redhat.com>
2398         * doc/extend.texi (Return Address): Add note explaining the side-
2399         effects of inlining on __builtin_return_address.
2401 2002-06-10  Tom Tromey  <tromey@redhat.com>
2403         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
2404         (c-common.o): Depend on langhooks.h.
2406 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2408         * cpphash.h (_cpp_read_logical_line_trad,
2409         _cpp_expansions_different_trad): Update prototypes.
2410         * cpplex.c (continue_after_nul): New.
2411         * cppmain.c: Include cpphash.h.
2412         (scan_translation_unit_trad): New.
2413         (cpp_preprocess_file): Call it.
2414         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
2415         overlay.
2416         (_cpp_expansions_different_trad): Update prototype.
2418 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
2420         Fix cfi generation for SH[1-4]:
2422         * sh.c (frame_insn): New function.
2423         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
2424         (push): Now returns rtx.  Use frame_insn.
2425         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
2426         of a DF register.
2427         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
2429 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2431         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
2432         and gtype-desc.c.
2433         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
2434         (distclean): ... not here.  But do delete all testsuite/*.log,
2435         testsuite/*.sum files here.  Delete mkheaders.  Delete
2436         po/*.gmo and the testsuite directory in a split tree build.
2438 2002-06-10  Jeffrey Law  <law@redhat.com>
2440         * alias.c (static_reg_base_value): New to hold RTL for
2441         items allocated once per function for the aliasing code.
2442         (init_alias_once_per_function): Initialize static_reg_base_value.
2443         (init_alias_analysis): Avoid throw-away allocations of RTL by
2444         using pre-computed values in static_reg_base_value.
2445         * function.c (prepare_function_start): Call
2446         init_alias_once_per_function appropriately.
2447         * rtl.h (init_alias_once_per_function): Declare.
2448         * caller-save (init_caller_save): Restructure slightly to
2449         avoid lots of silly RTL generation.
2450         * expr.c (init_expr_once): Likewise.
2451         * reload1.c (reload_cse_regs_1): Allocate throw-away register
2452         RTL object here.  Pass it into children.
2453         (reload_cse_simplify_operands): Use passed-in register RTL
2454         object.
2455         (reload_cse_simplify): Pass through throw-away register
2456         RTL object.
2458 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
2460         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
2462 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
2464         * gcc.c (process_command): Avoid assignment to read-only location.
2465         Fix sizeof calculation.
2467 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2469         * cpphash.h (struct cpp_macro): Put comments on their own lines.
2470         (_cpp_expansions_different_trad): New.
2471         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
2472         * cpptrad.c (canonicalize_text): New.
2473         (scan_out_logical_line): Handle no arguments correctly.
2474         (save_replacement_text): Commit memory when finished.
2475         (_cpp_expansions_different_trad): New.
2477 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2479         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
2480         TREELANG and COBOL.
2481         (lang_names): Add treelang and cobol.
2482         (get_file_basename): Add code to support treelang and cobol as
2483         4th and 5th users of c-common.c.
2485 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
2487         * Makefile.in (install-driver): Install driver as
2488         $(target_alias)-gcc-$(version).
2489         * gcc.c (spec_version): Make const.
2490         (process_command): Handle -V and -b by using exec.
2491         * doc/invoke.texi (Target Options): Restore -V option,
2492         update docs for -b option.
2494 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2496         * configure.in (remaining_languages_check):
2497         Added check that all languages specified were found.
2498         Exit if not found. Previous behaviour was silent failure.
2499         * configure: Regenerated.
2501 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2503          First steps to making treelang documentation compliant, based on
2504          instructions in sourcebuild.texi. Also add to gcc.c list of
2505          default languages.
2507         * doc/contrib.texi: Add self as contributor of treelang.
2509         * doc/frontends.texi: Add mention of treelang.
2511         * doc/invoke.texi (Overall Options): Add mention of treelang.
2513         * doc/standards.texi:  Add mention of treelang.
2515 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
2517         * config/cris/cris.c: Include ggc.h
2519 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2521         * cpphash.h (_cpp_push_text_context): Update.
2522         (_cpp_arguments_ok): New.
2523         * cppmacro.c (_cpp_arguments_ok): New, split out from...
2524         (collect_args): ...here.
2525         (_cpp_push_text_context): Change inputs.
2526         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
2527         replace_args_and_push): New.
2528         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
2529         Don't use IS macros directly.
2530         (scan_out_logical_line): Handle function-like macro argument
2531         collection.
2532         (push_replacement_text): Update.
2533         (replacement_length): Remove.
2534         (_cpp_create_trad_definition): Don't skip whitespace before
2535         checking for '('.
2537 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2539         * config/avr/avr.c (avr_mcu_types): Update for new devices.
2540         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
2541         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
2542         * config/avr/avr.md ("type" and "length" attributes): New type
2543         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
2544         output a single "call" or "rcall" insn depending on device size.
2545         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
2547 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
2549         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
2550         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
2551         assembler option.
2552         (CPP_CPU_SPEC): Add power3 and power4.
2553         (PROCESSOR_DEFAULT): Change to 604e.
2554         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
2555         (CPP_CPU_SPEC): Similar additions.
2556         (enum process_type): Add POWER4.
2557         (RTX_COSTS): Add POWER4.
2558         (CPP_CPU_SPEC): Similar additions.
2559         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
2560         (PROCESSOR_DEFAULT64): Define.
2561         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
2562         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
2563         branch adjustment.
2564         (rs6000_issue_rate): Add Power4.
2565         * config/rs6000/rs6000.md (cpu attr): Add power4.
2566         (iu compare): Remove 604, 604e, 620, 630.
2567         Add basic Power4 scheduling information.
2568         (mfcr/mtcrf): Change type attribute to cr_logical.
2570 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2572         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
2573         ATTRIBUTE_PRINTF_2.
2574         * gengtype-lex.l: Fix format specifier warning.
2576         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
2577         not isspace.
2578         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
2579         lieu of isspace/IDchar.
2580         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
2581         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
2582         ISSPACE.
2584 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
2586         * Makefile.in (LIBCPP_OBJS): Take out version.o.
2587         * cpphash.h (cpp_reader): Take out print_version member.
2588         * cppinit.c: (cpp_handle_option): Don't do anything with
2589         -version.  Just set help_only for --version, --target-help.
2590         Just set verbose option for -v.
2591         (cpp_post_options): Don't print a version string.
2593 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2595         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
2596         (avr_section_type_flags): New, handle .noinit* sections.
2598 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2600         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
2601         and include netbsd_entry_point.
2602         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2603         (NETBSD_ENTRY_POINT): Define.
2605 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2607         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
2608         if not already defined.
2609         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
2611 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2613         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
2614         in a noreturn function.
2615         (avr_output_function_prologue, avr_output_function_epilogue):
2616         Correct function size calculation.  Do not crash on empty function.
2617         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
2619 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2621         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2622         netbsd_link_spec and netbsd_entry_point.
2623         (LINK_SPEC): Use %(netbsd_link_spec).
2624         (NETBSD_ENTRY_POINT): Define.
2626 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2628         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
2629         linker emulation.
2630         (LINK_ARCH64_SPEC): Likewise.
2631         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
2632         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
2634 2002-06-08  Marc Espie  <espie@openbsd.org>
2636         * lists.c (free_list):  Fix typo in comment.
2638 2002-06-08  Andreas Jaeger  <aj@suse.de>
2640         * lcm.c (optimize_mode_switching): Add unused attribute for
2641         variable.
2643         * sched-deps.c (sched_analyze): Remove unused variable.
2645 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
2647         * diagnostic.def: Don't capitalize diagnostict descriptors.
2649 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2651         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
2652         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2653         (NETBSD_ENTRY_POINT): Define.
2655 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2657         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
2658         NETBSD_LINK_SPEC_ELF.
2659         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
2660         (NETBSD_ENTRY_POINT): Define.
2661         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
2662         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
2663         netbsd_entry_point.
2664         (NETBSD_ENTRY_POINT): Define.
2666 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2668         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2669         netbsd_link_spec and netbsd_entry_point.
2670         (LINK_SPEC): Use %(netbsd_link_spec).
2671         (NETBSD_ENTRY_POINT): Define.
2673 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2675         * config/netbsd-elf.h (LINK_SPEC): Rename to...
2676         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
2677         to specify program entry point.
2679 2002-06-07  Jeff Law <law@redhat.com
2681         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
2682         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
2683         than creating a new register.
2684         (distribute_notes): Likewise.
2685         * df.c (df_reg_use_gen): Likewise.
2686         (df_reg_clobber_gen): Likewise.
2687         (df_ref_record): Likewise.
2688         * expr.c (use_regs): Likewise.
2689         * flow.c (propagate_one_insn): Likewise.
2690         (mark_set_1): Likewise.
2691         (mark_used_reg): Likewise.
2692         * reload.c (emit_reload_insns): Likewise.
2694 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2696         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
2697         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
2698         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
2699         comparison code comp can be reversed.
2701 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2703         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
2704         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
2705         equivalent x > -1.0 when -ffast-math.
2707 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2709         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
2710         * config/mips/t-netbsd: New file.
2712 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
2714         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
2715         options their own entries.
2716         (parse_option): Clarify comment.
2717         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
2718         special case.  Replace if/strcmp chain for -W options with
2719         use of new OPT_* entries for them.
2720         (cpp_handle_options): Update to match.
2721         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
2722         * c-decl.c: Update call to cpp_handle_option.
2724 2002-06-07  Akim Demaille  <akim@epita.fr>
2726         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2727         Whitespace changes.
2729 2002-06-07  Jeffrey Law  <law@redhat.com>
2731         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
2732         on empty lists.
2734 2002-06-07  H.J. Lu  (hjl@gnu.org)
2736         * configure.in: Add --enable-__cxa_atexit.
2737         * configure: Regenerated.
2738         * config.in: Likewise.
2740         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
2741         not defined.
2743 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
2745         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
2747 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2749         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
2751 2002-06-07  Jason Merrill  <jason@redhat.com>
2753         * cppexp.c (num_equality_op): Use a temporary variable to work
2754         around gcc 3.0.4 bug.
2756 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
2758         * diagnostic.c (diagnostic_build_prefix): Tidy.
2760 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2762         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
2763         scan_parameters, save_replacement_text, replacement_length): New.
2764         (scan_out_logical_line): Take a macro and save parameters if
2765         non-NULL.
2766         (_cpp_logical_line_trad): Update.
2767         (_cpp_create_trad_definition): Update to handle function-like
2768         macros.
2769         * cpplex.c (new_buff): Update.
2770         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
2771         * cpphash.h: ...here.
2772         (CPP_ALIGN2, _cpp_save_parameter): New.
2773         * cppmacro.c (save_parameter): Rename, export.
2774         (parse_params): Update.
2776 2002-06-07  Andreas Jaeger  <aj@suse.de>
2778         * config/mmix/mmix.c: Remove extra broken prototype for
2779         mmix_init_machine_status.
2781 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
2783         * gengtype.c: Add comments before all the routines.
2785 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2787         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
2788         from and add t-sh64 to ${tmake_file}.
2789         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
2790         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
2791         * config/sh/t-netbsd-sh5-32: Remove.
2792         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
2793         MULTILIB_ENDIAN.
2794         (MULTILIB_DIRNAMES): Define.
2796 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
2798         * i386.md (and promoting splitters): Disable QI to SImode promoting
2799         when doing so changes immediate to be 32bit.
2801         * rtl.h (emit_*_scope): Declare.
2802         * emit-rtl.c (emit_*_scope): New global functions.
2803         (try_split): Copy scope.
2804         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2805         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2806         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2807         noce_process_if_block, find_cond_trap): Copy scopes.
2808         * recog.c (peephole2_optimize): likewise.
2810 2002-06-06  Jeffrey Law  <law@redhat.com>
2812         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
2814 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
2816         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
2818 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2820         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
2821         ($(docdir)/gccinstall.info): New target.
2822         (info): Depend on it.
2823         (gccinstall.dvi): New target.
2824         (dvi): Depend on it.
2825         * doc/.cvsignore: Ignore new info files.
2826         * doc/install.texi (@setfilename): Reflect new info filename.
2828 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
2830         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
2831         on an UNSPEC.
2833 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2835         PR objc/6834
2836         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
2837         c_common_get_alias_set.
2838         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
2840 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2842         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
2843         functions.
2844         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
2845         * avr/avr.c (avr_output_function_epilogue): Use above to determine
2846         function size.
2847         * pa/pa.c (pa_output_function_prologue): Likewise.
2849 2002-06-05  David S. Miller  <davem@redhat.com>
2851         * integrate.c (subst_constants): Handle 'B' RTL format.
2853 2002-06-05  Eric Christopher  <echristo@redhat.com>
2855         * varasm.c (make_decl_rtl): Fix comment for removed
2856         halfpic.c.
2858 2002-06-05  Eric Christopher  <echristo@redhat.com>
2860         * Makefile.in: Remove missed halfpic bits.
2862 2002-06-05  Eric Christopher  <echristo@redhat.com>
2864         * toplev.c: Remove half-pic.
2865         * config/mips/mips.c: Ditto.
2866         * config/mips/mips.h: Ditto. Remove unused defines.
2867         * config/mips/openbsd.h: Update comment to reflect above.
2868         * config/mips/mips.md: Remove half-pic constraints.
2869         * halfpic.h: Delete.
2870         * halfpic.c: Ditto.
2872 2002-06-05  Jeffrey Law  <law@redhat.com>
2874         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
2875         rejects (mem (lo_sum (reg) (unspec))), but will allow
2876         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
2878 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2880         * cpphash.h (_cpp_create_definition): Update prototype.
2881         (_cpp_push_text_context, _cpp_create_trad_definition): New.
2882         ( cpp_lex_identifier_trad): New.
2883         (_cpp_set_trad_context): New.
2884         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
2885         * cpplib.c (SEEN_EOL): Update.
2886         (lex_macro_node): Update for -traditional.
2887         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
2888         * cppmacro.c (_cpp_create_definition): Split into
2889         create_iso_definition() and _cpp_create_trad_definition().
2890         (warn_of_redefinition): Update prototype; handle traditional
2891         macros.
2892         (_cpp_push_text_context): New.
2893         * cpptrad.c (skip_whitespace, push_replacement_text): New.
2894         (lex_identifier): Call ht_lookup with correct start.
2895         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
2896         _cpp_set_trad_context): New.
2897         (scan_out_logical_line): Update to handle changing contexts.
2899 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
2901         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
2902         (shl*-*-elf*): Add.
2903         * config/sh/t-be (MULTILIB_ENDIAN): Set.
2904         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
2905         * t-sh (MULTILIB_ENDIAN): Set.
2906         (MULTILIB_OPTIONS): Use it.
2907         * t-sh64 (MULTILIB_OPTIONS): Likewise.
2908         (MULTILIB_DIRNAMES): Likewise.
2910 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
2912         * toplev.h (report_error_function): Remove.
2914         * diagnostic.h (location_t): New datatype.
2915         (text_info): Likewise.
2916         (diagnostic_info): Likewise.
2917         (output_prefix): New macro.
2918         (diagnostic_last_function_changed): Likewise.
2919         (diagnostic_set_last_function): Likewise.
2920         (diagnostic_last_module_changed): Likewise.
2921         (diagnostic_set_last_module): Likewise.
2922         (report_diagnostic): Now macro.
2923         (diagnostic_set_info): Declare.
2925         * diagnostic.c (report_problematic_module): Rename to
2926         diagnostic_repor_current_module.
2927         (set_diagnostic_context): Remove.
2928         (count_error): Rename to diagnostic_error_count.
2929         (error_function_changed): Remove.
2930         (record_last_error_function): Likewise.
2931         (error_module_changed): Likewise.
2932         (record_last_error_module): Likewise.
2933         (context_as_prefix): Rename to diagnostic_build_prefix.
2934         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
2935         (diagnostic_set_info): New function.
2937         * objc/objc-act.c: #include diagnostic.h
2938         (error_with_ivar): Adjust call to count_error.
2939         (warn_with_method): Likewise.
2940         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
2942 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
2944         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
2945         lang_hooks.types.make_type instead of make_node; set up
2946         __va_list_tag type decl.
2947         (xtensa_builtin_saveregs): Remove broken use of
2948         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
2949         for saved registers; add varargs alias set.
2951 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2953 config:
2954         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
2955         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2956         CPP_PREDEFINES and part of CPP_SPEC.
2957         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
2958         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
2960 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
2962         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
2964 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
2966         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
2968 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
2970         * gengtype-yacc.y: Make sure all rules end with a semicolon.
2972 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
2974         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
2975         typo in function prototype and include "ggc.h" header.
2977 2002-06-04  Richard Henderson  <rth@redhat.com>
2979         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
2980         (print_operand) ['U']: Likewise.
2981         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
2982         (alpha_expand_unaligned_store_words): Likewise.
2983         (alpha_expand_builtin_vector_binop): Fix typo.
2984         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
2985         umulh, and cix insns.
2986         (one_arg_builtins): Add cix builtins.
2987         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
2988         (alpha_expand_builtin): Fix typo in arity.
2989         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
2990         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
2991         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
2992         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
2993         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
2994         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
2995         builtin_ctlz, builtin_ctpop): New.
2996         * doc/extend.texi (Alpha Built-in Functions): Update.
2998 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
3000         * gengtype.c (write_gc_root): Don't unnecessarily prevent
3001         global variable-length arrays being roots.
3003         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
3004         * configure.in (config_gtfiles): New variable.
3005         (all_gtfiles): Initialise from config_gtfiles.
3006         * configure: Regenerate.
3008 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3010 config/i386:
3011         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
3012         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
3013         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
3014         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
3015         win32.h (CPP_SPEC): Remove cpp_cpu.
3016         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
3017         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
3019 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
3021         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
3023 2002-06-04  Jeff Law <law@redhat.com.
3024             David Edelsohn <edelsohn@gnu.org>
3025             Michael Matz <matz@kde.org>
3027         * sched-int.h (struct deps): New field libcall_block_tail_insn.
3028         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
3029         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
3030         is set, then mark the current insn as being part of a libcall
3031         scheduling group.
3032         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
3034         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
3035         insns against the issue rate.
3037 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
3039         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
3040         * final.c (final_scan_insn): Likewise.
3041         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
3042         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
3043         * haifa-sched.c (unlink_other_notes): Likeewise.
3044         (reemit_notes): Likewise.
3045         * print-rtl.c (print_rtx): Likewise.
3046         * sched-deps (sched-analyze): Likewise.
3047         * rtl.c (note_insn_name): Likewise.
3048         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
3049         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
3050         (RANGE_*): Kill.
3052 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
3054         * varasm.c (mark_constants): Handle RTX format 'B'.
3056 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3058         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
3059         (struct cpp_context): Add traditional fields.
3060         * cppmacro.c (paste_all_tokens, push_ptoken_context,
3061         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
3062         * cpptrad.c (skip_comment, lex_identifier,
3063         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
3065 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
3067         * gbl-ctors.h: Fix formatting.
3068         * gcc.c: Likewise.
3069         * gccspec.c: Likewise.
3070         * gcov.c: Likewise.
3071         * gcov-io.h: Likewise.
3072         * gcse.c: Likewise.
3073         * ggc-common.c: Likewise.
3074         * ggc.h: Likewise.
3075         * ggc-page.c: Likewise.
3076         * ggc-simple.c: Likewise.
3077         * global.c: Likewise.
3078         * graph.h: Likewise.
3079         * gthr-dce.h: Likewise.
3080         * gthr.h: Likewise.
3081         * gthr-posix.h: Likewise.
3082         * gthr-rtems.h: Likewise.
3083         * gthr-solaris.h: Likewise.
3084         * gthr-win32.h: Likewise.
3086 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
3088         Merge from pch-branch:
3090         * gengtype.h (UNION_OR_STRUCT_P): New macro.
3091         * gengtype.c (write_gc_structure_fields): Use it.
3092         (write_gc_root): Use it here too.
3094         * gengtype.c (write_gc_structure_fields): Assume that lengths
3095         of typenames fit into an 'int'; don't pass a size_t to "%d" in
3096         printf.
3097         (write_gc_marker_routine_for_structure): Likewise.
3098         (write_gc_types): Likewise.
3099         (write_gc_root): Likewise.
3101         * varray.h (VARRAY_CLEAR): New.
3102         (varray_clear): Prototype.
3103         * varray.c (varray_clear): New.
3104         * cselib.c (reg_values_old): New.
3105         (used_regs_old): New.
3106         (cselib_init): Use cached varrays if available to avoid
3107         generating large amounts of garbage.
3108         (cselib_finish): Don't throw away old varrays.
3110         * final.c (insn_addresses_): Move out of ifdef.
3112         * varray.c (uses_ggc): Make more varray kinds GCable.
3113         * varray.h (union varray_data_tag): Let gengtype see
3114         fields 'generic' and 'te'.
3115         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
3116         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
3117         (reg_to_stack): Don't call VARRAY_FREE.
3118         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
3119         (insn_addresses_): Use gengtype to mark.
3120         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
3121         pointers; handle generic pointers in unused union fields.
3122         (get_output_file_with_visibility): Include cselib.h,
3123         insn-addr.h in gtype-desc.c.
3124         * function.c (prologue): Use gengtype to mark.
3125         (epilogue): Likewise.
3126         (sibcall_epilogue): Likewise.
3127         * dependence.c: Include gt-dependence.h, ggc.h.
3128         (struct def_use): Use gengtype to mark.
3129         (struct loop): Likewise.
3130         (struct induction): Likewise.
3131         (struct dependence): Likewise.
3132         (def_use_chain): Likewise.
3133         (dep_chain): Likewise.
3134         (loop_chain): Likewise.
3135         (induction_chain): Likewise.
3136         (init_dependence_analysis): Don't free anything, just clear pointers.
3137         (build_def_use): Use GGC to allocate def_use.
3138         (add_loop): Use GGC to allocate loop.
3139         (find_induction_variable): Use GGC to allocate induction.
3140         (check_node_dependence): Use GGC to allocate induction, dependence.
3141         (dump_node_dependence): Don't free varrays.
3142         (end_dependence_analysis): Likewise.
3143         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
3144         (struct elt_loc_list): Likewise.
3145         (struct elt_list): Likewise.
3146         * cselib.c: Don't include obstack.h.
3147         (hash_table): Use gengtype to mark.
3148         (reg_values): Use gengtype to mark.
3149         (used_regs): Use gengtype to mark.
3150         (cselib_obstack): Delete.
3151         (cselib_startobj): Delete.
3152         (empty_vals): Mark as deletable.
3153         (empty_elt_lists): Mark as deletable.
3154         (empty_elt_loc_lists): Mark as deletable.
3155         (new_elt_list): Use GGC to allocate struct elt_list.
3156         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
3157         (clear_table): Don't delete obstack; don't unnecessarily clear
3158         deletable variables.
3159         (new_cselib_val): Use GGC to allocate struct cselib_val.
3160         (cselib_init): Don't set up obstacks.  Use GGC to allocate
3161         hash table.
3162         (cselib_finish): Just clear variables, don't free anything.
3163         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
3164         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
3165         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
3166         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
3167         (gt-reg-stack.h): New rule.
3168         (gt-dependence.h): New rule.
3169         (gtype-desc.o): Add cselib.h, insn-addr.h.
3171         * varray.c: Use only necessary headers.
3172         (element_size): New.
3173         (uses_ggc): New.
3174         (varray_init): Take type, not size.  Use GGC if appropriate.
3175         (varray_grow): Update for change to struct varray_head_tag.
3176         Use GGC if appropriate.
3177         * varray.h (struct const_equiv_data): Use gengtype.
3178         (enum varray_data_enum): New.
3179         (union varray_data_tag): Use gengtype.
3180         (struct varray_head_tag): Use gengtype.  Replace size field with
3181         enum varray_data_enum.
3182         (varray_init): Update prototype.
3183         (VARRAY_SCHED_INIT): Delete.
3184         (VARRAY_*_INIT): Update for change to varray_init.
3185         (VARRAY_SCHED): Delete.
3186         (VARRAY_PUSH_SCHED): Delete.
3187         (VARRAY_TOP_SCHED): Delete.
3188         * tree.h: Update for change to length specifier.
3189         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
3190         (clone_body): Likewise.
3191         * ssa.h (ssa_definition): Use gengtype to mark.
3192         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
3193         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
3194         * rtl.h (struct rtvec_def): Update for change to length specifier.
3195         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
3196         (struct initial_value_struct): Update for change to length specifier.
3197         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
3198         (ggc_add_tree_varray_root): Delete prototype.
3199         (ggc_mark_rtx_varray): Delete prototype.
3200         (ggc_mark_tree_varray): Delete prototype.
3201         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
3202         (ggc_add_tree_varray_root): Delete.
3203         (ggc_mark_rtx_varray): Delete.
3204         (ggc_mark_tree_varray): Delete.
3205         (ggc_mark_rtx_varray_ptr): Delete.
3206         (ggc_mark_tree_varray_ptr): Delete.
3207         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
3208         (create_varray): Delete prototype.
3209         * gengtype.c (varrays): Delete.
3210         (create_varray): Delete.
3211         (adjust_field_type): Detect array of string pointers.
3212         (process_gc_options): Remove code to handle varray_type option.
3213         (set_gc_used_type): Remove TYPE_VARRAY case.
3214         (output_escaped_param): New.
3215         (write_gc_structure_fields): Use output_escaped_param on all
3216         parameters.  Handle 'skip' with 'use_param' option.  Handle
3217         arrays of strings.  Remove TYPE_VARRAY handling.
3218         (write_gc_roots): Use boolean to detect 'length' option.
3219         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
3220         (struct_fields): Call adjust_field_type on array fields.
3221         (type): Remove VARRAY_TYPE case.
3222         (type_option): Likewise.
3223         * gengtype-lex.l: Don't consider varray_type a keyword.
3224         * function.h: Update for change to length specifier.
3225         (free_eh_status): Delete prototype.
3226         * function.c (free_after_compilation): Don't call free_eh_status.
3227         (reorder_blocks): Don't use VARRAY_FREE.
3228         * except.c (struct eh_status): Update for change to length specifier.
3229         remove varray_type specifier.
3230         (free_eh_status): Delete.
3231         * dwarf2out.c: Include gt-dwarf2out.h.
3232         (used_rtx_varray): Use gengtype to mark, move
3233         outside ifdefs.
3234         (incomplete_types): Likewise.
3235         (decl_scope_table): Likewise.
3236         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
3237         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
3238         * c-tree.h (struct lang_type): Update for change to length specifier.
3239         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
3240         * c-objc-common.c: Include gt-c-objc-common.h.
3241         (deferred_fns): Mark for gengtype.
3242         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
3243         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
3244         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
3245         (gtype-desc.o): Update dependencies.
3246         (dwarf2out.o): Add gt-dwarf2out.h.
3247         (varray.o): Update dependencies.
3248         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
3249         (gt-c-objc-common.h): New rule.
3250         (gt-dwarf2out.h): New rule.
3251         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
3253         * doc/gty.texi (GTY Options): Correct spelling.
3254         (GGC Roots): Likewise.
3255         * Makefile.in (TEXI_CPP_FILES): New.
3256         (TEXI_GCC_FILES): New.
3257         (TEXI_GCCINT_FILES): New.
3258         (TEXI_CPPINT_FILES): New.
3259         ($(docdir)/cpp.info): Use new macros.
3260         ($(docdir)/gcc.info): Likewise.
3261         ($(docdir)/gccint.info): Likewise.
3262         ($(docdir)/cppinternals.info): Likewise.
3263         (cpp.dvi): Likewise.
3264         (gcc.dvi): Likewise.
3265         (gccint.dvi): Likewise.
3266         (cppinternals.dvi): Likewise.
3268         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
3269         * doc/gccint.texi (Top): Include gty.texi.
3270         * doc/gty.texi: New file.
3272         * bitmap.c: Include ggc.h, gt-bitmap.h.
3273         (bitmap_ggc_free): New.
3274         (bitmap_elem_to_freelist): New.
3275         (bitmap_element_free): Use bitmap_elem_to_freelist.
3276         (bitmap_element_allocate): Allow use of GGC.
3277         (bitmap_clear): Use bitmap_elem_to_freelist.
3278         (bitmap_copy): Update for change to bitmap_element_allocate.
3279         (bitmap_set_bit): Likewise.
3280         (bitmap_operation): Update for changes elsewhere.
3281         (bitmap_initialize): Allow to create bitmaps that will use GGC.
3282         * bitmap.h (struct bitmap_element_def): Use gengtype.
3283         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
3284         (bitmap_initialize): Add extra parameter.
3285         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
3286         (BITMAP_ALLOCA): Delete.
3287         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
3288         (BITMAP_GGC_ALLOC): New.
3289         * Makefile.in (gtype-desc.o): Add bitmap.h.
3290         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
3291         (GTFILES): Add bitmap.c.
3292         (gt-bitmap.h): New rule.
3293         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
3294         * basic-block.h: Update for changes to bitmap_initialize.
3295         * except.c (exception_handler_label_map): Move into...
3296         (struct eh_status): Here.
3297         (struct eh_region): Make 'aka' GCable.
3298         (free_eh_status): Don't need to specially handle
3299         exception_handler_label_map.
3300         (add_ehl_entry): Update for changes to exception_handler_label_map.
3301         (find_exception_handler_labels): Likewise.
3302         (remove_exception_handler_label): Likewise.
3303         (maybe_remove_eh_handler): Likewise.
3304         (for_each_eh_label): Likewise.
3305         (remove_eh_handler): Allocate 'aka' using GGC.
3306         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
3307         to list of includes.
3309         * gengtype.c (write_gc_marker_routine_for_structure): Name
3310         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
3311         (write_gc_types): Arrange for the tests with NULL to be inlined.
3312         (write_gc_roots): Update uses of procedure pointers.
3313         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
3315         * Makefile.in (explow.o): Add dependency on gt-explow.h.
3316         (sdbout.o): Add dependency on gt-sdbout.h.
3318         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
3319         (mem_attrs_htab): Likewise.
3320         (init_emit_once): Don't call ggc_add_deletable_htab.
3321         * fold-const.c (size_htab): Use gengtype to clear unused entries.
3322         (size_int_type_wide): Don't call ggc_add_deletable_htab.
3323         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
3324         parameters, use them, change callers.
3325         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
3326         (write_gc_roots): Handle 'if_marked' option.
3327         (main): Don't need to call set_gc_used_type any more.
3328         * ggc.h (ggc_htab_marked_p): Delete.
3329         (ggc_htab_mark): Delete.
3330         (struct ggc_cache_tab): New.
3331         (gt_ggc_cache_rtab): New declaration.
3332         * ggc-common.c (struct d_htab_root): Delete.
3333         (d_htab_roots): Delete.
3334         (ggc_add_deletable_htab): Delete.
3335         (ggc_htab_delete): Handle new htab-deleting mechanism.
3336         (ggc_mark_roots): Use new htab-deleting mechanism.
3337         * tree.c (type_hash_table): Use gengtype to clear unused entries.
3338         Make static.
3339         (init_obstacks): Don't call ggc_add_deletable_htab.
3341         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
3342         (struct hashed_entry): Likewise.
3343         (nst_method_hash_list): Likewise.
3344         (cls_method_hash_list): Likewise.
3345         (HASH_ALLOC_LIST_SIZE): Delete.
3346         (ATTR_ALLOC_LIST_SIZE): Delete.
3347         * objc/objc-act.c (hash_init): Use ggc to allocate
3348         nst_method_hash_list, cls_method_hash_list.
3349         (hash_enter): Use ggc to allocate; allocate one entry at a time.
3350         (hash_add_attr): Likewise.
3351         (ggc_mark_hash_table): Delete.
3352         (objc_act_parse_init): Delete.
3353         (objc_init): Delete reference to objc_act_parse_init.
3354         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
3355         obstack.h.  Replace references to 'struct hash_table' with htab_t.
3356         (struct symbol_hash_entry): Replace hash header with key field.
3357         (struct file_hash_entry): Replace hash header with key field.
3358         (struct demangled_hash_entry): Replace hash header with key field.
3359         (hash_string_eq): New.
3360         (hash_string_hash): New.
3361         (symbol_hash_newfunc): Delete.
3362         (symbol_hash_lookup): Modify to use htab_t.
3363         (file_hash_newfunc): Delete.
3364         (file_hash_lookup): Modify to use htab_t.
3365         (demangled_hash_newfunc): Delete.
3366         (demangled_hash_lookup): Modify to use htab_t.
3367         (tlink_init): Modify to use htab_t.
3368         * hash.h: Delete.
3369         * hash.c: Delete.
3370         * ggc.h: Delete forward structure declarations.
3371         Delete prototypes for deleted functions.
3372         * ggc-common.c: Don't include hash.h.
3373         (ggc_add_tree_hash_table_root): Delete.
3374         (ggc_mark_tree_hash_table_entry): Delete.
3375         (ggc_mark_tree_hash_table): Delete.
3376         (ggc_mark_tree_hash_table_ptr): Delete.
3377         * gengtype.c (write_gc_structure_fields): Allow param_is option.
3378         (write_gc_marker_routine_for_structure): Use visibility of
3379         the parameter if there is one.
3380         * function.c: Replace hash.h with hashtab.h.  Replace references
3381         to 'struct hash_table *' with htab_t.
3382         (struct insns_for_mem_entry): Include a plain key.
3383         (fixup_var_refs_insns_with_hash): Update to use htab_t.
3384         (insns_for_mem_newfunc): Delete.
3385         (insns_for_mem_hash): Update to use htab_t.
3386         (insns_for_mem_comp): Likewise.
3387         (insns_for_mem_walk): Likewise.
3388         * c-lang.c: Include ggc.h.
3389         * Makefile.in (OBJS): Remove hash.o.
3390         (c-lang.o): Add GGC_H.
3391         (COLLECT2_OBJS): Remove hash.o.
3392         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
3393         (ggc-common.o): Remove hash.h.
3394         (function.o): Remove hash.h, add HASHTAB_H.
3395         (genautomata.o): Remove hash.h, add HASHTAB_H.
3397         * varasm.c (mark_const_str_htab_1): Delete.
3398         (mark_const_str_htab): Delete.
3399         (const_str_htab_del): Delete.
3400         (const_str_htab): Use gengtype to mark.
3401         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
3402         allocate them.
3403         * tree.c (mark_tree_hashtable_entry): Delete.
3404         (mark_tree_hashtable): Delete.
3405         * tree.h (mark_tree_hashtable): Delete prototype.
3406         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
3407         (ggc_mark): Likewise.
3408         (ggc_calloc): New.
3409         (htab_create_ggc): New.
3410         * ggc-common.c (ggc_calloc): New.
3411         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
3412         (struct type): Add param_struct structure.
3413         * gengtype.c (param_structs): New.
3414         (adjust_field_type): Handle param_is option.
3415         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
3416         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
3417         (write_gc_structure_fields): Add new PARAM parameter.  Update
3418         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
3419         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
3420         Use it to generate function name.  Update callers.
3421         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
3422         Process them.
3423         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
3424         option.
3425         (main): Define PTR as pointer-to-scalar.  Don't specially
3426         mark deferred_string or ehl_map_entry.
3427         * gengtype-yacc.y (PARAM_IS): Add new token.
3428         (externstatic): Use adjust_field_type.
3429         (type_option): Add PARAM_IS.
3430         * gengtype-lex.l: Add rule for typedef of function pointers.
3431         Add rule for PARAM_IS.
3432         (IWORD): Add size_t.
3433         * except.c (exception_handler_label_map): Use gengtype to mark.
3434         (type_to_runtime_map): Likewise.
3435         (mark_ehl_map_entry): Delete.
3436         (mark_ehl_map): Delete.
3437         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
3438         (t2r_mark_1): Delete.
3439         (t2r_mark): Delete.
3440         * Makefile.in (gtype-desc.o): Correct dependencies.
3441         (GTFILES): Add hashtab.h.
3442         (genautomata.o): Actually uses hashtab.h.
3444         * Makefile.in (stringpool.o): Add $(GGC_H).
3445         (dwarf2asm.o): Likewise.
3446         (GTFILES): Add hashtable.h.
3447         * c-common.h (struct c_common_identifier): Use gengtype.
3448         * c-decl.h (c_mark_tree): Delete.
3449         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3450         * c-tree.h (struct lang_identifier): Use gengtype.
3451         (union lang_tree_node): New.
3452         (c_mark_tree): Delete prototype.
3453         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
3454         dwarf2_debug_hooks.
3455         * gengtype-lex.l (IWORD): Allow 'bool'.
3456         (ptr_alias): Match.
3457         * gengtype-yacc.y (ALIAS): New token.
3458         (type_option): New rule.
3459         (option): Use type_option.
3460         * gengtype.c (process_gc_options): New.
3461         (set_gc_used_type): Use it.
3462         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
3463         Add new variable 't' to hold the type of the field being processed.
3464         Add more error checking.  Use UNION_P when looking at 'desc' option.
3465         Handle language-specific structures containing other
3466         language-specific structures.
3467         (write_gc_types): Handle 'ptr_alias' option.
3468         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
3469         * ggc-common.c (ggc_pending_trees): Delete.
3470         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
3471         (ggc_mark_trees): Delete.
3472         (gt_ggc_m_tree_node): Delete.
3473         * ggc.h (ggc_pending_trees): Delete.
3474         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
3475         * hashtable.h (ht_identifier): Use gengtype.
3476         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
3477         * langhooks.h (struct lang_hooks): Delete mark_tree.
3478         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
3479         anyway.
3480         * system.h: Poison LANG_HOOKS_MARK_TREE.
3481         * tree.c (tree_node_structure): New.
3482         * tree.h (struct tree_common): Use gengtype.
3483         (struct tree_int_cst): Likewise.
3484         (struct tree_real_cst): Likewise.
3485         (struct tree_string): Likewise.
3486         (struct tree_complex): Likewise.
3487         (struct tree_vector): Likewise.
3488         (struct tree_identifier): Likewise.
3489         (struct tree_list): Likewise.
3490         (struct tree_vec): Likewise.
3491         (struct tree_exp): Likewise.
3492         (struct tree_block): Likewise.
3493         (struct tree_type): Likewise.
3494         (struct tree_decl): Likewise.
3495         (enum tree_structure_enum): New.
3496         (union tree_node): Use gengtype, with an alias.
3497         (tree_node_structure): Prototype.
3498         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3500         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
3501         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
3502         to LANG_HOOKS_FUNCTION_FINAL.
3503         * Makefile.in (GTFILES): Add bitmap.h.
3504         * except.c (struct eh_region): Mark field 'aka' to be skipped.
3506         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
3507         (alpha_init_machine_status): Give proper type.
3508         * Makefile.in (c-lang.o): Depend on gtype-c.h.
3509         (optabs.o): Depend on gt-optabs.h.
3510         (GTFILES): Add optabs.o.
3511         (gt-optabs.h): Add rule.
3512         * optabs.c: Include gt-optabs.h.
3514         * gengtype.c (set_gc_used_type): Correct some errors in last change.
3515         (write_gc_structure_fields): If a field which should be NULL is
3516         not, abort.
3517         * c-pragma.c: Move struct align_stack and variable alignment_stack
3518         out from the ifdef.
3520         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
3521         * config/xtensa/xtensa.c: Include gt-cris.h.
3522         (struct machine_function): Use gengtype to mark.
3523         * config/mmix/mmix.h (struct machine_function): Use gengtype
3524         to mark.
3525         * config/cris/t-cris: Add dependencies for gt-cris.h.
3526         * config/cris/cris.c: Include gt-cris.h.
3527         (struct machine_function): Use gengtype to mark.
3528         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
3529         to mark.
3530         * doc/tm.texi (Per-Function Data): Delete references to
3531         mark_machine_status.
3532         * config/ia64/ia64.c (ia64_override_options): Don't set
3533         mark_machine_status.
3534         * config/i386/i386.c (override_options): Likewise.
3535         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
3536         * config/arm/arm.c (arm_init_expanders): Likewise.
3537         * config/alpha/alpha.c (override_options): Likewise.
3538         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
3539         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
3540         (write_gc_structure_fields): Don't handle 'really' option.
3541         Handle 'maybe_null' option.
3542         (write_gc_types): Handle 'maybe_null' option.
3543         * function.h (struct function): Don't use "really".
3544         (mark_machine_status): Delete declaration.
3545         (mark_lang_status): Delete declaration.
3546         (gt_ggc_mr_machine_function): Delete prototype.
3547         (gt_ggc_mr_language_function): Delete prototype.
3548         * function.c (mark_machine_status): Delete.
3549         (mark_lang_status): Delete.
3550         (gt_ggc_mr_machine_function): Delete.
3551         (gt_ggc_mr_language_function): Delete.
3552         * c-tree.h (mark_c_function_context): Delete prototype.
3553         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
3554         * c-decl.c (struct language_function): Rename from struct
3555         c_language_function.  Update uses.  Use gengtype to mark.
3556         (mark_c_function_context): Delete.
3557         * c-common.h (struct c_language_function): Rename from struct
3558         language_function.
3559         (mark_stmt_tree): Delete prototype.
3560         (c_mark_lang_decl): Delete prototype.
3561         (mark_c_language_function): Delete prototype.
3562         * c-common.c (mark_stmt_tree): Delete.
3563         (c_mark_lang_decl): Delete.
3564         (mark_c_language_function): Delete.
3566         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
3567         (lang_bitmap): New typedef.  Use where appropriate.
3568         (struct type): Add gc_used field, lang_struct field.
3569         (UNION_P): New macro.
3570         (new_structure): New prototype.
3571         (find_structure): Remove 'pos' parameter.  Change all callers.
3572         * gengtype-lex.l: Update for changes to find_structure.
3573         * gengtype-yacc.y (typedef_struct): Use new_structure.
3574         (yacc_ids): Suppress warning.
3575         (type): Use new_structure.
3576         * gengtype.c (string_type): Update for changes to struct type.
3577         (find_structure): Just find a structure, don't worry about
3578         creating one.
3579         (new_structure): New.
3580         (note_yacc_type): Use new_structure.
3581         (set_gc_used_type): New.
3582         (set_gc_used): New.
3583         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
3584         (write_gc_types): Handle TYPE_LANG_STRUCT.
3585         (write_gc_marker_routine_for_structure): New.
3586         (main): Call set_gc_used.  Add some calls to set_gc_used_type
3587         for places where GCC doesn't use gengtype properly yet.
3588         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
3589         (gt_ggc_m_tree_node): Likewise.
3591         * varasm.c (copy_constant): Call expand_constant if we hit
3592         something we can't recognise.
3594         * ggc-common.c (ggc_mark_rtvec_children): Delete.
3595         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
3596         (lang_mark_false_label_stack): Delete.
3597         * rtl.h (struct rtvec_def): Use gengtype to mark.
3598         * ggc.h (ggc_mark_rtvec): Delete.
3599         (gt_ggc_m_rtvec_def): Delete.
3600         (ggc_mark_nonnull_tree): Delete.
3601         (ggc_mark_rtvec_children): Delete prototype.
3602         (lang_mark_false_label_stack): Delete declaration.
3604         * gengtype.h (note_yacc_type): Add prototype.
3605         * gengtype.c (note_yacc_type): New function.
3606         * gengtype-lex.l: Add lexer support for yacc files.
3607         * gengtype-yacc.y (start): Extract union from yacc files.
3608         (yacc_union): New rule.
3609         (yacc_typematch): New rule.
3610         (yacc_ids): New rule.
3611         (enum_items): Tweak for efficiency.
3612         (optionseq): Likewise.
3614         * c-common.h (struct language_function): Use gengtype.
3615         (struct c_lang_decl): Likewise.
3616         * c-tree.h (struct lang_decl): Likewise.
3617         (struct lang_type): Likewise.
3618         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
3619         tree language substructures.
3621         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
3622         ggc_mark_tree.
3623         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
3625         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
3627         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
3628         mark. Remove 'data.block.cleanup_ptr' field.
3629         (struct stmt_status): Use usual technique to mark struct nesting.
3630         (gt_ggc_mr_nesting_cond): Delete.
3631         (gt_ggc_mr_nesting_loop): Delete.
3632         (gt_ggc_mr_nesting_block): Delete.
3633         (gt_ggc_mr_nesting_case_stmt): Delete.
3634         (expand_start_cond): Set discriminator.
3635         (expand_start_loop): Likewise.
3636         (expand_start_null_loop): Likewise.
3637         (expand_start_bindings_and_block): Set discriminator.  Don't set
3638         deleted fields.
3639         (expand_decl_cleanup): Replace 'cleanup_ptr' with
3640         &thisblock->data.block.cleanups.
3641         (expand_start_case): Set discriminator.
3642         (expand_start_case_dummy): Set discriminator.
3644         * ggc-callbacks.c: Remove.
3646         * gengtype.h (struct type): Add 'u.s.bitmap' field.
3647         (find_structure): Add 'pos' parameter.
3648         * gengtype-lex.l: Update callers to find_structure.
3649         * gengtype-yacc.y: Likewise.
3650         * gengtype.c (find_structure): Allow for structures to be defined
3651         in multiple language backends.
3652         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
3653         (counter): Rename to gc_counter.
3654         (write_gc_structure_fields): Fail when writing out fields for
3655         an incomplete structure.  Ignore arrays of scalars.  Handle
3656         'tree_vec' special.
3657         (write_gc_types): Reset counter for each procedure written.
3659         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
3660         (free_case_nodes): Delete.
3661         (expand_end_case_type): Delete call to free_case_nodes.
3663         * Makefile.in (cselib.o): Include gt-<filename>.h.
3664         (gcse.o): Likewise.
3665         (profile.o): Likewise.
3666         (alias.o): Likewise.
3667         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
3668         alphabetize backend files.
3669         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
3670         * alias.c: Use gengtype for roots.
3671         * c-common.h (struct stmt_tree_s): Use gengtype.
3672         * c-decl.c: Use gengtype for roots.
3673         * cselib.c: Use gengtype for roots.
3674         * expr.c: Use gengtype for roots.
3675         * fold-const.c: Use gengtype for roots.
3676         * gcse.c: Use gengtype for roots.
3677         * gengtype-lex.l: Handle typedefs of function types.
3678         Allow for empty array bounds.
3679         Allow processing to stop on initialisers.
3680         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
3681         (semiequal): New rule.
3682         * gengtype.c (create_file): Tidy output files.
3683         (get_output_file_with_visibility): Fix paren warning.  Fix bug
3684         involving multiple input files mapping to one output file.
3685         (write_gc_structure_fields): Skip arrays of scalars.
3686         (write_gc_types): Tidy output files.
3687         (write_gc_root): New function.
3688         (write_gc_roots): Fix bugs, add support for roots that are
3689         structures.
3690         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
3691         (ggc_mark_tree_ptr): Delete.
3692         (ggc_add_rtx_root): Delete.
3693         (ggc_add_tree_root): Delete.
3694         (ggc_del_root): Delete.
3695         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
3696         allocate struct initial_value_struct.
3697         * profile.c: Use gengtype for roots.
3698         * sdbout.c: Use gengtype for roots.
3699         * varasm.c (mark_weak_decls): Delete unused prototype.
3700         (mark_const_hash_entry): Delete unused function.
3701         * config/darwin-protos.h: Use gengtype for roots.
3702         (machopic_add_gc_roots): Delete.
3703         * config/arm/arm.c: Use gengtype for roots.
3704         * config/arm/arm.h: Use gengtype for roots.
3705         * config/c4x/c4x-protos.h: Use gengtype for roots.
3706         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
3707         * config/d30v/d30v-protos.h: Use gengtype for roots.
3708         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
3709         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
3710         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
3711         * config/ia64/ia64-protos.h: Use gengtype for roots.
3712         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
3713         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
3714         * config/m68hc11/m68hc11.c (z_reg): Make global.
3715         (z_reg_qi): Make global.
3716         (m68hc11_add_gc_roots): Delete.
3717         * config/mcore/mcore-protos.h: Use gengtype for roots.
3718         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
3719         * config/mips/mips.c (mips_add_gc_roots): Delete.
3720         * config/mips/mips.h: Use gengtype for roots.
3721         * config/mmix/mmix.c (override_options): Use gengtype for roots.
3722         * config/mmix/mmix.h: Use gengtype for roots.
3723         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
3724         * config/mn10200/mn10200.h: Use gengtype for roots.
3725         * config/pa/pa.c: Use gengtype for roots, marking.
3726         (struct deferred_plabel): Use GGC, gengtype.
3727         (pa_add_gc_roots): Delete.
3728         (mark_deferred_plabels): Delete.
3729         * config/pj/pj-protos.h: Use gengtype for roots.
3730         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
3731         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
3732         machopic_add_gc_roots.
3733         * config/rs6000/rs6000.h: Use gengtype for roots.
3734         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
3735         (gt-darwin.h): Add rule.
3736         * config/sh/sh.c: Use gengtype for roots.
3737         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
3738         (gt-sh.h): Add rule.
3739         * config/sparc/sparc.c: Use gengtype for roots.
3740         (sparc_add_gc_roots): Delete.
3741         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
3742         (mark_ultrasparc_pipeline_state): Delete.
3743         * config/sparc/sparc.h: Use gengtype for roots.
3745         * Makefile.in (c-parse.o): Update dependencies.
3746         (c-common.o): Likewise.
3747         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
3748         Add dependencies for the files they generate.
3749         * c-common.c: Replace ggc_add_* uses with GTY annotations.
3750         * c-common.h: Likewise.
3751         * c-decl.c: Likewise.
3752         (gt_ggc_mp_binding_level): Delete.
3753         * c-lang.c: Include gtype-c.h.
3754         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
3755         gt-c-parse.h.
3756         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
3757         (gt_ggc_mp_align_stack): Delete.
3758         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
3759         * function.c: Replace ggc_add_* uses with GTY annotations.
3760         (gt_ggc_mp_function): Delete.
3761         * function.h: Replace ggc_add_* uses with GTY annotations.
3762         * gengtype.c (lang_names): New.
3763         (NUM_BASE_FILES): New.
3764         (open_base_files): Create language base files.
3765         (startswith): New.
3766         (get_file_basename): New.
3767         (get_base_file_bitmap): New.
3768         (get_output_file_with_visibility): Rename from get_output_file.
3769         Add more mappings for various C/Objc filenames.
3770         (finish_root_table): New.
3771         (write_gc_roots): Handle dependencies and scoping properly.
3772         * gengtype.h: Add prototypes for new functions.
3773         * ggc-common.c (struct deletable_root): Delete.
3774         (deletables): Delete.
3775         (ggc_add_deletable_root): Delete.
3776         (ggc_mark_roots): No need to deal with deleted functionality.
3777         * ggc.h (ggc_add_deletable_root): Delete prototype.
3778         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
3779         (gtype-objc.h): Add rule to create.
3780         * objc/config-lang.in (gtfiles): New.
3781         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
3782         ggc_add_* with GTY markers.  Include gtype-objc.h.
3783         (ggc_mark_imp_list): Delete.
3784         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
3785         * objc/objc-lang.c: Random Whitespace Change.
3787         * except.h (exception_handler_labels): Delete.
3788         (get_exception_handler_labels): New.
3789         * except.c (exception_handler_labels): Delete.
3790         (struct eh_status): Add exception_handler_labels field.
3791         (doing_eh): Don't add exception_handler_labels as root.
3792         (free_eh_status): Don't need to free exception_handler_labels.
3793         (get_exception_handler_labels): New.
3794         (find_exception_handler_labels): Update for move of
3795         exception_handler_labels.
3796         (remove_exception_handler_label): Likewise.
3797         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
3798         * jump.c (rebuild_jump_labels): Likewise.
3799         * loop.c (find_and_verify_loops): Likewise.
3800         * sched-rgn.c (is_cfg_nonregular): Likewise.
3802         * gengtype.c (write_gc_structure_fields): Handle variable-length
3803         TYPE_ARRAYs.
3805         * varasm.c (struct weak_syms): Use GGC, gengtype.
3806         (mark_weak_decls): Delete.
3807         (weak_decls): Likewise.
3808         (add_weak): Likewise.
3809         (remove_from_pending_weak_list): Likewise.
3810         (init_varasm_once): Likewise.
3812         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
3813         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
3814         stor-layout.c, regclass.c, and lists.c.
3815         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
3816         gt-regclass.h and gt-lists.h on s-gtype.
3817         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
3818         * except.c: Use gengtype for roots.
3819         * explow.c: Use gengtype for roots.  Include gt-explow.h.
3820         * expr.h (init_stor_layout_once): Delete prototype.
3821         * function.c: Use gengtype for roots.
3822         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
3823         * gengtype-yacc.y (start): Can also be an externstatic.
3824         (externstatic): New production.
3825         (struct_fields): Correct array bounds inversion for 2-d arrays.
3826         * gengtype.c (variables): New variable.
3827         (note_variable): New function.
3828         (get_output_file): Include libfuncs.h into gtype-desc.c.
3829         (get_output_file_name): New function.
3830         (write_gc_structure_fields): Suppress warnings.
3831         (write_gc_types): Make static.
3832         (put_mangled_filename): New function.
3833         (write_gc_roots): New function.
3834         (main): Call write_gc_roots.
3835         * gengtype.h (note_variable): Prototype.
3836         (get_output_file_name): Prototype.
3837         (write_gc_types): Delete prototype.
3838         * ggc.h: Clean up unnecessary structure predefinitions.
3839         (struct ggc_root_tab): Define.
3840         (gt_ggc_m_rtx_def): Make function, not macro.
3841         (gt_ggc_m_tree_node): Likewise.
3842         * libfuncs.h: Use gengtype for roots.
3843         * lists.c: Use gengtype for roots.  Include gt-lists.h.
3844         (init_EXPR_INSN_LIST_cache): Delete.
3845         * optabs.c: Use gengtype for roots.
3846         (gt_ggc_mp_optab): Delete.
3847         * optabs.h: Use gengtype for roots.
3848         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
3849         * rtl.h: Use gengtype for roots.
3850         (init_EXPR_INSN_LIST_cache): Delete prototype.
3851         * stor-layout.c: Use gengtype for roots.
3852         Include gt-stor-layout.h.
3853         (init_stor_layout_once): Delete.
3854         * toplev.c: Use gengtype for roots.  Delete calls to deleted
3855         routines.
3856         * tree.c: Use gengtype for roots.
3857         * tree.h: Use gengtype for roots.
3858         * varasm.c: Use gengtype for roots.
3860         * Makefile.in (GTFILES): Add @all_gtfiles@.
3861         * configure: Regenerate.
3862         * configure.in: Construct all_gtfiles from the gtfiles definitions
3863         in config-lang.in.
3864         * gengtype-yacc.y (type): Warn about duplicate structure names.
3865         * gengtype.c (get_output_file): Handle .c files in language
3866         subdirectories.
3868         * Makefile.in (GTFILES): Run gengtype on all the config files
3869         and on the target .c file.
3870         * except.c (mark_eh_region): Delete.
3871         (init_eh_for_function): Use GGC on struct eh_status.
3872         (mark_eh_status): Delete.
3873         (free_eh_status): Use GGC.
3874         (expand_eh_region_start): Use GGC to
3875         (collect_eh_region_array): Allocate last_region_number using GGC.
3876         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
3877         (remove_eh_handler): Let GGC free struct eh_region.
3878         (add_call_site): Use GGC to reallocate call_site_record array.
3879         * function.c (init_machine_status): Update calling sequence.
3880         (mark_machine_status): Likewise.
3881         (mark_lang_status): Likewise.
3882         (prepare_function_start): Update init_machine_status call.
3883         (mark_function_status): Delete.
3884         (maybe_mark_struct_function): Delete.
3885         (ggc_mark_struct_function): Delete.
3886         (gt_ggc_mp_function): New.
3887         (gt_ggc_mr_machine_function): New.
3888         (gt_ggc_mr_language_function): New.
3889         (init_function_once): Use canonical names.
3890         * function.h (struct function): Use gengtype.
3891         (init_machine_status): Return the structure.
3892         (mark_machine_status): Take a 'void *'.
3893         (mark_lang_status): Likewise.
3894         * ggc-common.c (ggc_mark_trees): Use canonical name for
3895         ggc_mark_struct_function.
3896         * tree.h (ggc_mark_struct_function): Delete prototype.
3897         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
3898         (alpha_init_machine_status): Likewise.
3899         (override_options): Use canonical name for alpha_mark_machine_status.
3900         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
3901         * config/arm/arm.h (struct machine_function): Use gengtype.
3902         * config/arm/arm.c (arm_mark_machine_status): Delete.
3903         (arm_init_machine_status): Update calling sequence.
3904         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
3905         * config/cris/cris.c (cris_init_machine_status): Update
3906         calling sequence.
3907         * config/d30v/d30v.h (struct machine_function): Use gengtype.
3908         * config/d30v/d30v.c (d30v_init_machine_status): Update
3909         calling sequence.
3910         (d30v_mark_machine_status): Delete.
3911         * config/i386/i386.c: Include gt-i386.h.
3912         (struct machine_function): Use gengtype.
3913         (ix86_init_machine_status): Update calling sequence.
3914         (ix86_mark_machine_status): Delete.
3915         (override_options): Use canonical namke for ix86_mark_machine_status.
3916         * config/ia64/ia64.h (struct machine_function): Use gengtype.
3917         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
3918         sequence.
3919         (ia64_mark_machine_status): Delete.
3920         (ia64_override_options): Use canonical name for
3921         ia64_mark_machine_status.
3922         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
3923         sequence.
3924         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
3925         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3926         * gengtype.c (get_output_file): Fix warning.
3927         (main): Add prototype to suppress warning.
3928         * tree.c: Remove tree_hash_mark prototype.
3930         * tree.h (init_stmt): Delete prototype.
3931         * toplev.c (lang_independent_init): Don't call init_stmt.
3932         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
3933         (stmt_obstack): Delete.
3934         (POPSTACK): No need to free 'struct nesting'.
3935         (gt_ggc_mr_nesting_cond): Use canonical names.
3936         (gt_ggc_mr_nesting_loop): Use canonical names.
3937         (gt_ggc_mr_nesting_block): Use canonical names.
3938         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
3939         (mark_stmt_status): Delete.
3940         (init_stmt): Delete.
3941         (clear_last_expr): Clear both last_expr_type and last_expr_value.
3942         Use it everywhere that last_expr_type was cleared.
3943         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
3944         (zap_lists): Delete.
3945         * ggc.h (ggc_add_deletable_root): Prototype.
3946         (mark_stmt_status): Remove prototype.
3947         * ggc-common.c (ggc_add_deletable_root): New.
3948         (ggc_mark_roots): Handle deletable roots.
3949         * function.c (ggc_mark_struct_function): Use canonical name
3950         for mark_stmt_status.
3951         * emit-rtl.c (free_sequence_stack): New.
3952         (start_sequence): Use a freelist for sequences.
3953         (end_sequence): Likewise.
3954         (init_emit_once): Add free_sequence_stack as a deleteable root.
3955         * c-pragma.c Include gt-c-pragma.h.
3956         (struct align_stack): Use gengtype.
3957         (push_alignment): Use GGC for struct align_stack.
3958         (mark_align_stack): Delete.
3959         (gt_ggc_mp_align_stack): New.
3960         (init_pragma): Use canonical name for mark_align_stack.
3961         * c-decl.c: Include gt-c-decl.h.
3962         (struct binding_level): Use gengtype.
3963         (make_binding_level): Use GGC; handle the freelist here.
3964         (pop_binding_level): New.
3965         (pushlevel): Move code into make_binding_level.
3966         (push_label_level): Likewise.
3967         (poplevel): Move code into pop_binding_level.
3968         (pop_label_level): Likewise.
3969         (mark_binding_level): Delete.
3970         (gt_ggc_mp_binding_level): New.
3971         (c_init_decl_processing): Use canonical name for mark_binding_level.
3972         Add free_binding_level as deletable root.
3973         (mark_c_function_context): Use canonical name for mark_binding_level.
3974         * Makefile.in (c-decl.o): Add gt-c-decl.h.
3975         (c-pragma.o): Add gt-c-pragma.h.
3976         (GTFILES): Add c-decl.c and c-pragma.c.
3977         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
3979         * tree.c (struct type_hash): Use gengtype.
3980         (init_obstacks): Use canonical name for type_hash_mark.
3981         (type_hash_mark): Delete.
3982         Include gt-tree.h.
3983         * rtl.h (struct mem_attrs): Use gengtype.
3984         * optabs.h (struct optab): Use gengtype.
3985         * optabs.c (expand_binop): Squish signed/unsigned warning.
3986         (mark_optab): Make local, use canonical name, use autogenerated
3987         marker procedure.
3988         (init_optabs): Use canonical name for mark_optab.
3989         (new_optab): Use GGC to allocate optabs.
3990         * ggc.h: Delete mark_optab prototype.
3991         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
3992         mem_attrs marker procedure.
3993         * gengtype.c (get_output_file): Include headers in gtype-desc.c
3994         explicitly rather than deducing them from file names.
3995         (write_gc_structure_fields): Handle arrays of structures.
3996         (main): Return non-zero exit code if errors occur during output.
3997         * emit-rtl.c (mem_attrs_mark): Delete.
3998         (init_emit_once): Use canonical name for mem_attrs marker procedure.
3999         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
4000         (tree.o): Depend on gt-tree.h.
4001         (GTFILES): Add rtl.h, optabs.h, tree.c.
4002         (gt-tree.h): Add it to s-gtype rule.
4004         * .cvsignore: Ignore gengtype flex/bison generated files.
4005         * Makefile.in (GGC_H): Add gtype-desc.h.
4006         (OBJS): Add gtype-desc.o.
4007         (GEN): Add gengtype.
4008         (STAGESTUFF): Add gengtype.
4009         (varasm.o): Add gt-varasm.h.
4010         (stmt.o): Add gt-stmt.h.
4011         (except.o): Add gt-except.h.
4012         (integrate.o): Add gt-integrate.h.
4013         (GTFILES): New.
4014         Add new rules for new files.
4015         * configure: Regenerate.
4016         * configure.in: Correct defaults.h paths.
4017         * emit-rtl.c (mark_sequence_stack): Delete.
4018         (mark_emit_status): Delete.
4019         (start_sequence): Allocate sequence structures using GGC.
4020         (end_sequence): Allocate sequence structures using GGC.
4021         * except.c: Use gengtype for various structures.  Include
4022         gt-except.h.
4023         * expr.c (mark_expr_status): Delete.
4024         * function.c: Use gengtype for various structures.  Include
4025         gt-function.h.
4026         (mark_function_status): Use standard gt_ggc names for marker functions.
4027         (ggc_mark_struct_function): Likewise.
4028         * function.h: Use gengtype for various structures.
4029         * gengtype-lex.l: New file.
4030         * gengtype-yacc.y: New file.
4031         * gengtype.c: New file.
4032         * gengtype.h: New file.
4033         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
4034         the standard names.  Remove some now-unnecessary prototypes.
4035         * integrate.c: Use gengtype for various structures.  Include
4036         gt-integrate.h.
4037         (mark_hard_reg_initial_vals): Delete.
4038         * integrate.h (mark_hard_reg_initial_vals): Delete.
4039         * stmt.c: Use gengtype for various structures.  Include
4040         gt-stmt.h.
4041         (mark_case_node): Delete.
4042         (mark_goto_fixup): Delete.
4043         (mark_stmt_status): Use standard gt_ggc names for marker functions.
4044         * system.h: Define GTY to empty.   In flex/bison files,
4045         don't poison malloc or realloc, instead just define them to
4046         xmalloc and xrealloc.
4047         * varasm.c: Use gengtype for various structures.  Include
4048         gt-varasm.h.  Use standard gt_ggc names for marker functions.
4049         (mark_pool_constant): Delete.
4050         (mark_varasm_status): Delete.
4051         (decode_rtx_const): #if 0 out non-typesafe hack.
4053         * function.h (free_lang_status): Mark as obsolete.
4054         * function.c (free_lang_status): Mark as obsolete.
4055         * c-decl.c (push_c_function_context): Use GC to allocate and free
4056         struct language_function.
4057         (pop_c_function_context): Likewise.
4058         * c-common.c (mark_c_language_function): Mark struct
4059         language_function.
4061         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
4062         Document that the machine_function structures must be allocated
4063         using GC.  Update mark_machine_status documentation.
4064         * function.h: Don't declare free_machine_status.
4065         * function.c (free_machine_status): Don't define.
4066         (free_after_compilation): Don't call free_machine_status.
4067         (ggc_mark_struct_function): Mark f->machine.  Call
4068         mark_machine_status only on non-NULL pointers.
4069         * system.h: Poison free_machine_status.
4070         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
4071         struct machine_function.
4072         (xtensa_free_machine_status): Delete.
4073         (override_options): Don't set free_machine_status.
4074         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
4075         free_machine_status.
4076         (rs6000_init_machine_status): Use GC on struct machine_function.
4077         (rs6000_free_machine_status): Delete.
4078         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
4079         machine_function.
4080         (ia64_mark_machine_status): Likewise.
4081         (ia64_free_machine_status): Delete.
4082         (ia64_override_options): Don't set free_machine_status.
4083         * config/i386/i386.c (override_options): Don't set
4084         free_machine_status.
4085         (ix86_init_machine_status): Use GC on struct machine_function.
4086         (ix86_mark_machine_status): Likewise.
4087         (ix86_free_machine_status): Delete.
4088         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
4089         machine_function.
4090         (d30v_mark_machine_status): Likewise.
4091         (d30v_free_machine_status): Delete.
4092         (d30v_init_expanders): Don't set free_machine_status.
4093         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
4094         machine_function.
4095         (arm_init_machine_status): Likewise.
4096         (arm_free_machine_status): Delete.
4097         (arm_init_expanders): Don't set free_machine_status.
4098         * config/alpha/alpha.c (override_options): Don't set
4099         free_machine_status.
4100         (alpha_init_machine_status): Use GC on struct machine_function.
4101         (alpha_mark_machine_status): Likewise.
4102         (alpha_free_machine_status): Delete.
4104         * varasm.c (compare_constant): Fix typo.
4106         * varasm.c: Don't include obstack.h.
4107         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
4108         (struct rtx_const): Give substructures names, improve formatting.
4109         (struct constant_descriptor): Delete.
4110         (struct constant_descriptor_tree): New, based on constant_descriptor.
4111         (const_hash_table): Is a hash table of trees.
4112         (mark_const_hash_entry): Is used for hashes of trees.  Mark
4113         constant_descriptor_tree structure.
4114         (mark_const_str_htab_1): Mark deferred_string structure.
4115         (compare_constant): Rewrite to compare trees.
4116         (compare_constant_1): Delete.
4117         (record_constant): Delete.
4118         (record_constant_1): Delete.
4119         (output_constant_def): Use struct constant_descriptor_tree.
4120         Don't duplicate trees twice.
4121         (struct constant_descriptor_rtx): New.
4122         (struct pool_constant): Used for rtx constants.
4123         (init_varasm_status): Update for change to struct varasm_status.
4124         (mark_varasm_status): Likewise.
4125         (free_varasm_status): Delete.
4126         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
4127         (record_constant_rtx): Likewise.
4128         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
4129         (force_const_mem): Likewise.
4130         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
4131         * function.c (free_after_compilation): Don't use free_varasm_status.
4132         * function.h: Don't prototype free_varasm_status.
4134         * ggc-common.c (ggc_realloc): Handle X being NULL.
4136         * ggc-common.c (ggc_realloc): New function.
4137         * ggc.h: Prototype it.
4138         * emit-rtl.c (free_emit_status): Delete.
4139         (init_emit): Allocate emit subarrays using GC.
4140         (gen_reg_rtx): Reallocate subarrays using GC.
4141         (init_emit): Use GC to allocate 'struct emit_status' and its
4142         subarrays.
4143         (mark_emit_status): Mark structure and its subarrays.
4144         * stmt.c (free_stmt_status): Delete.
4145         * expr.c (free_expr_status): Delete.
4146         * function.h: Remove prototypes for deleted functions.
4147         * function.c (free_after_compilation): Don't use deleted functions.
4148         Don't call free() on x_parm_reg_stack_loc.
4149         (free_after_parsing): Don't use free_stmt_status.
4150         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
4151         (mark_function_status): Mark x_parm_reg_stack_loc.
4153         * varasm.c (init_varasm_status): Use GC to allocate
4154         'struct varasm_status' and its fields x_const_rtx_hash_table
4155         and x_const_rtx_sym_hash_table.
4156         (mark_varasm_status): Mark them.
4157         (free_varasm_status): Use GC to free them.
4158         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
4159         (mark_expr_status): Mark the structure itself.
4160         (free_expr_status): Use GC to free the structure.
4161         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
4162         (mark_stmt_status): Mark the 'struct stmt_status' itself.
4163         (init_stmt_for_function): Allocate the structure for GC.
4165         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
4166         (equate_type_number_to_die): Likewise.
4167         * tree.h (TYPE_SYMTAB_DIE): New macro.
4168         (struct die_struct): Predeclare.
4169         (struct tree_type): Add field symtab.die.   Add a tag
4170         to the union type of field symtab.
4172         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
4173         'struct rtvec_def *', not 'struct rtvec_def'.
4175         * function.h (original_arg_vector): Make a real rtvec.
4176         * function.c (ggc_mark_struct_function): Adjust.
4177         * integrate.c (expand_inline_function): Adjust.
4179 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
4181         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
4182         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
4183         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
4184         (TARGET_VERSION_CPU): Define according to the
4185         default target.
4186         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
4187         TARGET_VERSION_CPU.
4188         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
4189         if TARGET_SHMEDIA64.
4190         (LINK_DEFAULT_CPU_EMUL): Define according to the
4191         default target.
4192         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
4193         (SUBTARGET_LINK_SPEC): Define.
4194         (LINK_SPEC): Use SH_LINK_SPEC.
4195         (ASM_SPEC): Remove.
4196         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
4197         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
4198         and TARGET_SHMEDIA64 which abort, for now.
4199         * config/sh/t-netbsd-sh5: New file.
4200         * config/sh/t-netbsd-sh5-32: New file.
4201         * config/sh/t-netbsd-sh5-64: New file.
4203 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4204             Richard Henderson  <rth@redhat.com>
4206         * config/alpha/alpha.c (reg_or_const_int_operand): New.
4207         (some_operand, input_operand): Accept CONST_VECTOR.
4208         (alpha_extra_constraint): Add 'W'.
4209         (alpha_expand_zap_mask): New.
4210         (alpha_expand_builtin_vector_binop): New.
4211         (enum alpha_builtin): New.
4212         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
4213         (alpha_init_builtins, alpha_expand_builtin): New.
4214         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
4215         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
4216         (PREDICATE_CODES): Update.
4217         * config/alpha/alpha-protos.h: Update.
4218         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
4219         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
4220         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
4221         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
4222         (movv2si, movv2si_fix, movv2si_nofix): New.
4223         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
4224         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
4225         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
4226         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
4227         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
4228         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
4229         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
4230         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
4231         builtin_unpkbw, unpkbw): New.
4232         * doc/extend.texi (Alpha Built-in Functions): New.
4234 2002-06-03  Richard Henderson  <rth@redhat.com>
4236         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
4237         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
4239 2002-06-03  Richard Henderson  <rth@redhat.com>
4241         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
4243         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
4244         (const0_operand): New.
4245         (reg_or_fp0_operand, fp0_operand): Remove.
4246         * config/alpha/alpha.h (PREDICATE_CODES): Update.
4247         * config/alpha/alpha-protos.h: Update.
4248         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
4249         and fp0_operand with reg_or_0_operand and const0_operand.
4251 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
4253         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
4255 2002-06-03  Roger Sayle  <roger@eyesopen.com>
4257         * gcse.c (cprop_jump): Use single_set to get the pattern
4258         from the setcc argument.
4260 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
4262         * diagnostic.h (diagnostic_count): Move from output_buffer to
4263         diagnostic_context.
4264         (diagnostic_kind_count): Adjust definition.
4266 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
4268         * except.c (except.c): Do not rebuild CFG.
4269         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
4270         optimization.
4272 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
4274         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
4275         * toplev.c: Include cfglahout.h
4276         * Makefile.in (toplev.c): Add dependnecy.
4278 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
4280         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
4281         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
4282         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
4284 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
4286         * config/ns32k/netbsd.h: Update copyright years.
4287         (TARGET_OS_CPP_BUILTINS): Define.
4288         (CPP_PREDEFINES): Remove.
4289         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
4290         (TARGET_CPU_CPP_BUILTINS): Define.
4292 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
4294         * emit-rtl.c: Fix formatting.
4295         * errors.h: Likewise.
4296         * except.c: Likewise.
4297         * explow.c: Likewise.
4298         * expmed.c: Likewise.
4299         * expr.c: Likewise.
4300         * expr.h: Likewise.
4302 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
4304         * config/h8300/elf.h: Fix formatting.
4305         * config/h8300/rtems.h: Likewise.
4307 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
4309         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
4311 2002-06-02  Tom Tromey  <tromey@redhat.com>
4313         * fixinc/fixincl.x: Rebuilt.
4314         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
4316 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4318 config/i370:
4319         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
4320         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
4321         * mvs.h: Similarly.
4322         * oe.h: Similarly.
4324 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
4326         * final.c (final):  Allow notes to not have computed addresses;
4327         kill no longer needed STACK_REGS ifdef.
4329 2002-06-02  Richard Henderson  <rth@redhat.com>
4331         * gcse.c (bypass_conditional_jumps): Fix typo last change.
4333 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4335         * loop.c (emit_prefetch_instructions): Properly place the address
4336         computation.
4338 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
4340         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
4341         (set_block_for_insn): Turn into macro.
4342         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
4343         * cfglayout.c (insn_scopes): Kill.
4344         (scope_to_insns_initialize): Do not use insn_scopes.
4345         (scope_to_insns_finalize): Likewise.
4346         (duplicate_insn_chain): Likewise.
4347         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
4348         * cfgrtl.c (basic_block_for_insn): Kill.
4349         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
4350         (create_basic_block_structure): Use reorder_insns.
4351         (compute_bb_for_insn): Do not use basic_block_for_insn.
4352         (merge_blocks_nomove): Likewise.
4353         (update_bb_for_insn): Likewise.
4354         (verify_flow_info): Likewise.
4355         (set_block_for_insn): Kill.
4356         * combine.c (try_combine): Update gen_rtx_INSN call.
4357         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
4358         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
4359         scopes and BBs.
4360         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
4361         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
4362         Clear BB.
4363         (emit_insns_after): Simplify.
4364         (emit_copy_of_insn_after): Copy scope.
4365         * final.c (final_start_function): Lower scopes.
4366         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
4367         * integrate.c (copy_insn_list): Cope scopes.
4368         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
4369         * loop.c (loop_optimize): Do not care block notes.
4370         * print-rtl.c (print_rtx): Print BB.
4371         * recog.c (apply_change_group): Simplify.
4372         * rtl.c (copy_rtx): Handle 'B'.
4373         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
4374         * rtl.h (Field accessors): Update indexes.
4375         * sched-ebb.c (schedule_ebbs): Do not lower notes.
4376         * sched-rgn.c (schedule_insns): Likewise.
4377         * toplev.c (rest_of_compilation): Lower notes.
4378         * unroll.c (unroll_loop): Do not care scoping notes.
4379         (copy_loop_body): Copy scopes.
4381 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4383 config/h8300:
4384         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4385         SUBTARGET_SPEC.
4386         * rtems.h: Similarly.
4387         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
4388         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
4389         (TARGET_CPU_CPP_BUILTINS): Use.
4391 2002-06-02  Richard Henderson  <rth@redhat.com>
4393         * alias.c: Include target.h.
4394         (mark_constant_function): Use targetm.binds_local_p instead
4395         of checking TREE_PUBLIC ourselves.
4396         * Makefile.in (alias.o): Add TARGET_H.
4398 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4400         * c-lex.c: Update copyright and file description.
4402 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4404         * config/fr30/fr30.h: Update to new CPP macros.
4406 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4408         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
4410 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4411             Zack Weinberg <zack@codesourcery.com>
4413         * c-common.c (c_common_init): Override cpplib's default
4414         warn_long_long setting.
4415         * c-lex.c (lex_number): Replace with interpret_integer,
4416         interpret_float, narrowest_unsigned_type and
4417         narrowest_signed_type, taking advantage of the new
4418         cpplib functionality.
4419         * cpperror.c (_cpp_begin_message): If a warning is turned
4420         into an error, avoid printing "warning:".
4421         * cppexp.c (cpp_num_sign_extend): New.
4422         * cppinit.c: Update comment.
4423         * cpplib.h (cpp_num_sign_extend): New.
4424         * tree.h: Update comment.
4426 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
4428         * diagnostic.h (struct diagnostic_context):  Add new member
4429         internal_error.
4430         (internal_error_function): Remove declaration.
4431         * diagnostic.c (internal_error_function): Remove definition..
4432         (internal_error): Adjust use.
4434 2002-06-02  Richard Henderson  <rth@redhat.com>
4436         * rtl.h (CC0_P): New.
4437         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
4438         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
4439         (bypass_block): Save old dest block for dump text.
4440         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
4441         Allow only true SET insns, not single_set.
4443 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
4445         * diagnostic.c (diagnostic_finish): Rename to output_flush.
4446         (clear_disgnostic_info): Rename to output_clear_data.  Use false
4447         instead of 0 for boolean value.
4448         Adjust function call throughout.
4450 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
4452         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
4453         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
4455 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4457         * d30v.h (CPP_PREDEFINES): Replace with
4458         (TARGET_CPU_CPP_BUILTINS): New.
4460 2002-06-02  Roger Sayle  <roger@eyesopen.com>
4462         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
4464 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
4466         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
4468 2002-06-02  Richard Henderson  <rth@redhat.com>
4470         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
4472 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4474         Support for C++ constructors/destructors.
4475         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
4476         instead of looping if main() returns.
4477         (asm_file_start): Output global symbols that cause .data and .bss
4478         initialization code to be linked in, unconditionally for now.
4479         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
4480         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
4481         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
4482         (LIBSTDCXX): New.
4483         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
4484         (__tablejump__): New.
4485         (__do_copy_data, __do_clear_bss): New.
4486         (__do_global_ctors, __do_global_dtors): New.
4487         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
4488         _ctors, _dtors.
4490 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4492         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
4493         (CPP_SPEC, CPP_PREDEFINES): Kill.
4494         * c4x/rtems.h (CPP_PREDEFINES): Kill.
4495         (TARGET_OS_CPP_BUILTINS): New.
4497 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
4499         * Makefile.in (tracer.o): New.
4500         * params.def (TRACER_*): New options.
4501         * rtl.h (tracer): Declare.
4502         * timevar.def (TV_TRACER): New.
4503         * toplev.c (dump_file_index): Add DFI_tracer.
4504         (dump_file_info): Add tracer.
4505         (flag_tracer): New.
4506         (lang_indepdenent_options): Add tracer.
4507         (rest_of_compilation): Call tracer.
4508         * tracer.c: New file.
4509         * invoke.texi (-ftracer): Document.
4510         (--param tracer-*): Document.
4512 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
4514         * tree-inline.c (expand_call_inline): Make the statement
4515         expression we generate have a COMPOUND_STMT.
4517 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4519         * gcse.c (cprop_cc0_jump): Function deleted.
4520         (cprop_jump): Take an additional argument which is the possibly
4521         NULL cc setting insn immediately before the conditional jump.
4522         When a MODE_CC set is present, substitute it into the JUMP_INSN
4523         before attempting the constant propagation.
4524         (cprop_insn):  Recognize cc setters followed by conditional jumps
4525         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
4526         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
4527         (find_bypass_set): New function based upon find_avail_set used by
4528         cprop, but finds constant expressions available at the end of
4529         basic blocks.
4530         (bypass_block): New function.  Given a basic block that begins
4531         with a conditional jump and multiple incoming edges, perform
4532         the jump bypass optimization.
4533         (bypass_conditional_jumps): New function.  Call bypass_block with
4534         each suitable basic block in the CFG using a simple single pass.
4536 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4538         * tree.c (real_minus_onep): New function to test for -1.0.
4539         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
4541 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4543         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
4544         and "!p && !q" into "(p|q) == 0" under suitable conditions.
4546 2002-06-01  Andreas Jaeger  <aj@suse.de>
4548         * cppexp.c (cpp_classify_number): Cast precission to int for
4549         correct printf format.
4551 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4553         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
4554         expected, but don't really exist: atmega83, atmega85, attiny10.
4555         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
4556         emulations for all devices.
4557         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
4558         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
4560 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
4562         * config/h8300/h8300-protos.h: Add a prototype for
4563         h8300_shift_needs_scratch_p.
4564         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
4565         * config/h8300/h8300.h (OK_FOR_R): New.
4566         (OK_FOR_S): Likewise.
4567         (OK_FOR_T): Likewise.
4568         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
4569         * config/h8300/h8300.md (anonymous shift patterns): Use
4570         constraints R, S, and T.
4572 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4574         * basic-block.h (struct basic_block_def): New field loop_father.
4575         (BB_VISITED): New flag.
4576         (struct loop): New field pred, removed field shared.
4577         (struct loops): New field parray.
4578         (LOOP_EXITS_DOMS): Removed.
4579         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
4580         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
4581         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
4582         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
4583         verify_loop_structure): Declare.
4584         * cfg.c (entry_exit_blocks): Initialize loop_father field.
4585         * cfganal.c (dfs_enumerate_from): New function.
4586         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
4587         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4588         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
4589         flow_loop_dump, flow_loops_dump, flow_loops_free,
4590         flow_loop_tree_node_add, flow_loop_level_compute,
4591         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
4592         flow_loop_outside_edge_p): Modified for new infrastructure.
4593         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
4594         redirect_edge_with_latch_update, flow_loop_free): New static functions.
4595         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
4596         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
4597         find_common_loop, verify_loop_structure, loop_latch_edge,
4598         loop_preheader_edge): New functions.
4599         (flow_loops_cfg_dump): Do not show dominators, as this information
4600         does not remain up to date long.
4601         (flow_loops_find): Store results in new format.
4602         * predict.c (propagate_freq, estimate_probability,
4603         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
4604         infrastructure.
4606 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
4608         * except.c (nothrow_function_p): Walk epilogue delay list
4609         checking the insn, not the chain for potential throws.
4611 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4613         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
4614         (install): Refer to install-cpp directly.
4615         (uninstall-cpp): Folded into uninstall rule.
4616         * configure.in: Delete all code relating to --disable-cpp.
4617         * configure: Regenerate.
4618         * config/t-install-cpp: Delete.
4620 2002-05-31  Richard Henderson  <rth@redhat.com>
4622         * configure.in (HAVE_AS_TLS): Add alpha tests.
4623         * configure: Rebuild.
4624         * config/alpha/alpha.c (TARGET_AS_TLS): New.
4625         (alpha_tls_size, alpha_tls_size_string): New.
4626         (overide_options): Set it.  Always install machine_status hooks.
4627         (input_operand): Accept got tls predicates.
4628         (local_symbol_p): Merge into ...
4629         (local_symbolic_operand): ... here.  Reject tls symbols.
4630         (global_symbolic_operand): Likewise.
4631         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
4632         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
4633         (tp16_symbolic_operand, tp32_symbolic_operand): New.
4634         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
4635         (alpha_encode_section_info): Handle TLS symbols.
4636         (alpha_strip_name_encoding): Likewise.
4637         (alpha_legitimate_address_p): Likewise.
4638         (alpha_legitimize_address): Likewise.
4639         (alpha_expand_mov): Early exit to avoid nop moves.
4640         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
4641         (alpha_init_machine_status, alpha_mark_machine_status,
4642         alpha_free_machine_status): Always define.
4643         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
4644         (print_operand, print_operand_address): Add TLS relocs.
4645         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
4646         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
4647         (TARGET_SWITCHES): Add -mtls-kernel.
4648         (alpha_tls_size, alpha_tls_size_string): New.
4649         (TARGET_OPTIONS): Add -mtls-size=.
4650         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
4651         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
4652         (ASM_OUTPUT_LABELREF): Skip %.
4653         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
4654         (PREDICATE_CODES): Update.
4655         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
4656         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
4657         UNSPEC_TP, UNSPECV_SET_TP): New.
4658         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
4659         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
4660         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
4661         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
4662         (call_value_osf_2_er): Accept anything as op4.
4663         * config/alpha/alpha-protos.h: Update.
4664         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
4666 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4668         * cppinit.c (append_include_chain): Always pay attention to
4669         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
4670         marker on argument.
4672 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
4674         * target.h: Fix formatting.
4675         * timevar.h: Likewise.
4676         * tlink.c: Likewise.
4677         * toplev.c: Likewise.
4678         * toplev.h: Likewise.
4679         * tree.c: Likewise.
4680         * tree-dump.h: Likewise.
4681         * tree.h: Likewise.
4682         * tree-inline.h: Likewise.
4683         * unroll.c: Likewise.
4684         * unwind-dw2.c: Likewise.
4685         * unwind-dw2-fde.c: Likewise.
4686         * unwind-dw2-fde-glibc.c: Likewise.
4687         * unwind-dw2-fde.h: Likewise.
4688         * unwind.h: Likewise.
4689         * unwind-sjlj.c: Likewise.
4690         * varasm.c: Likewise.
4691         * varray.h: Likewise.
4692         * vmsdbg.h: Likewise.
4693         * vmsdbgout.c: Likewise.
4694         * xcoffout.h: Likewise.
4696 2002-05-31  Igor Shevlyakov <igor@microunity.com>
4698         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
4699         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
4701 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
4703         * gcc.c (cpp_unique_options): Remove "-d" options.
4704         (cpp_debug_options): New spec string.
4705         (default_compilers): Use it.
4706         * objc/lang-specs.h: Likewise.
4708 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
4710         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
4711         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
4712         * gcc/mklibgcc.in: Likewise.
4713         * gcc/config/arc/t-arc: Likewise.
4714         * gcc/configure.in: Likewise.
4715         * gcc/configure: Regenerate.
4717 2002-05-31  Stan Shebs  <shebs@apple.com>
4718             Turly O'Connor  <turly@apple.com>
4720         * c-decl.c (struct binding_level): Change int field n_incomplete
4721         to tree list incomplete_list.
4722         (clear_binding_level): Init field with NULL.
4723         (pushdecl): Add incomplete type to list.
4724         (mark_binding_level): Mark the incomplete list.
4725         (finish_struct): Scan the incomplete list for types instead
4726         of all decls in the current binding level.
4728 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4730         * pa.c (output_millicode_call): Add missing '%' characters.
4731         (output_call): Likewise.
4733 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
4735         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
4736         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4738 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
4740         * varasm.c (mark_constant_pool): Walk epilogue delay list
4741         checking the insn, not the chain for potential constants.
4743 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
4745         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
4747 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
4749         * i386.c (classify_argument): Properly handle base types.
4751         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
4752         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
4753         registers.
4755 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4757         * gcse.c (gcse_emit_move_after): New.
4758         (pre_delete, hoist_store): Use it.
4760         * reload1.c (emit_input_reload_insns): Use constrain_operands
4761         instead of constraint_accepts_reg_p to verify optimization.
4762         (constraint_accepts_reg_p): Kill
4764         * reload1.c (reload_cse_delete_noop_set): Kill.
4765         (reload_cse_simplify): use delte_insn_and_edges.
4767 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4769         * cfgloop.c (flow_loops_find): Initialize first and last fields
4770         correctly.
4772 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
4774         * c-common.c (builtin_define_std): Correct logic.
4776 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4778         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
4779         (output_call): Likewise.
4781 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4783         * pa.c: Move output.h include after tree.h include.
4784         (pa_asm_output_mi_thunk): Constify identifier lab.
4786 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4788         * config/ns32k/ns32k.h: Define named constants for the
4789         bits in target_flags and use them.
4790         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
4792 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4794         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
4795         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
4796         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
4797         default scheduling model.
4798         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
4799         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
4800         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
4801         * doc/install.texi (hppa*-*-*): Document default scheduling.
4803 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4805         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4807 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4809         * config.gcc (ns32k-*-netbsd*): Set tm_file to
4810         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
4811         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
4812         netbsd.h, or netbsd-aout.h.
4814 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4816         * longlong.h (count_trailing_zeros): Add missing \, and clean up
4817         whitespace in __ns32000__ case.
4819 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
4821         * expr.c (expand_expr): Output partially zeroed out vectors with
4822         output_constant_def.
4824 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4826         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
4827         (sh-*-netbsdelf*)
4828         (shl*-*-netbsdelf*): New targets.
4829         * config/sh/netbsd-elf.h: New file.
4830         * config/sh/t-netbsd: New file.
4832 2002-05-30  Richard Henderson  <rth@redhat.com>
4833             Eric Botcazou  <ebotcazou@multimania.com>
4835         PR optimization/6822
4836         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
4837         to unsigned int for op1 comparisons.  Use gen_int_mode.
4839 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
4841         * expmed.c (const_mult_add_overflow_p): New.
4842         * expr.h: Declare it.
4843         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
4844         Don't eliminate the biv if the giv has a constant multiplier and
4845         the rhs argument of the comparison does satisfy the predicate.
4846         Use expand_mult_add to compute the replacement constant.
4848 2002-05-30  Osku Salerma  <osku@iki.fi>
4850         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
4851         (c_common_get_alias_set): Handle it.
4852         * doc/extend.texi: Document it.
4854 2002-05-30  Richard Henderson  <rth@redhat.com>
4856         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4857         * toplev.c (process_options): Don't check it.
4858         * doc/tm.texi: Don't document it.
4859         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
4860         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4861         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
4862         frame pointer optimization if current_function_profile.
4864 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
4866         * langhooks.c: Fix formatting.
4867         * langhooks.h: Likewise.
4868         * lcm.c: Likewise.
4869         * libgcc2.c: Likewise.
4870         * lists.c: Likewise.
4871         * local-alloc.c: Likewise.
4872         * loop.c: Likewise.
4873         * loop.h: Likewise.
4875 2002-05-30  Marc Espie <espie@openbsd.org>
4877         * config.gcc (sparc64-*-openbsd*): New.
4878         * config/sparc/openbsd1-64.h: New.
4879         * config/sparc/openbsd64.h: New.
4881 2002-05-30  Jeff Law <law@redhat.com>
4883         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
4884         a dead insn with a REG_RETVAL note when the entire libcall is not
4885         dead and remove the associated REG_LIBCALL note at the same time.
4887 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
4889         * lcm.c (output.h): #include.
4890         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
4891         as an ordinary block.
4892         (optimize_mode_switching): Don't pretend that the exit block is
4893         an ordinary block, or handle sucessors of entry block specially.
4894         Instead, split edges from entry block and to exit block, and
4895         put a computing definition on the thus gained post-entry-block,
4896         and a need on the pre-exit-block.
4898 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
4900         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
4901         * rtl.texi: Document 'B'
4903 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4905         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
4906         at run-time.
4907         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
4909 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
4911         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4912         const0_rtx instead of NULL_RTX when in error.
4913         (altivec_expand_abs_builtin): Same.
4914         (rs6000_expand_binop_builtin): Same.
4915         (altivec_expand_predicate_builtin): Same.
4916         (altivec_expand_stv_builtin): Same.
4917         (rs6000_expand_ternop_builtin): Same.
4918         (altivec_expand_builtin): Same.
4920 2002-05-29  David S. Miller  <davem@redhat.com>
4922         * rtl.h (clear_emit_caches): Delete.
4923         * integrate.c (output_inline_function): Don't call it.
4924         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
4925         (clear_emit_caches): Delete definition.
4926         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
4928 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
4930         * config/mmix/mmix.c: Include real.h.
4931         (mmix_constant_address_p): Remove redundant test before switch.
4933 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4935         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
4936         only if not already defined.
4938 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4940         * config/h8300/h8300-protos.h: Remove prototypes for
4941         ok_for_bclr and small_power_of_two.
4942         * config/h8300/h8300.c (small_power_of_two): Remove.
4943         (ok_for_blcr): Likewise.
4944         (fix_bit_operand): Make WHAT deal with an integer instead of a
4945         constraint character.
4946         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
4947         (CONST_OK_FOR_P): Likewise.
4948         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
4949         CONST_OK_FOR_P any more.
4950         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
4951         of fix_bit_operand.
4952         (iorqi3): Likewise.
4953         (xorqi3): Likewise.
4955 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4957         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4958         (CPP_PREDEFINES): Make sure this is undefined.
4959         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
4960         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
4961         or -U__MIPSEB__ before defining one or the other.  Instead,
4962         use %(subtarget_endian_default) if neither -EB nor -EL are
4963         specified.
4964         (SUBTARGET_EXTRA_SPECS): Define.
4965         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
4966         %(netbsd_cpp_spec).
4968 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
4970         * doc/md.texi (Patterns): Note pattern condition pitfall
4971         for unnamed insn.
4973 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
4975         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
4976         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
4977         ternary operations from here...
4978         (rs6000_expand_builtin): ...to here.
4979         New argument expandedp.
4980         Change all instances of altivec_expand_binop_builtin to
4981         rs6000_expand_binop_builtin.
4982         (altivec_expand_unop_builtin): Rename to
4983         rs6000_expand_unop_builtin.
4984         (altivec_expand_binop_builtin): Rename to
4985         rs6000_expand_binop_builtin.
4986         (altivec_expand_ternop_builtin): Rename to
4987         rs6000_expand_ternop_builtin.
4989 2002-05-29  Richard Henderson  <rth@redhat.com>
4991         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
4992         (TARGET_BI_ARCH): Likewise.
4993         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
4994         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
4995         (TARGET_64BIT_DEFAULT): Default to 0.
4996         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
4998 2002-05-29  Richard Henderson  <rth@redhat.com>
5000         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
5001         (get_pc_thunk_name): New.
5002         (output_set_got): Use it.
5003         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
5004         into linkonce sections.
5006 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
5008         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
5009         (CPP_PREDEFINES): Make sure this is undefined.
5010         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
5011         (CPP_SUBTARGET_SPEC): Don't provide different versions for
5012         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
5013         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
5014         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
5015         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5016         (CPP_PREDEFINES): Make sure this is undefined.
5017         (SUBTARGET_EXTRA_SPECS): Define.
5018         (CPP_SPEC): Use %(netbsd_cpp_spec).
5020 2002-05-29  Jeff Law <law@redhat.com>
5022         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
5024         * flow.c (propagate_one_insn): Do not remove a dead insn if it
5025         contains a REG_RETVAL note.
5027         * haifa-sched (sched_analyze): Remove another useless clearing
5028         of SCHED_GROUP_P I missed yesterday.
5030         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
5031         * pa.c (pa_asm_output_mi_thunk): New function.
5032         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
5034 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5035             Marek Michalkiewicz  <marekm@amelek.gda.pl>
5037         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
5038         (avr_asm_only_p): Make non-static.
5039         (enum avr_arch): Remove.
5040         (avr_arch_types): New.
5041         (avr_mcu_types): Update.
5042         (avr_override_options): Use avr_arch_types table instead of switch.
5043         * avr.h (CPP_PREDEFINES): Die.
5044         (avr_base_arch_macro, avr_extra_arch_macro): New.
5045         (TARGET_CPU_CPP_BUILTINS): New.
5046         (CPP_SPEC, EXTRA_SPECS): Simplify.
5047         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
5048         CPP_AVR5_SPEC): Die.
5050 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
5052         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
5053         NETBSD_OS_CPP_BUILTINS_AOUT.
5054         (SUBTARGET_EXTRA_SPECS): Define.
5055         (CPP_SPEC): Use %(netbsd_cpp_spec).
5057 2002-05-29  Richard Henderson  <rth@redhat.com>
5059         * config/i386/i386.c (ix86_output_function_epilogue): New.
5060         (TARGET_ASM_FUNCTION_EPILOGUE): New.
5061         (pic_label_name): Remove.
5062         (pic_labels_used): New.
5063         (ix86_asm_file_end): Emit one pc load stub for each register used.
5064         (output_set_got): Generate deep pc load to any register.
5065         (ix86_select_alt_pic_regnum): New.
5066         (ix86_save_reg): Don't save pic register if we can find a valid
5067         call-clobbered replacement.
5068         (ix86_expand_prologue): If we found a valid replacement, renumber
5069         pic_offset_table_rtx.
5070         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
5071         pic_offset_table_rtx after reload.
5072         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
5073         * config/i386/i386.md (set_got): Make insn, not expander.
5074         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
5076 2002-05-29  Richard Henderson  <rth@redhat.com>
5078         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
5079         alignment for alloca.
5081 2002-05-29  Richard Henderson  <rth@redhat.com>
5083         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
5084         (print_operand_address): Only add rip for symbolic addresses
5085         for which we do not have another relocation type.
5087 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
5089         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
5090         (EXTRA_SPECS): Add netbsd_cpp_spec.
5091         (CPP_SPEC): Use %(netbsd_cpp_spec).
5092         (CPP_PREDEFINES): Remove.
5093         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5094         (EXTRA_SPECS): Define.
5095         (CPP_SPEC): Use %(netbsd_cpp_spec).
5096         (CPP_PREDEFINES): Remove.
5098 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5100         PR preprocessor/6844
5101         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
5102         NUL.
5104 2002-05-29  Eric Christopher  <echristo@redhat.com>
5106         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
5107         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
5109 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
5111         * config/fr30/fr30.md: Remove previous restriction on splits.
5112         Enforce conformance through gen_lowpart and cont_int_operand.
5113         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
5114         as the assembler does not support ".bss".
5116 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
5118         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
5119         (CPP_PREDEFINES): Remove.
5120         (SUBTARGET_EXTRA_SPECS): Define.
5121         (CPP_SPEC): Use %(netbsd_cpp_spec).
5122         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5123         (CPP_PREDEFINES): Remove.
5124         (SUBTARGET_EXTRA_SPECS): Define.
5125         (CPP_SPEC): Use %(netbsd_cpp_spec).
5126         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
5127         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
5128         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
5129         Add netbsd_cpp_spec.
5130         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
5132 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5133             Zack Weinberg <zack@codesourcery.com>
5135         * cppexp.c (cpp_num): Move to cpplib.h.
5136         (CPP_ERROR): Remove.
5137         (interpret_float_suffix, interpret_int_suffix): New.
5138         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
5139         (cpp_classify_number, cpp_interpret_integer): New.
5140         (interpret_number): Remove.
5141         (eval_token): Update to use new routines.
5142         * cpphash.h (cpp_num_part): Move to cpplib.h.
5143         * cppinit.c (cpp_post_options): Set warn_long_long.
5144         * cpplib.h (struct cpp_options): Add warn_long_long.
5145         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
5146         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
5147         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
5148         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
5149         cpp_interpret_integer): New.
5151 2002-05-29  Joel Sherrill <joel@OARcorp.com>
5153         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
5155 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
5157         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
5158         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
5159         (CPP_SUBTARGET_SPEC): Define.
5160         (SUBTARGET_EXTRA_SPECS): Define.
5161         (CPP_SPEC): Remove.
5163 2002-05-29  Chris Lattner  <sabre@nondot.org>
5165         * ssa.c (rename_insn_1): Rename uses of undefined registers to
5166         prevent confusion if/when the register is defined.
5168 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
5170         PR target/6838
5171         * config/cris/cris.md: Fix typos and thinkos in comments.
5172         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
5173         second alternative.
5174         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
5175         ("*mov_sideqi_mem"): Similar, but for operand 3.
5176         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
5177         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
5178         Remove spurious mode specifier on operand 2.
5180 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
5182         * config/h8300/h8300-protos.h: Remove the prototype for
5183         o_operand.
5184         Add prototypes for single_one_operand and single_zero_operand.
5185         * config/h8300/h8300.c (o_operand): Remove.
5186         (single_one_operand): New.
5187         (single_zero_operand): Likewise.
5188         (print_operand): For 'V' operand, and the operand with 0xff.
5189         For 'V' and 'W' operands, do not and the bit position with 7.
5190         * config/h8300/h8300.md (various anonymous patterns): Replace
5191         use of exact_log2 with single_one_operand/single_zero_operand.
5193 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
5195         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
5197 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
5199         * config/s390/s390.c (legitimate_pic_operand_p): Do not
5200         accept symbolic LARL operands.
5201         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
5202         epilogue insns.
5204 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
5206         * config/s390/s390.md (cmpstr_64/31): Mark whole
5207         input registers as used.
5209 2002-05-28  Richard Henderson  <rth@redhat.com>
5211         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
5212         not current_function_uses_pic_offset_table and
5213         current_function_uses_const_pool; examine current_function_profile.
5214         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
5215         input to blockage if needed.
5216         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
5217         (legitimize_pic_address): Likewise.  Set regs_ever_live for
5218         pic_offset_table_rtx when invoked during reload.
5219         * config/i386/i386.h (FINALIZE_PIC): Remove.
5220         * config/i386/i386.md (tablejump): Reformat.  Do not set
5221         current_function_uses_pic_offset_table.
5222         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
5223         (blockage): Accept anything as operand 0.
5225 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
5227         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
5228         common CPP built-ins for all NetBSD a.out targets.
5229         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
5230         common CPP built-ins for all NetBSD ELF targets.
5231         * config/netbsd.h: Add missing notice.
5232         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
5233         for all NetBSD targets.
5234         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
5235         for all NetBSD targets using an LP64 code model.
5236         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
5237         NetBSD targets.
5239 2002-05-28  Richard Henderson  <rth@redhat.com>
5241         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
5242         update if UPDATE_LIFE_LOCAL.
5244 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5246         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
5248 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
5249                           Jason R. Thorpe <thorpej@wasabisystems.com>
5251         config/sh reorganization to factor out endianness and coff:
5253         * config/sh/little.h: New file.
5254         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
5255         defined, define to 0 to select big-endian.
5256         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
5257         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5258         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5259         * config/sh/t-be: New file.
5260         * config/sh/t-le: New file.
5262         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
5263         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
5264         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
5265         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
5266         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
5267         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
5268         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
5269         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
5270         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
5271         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
5272         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
5273         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
5274         (LINK_SPEC): Define to SH_LINK_SPEC.
5275         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
5276         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
5277         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
5278         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
5279         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
5280         * config/sh/coff.h: New file.
5281         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
5282         (TARGET_OBJFMT_CPP_BUILTINS): Define.
5283         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
5284         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
5285         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
5286         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
5287         (PTRDIFF_TYPE): Likewise.
5288         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
5289         (CPP_PREDEFINES): Don't define.
5290         (TARGET_OBJFMT_CPP_BUILTINS): Define.
5291         (LINK_SPEC): Define to SH_LINK_SPEC.
5292         (LINK_EMUL_PREFIX): Redefine.
5293         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
5294         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
5295         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
5296         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
5297         (TARGET_OS_CPP_BUILTINS): Define.
5298         (TARGET_DEFAULT): Redefine.
5299         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
5300         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
5301         (LINK_SPEC): Don't redefine.
5302         (LINK_DEFAULT_CPU_EMUL): Redefine.
5303         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5304         * sh.c (sh_asm_named_section): Don't declare / define.
5305         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
5306         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
5307         (sh64-*-elf* tm_file): Likewise.
5308         (sh-*-rtemself* tm_file): Likewise.
5309         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
5310         (sh-*-linux* tmake_file): Add sh/t-le.
5311         (sh-*-rtems* tm_file): Add sh/coff.h
5312         (sh-*-* tm_file): Likewise.
5314 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
5316         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
5317         CONSTANT_POOL_ADDRESS_P.
5319         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
5321 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
5322             Jeff Law <law@redhat.com>
5324         * optabs.c (expand_binop): Fix nwords sign warnings.
5325         generate pseudo for add_optab.
5327         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
5328         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
5330 2002-05-28      Marc Espie <espie@openbsd.org>
5332         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
5333         inherited from gas.h.
5334         (ASM_QUAD):  Undef.  OpenBSD does not support it.
5336 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
5338         * doc/install.texi (binaries): Change mingw binaries
5339         link to www.mingw.org.
5341 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5343         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
5345 2002-05-28  Richard Henderson  <rth@redhat.com>
5347         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
5348         bottom alignment for leaf functions.
5350 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
5352         * config/pa/milli32.S, config/pa/lib1funcs.asm,
5353         config/sparc/sol2-g1.asm: Delete unused files.
5355 2002-05-28  Richard Henderson  <rth@redhat.com>
5357         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
5359         * flow.c (calculate_global_regs_live): Rename call_used to
5360         invalidated_by_call.  Initialize from regs_invalidated_by_call
5361         instead of call_used_regs.
5363         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
5364         DECL_EXTERNAL.
5366 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
5368         * tree.h: Don't include real.h.
5369         Forward-declare struct realvaluetype.
5370         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
5371         contain it.
5372         (TREE_REAL_CST_PTR): New accessor.
5373         (TREE_REAL_CST): Update.
5374         * real.h: Include machmode.h.
5375         (realvaluetype): Make it struct realvaluetype, not a typedef.
5376         (build_real): Prototype here.
5378         * tree.c: Include real.h.
5379         (build_real): Allocate the REAL_VALUE_TYPE as a separate
5380         object in GC memory, set TREE_REAL_CST_PTR to point to it.
5381         (build_real_from_int_cst): Use build_real.
5382         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
5383         REAL_CST.
5385         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
5386         fold-const.c, print-tree.c, real.c: Include real.h.
5387         * Makefile.in: Update dependency lists.
5389 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5391         * basic-block.h (last_basic_block): Declare.
5392         (expunge_block_nocompact): Declaration removed.
5393         (compact_blocks): Declare.
5394         * cfg.c (last_basic_block): New variable.
5395         (expunge_block_nocompact): Removed.
5396         (expunge_block): Do not compact basic blocks.
5397         (compact_blocks): New.
5398         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
5399         longer change.
5400         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
5401         last_basic_block.
5402         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
5403         real positions of blocks.
5404         (delete_unreachable_blocks): Simplified -- quadratic behavior now
5405         cannot occur.
5406         (cleanup_cfg): Compact blocks.
5407         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
5408         basic_block_info varray.
5409         (flow_delete_block): Comment update.
5410         (back_edge_of_syntactic_loop_p): Modify position check code.
5411         (verify_flow_info): Update checking.
5412         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
5413         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5414         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
5415         indices no longer change.
5416         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
5417         last_basic_block.
5418         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
5419         * profile.c (branch_prob): Compact blocks.
5420         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
5421         last_basic_block.
5423 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
5425         * config/h8300/h8300.md (two anonymous patterns): New.
5427 2002-05-28  David S. Miller  <davem@redhat.com>
5429         * config/sparc/sparc.md (cpu): Tidy.
5430         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
5431         'trap'.
5432         (in_call_delay): Delete reference to 'return' type.
5433         (eligible_for_return_delay, in_return_delay, define_delay
5434         referencing those): Delete.
5435         (rest of file): Use new type attributes as appropriate.
5436         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
5437         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
5438         * config/sparc/ultra1_2.md (us1_single): New reservation.
5439         (us1_ialuX): Likewise.
5440         * config/sparc/ultra3.md (us3_single): Likewise.
5441         (us3_ialuX): Likewise.
5442         (us3_imul, us3_idiv): Tweak.
5444 2002-05-28  Richard Henderson  <rth@redhat.com>
5446         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
5447         STRING_CST.
5449 2002-05-28  Richard Henderson  <rth@redhat.com>
5451         * config.gcc: Obsolete mn10200.
5453 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5455         * cppexp.c (interpret_number): Optimize for single-digit
5456         and less-than-half-precision cases.
5457         (num_trim, num_positive, num_div_op): Cast constants.
5459 2002-05-27  Bo Thorsen  <bo@suse.de>
5461         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
5462         3.1 branch. The file was made by Jakub Jelinek.
5463         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
5464         support so multilib doesn't break. And don't define this at all
5465         when -Dinhibit_libc is used.
5466         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
5467         * config/i386/t-linux64: Implement full multilib support. Patch
5468         originally done by Andreas Jaeger and Jakub Jelinek.
5470 2002-05-27  Roger Sayle  <roger@eyesopen.com>
5472         * c-common.c: Add support for __attribute__((nothrow)) to specify
5473         that a function cannot throw an exception (using TREE_NOTHROW).
5474         (handle_nothrow_attribute): New function to process this attribute.
5476         * doc/extend.texi: Document the new nothrow function attribute.
5478 2002-05-27  H.J. Lu  (hjl@gnu.org)
5480         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
5481         (num_positive): Likewise.
5482         (num_div_op): Likewise.
5484 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5486         * c-common.c (c_common_init): Always use intmax_t.
5488 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5490         * c-common.c (c_common_init): Use intmax_t for now.
5492 2002-05-24  Andrew Haley  <aph@redhat.com>
5494         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
5495         if T is a boolean type.
5497 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5499         * basic-block.h (last_basic_block): Defined as synonym for
5500         n_basic_blocks.
5501         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
5502         flow_depth_first_order_compute, flow_preorder_transversal_compute,
5503         flow_dfs_compute_reverse_init): Replaced relevant occurences of
5504         n_basic_blocks with last_basic_block.
5505         * cfgbuild.c (make_edges): Likewise.
5506         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
5507         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
5508         * combine.c (combine_instructions): Likewise.
5509         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
5510         iterative_dataflow_bitmap): Likewise.
5511         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5512         calc_idoms, idoms_to_doms): Likewise.
5513         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
5514         Likewise.
5515         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
5516         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
5517         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
5518         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
5519         delete_null_pointer_checks, compute_code_hoist_vbeinout,
5520         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5521         compute_store_table, build_store_vectors): Likewise.
5522         * haifa-sched.c (sched_init): Likewise.
5523         * ifcvt.c (if_convert): Likewise.
5524         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5525         pre_edge_lcm, compute_available, compute_nearerout,
5526         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
5527         Likewise.
5528         * predict.c (estimate_probability, process_note_prediction,
5529         note_prediction_to_br_prob): Likewise.
5530         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
5531         * recog.c (split_all_insns, peephole2_optimize): Likewise.
5532         * regrename.c (copyprop_hardreg_forward): Likewise.
5533         * resource.c (init_resource_info): Likewise.
5534         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
5535         init_regions, schedule_insns): Likewise.
5536         * ssa-ccp.c (ssa_const_prop): Likewise.
5537         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5538         * ssa.c (compute_dominance_frontiers,
5539         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
5541         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
5542         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
5543         sizes consistently.
5545 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
5547         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
5548         new.
5549         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
5550         hoist_insn_after, hoist_insn_to_edge): New.
5552 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
5554         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
5555         (PROP_FINAL): Include.
5556         * flow.c (life_analysis, update_life_info,
5557         init_propagate_block_info, mark_set_1, mark_used_rgs):
5558         Support SCAN_DEAD_STORE.
5560 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5562         * c-common.c (c_common_init): Set CPP arithmetic precision.
5563         * cppexp.c (cpp_num_part): Move typedef ...
5564         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
5565         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
5566         (sanity_checks): Update.
5568 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
5570         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
5571         (mkheaders): New rule.
5572         (install-mkheaders): New rule.
5573         * configure.in (all_outputs): Add mkheaders.
5574         * configure: Regenerate.
5575         * mkheaders.in: New file.
5577 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
5579         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
5581 2002-05-26  Andreas Jaeger  <aj@suse.de>
5583         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
5585 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5587         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
5588         right_shift): Remove.
5589         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
5590         HIGH_PART): New.
5591         (struct op): Use cpp_num.
5592         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
5593         num_part_mul, num_unary_op, num_binary_op, num_negate,
5594         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
5595         num_div_op, num_lshift, num_rshift, append_digit): New.
5596         (interpret_number, parse_defined, eval_token, reduce): Update
5597         for two-integer arithmetic.
5598         (binary_handler): New typedef.
5599         (optab): Update.
5600         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
5601         (_cpp_parse_expr, reduce): Update to handle two-integers.
5602         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
5604 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5606         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
5607         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
5608         branch insn into account, do not assume 1.
5609         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
5610         over single word insn.  Handle upper half of I/O space too.
5611         * config/avr/avr.md (*sbrx_branch): Use it.
5612         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
5613         (*sbix_branch, *sbix_branch_bit7): Likewise.
5614         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
5615         Use RTL peepholes to optimize register operand sign tests.
5617 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5619         * config/avr/avr.c (avr_asm_only_p): New variable.
5620         (avr_override_options): Set it here if AVR1.
5621         (asm_file_start): Test it here, report an error if set.
5623 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
5625         * alias.c: Fix formatting.
5626         * attribs.c: Likewise.
5627         * bb-reorder.c: Likewise.
5628         * bitmap.c: Likewise.
5629         * bitmap.h: Likewise.
5630         * builtins.c: Likewise.
5632 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
5634         * reload.c (find_valid_class): Accept new argument DEST,
5635         choose class accordingly.
5636         (push_reload): Update callers.
5638 2002-05-26  Andreas Jaeger  <aj@suse.de>
5640         * combine.c (combine_instructions): Do not indent #if for
5641         traditional C.
5643 2002-05-25  Richard Henderson  <rth@redhat.com>
5645         * c-pragma.c (apply_pragma_weak): Convert value identifier to
5646         string for decl_attributes.
5647         (handle_pragma_weak): Call assemble_alias if we're modifying
5648         an existing decl.
5650 2002-05-25  Richard Henderson  <rth@redhat.com>
5652         PR target/6788
5653         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
5654         using rtl instead of fprintf.
5655         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
5656         * config/sparc/sparc-protos.h: Update.
5658 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5660         * Makefile.in (C_COMMON_H): Fix.
5661         Update other targets.
5662         * c-common.c: Don't include c-lex.h.
5663         (builtin_define_with_value): Make static and prototype.
5664         (builtin_define_std): Move from c-lex.h.
5665         * c-common.h (init_c_lex): Move from c-lex.h.
5666         * c-decl.c: Don't include c-lex.h.
5667         (make_pointer_declarator): Move from c-parse.in.
5668         * c-lex.c: Don't include c-lex.h.
5669         * c-lex.h: Remove.
5670         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
5671         (make_pointer_declarator): Move to c-decl.c.
5672         * c-pragma.c: Don't include c-lex.h.
5673         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
5674         * c-tree.h (make_pointer_declarator): New.
5675 doc:
5676         * passes.texi, tm.texi: Update.
5677 objc:
5678         * Make-lang.in: Update and correct.
5679         * objc-act.c: Don't include c-lex.h or cpplib.h.
5680 treelang:
5681         * treetree.c: Don't include c-lex.h.
5682 config:
5683         * darwin-c.c: Don't include c-lex.h.
5684         * c4x/c4x-c.c: Don't include c-lex.h.
5685         * c4x/t-c4x: Update.
5686         * i370/i370-c.c: Don't include c-lex.h.
5687         * i370/t-i370: Update.
5688         * i960/i960-c.c: Don't include c-lex.h.
5689         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
5690         * i960/t-960bare: Update.
5691         * i960/t-vxworks: Update.
5692         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
5693         * rs6000/t-darwin: Update.
5694         * rs6000/t-rs6000-c-rule: Update.
5695         * v850/v850-c.c: Don't include c-lex.h.
5696         * v850/v850.c: Don't include c-lex.h or cpplib.h.
5699 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5701         * tree.def: Fix typos.
5702         * doc/install.texi: Likewise.
5704 2002-05-25  Richard Henderson  <rth@redhat.com>
5706         * configure.in (HAVE_AS_TLS): Add ia64 test.
5707         * configure: Rebuild.
5708         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
5709         (override_options): Set it.
5710         (TARGET_HAVE_TLS): New.
5711         (sdata_symbolic_operand): Look for 's'.
5712         (tls_symbolic_operand): New.
5713         (ia64_expand_load_address): Abort for tls symbols.
5714         (gen_tls_get_addr): New.
5715         (gen_thread_pointer): New.
5716         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
5717         (rtx_needs_barrier): Add new unspecs.
5718         (ia64_encode_section_info): Handle tls symbols.
5719         (ia64_strip_name_encoding): Strip two encoding chars.
5720         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
5721         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
5722         (TARGET_OPTIONS): Add tls-size.
5723         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
5724         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
5725         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
5726         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
5727         (movsf, movdf): Likewise.
5728         (movdi_symbolic): Use match_scratch.  Don't split if we won't
5729         have a scratch availiable.
5730         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
5731         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
5732         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
5733         * config/ia64/ia64-protos.h: Update.
5734         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
5735         sdata_symbolic_operand.
5736         (ASM_OUTPUT_LABELREF): Strip two characters.
5738 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5740         * combine.c (simplify_set): Remove an unnecessary subreg.
5742 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5744         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
5746         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
5748 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5750         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
5752 2002-05-25  Roger Sayle  <roger@eyesopen.com>
5754         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
5755         (cond (compare x y) 0) into the equivalent (cond x y).
5757 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5759         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
5761 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
5763         * config.gcc: Remove all stanzas for previously obsoleted
5764         systems.  Where necessary, add explicit error stanzas to
5765         prevent removed systems from being misidentified as something
5766         else.  Begin a fresh obsoletions list, with the systems that
5767         were reprieved last round.
5768         * doc/install.texi: Remove all mention of dead targets.
5769         * fixinc/mkfixinc.sh: Likewise.
5771         * config/arm/arm.h: Bit 31 of target_flags is no longer
5772         reserved.
5774         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
5775         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
5776         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
5777         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
5778         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
5779         config/alpha/osf12.h, config/alpha/osf2or3.h,
5780         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
5781         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
5782         config/clipper/clipper-protos.h, config/clipper/clipper.c,
5783         config/clipper/clipper.h, config/clipper/clipper.md,
5784         config/clipper/clix.h, config/convex/convex-protos.h,
5785         config/convex/convex.c, config/convex/convex.h,
5786         config/convex/convex.md, config/convex/fixinc.convex,
5787         config/convex/proto.h, config/elxsi/elxsi-protos.h,
5788         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
5789         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
5790         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
5791         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
5792         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
5793         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
5794         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
5795         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
5796         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
5797         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
5798         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
5799         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
5800         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
5801         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
5802         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
5803         config/m68k/altos3068.h, config/m68k/apollo68.h,
5804         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
5805         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
5806         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
5807         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
5808         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
5809         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
5810         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
5811         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
5812         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
5813         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
5814         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
5815         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
5816         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
5817         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
5818         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
5819         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
5820         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
5821         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
5822         config/mips/dec-osf1.h, config/mips/elflorion.h,
5823         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
5824         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
5825         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
5826         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
5827         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
5828         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
5829         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
5830         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
5831         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
5832         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
5833         config/ns32k/sequent.h, config/ns32k/tek6000.h,
5834         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
5835         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
5836         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
5837         config/sparc/rtems.h, config/we32k/we32k-protos.h,
5838         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
5839         Delete file.
5841 2002-05-24  Richard Henderson  <rth@redhat.com>
5843         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
5844         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
5845         * config/i386/i386.c (tls_model_chars): Add leading space.
5846         (tls_symbolic_operand): Don't bias by 1.
5847         (legitimize_address): Don't unbias by 1.
5849 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5851         * lcm.c (optimize_mode_switching): Change bb used as indices
5852         to bb->index.
5854 2002-05-24  Richard Henderson  <rth@redhat.com>
5856         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
5857         of update_life_info_in_dirty_blocks.
5859 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
5861         PR other/6782
5862         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
5864 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5866         PR preprocessor/6780
5867         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
5869 2002-05-24  Jim Blandy  <jimb@redhat.com>
5871         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
5872         entry with a type code of zero, marking the end of the compilation
5873         unit's macro info.
5875 2002-05-24  Richard Henderson  <rth@redhat.com>
5877         * varasm.c (asm_output_bss): Always output one byte.
5878         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5880 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5882         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
5883         namespace.
5885 2002-05-24  Andreas Jaeger  <aj@suse.de>
5887         * ggc-page.c (alloc_page): Cast variables of type size_t to
5888         unsigned long, adjust printf format string.
5889         (ggc_alloc): Likewise.
5890         (ggc_print_statistics): Likewise.
5891         (ggc_print_statistics): Correct printf format string for SCALE to
5892         use unsigned long.
5894 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
5896         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
5898 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
5899             Zack Weinberg     <zack@codesourcery.com>
5901         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
5902         quoted strings.
5903         * dwarf2out.c (lookup_filename): Properly quote filename in .file
5904         directive in assembly file.
5905         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5906         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5907         * config/pj/pj.h (ASM_FILE_START): Likewise.
5908         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5909         * config/avr/avr.c (asm_file_end): Likewise.
5910         * toplev.c (output_quoted_string): Handle possibly signed plain
5911         char.
5912         * toplev.h (output_clean_symbol_name): Declare
5913         * toplev.c (output_clean_symbol_name): Define.
5914         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
5915         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
5917 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
5919         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
5921 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
5923         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
5924         of size of unsigned.
5926 2002-05-23  Richard Henderson  <rth@redhat.com>
5928         * configure.in (HAVE_AS_TLS): New test.
5929         * config.in, configure: Rebuild.
5930         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
5931         (ix86_tls_dialect_string, ix86_tls_dialect): New.
5932         (override_options): Set it.
5933         (tls_model_chars, tls_symbolic_operand): New.
5934         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
5935         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
5936         (local_exec_symbolic_operand): New.
5937         (get_pic_label_name): Merge into output_set_got.
5938         (ix86_asm_file_end): Emit pic_label_name if defined.
5939         (legitimate_constant_p, constant_address_p): New.
5940         (legitimate_pic_operand_p): New.
5941         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
5942         (legitimate_address_p): Likewise.
5943         (ix86_encode_section_info): Rename from i386_; handle tls decls.
5944         (ix86_strip_name_encoding): New.
5945         (get_thread_pointer): New.
5946         (legitimize_address): Handle tls symbols.
5947         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
5948         Remove UNSPEC_PLT.
5949         (struct machine_function): Add some_ld_name.
5950         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
5951         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
5952         (output_addr_const_extra): New.
5953         (maybe_get_pool_constant): New.
5954         (ix86_split_to_parts): Use it.
5955         (ix86_expand_move): Handle tls symbols.
5956         (ix86_tls_get_addr): New.
5957         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
5958         (TARGET_OPTIONS): Add tls-dialect.
5959         (CONSTANT_ADDRESS_P): Use new out-of-line function.
5960         (LEGITIMATE_CONSTANT_P): Likewise.
5961         (LEGITIMATE_PIC_OPERAND_P): Likewise.
5962         (TARGET_STRIP_NAME_ENCODING): New.
5963         (ASM_OUTPUT_LABELREF): New.
5964         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5965         (OUTPUT_ADDR_CONST_EXTRA): New.
5966         (PREDICATE_CODES): Update.
5967         (ix86_tls_dialect, ix86_tls_dialect_string): New.
5968         * config/i386/i386.md: Regroup and renumber unspec constants.
5969         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
5970         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
5971         (tls_global_dynamic, tls_local_dynamic_base): New.
5972         (tls_local_dynamic_once): New.
5973         * config/i386/i386-protos.h: Update.
5975 2002-05-23  Richard Henderson  <rth@redhat.com>
5977         * genemit.c (gen_insn): Print file:lineno comment before function.
5978         (main): likewise.
5979         * gensupport.c (struct queue_elem): Add filename member.
5980         (queue_pattern): Initialize it; update all callers.
5981         (process_include): Don't free filename.
5982         (read_md_rtx): Set read_rtx_filename.
5984 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
5986         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
5988 2002-05-23  Richard Henderson  <rth@redhat.com>
5990         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
5992 2002-05-23  Richard Henderson  <rth@redhat.com>
5994         * doc/extend.texi (C++98 Thread-Local Edits): Update with
5995         commentary from Mark.
5997 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5999         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
6000         Use FOR_EACH_BB macros to iterate over basic block chain.
6001         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
6002         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
6003         Likewise.
6004         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
6005         find_unreachable_blocks, create_edge_list, verify_edge_list,
6006         remove_fake_edges, add_noreturn_fake_exit_edges,
6007         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
6008         Likewise.
6009         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
6010         find_sub_basic_blocks): Likewise.
6011         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
6012         Likewise.
6013         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
6014         Likewise.
6015         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
6016         Likewise.
6017         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
6018         commit_edge_insertions, commit_edge_insertions_watch_calls,
6019         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
6020         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
6021         * conflict.c (conflict_graph_compute): Likewise.
6022         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
6023         df_modified_p, df_refs_unlink, df_dump): Likewise.
6024         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
6025         * final.c (compute_alignments): Likewise.
6026         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
6027         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
6028         count_or_remove_death_notes): Likewise.
6029         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
6030         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
6031         classic_gcse, compute_transp, cprop, compute_pre_data,
6032         compute_transpout, invalidate_nonnull_info,
6033         delete_null_pointer_checks_1, delete_null_pointer_checks,
6034         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
6035         compute_store_table, build_store_vectors, store_motion): Likewise.
6036         * global.c (global_conflicts, mark_elimination): Likewise.
6037         * graph.c (print_rtl_graph_with_bb): Likewise.
6038         * haifa-sched.c (sched_init): Likewise.
6039         * ifcvt.c (if_convert): Likewise.
6040         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
6041         compute_available, compute_nearerout, compute_rev_insert_delete,
6042         optimize_mode_switching): Likewise.
6043         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
6044         * predict.c (estimate_probability, note_prediction_to_br_prob,
6045         propagate_freq, counts_to_freqs, expensive_function_p,
6046         estimate_bb_frequencies): Likewise.
6047         * profile.c (instrument_edges, get_exec_counts,
6048         compute_branch_probabilities, compute_checksum, branch_prob,
6049         find_spanning_tree): Likewise.
6050         * recog.c (split_all_insns, peephole2_optimize): Likewise.
6051         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
6052         Likewise.
6053         * regclass.c (scan_one_insn, regclass): Likewise.
6054         * regmove.c (mark_flags_life_zones, regmove_optimize,
6055         record_stack_memrefs): Likewise.
6056         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
6057         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
6058         * resource.c (find_basic_block): Likewise.
6059         * sched-ebb.c (schedule_ebbs): Likewise.
6060         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
6061         find_single_block_region, find_rgns, schedule_insns)
6062         * sibcall.c (optimize_sibling_and_tail_recursive_call)
6063         * ssa-ccp.c (optimize_unexecutable_edges,
6064         ssa_ccp_df_delete_unreachable_insns): Likewise.
6065         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6066         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
6067         rename_block, convert_to_ssa, compute_conservative_reg_partition,
6068         compute_coalesced_reg_partition, rename_equivalent_regs,
6069         convert_from_ssa): Likewise.
6070         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
6071         process_for_unwind_directive): Likewise.
6073         * df.c (FOR_ALL_BBS): Removed.
6074         * gcse.c (struct null_pointer_info): Type of current_block field
6075         changed.
6076         (struct reg_avail_info): Type of last_bb field changed.
6077         * config/ia64/ia64.c (block_num): Removed.
6078         (need_copy_state): Type changed.
6079         (last_block): New.
6081 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6083         * cppinit.c (mark_named_operators): Split out from init_builtins.
6084         (cpp_finish_options): Call it from here instead.
6086 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
6088         * builtin-attrs.def: Update copyright years.
6089         (ATTR_NONNULL): New attribute identifier.
6090         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
6091         attribute tree lists.
6092         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
6093         format operand.
6094         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
6095         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
6096         attribute lists.  Chain the appropriate nonnull attribute.
6097         * c-format.c (check_format_arg): Remove null format string
6098         warning.
6099         * testsuite/gcc.dg/format/null-1.c: New test.
6101 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6103         * Makefile.in (ADAC): Define.
6104         (SYSLIBS): Define.
6105         (.SUFFIXES): Move before language makefile fragments.
6106         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
6108 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
6110         * varasm.c (make_decl_rtl): Don't allow weak variables to be
6111         placed in common.
6113 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
6115         * cfg.c (dump_flow_info): Print results of
6116         maybe_hot/probably_never_executed predicates.
6117         * toplev.c (open_dump_file): Print function frequency.
6119 2002-05-23  David S. Miller  <davem@redhat.com>
6121         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
6122         regsets.
6124 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
6126         * c-common.c (warn_nonnull): Declare.
6127         (c_common_attribute_table): Add "nonnull" attribute.
6128         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
6129         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
6130         check_function_arguments_recurse): New functions.
6131         * c-common.h (warn_nonnull): Declare extern.
6132         (check_function_arguments, check_function_arguments_recurse): New
6133         prototypes.
6134         * c-decl.c (c_decode_option): Add -Wnonnull option.
6135         * c-format.c (set_Wformat): Set warn_nonnull if enabling
6136         format checking.
6137         (format_check_context): New structure.
6138         (check_format_info_recurse): Remove recursion and rename to...
6139         (check_format_arg): ...this.  Update comment.
6140         (check_format_info): Use check_function_arguments_recurse.
6141         * c-typeck.c (build_function_call): Call check_function_arguments
6142         instead of check_function_format.
6143         * doc/extend.texi: Document "nonnull" attribute.
6144         * doc/invoke.texi: Docuemnt -Wnonnull option.
6145         * testsuite/gcc.dg/nonnull-1.c: New test.
6146         * testsuite/gcc.dg/nonnull-2.c: New test.
6148 2002-05-23  David S. Miller  <davem@redhat.com>
6150         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
6151         * cfgcleanup.c (cleanup_cfg): If it is set do not
6152         attempt to delete trivially dead insns.
6153         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
6154         * toplev.c (rest_of_compilation): Document non-trivial aspect
6155         the RTL before optimize_save_area_alloca is run.
6157 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6159         * c-lex.c (indent_level): Remove.
6160         (cb_file_change, c_lex): Remove indent level handling.
6161         * c-lex.h (indent_level): Remove.
6162         * input.h (struct file_stack): Remove indent_level.
6163         * toplev.c (push_srcloc): Remove indent_level handling.
6165 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6167         PR target/6753
6168         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
6169         of x in constraints for clarity.
6170         (sse_mov?fcc split): abort if op2 == op3.
6171         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
6172         sse_movsfcc_const0_4): Add earlyclobber.
6173         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
6174         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
6175         Use Y instead of x in constraints.
6177 2002-05-23  Richard Henderson  <rth@redhat.com>
6179         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
6180         (C++98 Thread-Local Edits): New subsection.
6182         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
6183         (ix86_arch): Set type to enum processor_type.
6185         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
6186         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
6188 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6190         * configure.in: Fix as version test for binutils 2.12.1 releases
6191         (without dates).
6192         * configure: Rebuilt.
6194 2002-05-23  Richard Henderson  <rth@redhat.com>
6196         * config/i386/i386.c (get_pic_label_name): New.
6197         (load_pic_register): Remove.
6198         (output_set_got): New.
6199         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
6200         * config/i386/i386.md (UNSPEC_SET_GOT): New.
6201         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
6202         (prologue_set_got, prologue_get_pc): Remove.
6203         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
6204         (builtin_setjmp_receiver): Use gen_set_got.
6205         * config/i386/i386-protos.h: Update.
6207 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
6209         * gcse.c (hash_expr): Do not use alias set for hashing.
6211 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
6213         * dbxout.c (dbxout_class_name_qualifiers): New function.
6214         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
6216 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6218         * cpperror.c (_cpp_begin_message): No special casing
6219         of CPP_FATAL_LIMIT.
6220         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
6221         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
6222         * cpplib.c (do_include_common): Use DL_ERROR.
6223         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
6224         (DL_ICE): Renumber.
6225         * fix-header.c (read_scan_file): Update.
6227 2002-05-22  Richard Henderson  <rth@redhat.com>
6229         * config/i386/i386.c (ix86_expand_call): New function, extracted
6230         from md call patterns.  Add pic_offset_table_rtx to
6231         CALL_INSN_FUNCTION_USAGE when needed.
6232         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
6233         (call_value_pop, call_value, untyped_call): Likewise.
6234         (call_exp, call_value_exp): Remove.
6235         * config/i386/i386-protos.h: Update.
6237 2002-05-22  Richard Henderson  <rth@redhat.com>
6239         * varasm.c (default_section_type_flags): Check for VAR_DECL
6240         before using DECL_THREAD_LOCAL.
6242 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
6244         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
6245         (STARTFILE_SPEC): Delete PE crt0.o.
6246         * config/rs6000/aix51.h: Same.
6247         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
6248         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
6249         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
6250         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
6251         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
6253 2002-05-22  Richard Henderson  <rth@redhat.com>
6255         * varasm.c (default_section_type_flags): Handle tls data and
6256         default sections.
6257         (default_unique_section): Handle tls sections.
6259 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
6261         * configure.in (CROSS): Define NATIVE_CROSS.
6262         * configure: Regenerate.
6263         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
6264         (startfile_prefix_spec): New var.
6265         (static_specs): Add startfile_prefix_spec.
6266         (do_spec_2): Split out from..
6267         (do_spec): ..here.
6268         (main): Process startfile_prefix_spec.
6269         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
6270         dynamic linker.
6271         (STARTFILE_PREFIX_SPEC): Define.
6272         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
6273         absolute paths.
6275 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
6277         * cpperror.c: Fix formatting.
6278         * cppexp.c: Likewise.
6279         * cppfiles.c: Likewise.
6280         * cpphash.c: Likewise.
6281         * cpphash.h: Likewise.
6282         * cppinit.c: Likewise.
6283         * cpplex.c: Likewise.
6284         * cpplib.c: Likewise.
6285         * cppmacro.c: Likewise.
6286         * cppmain.c: Likewise.
6287         * cppspec.c: Likewise.
6289 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
6291         * combine.c (force_to_mode): Use gen_int_mode.
6292         Don't clear CONST_INT bits outside of mode.
6294 2002-05-22  Richard Henderson  <rth@redhat.com>
6296         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
6297         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6299 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
6301         PR c/6643
6302         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
6303         if DECL_SIZE_UNIT is INTEGER_CST.
6305 2002-05-22  Richard Henderson  <rth@redhat.com>
6307         * flow.c (life_analysis): Delete broken reg_label check.
6309 2002-05-22  Richard Henderson  <rth@redhat.com>
6311         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
6312         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6314 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6316         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
6317         (embed-bb.c): New rule.
6318         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
6319         * config/sh/embed_bb.c: Delete.
6321 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
6323         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
6325 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
6327         * config/h8300/h8300.md (*andorqi3): New.
6329 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6331         PR preprocessor/6517
6332         * Makefile.in: Update.
6333         * c-common.c (c_common_post_options): Add preprocessor
6334         errors to the error count.
6335         * c-lang.c (c_post_options): Kill.
6336         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6337         * hooks.h: Add header guards.
6338         * langhooks-def.h: Include hooks.h.
6339         (LANG_HOOKS_POST_OPTIONS): Update.
6340         * langhooks.h (struct lang_hooks): Update post_options.
6341         * toplev.c (parse_options_and_default_flags): Update.
6342 objc:
6343         * objc-lang.c (objc_post_options): Kill.
6344         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6346 2002-05-21  Bruce Korb  <bkorb@gnu.org>
6348         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
6349         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
6350         * fixinc/fixincl.x: regen.
6352 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
6354         * cfgbuild.c: Fix formatting.
6355         * cfg.c: Likewise.
6356         * cfgcleanup.c: Likewise.
6357         * cfglayout.c: Likewise.
6358         * cfgloop.c: Likewise.
6359         * cfgrtl.c: Likewise.
6361 2002-05-21  Richard Henderson  <rth@redhat.com>
6363         * c-common.h (enum rid): Add RID_THREAD.
6364         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
6365         (grokdeclarator): Grok __thread.
6366         * c-parse.in (reswords): Add __thread.
6367         (rid_to_yy): Add RID_THREAD.
6369         * tree.h (DECL_THREAD_LOCAL): New.
6370         (struct tree_decl): Add thread_local_flag.
6371         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
6372         * tree.c (staticp): TLS variables are not static.
6374         * target-def.h (TARGET_HAVE_TLS): New.
6375         * target.h (have_tls): New.
6376         * output.h (SECTION_TLS): New.
6377         * varasm.c (assemble_variable): TLS variables can't be common for now.
6378         (default_section_type_flags): Handle .tdata and .tbss.
6379         (default_elf_asm_named_section): Handle SECTION_TLS.
6380         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
6382         * flags.h (flag_tls_default): Declare.
6383         * toplev.c (flag_tls_default): Define.
6384         (display_help): Display help for it.
6385         (decode_f_option): Set it.
6387         * doc/extend.texi (Thread-Local): New node describing language-level
6388         thread-local storage.
6389         * doc/invoke.texi (-ftls-model): Document.
6391         * fixinc/inclhack.def (thread_keyword): New.
6392         * fixinc/fixincl.x: Rebuild.
6394 2002-05-21  Jeffrey A Law  <law@redhat.com>
6396         * optabs.c (expand_binop): For double-word integer multiplies,
6397         do not compute intermediate results into something that is
6398         not a register (such as a SUBREG or MEM).
6400         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
6401         (ix86_sched_reorder): Make sure to initialize scheduling
6402         data even when there's only one insn in the ready queue.
6404 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
6406         * genautomata.c (reserv_sets_hash_value): Fix a typo.
6408 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
6410         * genautomata.c (reserv_sets_hash_value): Define hash_value as
6411         set_el_t.  Transform the hash value into unsigned.
6412         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
6413         (transform_3): Add code to process `(A,B)+(D,E)'.
6415 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
6417         * reload1.c (do_output_reload): Run delete_output_reload
6418         only if optimizing.
6420 2002-05-21  Roger Sayle  <roger@eyesopen.com>
6422         PR middle-end/6600
6423         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
6424         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
6425         (can_store_by_pieces): ... and here to limit the largest mode used.
6426         Add a comment to document this function.
6428 2002-05-21  Richard Henderson  <rth@redhat.com>
6430         * flow.c (life_analysis): Fix test for deleted label.
6432 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6434         * doc/tm.texi: Fix typo.
6436 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
6438         * c-common.c (c_common_init): Set options->unsigned_char from
6439         flag_signed_char.
6440         (cb_register_builtins): Define __STRICT_ANSI__ and
6441         __CHAR_UNSIGNED__ here...
6442         * cppinit.c (init_builtins): Not here.
6443         (cpp_create_reader): unsigned_char option defaults to 0, not
6444         !DEFAULT_SIGNED_CHAR.
6445         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
6446         and -funsigned-char.
6448         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
6449         * cpphash.c (_cpp_init_hashtable): Don't set it.
6450         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
6451         directly.  Clarify comment.
6453 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6455         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
6456         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
6457         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
6458         BASIC_BLOCK (n_basic_blocks - 1).
6459         * cfganal.c (can_fallthru, flow_call_edges_add,
6460         flow_preorder_transversal_compute): Too.
6461         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
6462         find_sub_basic_blocks): Too.
6463         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
6464         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
6465         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
6466         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
6467         * combine.c (this_basic_block): Type changed to basic_block.
6468         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
6469         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6470         get_last_value, distribute_notes, distribute_links): Too.
6471         * final.c (compute_alignments): Too.
6472         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
6473         * function.c (thread_prologue_and_epilogue_insns): Too.
6474         * gcse.c (compute_code_hoist_vbeinout): Too.
6475         * global.c (build_insn_chain): Too.
6476         * ifcvt.c (find_if_block, find_cond_trap): Too.
6477         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
6478         * regmove.c (regmove_optimize): Too.
6479         * resource.c (find_basic_block): Too.
6480         * sched-ebb.c (schedule_ebbs): Too.
6481         * ssa-dce.c (find_control_dependence, find_pdom): Too.
6483 2002-05-21  Andreas Jaeger  <aj@suse.de>
6485         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
6487 2002-05-21  Richard Henderson  <rth@redhat.com>
6489         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
6490         unspec names, not numbers.
6492 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6494         * doc/sourcebuild.texi: Mention snapshot-README and
6495         snapshot-index.html as needing updating for new front ends.
6497 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6499         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
6500         disabling checking, and avoid multiple evaluation of RTX.
6502 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
6504         * bitmap.c (bitmap_find_bit): Return early if we have the correct
6505         element cached.
6507 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6509         * profile.c (gen_edge_profiler):  Set alias set before the memory is
6510         used.
6512 2002-05-20  David S. Miller  <davem@redhat.com>
6514         * cselib.c (max_value_regs): New.
6515         (cselib_lookup, cselib_invalidate_regno): Initialize it when
6516         adding new entries to the REG_VALUES table and we are dealing with
6517         a hard register.
6518         (clear_table): Initialize it.
6519         (cselib_invalidate_regno): Use it to determine which hard
6520         registers to scan when mode is not VOIDmode.
6522 2002-05-20  Duraid Madina   <duraid@fl.net.au>
6524         * tradcpp.c (fixup_newlines): Use old-style function header.
6526 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
6528         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
6530 2002-05-20  H.J. Lu  (hjl@gnu.org)
6532         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
6534         * config/mips/mips.h (DFMODE_NAN): Defined.
6535         (SFMODE_NAN): Likewise.
6537 2002-05-20  Dale Johannesen  <dalej@apple.com>
6539         * combine.c (cant_combine_insn_p):  Back out my
6540         previous patch.
6542 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6544         * params.c: Fix formatting.
6545         * params.h: Likewise.
6546         * predict.c: Likewise.
6547         * prefix.c: Likewise.
6548         * print-rtl.c: Likewise.
6549         * print-tree.c: Likewise.
6550         * profile.c: Likewise.
6552 2002-05-20  H.J. Lu  (hjl@gnu.org)
6554         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
6556 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
6558         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
6559         switches straight on to the assembler, do not abbreviate them.
6560         * config/arm/elf.h (ASM_SPEC): As above.
6561         * config/arm/semi.h (ASM_SPEC): As above.
6562         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
6563         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
6564         -mcpu=xscale on to the assembler by default.
6565         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
6567 2002-05-20  Richard Henderson  <rth@redhat.com>
6569         * cse.c (canon_hash): Reorder do_not_record test.  Always
6570         allow pic_offset_table_rtx.
6572 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
6574         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
6575         (expand_binop): Ditto (3 times).
6577 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
6579         * Makefile.in (distclean): Remove QMTest stuff.
6580         (QMTEST_PATH): New variable.
6581         (QMTESTFLAGS): Likewise.
6582         (QMTESTRUNFLAGS): Likewise.
6583         (QMTEST): Likewise.
6584         (QMTEST_GPP_TESTS): Likewise.
6585         (QMTEST_DIR): Likewise.
6586         (QMTEST_DIR/context): New target.
6587         (qmtest-g++): Likeise.
6588         (qmtest-gui): Likewise.
6589         (QMTEST_DIR/gpp-expected.qmr): Likewise.
6591 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
6593         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
6594         an altivec register if TARGET_ALTIVEC.
6596         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
6597         to ALTIVEC_VECTOR_MODE.
6598         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
6599         (rs6000_va_arg): Vectors may go in registers if they are not
6600         altivec vectors.
6602 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
6604         * protoize.c: Fix formatting.
6606 2002-05-19  Richard Henderson  <rth@redhat.com>
6608         * gensupport.c (init_include_reader): Merge into ...
6609         (process_include): ... here.  Simplify composite path creation.
6610         Plug memory leaks.  Fix file/line number tracking.  Do not
6611         process_define_cond_exec.  Return void.
6612         (process_rtx): Don't check process_include return value.
6614 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6616         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
6617         fields.
6618         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6619         traversing basic block chain.
6620         (create_basic_block_structure, create_basic_block): Declaration changed.
6621         (link_block, unlink_block): Declare.
6622         * cfg.c (entry_exit_blocks): Initialize new fields.
6623         (link_block, unlink_block): New.
6624         (expunge_block_nocompact): Unlink basic block.
6625         (dump_flow_info): Print prev_bb/next_bb fields.
6626         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
6627         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
6628         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
6629         * cfgrtl.c (create_basic_block_structure, create_basic_block,
6630         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
6631         (verify_flow_info): Check that list agrees with numbering.
6633 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6635         * c-common.c (preprocessing_asm): New macro.
6636         * c-lex.h (builtin_define, builtin_assert): Use pfile.
6637 doc:
6638         * tm.texi: Update.
6639 config/alpha:
6640         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
6641         (CPP_SPEC): Simplify.
6642         (TARGET_CPU_CPP_BUILTINS): Update.
6643         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
6644         (CPP_SPEC): Simplify.
6645         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
6646         (TARGET_OS_CPP_BUILTINS): Update.
6647         * osf.h (CPP_XFLOAT_SPEC): Kill.
6648         (TARGET_OS_CPP_BUILTINS): Update.
6649         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
6650         * osf5.h (CPP_XFLOAT_SPEC): Kill.
6651         * vms.h (CPP_SUBTARGET_SPEC): Kill.
6652         (TARGET_OS_CPP_BUILTINS): Update.
6654 2002-05-19  Richard Henderson  <rth@redhat.com>
6656         * varasm.c (default_binds_local_p): Fix typo.
6658 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6660         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
6661         CONST_INT operand to the correct mode after adding 1 to it.
6663 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
6665         * config.gcc (powerpc-wrs-windiss*): New target.
6667 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6669         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
6670         (ashrdi3): Use it.
6672 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
6674         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
6675         alphasort.
6676         * config.in: Regenerated.
6677         * configure: Regenerated.
6679 2002-05-19  Richard Henderson  <rth@redhat.com>
6681         * target-def.h (TARGET_BINDS_LOCAL_P): New.
6682         * target.h (struct gcc_target): Move boolean fields to the end.
6683         Add binds_local_p.
6684         * varasm.c (default_binds_local_p): New.
6685         * output.h: Declare it.
6687         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
6688         * config/cris/cris.c (cris_encode_section_info): Likewise.
6689         * config/i386/i386.c (i386_encode_section_info): Likewise.
6690         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
6691         * config/sh/sh.c (sh_encode_section_info): Likewise.
6693         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
6694         (TARGET_BINDS_LOCAL_P): New.
6696 2002-05-19  Richard Henderson  <rth@redhat.com>
6698         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
6699         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
6700         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
6702         * toplev.c (display_help): Kill -a -ax help.
6704         * config/1750a/1750a.h, config/alpha/alpha.h,
6705         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
6706         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
6707         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
6708         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
6710         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
6711         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
6713         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
6714         (ix86_output_function_block_profiler): Kill.
6715         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
6716         (m68hc11_function_block_profiler): Kill.
6717         * config/m68hc11/m68hc11-protos.h: Update.
6718         * config/m88k/m88k.c (output_block_profiler): Kill.
6719         (output_function_block_profiler): Kill.
6720         * config/m88k/m88k-protos.h: Update.
6722 2002-05-19  Richard Henderson  <rth@redhat.com>
6724         * system.h (STRIP_NAME_ENCODING): Poison it.
6725         * output.h (STRIP_NAME_ENCODING): Remove.
6726         (default_strip_name_encoding): Declare.
6727         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
6728         * target.h (strip_name_encoding): New.
6729         * varasm.c (default_strip_name_encoding): New.
6731         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
6732         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
6733         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
6734         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
6735         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
6736         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
6737         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
6738         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
6739         config/v850/v850.h: Use the hook, not the macro.
6741         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6742         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
6743         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
6744         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
6745         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
6746         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
6747         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6748         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
6749         config/v850/v850.c, config/v850/v850.h:
6750         Move STRIP_NAME_ENCODING to out-of-line function and add
6751         TARGET_STRIP_NAME_ENCODING.
6753         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
6754         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
6755         with TARGET_STRIP_NAME_ENCODING referencing existing function;
6756         make function static.
6758         * xcoffout.c: Include target.h
6759         * Makefile.in (xcoffout.o): Update.
6761         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
6762         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
6763         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
6764         reloc argument unused.
6765         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
6767         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
6768         STRIP_NAME_ENCODING docs.
6770 2002-05-19  Andreas Jaeger  <aj@suse.de>
6772         * gengenrtl.c: Add prototype for excluded_rtx.
6774         * real.h: Add prototype for exact_real_truncate.
6776 2002-05-18  Richard Henderson  <rth@redhat.com>
6778         * system.h (ENCODE_SECTION_INFO): Poison it.
6779         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
6780         * target.h (encode_section_info): New.
6781         * varasm.c (make_decl_rtl, output_constant_def): Use it.
6782         * hooks.c (hook_tree_int_void): New.
6783         * hooks.h: Declare it.
6785         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6786         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
6787         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
6788         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
6789         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
6790         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
6791         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6792         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
6793         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6794         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6795         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
6796         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
6797         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
6798         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
6799         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
6800         referencing existing function.  Make function static.
6802         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
6803         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
6804         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
6805         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
6806         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
6807         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
6808         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
6809         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
6810         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
6811         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
6812         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
6813         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
6814         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
6815         Move ENCODE_SECTION_INFO to out-of-line function and add
6816         TARGET_ENCODE_SECTION_INFO.
6818         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
6819         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6821         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
6822         from SUBTARGET_*
6823         (switch_to_section): Replace in_rdata case with in_readonly_data.
6825         * config/h8300/h8300.c (h8300_encode_label): Make static.
6826         * config/h8300/h8300-protos.h: Update.
6828         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
6829         from rs6000_encode_section_info; make static.
6830         (rs6000_xcoff_encode_section_info): New.
6832         * config/v850/v850.c (v850_encode_data_area): Make static.
6833         * config/v850/v850-protos.h: Update.
6835         * config/vax/vax.c: Include flags.h.
6836         (vms_select_section): Fix typo.
6838         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
6839         ENCODE_SECTION_INFO docs.
6841 2002-05-18  Richard Henderson  <rth@redhat.com>
6843         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
6844         REGISTER_TARGET_PRAGMAS.
6845         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
6847         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
6849 2002-05-18  Richard Henderson  <rth@redhat.com>
6851         * system.h (SELECT_RTX_SECTION): Poison.
6852         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
6853         * target.h (select_rtx_section): New.
6854         * varasm.c (output_constant_pool): Use it.
6855         (default_select_rtx_section, default_elf_select_rtx_section): New.
6856         * output.h: Declare them.
6858         * config/darwin.h (SELECT_RTX_SECTION): Move ...
6859         * config/darwin.c (machopic_select_rtx_section): ... here.
6860         * config/darwin-protos.h: Update.
6862         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
6863         * config/nextstep.c (machopic_select_rtx_section): ... here.
6864         (nextstep_select_section): Rename variable to avoid macro clash.
6865         * config/nextstep-protos.h: Update.
6867         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
6868         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
6869         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
6870         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
6871         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
6872         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
6873         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
6874         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
6875         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
6876         (SELECT_RTX_SECTION): Remove.
6878         * config/darwin.h, config/elfos.h, config/nextstep.h,
6879         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
6880         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
6881         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
6882         config/sparc/lynx.h, config/xtensa/xtensa.c
6883         (TARGET_ASM_SELECT_RTX_SECTION): New.
6885         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
6886         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
6887         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
6888         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
6889         (ia64_aix_select_rtx_section): New.
6890         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
6891         redefining.
6892         * config/mips/mips.c (mips_select_rtx_section): Make static.
6893         Support ELF SHF_MERGE features.
6894         * config/mips/mips-protos.h: Update.
6895         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
6896         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
6897         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
6898         make static, fall back to default_elf_select_rtx_section.
6899         * config/rs6000/rs6000-protos.h: Update.
6900         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
6901         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
6902         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
6903         * config/romp/romp.c (romp_select_rtx_section): New.
6904         * config/s390/s390.c (s390_select_rtx_section): New.
6905         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
6906         declarations before target macro definition.
6907         (xtensa_emit_call): Use static buffer.
6908         (xtensa_select_rtx_section): New.
6909         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
6910         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
6911         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
6913         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
6914         SELECT_RTX_SECTION docs.
6916 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
6918         * i386.md (movsi/movdi): Fix template.
6919         (sse2 patterns): Set attributes consistently.
6921         * i386.md (pushqi2, ashrqi_*): Fix constraint.
6923 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
6925         * optabs.c (complex_part_zero_p): New.
6926         * (expand_cmplxdiv_straight): Use it.
6927         * (expand_cmplxdiv_wide): Ditto.
6928         * (expand_binop): Ditto.
6930 2002-05-18  Richard Henderson  <rth@redhat.com>
6932         * final.c (HAVE_READONLY_DATA_SECTION): New.
6933         (shorten_branches): Use it instead of ifdefs.
6934         * varasm.c (enum in_section): Add in_readonly_data.
6935         (text_section, data_section): Tidy.
6936         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
6938         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
6939         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
6940         (READONLY_DATA_SECTION): Don't undef.
6942         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
6943         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
6944         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
6946         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
6947         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
6948         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
6949         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
6951         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
6952         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
6953         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6954         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
6955         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
6956         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
6957         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
6958         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
6959         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
6961         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
6962         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
6963         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
6964         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
6965         config/pa/pa64-hpux.h, config/sparc/litecoff.h
6966         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6968         * config/elfos.h, config/netware.h, config/svr3.h,
6969         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6970         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6971         config/h8300/h8300.h, config/i386/i386-interix.h,
6972         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6973         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
6975         * config/elfos.h, config/netware.h, config/svr3.h,
6976         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6977         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
6978         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6979         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
6981         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
6982         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
6983         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
6984         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
6985         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
6986         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
6987         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
6988         config/rs6000/sysv4.h, config/v850/v850.h
6989         (EXTRA_SECTIONS): Remove in_const/in_rdata.
6990         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
6992         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
6993         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
6994         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
6995         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
6996         * config/alpha/alpha.c (alpha_start_function): Likewise.
6997         (alpha_write_linkage): Likewise.
6998         * config/m32r/m32r.c (m32r_select_section): Likewise.
6999         * config/m88k/m88k.c (m88k_select_section): Likewise.
7000         * config/mips/mips.c (mips_select_rtx_section): Likewise.
7001         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
7002         (rs6000_elf_select_section): Likewise.
7003         * config/v850/v850.c (v850_select_section): Likewise.
7005         * config/1750a/1750a.h, config/i860/sysv3.h
7006         (READONLY_DATA_SECTION_ASM_OP): New.
7007         READONLY_DATA_SECTION_ASM_OP.
7008         * config/i386/interix.c, config/i386/winnt.c
7009         (i386_pe_unique_section): Always use .rdata prefix.
7010         * config/pa/som.h (readonly_data): Always switch to read-only section.
7011         (READONLY_DATA_SECTION): Predicate on flag_pic.
7012         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
7013         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
7014         (READONLY_DATA_SECTION): Update.
7016 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
7018         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
7019         is used without -Wformat.
7020         * c-common.h (warn_format_zero_length): Declare extern.
7021         * c-decl.c (warn_options): Add "format-zero-length".
7022         * c-format.c (warn_format_zero_length): Declare.
7023         (set_Wformat): Set warn_format_zero_length for -Wformat.
7024         (check_format_info): Only warn about zero-length formats if
7025         warn_format_zero_length is true.  Include the format type
7026         name in the warning message.
7027         * doc/invoke.texi: Document -Wformat-zero-length.
7028         * testsuite/gcc.dg/format/zero-length-1.c: New test.
7030 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
7032         * timevar.c: Fix formatting.
7033         * tlink.c: Likewise.
7034         * toplev.c: Likewise.
7035         * tree-dump.c: Likewise.
7036         * tree-inline.c: Likewise.
7038 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
7040         * cppinit.c (cpp_post_options): If preprocessed, turn off
7041         traditional.  If traditional, turn off column numbers.
7042         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
7043         * cpptrad.c (handle_newline): Update line_base.
7044         (skip_comment): Handle -Wcomment.
7046 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
7048         * cppinit.c (struct builtin): Remove unused fields.
7049         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
7050         (operator_array): New - was second half of builtin_array.
7051         (init_builtins): Simplify loop over builtin_array/operator_array.
7053 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
7055         * defaults.h (UNIQUE_SECTION): Remove.
7056         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
7058 2002-05-17  Richard Henderson  <rth@redhat.com>
7060         * expr.c (init_expr_once): Don't use start/end_sequence.
7061         Use rtx_alloc instead of emit_insn.
7062         * toplev.c (lang_dependent_init): Run init_expr_once here ...
7063         (lang_independent_init): ... not here.
7065 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
7067         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
7069 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7071         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
7072         for fixed registers, possibly used for global register variables.
7073         (initial_elimination_offset, avr_output_function_prologue,
7074         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
7076 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7078         * Makefile.in: Update for cpptrad.c.
7079         * cpphash.h (struct cpp_buffer): New members for buffer
7080         overlays.
7081         (struct cpp_reader): New members for traditional output.
7082         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
7083         * cppinit.c (cpp_create_reader): Set trad_line.
7084         (cpp_destroy): Free trad_out_base if used.
7085         (cpp_read_main_file): Overlay an empty buffer if traditional.
7086         (cpp_finish_options): Don't do builtins.
7087         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
7088         (cpp_handle_option): Handle it.
7089         * cpplex.c (continue_after_nul): New.
7090         (_cpp_lex_direct): Use handle_nul.
7091         * cpplib.h (struct cpp_options): New traditional option.
7092         * cpptrad.c: New file.
7094 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7096         * c-common.c (c_common_init_options): Use C89 for Objective-C,
7097         and set the options flag.
7098         * cppinit.c (lang_flags): Remove objc.
7099         (lang_defaults): Remove OBJC and OBJCXX.
7100         (set_lang): Update.
7101         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
7102         (cpp_handle_option): Remove -+ and -lang-objc++.
7103         For ObjC, just set a flag.
7104         (print_help): Update.
7105         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
7107 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7109         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
7110         bootstrap with -mips3.
7112 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
7114         * final.c: Fix formatting.
7115         * fix-header.c: Likewise.
7116         * flow.c: Likewise.
7117         * fold-const.c: Likewise.
7118         * function.c: Likewise.
7120 2002-05-17  David S. Miller  <davem@redhat.com>
7122         PR c/6689, PR optimization/6615
7123         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
7124         and make it a pointer to rtx.  Update comments.
7125         (update_equiv_regs): When scanning for equivalences, record
7126         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
7127         it while making the equiv replacements.
7129 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7131         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
7133 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7135         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
7136         when encoding visibility into SYMBOL_REF_FLAG.
7138 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
7140         * expr.c (force_operand): Fix reversed move.
7142 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
7144         * doc/install.texi (Testing): Mention two common DejaGnu warnings
7145         that can be ignored.
7147 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7149         * doc/install.texi (Final install): Recommend to install into a
7150         "clean" target directory.
7152 2002-05-17  Richard Henderson  <rth@redhat.com>
7154         * config/ia64/ia64.md: Use braced strings instead of quoted strings
7155         for code blocks.  Tidy whitespace.
7157 2002-05-17  Richard Henderson  <rth@redhat.com>
7159         * hooks.c (hook_tree_bool_false): New.
7160         * hooks.h: Declare it.
7161         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
7162         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
7163         * target.h (select_section, unique_section): New.
7164         (in_small_data_p): New.
7165         * varasm.c (resolve_unique_section): Use hooks instead of macros.
7166         (variable_section, output_constant_def_contents): Likewise.
7167         (default_select_section, default_unique_section): New.
7168         (categorize_decl_for_section, default_elf_select_section): New.
7169         * output.h: Declare them.
7171         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
7172         (TARGET_ASM_SELECT_SECTION): New.
7173         (SELECT_SECTION): Move ...
7174         * config/darwin.c (machopic_select_section): ... here.
7175         * config/darwin-protos.h: Update.
7177         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
7178         (SELECT_SECTION): Move ...
7179         * config/nextstep.c (nextstep_select_section): ... here.
7180         * config/nextstep-protos.h: Update.
7182         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
7183         (TARGET_ASM_SELECT_SECTION): New.
7184         * config/svr3.h (SELECT_SECTION): Remove.
7186         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
7187         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
7188         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
7189         (alpha_encode_section_info): Use it.
7190         * config/alpha/alpha-protos.h: Update.
7191         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
7192         (SELECT_SECTION, UNIQUE_SECTION): Remove.
7193         (TARGET_ASM_SELECT_SECTION): New.
7194         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
7196         * config/arm/pe.h (UNIQUE_SECTION): Remove.
7197         (TARGET_ASM_UNIQUE_SECTION): New.
7199         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
7200         (avr_unique_section): Rename from unique_section; make static.
7201         * config/avr/avr-protos.h: Update.
7202         * config/avr/avr.h (UNIQUE_SECTION): Remove.
7204         * config/c4x/c4x.h (SELECT_SECTION): Remove.
7206         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
7207         (TARGET_ASM_UNIQUE_SECTION): New.
7208         * config/i386/i386-interix.h: Likewise.
7209         * config/i386/win32.h: Likewise.
7210         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
7211         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
7212         * config/i386/sco5.h (SELECT_SECTION): Remove.
7213         (TARGET_ASM_SELECT_SECTION): New.
7214         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
7216         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
7217         instead of SELECT_SECTION.
7218         * config/m68k/dpx2.h: Likewise.
7219         * config/rs6000/lynx.h: Likewise.
7221         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7222         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
7223         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
7224         (ia64_in_small_data_p): New.
7225         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
7226         (ia64_aix_select_section, ia64_aix_unique_section): New.
7227         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
7228         (SELECT_SECTION, UNIQUE_SECTION): Remove.
7230         * config/m32r/m32r.h (SELECT_SECTION): Remove.
7231         (TARGET_ASM_SELECT_SECTION): New.
7232         * config/m32r/m32r.c (m32r_select_section): Take align argument.
7233         * config/m32r/m32r-protos.h: Update.
7235         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
7236         (SELECT_SECTION): Move ...
7237         * config/m88k/m88k.c (m88k_select_section): ... here.
7239         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
7240         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
7241         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
7242         (mcore_unique_section): Make static.
7243         * config/mcore/mcore-protos.h: Update.
7245         * config/mips/elf.h (UNIQUE_SECTION): Remove.
7246         (TARGET_ASM_UNIQUE_SECTION): New.
7247         * config/mips/elf64.h: Likewise.
7248         * config/mips/iris6gld.h: Likewise.
7249         * config/mips/linux.h: Likewise.
7250         * config/mips/mips-protos.h: Update.
7251         * config/mips/mips.c (mips_select_section): Add align argument.
7252         * config/mips/mips.h (SELECT_SECTION): Remove.
7253         (TARGET_ASM_SELECT_SECTION): New.
7255         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7256         * config/mmix/mmix.c (mmix_select_section): Remove.
7257         (mmix_unique_section): Remove.
7258         * config/mmix/mmix-protos.h: Update.
7260         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
7261         (SELECT_SECTION): Move ...
7262         * config/pa/pa.c (pa_select_section): ... here.
7263         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
7265         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
7266         from rs6000_select_section and make static.
7267         (rs6000_elf_unique_section): Similarly.
7268         (rs6000_xcoff_select_section): From xcoff.h.
7269         (rs6000_xcoff_unique_section): Likewise.
7270         * config/rs6000/rs6000-protos.h: Update.
7271         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7272         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
7273         * config/rs6000/xcoff.h: Likewise.
7275         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
7276         (SELECT_SECTION): Move ...
7277         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
7279         * config/v850/v850.h (SELECT_SECTION): Move ...
7280         * config/v850/v850.c (v850_select_section): ... here.
7281         (TARGET_ASM_SELECT_SECTION): New.
7283         * config/vax/vms.h (SELECT_SECTION): Move ...
7284         * config/vax/vax.c (vms_select_section): ... here.
7285         (TARGET_ASM_SELECT_SECTION): New.
7287         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
7288         for the target hooks.
7290 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
7292         * config/arm/arm.c (emit_multi_reg_push): Do not set
7293         RTX_FRAME_RELATED_P on the SEQUENCE.
7295 2002-05-16  Richard Henderson  <rth@redhat.com>
7297         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
7298         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
7300 2002-05-16  Richard Henderson  <rth@redhat.com>
7302         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
7304         * config/ia64/ia64.c (saveable_obstack): Do not declare.
7306 2002-05-16  Richard Henderson  <rth@redhat.com>
7308         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
7309         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
7310         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
7311         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
7312         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
7313         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
7314         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
7315         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
7316         Revert "Basic block renumbering removal", and two followup patches.
7318 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
7320         * lcm.c (optimize_mode_switching): Revert previous change.
7322 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7324         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
7325         with only extant block numbers.
7327 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
7329         * lcm.c (optimize_mode_switching): Fix typo.
7331 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7333         * flow.c (calculate_global_regs_live): Queue blocks in program order.
7335 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7337         * doc/install.texi (Configuration): Document PWDCMD.
7339 2002-05-16  Dale Johannesen  <dalej@apple.com>
7341         * combine.c (cant_combine_insn_p):  Reenable combinations
7342         involving hard regs unless CLASS_LIKELY_SPILLED_P.
7344 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7346         * c-common.c (cb_register_builtins): Handle more built-ins
7347         here rather than in gcc.c specs.
7348         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
7349         (cpp_options): Pass -O flags even when only preprocessing.
7350         * toplev.c (set_fast_math_flags): New prototype.
7351         (fast_math_flags_set_p): New.
7352         (set_no_fast_math_flags): Remove.
7353         (decode_f_option): Update.
7354         * toplev.h (set_fast_math_flags): Update.
7355         (fast_math_flags_set_p): New.
7356         (set_no_fast_math_flags): Remove.
7357 config:
7358         * c4x/c4x.c (c4x_override_options): Update.
7360 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
7362         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
7363         Default-define here.
7364         (builtin_define_with_value): Can now wrap the expansion in
7365         quotation marks if such is wanted.
7366         (cb_register_builtins): Update calls to builtin_define_with_value.
7367         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
7368         here.
7369         (c_common_init): Set options->stdc_0_in_system_headers.
7370         * c-lex.h: Update prototype of builtin_define_with_value.
7371         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
7372         and REGISTER_PREFIX.
7374         * cppinit.c (VERS, ULP, C, X): Kill.
7375         (builtin_array): Remove entries for __VERSION__,
7376         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
7377         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
7378         a constant.
7379         (init_builtins): Kill off a bunch of now-dead code.
7380         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
7381         -fno-leading-underscore.
7382         (cpp_handle_option): Remove code to set user_label_prefix.
7383         (cpp_post_options): Likewise.
7385         * cpplib.h (struct cpp_options): Remove user_label_prefix.
7386         (stdc_0_in_system_headers): New.
7387         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
7388         stdc_0_in_system_headers) too to decide the value of __STDC__.
7390         * tradcpp.c (user_label_prefix): Kill.
7391         (main): Remove code handling -f(no-)leading-underscore.
7392         (initialize_builtins): Don't define __REGISTER_PREFIX__
7393         or __USER_LABEL_PREFIX__.
7394         (install_value): Wrap compound statement in dummy loop so the
7395         macro works properly in an if statement.
7398 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
7400         * loop.h (struct loop_info): Add member has_prefetch.
7401         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
7402         (prescan_loop): Initialize has_prefetch.
7403         (struct prefetch_info): Change prefetch_in_loop and
7404         prefetch_before_loop from bit fields to ints.
7405         (emit_prefetch_instructions): Several small fixes.
7406         (check_dbra_loop): Don't reverse loop that uses prefetch.
7408 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7410         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
7411         * configure.in: Likewise.
7412         * fixinc/check.tpl: Likewise.
7413         * fixinc/fixinc.dgux: Likewise.
7414         * fixinc/fixinc.svr4: Likewise.
7415         * fixinc/fixinc.winnt: Likewise.
7416         * fixinc/fixincl.sh: Likewise.
7417         * fixproto: Likewise.
7418         * configure: Regenerate.
7420 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7422         Basic block renumbering removal:
7423         * basic_block.h (struct basic_block_def): Renamed index to sindex,
7424         added prev_bb and next_bb fields.
7425         (n_basic_blocks): Renamed to num_basic_blocks.
7426         (last_basic_block): New, index of last basic block.
7427         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7428         traversing basic block chain.
7429         (BLOCK_NUM): index -> sindex.
7430         (create_basic_block_structure, create_basic_block): Declaration changed.
7431         (debug_num2bb): Declare.
7432         (expunge_block_nocompact): Declaration removed.
7433         (link_block, unlink_block, compact_blocks): Declare.
7434         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
7435         * cfg.c (entry_exit_blocks): Initialize new fields.
7436         (clear_edges, alloc_block, expunge_block, cached_make_edge,
7437         redirect_edge_pred, dump_flow_info, dump_edge_info,
7438         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
7439         free_aux_for_edges): Modified.
7440         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
7441         (expunge_block_nocompact): Removed.
7442         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
7443         find_unreachable_blocks, create_edge_list, print_edge_list,
7444         verify_edge_list, flow_edge_list_print, remove_fake_successors,
7445         remove_fake_edges, flow_reverse_top_sort_order_compute,
7446         flow_depth_first_order_compute, flow_preorder_transversal_compute,
7447         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
7448         flow_dfs_compute_reverse_execute): Modified.
7449         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
7450         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
7451         Modified.
7452         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7453         merge_blocks_move_predecessor_nojumps,
7454         merge_blocks_move_successor_nojumps, merge_blocks,
7455         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
7456         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
7457         * cfglayout.c (skip_insns_after_block, label_for_bb,
7458         record_effective_endpoints, scope_to_insns_finalize,
7459         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
7460         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
7461         cfg_layout_duplicate_bb): Modified.
7462         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
7463         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7464         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
7465         flow_loops_find, flow_loop_outside_edge_p): Modified.
7466         * cfgrtl.c (create_basic_block_structure, create_basic_block,
7467         flow_delete_block, compute_bb_for_insn, split_block,
7468         try_redirect_by_replacing_jump, redirect_edge_and_branch,
7469         force_nonfallthru_and_redirect, tidy_fallthru_edge,
7470         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
7471         commit_edge_insertions, commit_edge_insertions_watch_calls,
7472         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7473         purge_all_dead_edges): Modified.
7474         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
7475         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7476         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
7477         Modified.
7478         * conflict.c (conflict_graph_compute): Modified.
7479         * df.c (FOR_ALL_BBS): Removed.
7480         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7481         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
7482         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
7483         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
7484         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7485         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
7486         * final.c (compute_alignments, final_scan_insn): Modified.
7487         * flow.c (verify_local_live_at_start, update_life_info,
7488         update_life_info_in_dirty_blocks, free_basic_block_vars,
7489         delete_noop_moves, calculate_global_regs_live,
7490         initialize_uninitialized_subregs, allocate_bb_life_data,
7491         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
7492         mark_used_reg, count_or_remove_death_notes): Modified.
7493         * function.c (thread_prologue_and_epilogue_insns): Modified.
7494         * gcse.c (struct null_pointer_info): Change typo of current_block
7495         to basic_block.
7496         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
7497         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
7498         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
7499         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
7500         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
7501         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
7502         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
7503         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
7504         pre_delete, one_pre_gcse_pass, compute_transpout,
7505         invalidate_nonnull_info, delete_null_pointer_checks_1,
7506         free_code_hoist_mem, compute_code_hoist_vbeinout,
7507         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7508         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
7509         compute_store_table, build_store_vectors, insert_insn_start_bb,
7510         insert_store, replace_store_insn, free_store_memory, store_motion):
7511         Modified.
7512         * global.c (global_alloc, global_conflicts, mark_elimination,
7513         build_insn_chain): Modified.
7514         * graph.c (print_rtl_graph_with_bb): Modified.
7515         * haifa-sched.c (sched_init): Modified.
7516         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7517         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
7518         if_convert): Modified.
7519         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
7520         compute_insert_delete, pre_edge_lcm, compute_available,
7521         compute_farthest, compute_nearerout, compute_rev_insert_delete,
7522         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
7523         Modified.
7524         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
7525         * loop.c (loop_dump_aux): Modified.
7526         * predict.c (combine_predictions_for_insn, estimate_probability,
7527         last_basic_block_p, process_note_prediction, process_note_predictions,
7528         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
7529         expensive_function_p, estimate_bb_frequencies,
7530         compute_function_frequency): Modified.
7531         * print-rtl.c (print_rtx): Modified.
7532         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
7533         get_exec_counts, compute_branch_probabilities, compute_checksum,
7534         branch_prob, find_spanning_tree): Modified.
7535         * recog.c (split_all_insns, peephole2_optimize): Modified.
7536         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
7537         convert_regs_1, convert_regs_2, convert_regs): Modified.
7538         * regclass.c (scan_one_insn, regclass): Modified.
7539         * regmove.c (mark_flags_life_zones, regmove_optimize,
7540         combine_stack_adjustments): Modified.
7541         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
7542         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
7543         * reorg.c (dbr_schedule): Modified.
7544         * resource.c (find_basic_block, init_resource_info): Modified.
7545         * sbitmap.c (sbitmap_intersection_of_succs,
7546         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
7547         sbitmap_union_of_preds): Modified.
7548         * sched-deps.c (init_dependency_caches): Modified.
7549         * sched-ebb.c (schedule_ebbs): Modified.
7550         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
7551         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
7552         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
7553         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
7554         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
7555         ssa_const_prop): Modified.
7556         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
7557         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
7558         * ssa.c (remove_phi_alternative, find_evaluations,
7559         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
7560         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
7561         make_regs_equivalent_over_bad_edges,
7562         make_equivalent_phi_alternatives_equival,
7563         compute_conservative_reg_partition,
7564         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
7565         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
7566         Modified.
7568 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
7570         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
7572 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
7574         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
7575         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7576         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
7577         calling CONSTANT_POOL_ADDRESS_P.
7578         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
7579         to decide whether to define __arm__ or __thumb.
7580         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
7581         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7583 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7585         * config/arc/arc.h (CPP_PREDEFINES): Remove.
7586         (CPP_SPEC): Update.
7587         (TARGET_CPU_CPP_BUILTINS): New.
7589 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7591         * cpphash.h (cpp_macro): Move here, and make expansion a union.
7592         * cppmacro.c (cpp_macro): Remove.
7593         (enter_macro_context, replace_args, warn_of_redefinition,
7594         _cpp_create_definition, cpp_macro_definition): Update.
7596 2002-05-16  Jason Merrill  <jason@redhat.com>
7598         * config/mips/mips.c (mips_output_external): Don't do sdata
7599         optimization for a variable with DECL_COMDAT set.
7601 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7603         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
7604         Cleanups for accepting modifiers on pointers.
7605         Fix predicate typos.
7606         Allow long pointers as well as int pointers.
7608 2002-05-15  Richard Henderson  <rth@redhat.com>
7610         * varasm.c (merge_weak): Remove special case for extern and common.
7612 2002-05-15  Matt Hiller  <hiller@redhat.com>
7614         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
7615         XFAILing.
7616         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
7617         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
7618         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
7619         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
7620         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
7621         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
7623 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7625         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
7627 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7629         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
7630         ("altivec_mfvscr"): Read from VSCR.
7632         Add vscr sets for the following insns: altivec_vctuxs,
7633         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
7634         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
7635         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
7636         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
7637         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
7638         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
7639         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
7640         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
7641         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
7642         altivec_vsum2sws, altivec_vsumsws.
7644         * config/rs6000/rs6000.h: Add VSCR fixed register.
7645         (CALL_REALLY_USED_REGISTERS): Add vscr.
7646         (CALL_USED_REGISTERS): Same.
7647         (FIXED_REGISTERS): Same.
7648         (REG_ALLOC_ORDER): Same.
7649         (reg_class): Add VSCR_REGS.
7650         (REG_CLASS_NAMES): Same.
7651         (REG_CLASS_CONTENTS): Same.
7652         (VSCR_REGNO): New.
7653         (REGISTER_NAMES): Add vscr.
7654         (DEBUG_REGISTER_NAMES): Same.
7655         (ADDITIONAL_REGISTER_NAMES): Same.
7656         (FIRST_PSEUDO_REGISTER): Increment.
7657         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
7659 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
7661         * fold-const.c (fold): Fix a typo.
7663 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
7665         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
7666         comparison against the highest or lowest integer value before
7667         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
7668         transformation and that of an unsigned comparison against 0
7669         right after.
7671 2002-05-15  Richard Henderson  <rth@redhat.com>
7673         * varasm.c (merge_weak): Error for any weakening after definition.
7674         Adjust weakening after use warning to catch more cases.
7675         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
7676         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
7678 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
7680         * invoke.texi (-malign-double): Re-add lost warning.
7682         * i386-protos.h (x86_output_mi_thunk): Declare.
7683         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
7684         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
7686         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
7687         when flag_asynchronous_unwind_tables is set.
7689         * flags.h (flag_reorder_functions): Declare.
7690         * function.c (prepare_function_start): Initialize frequnecy.
7691         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
7692         * Makefile.in (predict.o): Add dependency on target.h and params.h
7693         * defaults.h (HOT_TEXT_SECTION_NAME,
7694         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
7695         * predict.c (choose_function_section): New function.
7696         (estimate_bb_frequencies): Use it.
7697         * toplev.c (flag_reorder_functions): New global variable.
7698         (lang_independent_options): New.
7699         (parse_options_and_default_flags): Set.
7700         * varasm.c (assemble_start_function): Bypass functdion alignment
7701         for never executed functions.
7702         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
7703         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
7704         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7705         Document.
7707         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
7709         * predict.c: Inlude profile.h
7710         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
7711         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
7712         Use the information about maximal counter in the program.
7714         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
7716         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
7717         probably_never_executed_bb_p): New functions.
7718         * cfgcleanup.c (outgoing_edges_match): Use them.
7719         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
7720         (maybe_hot_bb_p, probably_cold_bb_p,
7721         probably_never_executed_bb_p): New functions.
7723         * function.h (function): Add new field function_frequency.
7724         * predict.c (compute_function_frequency): New function.
7725         (estimate_probability): Call it.
7727 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
7729         PR optimization/5172, optimization/5200
7730         * gcse.c (gcse_main): Disable store_motion.
7732 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
7734         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
7735         (c_common_nodes_and_builtins): Use it.
7736         (builtin_define_with_value): New function.
7737         (cb_register_builtins): Define __SIZE_TYPE__,
7738         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
7739         using builtin_define_with_value.  Use consistent notation when
7740         defining __GXX_WEAK__.
7741         (WCHAR_TYPE_SIZE): Don't redefine.
7742         (combine_strings): Don't use WCHAR_TYPE_SIZE.
7744         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
7745         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
7746         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
7747         * tradcpp.c (initialize_builtins): Likewise.
7748         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
7750         * c-lex.h (builtin_define_with_value): Prototype.
7751         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
7752         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
7753         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
7755         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7756         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
7757         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
7758         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
7759         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
7760         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
7761         config/sparc/sol2-bi.h, config/sparc/sparc.h:
7762         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
7763         to __SIZE_TYPE__ etc from all spec strings. When this makes
7764         extra specs empty, delete them.
7766 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7768         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
7769         for PA8000 or generating dwarf2 call frame information.
7770         (output_call): Remove DO_FRAME_NOTES check from return pointer
7771         optimization.
7772         (following_call): Return 0 when scheduling for PA8000 or generating
7773         dwarf2 call frame information.  Revise comment.
7775 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7777 config/alpha:
7778         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
7779         and __IEEE_FP_INEXACT as appropriate.
7780         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
7781         (CPP_SPEC): Remove ieee defines.
7782         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
7784 2002-05-14  Richard Henderson  <rth@redhat.com>
7786         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
7787         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
7789 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7791         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
7792         (CPP_SPEC): Update.
7793         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
7794         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
7795         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
7796         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
7797         (EXTRA_SPECS): Update.
7798         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
7799         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
7800         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
7801         define TARGET_OS_CPP_BUILTINS if necessary.
7803 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7805         * gcc.c (cpp_options): Must pass -m* and -f* options
7806         to the front end even when only preprocessing.
7807         (cc1_options): Remove redundant -lang-c.
7808         * tradcpp.c (main): Ignore -m options.
7809 objc:
7810         * lang-specs.h: Similarly.
7812 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
7814         * genautomata.c (transform_3): Add code for transformation
7815         `(A,B,...)+C -> A+C,B,...'.
7817 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
7819         * final.c (end_final): Do not output profile_arcs constructor, when
7820         no functions are instrumented.
7822 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
7824         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
7826 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7828         * doc/install.texi: Remove special markup originally required for
7829         HTML generation with texi2html.
7831 2002-05-14  Andreas Schwab  <schwab@suse.de>
7833         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
7834         SELECT_SECTION.
7835         (UNIQUE_SECTION): Define to get small data correctly.
7837         * varasm.c (resolve_unique_section): Add third parameter
7838         flag_function_or_data_sections and use it instead of
7839         flag_function_sections.
7840         (assemble_start_function): Pass flag_function_sections.
7841         (asm_emit_uninitialised): Pass flag_data_sections.
7842         (assemble_variable): Likewise.
7844 2002-05-14  Richard Henderson  <rth@redhat.com>
7846         * config/i386/i386.md: Use define_constants for unspec numbers.
7847         * config/i386/i386.c: Likewise.
7849 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7851         * doc/contrib.texi: Update my entry.
7853 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
7855         * fixinc/inclhack.def (winidss_valist): Limit applicability.
7856         * fixinc/fixincl.x: Regenerated.
7857         * fixinc/tests/base/math.h: Update.
7858         * fixinc/tests/base/testing.h: Likewise.
7860 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
7862         * genattr.c (gen_attr): Don't emit a comma after the last
7863         enumerator.
7865 2002-05-13  Richard Henderson  <rth@redhat.com>
7867         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
7868         by non-local gotos.
7869         * recog.c (peephole2_optimize): Likewise.
7871 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
7873         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
7874         input to O_BINARY.
7876 2002-05-13  Jeffrey A Law  (law@redhat.com)
7878         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
7879         Update prototype and callers.
7880         (propagate_one_insn): Stack pointer adjustments kill MEMs on
7881         the mem_set_list which reference the stack pointer, as do
7882         calls to constant functions as they may clobber outgoing
7883         argument space.
7885         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
7887         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7888         (ia32_multipass_dfa_lookahead): New function.
7890 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7892         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
7893         (translate_options): Remove 'V'.
7894         (process_command): Similarly.
7895 doc:
7896         * invoke.texi: Remove documentation of 'V'.
7898 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7900         * config/s390/linux.h: Revert 2002-04-22 changes.
7902 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
7904         * config/fr30/fr30.md: Only allow splits of immediate loads
7905         if the destination is a register.
7907 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7909         * Makefile.in (c-common.o, cppinit.o): Update.
7910         * c-common.c: Include except.h.
7911         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
7912         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
7913         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
7914         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
7915         CPP_PREDEFINES): Handle here.
7916 config:
7917         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
7918         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
7919         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
7920         TARGET_OS_CPP_BUILTINS.
7921         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
7922         (CPP_SPEC, EXTRA_SPECS): Update.
7923         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
7924         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
7925         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
7926         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
7927         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
7928 doc:
7929         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
7930         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
7932 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7934         * emit-rtl.c (global_rtl): Update comment.
7935         (const_double_htab, const_double_htab_hash,
7936         const_double_htab_hash, lookup_const_double): New.
7937         (const_int_htab_hash, const_int_htab_eq): Remove const
7938         qualifiers, which cause tons of warnings with RTL checking on.
7939         (gen_rtx_CONST_DOUBLE): Deleted.
7940         (const_double_from_real_value): New function - bears some
7941         resemblance to the former immed_real_const_1.
7942         (immed_double_const): Moved here from varasm.c and
7943         simplified.
7944         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
7945         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
7946         (gen_rtx): Use immed_double_const.
7947         (init_emit_once): Initialize the const_double_htab.  Use
7948         REAL_VALUE_FROM_INT where possible.  Can now use
7949         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
7950         * varasm.c (struct varasm_status): Remove x_const_double_chain.
7951         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
7952         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
7953         (init_varasm_status, mark_varasm_status): Don't touch
7954         x_const_double_chain.
7956         * output.h: Delete prototype for clear_const_double_mem.
7957         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
7958         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
7959         const_double_from_real_value, not immed_real_const_1, and use
7960         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
7961         CONST_DOUBLE_ATOF.
7962         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
7963         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
7964         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
7965         (gen_rtx_REG): Second arg is unsigned.
7967         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
7968         (excluded_rtx): New, return true for CONST_DOUBLE.
7969         (genmacro): Write nothing for excluded codes.
7970         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
7971         * expr.c (expand_expr): Likewise.
7972         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
7973         CONST_DOUBLE_CHAIN.
7974         * toplev.c (rest_of_compilation): Don't call
7975         clear_const_double_mem.
7977         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
7978         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
7979         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
7980         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
7981         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
7982         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
7983         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
7984         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
7986 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7988         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
7990 2002-05-12  Tom Tromey  <tromey@redhat.com>
7992         * tree.h (copy_node): Don't mention TREE_PERMANENT.
7994 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7996         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
7997         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
7998         * gensupport.h: Prototype new routines.
7999         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
8000         use of printf.
8001         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
8002         (next_comma_elt): Use scan_comma_elt.
8004         * config/i386/i386.md: Use new attribute notation to break up
8005         long lines in define_attr forms.
8007 2002-05-12  Richard Henderson  <rth@redhat.com>
8009         * expr.c (compress_float_constant): New.
8010         (emit_move_insn): Use it.
8011         (float_extend_from_mem): New.
8012         (init_expr_once): Initialize it.
8013         * real.c (exact_real_truncate): New.
8015         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
8016         dropped into memory; penalize for size.
8017         (RTX_COSTS): FLOAT_EXTEND is free.
8018         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
8019         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
8021 2002-05-12  Richard Henderson  <rth@redhat.com>
8023         * profile.h (profile_info): Add missing extern to declaration.
8024         * profile.c (profile_info): Define it.
8026 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8028         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
8029         used for DImode and TImode.
8031 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8033         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
8034         fake a newline.
8036 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
8038         * config/rs6000/rs6000.c (rs6000_default_long_calls,
8039         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
8040         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
8041         (rs6000_override_options): Handle -m(no-)longcall.
8042         (init_cumulative_args, output_mi_thunk): Check for both
8043         longcall and shortcall attributes on the function.
8044         (rs6000_attribute_table): Add "shortcall".
8045         (rs6000_handle_longcall_attribute): Update comment.
8046         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
8047         altivec_expand_ternop_builtin): Add default clauses to switches
8048         to silence warnings.
8050         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
8051         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
8052         (TARGET_OPTIONS): Add longcall and no-longcall.
8054         * config/rs6000/rs6000.md (call_nonlocal_sysv,
8055         call_value_nonlocal_sysv): Split by alternatives.  One pair
8056         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
8057         the call cookie.  The other pair accepts only LR/CTR and has
8058         no restriction.
8060         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
8061         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
8062         tmake_file.
8063         * config/rs6000/rs6000-c.c: New file.
8064         * config/rs6000/t-rs6000-c-rule: New file.
8065         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
8066         Prototype rs6000_pragma_longcall.
8068         * doc/extend.texi: Document shortcall attribute.
8069         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
8071 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8073         * reorg.c (dbr_schedule): Remove unnecessary test.
8075 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
8077         * i386.md (testsi to testqi spliters): New.
8079         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
8081         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
8083         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
8085         * basic-block.h: New flag EDGE_CAN_FALLTHRU
8086         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
8087         that can be made fallthru.
8089         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
8091         * cfglayout.c (cleanup_unconditional_jumps): New static function.
8092         (cfg_layout_initialize): Use it.
8094 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8096         * config/avr/avr.c (avr_mcu_types): Update supported devices.
8097         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
8098         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
8100 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
8102         * dbxout.c: Fix formatting.
8103         * dependence.c: Likewise.
8104         * df.c: Likewise.
8105         * diagnostic.c: Likewise.
8106         * doloop.c: Likewise.
8107         * dominance.c: Likewise.
8108         * doschk.c: Likewise.
8109         * dwarf2asm.c: Likewise.
8110         * dwarf2out.c: Likewise.
8111         * dwarfout.c: Likewise.
8113 2002-05-10  Richard Henderson  <rth@redhat.com>
8115         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
8116         Convert integers constants as needed.  Replace "nwords" field with
8117         "sizeof_bb".
8118         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
8119         * function.h: Fix typo in comment.
8120         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
8122 2002-05-10  Roger Sayle  <roger@eyesopen.com>
8124         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
8125         into the equivalent (signed char)c > 0.
8127 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
8129         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
8130         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
8131         (struct prefetch_info): Fix spelling of member bytes_accessed.
8132         (emit_prefetch_instructions): Make dump messages more regular;
8133         restructure code to add more dump messages; use new macros for
8134         heuristics. (There are no code generation changes in any of this).
8136 2002-05-10  David S. Miller  <davem@redhat.com>
8138         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
8139         (struct rtx_def): Update unchanging flag comment.
8140         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
8141         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
8142         to be handled to INSN too.
8143         (dbr_schedule): Likewise.
8144         * resource.c (next_insn_no_annul): Likewise.
8146         * cse.c (rtx_cost): Remove multiplication by power of 2 special
8147         casing.
8149 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8151         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
8152         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
8153         (possibly) work around broken /bin/sh.
8155 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8157         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
8158         . as N64/N32 libgcc_s.so subdirs.
8160 2002-05-10  David S. Miller  <davem@redhat.com>
8162         * config/sparc/sparc.md: Use define_constants for unspec numbers.
8164         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
8165         more accurately.
8166         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
8167         comment.
8168         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
8169         * doc/rtl.texi: Document these macros more accurately.
8170         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
8171         JUMP_INSNs and CALL_INSNs.
8172         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
8173         or INSN_FROM_TARGET_P if the code is appropriate.
8175 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8177         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
8178         before using SYMBOL_REF_FLAG (addr).
8180         * config/avr/avr-protos.h (avr_io_address_p): Declare.
8181         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
8182         Make non-static.  Update all callers.
8183         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
8184         New insns to clear/set/test a single bit in I/O address space.
8186 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8188         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
8190 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8192         * Makefile.in: Update.
8193         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
8194         builtin_define_std): New.
8195         (c_common_init): Register CPP builtins callback.
8196         * c-common.h (flag_iso, flag_undef): New.
8197         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
8198         * c-lex.c: Don't include target.h.
8199         (cb_register_builtins): Move to c-common.c.
8200         (init_c_lex): Don't register hook here.
8201         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
8202         (cpp_define, cpp_assert): Remove.
8203         * gcc.c (cc1_options): Pass -undef to front end.
8204         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
8205         (TARGET_INITIALIZER): Update.
8206         * target.h (struct cpp_reader): Don't predeclare.
8207         (struct gcc_target): Remove cpp builtin hook.
8208         * tree.c (default_register_cpp_builtins): Remove.
8209 doc:
8210         * tm.texi: Update.
8212 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8214         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
8216 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8218         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
8219         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
8221 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
8223         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
8224         * config/sparc/libgcc-sparc-glibc.ver: New file.
8225         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
8226         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
8228 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
8230         PR target/6429
8231         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
8232         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
8233         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
8234         base multilibs.
8235         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
8236         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
8237         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
8238         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
8240 2002-05-09  Richard Henderson  <rth@redhat.com>
8242         * config/ia64/ia64.md: Use define_constants for unspec numbers.
8243         * config/ia64/ia64.c: Likewise.
8245 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
8247         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
8248         (save_restore_insns): Likewise.
8249         (mips_expand_prologue, mips_expand_epilogue): Update callers.
8250         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
8252 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
8254         * athlon.md, k6.md, pentium.md, ppro.md): New files.
8255         * i386.md: Move scheduling information into new files.
8257         * i386.md (type attribute): Add "rotate" for rotate insns.
8258         (rotate insns): Set type to "rotate".
8259         (various attributes and function units): Treat rotate like shift.
8260         (pent_pair attribute): Only rotates by one bit position are
8261         pairable.
8262         (sbb insns): Explicitly set pent_pair attribute on a couple
8263         that were missing it.
8265 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
8267         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
8268         make sure that buffer starts on odd word address.
8269         (sh_va_arg): Skip odd fp registers when reading a double precision
8270         value.
8272 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8274         * tree.h (preserve_data, object_permanent_p, type_precision):
8275         Remove.
8277 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8279         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
8280         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
8281 doc:
8282         * cpp.texi: Update for removal of obsolete features.
8284 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
8285                           Jeffrey A Law  (law@redhat.com)
8287         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
8288         the DFA interface for Pentium processors.
8289         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
8290         (attr_pent_pair, ix86_pent_find_pair): Remove.
8291         (ix86_sched_reorder_pentium): Remove.
8292         (ix86_sched_reorder): Remove reordering for Pentium.
8293         * i386.md (Pentium scheduling): Rewrite using DFA description.
8295 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
8297         * cfganal.c (can_fallthru): Fix fast path.
8298         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
8299         with edges to the next block.
8301 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
8302                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
8304         * final.c (end_final): Use C trees to output data structures for profiling.
8306         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
8307         (profile.o): New dependency profile.h
8308         (final.o): New dependency profile.h
8309         * profile.h: New file. New global structure profile_info.
8310         * final.h (count_edges_instrumented_now): Declare.
8311         (current_function_cfg_checksum): Declare.
8312         (function_list): New structure.
8313         (functions_head, functions_tail): New static variables.
8314         (end_final): Emits more data, removed some -ax stuff.
8315         (final): Stores function names and chcksums.
8316         * gcov-io.h (__write_gcov_string): New function.
8317         (__read_gcov_string): New function.
8318         * gcov.c (read_profile): New function.
8319         (create_program_flow_graph): Uses read_profile instead of reading
8320         da_file.
8321         (read_files): Removed da_file checking, it's done by read_profile now.
8322         * libgcc2.c (bb_function_info): New structure.
8323         (bb): New field in structure, removed some -ax stuff.
8324         (__bb_exit_func): Changed structure of da_file.
8325         * profile.c (count_edges_instrumented_now): New global variable.
8326         (current_function_cfg_checksum): New global variable.
8327         (max_counter_in_program): New global variable.
8328         (get_exec_counts): New function.
8329         (compute_checksum): New function.
8330         (instrument_edges): Sets count_edges_instrumented_now.
8331         (compute_branch_probabilities): Uses get_exec_counts instead of
8332         reading da_file.
8333         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
8334         (init_branch_prob): Removed da_file checking, done in get_exec_counts
8335         now.
8336         (end_branch_prob): Removed da_file checking, done in get_exec_counts
8337         now.
8338         * gcov.texi: Updated information about gcov file format.
8340 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
8342         * sbitmap.c: Fix formatting.
8343         * scan.c: Likewise.
8344         * scan-decls.c: Likewise.
8345         * sched-deps.c: Likewise.
8346         * sched-ebb.c: Likewise.
8347         * sched-rgn.c: Likewise.
8348         * sched-vis.c: Likewise.
8349         * sdbout.c: Likewise.
8350         * sibcall.c: Likewise.
8351         * simplify-rtx.c: Likewise.
8352         * ssa.c: Likewise.
8353         * ssa-ccp.c: Likewise.
8354         * ssa-dce.c: Likewise.
8355         * stmt.c: Likewise.
8356         * stor-layout.c: Likewise.
8357         * stringpool.c: Likewise.
8359 2002-05-09  David S. Miller  <davem@redhat.com>
8361         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
8363 2002-05-07  David S. Miller  <davem@redhat.com>
8365         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
8366         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
8367         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
8368         library implementation clobbers the output before the inputs
8369         are fully consumed, use stack temporary for the output.
8371 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
8373         * config/netbsd.h (CPP_SPEC): Remove.
8374         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
8375         * config/i386/netbsd.h (CPP_SPEC): Define.
8376         * config/ns32k/netbsd.h (CPP_SPEC): Define.
8377         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
8378         * config/sparc/netbsd.h (CPP_SPEC): Define.
8379         * config/vax/netbsd.h (CPP_SPEC): Define.
8381 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
8383         * read-rtl.c: Fix formatting.
8384         * real.c: Likewise.
8385         * recog.c: Likewise.
8386         * regclass.c: Likewise.
8387         * regmove.c: Likewise.
8388         * reg-stack.c: Likewise.
8389         * reload1.c: Likewise.
8390         * reload.c: Likewise.
8391         * resource.c: Likewise.
8392         * rtlanal.c: Likewise.
8393         * rtl.c: Likewise.
8394         * rtl-error.c: Likewise.
8396 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8398         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
8399         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
8401 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
8403         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
8404         use __SSE2__ macro instead.
8405         * config/i386/xmmintrin.h: Likewise.
8407 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
8409         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
8410         and use it in all invocations of these macros.  Clean up comments.
8411         * rtl.c (rtl_check_failed_flag): Add an argument for the name
8412         of the flag access macro whose check failed.
8413         * doc/rtl.texi (Flags): Document additional flag uses.
8415 2002-05-08  Robert Spier <rspier@pobox.com>
8416             Neil Booth  <neil@daikokuya.demon.co.uk>
8418         PR preprocessor/6521
8419         * cppfiles.c (handle_missing_header): Don't do anything
8420         different for <> includes.
8421 doc:
8422         * cppopts.texi: Update documentation for -MG.
8424 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8426         * cpplex.c (cpp_interpret_charconst): Truncate as well as
8427         sign-extend.
8428 doc:
8429         * cpp.texi: Clarify multichar charconst valuation.
8431 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
8433         * doc/invoke.texi: Document -mwindiss option.
8435 2002-05-08  Jason Merrill  <jason@redhat.com>
8437         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
8439         * dwarf2out.c (gen_type_die): Abort on broken recursion.
8441         PR c++/6381
8442         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
8443         REAL_CST.
8445 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
8447         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
8448         little-endian multilibs to override arm/thumb multilibs.
8449         Do not build hardware floating point multilibs, nor apcs-26
8450         multilibs for the Thumb.
8452 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
8454         PR c/6569.
8455         * varasm.c (mark_weak): New function.
8456         (merge_weak): Use it.  Do not call declare_weak.
8457         (declare_weak): Use merge_weak.
8459 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8461         * cse.c (dead_libcall_p): Update counts.
8462         (delete_trivially_dead_insns): Update call of dead_libcall_p.
8464 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
8466         * cfglayout.c (function_tail_eff_head): Rename to ...
8467         (function_footer): ... this one.
8468         (unlink_insn_chain): New functions.
8469         (label_for_bb): Only call block_label and emit debug message.
8470         (record_effective_endpoints): Actually unlink the headers and footers.
8471         (fixup_reorder_cahin): Re-insert the unlinked sequences.
8472         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
8473         * cfglayout.h (struct reorder_block_def): New fields footer/header;
8474         remove eff_head/eff_end.
8475         * rtl.h (set_first_insn): Declare.
8476         * emit-rtl.c (set_first_insn): New function.
8478         * cfglayout.c (fixup_reorder_chain): Dump duplicated
8479         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8480         cfg_layout_duplicate_bb): New global function.
8481         (duplicate_insn_chain): New static function.
8482         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8483         cfg_layout_duplicate_bb): Declare.
8484         (struct reorder_block_def): Add "original" field.
8485         * emit-rtl.c (emit_copy_of_insn_after): New function.
8486         * rtl.h (emit_copy_of_insn_after): Declare.
8488         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
8489         (fixup_reorder_chain): properly handle edges to exit block.
8491 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8492                                Jan Hubicka  <jh@suse.cz>
8494         * basic-block.h (note_prediction_to_br_prob): declare.
8495         * c-semantics.c: Inlucde predit.h
8496         (expand_stmt): predict GOTO_STMT as not taken.
8497         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
8498         (cleanup_cfg): Do not free tail_recursion_list.
8499         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
8500         (flow_delete_block): Kill predictions past end of basic block.
8501         * output.h (delete_unreachable_blocks): Declare.
8502         * predict.c (predicted_by_p, process_note_predictions,
8503         process_note_prediction, last_block_p): New function.
8504         (estimate_probability): Bypass loop on PRED_CONTINUE;
8505         do not handle noreturn heuristics; kill PRED_RETURN; add
8506         PRED_EARLY_RETURN.
8507         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
8508         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
8509         * predict.h (IS_TAKEN): New constant.
8510         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
8511         * rtl.c (NOTE_INSN_PREDICTION): New.
8512         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
8513         New macro.
8514         (insn_note): add NOTE_INSN_PREDICTION.
8515         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
8516         CFG; free tail_recursion_label_list.
8517         * stmt.c: Include predict.h;
8518         (return_prediction): New.
8519         (expand_value_return): Use it.
8520         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
8522 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
8524         * config/mips/mips.md: Name the unspecs with define_constant.
8525         (*HILO_delay): Rename to 'hilo_delay' (no star).
8526         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
8527         (reload_outdi, reload_outsi): Likewise.
8529 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
8531         * toplev.c: Fix formatting.
8533 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
8535         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
8536         * configure.in (ac_rtlflag_checking): New.
8537         * doc/install.texi (--enable-checking): Document RTL flag checking.
8539 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8541         * c-common.c (c_common_init): Set options->unsigned_wchar.
8542         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
8543         group target dependencies.
8544         (init_builtins, cpp_handle_option): Update.
8545         * cpplex.c (cpp_interpret_charconst): Update.
8546         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
8547         signed_char to unsigned_char, group target dependencies.
8548         * defaults.h (WCHAR_UNSIGNED): Remove.
8549         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
8550 config:
8551         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
8552         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
8553         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
8554         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
8555         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
8556 doc:
8557         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
8559 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8561         * fixinc/inclhack.def (windiss_math1): New fix.
8562         (windiss_math2): Likewise.
8563         (windiss_valist): Likewise.
8564         * fixinc/fixincl.x: Regenerated.
8566 2002-05-07  Andreas Jaeger  <aj@suse.de>
8568         * genautomata.c (output_internal_min_issue_delay_func): Add
8569         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
8570         (output_internal_trans_func): Likewise.
8572 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
8574         * pa.c (hppa_profile_hook): Use force_reg to get the address
8575         of the profile hook into an appropriate pseudo register.
8577 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8579         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
8580         (LINK_START_SPEC): Handle it.
8581         (LINK_OS_SPEC): Likewise.
8582         (CPP_SPEC): Likewise.
8583         (STARTFILE_SPEC): Likewise.
8584         (LIB_SPEC): Likewise.
8585         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
8586         all platforms.
8587         (CRTSAVRES_DEFAULT_SPEC): New macro.
8588         (LIB_WINDISS_SPEC): New macro.
8589         (CPP_OS_WINDISS_SPEC): Likewise.
8590         (STARTFILE_WINDISS_SPEC): Likewise.
8591         (ENDFILE_WINDISS_SPEC): Likewise.
8592         (LINK_START_WINDISS_SPEC): Likewise.
8593         (LINK_OS_WINDISS_SPEC): Likewise.
8594         * config/rs6000/windiss.h: New file.
8596 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
8598         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
8600 2002-05-06  David S. Miller  <davem@redhat.com>
8602         * config/sparc/sparc.md (shift insns): Do not mask off
8603         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
8604         take care of it.
8606 2002-05-06  Richard Henderson  <rth@redhat.com>
8608         PR c++/6212
8609         * expr.c (highest_pow2_factor_for_type): New.
8610         (expand_assignment): Use it.
8612 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
8614         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
8615         unspec_volatile.
8616         ("altivec_mfvscr"): Same.
8618 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8620         * rtl.h (struct rtx_def): Update comments.
8621         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
8622         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
8623         RTL_FLAG_CHECK macros with list of expected RTL codes.
8624         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
8625         (rtl_check_failed_flag): New.
8626         * reload1.c (reload): Use REG macro before changing rtx to MEM.
8627         (reload_cse_noop_set_p): Check rtx code before using access macro.
8628         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
8629         before using access macro.
8631 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8633         * doc/rtl.texi (Flags): Update to reflect current usage.
8635 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8637         PR opt/3995
8638         * fold-const.c (sign_bit_p): New function.
8639         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
8640         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
8641         Reapply fold when converting (A & C) == C into (A & C) != 0.
8642         (fold_binary_op_with_conditional_arg): Fix typo in comment.
8644 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8646         * c-common.c (warn_multichar): New.
8647         (c_common_init): Set CPP's warn_multichar.
8648         * c-common.h (warn_multichar): New.
8649         * c-decl.c (warn_multichar): Remove.
8650         * c-lex.c (lex_charconst): Update.
8651         * c-tree.h (warn_multichar): Remove.
8652         * cppexp.c (eval_token): Sign-extend charconst value.
8653         * cppinit.c (cpp_create_reader): Set warn_multichar.
8654         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
8655         each character.  Update prototype.  Sign-extend the result.
8656         * cpplib.h: Fix conditions.
8657         (struct cpp_options): Add new warning flag.
8658         (cpp_interpret_charconst): Update prototype.
8659 doc:
8660         * cpp.texi: Update documentation.
8662 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
8664         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
8665         Fix typo in usage of allof instead of unit.
8667 2002-05-06  Richard Henderson  <rth@redhat.com>
8669         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
8670         and any jump or call for IN.
8672 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
8674         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
8675         -msse2.
8676         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
8678 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8680         * fold-const.c (lshift-double): Cast the high word to an unsigned
8681         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
8682         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
8683         avoid compiler warning.  (fold): Remove redundant code from
8684         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
8686 2002-05-06  Jeff Law  <law@redhat.com>
8688         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
8689         * pa.c (pa_adjust_cost): Remove all true dependency cost
8690         adjustments.  Also remove support for non-DFA scheduling.
8691         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
8692         to adjust true dependency costs.  Update various comments.
8693         (7100lc, 7200, 7300 scheduling): Simplify by combining the
8694         FP ALU & MPY units into a single unit.
8696 2002-05-06  Catherine Moore  <clm@redhat.com>
8698         * config/v850/v850.c (compute_register_save_size): Make sure
8699         to count all of the registers that will be saved.
8701 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8703         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
8705 2002-05-06  David S. Miller  <davem@redhat.com>
8707         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
8708         allow result to overlap input operands in memory.
8710 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8712 doc:
8713         * cpp.texi: Update multichar charconst docs.
8715 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8717         * cpplex.c (cpp_interpret_charconst): Sign-extend each
8718         character.  Don't ignore excess characters.  Treat
8719         multicharacter character constants as signed.
8720         (cpp_parse_escape): Clarify diagnostic.
8722 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8724         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
8725         use add instead of shift.
8726         (ashldi3_sp64): Likewise.
8727         (ashlsi3_const1, ashldi3_const1): Remove.
8728         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
8729         * config/sparc/sparc.c (const1_operand): New.
8731 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
8733         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
8735 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8737         PR target/6561
8738         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
8740 2002-05-05  Richard Henderson  <rth@redhat.com>
8742         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
8743         memory latency adjustments.
8744         (alpha_variable_issue): Remove.
8745         (alpha_use_dfa_pipeline_interface): New.
8746         (alpha_multipass_dfa_lookahead): New.
8747         * config/alpha/alpha.md: Remove define_function_unit scheduling;
8748         include new dfa scheduling.
8749         (attr type): Add none.
8750         (blockage): Use it.
8751         * config/alpha/ev4.md: New.
8752         * config/alpha/ev5.md: New.
8753         * config/alpha/ev6.md: New.
8755 2002-05-05  David S. Miller  <davem@redhat.com>
8757         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
8759 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
8761         * cse.c: Fix formatting.
8762         * emit-rtl.c: Likewise.
8764 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8766         * genautomata.c (initiate_states): Add additional guard to
8767         initialize `units_array'.
8769 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8771         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
8772         process_unit_to_form_the_same_automaton_unit_lists,
8773         form_the_same_automaton_unit_lists
8774         check_unit_distributions_to_automata): New prototypes and
8775         functions.
8776         (check_automata): Rename it into `check_automata_insn_issues'.
8777         (unit_decl): New fields `the_same_automaton_unit' and
8778         `the_same_automaton_message_reported_p'.
8779         (unit_decl_t): New typedef.
8780         (the_same_automaton_lists): New gloval variable.
8781         (unit_regexp, unit_set_el, units_array, units_cmp,
8782         output_get_cpu_unit_code_func): Use the typedef.
8783         (evaluate_max_reserv_cycles): Increment
8784         `description->max_insn_reserv_cycles'.
8785         (initiate_states): Don't increment `max_cycles_num'.
8786         (transform_insn_regexps): Move code around transformation of
8787         regexps from `generate'.
8788         (generate): Remove call of `transform_insn_regexps'.
8789         (expand_automata): Call `transform_insn_regexps' and
8790         `check_unit_distributions_to_automata'.  Check errors before
8791         `generate'.
8793         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
8794         automaton `ultrasparc3_1'.
8796 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8798         * c-common.c (c_common_init): Set up CPP arithmetic.
8799         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
8800         something reasonable for the host.
8801         (sanity_checks): Add checks.
8802         (cpp_read_main_file): Call sanity_checks() from here...
8803         (cpp_post_options): ... not here.
8804         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
8805         * cpplib.h (struct cpp_options): New member int_precision.
8807 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8809         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
8811 2002-05-04  David S. Miller  <davem@redhat.com>
8813         * config/sparc/linux.h, config/sparc/linux64.h
8814         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
8816         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
8817         more RTX codes.
8818         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
8820         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
8821         of SETs.
8823 2002-05-05  Tim Josling  <tej@melbpc.org.au>
8825         * treelang; New directory for new sample language treelang.
8827 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8829         * Makefile.in (c-lex.o): Update.
8830         * c-lex.c: Include target.h.
8831         (cb_register_builtins): New.
8832         (init_c_lex): Set builtins callback.
8833         * c-lex.h (cpp_define, cpp_assert): New prototypes.
8834         * cppinit.c (init_builtins): Use callback, including for
8835         GXX_WEAK.
8836         * cpplib.h (struct cpp_callbacks): New member.
8837         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
8838         (TARGET_INITIALIZER): Update.
8839         * target.h (struct gcc_target): New hook.
8840         * tree.c (default_register_cpp_builtins): New.
8841         * tree.h (default_register_cpp_builtins): New.
8842 doc:
8843         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
8845 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8847         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
8848         (cpp_post_options): Move sanity checks to...
8849         (sanity_checks): New.
8850         * cpplex.c (maybe_read_ucs): Fix prototype.
8851         (parse_string, cpp_parse_escape): Cast for %c format specifier.
8852         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
8853         if necessary.
8855 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
8857         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
8858         builtins.  Use V2DI patterns instead of TI for logical operations.
8859         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
8860         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
8861         (ix86_expand_builtins): Change the pattern used for movntdq.
8862         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
8863         sse2_nandv2di3): New patterns.
8864         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
8865         on operands.
8866         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
8867         (cvtdq2pd): Correct mode on operand 1.
8868         (sse2_umulsidi3): Describe without unspec.
8869         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
8870         machine modes.
8871         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
8872         (ashlv2di3): Likewise, from sse2_ashlv2di3.
8873         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
8874         ashlv4si3, ashlv2di3): Use SImode for shift count.
8875         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
8876         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
8877         New patterns.
8878         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
8879         New typedefs.
8880         (__m128i, __m128d): New macros.
8881         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
8882         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
8883         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
8884         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
8885         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
8886         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
8887         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
8888         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
8889         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
8890         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
8891         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
8892         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
8893         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
8894         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
8895         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
8896         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
8897         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
8898         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
8899         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
8900         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
8901         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
8902         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
8903         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
8904         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
8905         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
8906         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
8907         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
8908         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
8909         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
8910         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8911         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
8912         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
8913         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
8914         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
8915         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
8916         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
8917         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
8918         functions.
8919         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
8920         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
8922 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
8924         * dwarf2out.c: Fix formatting.
8925         * varasm.c: Likewise.
8927 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
8929         PR c/6543
8930         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
8931         clobber and use result as temporary value.
8933 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
8935         * expr.c (force_operand): Use expand_simple_* to handle more
8936         cases.
8938 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8940         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
8941         and sign-extension.
8942         (lex_charconst): Update for change in prototype of
8943         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
8944         appropriately.
8945         * cpphash.h (BITS_PER_CPPCHAR_T): New.
8946         * cppinit.c (cpp_create_reader): Initialize them for no
8947         change in semantics.
8948         (cpp_post_options): Add sanity checks.
8949         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
8950         and truncation issues.  Calculate in type cppchar_t.
8951         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
8952         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
8953         run-time dependent precision correctly.  Return whether the
8954         result is signed or not.
8955         * cpplib.c (dequote_string): Use cppchar_t; update.
8956         * cpplib.h (cppchar_signed_t): New.
8957         struct cpp_options): New precision members.
8958         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
8959         * cppexp.c (eval_token): Update.
8961 2002-05-03  David S. Miller  <davem@redhat.com>
8963         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
8964         * config/sparc/sparc.c (sparc_rtx_costs): New function
8965         implementing RTX_COSTS and CONST_COSTS.
8966         * config/sparc/sparc.h (CONST_COSTS): Delete.
8967         (RTX_COSTS_CASES): Define.
8968         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
8969         the work.
8971         * config/sparc/sparc.md (DFA schedulers): Split out...
8972         * config/sparc/cypress.md, config/sparc/hypersparc.md,
8973         config/sparc/sparclet.md, config/sparc/supersparc.md,
8974         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
8976         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
8977         checks on it, always defined for Sparc.
8979         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
8980         Tweak, and add more detailed comments.
8982 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
8984         * Re-apply patch accidentally reverted with
8985         DFA scheduler merge: remove all rules and variables to slurp
8986         source files out of libiberty and rebuild them with HOST_CC.
8987         ($(HOST_PREFIX_1)varray.o): New rule.
8988         (genattrtab rule): Word wrap.
8990 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8992         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
8993         (CPP_SUBTARGET_SPEC): Define.
8994         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
8995         cpp_subtarget specs.
8996         (CPP_SPEC): Redefine to include %(cpp_subtarget).
8998 2002-05-03  David S. Miller  <davem@redhat.com>
9000         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
9001         * target.h (struct gcc_target): Delete cycle_display member.
9003         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
9004         (rtx_needs_barrier): Delete reference to cycle_display unspec.
9005         (ia64_sched_reorder2): Mention need for cycle display handling
9006         once such notes exist.
9008 2002-05-03  Richard Henderson  <rth@redhat.com>
9010         * real.c (etoasc): Strip most trailing zeros for clarity.
9011         * sched-vis.c: Include real.h.
9012         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
9013         * Makefile.in (sched-vis.o): Add real.h.
9015 2002-05-03  David S. Miller  <davem@redhat.com>
9017         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
9018         no longer needed.
9020 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
9022         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
9023         when we get an out of range literal.
9024         (altivec_expand_ternop_builtin): Same.
9025         (altivec_expand_unop_builtin): Same.
9026         (altivec_expand_builtin): Same, for dss.
9027         (altivec_expand_builtin): Use trees instead of rtl when
9028         determining literal argument validity.
9030 2002-05-03  David S. Miller  <davem@redhat.com>
9032         Delete cycle display scheduling hook.
9033         * config/ia64/ia64.c (ia64_cycle_display,
9034         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
9035         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
9036         and use emit_insn_before instead of ia64_emit_insn_before.
9037         * config/ia64/ia64.md (unspec usage): Delete cycle display.
9038         (cycle_display): Delete insn pattern.
9039         * config/sparc/sparc.md (unspec usage): Delete cycle display.
9040         (cycle_display): Delete insn pattern.
9041         * config/sparc/sparc.c (sparc_cycle_display,
9042         TARGET_SCHED_CYCLE_DISPLAY): Delete.
9043         * doc/md.texi (cycle_display): Don't mention.
9044         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
9046 2002-05-03  Richard Henderson  <rth@redhat.com>
9048         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
9049         * recog.h: Declare them.
9051         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
9052         * config/sparc/sparc.md: Use store_data_bypass_p instead.
9053         * config/sparc/sparc-protos.h: Update.
9055 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
9057         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
9058         -D__arch64__.  Add -D_LP64.
9059         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
9060         from sparc.h.
9061         (CPP_ARCH64_SPEC): Likewise.
9062         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
9063         (NO_BUILTIN_SIZE_TYPE): Undef.
9065 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
9067         * genautomata.c (min_issue_delay_pass_states): Change return type
9068         in the prototype.
9069         (min_issue_delay_pass_states): Change the algorithm.
9070         (min_issue_delay): Set up min_insn_issue_delay for the state.
9071         (output_min_issue_delay_table): Interchange the nested loops and
9072         and initiate min_insn_issue_delay for states.
9074 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
9076         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
9077         jump is simplejump.
9079 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
9081         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
9082         sequence.
9084 2002-05-03  Richard Henderson  <rth@redhat.com>
9086         PR opt/6534
9087         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
9088         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
9089         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
9090         code before JUMP, not EARLIEST.
9092 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
9094         * c-format.c (check_format_info_main): Don't check for presence of
9095         parameter for * width until after operand number has been read,
9096         and only check for it if format parameters are available.
9097         Fixes PR c/6547.
9099 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
9101         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
9102         (LINK_SPEC): Undef before defining.
9104 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
9106         PR preprocessor/6489
9107         * tradcpp.c (fixup_newlines): New.
9108         (main, finclude): Use it.
9110 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
9112         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
9113         * config/mips/mips.c (mips_unique_section): Strip encoding from
9114         decl name.
9116 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
9118         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
9119         mode.
9121 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9123         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
9124         (Specific): Removed buildstats references.
9125         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
9126         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
9127         Accomodate Solaris versions beyond 8.
9128         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
9129         (Specific, *-*-solaris2.8): Removed, obsolete.
9131 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
9133         PR target/6542
9134         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
9135         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
9136         fill leaf_reg_remap with identity.
9137         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
9139 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
9141         * config/h8300/crti.asm: Remove trailing spaces.
9142         * config/h8300/h8300.c: Likewise.
9143         * config/h8300/lib1funcs.asm: Likewise.
9145 2002-05-02  Jason Merrill  <jason@redhat.com>
9147         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
9148         * c-decl.c (c_init_decl_processing): Use it.
9149         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
9150         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
9151         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
9153 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
9155         * regrename.c: Fix formatting.
9156         * tree.c: Likewise.
9158 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
9160         * i386.md (attribute memory): Handle compares properly.
9162 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
9164         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
9165         to none.
9167 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
9169         * function.c: Fix formatting.
9171 2002-05-02  Jan Hubicka  <jh@suse.cz>
9173         * haifa-sched.c (schedule_insn): Print table of instructions and
9174         reservations.
9175         (sched_block): Do not print ready list at verbosity level 1.
9176         * sched-vis.c (print_insn): Make global.
9177         * sched-ebb.c (ebb_print_insn): Rename from...
9178         (print_insn): ... this one.
9179         * sched-int.h (print_insn): Declare
9181 2002-05-02  Richard Henderson  <rth@redhat.com>
9183         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
9184         emitted by cycle_display.
9186 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
9188         * doc/install.texi (*-*-freebsd*): Update to latest status.
9190 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
9192         PR target/6540
9193         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
9194         * config/float-sparc.h: Assume 128-bit long double if
9195         __LONG_DOUBLE_128__ is defined.
9197 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
9199         * genattrtab.c (write_function_unit_info): Add a dummy element
9200         when num_units == 0.
9202 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9204         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
9205         TYPE_MODE (double_type_node) instead of DFmode.
9207 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
9209         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
9210         jumps post reload.
9211         * toplev.c (rest_of_compilation): Revert Richard's patch.
9213 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9215         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
9217 2002-05-02  Catherine Moore  <clm@redhat.com>
9219         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
9221 2002-05-02  Kazu Hirata  <kazu@hxi.com>
9223         * combine.c: Fix comment typos.
9224         * expr.c: Likewise.
9225         * genautomata.c: Likewise.
9226         * stmt.c: Likewise.
9227         * tree.h: Likewise.
9229 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
9231         * doc/install.texi: State GNAT version requirements.
9233 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
9235         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
9236         of the frame pointer or arg pointer register which strict register
9237         checking is not enabled.
9239 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
9241         * gcc.dg/altivec-8.c: New.
9243         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
9244         PRE_INC and PRE_DEC for altivec modes.
9246 2002-05-01  Bruce Korb  <bkorb@gnu.org>
9248         * fixinc/check.tpl(set-writable): make sure the function exists first
9249         * fixinc/inclhack.def(alpha_assert): fix test_text
9250         * fixinc/tests/base/assert.h: add in missing result
9252 2002-05-01  Jeff Law  <law@redhat.com>
9254         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
9255         'T' constraint.
9257 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
9259         * dbxout.c (dbxout_type): Emit size information for range types,
9260         as well, but only when using GDB extensions.
9262 2002-05-01  Richard Henderson  <rth@redhat.com>
9264         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
9265         target-independent gnu binutils date test.
9267 2002-05-01  Richard Henderson  <rth@redhat.com>
9269         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
9270         info before expunging the block.
9272 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
9274         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
9275         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
9276         -M -or -MM is in effect.
9278 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
9280         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
9281         A29k configurations.
9282         * doc/install.texi: Update to match.
9284 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9286         PR bootstrap/6514
9287         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
9288         for duplicates. Always loop over whole list.
9290 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9292         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
9294 2002-05-01      Joel Sherrill <joel@OARcorp.com>
9296         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
9297         support routines.
9299 2002-05-01      Joel Sherrill <joel@OARcorp.com>
9301         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
9303 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
9305         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
9306         (nabs_nopower): Same.
9307         (floatdisf2): New pattern.
9308         (absdi2): Convert to define_insn_and_split.
9309         (nabsdi2): Same.
9310         (trunctfsf2): Same.
9311         (floatditf2): Same.
9312         (floatsitf2): Same.
9313         (fix_trunctfdi2): Same.
9314         (fix_trunctfsi2): Same.
9316 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
9318         * doc/install.texi: Update Texinfo version requirement
9319         documentation.
9321 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
9323         PR target/6512, PR target/5628
9324         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
9325         when memory is not aligned.
9326         (movdf_insn_v9only_vis): Likewise.
9327         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
9328         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
9329         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
9331 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
9333         * gcc.dg/altivec-7.c: New.
9335         * config/rs6000/altivec.h: Cleanup.
9337 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
9339         * doc/invoke.texi (Option Summary): Add -mvrsave=.
9340         (RS/6000 and PowerPC Options): Document -mvrsave=.
9342         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
9343         (rs6000_altivec_vrsave_string): Same.
9344         (rs6000_override_options): Call rs6000_parse_vrsave_option.
9345         (rs6000_parse_vrsave_option): New.
9346         (rs6000_stack_info): Only generate vrsave instructions when
9347         TARGET_ALTIVEC_VRSAVE.
9349         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
9350         (rs6000_altivec_vrsave_string): Define extern.
9351         (rs6000_altivec_vrsave): Same.
9352         (TARGET_ALTIVEC_VRSAVE): New.
9354 2002-04-30  Richard Henderson  <rth@redhat.com>
9356         PR opt/6516
9357         * toplev.c (rest_of_compilation): Don't run cross-jump before
9358         bb-reorder.
9360 2002-04-30  Tom Rix  <trix@redhat.com>
9362         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
9363         check which_alternative.
9365 2002-04-30  Kazu Hirata  <kazu@hxi.com>
9367         * cpplex.c: Fix comment formatting.
9368         * function.c: Likewise.
9369         * integrate.c: Likewise.
9370         * regrename.c: Likewise.
9371         * sibcall.c: Likewise.
9372         * simplify-rtx.c: Likewise.
9373         * tree-inline.c: Likewise.
9375 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9377         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
9378         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
9379         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
9380         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
9381         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
9382         * pa/x-ada: New file.  Define ADA_CFLAGS.
9384 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
9386         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
9387         from MMIX_LAST_REGISTER_FILE_REGNUM.
9388         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
9389         (struct machine_function): New member highest_saved_stack_register
9390         previously static variable in mmix.c.
9391         (MACHINE_DEPENDENT_REORG): Define.
9392         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
9393         (MMIX_OUTPUT_REGNO): New.
9394         (mmix_target_asm_function_prologue): Move calculation of last used
9395         saved-stack-register into...
9396         (mmix_machine_dependent_reorg): New function.  Update to also handle
9397         !TARGET_ABI_GNU.
9398         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
9399         register names, simplify somewhat by new variable regno.
9400         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
9401         register.
9402         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
9403         emitting register names.
9404         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
9405         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
9406         Remove fixed FIXME.
9407         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
9408         Declare.
9410         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
9412 2002-04-30  Richard Henderson  <rth@redhat.com>
9414         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
9415         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
9416         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
9417         emit_tfmode_cvt): New.
9418         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
9419         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
9420         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
9421         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
9422         * config/sparc/sparc-protos.h: Update.
9424 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
9426         * install.texi (Final install): Add to the list of info to include
9427         in a report of a successful bootstrap, and add link to 3.1 list.
9429 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
9431         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
9432         (mode): Add vector modes
9433         (i387): Kill attribute.
9434         (unit): New attribute.
9435         (length_immediate): Grok new types.
9436         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
9437         (modrm): Use "unit".
9438         (memory): Handle MMX/SSE properly.
9439         (scheduling descriptions): Kill uses of fop1.
9440         (sse, mmx, fp patterns): Set type and mode properly.
9442 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
9444         * pa.c (override_options): Default to PA8000 scheduling.
9445         * doc/invoke.texi (HP-PA options): Mention newly added 7300
9446         scheduling parameter.
9448         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
9449         handling of double precision multiplies.
9451         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
9452         fpdiv and fpsqrt instructions.
9453         (7200 & 7300 scheduling): Fix typo in handling of
9454         store-load and store-store penalties.
9456 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9458         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
9459         mips.  Add two missing commas.
9461 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
9463         * doc/contrib.texi (Contributors): Update Paolo Carlini's
9464         and Benjamin Kosnik's entries.
9466 2002-04-29  David S. Miller  <davem@redhat.com>
9468         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
9469         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
9470         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
9471         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9473 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9475         * combine.c (find_split_point): Use gen_int_mode.
9477 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
9479         Merging code from dfa-branch:
9481         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
9483         * genautomata.c (output_reserv_sets): Fix typo.
9485         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
9487         * genautomata.c (output_reserv_sets): Remove
9488         next_cycle_output_flag.
9490         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
9492         * sched-rgn.c (init_ready_list): Make the DFA code handle
9493         USE/CLOBBER insns in the same way as the traditional
9494         scheduler.
9495         (new_ready): Similarly..
9497         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
9499         * haifa-sched.c (schedule_block): Change the DFA state only after
9500         issuing insn.
9502         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
9504         * pa.c (hppa_use_dfa_pipeline_interface): New function.
9505         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
9506         (override_options): Add PA7300 scheduling support.
9507         (pa_adjust_cost): Update various comments.  Properly
9508         handle anti and output dependencies when using the
9509         DFA scheduler.
9510         (pa_issue_rate): Add PA7300 scheduling support.
9511         (pa_can_combine_p): Call extract_insn before calling
9512         constrain_operands (taken from mainline tree).
9513         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
9514         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
9515         descriptions using DFA descriptions.  Add PA7300
9516         scheduling support.
9518         2002-03-30  David S. Miller  <davem@redhat.com>
9520         Add UltraSPARC-III DFA scheduling support.
9521         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
9522         Update FP conditional move on register insn patterns to use it, as
9523         appropriate.
9524         (define_attr cpu): Add ultrasparc3.
9525         (define_attr us3load_type): New, update integer load patterns to
9526         set it, as appropriate.
9527         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
9528         (rest): Add UltraSPARC3 scheduling description.
9529         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
9530         (PROCESSOR_ULTRASPARC3): New.
9531         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
9532         ({ASM,CPP}_CPU_SPEC): Likewise.
9533         (REGISTER_MOVE_COST): Likewise.
9534         (RTX_COSTS): Likewise.
9535         * config/sparc/sparc.c (sparc_override_options,
9536         sparc_initialize_trampoline, sparc64_initialize_trampoline,
9537         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9538         sparc_issue_rate): Likewise.
9539         * config/sparc/sol2.h: Likewise.
9540         * config/sparc/sol2-sld-64.h: Likewise.
9541         * config/sparc/linux64.h: Likewise.
9543         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
9545         * doc/md.texi: Add comments about usage the latency time for the
9546         different dependencies and about case when two or more conditions
9547         in different define_insn_reservations returns TRUE for an insn.
9549         * doc/md.texi: Add reference for automaton based pipeline
9550         description.
9552         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
9554         * doc/passes.texi: Add missed information about genattrtab.
9556         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
9558         * genautomata.c (output_automata_list_transition_code): Check
9559         automata_list on NULL.
9561         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
9563         * genautomata.c (output_insn_code_cases,
9564         output_automata_list_min_issue_delay_code,
9565         output_automata_list_transition_code,
9566         output_automata_list_state_alts_code): Comment the functions.
9568         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
9570         * genautomata.c (automata_list_el_t): New typedef.
9571         (get_free_automata_list_el,free_automata_list_el,
9572         free_automata_list, automata_list_hash, automata_list_eq_p,
9573         initiate_automata_lists, automata_list_start, automata_list_add,
9574         automata_list_finish, finish_automata_lists,
9575         output_insn_code_cases, output_automata_list_min_issue_delay_code,
9576         output_automata_list_transition_code,
9577         output_automata_list_state_alts_code, add_automaton_state,
9578         form_important_insn_automata_lists): New functions and prototypes.
9579         (insn_reserv_decl): Add members important_automata_list and
9580         processed_p.
9581         (ainsn): Add members important_p.
9582         (automata_list_el): New structure.
9583         (first_free_automata_list_el, current_automata_list,
9584         automata_list_table): New global variables.
9585         (create_ainsns): Initiate member important_p.
9586         (output_internal_min_issue_delay_func): Generate the switch and
9587         call output_insn_code_cases.
9588         (output_internal_trans_func, output_internal_state_alts_func):
9589         Ditto.
9590         (generate): Call initiate_automata_lists.
9591         (automaton_states): New global variable.
9592         (expand_automata): Call form_important_insn_automata_lists.
9593         (write_automata): Call finish_automata_lists.
9595         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
9597         * genautomata.c (add_excls, add_presence_absence): Check that
9598         cpu units in the sets belong the same automaton.
9600         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
9601         about that cpu units in the sets belong the same automaton.
9603         * doc/md.texi: Ditto.
9605         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
9606                     Nitin Gupta  <niting@noida.hcltech.com>
9608         * config/sh/sh.c (sh_use_dfa_interface): New function.
9610         (sh_issue_rate): New Function.
9611         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
9612         TARGET_SCHED_ISSUE_RATE: define.
9614         * config/sh/sh.md: Add DFA based pipeline description for SH4.
9616         (define_attr insn_class): New attribute used for DFA
9617          scheduling.
9618         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
9619         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
9620          cmpeqdi_t): Likewise.
9622         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
9623          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
9624          ex_group.
9625         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
9627         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9629         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
9630         break.
9632         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9634         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
9635         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
9636         necessary.
9637         (output_dfa_start_func): Initiate new variable insn_codes_length,
9638         (write_automata): Output definition of the new variable.
9640         2001-10-02  David S. Miller  <davem@redhat.com>
9642         * haifa-sched.c (advance_one_cycle): New function.
9643         (schedule_block): Use it.
9644         (queue_to_ready): Use it, and also make sure to advance the DFA
9645         state on all stall cycles, not just those where insn_queue links
9646         are found.
9648         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
9650         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
9651         non-zero if the highest-priority instruction could be scheduled.
9652         (choose_ready): Remove last argument from max_issue call.
9654         2001-09-28  David S. Miller  <davem@redhat.com>
9656         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
9657         ultrasparc and 3 for other multi-issue sparcs.
9659         2001-09-27  David S. Miller  <davem@redhat.com>
9661         * config/sparc/sparc.md (cycle_display): New pattern.
9662         * config/sparc/sparc.c (sparc_cycle_display): New.
9663         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
9665         2001-09-25  David S. Miller  <davem@redhat.com>
9667         Convert all of Sparc scheduling to DFA
9668         * config/sparc/sparc.md: Kill all define_function_unit
9669         directives and replace with DFA equivalent.
9670         * config/sparc/sparc.c (ultrasparc_adjust_cost,
9671         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
9672         ultra_fpmode_conflict_exists, ultra_find_type,
9673         ultra_build_types_avail, ultra_flush_pipeline,
9674         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
9675         ultrasparc_variable_issue, ultrasparc_sched_init,
9676         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
9677         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
9678         ultra_cur_hist, ultra_cycles_elapsed): Kill.
9679         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9680         ultrasparc_store_bypass_p): New.
9681         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
9682         Declare.
9684         2001-09-24  David S. Miller  <davem@redhat.com>
9686         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
9687         ready->vec[foo] not ready[foo].
9689         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9691         * doc/md.texi: Correct examples for define_insn_reservations
9692         `mult' and `div'.
9694         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9696         * genautomata.c (create_automata): Print message about creation of
9697         each automaton.
9698         (generate): Remove printing meease about creation of
9699         automata.
9701         2001-09-05  David S. Miller  <davem@redhat.com>
9703         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9704         * config/sparc/linux64.h: Likewise.
9706         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
9708         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
9709         schedule_block, sched_init, sched_finish): Add missed calls of
9710         use_dfa_pipeline_interface.
9712         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
9713         Ditto.
9715         * sched-vis.c (get_visual_tbl_length): Ditto.
9717         2001-08-27  Richard Henderson  <rth@redhat.com>
9719         * genattr.c (main): Emit state_t even when not doing scheduling.
9721         2001-08-27  Richard Henderson  <rth@redhat.com>
9723         * genautomata.c (expand_automata): Always create a description.
9725         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
9727         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9728         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9729         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9730         RTL constructions.
9732         * genattr.c (main): New variable num_insn_reservations.  Increase
9733         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
9734         pipeline hazard recognizer interface.
9736         * genattrtab.h: New file.
9738         * genattrtab.c: Include genattrtab.h.
9739         (attr_printf, check_attr_test, make_internal_attr,
9740         make_numeric_value): Move protypes into genattrtab.h.  Define them
9741         as external.
9742         (num_dfa_decls): New global variable.
9743         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9744         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9745         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9746         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
9748         * genautomata.c: New file.
9750         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9752         * sched-int.h: (curr_state): Add the external definition for
9753         automaton pipeline interface.
9754         (haifa_insn_data): Add comments for members blockage and units.
9756         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9757         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9758         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9759         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9760         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9761         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9762         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9763         macros.
9764         (TARGET_SCHED): Use the new macros.
9766         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9767         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9768         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9769         dfa_bubble): New members in gcc_target.sched.
9771         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9772         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9773         (insn_queue): Redefine it as pointer to array.
9774         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9775         INSN_QUEUE_SIZE.
9776         (max_insn_queue_index_macro_value): New variable.
9777         (curr_state, dfa_state_size, ready_try): New varaibles for
9778         automaton interface.
9779         (ready_element, ready_remove, max_issue): New function prototypes
9780         for automaton interface.
9781         (choose_ready): New function prototype.
9782         (insn_unit, blockage_range): Add comments.
9783         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9784         FUNCTION_UNITS_SIZE == 0.
9785         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9786         actual_hazard, potential_hazard): Add comments.
9787         (insn_cost): Use cost -1 as undefined value.  Remove
9788         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
9789         pipeline interface.
9790         (ready_element, ready_remove): New functions for automaton
9791         interface.
9792         (schedule_insn): Add new code for automaton pipeline interface.
9793         (queue_to_ready): Add new code for automaton pipeline interface.
9794         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9795         (debug_ready_list): Print newline when the queue is empty.
9796         (max_issue): New function for automaton pipeline interface.
9797         (choose_ready): New function.
9798         (schedule_block): Add new code for automaton pipeline interface.
9799         Print ready list before scheduling each insn.
9800         (sched_init): Add new code for automaton pipeline interface.
9801         Initiate insn cost by -1.
9802         (sched_finish): Free the current automaton state and finalize
9803         automaton pipeline interface.
9805         * sched-rgn.c: Include target.h.
9806         (init_ready_list, new_ready, debug_dependencies): Add new code for
9807         automaton pipeline interface.
9809         * sched-vis.c: Include target.h.
9810         (get_visual_tbl_length): Add code for automaton interface.
9811         (target_units, print_block_visualization):  Add comments.
9813         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9814         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9815         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9816         (getruntime.o, genautomata.o): New entries.
9817         (genattrtab.o): Add new dependency file genattrtab.h.
9818         (genattrtab): Add new dependencies.  Link it with `libm.a'.
9819         (getruntime.o, hashtab.o): New entries for canadian cross.
9821         * doc/md.texi: Description of automaton based model.
9823         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9824         Add comments.
9825         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9826         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9827         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9828         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9829         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9830         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9831         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9832         hook descriptions.
9833         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9834         MAX_DFA_ISSUE_RATE): New macro descriptions.
9836         * doc/contrib.texi: Add dfa based scheduler contribution.
9838         * doc/gcc.texi: Add more information about genattrtab.
9840 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9842         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
9843         adjust_address_nv call.
9845 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
9847         * doc/install.texi (Testing): Provide additional information, and
9848         a stronger encouragement, for running the testsuites.
9850 2002-04-29  DJ Delorie  <dj@redhat.com>
9852         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
9853         given in upper case.
9855 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9857         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
9858         Solaris 2 <widec.h> if missing.
9859         * fixinc/fixincl.x: Regenerate.
9860         * fixinc/tests/base/widec.h: New file.
9862 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
9864         * toplev.c (f_options): Add "profile" switch so that
9865         -fno-profile can be used to disable -p.
9867 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
9869         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
9870         UV2DImode.
9871         * tree.c (build_common_tree_nodes_2): Likewise.
9872         * tree.h (enum tree_index): Likewise.
9873         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
9875         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
9876         entries.
9877         (init_mmx_sse_builtins): Initialize SSE2 builtins.
9878         (ix86_expand_builtin): Add support for SSE2 builtins.
9879         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
9880         (VALID_SSE_REG_MODE): Use it.
9881         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
9882         (enum ix86_builtins): Add SSE2 builtins.
9883         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
9884         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
9885         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
9886         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
9887         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
9888         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
9889         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
9890         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
9891         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
9892         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
9893         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
9894         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
9895         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
9896         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
9897         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
9898         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
9899         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
9900         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
9901         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
9902         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
9903         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
9904         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
9905         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
9906         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
9907         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
9908         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
9909         lfence_insn): New patterns.
9910         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
9911         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
9913 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
9915         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
9917 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9919         * doc/contrib.texi (Contributors): Add Paolo Carlini and
9920         Janis Johnson.
9921         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
9922         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
9923         and CPU instead of cpu.
9925 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
9927         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
9928         variables.
9929         (lang_independent_options): Add -fif-conversion, -fif-conversion2
9930         (rest_of_compilation): Do if conversion only when asked for.
9931         (parse_options_and_default_flags): Set new variables to 1 for -O1
9932         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
9934 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
9936         * i386.c (dbx64_register_map): Fix typo.
9938 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
9940         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
9941         real_one_half, real_bb_freq_max): New static variables.
9942         (debug_profile_bbauxs): Kill.
9943         (process_note_predictions): Kill unused variable.
9944         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
9945         volatile double.
9946         (propagate_freq): Use REAL_ARITHMETICS.
9947         (estimate_bb_frequencies): Likevise; init new static variables.
9948         * Makefile.in (predict.o): Add dependency on real.h
9950 2002-04-28  David S. Miller  <davem@redhat.com>
9952         PR target/6500
9953         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
9954         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
9955         several {reads,writes} instead.
9956         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
9957         Define.
9959 2002-04-27  David S. Miller  <davem@redhat.com>
9961         PR target/6494
9962         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
9963         of the stack bias.
9965         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
9966         including signal.h and sys/ucontext.h, not needed.
9968 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
9970         * varasm.c (output_constant_def): Correct test for not calling
9971         ENCODE_SECTION_INFO for INTEGER_CST.
9973 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9975         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
9976         keep most cases as function eval_token.
9977         (eval_token): New function.
9978         (_cpp_parse_expr): Read token here for improved diagnostics.
9979         Don't use op_as_text.  Detect bad ':' here.
9980         (reduce): Don't detect bad ':' here.
9981         (op_as_text): Remove.
9982         * cpphash.h (_cpp_test_assertion): Change prototype.
9983         * cpplib.c (_cpp_test_assertion): Change prototype.
9985 2002-04-28  Richard Henderson  <rth@redhat.com>
9987         PR c/5154
9988         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
9989         (ggc_mark_rtx_children): New.
9991 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9993         PR target/6496
9994         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
9995         after call peepholes for UltraSPARC.
9996         (call + jump 64-bit peepholes): Remove.
9998 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10000         PR c/6497
10001         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
10002         result as temporary value.
10004 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
10006         PR c++/6396
10007         * toplev.c (rest_of_compilation): Only run regrename and copy
10008         propagation if optimizing.
10010 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
10012         PR optimization/6475
10013         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
10014         register of REGNO_DECL (i).
10015         * Makefile.in (reload1.o): Add $(TREE_H).
10017 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10019         * cppexp.c (lex): Update to use state.skip_eval.
10020         (struct op): Remove prio and flags members.
10021         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
10022         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
10023         (LEFT_ASSOC): New macro.
10024         (optab): New table of operator priorities and flags.
10025         (SHIFT): Update.
10026         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
10027         malloc-ed parser stack.
10028         (reduce): New; reduce the operator stack.
10029         (_cpp_expand_op_stack): Expand the operator stack as necessary.
10030         * cpphash.h (struct op): Predeclare.
10031         (struct cpp_reader): New members op_stack, op_limit.
10032         (struct lexer_state): New member skip_eval.
10033         (_cpp_parse_expr): Update.
10034         (_cpp_expand_op_stack): New.
10035         * cpplib.c (do_if): Update.
10036         * cppinit.c (cpp_create_reader): Create op stack.
10037         (cpp_destroy): And destroy it.
10038         * cpplib.h (CPP_LAST_CPP_OP): Correct.
10039         (TTYPE_TABLE): Correct.
10041 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10043         PR c/6343
10044         * c-decl.c (duplicate_decls): Call merge_weak.
10045         * c-pragma.c (apply_pragma_weak): Warn about misuse.
10046         * output.h (merge_weak): Prototype merge_weak.
10047         * varasm.c (merge_weak): New function.
10048         (declare_weak): Make sure we don't give an error on VAR_DECLs.
10049         Mark RTL with SYMBOL_REF_WEAK.
10051 2002-04-27  Kurt Garloff <garloff@suse.de>
10053         * tree-inline.c (inlinable_function_p): Improve heuristics
10054         by using a smoother function to cut down allowable inlinable size.
10055         * param.def: Add parameters max-inline-insns-single,
10056         max-inline-slope, min-inline-insns that determine the exact
10057         shape of the above function.
10058         * param.h: Likewise.
10060 2002-04-26  Richard Henderson  <rth@redhat.com>
10062         * c-parse.in (malloced_yyss, malloced_yyvs): New.
10063         (yyoverflow): Re-add.  Set them.
10064         (free_parser_stacks): New.
10065         * c-common.h: Declare it.
10066         * c-lex.c (c_common_parse_file): Call it.
10068 2002-04-26  Richard Henderson  <rth@redhat.com>
10070         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
10071         for fallthru search.
10073 2002-04-26  Eric Christopher  <echristo@redhat.com>
10075         PR optimization/3700
10076         * config/mips/mips.c (mips_issue_rate): Define.  New function.
10077         (TARGET_SCHED_ISSUE_RATE): Use.
10079 2002-04-25  David S. Miller  <davem@redhat.com>
10081         PR target/6422
10082         * reorg.c (optimize_skip): Do not allow exception causing
10083         instructions to be considered for delay slots.
10084         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
10085         (relax_delay_slots): Do not try to consider exception causing
10086         instructions as redundant.
10088 2002-04-26  Richard Henderson  <rth@redhat.com>
10090         PR c/5225
10091         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
10093 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
10095         PR bootstrap/6445
10096         * config/i386/i386.md (untyped_call): Return the value in a float
10097         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
10098         TARGET_80387.
10100 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
10102         * tree.c (tree_int_cst_lt): Compare constants whose types differ
10103         in unsigned-ness correctly.
10105 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10107         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
10108         portable runtime model.
10110 2002-04-26  Richard Henderson  <rth@redhat.com>
10112         * c-parse.in (yyoverflow): Revert.
10114 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
10115             Richard Henderson  <rth@redhat.com>
10117         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
10118         result as temporary value.
10120 2002-04-26  Richard Henderson  <rth@redhat.com>
10122         PR c/3581
10123         * c-common.c (fix_string_type): Split out of ...
10124         (combine_strings): ... here.  Take a varray, not a tree list.
10125         (c_expand_builtin_printf): Use fix_string_type.
10126         * c-common.h: Update decls.
10127         * c-parse.in (string): Remove.  Update all uses to use STRING
10128         instead, and not call combine_strings.
10129         (yylexstring): New.
10130         (_yylex): Use it.
10131         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
10132         (build_asm_stmt): Likewise.
10133         * objc/objc-act.c (my_build_string): Use fix_string_type.
10134         (build_objc_string_object): Build varray for combine_strings.
10136 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
10138         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
10139         x86-64.
10141 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10143         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
10144         (HAVE_NO_R_OPERAND): Remove.
10145         (HAVE_VALUE): Remove.
10146         (op_to_prio): Update.
10147         (UNARY): Don't alter flags.
10148         (_cpp_parse_expr): want_value used to indicate whether
10149         a number or unary operator is expected next.  Distinguish
10150         unary and binary +/-.
10151         (op_as_text): Update for unary operators.
10153 2002-04-25  Richard Henderson  <rth@redhat.com>
10155         PR c/2161
10156         * c-parse.in (yyoverflow): New.
10158 2002-04-25  Richard Henderson  <rth@redhat.com>
10160         PR c/2098
10161         * c-common.c (shorten_compare): Simplfy conditions leading to
10162         the generation of a warning.
10164 2002-04-25  Richard Henderson  <rth@redhat.com>
10166         PR c/2035
10167         * expmed.c (extract_bit_field): Fall through to generic code rather
10168         than aborting on subreg special case.
10170 2002-04-25  David S. Miller  <davem@redhat.com>
10172         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
10173         for DECL being NULL.
10175 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
10177         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
10179 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
10181         * c-decl.c (grokdeclarator): Remove outdated ??? note
10182         on invalid declaration of flexible array members.
10184 2002-04-25  Richard Henderson  <rth@redhat.com>
10186         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
10188 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
10190         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
10191         needed by the compiler, even if they are used as global regs.
10193 2002-04-25  Matt Hiller  <hiller@redhat.com>
10195         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
10196         functions.
10197         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
10198         of the corresponding functions.
10199         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
10200         New prototypes.
10202 2002-04-25  Matt Hiller  <hiller@redhat.com>
10204         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
10206         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
10207         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
10208         registers, adjust comment accordingly.
10209         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
10210         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
10211         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
10212         for coprocessor registers.
10213         (ADDITIONAL_REGISTER_NAMES): Include
10214         ALL_COP_ADDITIONAL_REGISTER_NAMES.
10216         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
10217         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
10218         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
10219         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
10220         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
10222         (mips_char_to_class): Adjust comment to include coprocessor
10223         constraint letters.
10225         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
10226         New functions.
10227         (mips_reg_names, mips_regno_to_class): Include coprocessor
10228         information.
10229         (mips_sw_reg_names): Ditto, make non-static.
10230         (mips_move_1word): Handle moves to and from coprocessor registers.
10231         (mips_move_2words): Handle moves to and from coprocessor
10232         registers.
10233         (mips_class_max_nregs, mips_register_move_cost): Handle
10234         coprocessor register classes.
10235         (override_options): Initialize mips_char_to_class and
10236         mips_hard_regno_mode_ok properly for coprocessor registers.
10238         * config/mips/mips.md (movdi_internal, movdi_internal2,
10239         movsi_internal1, movsi_internal2): Add constraint-sets for
10240         coprocessor registers.
10241         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
10242         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
10243         isn't mips.
10244         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
10245         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
10246         isn't mips.
10247         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
10248         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
10249         isn't mips.
10250         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
10251         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
10252         isn't mips.
10254         * doc/tm.texi: Document feature.
10256 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10258         * integrate.c (function_attribute_inlinable_p): Simplify.
10259         Check the table pointer is not NULL.
10261 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
10263         * doc/c-tree.texi: Fix typo in introduction.
10265 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10267         * c-common.h (c_common_parse_file): Update.
10268         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
10269         * c-lex.c (YYDEBUG): Get from c-lex.h.
10270         (c_common_parse_file): Update.
10271         * c-lex.h (YYDEBUG, yydebug): New.
10272         * c-parse.in (YYDEBUG): Get from c-lex.h.
10273         (c_set_yydebug): Remove.
10274         * c-tree.h (c_set_yydebug): Remove.
10275         * langhooks-def.h (lhd_do_nothing_i): New.
10276         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
10277         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
10278         * langhooks.c  (lhd_do_nothing_i): New.
10279         (lhd_set_yydebug): Remove.
10280         * langhooks.h (struct lang_hooks): Update.
10281         * toplev.c (set_yydebug): New.
10282         (compile_file): Update call to parse_file hook.
10283         (decode_d_option): Update.
10284 objc:
10285         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
10287 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
10289         * loop.c (load_mems): Don't change the interface of called functions.
10291         * calls.c (expand_call): Take current_function_pretend_args_size
10292         into account when setting argblock for sibcalls.
10294 2002-04-24  Matt Hiller  <hiller@redhat.com>
10296         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
10297         * c-lex.c: Ditto.
10299         * cpplex.c (skip_line_comment): Process comment one multibyte
10300         character at a time rather than one char at a time, if
10301         appropriate.
10302         (parse_string): Process string one multibyte character at a time
10303         rather than one char at a time, if appropriate.
10304         * c-lex.c (lex_string): Lex and copy multibyte strings
10305         appropriately.
10306         * cpplib.h (cppchar_t): Change to unsigned.
10308 2002-04-24  Richard Henderson  <rth@redhat.com>
10310         PR c/3467
10311         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
10312         for c99.
10314 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
10316         * sh.c (sh_va_arg): If argument was passed by reference,
10317         dereference the pointer.
10319         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10321         * sh.md (divsi3_i4_media): Use match_operand for input values
10322         rather than hard registers.
10323         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
10324         unnecessarily through hard registers.  Keep copies of pseudo
10325         registers outside of the libcall sequence.
10327         * sh.md (casesi_shift_media): Add modes.
10329         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
10330         values in memory.
10332 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10334         * attribs.c (c_common_attribute_table): Move table and handlers
10335         to c-common.c.
10336         (format_attribute_table, lang_attribute_table,
10337         lang_attribute_common): Remove.
10338         (init_attributes): Replace NULL pointers with pointers to the
10339         empty table.
10340         (handle_packed_attribute, handle_nocommon_attribute,
10341         handle_common_attribute, handle_noreturn_attribute,
10342         handle_noinline_attribute, handle_always_inline_attribute,
10343         handle_used_attribute, handle_unused_attribute,
10344         handle_const_attribute, handle_transparent_union_attribute,
10345         handle_constructor_attribute, handle_destructor_attribute,
10346         handle_mode_attribute, handle_section_attribute,
10347         handle_aligned_attribute, handle_weak_attribute,
10348         handle_alias_attribute, handle_visibility_attribute,
10349         handle_no_instrument_function_attribute, handle_malloc_attribute,
10350         handle_no_limit_stack_attribute, handle_pure_attribute,
10351         handle_deprecated_attribute, handle_vector_size_attribute,
10352         vector_size_helper): Move to c-common.c.
10353         * c-common.c (c_common_attribute_table,
10354         handle_packed_attribute, handle_nocommon_attribute,
10355         handle_common_attribute, handle_noreturn_attribute,
10356         handle_noinline_attribute, handle_always_inline_attribute,
10357         handle_used_attribute, handle_unused_attribute,
10358         handle_const_attribute, handle_transparent_union_attribute,
10359         handle_constructor_attribute, handle_destructor_attribute,
10360         handle_mode_attribute, handle_section_attribute,
10361         handle_aligned_attribute, handle_weak_attribute,
10362         handle_alias_attribute, handle_visibility_attribute,
10363         handle_no_instrument_function_attribute, handle_malloc_attribute,
10364         handle_no_limit_stack_attribute, handle_pure_attribute,
10365         handle_deprecated_attribute, handle_vector_size_attribute,
10366         vector_size_helper): Move from attribs.c.
10367         * c-common.h (c_common_attribute_table,
10368         c_common_format_attribute_table): New.
10369         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10370         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10371         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
10372         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
10373         (LANG_HOOKS_INITIALIZER): Update.
10374         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
10375         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
10376         * target.h: Update comment.
10377         * tree.c (default_target_attribute_table): Remove.
10378         * tree.h (default_target_attribute_table, format_attribute_table,
10379         lang_attribute_table, lang_attribute_common): Remove.
10380 objc:
10381         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10382         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10384 2002-04-24  Jason Merrill  <jason@redhat.com>
10386         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
10387         * dwarf2out.c (dwarf_attr_name): Support it.
10388         (gen_array_type_die): Emit it.
10389         (lookup_type_die): No special handling for VECTOR_TYPE.
10390         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
10392 2002-04-24  Richard Henderson  <rth@redhat.com>
10394         * config/mips/mips.md (movdi_usd): Renumber.
10396 2002-04-24  David S. Miller  <davem@redhat.com>
10398         PR target/6420
10399         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
10400         32-bit Sparc and current_function_returns_struct is true.
10402 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
10404         * loop.c (canonicalize_condition): Use gen_int_mode.
10406 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
10408         * config/rs6000/altivec.h: Cleanup file.  Add non individual
10409         variants.
10410         (vec_vaddubm): New.
10411         (vec_vadduhm): New.
10412         (vec_vadduwm): New.
10413         (vec_vaddfp): New.
10414         (vec_vaddcuw): New.
10415         (vec_vaddubs): New.
10416         (vec_vaddsbs): New.
10417         (vec_vadduhs): New.
10418         (vec_vadduws): New.
10419         (vec_vaddsws): New.
10420         (vec_vand): New.
10421         (vec_vandc): New.
10422         (vec_vavgub): New.
10423         (vec_vavgsb): New.
10424         (vec_vavguh): New.
10425         (vec_vavgsh): New.
10426         (vec_vavguw): New.
10427         (vec_vavgsw): New.
10428         (vec_vrfip): New.
10429         (vec_vcmpbfp): New.
10430         (vec_vcmpequb): New.
10431         (vec_vcmpequh): New.
10432         (vec_vcmpequw): New.
10433         (vec_vcmpeqfp): New.
10434         (vec_vcmpgefp): New.
10435         (vec_vcmpgtub): New.
10436         (vec_vcmpgtsb): New.
10437         (vec_vcmpgtuh): New.
10438         (vec_vcmpgtsh): New.
10439         (vec_vcmpgtuw): New.
10440         (vec_vcmpgtsw): New.
10441         (vec_vcmpgtfp): New.
10442         (vec_vcmpgefp): New.
10443         (vec_vcfux): New.
10444         (vec_vcfsx): New.
10445         (vec_vctsxs): New.
10446         (vec_vctuxs): New.
10447         (vec_vexptefp): New.
10448         (vec_vrfim): New.
10449         (vec_lvx): New.
10450         (vec_lvebx): New.
10451         (vec_lvehx): New.
10452         (vec_lde): Add vector float variant.
10453         (vec_lvewx): New.
10454         (vec_lvxl): New.
10455         (vec_vlogefp): New.
10456         (vec_vmaddfp): New.
10457         (vec_vmhaddshs): New.
10458         (vec_vmaxub): New.
10459         (vec_vmaxsb): New.
10460         (vec_vmaxuh): New.
10461         (vec_vmaxsh): New.
10462         (vec_vmaxuw): New.
10463         (vec_vmaxsw): New.
10464         (vec_vmaxsw): New.
10465         (vec_vmaxfp): New.
10466         (vec_vmrghb): New.
10467         (vec_vmrghh): New.
10468         (vec_vmrghw): New.
10469         (vec_vmrglb): New.
10470         (vec_vmrglh): New.
10471         (vec_vmrglw): New.
10472         (vec_vminub): New.
10473         (vec_vminsb): New.
10474         (vec_vminuh): New.
10475         (vec_vminsh): New.
10476         (vec_vminuw): New.
10477         (vec_vminsw): New.
10478         (vec_vminfp): New.
10479         (vec_vmladduhm): New.
10480         (vec_vmhraddshs): New.
10481         (vec_msumubm): New.
10482         (vec_vmsummbm): New.
10483         (vec_vmsumuhm): New.
10484         (vec_vmsumshm): New.
10485         (vec_vmsumuhs): New.
10486         (vec_vmsumshs): New.
10487         (vec_vmuleub): New.
10488         (vec_vmulesb): New.
10489         (vec_vmuleuh): New.
10490         (vec_vmulesh): New.
10491         (vec_vmuloub): New.
10492         (vec_mulosb): New.
10493         (vec_vmulouh): New.
10494         (vec_vmulosh): New.
10495         (vec_vnmsubfp): New.
10496         (vec_vnor): New.
10497         (vec_vor): New.
10498         (vec_vpkuhum): New.
10499         (vec_vpkuwum): New.
10500         (vec_vpkpx): New.
10501         (vec_vpkuhus): New.
10502         (vec_vpkshss): New.
10503         (vec_vpkuwus): New.
10504         (vec_vpkswss): New.
10505         (vec_vpkshus): New.
10506         (vec_vpkswus): New.
10507         (vec_vperm): New.
10508         (vec_vrefp): New.
10509         (vec_vrlb): New.
10510         (vec_vrlh): New.
10511         (vec_vrlw): New.
10512         (vec_vrfin): New.
10513         (vec_vrsqrtefp): New.
10514         (vec_vsel): New.
10515         (vec_vslb): New.
10516         (vec_vslh): New.
10517         (vec_vslw): New.
10518         (vec_vsldoi): New.
10519         (vec_vsl): New.
10520         (vec_vslo): New.
10521         (vec_vspltb): New.
10522         (vec_vsplth): New.
10523         (vec_vspltw): New.
10524         (vec_vspltisb): New.
10525         (vec_vspltish): New.
10526         (vec_vspltisw): New.
10527         (vec_vsrb): New.
10528         (vec_vsrh): New.
10529         (vec_vsrw): New.
10530         (vec_vsrab): New.
10531         (vec_vsrah): New.
10532         (vec_vsraw): New.
10533         (vec_vsr): New.
10534         (vec_vsro): New.
10535         (vec_stvx): New.
10536         (vec_stvebx): New.
10537         (vec_stvehx): New.
10538         (vec_stvewx): New.
10539         (vec_stvxl): New.
10540         (vec_vsububm): New.
10541         (vec_vsubuhm): New.
10542         (vec_vsubuwm): New.
10543         (vec_vsubfp): New.
10544         (vec_vsubcuw): New.
10545         (vec_vsububs): New.
10546         (vec_vsubsbs): New.
10547         (vec_vsubuhs): New.
10548         (vec_vsubshs): New.
10549         (vec_vsubuws): New.
10550         (vec_vsubsws): New.
10551         (vec_vsum4ubs): New.
10552         (vec_vsum4sbs): New.
10553         (vec_vsum4shs): New.
10554         (vec_vsum2sws): New.
10555         (vec_vsumsws): New.
10556         (vec_vrfiz): New.
10557         (vec_vupkhsb): New.
10558         (vec_vupkhpx): New.
10559         (vec_vupkhsh): New.
10560         (vec_vupklsb): New.
10561         (vec_vupklpx): New.
10562         (vec_vupklsh): New.
10563         (vec_vxor): New.
10565 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
10567         PR c/5430
10568         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
10569         added literals from substracted literals.
10570         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
10571         (fold) [associate]: Preserve MINUS_EXPR if needed.
10573 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
10575         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
10576         are obsoleted.
10578 2002-04-23  Tom Tromey  <tromey@redhat.com>
10580         * gcc.c: Added --resource.  For PR java/6314.
10582 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10584         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
10585         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
10586         these libraries.
10588 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10590         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
10592 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
10594         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
10595         workaround.
10596         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
10597         (ix86_expand_clrstr): Fix typo.
10598         * loop.c (gen_load_of_final_value): New.
10599         (loop_givs_rescan, strength_reduce, check_dbra_loop):
10600         Use it.
10602 2002-04-23  Roger Sayle  <roger@eyesopen.com>
10604         * builtins.c (builtin_memset_gen_str): New function.
10605         (expand_builtin_memset): Optimize the case of constant length, but
10606         unknown value.
10608 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
10610         * config/rs6000/altivec.h (vec_step): Remove extraneous
10611         parentheses.
10612         (vec_ctu): Cast return.
10614 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
10616         PR target/6413
10617         * function.h: (struct function): Add profile_label_no field.
10618         (current_function_profile_label_no): Define.
10619         * function.c: (profile_label_no): New static var.
10620         (expand_function_start): Increment it, and copy to
10621         current_function_profile_label_no.
10622         * output.h (profile_label_no): Delete.
10623         * final.c (profile_label_no): Delete.
10624         (profile_function): Use current_function_profile_label_no.
10625         (final_end_function): Don't increment profile_label_no here.
10626         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
10627         profile_label_no with current_function_profile_label_no.
10628         * config/pa/pa.c (current_function_number): Delete.
10629         (pa_output_function_prologue): Don't output profile label here.
10630         (hppa_profile_hook): Use label_no param rather than
10631         current_function_number.
10632         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
10633         * config/pa/pa.h: .. here.
10634         (FUNCTION_PROFILER): Output profile label here.
10636 2002-04-22  Eric Christopher  <echristo@redhat.com>
10638         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
10639         patch of 2002-04-09 due to binutils issues.
10640         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
10642 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10644         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
10645         constraint to 'o' for m=r and r=m alternatives.
10646         ("*movv8hi_internal1"): Same.
10647         ("*movv16qi_internal1"): Same.
10648         ("*movv4sf_internal1"): Same.
10650 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
10652         * rtl.h (RTX_FLAG): New macro.
10653         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
10654         * final.c (alter_subreg): Use macro to access rtx flag.
10655         * integrate.c (copy_rtx_and_substitute): Use new access macro.
10656         * print-rtl.c (print_rtx): Use new access macro.
10658         * cse.c (insert): Check rtx code before accessing flag.
10660         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
10661         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
10662         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
10663         convert_const_symbol_ref, make_canonical, make_alternative_compare,
10664         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
10665         simplify_test_exp, optimize_attrs, simplify_by_exploding,
10666         find_and_mark_used_attributes, unmark_used_attributes,
10667         add_values_to_cover, simplify_with_current_value,
10668         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
10669         copy_rtx_unchanging, main): Use new access macros.
10671 2002-04-22  Tom Rix  <trix@redhat.com>
10673         * expmed.c (init_expmed): Generate shifted constant once.
10675 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
10677         * c-lex.c (lex_charconst): Call convert to get constant in
10678         proper type; don't just smash the type field.
10679         Fixes PR c/6300.
10681         * config.gcc: Add list of obsolete configurations.  Disallow
10682         building these without --enable-obsolete.
10683         * doc/install.texi: Document --enable-obsolete and obsoletion
10684         policy.  Mention obsoletion of individual targets in
10685         appropriate places.
10687 2002-04-22  Richard Henderson  <rth@redhat.com>
10689         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
10691 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
10693         PR f/6138.
10694         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
10695         (walk_fixup_memory_subreg): Likewise.
10696         (fixup_var_refs_insn): Adjust accordingly.
10697         (fixup_var_refs_1): Likewise.
10699 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
10701         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
10702         LIBPATH_ARCH64_SPEC): Define.
10703         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
10704         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
10705         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
10706         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
10708 2002-04-22      Joel Sherrill <joel@OARcorp.com>
10710         * gthr-rtems.h: Correct prototypes to remove warnings.
10712 2002-04-22  Richard Henderson  <rth@redhat.com>
10714         PR c/6344
10715         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
10717         * gcse.c (free_insn_expr_list_list): New.
10718         (clear_modify_mem_tables): Use it.  Fix bit set usage.
10719         (canon_list_insert): Use EXPR_LISTs for expressions.
10720         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
10722 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10724         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
10725         file change and include code to _cpp_pop_buffer.
10726         * cpphash.h (struct pending_option): Predeclare.
10727         (struct cpp_reader): New member next_include_file.
10728         (_cpp_pop_file_buffer): Update.
10729         (_cpp_push_next_buffer): Update, rename.
10730         * cppinit.c (cpp_destroy): Free include chain and pending here.
10731         (cpp_finish_options): Simplify.
10732         (_cpp_push_next_buffer): Rename and clean up.
10733         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
10734         Clarify.
10735         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
10737 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10739         * config/rs6000/altivec.h (vec_xor): Add variant for both args
10740         being vector signed int.
10741         (vec_andc): Same.
10742         (vec_xor): Add variant for both args being vector signed char.
10743         Remove redundant variant.
10744         (vec_andc): Same.
10746 2002-04-21  David S. Miller  <davem@redhat.com>
10748         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
10749         compare mode in output RTL.
10751 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
10753         * config/rs6000/rs6000.c (rs6000_override_options): Correct
10754         style and formatting of previous patch.
10756 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
10758         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
10759         flag_pic for ABI_AIX.
10761 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10763         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
10764         * cppfiles.c (read_include_file): Similarly.
10765         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
10766         uxstrdup ustrchr, ufputs): Similarly.
10767         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
10768         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
10769         cpp_ideq, parse_identifier, parse_number): Similarly.
10770         * cpplib.c (struct directive, dequote_string, D, run_directive,
10771         cpp_push_buffer): Similarly.
10772         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
10773         _cpp_create_definition, check_trad_stringification,
10774         cpp_macro_definition): Similarly.
10776 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10778         * cppmacro.c (funlike_invocation_p): Don't step back
10779         over CPP_EOF.
10781 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
10783         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
10784         labelno.
10786 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
10788         * doc/invoke.texi: Remove Chill references.
10789         * doc/gcc.texi: Update last modified date.
10791 2002-04-20  Kazu Hirata  <kazu@hxi.com>
10793         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
10794         push and pop.  Replace add.l with add.w.
10796 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10798         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
10799         multiply instructions for H8/300H case.
10801 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10803         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
10804         Bum three instructions from each routine.
10806 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10808         * Makefile.in: Update.
10809         * decl.c (push_c_function_context, pop_c_function_context,
10810         mark_c_function_context): Rename for consistency.
10811         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
10812         * c-tree.h (push_c_function_context, pop_c_function_context,
10813         mark_c_function_context): Rename for consistency.
10814         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10815         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10816         * function.c (init_lang_status, save_lang_status,
10817         restore_lang_status, mark_lang_status, free_lang_status):
10818         Move to langhooks.h.
10819         (push_function_context_to, pop_function_context_from,
10820         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
10821         Update.
10822         * function.h (init_lang_status, save_lang_status,
10823         restore_lang_status, mark_lang_status, free_lang_status):
10824         Move to langhooks.h.
10825         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
10826         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10827         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
10828         LANG_HOOKS_FUNCTION_INITIALIZER): New.
10829         (LANG_HOOKS_INITIALIZER): Update.
10830         (lhd_do_nothing_f): New.
10831         * langhooks.h (struct lang_hooks_for_functions): New.
10832         (struct lang_hooks): New hooks.
10833         * langhooks.c (lhd_do_nothing_f): New.
10834 objc:
10835         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10836         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10838 2002-04-19  David S. Miller  <davem@redhat.com>
10840         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
10841         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
10843 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10845         PR optimization/3756
10846         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
10847         x = ((int) y < 0) ? cst1 : cst2.
10849 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10851         PR c/6358
10852         * function.c: Reapply patch for c/6358.
10853         (expand_function_end): Copy decl_rtl's mode, not
10854         current_function_return_rtx mode.
10856 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
10858         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
10859         targets.
10861 2002-04-19  Tom Tromey  <tromey@redhat.com>
10863         * doc/install.texi (Specific): Update status of Solaris 2.8.
10864         For PR libgcj/6158.
10866 2002-04-19  Andreas Schwab  <schwab@suse.de>
10868         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
10869         (PUT_REAL): Restore old definition.
10871 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
10872             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10874         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
10875         binutils 2.11.2 and higher generate smaller binaries than Sun's
10876         native tools.
10878 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
10880         PR c++/6352
10881         * toplev.c (rest_of_compilation): Do not defer functions for which
10882         TREE_SYMBOL_REFERENCED has already been set.
10884 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
10886         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
10887         alternative.
10889 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
10891         * builtins.c: Include langhooks.h.
10892         (lang_type_promotes_to): Remove.
10893         (expand_builtin_va_arg): Use new hook.
10894         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
10895         (simple_type_promotes_to): Move to c-typeck.c.
10896         * c-common.h (simple_type_promotes_to): Remove.
10897         * c-decl.c (duplicate_decls, grokdeclarator): Update.
10898         * c-format.c: Include langhooks.h.
10899         (check_format_types): Update.
10900         * c-tree.h (c_type_promotes_to): New.
10901         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
10902         (type_lists_compatible_p): Update.
10903         * langhooks-def.h (lhd_type_promotes_to): New.
10904         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
10905         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10906         * langhooks.c (lhd_type_promotes_to): New.
10907         * langhooks.h (struct lang_hooks_for_types): New hook.
10908         * tree.h (lang_type_promotes_to): Remove.
10909 objc:
10910         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
10912 2002-04-18  Richard Henderson  <rth@redhat.com>
10914         * function.c: Revert patch for c/6358.
10916 2002-04-18  Richard Henderson  <rth@redhat.com>
10918         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
10919         blocks.  Handle multiple references to the TRAP block.  Handle
10920         non-adjacent THEN and OTHER blocks.
10922 2002-04-18  Richard Henderson  <rth@redhat.com>
10924         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
10925         crash with no type for by-mode libcalls.
10927         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
10929 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
10931         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
10932         __xtensa_nonlocal_goto): Use a syscall instructions to flush
10933         the register windows.
10935 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
10937         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
10938         appropriate.  Document need for extended precision even when
10939         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
10940         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
10941         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
10942         instead of relying on later syntax error when REAL_WIDTH > 5.
10943         * real.c: Define NE based only on whether or not we have a
10944         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
10945         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
10946         define GET_REAL and PUT_REAL as simple memcpy operations; no
10947         need to byteswap or round.
10948         Use #error instead of #ifdef-ing out the entire file, for
10949         prompt error detection.
10951         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
10953 2002-04-18  David S. Miller  <davem@redhat.com>
10955         * config/sparc/sparc.h (BRANCH_COST): Define.
10957         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
10958         does it.
10960 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
10962         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
10963         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
10964         propagate_block calls after relaxation loop using new variable
10965         stabilized_prop_flags.
10967 2002-04-18  Richard Henderson  <rth@redhat.com>
10969         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
10970         (ia64_va_arg): Expect variable sized types by reference.
10971         * config/ia64/ia64-protos.h: Update.
10972         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
10973         ia64_function_arg_pass_by_reference.
10975 2002-04-18  Richard Henderson  <rth@redhat.com>
10977         * ifcvt.c: Include except.h.
10978         (block_has_only_trap): Break out from find_cond_trap.
10979         (find_cond_trap): Use it.  Always delete the trap block.
10980         (merge_if_block): Allow then block null.  Be less simplistic about
10981         what insns can end a block.
10982         * Makefile.in (ifcvt.o): Depend on except.h.
10984         * config/ia64/ia64.md (trap, conditional_trap): New.
10986 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10988         PR c/6358
10989         * function.c (assign_parms): Assign hard current_function_return_rtx
10990         register here...
10991         (expand_function_end): ...not here.
10993 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10995         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10996         * c-tree.h (c_incomplete_type_error): New.
10997         * c-typeck.c (require_complete_type, build_component_ref): Update.
10998         (incomplete_type_error): Rename.
10999         * langhooks-def.h (lhd_incomplete_type_error): New.
11000         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
11001         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
11002         * langhooks.c (lhd_incomplete_type_error): New.
11003         * langhooks.h (struct lang_hooks_for_types): New hook.
11004         * tree.c (size_in_bytes): Use new hook.
11005         * tree.h (incomplete_type_error): Remove.
11006 objc:
11007         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
11009 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
11011         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
11012         TARGET_FLOAT_FORMAT blocks.
11014 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11016         * doc/install.texi (Downloading the source): Do not mention Chill
11017         any longer, but mention Ada.
11018         (Configuration): Do not mention Chill any longer.
11020 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
11022         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
11024 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
11026         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
11027         in last patch.
11029 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
11031         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
11032         instead of unsigned_type.
11034 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
11036         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
11037         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
11038         later.
11040 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
11042         * attribs.c (vector_type_node_list): New static variable.
11043         (handle_vector_size_attribute): Use it to avoid generating a
11044         new type node each time we are called.
11046         * combine.c (subst): Avoid trying to make a vector mode subreg of
11047         an integer constant.
11048         (gen_lowpart_for_combine): Likewise.
11050 2002-04-18  Roger Sayle  <roger@eyesopen.com>
11051             Jakub Jelinek  <jakub@redhat.com>
11053         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
11054         for integer constant c (if x has unsigned type or sign bit is not
11055         set in c).  This folds the zero/sign extension into the bit-wise and
11056         operation.
11058 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
11060         PR middle-end/6205
11061         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
11062         otherwise xorps.
11064 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
11066         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
11068 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
11070         * gcc.c (read_specs): Detect and fail if an attempt is made to
11071         rename a spec string to an already existing string.
11073 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
11075         * config/s390/s390.c (legitimize_pic_address): Do not generate
11076         illegal address constant without CONST.
11078 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11080         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
11081         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11083 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
11085         PR optimization/6305
11086         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
11087         to make sure previous reloads are taken into account.  Generate
11088         better code if one operand is an in-range immediate constant.
11090 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
11092         * doc/install.texi (Building): libgcj requires GNU make.
11094 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
11096         PR bootstrap/6315
11097         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
11098         even if hard quad and register is not floating.
11099         (movtf reg<-mem split): Disallow splitting if hard quad and
11100         register is floating.
11101         (movtf mem<-reg split): Likewise.
11102         * config/sparc/sparc.c (fp_register_operand): New predicate.
11103         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
11105 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
11107         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
11108         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
11109         (unprotoize.o): Ditto.  Build from protoize.c.  Define
11110         UNPROTOIZE on command line.
11111         * protoize.c: Include cppdefault.h.  Delete include_defaults.
11112         (in_system_include_dir): Use cpp_include_defaults (defined in
11113         cppdefault.o).
11114         * unprotoize.c: Delete file.
11116 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
11118         * config/rs6000/altivec.h (vec_ld): Add array variants.
11119         (vec_lde): Same.
11120         (vec_ldl): Same.
11122 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
11123             Aldy Hernandez <aldyh@redhat.com>
11125         * config/rs6000/altivec.h: Define __ALTIVEC__.
11126         (bool): New.
11127         (__pixel): New.
11128         (pixel): New.
11129         (vec_cfux): New.
11130         (vec_vmaddfp): New.
11131         (vec_vsldoi): New.
11132         Add parentheses to all macro arguments.
11134 2002-04-16  Richard Henderson  <rth@redhat.com>
11136         PR c++/6320
11137         * except.c (remove_eh_handler): Insert inner regions at beginning
11138         of sibling chain.  Refactor expressions.
11140 2002-04-16  Richard Henderson  <rth@redhat.com>
11142         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
11143         * config/sparc/sol2-gas-bi.h: New file.
11144         * config.gcc (sparc*-solaris): Add it as needed.
11145         * configure.in (AS_SPARC64_FLAG): Remove check.
11146         * config.in, configure: Regenerate.
11148         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
11150 2002-04-16  Richard Henderson  <rth@redhat.com>
11152         * config/mips/mips.c (override_options): Don't override N32 for
11153         a 64-bit ISA.
11155         PR 6202
11156         * config/mips/mips.md (can_delay): Split out of existing define_delays.
11157         (HILO_delay): Set can_delay false.
11159 2002-04-16  Dale Johannesen <dalej@apple.com>
11161         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
11162         instruction addresses.
11163         (rs6000_output_function_epilogue): Likewise.
11165 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
11167         * c-parse.in (poplevel, compstmt_start,
11168         compstmt_primary_start): Add ending ';', in accordance
11169         with POSIX.
11171 2002-04-16  Richard Henderson  <rth@redhat.com>
11173         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
11174         Adjust tm_file order to get TARGET_DEFAULT set properly.
11175         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
11176         * doc/install.texi (sparc-solaris): Update.
11178 2002-04-16  Dale Johannesen <dalej@apple.com>
11180         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
11181         comparison operands do not match each other or if modes of
11182         conditions do not match result.
11184 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
11186         PR target/6305
11187         * config/s390/s390.md (mulsidi3): Set both subregs of the
11188         multiword register.
11190 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
11192         * config/rs6000/altivec.h (vec_addc): Type check.
11194 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
11196         PR middle-end/6279
11197         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
11199         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
11201 2002-04-15  Richard Henderson  <rth@redhat.com>
11203         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
11204         call_really_used_regs too.
11206 2002-04-15  Richard Henderson  <rth@redhat.com>
11208         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
11210 2002-04-15  David S. Miller  <davem@redhat.com>
11212         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
11213         as being CLOBBERed.
11215 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
11217         PR c/6290
11218         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
11219         CONST_VECTOR is { 0, ... 0 }.
11221 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
11223         * doc/install.texi (Installing GCC: Configuration): Clarify
11224         the only supported ways to configure gcc.
11226 2002-04-15  Roland McGrath  <roland@frob.com>
11228         * config.gcc (alpha*-*-gnu*): New target configuration.
11229         * config/alpha/gnu.h: New file for it.
11230         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
11232 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
11234         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
11235         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
11236         * tree.h (expand_start_stmt_expr): Update prototype.
11237         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
11238         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
11239         on the STMT_EXPR created for the inline function.
11241 2002-04-15  Richard Henderson  <rth@redhat.com>
11243         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
11244         config/i386/linux-aout.h, config/i386/linux-oldld.h,
11245         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
11246         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
11247         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
11248         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
11249         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
11250         Define __gnu_linux__, not gnu_linux.
11251         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
11253 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
11255         Remove Chill front end.
11256         * gcc.c (default_compilers): Remove Chill entries.
11257         * ch: Remove directory.
11258         * doc/frontends.texi: Remove information about Chill.
11259         * doc/sourcebuild.texi: Likewise.
11260         * doc/standards.texi: Likewise.
11262 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
11264         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
11265         (LONGLONG_STANDALONE): Define.
11267 2002-04-15  David S. Miller  <davem@redhat.com>
11269         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
11270         Call emit_library_call with LCT_NORMAL.
11271         (sparc_initialize_trampoline): Use LCT_foo instead of
11272         magic constant in emit_library_call invocations.
11273         (sparc64_initialize_trampoline): Likewise.
11274         (sparc_profile_hook): Likewise.
11275         * config/sparc/sparc.md: Likewise.
11277         * config/sparc/sparc.c (sparc_extra_constraint_check):
11278         Fix type of argument 'c'.
11279         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
11280         Likewise.
11282 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
11284         * diagnostic.h (output_buffer_state): Redefine.
11285         (output_format_decoder): New macro.
11286         (output_prefixing_rule): Likewise.
11287         (output_line_cutoff): Likewise.
11288         (diagnostic_format_decoder): Adjust.
11289         (diagnostic_prefixing_rule): Likewise.
11290         (diagnostic_line_cutoff): Likewise.
11291         (diagnostic_state): Likewise.
11292         (diagnostic_kind_count): Likewise.
11293         (diagnostic_buffer): Now a macro.
11295         * diagnostic.c (diagnostic_buffer): Remove definition.
11296         (output_is_line_wrapping): Adjust.
11297         (set_real_maximum_length): Likewise.
11298         (output_set_maximum_length): Likewise.
11299         (init_output_buffer): Likewise.
11300         (lhd_print_error_function): Likewise.
11301         (output_do_verbatim): Likewise.
11303 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
11305         * cpperror.c (print_location): Don't print include chain
11306         if line == 0.
11307         (cpp_begin_message): Update to use DL_ macros.
11308         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11309         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11310         cpp_notice, cpp_notice_from_errno): Remove.
11311         (cpp_error, cpp_error_with_line): Update to take a diagnostic
11312         level.
11313         (cpp_errno): New.
11314         * cppexp.c (CPP_ICE): Remove.
11315         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
11316         lex, integer_overflow, _cpp_parse_expr): Update.
11317         * cppfiles.c (read_include_file, find_include_file,
11318         handle_missing_header, _cpp_read_file, remap_filename): Update.
11319         * cpphash.h (enum error_type): Remove.
11320         (_cpp_begin_message): Update.
11321         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
11322         cpp_handle_option, cpp_post_options): Update.
11323         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
11324         skip_whitespace, parse_identifier, parse_slow, parse_string,
11325         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
11326         cpp_interpret_charconst): Update.
11327         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
11328         lex_macro_node, do_undef, glue_header_name, parse_include,
11329         do_include_common, read_flag, do_line, do_linemarker, do_ident,
11330         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
11331         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
11332         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
11333         _cpp_pop_buffer, do_diagnostic): Update.
11334         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
11335         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
11336         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11337         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11338         cpp_notice, cpp_notice_from_errno): Remove.
11339         (cpp_error, cpp_error_with_line): Update to take a diagnostic
11340         level.
11341         (cpp_errno): New.
11342         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
11343         collect_args, enter_macro_context, save_parameter, parse_params,
11344         _cpp_create_definition, check_trad_stringification,
11345         cpp_macro_definition): Update.
11346         * cppmain.c (cpp_preprocess_file): Update.
11347         * fix-header.c (read_scan_file): Update.
11349 2002-04-14  Andreas Schwab  <schwab@suse.de>
11351         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
11353 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
11355         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
11357 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
11359         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
11360         not gnu_hurd.
11362 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
11364         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
11366 2002-04-13      Joel Sherrill <joel@OARcorp.com>
11368         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
11369         sparc-elf and sparc-rtems targets.
11371 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
11373         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
11374         defined, and __gnu_hurd__ wherever __GNU__ is defined.
11375         * arm/linux-elf.h: Likewise.
11376         * cris/aout.h: Likewise.
11377         * cris/linux.h: Likewise.
11378         * i370/linux.h: Likewise.
11379         * i386/gnu.h: Likewise.
11380         * i386/linux-aout.h: Likewise.
11381         * i386/linux-oldld.h: Likewise.
11382         * i386/linux.h: Likewise.
11383         * i386/linux64.h: Likewise.
11384         * ia64/linux.h: Likewise.
11385         * m68k/linux-aout.h: Likewise.
11386         * m68k/linux.h: Likewise.
11387         * mips/linux.h: Likewise.
11388         * pa/pa-linux.h: Likewise.
11389         * pj/linux.h: Likewise.
11390         * rs6000/sysv4.h: Likewise.
11391         * s390/linux.h: Likewise.
11392         * sh/linux.h: Likewise.
11393         * sparc/linux-aout.h: Likewise.
11394         * sparc/linux.h: Likewise.
11395         * sparc/linux64.h: Likewise.
11396         * xtensa/linux.h: Likewise.
11398 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
11400         * stmt.c (check_unique_operand_names): Expect operand names to
11401         be strings rather than identifiers.  Use simple_cst_equal to
11402         compare them.
11403         (resolve_operand_name_1): Make same identifier to string change here.
11404         * c-parse.in (asm_operand): Convert a named operand into a string.
11405         * cp/parse.y (asm_operand): Likewise.
11407 2002-04-13  Andreas Schwab  <schwab@suse.de>
11409         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
11411 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
11413         Revert these changes:
11415         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
11417         PR c++/5571
11418         * stor-layout.c (layout_decl): Reset the RTL for the decl.
11420 2002-04-12  Richard Henderson  <rth@redhat.com>
11422         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
11423         (sparc*-*-solaris): Clean up header files.
11424         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
11425         and plan on generating 64-bit code.
11426         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
11427         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
11428         * config/sparc/sol2-sld-64.h: Rename ...
11429         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
11430         for AS_SPARC64_FLAG not defined.
11431         * config/sparc/sol2-gld-bi.h: New.
11432         * config/sparc/sol2-sld.h: Remove.
11433         * config/sparc/sol26-sld.h: New.
11434         * config/sparc/sol2.h: Tidy comments.
11435         * doc/install.texi: Document sparc-solaris configury changes.
11437 2002-04-12  Richard Henderson  <rth@redhat.com>
11439         * recog.c (offsettable_address_p): Match the logic in adjust_address.
11441         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
11442         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
11444 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11446         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
11448 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
11450         * pa.c (pa_can_combine_p): Call extract_insn before calling
11451         constrain_operands.
11453 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
11455         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
11456         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
11457         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
11458         (CPP_PREDEFINES): Handle __declspec.
11459         * config/i386/t-interix (USER_H): Remove.
11461 2002-04-12  DJ Delorie  <dj@redhat.com>
11463         * integrate.c (compare_blocks): Make comparisons safe for when
11464         sizeof(int) < sizeof(char *).
11465         (find_block): Likewise.
11467 2002-04-12  Jan Hubicka  <jh@suse.cz>
11468             David Edelsohn  <edelsohn@gnu.org>
11470         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
11471         registers.
11472         (symbol_ref_operand): New.
11473         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
11474         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
11476 2002-04-12  Andreas Schwab  <schwab@suse.de>
11478         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
11479         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
11480         overrides the definition in config/svr4.h.
11482 2002-04-12      Eric Norum <eric.norum@usask.ca>
11484         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
11485         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
11486         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
11487         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
11488         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
11489         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
11490         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
11491         definitions to config/rtems.h and make the targets more similar.
11493 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11495         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
11496         POINTERS_EXTEND_UNSIGNED.
11497         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
11498         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
11500         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
11501         not specified.
11503 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
11505         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
11506         depends on TARGET_SHMEDIA, not TARGET_SH5.
11508 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
11510         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
11511         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
11513 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
11515         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
11516         no r0 clobber.
11518 2002-04-12  Andreas Schwab  <schwab@suse.de>
11520         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
11522 2002-04-12  Richard Henderson  <rth@redhat.com>
11524         PR bootstrap/4191
11525         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
11527         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
11528         modes spanning multiple hard regs.
11530         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
11532 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11534         * pa.c (pa_output_function_prologue): Don't accumulate the total
11535         number of code bytes when using TARGET_64BIT, or gas, SOM and not
11536         the portable runtime.
11537         (output_deferred_plabels): Handle 64bit plabels.
11538         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
11539         generating pic code using the GAS assembler for object formats that
11540         are not SOM (ie., ELF32 and ELF64).
11541         (output_millicode_call): Check attribute type if attribute length is 28.
11542         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
11543         dbr_sequence_length once.
11544         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
11545         dbr_sequence_length once.
11546         * pa.h (TARGET_SOM): Define if not defined.
11547         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
11548         with GAS and not SOM.
11549         (jump, call_internal_reg, call_value_internal_reg): Likewise.
11550         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
11552 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11554         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
11555         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
11556         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
11557         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
11558         elfos.h and dbxelf.h values are fine now.
11559         * config/i386/freebsd.h, config/alpha/freebsd.h
11560         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
11562 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11564         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
11565         or set Acpu or Amachine.  Reformat.
11566         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11567         define.
11568         (LINK_SPEC): Do not need to undef.
11569         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
11570         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
11571         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11572         define.
11573         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
11574         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
11575         (LINK_SPEC): Do not need to undef.
11576         (DONT_USE_BUILTIN_SETJMP): Do not define.
11577         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
11578         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
11579         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
11580         Remove trailing spaces.
11581         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
11582         __ELF__, or set Acpu or Amachine.  Reformat.
11583         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11584         define.
11586 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11588         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
11589         all other *-*-freebsd* targets.
11591 2002-04-11  Richard Henderson  <rth@redhat.com>
11593         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
11595 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11597         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
11598         Include {cpu}/{cpu}.h thru tm_file.
11599         (alpha*-*-linux*ecoff): Remove target.
11600         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
11601         (LINK_SPEC): Remove, is not OS independent.
11602         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
11603         (LINK_SPEC): Do not need to #undef any longer.
11604         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
11605         any longer.
11606         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
11607         __ELF__.
11608         (LINK_SPEC): Moved here from alpha/elf.h.
11609         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
11610         SUB_CPP_PREDEFINES.
11611         * config/alpha/linux-ecoff.h: Remove.
11612         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
11613         (CPP_SPEC): Define _POSIX_SOURCE as needed.
11614         (CPP_SUBTARGET_SPEC): Do not define.
11615         (LINK_SPEC): Do not need to #undef any longer.
11616         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
11617         * config/alpha/vms.h: Likewise.
11619 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
11621         * doc/extend.texi: Remove old claim that typedefs cannot have
11622         an alignment attribute.
11624 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11626         PR optimization/6177
11627         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
11628         bitpos is 0 and bitsize CONCAT size.
11630 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11632         PR c/6223
11633         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
11635 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
11637         * config/alpha/freebsd.h: Minor reformatting.
11638         (CPP_SPEC): Define ELF and add cpp_subtarget.
11639         (ASM_SPEC): No longer needed.
11641 2002-04-11  Richard Henderson  <rth@redhat.com>
11643         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
11644         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
11645         (dimode mem/zero splitter): New.
11647 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
11649         * config/cris/cris.c (cris_override_options): Tweak error message
11650         for PIC not implemented.
11652         * config/cris/cris.h: Tweak comments related to parameter-passing.
11654         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
11656 2002-04-10  Richard Henderson  <rth@redhat.com>
11658         * except.c (add_ehl_entry): Allow duplicates after landing pad
11659         creation.
11661 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
11663         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
11665 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
11667         * c-decl.c (c_init_decl_processing): Move generation of
11668         decls for g77_integer_type_node and friends from here ...
11669         * c-common.c (c_common_nodes_and_builtins): ... to here.
11671 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
11673         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
11674         is only used as frame pointer when frame_pointer_needed is true.
11676 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
11678         PR target/817
11679         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
11680         for the fact that the pool entry uses two words.
11681         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
11682         1k bytes.
11683         (movdf_soft_insn): Similarly.
11684         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
11685         for the fact that the pool entry uses three words.
11687 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
11689         * config/mips/mips.c (mips_va_arg): When using the struct version
11690         of the EABI va_list, allow arguments in the register save area to
11691         take up less room than a stack argument.
11693 2002-04-10  Richard Henderson  <rth@redhat.com>
11695         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
11696         if EXPAND_INITIALIZER.
11698 2002-04-09  Richard Henderson  <rth@redhat.com>
11700         * config/alpha/alpha.md (movdi_er_maybe_g): New.
11701         * config/alpha/alpha.c (alpha_expand_mov): Use it.
11703 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
11705         PR optimization/6233
11706         * rtlanal.c (pure_call_p): New function.
11707         * rtl.h (pure_call_p): Declare.
11708         * loop.c (prescan_loop): Use it to set has_nonconst_call.
11709         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
11711 2002-04-09  Eric Christopher  <echristo@redhat.com>
11713         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
11714         information to .comm directive.
11716 2002-04-09  Richard Henderson  <rth@redhat.com>
11718         PR c/5078
11719         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
11721 2002-04-09  Richard Henderson  <rth@redhat.com>
11723         * basic-block.h (flow_delete_block_noexpunge): Declare.
11724         (expunge_block_nocompact): Declare.
11725         * cfg.c (expunge_block_nocompact): Split out from ...
11726         (expunge_block): ... here.
11727         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
11728         (flow_delete_block_noexpunge): Split out from ...
11729         (flow_delete_block): ... here.
11730         * cfgcleanup.c (delete_unreachable_blocks): Compact while
11731         removing dead blocks.
11732         * except.c (exception_handler_labels): Remove.
11733         (exception_handler_label_map): New.
11734         (struct eh_region): Add aka member.
11735         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
11736         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
11737         (for_each_eh_label, for_each_eh_label_1): New.
11738         (init_eh): Register exception_handler_label_map.
11739         (free_eh_status): Use free_region.
11740         (find_exception_handler_labels): Use the map, not the list.
11741         (remove_exception_handler_label): Likewise.
11742         (maybe_remove_eh_handler): Likewise.
11743         (remove_eh_handler): Use the region aka bitmap.
11744         * except.h (exception_handler_labels): Remove.
11745         (for_each_eh_label): Declare.
11746         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
11747         * loop.c (invalidate_loops_containing_label): New.
11748         (find_and_verify_loops): Use it.  Use for_each_eh_label.
11749         * sched-rgn.c (is_cfg_nonregular): Use
11750         current_function_has_exception_handlers.
11752 2002-04-09  Richard Henderson  <rth@redhat.com>
11754         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
11755         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
11756         Do not return changed status.
11757         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
11758         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
11759         New functions that do return changed status.
11760         * sbitmap.h: Update decls.
11761         * gcse.c, lcm.c: Use _cg functions as needed.
11763 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
11765         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
11766         (sh64-*-elf*, sh-*-rtemself*): Likewise.
11767         * config/sh/embed_bb.c: New file.
11768         * config/sh/embed-elf.h: New file.
11769         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
11770         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
11771         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11772         __PTRDIFF_TYPE__ .
11773         (SUBTARGET_CPP_PTR_SPEC): Don't define.
11774         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
11775         Add subtarget_asm_endian_spec.
11776         (ASM_SPEC): Use subtarget_asm_endian_spec.
11777         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
11778         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
11779         (WCHAR_UNSIGNED): Define.
11780         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
11781         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11782         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
11783         Fix value.
11784         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
11785         (sh_adjust_cost): Likewise.
11786         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11787         __PTRDIFF_TYPE__ .
11788         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
11789         (WCHAR_TYPE_SIZE): Likewise.
11790         (ASM_SPEC): Use subtarget_asm_endian_spec.
11791         (SH_ELF_WCHAR_TYPE): #undef/ #define.
11792         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
11793         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
11794         (MAX_WCHAR_TYPE_SIZE): Don't #define .
11795         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
11796         (USER_LABEL_PREFIX): Don't #undef /#define .
11797         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11798         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
11799         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
11800         (ASM_SPEC): Likewise.
11801         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
11802         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
11803         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
11804         (LIB2FUNCS_EXTRA): Define.
11805         * t-sh64 (LIB2FUNCS_EXTRA): Define.
11806         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
11807         (LIB1ASMFUNCS_CACHE): Define.
11808         (LIB2FUNCS_EXTRA): Redefine empty.
11810 2002-04-08  Richard Henderson  <rth@redhat.com>
11812         * reorg.c (get_branch_condition): Use reversed_comparison_code.
11814 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11816         * config/m68hc11/larith.asm (__map_data_section): Fix condition
11817         and optimize for size.
11818         (__do_global_ctors): Fix pointer comparison.
11819         (__do_global_dtors): Likewise.
11821 2002-04-09  David S. Miller  <davem@redhat.com>
11823         * config/sparc/sparc.c (sparc_extra_constraint_check): New
11824         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
11825         allow reloading pseudos.
11826         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
11827         * config/sparc/sparc-protos.h: Declare it.
11829         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
11830         unsigned comparison warning.
11831         (output_restore_regs): Mark leaf_function as unused.
11833 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11835         * expr.c (is_aligning_offset): New function.
11836         (expand_expr, case COMPONENT_EXPR): Call it.
11838 2002-04-08  David S. Miller  <davem@redhat.com>
11840         PR target/6082
11841         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
11843         Make init_priority work on Sparc when using GNU ld.
11844         * config/sparc/linux.h, config/sparc/linux64.h,
11845         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
11846         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
11847         * config/sparc/sol2-gld.h: New file to do the same.
11848         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
11849         sparc/sol2-gld.h to tm_file.
11851         PR optimization/4328
11852         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
11853         * doc/md.texi: Document it.
11854         * config/sparc/sparc.md (movdi_insn_sp64_novis,
11855         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
11856         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
11857         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
11858         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
11860 2002-04-08  Andreas Jaeger  <aj@suse.de>
11862         * stmt.c (expand_asm_operands): Revert last patch from Richard
11863         Henderson.
11865 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11867         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
11868         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
11870 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11872         * doc/contrib.texi (Contributors): Add David O'Brien.
11874 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
11876         * configure.in (auto-build.h): Use target_alias and build_alias
11877         when running configure.
11878         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
11879         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
11880         * configure: Regenerate.
11882 2002-04-07  David S. Miller  <davem@redhat.com>
11884         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
11886 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11888         PR 5933
11889         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
11890         generating 32-bit pic code.
11892 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
11894         * cppinit.c (cpp_create_reader): Initialize
11895         discard_comments_in_macro_exp.
11896         (COMMAND_LINE_OPTIONS): Add "-CC" option.
11897         (cpp_handle_option): Handle "-CC" option.
11898         * cpplex.c (save_comment): If saving a C++ comment in
11899         a directive, convert it to a C comment.
11900         (_cpp_lex_direct): Pass second comment start character to
11901         save_comment to indicate comment type.
11902         * cpplib.c (_cpp_handle_directive): If processing
11903         a "#define" directive and discard_comments_in_macro_exp
11904         is false,  re-enable saving of comments.
11905         (lex_macro_node): If discard_comments_in_macro_exp is false,
11906         discard any comments before the macro identifier.
11907         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
11908         member.
11909         * cppmacro.c (cpp_get_token): If expanding a macro while
11910         processing a directive, discard any comments we might encounter.
11911         (parse_params): If discard_comments_in_macro_exp is false,
11912         ignore comments in the macro parameter list.
11913         * gcc.c (cpp_unique_options): Add "-CC" option.
11914         (option_map): Map "--comments-in-macros" to "-CC".
11915         * doc/cppopts.texi: Document "-CC" option.
11916         * f/lang-specs.h: Add "-CC" option.
11917         * testsuite/gcc.dg/cpp/maccom1.c: New test.
11918         * testsuite/gcc.dg/cpp/maccom2.c: New test.
11919         * testsuite/gcc.dg/cpp/maccom3.c: New test.
11920         * testsuite/gcc.dg/cpp/maccom4.c: New test.
11921         * testsuite/gcc.dg/cpp/maccom5.c: New test.
11922         * testsuite/gcc.dg/cpp/maccom6.c: New test.
11924 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11926         PR middle-end/6180
11927         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
11929 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
11931         PR c++/5571
11932         * stor-layout.c (layout_decl): Reset the RTL for the decl.
11934         PR opt/5120
11935         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
11936         RTX_UNCHANGING_P for the functions arguments when a tail call
11937         is made.
11939 2002-04-06  Jason Merrill  <jason@redhat.com>
11941         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
11942         (parse_options_and_default_flags): Set them appropriately.
11943         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
11945 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
11947         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
11948         here.
11950         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
11951         semicolon.
11953         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
11954         types come in by-reference.  Fix typo in comment.
11956 2002-04-05  David S. Miller  <davem@redhat.com>
11958         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
11959         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
11960         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
11961         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
11963 2002-04-05  David S. Miller  <davem@redhat.com>
11965         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
11966         are not going to emit return instructions, emit at least a nop
11967         for the sake of sane backtraces.
11969 2002-04-05  Richard Henderson  <rth@redhat.com>
11971         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
11973 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
11975         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
11977 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
11979         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
11980         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
11981         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
11983 2002-04-05  Andreas Schwab  <schwab@suse.de>
11985         * c-convert.c: Include c-common.h.
11986         * Makefile.in (c-convert.o): Updated.
11988 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11990         * mklibgcc.in: Use separate libgcc.map for each multilib.
11991         * Makefile.in (distclean): Don't remove libgcc.map here.
11993 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11995         * Makefile.in (s-mlib): Handle --disable-multilib by separate
11996         genmultilib invocation.
11998 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
12000         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
12001         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
12002         to num_gprs for symmetry.
12003         * config/mips/mips.c: Adjust accordingly.
12005 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12007         * c-common.c (truthvalue_conversion): Rename, update.
12008         * c-common.h (c_common_truthvalue_conversion): New.
12009         * c-convert.c (convert): Update.
12010         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
12011         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
12012         * c-typeck.c (build_binary_op, build_unary_op,
12013         build_conditional_expr): Update.
12014         * fold-const.c (constant_boolean_node, fold): Use langhook.
12015         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
12016         * langhooks.h (struct lang_hooks): New hook.
12017         * stmt.c (expand_decl_cleanup): Use langhook.
12018         * tree.h (truthvalue_conversion): Remove.
12019 objc:
12020         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
12022 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
12024         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
12025         Add rules to make null object file.
12027 2002-04-04  Jim Blandy  <jimb@redhat.com>
12029         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
12030         macro formal parameter names.
12032 2002-04-04  David S. Miller  <davem@redhat.com>
12034         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
12036 2002-04-04  Richard Henderson  <rth@redhat.com>
12038         PR middle-end/5099
12039         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
12040         Support copies into and out of memory.  Don't accept allows_reg
12041         and allows_mem as gospel.
12043 2002-04-04  Richard Henderson  <rth@redhat.com>
12045         PR opt/6165
12046         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
12047         (write_dependence_p): Likewise.
12049 2002-04-04  Richard Henderson  <rth@redhat.com>
12051         * predict.c (estimate_bb_frequencies): Do frequency calculation
12052         with a volatile temporary.
12054 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
12056         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
12058 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
12060         PR c++/6119
12061         * final.c (final_start_function): Don't bump profile_label_no here...
12062         (final_end_function): ...but here.
12064 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
12066         * config/sparc/sparc.md (pic): New attribute.
12067         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
12068         into stack slots.
12069         (split after do_builtin_setjmp_setup): New.
12071 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
12073         PR fortran/6106
12074         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
12075         change.
12077 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
12079         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
12080         UNITS_PER_WORD for zero sized aggregates.
12082 2002-04-03  David S. Miller  <davem@redhat.com>
12084         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
12085         one-character spec for this, just use %(link_gcc_c_sequence).
12087 2002-04-03  David S. Miller  <davem@redhat.com>
12089         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
12090         handling.
12092 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12094         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
12095         (DWARF_FRAME_RETURN_COLUMN): Move.
12096         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12097         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
12098         * pa.c (except.h, predict.h): Include.
12099         (FRP): Delete.
12100         (store_reg_modify, set_reg_plus_d): Revise prototypes.
12101         (output_ascii): Add cast.
12102         (store_reg_modify): Revise to add frame notes.
12103         (set_reg_plus_d): Likewise.
12104         (compute_frame_size): Include space for eh data registers in frame if
12105         the current function calls eh_return.
12106         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
12107         function calls eh_return.  Save eh data registers if the current
12108         function calls eh_return.  Fix code to add frame notes.  Emit
12109         blockage to prevent insns with frame notes being scheduled in the
12110         delay slot of calls.
12111         (hppa_expand_epilogue): Restore eh data registers and do final stack
12112         adjustment if the current function calls eh_return.  Don't add frame
12113         notes.
12114         (output_call): Revise for change in length of call insn.  Don't do
12115         return pointer adjustment for an unconditional jump in the delay slot
12116         of a call when using frame notes.
12117         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
12118         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
12119         (ARG_POINTER_CFA_OFFSET): Define.
12120         * pa.md (return_external_pic): New pattern.
12121         (prologue): Correct formatting.  Use return_external_pic if current
12122         function calls eh_return.
12123         (call_internal_symref, call_value_internal_symref,
12124         sibcall_internal_symref, sibcall_value_internal_symref): Change default
12125         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
12126         respectively.
12127         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
12129         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
12130         list of targets to check using "nop" insn.
12131         * configure: Rebuilt.
12133 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
12135         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
12137 2002-04-03  David S. Miller  <davem@redhat.com>
12139         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
12140         library sequence passed to the linker.
12141         (LINK_COMMAND_SPEC): Use it.
12142         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
12143         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
12144         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12146 2002-04-03  Jason Merrill  <jason@redhat.com>
12148         * except.c (struct eh_status): Remove protect_list.
12149         (begin_protect_partials, end_protect_partials): Remove.
12150         (add_partial_entry): Remove.
12151         * except.h: Remove prototypes.
12153         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
12154         expand_decl_cleanup_eh.
12156         PR c++/5636
12157         * tree.h (CLEANUP_EH_ONLY): New macro.
12158         * stmt.c (expand_decl_cleanup_eh): New fn.
12159         (expand_cleanups): Check CLEANUP_EH_ONLY.
12160         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
12161         Use expand_decl_cleanup_eh.
12162         (expand_stmt): Adjust.
12163         * c-common.h: Adjust prototype.
12165 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
12167         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
12168         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
12169         (cris_target_asm_function_epilogue): Ditto.
12170         (cris_initial_frame_pointer_offset): Ditto.
12171         (cris_simple_epilogue): Ditto.
12172         (cris_expand_builtin_va_arg): Variable-size types come in
12173         by-reference.
12175 2002-04-03  David S. Miller  <davem@redhat.com>
12177         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
12178         little-endian.
12179         (set_fast_math): Correct 'fsr' type.
12181 2002-04-03  Richard Henderson  <rth@redhat.com>
12183         PR opt/3569
12184         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
12185         * toplev.c (check_global_declarations): Use it.
12186         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
12187         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12188         (LANG_HOOKS_DECLS): Add it.
12189         * langhooks.c (lhd_warn_unused_global_decl): New.
12190         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12191         * c-objc-common.c (c_warn_unused_global_decl): New.
12192         * c-tree.h (c_warn_unused_global_decl): Declare.
12193         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12195 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12197         * langhooks-def.h (lhd_set_decl_assembler_name,
12198         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
12199         (LANG_HOOKS_INITIALIZER): Update.
12200         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
12201         * langhooks.h (struct lang_hooks): New hook.
12202         * tree.c (set_decl_assembler_name): Move to langhooks.c.
12203         (lang_set_decl_assembler_name): Remove.
12204         (init_obstacks): Don't set hook.
12205         (decl_assembler_name): New function.
12206         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
12207         (decl_assembler_name): New.
12208         (lang_set_decl_assembler_name): Remove.
12210 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
12212         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
12213         works properly with .hidden symbols.
12214         * configure: Rebuilt.
12215         * config.in: Rebuilt.
12216         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
12217         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
12218         properly with .hidden symbols.
12220 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
12222         PR middle-end/6102
12223         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
12224         USE argument.
12226 2002-04-03  Richard Henderson  <rth@redhat.com>
12228         PR opt/4120
12229         * sched-rgn.c (sets_likely_spilled): New.
12230         (sets_likely_spilled_1): New.
12231         (add_branch_dependences): Use it.
12233 2002-04-02  Richard Henderson  <rth@redhat.com>
12235         PR opt/4311
12236         * loop.h (LOOP_FIRST_PASS): New.
12237         * loop.c (strength_reduce): Mind it when deciding to unroll.
12238         * toplev.c (rest_of_compilation): Set it.
12240 2002-04-02  David S. Miller  <davem@redhat.com>
12242         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
12243         mems_ok_for_ldd_peep when the order of the loads being examined
12244         is reversed.
12245         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
12246         existing comment to increase comprehension of this situation.
12248 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
12250         * config/sh/sh.md: Don't use union real_extract.
12252 2002-04-02  Richard Henderson  <rth@redhat.com>
12254         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
12256 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
12258         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
12259         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
12260         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
12261         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
12262         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
12263         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
12264         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
12265         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
12266         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
12267         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
12268         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
12269         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
12270         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
12271         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
12272         Include as many configury headers via tm_file as possible.  This
12273         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
12274         * config/openbsd-oldgas.h: New file.
12275         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
12276         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
12277         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
12278         config/i386/i386-coff.h, config/i386/i386-interix.h,
12279         config/i386/iscdbx.h, config/i386/linux-aout.h,
12280         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
12281         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
12282         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
12283         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
12284         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
12285         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
12286         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
12287         config/i386/vxi386.h: Do not directly include configury headers.
12288         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
12289         Directly include configury headers that are no longer automatically
12290         included by the above headers.
12291         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
12292         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
12293         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
12294         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
12295         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
12296         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
12297         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
12298         (TARGET_VERSION): Define.
12299         * config/i386/beos-elf.h, config/i386/freebsd.h,
12300         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
12301         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
12302         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
12303         config/i386/sco5.h, config/i386/sysv4.h
12304         (TARGET_VERSION): Do not need to protect.
12305         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
12306         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
12307         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
12308         config/i386/i386-interix.h, config/i386/linux-aout.h,
12309         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
12310         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
12311         (YES_UNDERSCORES): Do not define - not needed.
12312         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
12313         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12314         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
12315         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
12316         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12317         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
12318         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
12319         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
12321 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
12322             Richard Henderson  <rth@redhat.com>
12324         PR c/5484
12325         * function.c (assign_temp): Accept either type or decl argument.
12326         Detect variables whose size is too large to fit into an integer.
12327         * stmt.c (expand_decl): Pass the decl, not the type.
12329 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
12331         * protoize.c: Match include directory usage with cppdefault.c.
12333 2002-04-03  Jeffrey A Law  (law@redhat.com)
12334             Hans-Peter Nilsson  <hp@bitrange.com>
12336         * combine.c (simplify_comparison): Avoid narrowing a comparison
12337         with a paradoxical subreg when doing so would drop signficant bits.
12339 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
12341         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
12342         if POINTERS_EXTEND_UNSIGNED is defined.
12344 2002-04-02  Richard Henderson  <rth@redhat.com>
12346         PR opt/3967
12347         * local-alloc.c (contains_replace_regs): LO_SUM may contain
12348         replace regs.
12350 2002-04-02  Richard Henderson  <rth@redhat.com>
12352         * doc/standards.texi: Document required freestanding libc entry points.
12354 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
12356         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
12357         associated splitter.  Remove MQ constraint.
12358         (ctrdi_internal4): Correct CCmode clobber.
12360 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12362         * milli64.S ($$dyncall): New function.
12363         * t-linux (LIB1ASMFUNCS): Revise module list.
12364         (LIB1ASMSRC): Use pa/milli64.S.
12366 2002-04-02  Richard Henderson  <rth@redhat.com>
12368         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
12369         rename solaris_sys_varargs_h.
12371 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12373         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
12374         the same mode as its component.
12376 2002-04-02  Richard Henderson  <rth@redhat.com>
12378         PR opt/190
12379         * final.c (this_is_asm_operands): Export.
12380         * output.h (this_is_asm_operands): Declare.
12381         * config/i386/i386.c (print_operand): Error odd asm operands.
12383 2002-04-02  Richard Henderson  <rth@redhat.com>
12385         PR opt/420
12386         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
12388 2002-04-01  Richard Henderson  <rth@redhat.com>
12390         PR target/1538
12391         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
12392         * fixinc/fixincl.x: Rebuild.
12394 2002-04-01  Richard Henderson  <rth@redhat.com>
12396         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
12397         (atomic_alloc, atomic_free): New.
12398         (SIZE, MASK_FOR, PTR_IN): New.
12399         (emergency_reg_state, emergency_reg_state_free): New.
12400         (emergency_labeled_state, emergency_labeled_state_free): New.
12401         (reg_state_alloced, labeled_state_alloced): New.
12402         (alloc_reg_state, free_reg_state): New.
12403         (alloc_label_state, free_label_state, free_label_states): New.
12404         (push, pop, dup_state_stack, free_state_stack): Use them.
12405         (desc_label_state): Likewise.
12406         (uw_frame_state_for): Free label states and state stack.
12407         (uw_update_reg_address): Eliminate warnings.
12409 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
12411         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
12412         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
12414 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12416         * c-decl.c (grokdeclarator): Update.
12417         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12418         * c-tree.h (c_mark_addressable): New.
12419         * c-typeck.c (default_function_array_conversion, build_unary_op,
12420         build_array_ref, convert_for_assignment): Update.
12421         (mark_addressable): Rename.
12422         * calls.c (try_to_integrate, expand_call): Use langhook.
12423         * expr.c (expand_expr): Use langhook.
12424         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
12425         * langhooks.h (struct lang_hooks): New hook.
12426         * stmt.c (expand_asm_operands): Use langhook.
12427         * tree.h (mark_addressable): Remove.
12428 objc:
12429         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12431 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
12433         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
12434         in previous change.
12436 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
12438         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
12439         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
12441 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12443         * c-common.c (unsigned_conversion_warning, convert_and_check,
12444         unsigned_type, signed_type, shorten_compare,
12445         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
12446         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
12447         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
12448         New.
12449         * c-decl.c (grokdeclarator): Update.
12450         * c-format.c (check_format_types): Update.
12451         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12452         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12453         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
12454         * convert.c (convert_to_integer): Use new hooks.
12455         * expmed.c (make_tree): Use new hooks.
12456         * expr.c (store_expr): Use new hooks.
12457         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
12458         all_ones_mask_p, unextend, fold): Use new hooks.
12459         * langhooks.h (struct lang_hooks_for_types): New hooks.
12460         * tree.h (signed_or_unsigned_type, signed_type,
12461         unsigned_type): Remove.
12462 objc:
12463         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12464         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12466 2002-03-31  Richard Henderson  <rth@redhat.com>
12468         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
12469         (desc_frgr_mem): Fix reference to f16-f31.
12471 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12473         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
12474         RTVEC_ELT): Const-ify.
12475         * varray.h (VARRAY_CHECK): Const-ify.
12476         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
12477         ggc_mark_rtvec, ggc_mark): Const-ify.
12479 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12481         * diagnostic.c: Include langhooks-def.h.
12482         * Makefile.in (diagnostic.o): Update.
12484 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12486         * c-common.c (c_unsafe_for_reeval): Rename.
12487         * c-common.h (c_unsafe_for_reeval): Rename.
12488         * c-decl.c (finish_incomplete_decl): Rename.
12489         (c_init_decl_processing): Don't set langhook.
12490         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12491         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12492         * c-objc-common.c (c_objc_common_init): Don't set langhook.
12493         * c-tree.h (finish_incomplete_decl): Rename.
12494         * langhooks-def.h (lhd_unsafe_for_reeval): New.
12495         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
12496         (LANG_HOOKS_INITIALIZER): Update.
12497         * langhooks.c (lhd_unsafe_For_reeval): New.
12498         * langhooks.h (struct langhooks): New hooks.
12499         * toplev.c (incomplete_decl_finalize_hook): Remove.
12500         (wrapup_global_declarations): Update.
12501         * tree.c (lang_unsafe_for_reeval): Remove.
12502         (unsafe_for_reeval): Update.
12503         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
12504         Remove.
12505 objc:
12506         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12507         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12509 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12511         * diagnostic.c (print_error_function): Remove.
12512         (default_print_error_function): Rename.
12513         (report_error_function): Update.
12514         * diagnostic.h (print_error_function): Remove.
12515         (default_print_error_function): Remove.
12516         * langhooks-def.h (struct diagnostic_context): Predeclare.
12517         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
12518         (LANG_HOOKS_INITIALIZER): Update.
12519         * langhooks.h (struct diagnostic context): Predeclare.
12520         (struct lang_hooks): New hook.
12522 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12524         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
12525         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
12526         !flag_pic.
12527         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
12528         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
12529         of PIC_OFFSET_TABLE_REGNUM thruout.
12530         * config/rs6000/rs6000.md: Likewise.
12531         * config/rs6000/darwin.h: Likewise.
12533 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12535         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
12536         unsigned HOST_WIDE_INT, not unsigned int.
12538 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12540         PR middle-end/6096, middle-end/6098, middle-end/6099
12541         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
12542         CODE_LABELs.
12543         (fill_slots_from_thread): Likewise.
12545 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12547         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
12548         floating fields in float regs.
12549         (function_arg_record_value_2): Likewise.
12551 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12553         * config/mmix/mmix.md (define_constants): Remove misleading
12554         FIXME.  Add MMIX_fp_rO_OFFSET.
12555         ("nonlocal_goto_receiver"): Don't have stack-frame address of
12556         saved rO as part of the pattern.  Remove FIXME.
12557         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
12558         here, at output-time.
12560 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12562         PR middle-end/6100
12563         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
12564         REG_BR_PRED.
12565         (output_v9branch): Likewise.
12567 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12569         * gcc.c: Revert previous patch for now.
12570         * config/i386/djgpp.h: Likewise.
12572 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12574         * config/mmix/crti.asm (_init): Register _fini with atexit.
12575         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
12577 2002-03-31  Richard Henderson  <rth@redhat.com>
12579         PR target/3997
12580         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
12581         (ASM_OUTPUT_DEF_FROM_DECLS): New.
12583 2002-03-31  Richard Henderson  <rth@redhat.com>
12585         * libgcc2.c (__bb_exit_func): Make static.
12587         * config/alpha/alpha.md (trap): New.
12589 2002-03-31  Richard Henderson  <rth@redhat.com>
12591         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
12592         promoted argument types; build trap.
12593         (expand_builtin_trap): New.
12594         (expand_builtin): Use it.
12595         * stmt.c (expand_nl_goto_receivers): Likewise.
12596         * expr.h (expand_builtin_trap): Declare.
12597         * libfuncs.h (LTI_abort, abort_libfunc): New.
12598         * optabs.c (init_optabs): Init abort_libfunc.
12600 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12602         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
12603         (LINK_COMMAND_SPEC): ... from here.
12604         (init_gcc_specs): Duplicate it here too, omitting
12605         shared_name in the second copy.
12606         (init_spec): Test for duplicate
12607         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
12609 2002-03-30  David S. Miller  <davem@redhat.com>
12611         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12612         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
12614 2002-03-30  Roger Sayle <roger@eyesopen.com>
12615             Richard Henderson  <rth@redhat.com>
12617         * regmove.c (combine_stack_adjustments_for_block): Avoid
12618         emitting a stack adjustment of zero bytes.  Let delete_insn
12619         update bb->head.
12621 2002-03-30  Richard Henderson  <rth@redhat.com>
12623         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
12624         (sparc_emitting_epilogue): New.
12625         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
12626         * config/sparc/sparc-protos.h: Update.
12627         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
12628         (TARGET_SWITCHES): Update.
12629         * config/sparc/sparc.md (return): Remove.
12630         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
12631         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
12632         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
12633         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
12634         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
12635         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
12636         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
12637         Remove MASK_EPILOGUE.
12638         * doc/invoke.texi: Update.
12640 2002-03-30  Daniel Berlin  <dan@dberlin.org>
12642         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
12643         CPP will start the file for us.
12645 2002-03-30  Richard Henderson  <rth@redhat.com>
12647         PR target/5446
12648         * config/ia64/ia64.c (group_barrier_needed_p): Special case
12649         prologue_allocate_stack.
12650         (ia64_single_set): Use insn codes for recognition of special
12651         cases, not rtl matching.
12652         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
12654 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
12656         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
12658 2002-03-30  Richard Henderson  <rth@redhat.com>
12660         PR target/6032
12661         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
12662         or -fomit-frame-pointer with profiling.
12663         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12664         (FUNCTION_PROFILER): Do nothing.
12665         (PROFILE_HOOK): New.
12666         * config/sparc/sparc.c (sparc_override_options): Don't check
12667         code models for profiling.
12668         (sparc_function_profiler): Remove.
12669         (sparc_profile_hook): New.
12670         * config/sparc/sparc-protos.h: Update.
12672 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
12674         PR optimization/6086
12675         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
12676         of SUBREG of volatile MEM or because the MEM was mode dependent,
12677         return CLOBBER instead of unmodified SUBREG.
12679 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12681         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
12682         when not optimizing.
12684         * toplev.c (rest_of_compilation): Cann mark_constant_function
12685         only when optimizing.
12687         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
12688         are NULL.
12690         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
12691         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
12692         (try_optimize_cfg): clear all AUX fields.
12694         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
12695         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
12696         (ix86_address_cost): Be prepared for SUBREGed registers.
12697         (legitimate_address_p): Accept SUBREGed registers.
12699 2002-03-29  Richard Henderson  <rth@redhat.com>
12701         PR target/5672
12702         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
12704 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12706         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
12707         for aggregate and TFmode types.
12709 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12711         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
12713 2002-03-29  Richard Henderson  <rth@redhat.com>
12715         PR target/5886
12716         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
12717         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
12719 2002-03-29  Richard Henderson  <rth@redhat.com>
12721         PR target/6041
12722         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
12723         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
12724         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
12725         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
12726         conditional.
12727         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
12729 2002-03-29  Dale Johannesen <dalej@apple.com>
12731         * loop.c (combine_movables): Do allow combination of pseudos.
12733 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
12735         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
12736         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
12737         No functional change except ...
12738         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
12739         * doc/install.texi (*-*-freebsd*): Document port configuration.
12741 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12743         * Makefile.in (convert.o, calls.o, expmed.o): Update.
12744         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
12745         Use new hooks.
12746         * builtin-types.def (BT_PTRMODE): Update.
12747         * c-common.c (type_for_size): Rename c_common_type_for_size.
12748         (type_for_mode): Similarly.
12749         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
12750         Use new hook.
12751         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
12752         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
12753         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
12754         Redefine.
12755         * c-typeck.c (common_type, comptypes, default_conversion):
12756         Use new hooks.
12757         * calls.c: Include langhooks.h.
12758         (emit_library_call_value_1): Use new hooks.  Avoid redundant
12759         calls.
12760         * convert.c: Include langhooks.h
12761         (convert_to_pointer, convert_to_integer): Use new hooks.
12762         * except.c (init_eh): Similarly.
12763         * expmed.c: Include langhooks.h.
12764         (expand_mult_add): Use new hooks.
12765         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
12766         try_casesi): Similarly.
12767         * fold-const.c (optimize_bit_field_compare, make_range,
12768         decode_field_reference, fold_truthop, fold): Similarly.
12769         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
12770         put_var_into_stack): Similarly.
12771         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
12772         LANG_HOOKS_TYPE_FOR_SIZE): New.
12773         (LANG_HOOKS_TYPES_INITIALIZER): Update.
12774         * langhooks.h (lang_hooks_for_types): New hooks.
12775         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
12776         * tree.c (get_unwidened, get_narrower): Similarly.
12777         * tree.h (type_for_mode, type_for_size): Remove.
12778         * varasm.c (force_const_mem): Use new hooks.
12779         * utils2.c (nonbinary_modular_operation): Update.
12780 objc:
12781         * objc-act.c (handle_impent): Update.
12782         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
12783         Redefine.
12785 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
12787         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
12788         * config/ia64/ia64.c (basereg_operand): New.
12789         * config/ia64/ia64-protos.h (basereg_operand): Declare.
12790         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
12792 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12794         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
12795         unwind information when frame_pointer_needed.
12796         (mmix_assemble_integer): Tweak wording in comment.
12798 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12800         * Makefile.in (except.o): Update.
12801         * except.c: Include langhooks.h.
12802         (init_eh): Use langhook.
12803         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
12804         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
12805         (LANG_HOOKS_INITIALIZER): Update.
12806         * langhooks.h (lang_hooks_for_types): New.
12807         (struct lang_hooks): Add it.
12808         * tree.c (make_lang_type_fn, make_lang_type): Remove.
12809         * tree.h (make_lang_type_fn, make_lang_type): Remove.
12810 config:
12811         * alpha/alpha.c: Include langhooks.h.
12812         (alpha_build_va_list): Use langhook.
12813         * d30v/d30v.c: Include langhooks.h.
12814         (d30v_build_va_list): Use langhook.
12815         * i386/i386.c: Include langhooks.h.
12816         (ix86_build_va_list): Use langhook.
12817         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
12818         * s390/s390.c: Include langhooks.h.
12819         (s390_build_va_list): Use langhook.
12820         * stormy16/stormy16.c: Include langhooks.h.
12821         (stormy16_build_va_list): Use langhook.
12823 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12825         PR c++/5964
12826         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
12827         attributes.
12828         (length): Compute variable length for branches/calls/jumps here.
12829         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
12830         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
12831         define branch_type attribute.
12832         (divsi3_sp32): Maximum length is 6 not 7.
12833         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
12834         call_address_untyped_struct_value_sp32,
12835         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
12836         * config/sparc/sparc.c (empty_delay_slot): New function.
12837         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
12838         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
12840 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12842         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
12843         nonzero_bits if not needed.
12844         (nonzero_bits) [XOR]: Likewise.
12845         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
12846         reg_last_set_mode and mode are both MODE_INT, but not equal.
12847         (record_value_for_reg): Compute reg_last_set_nonzero_bits
12848         in nonzero_bits_mode for MODE_INT modes.
12850 2002-03-28  Richard Henderson  <rth@redhat.com>
12852         PR target/5715
12853         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
12854         to GAS.  Correct drift between alternatives.
12856 2002-03-28  Richard Henderson  <rth@redhat.com>
12858         PR target/6087
12859         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
12861 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
12863         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
12864         emulation to the linker.
12866 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
12868         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
12869         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
12871 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
12873         * combine.c (simplify_and_const_int): Make sure to apply mask
12874         when force_to_mode returns a constant integer.  PR3311.
12876 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12878         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
12880 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12882         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
12883         and Objective-C Dialect Options.
12885 2002-03-28  Richard Henderson  <rth@redhat.com>
12887         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
12888         comparison should be done vs !=0 not >0 return code.  Tidy cases.
12890 2002-03-28  Richard Henderson  <rth@redhat.com>
12892         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
12893         on to c_expand_body.
12894         * c-tree.h (finish_function): Update decl.
12895         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
12897 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
12899         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
12901 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
12903         * rtlanal.c: Include flags.h
12904         (may_trap_p): Do not mark FP operations if trapping
12905         if !flag_trapping_math
12906         * Makefile.in (rtlanal.o): Add dependency on flag.h
12907         * ifcvt.c (noce_operand_ok): Avoid the lameness.
12909 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
12911         * mips.md: Use dconst1, not 1.0, as first argument of
12912         REAL_VALUE_LDEXP.  Don't use union real_extract.
12914 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
12916         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
12917         rather than $target.  Heed program_prefix and
12918         program_transform_name.  Search for gas in cross-compiler case too.
12919         "test -x" rather than "test -f".
12920         (gcc_cv_ld): Likewise.
12921         (gcc_cv_nm): Heed program_prefix and program_transform_name.
12922         (gcc_cv_objdump): Likewise.
12923         * configure: Regenerate.
12925 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12927         * Makefile.in (attribs.o): Update.
12928         * attribs.c: Include langhooks.h.
12929         (decl_attributes): Use langhook.
12930         * c-decl.c (insert_default_attributes): Rename.
12931         * c-tree.h (c_insert_default_attributes): New.
12932         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
12933         (LANG_HOOKS_INITIALIZER): Update.
12934         * langhooks.h (struct lang_hooks): New hook.
12935         * tree.h (insert_default_attributes): Remove.
12936 objc:
12937         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
12939 2002-03-27  Andreas Schwab  <schwab@suse.de>
12941         * config/i386/i386.c (classify_argument): Also check for
12942         QUAL_UNION_TYPE.
12944 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12946         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
12947         any more.
12949 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12951         * i960.md (ret): Set PC.
12952         (nonlocal_goto): Fix expander.
12953         * builtins.c (epxand_builin_longjmp): Check that we've emitted
12954         some jump or call.
12956 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12958         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
12959         of libcall regions.
12961 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12963         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
12964         assigning to BLOCK_FOR_INSN directly.
12966 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
12968         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
12970 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12972         * c-common.c (c_expand_expr): Fix prototype.
12973         * c-common.h (c_expand_expr): Always declare, update.
12974         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12975         * c-objc-common.c (c_objc_common_init): No global hook.
12976         * expr.c (expand_expr): Use langhook.
12977         * expr.h (enum expand_modifier): Conditionally declare.
12978         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
12979         (LANG_HOOKS_INITIALIZER): Update.
12980         * langhooks.c (lhd_expand_expr): New.
12981         * langhooks.h (struct lang_hooks): New hook.
12982         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
12983         (lang_independent_init): Don't default hook.
12984 objc:
12985         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12987 2002-03-27  Richard Henderson  <rth@redhat.com>
12989         PR target/6054
12990         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
12991         TARGET_CONST_GP.  Simplify conditions.
12993 2002-03-27  Richard Henderson  <rth@redhat.com>
12995         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12996         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
12997         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
12999 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
13001         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
13002         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
13003         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
13004         Remove unnecessary masks.
13005         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
13006         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
13007         -mwindows, -mdll switches and their negations.
13009 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
13011         * gcc-common.c (lang_mark_false_label_stack): Remove.
13012         * ggc.h (lang_mark_false_label_stack): Similarly.
13014 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
13016         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
13018         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
13019         or __rtems_ is defined.
13021 2002-03-26  Richard Henderson  <rth@redhat.com>
13023         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
13024         if a non-trivial load was emitted.
13025         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
13026         in high+extra+low case.
13028 2002-03-26  Richard Henderson  <rth@redhat.com>
13030         * config.gcc (sparc*-solaris): Use float_format=sparc.
13032 2002-03-26  Richard Henderson  <rth@redhat.com>
13034         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13035         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
13036         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
13037         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
13038         (WINT_TYPE_SIZE): Fix at 32.
13040 2002-03-26  Richard Henderson  <rth@redhat.com>
13042         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
13043         until after eh landing pad generation.
13044         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
13045         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
13047 2002-03-26  Richard Henderson  <rth@redhat.com>
13049         * expr.h (ADD_PARM_SIZE): One more convert for INC.
13051 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
13053         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
13054         and warning switches.
13055         (cc1_options):  Likewise.
13057 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
13059         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
13060         Restore more of the signal context.  Set no_reg_stack_frame.
13061         * config/ia64/unwind-ia64.c (unw_state_record):
13062         Add no_reg_stack_frame, comments.
13063         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
13064         (uw_update_context): Adjust bsp when unwinding from leaf,
13065         but not signal frame.
13067 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
13069         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
13071 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
13073         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
13075 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
13077         PR target/5621
13078         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
13079         "Add a pool_range attribute", which was lost during the ARM/Thumb
13080         merge.
13082 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
13084         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
13085         a register into the MAC16 accumulator.
13087 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
13089         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
13090         (Warning Options): Document -Wswitch-enum.
13091         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
13092         -Wswitch.
13093         (warn_switch_enum): Define variables.
13094         * flags.h (warn_switch_enum): Declare variables.
13095         * stmt.c (expand_end_case_type): When warn_switch_enum /
13096         -Wswitch-enum, perform switch checks.
13097         Fix PR c/5044.
13099 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
13101         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
13102         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
13103         (reload_muladdsi_compare0_scratch): Delete.
13105 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
13107         * doc/install.texi (*-*-freebsd*): Update.
13109 2002-03-26  Richard Henderson  <rth@redhat.com>
13111         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
13112         (SUB_PARM_SIZE): Cast DEC to ssizetype.
13114         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
13115         types from the normal argument frame.
13117         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
13118         variable sized objects by reference.
13119         (sparc_va_arg): Receive them by reference too.
13121 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
13123         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
13124         code to not restoring global registers.
13126 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
13128         * Makefile.in (ggc-common.o): Update.
13129         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
13130         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
13131         * c-tree.h (c_mark_tree): New.
13132         * ggc-common.c: Include langhooks.h.
13133         (gcc_mark_trees): Use new langhook.
13134         * ggc-callbacks.c: Delete file.
13135         * ggc.h (lang_mark_tree): Remove.
13136         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
13137         (LANG_HOOKS_INITIALIZER): Update.
13138         * langhooks.h (struct lang_hooks): New hook.
13139 objc:
13140         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
13142 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
13144         * doc/cpp.texi: Exclude entire Top node from printed manual.
13145         Move option index after directive index.  Insert page breaks
13146         before GFDL and concept index.  Index environment variables
13147         with command line options.
13148         * doc/cppenv.texi: Use @vtable for environment variable list.
13149         Add paragraph explaining semantics of empty elements in path
13150         variables.  Exclude a cross-reference to Fishkill from the
13151         manpage.  Remove an unnecessary cross-reference of the entry
13152         right above the referer.  Don't use @anchor in text that goes
13153         into manpage.
13154         * doc/cppopts.texi: Cross-reference the environment variables
13155         section, not the specific environment variable, for consistency.
13157 2002-03-25  Richard Henderson  <rth@redhat.com>
13159         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
13160         anywhere in the block.  Don't refer to insns that have been
13161         removed from the chain.  Iterate backward through the new insns.
13162         Don't refer to edges that have been removed.
13164 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
13166         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
13167         test for overflow of constant.
13169 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
13171         PR target/2623
13172         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
13173         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
13174         these patterns on arm_archv4.
13176 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
13178         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
13179         int".
13181 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
13183         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
13184         float_handled, float_handler, float_signal, set_float_handler,
13185         and do_float_handler.  Set handler for SIGFPE to crash_signal.
13186         * toplev.h: Don't prototype do_float_handler.
13188         * c-lex.c: Fold parse_float into lex_number.  Make warning
13189         about portability of hex float constants more informative, and
13190         don't issue it on top of a syntax error.
13191         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
13192         their callers.
13193         * real.h: Define REAL_VALUE_ABS here...
13194         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
13195         simplify_unary_real, simplify_binary_real, and
13196         simplify_binary_is2orm1 into their callers.
13197         * tree.c: Fold build_real_from_int_cst_1 into caller.
13199         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
13201         * tsystem.h: Include float.h here...
13202         * libgcc2.c: ... not here.
13204 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
13206         Fixes for: PR bootstrap/3591, target/5676
13207         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
13208         defined.  Do not disable exceptions or rtti.
13209         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
13210         mcore.h.  Disable exceptions and rtti, since they are not
13211         supported by EPOC.
13213 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
13215         * c-decl.c (maybe_build_cleanup): Remove.
13216         * expr.c (expand_expr): Use langhook.
13217         * langhooks-def.h (lhd_return_null_tree,
13218         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
13219         (LANGHOOKS_INITIALIZER): Update.
13220         * langhooks.c (lhd_return_null_tree): New.
13221         * langhooks.h (struct lang_hooks): New hook.
13222         * tree-inline.c (initialize_inlined_parameters): Use langhook.
13223         * tree.h (maybe_build_cleanup): Remove.
13225 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
13227         * regrename.c (build_def_use): Move recog_memoized
13228         before extract_insn.
13230 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
13232         PR target/6043
13233         * expr.c (emit_group_store): Handle storing into CONCAT.
13235 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
13237         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
13238         corresponding MATCH_DUP.
13240 2002-03-24  Richard Henderson  <rth@redhat.com>
13242         * unroll.c (unroll_loop): Zero label_map.
13244         * gcse.c: Include except.h.
13245         * Makefile.in (gcse.o): Update.
13247 2002-03-24  Richard Henderson  <rth@redhat.com>
13249         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
13250         Do resolve_unique_section before shared data clause.
13252 2002-03-24  Richard Henderson  <rth@redhat.com>
13254         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
13256 2002-03-24  Richard Henderson  <rth@redhat.com>
13258         * recog.c (peephole2_optimize): Split blocks when EH insns are
13259         generated in the middle of a block.  Do global life update if
13260         zapped EH edges.
13262 2002-03-24  Richard Henderson  <rth@redhat.com>
13264         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
13266 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13268         preprocessor/3951
13269         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
13270         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
13271         (init_dependency_output): Don't make no_output decision here.
13273 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
13275         * stmt.c (check_for_full_enumeration_handling): Remove tests of
13276         warn_switch.  Update description.
13277         (expand_end_case_type): Call check_for_full_enumeration_handling
13278         when warn_switch.
13280 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13282         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
13283         (m68hc11_split_move): Call it to see if the source and destination
13284         operands use the same direction auto inc/dec mode, otherwise make the
13285         source an offsetable memory operand and generate an add.
13287 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13289         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
13290         register for operand 2.
13291         ("*subsi3_zero_extendqi"): Likewise.
13292         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
13293         bits so that it is compatible with a pop.
13294         ("*andhi3_gen"): Likewise.
13295         ("xorhi3"): Likewise.
13297 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13299         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
13300         -pedantic here...
13301         (cpp_post_options): ... not here.
13303 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13304             Aldy Hernandez  <aldyh@redhat.com>
13306         Removal of separate preprocessor cpp0.
13308         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
13309         cpp0, install-common): Update.
13310         * c-common.c (flag_preprocess_only): New.
13311         (c_common_init): Preprocess for -E.
13312         * c-common.h (flag_preprocess_only): New.
13313         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
13314         * c-objc-common.c (c_init_decl_processing): Exit quickly
13315         for NULL return from c_common_init.
13316         * cpplib.h (cpp_preprocess_file): New.
13317         * cppmain.c (main, general_init, pfile, progname): Remove.
13318         (do_preprocessing): Rename cpp_preprocess_file, don't call
13319         cpp_finish.  Don't close stdout here.
13320         (setup_callbacks): Update prototype.
13321         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
13322         Update.
13323         * tradcpp.c (main): Ignore -quiet.
13324 objc:
13325         * lang-specs.h (default_compilers): Preprocess with cc1obj.
13327 2002-03-24  Richard Henderson  <rth@redhat.com>
13329         PR optimization/5742
13330         * machmode.def: Add inner mode field to complex modes.
13331         * config/mips/mips.c (mips_function_value): Always define.  Add
13332         new argument to handle libcalls.
13333         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
13334         (FUNCTION_VALUE): Likewise.
13335         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
13336         * config/mips/mips-protos.h: Update.
13338 2002-03-23  Richard Henderson  <rth@redhat.com>
13340         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
13341         * config/sparc/sparc-protos.h: Update.
13342         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
13344 2002-03-23  Richard Henderson  <rth@redhat.com>
13346         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
13347         _start or _init begins the text segment.
13349 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
13351         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
13352         not HOST_WIDEST_INT.
13353         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
13355 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
13357         PR java/5489
13358         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
13359         operand argument to output_return_instruction.
13360         * arm.c (arm_print_operand, case 'd'): If the operand is
13361         const_true_rtx then just return.
13362         (arm_print_operand, case 'D'): If the operand is const_true_rtx
13363         then abort.
13365 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
13367         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
13368         (Warning Options): Document -Wswitch-default.
13369         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
13370         -Wswitch.
13371         (warn_switch_default): Define variable.
13372         (warn_switch): Update comment.
13373         * flags.h (warn_switch_default): Declare variable.
13374         (warn_switch): Update comment.
13375         * stmt.c (expand_end_case): Check for and, when
13376         warn_switch_no_default, warn of a missing default case.
13378 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
13380         * real.h (N): Special case 128 bit doubles.
13382         * combine.c (simplify_comparison): When widening modes, ignore
13383         sign extension on CONST_INTs.
13385 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
13387         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
13388         passed to adjust_address.  Fix comment formatting.
13391 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
13393         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
13394         Always make REAL_VALUE_TYPE a struct containing an array of
13395         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
13396         big it is.  Don't declare or use union real_extract.
13398         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
13399         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
13400         (print_operand), config/arm/arm.c (output_move_double),
13401         config/arm/arm.md (consttable_4, consttable_8),
13402         config/romp/romp.c (output_fpops), config/s390/s390.h
13403         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
13404         (xtensa_output_literal): Don't use union real_extract.
13406         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
13407         (sfmode_constant_to_ulong), config/ns32k/merlin.h
13408         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
13409         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
13410         (PRINT_OPERAND): Don't use local version of union
13411         real_extract.
13413         * config/convex/convex.c (check_float_value), config/vax/vax.c
13414         (vax_float_literal), config/m88k/m88k.md (divdf3),
13415         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
13416         config/pdp11/pdp11.c (output_move_quad): Don't do host
13417         arithmetic on target floating point quantities.
13419         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
13420         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
13422         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
13423         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
13425         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
13426         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
13427         INFINITY.
13428         * print-rtl.c (print_rtx): Disable code which needs
13429         floating-point emulator.
13430         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
13431         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
13432         depending on HOST_FLOAT_FORMAT to be defined properly.
13434         * config/1750a/1750a.c (get_double, float_label): Delete.
13435         (print_operand): Delete huge commented-out chunk.  Use
13436         REAL_VALUE_TO_DECIMAL.
13437         * config/1750a/1750a-protos.h: Delete prototypes of deleted
13438         functions.
13439         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
13440         IEEE_FLOAT_FORMAT.
13441         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
13442         Use REAL_VALUE_TO_DECIMAL as ELF version does.
13443         * config/m88k/m88k.c (real_power_of_2_operand,
13444         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
13445         real_extract out of the union; run the input through
13446         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
13447         from that into the union.
13448         * config/pdp11/pdp11.c (output_move_double): Rearrange
13449         parentheses to make automatic indenter happy.
13451         * doc/tm.texi (Cross-compilation): Rename node to "Floating
13452         Point" and rewrite to describe current situation.  Also adjust
13453         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
13454         match code.
13455         * doc/rtl.texi: Adjust cross reference.
13457 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
13459         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
13460         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
13461         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
13462         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
13463         prevent use of sp as a reload register.
13464         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
13465         non_acc_reg_operand.
13466         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
13467         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
13468         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
13469         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
13471 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13473         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
13474         * cpplex.c (unterminated): Delete.
13475         (parse_string): No string literal may extend over multiple
13476         lines.  Suppress the error when preprocessing assembly.
13477         * cppmain.c (scan_translation_unit): Strings are single-line.
13479         * doc/cpp.texi: Update to match.
13481 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13483         PR optimization/5854
13484         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
13485         Shut up warnings.
13486         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
13487         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
13488         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
13489         const0 if scratch register was not allocated.
13490         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
13491         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
13492         with GEN_INT (...).
13493         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
13494         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
13495         with GEN_INT (...) everywhere.  Remove constraints in define_split
13496         patterns.
13497         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
13498         require scratch register for setting 0 into regs/non-pushable memory.
13500 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13502         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
13503         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
13505 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
13507         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
13508         * cppinit.c (cpp_create_reader):  On by default.
13509         (cpp_handle_option):  Handle -W[no-]endif-labels.
13510         (cpp_post_options):  Also enable if -pedantic.
13511         * cpplib.c (do_else):  Use it.
13512         (do_endif):  Likewise.
13513         * doc/cppopts.texi:  Document new option.
13514         * doc/invoke.texi:  Document new option.
13516 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
13518         * config/i386/i386.c, config/i386/i386.md: Change all occurences
13519         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
13521 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13523         * flow.c (calculate_global_regs_live): Clear aux fields of
13524         ENTRY and EXIT.
13526 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13528         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
13529         REG or MEM subregs, pass rtx * instead of rtx to it.
13530         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
13531         rtx * instead of rtx to alter_subreg.
13532         * config/m32r/m32r.c (gen_split_move_double): Likewise.
13533         * config/pj/pj.c (pj_output_rval): Likewise.
13535 2002-03-22  Richard Henderson  <rth@redhat.com>
13537         PR target/3177
13538         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
13539         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
13540         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
13541         (ia64_expand_prologue): Look at int_regs, not words, for number
13542         of incomming int regs.
13544 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
13546         * expr.c (expand_expr): A RESULT_DECL is part of a call.
13548 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
13550         * toplev.c (flag_loop_optimize, flag_crossjumping):
13551         New static variables.
13552         (rest_of_compilation): Conditionalize crossjumping and
13553         loop optimizer.
13554         (parse_options_and_default_flags): Default loop_optimize and
13555         crossjumping.
13556         (lang_independent_options): Add -fcrossjumping and -floop-optimize
13557         * invoke.texi (crossjumping, loop-optimize): Document.
13559 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13561         * real.c (eiisneg): Move outside #ifdef NANS.
13563 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
13565         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
13566         frequencies match; avoid match on different loop depths.
13567         (try_crossjump_to_bb): Kill tests that no longer brings time
13568         savings.
13569         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
13570         updating code.
13571         (split_edge): Likewise.
13573         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
13574         variable.
13576         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
13577         * cfgrtl.c: Include insn-config.h
13578         (split_block) Dirtify block in presence of conditional execution
13580 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13582         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
13583         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
13584         (function_arg): Constify CUMULATIVE_ARGS.
13585         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
13586         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
13587         (UNITS_PER_DOUBLE): New macro.
13588         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
13589         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
13590         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
13591         fp_regs and stack_words.
13592         (EABI_FLOAT_VARARGS_P): New macro.
13593         * config/mips/mips.c (struct mips_arg_info): New.
13594         (mips_arg_info): New function.
13595         (function_arg_advance): Use it.  Add adjustment instructions here
13596         rather than in function_arg.
13597         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
13598         for VOIDmode at the beginning of the function.
13599         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
13600         (function_arg_pass_by_reference): Likewise.
13601         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
13602         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
13603         (mips_va_start): Likewise.  Use the new stack_words field of
13604         CUMULATIVE_ARGS to set up overflow area.  Reformat.
13605         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
13606         doubles and other types, aligning the overflow pointer for non-doubles
13607         too.  Remove some code duplication.  Replace hard-coded constants.
13609 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13611         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
13612         (CLASS_UNITS): Undefine.
13613         (CLASS_MAX_NREGS): Use FP_INC.
13614         * config/mips/mips.c (compute_frame_size): Likewise.
13615         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
13617 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13619         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
13620         prototype, and handle lexing numbers and identifiers.
13621         (parse_identifier): Update to new form of parse_slow.
13622         (parse_number): Fast path only, use parse_slow otherwise.
13623         (_cpp_lex_direct): Update calls to parse_number.
13625 2002-03-21  DJ Delorie  <dj@redhat.com>
13627         * bb-reorder.c (make_reorder_chain_1): Protect against
13628         when redundant edges are omitted.
13629         * predict.c (dump_prediction): Likewise.
13631 2002-03-21  Richard Henderson  <rth@redhat.com>
13633         PR target/5996
13634         * fixinc/inclhack.def (solaris_stdio_tag): New.
13635         * fixinc/fixincl.x: Regenerate.
13637 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13639         PR c/5597
13640         * c-typeck.c (process_init_element): Flag non-static
13641         initialization of a flexible array member as illegal.
13643 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
13645         * config/rs6000/t-linux64: New.
13646         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
13647         t-ppccomm.  Use t-rs6000 and t-linux64.
13648         (powerpc64-*-gnu* <tmake_file>): Likewise.
13649         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
13650         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
13651         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
13653 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
13655         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
13656         flag_really_no_inline instead of optimize == 0.
13658         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
13660         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
13662         * flags.h (flag_really_no_inline): New.
13664         * c-common.c (c_common_post_options): Initialize
13665         flag_really_no_inline.
13667         * toplev.c (flag_really_no_inline): New.
13669 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13671         * config/avr/avr.md (length): Fix length computation for
13672         conditional branches.
13674 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
13676         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
13677         sdbout.o, profile.o): Update.
13678         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
13679         langhook.
13680         * c-common.h (gettags): Move here from tree.h.
13681         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
13682         insert_block, getdecls, kept_level_p, global_bindings_p): New.
13683         * dbxout.c (dbxout_init): Use getdecls langhook.
13684         * expr.c (expand_expr): Use insert_block langhook.
13685         * fold-const.c: Include langhooks.h.
13686         (fold_range_test, fold_binary_op_with_conditional_arg,
13687         fold): Use global_bindings_p langhook.
13688         * integrate.c (expand_inline_function): Use insert_block langhook.
13689         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
13690         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
13691         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
13692         LANG_HOOKS_GETDECLS): New.
13693         (LANG_HOOKS_INITIALIZER): Update.
13694         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
13695         langhook.
13696         * langhooks.h (struct lang_hooks_for_decls): New.
13697         (struct lang_hooks): Update.
13698         * profile.c: Include langhooks.h.
13699         (output_func_start_profiler): Use new langhooks.
13700         * sdbout.c: Include langhooks.h.
13701         (sdbout_init, sdbout_finish): Use getdecls langhook.
13702         * stmt.c: Include langhooks.h.
13703         (expand_fixup, fixup_gotos): Use new langhooks.
13704         * stor-layout.c: Include langhooks.h.
13705         (variable_size): Use global_bindings_p langhook.
13706         * toplev.c (compile_file): Use getdecls langhook.
13707         * tree-inline.c (remap_block): Use insert_block langhook.
13708         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
13709         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
13711 2002-03-21  Richard Henderson  <rth@redhat.com>
13713         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
13714         constants in .data when -fpic.
13716 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13718         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
13719         where appropriate.
13721 2002-03-21  Tom Tromey  <tromey@redhat.com>
13723         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
13725 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13727         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
13729         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
13731 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13732             Richard Henderson  <rth@redhat.com>
13734         PR c/5354
13735         * c-common.c (c_expand_expr): Preserve result of a statement
13736         expression if needed.
13738 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13740         PR bootstrap/4195
13741         * genrecog.c (maybe_both_true_mode): Remove.
13742         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
13743         * machmode.def (Pmode): Likewise.
13745 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
13747         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
13748         (nonlocal_mentioned_p_1): New function.
13749         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
13750         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
13751         (mark_constant_function): Recognize pure functions.
13752         * rtl.h (global_reg_mentioned_p): New prototype.
13753         * rtlanal.c (global_reg_mentioned_p,
13754         global_reg_mentioned_p_1): New function.
13756 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13758         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
13759         UNIX assert.h.
13760         * fixinc/fixincl.x: Regenerate.
13762 2002-03-20  Jason Merrill  <jason@redhat.com>
13764         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
13766 2002-03-20  Michael Meissner  <meissner@redhat.com>
13768         * doc/invoke.texi (Optimize Options): Document that -O2 sets
13769         -fstrict-aliasing.
13771 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13773         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
13774         ".literal_position" directive before the constant pool.
13776 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13778         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
13779         Add Craig Rodrigues.
13780         Add Brad Lucier to testers.
13782 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13784         PR target/4792
13785         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
13786         to if_then_else.
13787         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
13788         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
13789         instead of insn_extract.
13791 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13793         PR bootstrap/4192
13794         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
13796         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
13797         stmt if some case has been output.
13799 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13801         PR c/5972
13802         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
13803         movsfcc_1, movdfcc_1): Add %O2.
13804         * config/i386/i386.c (print_operand): Handle %ON.
13805         Print . before float condition codes in Sun as cmov syntax.
13806         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
13807         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
13808         no longer true.
13810 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
13812         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
13813         return instruction if PC was popped.
13815 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13817         * config/xtensa/xtensa.md: Remove unused type attributes.
13818         (adddi_carry, subddi_carry): Change type attribute to "multi".
13820 2002-03-19  Dale Johannesen  <dalej@apple.com>
13822         PR optimization/5999, middle-end/5731
13823         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
13824         multiplications by reciprocals.
13826 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
13828         * Makefile.in: Update.
13829         * c-common.c: Include langhooks.h.
13830         (inline_forbidden_p): Use new hook.
13831         * diagnostic.c: Include langhooks.h.
13832         (format_with_decl, announce_function,
13833         default_print_error_function): Use new hook.
13834         * dwarf2out.c (dwarf2_name): Use new hook.
13835         * function.c: Include langhooks.h.
13836         (init_function_start): Use new hook.
13837         * langhooks-def.h (lhd_decl_printable_name): New.
13838         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
13839         (LANGHOOKS_INITIALIZER): Update.
13840         * langhooks.c (lhd_decl_printable_name): New.
13841         * langhooks.h (struct lang_hooks): New hook.
13842         * toplev.c (decl_name, decl_printable_name): Remove.
13843         (open_dump_file): Use new hook.
13844         (process_options): Remove old hook.
13845         * tree.h (decl_printable_name): Remove.
13846 objc:
13847         * objc-act.c (objc_init): Remove old hook.
13848         (objc_printable_name): Export.
13849         * objc-act.h (objc_printable_name): New.
13850         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13852 2002-03-19  Jim Blandy  <jimb@redhat.com>
13854         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
13855         the start_source_file debug hook, not the current line number.
13857 2002-03-19  Richard Henderson  <rth@redhat.com>
13859         * flow.c (EH_USES): Provide default.
13860         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
13861         * doc/tm.texi (EH_USES): New.
13863         * config/ia64/ia64.c (ia64_eh_uses): New.
13864         * config/ia64/ia64-protos.h: Update.
13865         * config/ia64/ia64.h (EH_USES): New.
13867 2002-03-19  Richard Henderson  <rth@redhat.com>
13869         * varasm.c (output_constant_def): Fix stupid typo.
13871 2002-03-19  Richard Henderson  <rth@redhat.com>
13873         PR 5879
13874         * except.c (current_function_has_exception_handlers): New.
13875         * except.h: Declare it.
13876         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
13877         Combine tests that disable all sibcalls for the function.
13879 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
13881         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
13882         for INTEGER_CST.
13884 2002-03-19  Richard Henderson  <rth@redhat.com>
13886         PR 5977, 5991
13887         * config/ia64/ia64.c: Revert 2002-03-01 patch.
13888         * config/ia64/ia64.h (INIT_EXPANDERS): New.
13890 2002-03-19  Jim Blandy  <jimb@redhat.com>
13892         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
13893         name, even if the replacement list contains no tokens, as required
13894         by Dwarf.
13896 2002-03-19  Jason Merrill  <jason@redhat.com>
13898         * varasm.c (globalize_decl): Get the name from the RTL, not
13899         DECL_ASSEMBLER_NAME.
13901         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
13903 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
13905         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
13906         subdi_carry): Define.
13908 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13910         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
13911         about -fpic/-fPIC if extra_warnings set.
13913 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13915         * expr.c (expand_expr): Sign-extend CONST_INT generated from
13916         TREE_STRING_POINTER.
13917         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
13919 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13921         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
13922         in favor of SP if FRAME_POINTER_REQUIRED is false.
13924 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
13926         * emit-rtl.c (gen_int_mode): New function.
13927         * rtl.h: Prototype for it.
13928         * combine.c (make_extraction, simplify_comparison), expmed.c
13929         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
13930         (convert_modes, store_field), optabs.c (expand_fix),
13931         simplify-rtx.c (neg_const_int, simplify_unary_real),
13933         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
13934         Use it instead of GEN_INT (trunc_int_for_mode (...)).
13936 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
13938         PR c/5656
13939         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
13940         convert_parm_for_inlining.
13941         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13942         Define.
13943         * langhooks-def.h: Likewise.
13944         * objc/objc-lang.c: Likewise.
13945         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
13946         function.
13947         * tree-inline.c (initialize_inlined_parameters):
13948         Call convert_parm_for_inlining lang hook if needed.
13949         * c-typeck.c (c_convert_parm_for_inlining): New function.
13950         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
13952 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
13954         * calls.c (precompute_arguments): Do not assume that temporaries
13955         can be destroyed after expanding the argument.
13956         (expand_call): Likewise.
13958 2002-03-15  Eric Christopher  <echristo@redhat.com>
13960         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
13961         Fix register preference on last change.
13962         * config/mips/mips.c (mips_return_in_memory): New function.
13963         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
13964         * config/mips/mips-protos.h: Declare.
13965         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
13966         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
13968 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
13970         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
13971         a register too.
13972         (anddi3, iorsi3): Likewise.
13974         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
13975         use %gprel for symbols that are going to be placed in linkonce
13976         sections.
13978         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
13979         RETURN_ADDRESS_POINTER_REGNUM to $ra.
13980         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
13981         not needed.  Disregard leaf_function_p().
13982         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
13983         mips16 frame pointer.
13984         * config/mips/mips.md (store ra): Only to small SP offsets.
13985         2001-08-22  Graham Stott  <grahams@redhat.com>
13986         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
13987         return a REG rtx for the return address register.
13989 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
13991         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
13992         constant-pool addresses as "mode-dependent".
13993         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
13995 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
13997         PR target/5740
13998         * expr.c (emit_group_load): Use extract_bit_field if
13999         needed for CONCAT arguments.
14001 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
14003         PR target/4863
14004         * arm.md (tablejump): Make this a define_expand.  For PIC add the
14005         offset to the base of the table.
14006         (thumb_tablejump): Matcher for Thumb tablejump insn.
14007         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
14008         as the difference of two labels.
14009         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14010         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
14011         tables in the code.
14012         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14013         * arm.c (get_jump_table_size): If the table is not in the text
14014         section, return zero.
14016 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
14018         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
14019         of gen_rtx_SUBREG.
14020         (arm_reload_out_hi): Use gen_lowpart instead of
14021         gen_rtx_SUBREG to access QImode components.
14022         * config/arm/arm.md: Disable zero_extend split for QImode
14023         subregs in BIG_ENDIAN mode.
14024         (storehi_bigend): Match use of least significant byte.
14025         (storeinthi): Remove extraneous SUBREG.
14026         Add missing construction of operands[2].
14027         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
14028         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
14029         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
14031 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
14033         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
14034         any_operand.
14036 2002-03-17  Richard Henderson  <rth@redhat.com>
14038         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
14039         explicitly.
14041 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
14043         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
14044         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
14046 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14048         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
14050         * predict.c (estimate_bb_frequencies): Delete unused variables.
14052 2002-03-17  Richard Henderson  <rth@redhat.com>
14054         * config/ia64/ia64.c (ia64_attribute_table): Move before
14055         targetm definition.  Make static.
14057 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
14059         * c-common.h (yyparse, c_common_parse_file): New.
14060         * c-lang.c: Include c-common.h.
14061         (LANG_HOOKS_PARSE_FILE): Redefine.
14062         * c-lex.c: Include c-common.h.
14063         (yyparse): Rename c_common_parse_file.  Call yyparse.
14064         * c-parse.in (yyparse): Remove macro.
14065         * c-tree.h (yyparse_1): Remove.
14066         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
14067         (LANG_HOOKS_INITIALIZER): Update.
14068         * langhooks.h (struct lang_hoooks): New hook parse_file.
14069         * toplev.c (compile_file): Use parse_file hook.
14070         * tree.h (yyparse): Remove.
14071         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
14073 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
14075         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
14076         float_truncate, not fix.
14077         ("*truncdfsf2_real"): Ditto.
14078         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
14080         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
14082 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
14084         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
14085         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
14086         where appropriate.  Make the second reference to
14087         leaf_function_p a function call, as intended.  Reindented.
14089         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
14090         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
14092         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
14093         add register to non-constant into sp.
14095         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
14096         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
14097         (mips16_gp_pseudo_rtx): Lose.
14098         (INIT_EXPANDERS): Deleted.
14099         * config/mips/mips.c (mips_init_machine_status): New.
14100         (mips_free_machine_status): New.
14101         (mips_mark_machine_status): New.
14102         (override_options): Set them.
14103         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
14104         (struct machine_function): ... new.  Replaced all references.
14105         (mips_add_gc_roots): Don't mark them.
14106         (embedded_pic_fnaddr_reg): New, extracted from...
14107         (embedded_pic_offset): ... here.
14108         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
14109         (movsi): Likewise.
14111 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
14113         * cppinit.c: Revert -MD removal.
14115 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14117         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
14118         soft registers by default for 68HC12.
14119         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
14120         when compiling with -fomit-frame-pointer.
14121         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
14122         (expand_epilogue): Likewise.
14123         (m68hc11_gen_rotate): Use exg when rotating by 8.
14125 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14127         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
14128         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
14129         (splits): Remove unused add splits.
14130         ("*addhi3_68hc12"): Tune constraints.
14131         ("addhi_sp"): Try to use X instead of Y in all cases and if the
14132         constant fits in 8-bits and D is dead use abx/aby instructions.
14133         ("*addhi3"): Remove extern declaration of ix_reg.
14134         ("*subsi3"): Optimize and provide new split.
14135         ("subhi3"): Cleanup.
14136         ("*subhi3_sp"): Avoid saving X if we know it is dead.
14137         (arith splits): For 68hc12 save the address register on the stack
14138         and do the arithmetic operation with a pop.
14140 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14142         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
14143         allocating QImode in address registers.
14144         ("*movqi_m68hc11"): Likewise.
14146 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
14148         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
14150 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
14152         * cppinit.c (print_help): Display -MD and -MMD.
14153         Don't display usage string.  Update assertion syntax and
14154         typo.
14155         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
14156         (cpp_handle_option): Update.
14158 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
14160         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
14161         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
14162         and define it so that regardless of target CPU size,
14163         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
14164         of "int" rather than "long."
14166 2002-03-15  Richard Henderson  <rth@redhat.com>
14168         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
14169         size as a tree.
14171 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14173         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
14174         ("tstqi" split): Avoid using memory for tstqi on address register.
14175         (splits): Remove constraints.
14176         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
14177         ("cmpdf", "cmpsf"): Remove since not used.
14178         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
14179         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
14181 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14183         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
14184         ("neghi2"): Tighten constraints.
14185         ("one_cmplsi2"): Optimize and simplify split.
14186         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
14188 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14190         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
14191         and split of AND operation to clear the upper bits.
14192         ("*logicalsi3_zextqi"): Likewise.
14193         ("*logicallhi3_zexthi_ashift8"): Likewise.
14194         ("*logicalsi3_silshr16"): Likewise.
14195         ("logicalsi3_silshl16"): Likewise.
14196         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
14198 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14200         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
14201         (m68hc11_indirect_p): New function.
14202         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
14203         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
14204         TARGET_M6812.
14205         (asm_print_register): Likewise.
14206         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
14207         (m68hc11_indirect_p): Declare.
14208         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
14209         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
14210         (TARGET_SWITCHES): New option -mrelax.
14211         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
14212         destination.
14213         ("iorsi3", "xorsi3"): Likewise.
14214         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
14215         ("*andhi3_mem"): New to handle destination in memory with bclr
14216         and a scratch register.
14217         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
14218         ("*andhi3_const"): New when operand2 is constant.
14219         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
14220         ("*andhi3_gen"): Cleanup of the old "andhi3".
14221         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
14222         ("xorqi3"): Update constraints.
14224 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14226         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
14227         for reg_equiv_memory_loc when the operand is a register that does
14228         not get a hard register (stack location).
14229         (tst_operand): After reload, accept all memory operand.
14230         (symbolic_memory_operand): Fix detection of symbolic references.
14231         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
14232         accept symbols and any constant.
14234 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14236         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
14237         note on the insn that sets the soft frame register.
14238         (must_parenthesize): ix and iy are also reserved names.
14239         (print_operand_address): One more place where parenthesis are required
14240         to avoid confusion with register names.
14241         (m68hc11_gen_movhi): Allow push of stack pointer.
14242         (m68hc11_check_z_replacement): Fix handling of parallel with a
14243         clobber.
14244         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
14245         the replacement register is.
14246         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
14247         and D8_REGS classes.
14248         (MODES_TIEABLE_P): All modes are tieable except QImode.
14250 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14252         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
14253         (___subdi3): Likewise.
14254         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
14255         (__map_data_section): Optimize 68hc11 case.
14257 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14259         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
14260         than a shift to avoid adding a register with itself.
14261         (m68hc11_memory_move_cost): Take into account NO_REGS.
14262         (m68hc11_register_move_cost): Update and use memory move cost
14263         for soft registers.
14264         (m68hc11_address_cost): Make cost of valid offset not 0 so that
14265         it gives more opportunities to cse to optimize.
14266         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
14267         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
14269 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
14271         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
14272         * c-common.def (CLEANUP_STMT): New tree node.
14273         * c-common.h (CLEANUP_DECL): New macro.
14274         (CLEANUP_EXPR): Likewise.
14275         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
14276         * expr.c (expand_expr): Tidy.
14277         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
14278         * tree-inline.c (initialize_inlined_parameters): Clean up
14279         new local variables.
14281 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
14283         PR bootstrap/4128
14284         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
14285         before movrXX only, use reg_overlap_mentioned_p.
14286         Only special case NE if just one insn can be generated.
14288 2002-03-15  Jason Merrill  <jason@redhat.com>
14290         * varasm.c (assemble_variable): Call resolve_unique_section before
14291         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
14292         of error_mark_node.
14294 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
14296         PR target/5170
14297         * arm.md (split pattern for thumb shiftable immediates): Add comment
14298         explaining non-obvious test.
14300 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
14302         PR target/5712
14303         * arm.md (movaddr, movaddr_insn): Delete.
14305 2002-03-15  Jason Merrill  <jason@redhat.com>
14307         * toplev.c (wrapup_global_declarations): Clarify variable handling.
14308         -fkeep-static-consts doesn't apply to comdats.
14310 2002-03-14  Richard Henderson  <rth@redhat.com>
14312         * c-decl.c: Include c-pragma.h.
14313         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
14314         (finish_function): Tidy.
14315         * c-pragma.c: Include c-common.h.
14316         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
14317         (handle_pragma_weak): Use them.
14318         (init_pragma): Register pending_weaks.
14319         * c-pragma.h (maybe_apply_pragma_weak): Declare.
14320         * print-tree.c (print_node): Print DECL_WEAK.
14321         * varasm.c (mark_weak_decls): Remove.
14322         (remove_from_pending_weak_list): Remove.
14323         (add_weak): Remove.
14324         (asm_emit_uninitialised): Call globalize_decl for weak commons.
14325         (weak_decls): Make a tree_list.
14326         (declare_weak): Cons weak_decls directly.
14327         (globalize_decl): Remove weak_decls elements directly.
14328         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
14329         symbols.  Don't pretend to handle aliases.
14330         (init_varasm_once): Update weak_decls registry.
14331         * Makefile.in: Update dependencies.
14333 2002-03-14  Richard Henderson  <rth@redhat.com>
14335         PR target/5312
14336         * config/ia64/ia64.c: Include tm_p.h last.
14337         (gen_nop_type): Remove duplicate definition.
14338         (cycle_end_fill_slots): Set sched_data for second L slot.
14339         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
14340         (nop_cycles_until): Fix typos.
14342 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
14344         PR optimization/5891
14345         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
14347 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
14349         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
14350           descriptors correctly.
14352 2002-03-14  Michael Meissner  <meissner@redhat.com>
14354         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
14355         100, allowing MAX_UNROLLED_INSNS to be overridden.
14357         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
14358         --param.
14360         * unroll.c (params.h): Include.
14361         (MAX_UNROLLED_INSNS): Delete, now in params.h.
14363         * doc/invoke.texi (--param max-unroll-insns): Document.
14365         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
14367 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
14369         * arm.md: Fix warnings about constraints in peepholes and splits.
14371 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
14373         * cpphash.h (struct lexer_state): Remove line_extension member.
14374         * cpplib.c (dequote_string, do_linemarker): New functions.
14375         (linemarker_dir): New data object.
14376         (DIRECTIVE_TABLE): No longer need to interpret #line in
14377         preprocessed source.  Delete obsolete comment about return
14378         values of handlers.
14379         (end_directive, directive_diagnostics, _cpp_handle_directive):
14380         Don't muck with line_extension.
14381         (directive_diagnostics): No need to issue warnings for
14382         linemarkers here.
14383         (_cpp_handle_directive): Issue warnings for linemarkers here,
14384         when appropriate.  Dispatch linemarkers to do_linemarker, not
14385         do_line.
14386         (do_line): Code to handle linemarkers split out to do_linemarker.
14387         Convert escape sequences in filename argument, both places.
14389         * cppmacro.c (quote_string): Rename cpp_quote_string and
14390         export.  All callers changed.
14391         * cpplib.h (cpp_quote_string): Prototype.
14392         * cppmain.c (print_line): Call cpp_quote_string on to_file
14393         before printing it.
14395         * doc/cpp.texi: Document that escapes are now interpreted in
14396         #line and in linemarkers, and that non-printing characters are
14397         converted to octal escapes when linemarkers are generated.
14399 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
14401         * emit-rtl.c (try_split): Use delete_insns.
14402         * recog.c (split_all_insns): Fix terminating condition.
14404 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
14405             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
14407         PR target/5828
14408         * arm.c (arm_output_epilogue): Fix floating-point register save
14409         adjustment when using a frame pointer.
14411 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
14413         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
14414         * config/mips/mips.c (compute_frame_size): Retrofit them here.
14415         (save_restore_insns, mips_expand_epilogue): And here.
14416         (build_mips16_call_stub): And here.
14417         (mips_function_value): Use the new macros to decide whether a single
14418         or complex float can be returned in floating-point registers.  Return
14419         a parallel rtx in the complex case.
14421 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
14423         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
14424         call after liveness analysis.
14426         * recog.c (split_insn): Use delete_insn_and_edges.
14428         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
14429         instructions to have branch prediction notes.
14430         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
14432 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
14434         * configure.in: Don't pass -Wno-long-long to a ADA compiler
14435         that doesn't support it.
14436         * configure: Regenerate.
14438 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14440         PR target/5626
14441         * config/sparc/sparc.md (normal_branch, inverted_branch,
14442         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
14443         inverted_fp_branch): Adjust calls to output_cbranch.
14444         Set length attribute.
14445         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
14446         output_v9branch.  Set length attribute.
14447         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
14448         predicates.
14449         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
14450         (output_cbranch): Likewise.  Handle far branches.
14451         (output_v9branch): Handle far branches.
14452         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
14453         Adjust prototypes.
14454         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
14455         noov_compare64_op predicates.
14457 2002-03-13  Jason Merrill  <jason@redhat.com>
14459         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
14460         into the function and constify it.
14461         * gthr-dce.h, gthr-solaris.h: Likewise.
14463 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
14465         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
14466         * config/rs6000/rs6000.c (rs6000_va_arg): Use
14467         std_expand_builtin_va_arg if not ABI_V4.
14469 2002-03-13  Jason Merrill  <jason@redhat.com>
14471         * varasm.c (globalize_decl): New fn.
14472         (assemble_start_function): Use it.
14473         (asm_emit_uninitialized): Use it.
14474         (assemble_alias): Use it.
14475         (assemble_variable): Use it.
14477 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
14479         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
14480         2002-03-12 internal visibility change.
14481         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
14482         visibility into SYMBOL_REF_FLAG.
14484 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
14486         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
14487         VOIDmode operand.  Add compile-time optimization for constant results.
14489 2002-03-12  Jason Merrill  <jason@redhat.com>
14491         * c-typeck.c (convert_for_assignment): Don't allow conversions
14492         between pointers and references.  Only allow lvalues to convert to
14493         reference.
14495 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
14497         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
14498         before prologue, to avoid scheduling problems.
14500 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14502         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
14503         (ELIMINABLE_REGS): Add sfp->sp.
14504         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
14506 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14508         PR optimization/5892
14509         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
14511 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14513         * loop.c (basic_induction_var): Don't call convert_modes if mode
14514         classes are different.
14516 2002-03-12  Richard Henderson  <rth@redhat.com>
14518         PR optimization/5901
14519         * function.c (reposition_prologue_and_epilogue_notes): Position
14520         the markers after/before the last/first insn not deleted.
14522 2002-03-12  Richard Henderson  <rth@redhat.com>
14524         PR optimization/5878
14525         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
14526         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
14527         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
14529         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
14530         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
14531         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
14533         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
14534         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
14535         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
14536         also.  Don't set it if not flag_pic.
14537         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
14538         to be INVALID_REGNUM when not used.
14540 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
14542         * expmed.c (store_bit_field): Reset alias set for memory.
14543         (extract_bit_field): Same.
14545 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14547         * c-common.c (c_tree_code_type, c_tree_code_length,
14548         c_tree_code_name, add_c_tree_codes): Delete.
14549         * c-common.h (add_c_tree_codes): Delete.
14550         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
14551         Define.
14552         * c-objc-common.c (c_objc_common_init): Don't call
14553         add_c_tree_codes, instead set lang_unsafe_for_reeval.
14554         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
14555         objc_tree_code_name, add_objc_tree_codes): Delete.
14556         (objc_init): Don't call add_objc_tree_codes.
14557         * objc/objc-lang.c (tree_code_type, tree_code_length,
14558         tree_code_name): Define.
14559         * toplev.c (lang_independent_init): Don't set
14560         tree_code_length[IDENTIFIER_NODE].
14561         * tree.c (tree_code_type, tree_code_length, tree_code_name):
14562         Delete definitions, moved to language front-ends.
14563         * tree.def (IDENTIFIER_NODE): Hardwire the length.
14564         * tree.h (tree_code_type, tree_code_length, tree_code_name):
14565         Const-ify.
14566         (tree_code_length): Change type to unsigned char.
14568 2002-03-12  Richard Henderson  <rth@redhat.com>
14570         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
14571         internal visibility change.
14573 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14575         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
14576         validize_mem() instead of change_address to avoid clobbering
14577         memory attributes.
14579 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
14581         * c-lex.h (position_after_whitespace): Remove.
14583 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
14585         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
14586         (lex_string): Use unsigned char pointers.
14588 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14590         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
14591         is not a valid memory_operand.
14593 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14595         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
14596         * config/xtensa/lib1funcs.asm: Fix copyright to include
14597         special case for libgcc files.
14598         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
14599         (__divsi3): Likewise.
14600         (__umodsi3): Likewise.
14601         (__modsi3): Likewise.
14602         * config/xtensa/lib2funcs.S: Fix copyright to include
14603         special case for libgcc files.
14605 2002-03-12  Tom Rix  <trix@redhat.com>
14607         * collect2.c (resolve_lib_name): Move outside of
14608         OBJECT_FORMAT_COFF ifdef.
14609         (ignore_library): Same.
14611 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14613         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
14615 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14617         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
14618         to function_section before writing out the constant pool.
14620 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
14622         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
14623         zero_constant.
14624         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
14626 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
14628         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
14629         (adddi3): Likewise.
14630         (movdf): Likewise.
14631         (movdi): Likewise.
14632         (cmpsi splitter): Likewise.
14633         (modsi3): Fail if <= 0.
14634         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
14635         redundant test when HOST_BITS_PER_WIDE_INT != 32.
14636         (reg_or_sub_cint64_operand): Likewise.
14637         (num_insns_constant_wide): Optimize sign extension.
14638         (rs6000_legitimize_address): Likewise.
14640 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14642         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14643         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14645 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14647         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
14648         address calculation.
14650 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14652         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
14653         scratch register to DImode / TImode.
14654         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
14655         register used does not overlap the target.
14657 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14659         * Makefile.in (debug.o): Depend on debug.h.
14660         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
14661         * debug.c (do_nothing_debug_hooks): Likewise.
14662         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
14663         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
14664         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
14665         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14666         * dwarfout.c (dwarf_debug_hooks): Likewise.
14667         * integrate.c (output_inline_function): Likewise.
14668         * objc/objc-act.c (synth_module_prologue): Likewise.
14669         * sdbout.c (sdb_debug_hooks): Likewise.
14670         * toplev.c (debug_hooks): Likewise.
14671         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14673 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14675         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
14676         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
14677         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
14678         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
14679         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
14680         * defaults.h (POINTER_SIZE): Define.
14681         * doc/tm.texi (POINTER_SIZE): Document default.
14683 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14685         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
14687 2002-03-11  Richard Henderson  <rth@redhat.com>
14689         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
14690         if rebuild_label_notes_after_reload.
14692 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
14694         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
14695         emit pic register load if "internal" visibility.
14696         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
14697         (cris_expand_builtin_va_arg): Do all computations on trees.
14699 2002-03-11  Richard Henderson  <rth@redhat.com>
14701         * rtlanal.c: Include recog.h.
14702         (keep_with_call_p): Fix thinko.
14703         * Makefile.in (rtlanal.o): Update dependencies.
14705 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
14707         * genflags.c (gen_insn): Use IS_VSPACE.
14708         * genoutput.c (output_insn_data): Likewise.
14709         (process_template): Likewise.
14711 2002-03-11  Richard Henderson  <rth@redhat.com>
14713         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
14715 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14717         * Makefile.in: Update.
14718         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
14719         Update documentation.
14720         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
14721         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
14723 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
14725         * Makefile.in: Give texi2pod its input file as a command line
14726         argument, not on stdin.
14728 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
14729             Daniel Berlin  <dan@dberlin.org>
14731         C++ alias analysis improvement.
14732         * alias.c (record_component_aliases): Record aliases for base
14733         classes too.
14735 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
14737         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
14739 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
14741         * toplev.c (vms_fopen): Remove, not needed.
14743         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
14745         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
14747         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
14748         for FP, already done later.
14750         * toplev.c (debug_args): Add entry for VMS_DEBUG.
14751         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
14753 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
14755         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
14756         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
14757         LARGEST_EXPONENT_IS_NORMAL for the given mode.
14758         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
14759         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
14760         (ediv, emul, eldexp, esqrt): Likewise.
14761         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
14762         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
14763         (saturate): New function.
14764         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
14765         (make_nan): Use a saturation value instead of a NaN if
14766         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
14767         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
14768         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
14769         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
14770         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
14771         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
14772         !ROUND_TOWARDS_ZERO.
14773         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
14774         (ROUND_TOWARDS_ZERO): Document.
14776 2002-03-11  Andreas Jaeger  <aj@suse.de>
14778         * cfg.c (dump_flow_info): Remove unused variable.
14780 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
14782         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
14783         computations on trees.
14785 2002-03-10  Richard Henderson  <rth@redhat.com>
14787         PR 5693:
14788         * reload.c (copy_replacements_1): New.
14789         (copy_replacements): Use it to recurse through the rtx.
14791 2002-03-10  Richard Henderson  <rth@redhat.com>
14793         * loop.c (strength_reduce): Compute number of iterations as
14794         unsigned HOST_WIDE_INT.
14796 2002-03-10  Richard Henderson  <rth@redhat.com>
14798         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
14799         to move away from the end of the block.
14801 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
14803         PR preprocessor/5899
14804         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
14806 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14808         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
14810         * attribs.c (decl_attributes): Fix signed/unsigned warning.
14812 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
14814         * config/mmix/mmix.c: Improve comments.
14815         (mmix_target_asm_function_prologue): Drop variable
14816         empty_stack_frame.  Don't allocate unused slot above fp.
14817         (mmix_target_asm_function_epilogue): Mirror prologue changes.
14818         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
14819         brace in first column.
14820         (enum reg_class): Ditto.
14821         (FIRST_PARM_OFFSET): Now 0.
14822         (USER_LABEL_PREFIX): Remove #if 0:d definition.
14824 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14826         * combine.c (make_extraction): Fix error in last change.
14828 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14830         * c4x.c (c4x_fp_reglist): Const-ify.
14831         * cris.c (cris_print_operand): Likewise.
14832         * i386.c (ix86_va_arg): Likewise.
14833         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
14834         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
14835         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
14836         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
14837         * mcore.h (regno_reg_class): Likewise.
14838         * mips.c (gen_int_relational): Likewise.
14839         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
14840         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
14841         * pdp11.c (move_costs): Likewise.
14842         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
14843         * s390.c (s390_branch_condition_mnemonic, regclass_map):
14844         Likewise.
14845         * s390.h (regclass_map): Likewise.
14846         * sh.c (shift_amounts): Likewise.
14847         * sh.md (rotlsi3): Likewise.
14849 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14851         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
14852         (ne0+5): Use new clobber to generate proper shift pattern.
14853         Patch by Michael Matz <matz@kde.org>.
14855 2002-03-09  Andreas Schwab  <schwab@suse.de>
14857         * gcc.c (validate_all_switches): Also handle `%W{...}'.
14859 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14861         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
14863 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
14865         PR middle-end/5877
14866         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
14867         even for non-representable constants.
14869 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14871         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
14872         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
14873         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
14874         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
14875         (pop_function_context): Compute MAY_SHARE parameter for
14876         fixup_var_refs.
14877         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
14878         (gen_mem_addressof): Call fixup_var_refs with new parm.
14880         * combine.c (make_extraction): Don't make extension of CONST_INT.
14882 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14884         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
14885         in o32 and o64 ABIs.
14886         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
14887         but getting fixed-size structs passed in registers regardless of
14888         padding in o32 and o64 ABIs.
14890         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
14891         offset before loading address of argument passed by transparent
14892         reference.
14894 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14896         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
14898 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14900         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
14901         marker such that registers after it are saved.
14903 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14905         * sparc.c (arith_4096_operand): Fix error in last change.
14907 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14909         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
14910         defaults for MEABI.
14912 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14914         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
14915         vectors.
14917 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14919         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
14921 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14923         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
14924         removed; fix return value.
14925         * combine.c (combine_instructions): Dirtify blocks where we failed to
14926         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
14927         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
14929 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14931         * gcse.c (insert_insn_end_bb): Fix typo in last change.
14933 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
14935         * recog.c (peephole2_optimize): Re-distribute EH edges.
14937 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14939         * expr.c (expand_expr): Use unsave lang hook.
14940         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
14941         (LANG_HOOKS_INITIALIZER): Update.
14942         * langhooks.h (struct lang_hooks): New hook unsave.
14943         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
14944         (unsave_expr_1): Remove unused lang_unsave_expr_now.
14945         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
14946         (unsave_expr_now): Remove.
14947         * tree.h (unsave_expr_now, lang_unsave,
14948         lang_unsave_expr_now): Remove.
14949         (lhd_unsave): New.
14951 2002-03-08  Andreas Jaeger  <aj@suse.de>
14953         * flow.c (propagate_block_delete_insn): Remove unused variable.
14955 2002-03-08  Kazu Hirata  <kazu@hxi.com>
14957         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
14958         insn length for memory load/store.
14960 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14962         * doc/install.texi (--with-libiconv-prefix): Document.
14964 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
14966         * doc/sourcebuild.texi: Fix typo.
14968 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
14970         PR c/3711
14971         * builtins.c (std_expand_builtin_va_arg): Do all computations on
14972         trees.
14974 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14976         * rtl.c (copy_most_rtx): Move from here ...
14977         * emit-rtl.c (copy_most_rtx): ... to here.
14979 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14981         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
14982         SUBTARGET_CPP_SIZE_SPEC.
14983         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
14985         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
14987 2002-03-07  Matt Hiller  <hiller@redhat.com>
14989         * gensupport.c (first_dir_md_include): Renamed from include;
14990         change all references.
14991         (last_dir_md_include): Renamed from last_include; change all
14992         references.
14993         (init_md_reader): Unconditionally initialize base_dir whether or
14994         not filename is a relative path.
14996 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
14998         * config/fp-bit.c (_unord_f2): Compile it in even if
14999         US_SOFTWARE_GOFAST is enabled.
15001         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
15002         NULL_RTX.  Set all HFmode operations as NULL_RTX.
15003         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
15004         NULL_RTX, try reversing the comparison and the operands.
15006 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
15008         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
15009         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
15010         and MATCH_OP_DUP.
15012 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
15014         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
15016 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
15018         * basic-block.h (fixup_abnormal_edges): Declare.
15019         * reload1.c (fixup_abnormal_edges): New function.
15020         * reg-stack.c (convert_regs): Use it.
15022         * gcse.c (insert_insn_end_bb): Handle trapping insns.
15024         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
15026 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
15028         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
15029         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
15030         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
15031         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
15032         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
15033         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
15034         unless x and y could be infinite.
15035         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
15036         Check that the common type of both arguments is a real, even for
15037         targets without unordered comparisons.  Allow an integer argument
15038         to be compared against a real.
15039         (expand_tree_builtin): Use expand_unordered_cmp.
15040         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
15041         * cse.c (fold_rtx): Likewise.  Fix indentation.
15042         * fold-const.c (fold_real_zero_addition_p): New.
15043         (fold): Use it, and the new HONOR_... macros.
15044         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
15045         * jump.c (reversed_comparison_code_parts): After searching for
15046         the true comparison mode, use HONOR_NANS to decide whether it
15047         can be safely reversed.
15048         (reverse_condition_maybe_unordered): Remove IEEE check.
15049         * simplify-rtx.c (simplify_binary_operation): Use the new macros
15050         to decide which simplifications are valid.  Allow the following
15051         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
15052         and (a - -b) to (a + b).
15053         (simplify_relational_operation): Use HONOR_NANS.
15054         * doc/tm.texi: Document the MODE_HAS_... macros.
15056 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
15058         * combine.c (simplify_comparison): If simplifying a logical shift
15059         right and compare with constant, force the comparison to unsigned.
15061 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
15063         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
15065         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
15066         -mabi=no-altivec
15067         (alt_reg_names): Remove % for vrsave.
15069 2002-03-06  Richard Henderson  <rth@redhat.com>
15071         PR optimization/5844
15072         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
15073         if used indicates we've already emitted one copy of an operand.
15074         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
15075         (gen_split): Supply a non-null used.
15077 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
15079         * reload1.c (reload): Unshare all rtl after reload is done.
15081         * simplify-rtx.c (simplify_plus_minus): Do not abort,
15082         but simply fail if the expression is too complex to simplify.
15083         (simplify_gen_binary): Handle simplify_plus_minus failures.
15085 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
15087         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
15088         consistently call delete_trivially_dead_insns after CSE and GCSE;
15089         fix DFI_life dumping; do jump threading after liveness; do crossjumping
15090         after liveness2; update comment in last crossjumping.
15091         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
15093 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
15095         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
15096         after completing fast dead code elimination.
15098         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
15099         COMPARE operator.
15101 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
15103         * version.c:  Fix misplaced leading blanks on first line.
15105 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
15107         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
15109 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
15111         * cfgcleanup.c (mentions_nonequal_regs): New function.
15112         (thread_jump): Use it.
15113         * toplev.c (rest_of_compilation): Run jump threading after
15114         liveness.
15116 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
15118         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
15119         patch.
15121 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15123         * predict.c (estimate_bb_frequencies): Do not reload the
15124         frequencies from notes.
15126 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
15128         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
15129         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
15131         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
15132         delete_noop_moves): Return indeger.
15133         * flow.c (ndead): New variable.
15134         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
15135         BB argument; update callers.
15136         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
15137         (life_analysis): Do not call purge_all_dead_edges.
15138         (update_life_info): Return number of deleted insns; print statistics.
15139         (update_life_info_in_dirty_blocks): likewise.
15140         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
15141         return number of insns deleted.
15143         * cse.c: Include timevar.h
15144         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
15145         iterate until stabilizes; print statistics; return number of killed
15146         insns.
15147         * Makefile.in: (cse.o): Add timevar.h dependency
15148         * rtl.h (delete_trivially_dead_insns): New.
15149         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
15150         * toplev.c (rest_of_compilation): Update callers.
15152         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
15153         (try_optimize_cfg): Do not update liveness.
15154         (cleanup-cfg): Loop until try_optimize_cfg and dead code
15155         removal stabilizes; use delete_trivially_dead_insns.
15157         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
15159 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
15161         * cppmain.c (setup_callbacks): Disable #pragma and #ident
15162         callbacks when processing assembly language.
15164 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15166         * pa.h (ASM_FILE_END): Define.
15167         * som.h (ASM_FILE_END): Delete.
15169         * pa.c (function_arg): Don't pass floats in general registers in
15170         indirect calls if TARGET_ELF32.
15172 2002-03-05  Richard Henderson  <rth@redhat.com>
15174         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
15176 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
15178         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
15180 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
15182         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
15183         -r command line.  Don't hide any symbols if not building
15184         shared libgcc.
15186 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
15188         * cfg.c (dump_flow_info): Warn about profile mismatches.
15189         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
15190         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
15192 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
15194         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
15195         wide volatile memory by parts.
15197 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
15199         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
15200         is NULL.
15202 2002-03-05  Richard Henderson  <rth@redhat.com>
15204         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
15206 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
15208         * toplev.c (documented_lang_options): Document more
15209         language-specific options.
15210         * doc/invoke.texi (Warning Options): Correct documentation for
15211         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
15212         * c-decl.c (c_decode_option): Use a table to handle warning options.
15214 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
15216         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
15217         parameter to mmix_encode_section_info.
15218         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
15219         relocatably.  Always produce ELF, not mmo if linking relocatably.
15220         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
15221         first is non-zero, don't add symbol prefix.
15222         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
15223         prototype accordingly.
15225 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
15227         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
15229 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
15231         * configure.in: Increase required makeinfo version to 4.1.
15232         * configure: Regenerate.
15234 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
15236         * .cvsignore: Remove *.info* and genrtl*; these files are generated
15237         elsewhere now.
15239 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
15241         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
15242         * doc/invoke.texi: Fix @math uses.
15244 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
15246         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
15247         removal
15249 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
15251         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
15252         (powerpc-*-eabisimaltivec*): Same.
15254         * config/rs6000/t-ppcendian: New.
15256 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15258         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
15259         nonimmediate_src_operand and nonimmediate_lsrc_operand to
15260         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
15262 2002-03-03  Richard Henderson  <rth@redhat.com>
15264         * toplev.c (rest_of_decl_compilation): Revert last two changes.
15266 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
15268         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
15269         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
15270         tree.c, config/m68k/m68k.c:
15271         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
15272         REAL_ARITHMETIC blocks unconditional.  Delete some further
15273         #ifdef blocks predicated on REAL_ARITHMETIC.
15274         * flags.h, toplev.c: Delete remaining references to
15275         flag_pretend_float.
15277         * doc/invoke.texi: Remove documentation of -fpretend-float.
15278         * doc/tm.texi: Describe the various REAL_* macros as provided by
15279         real.h, not by the target configuration files.
15281         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
15282         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
15283         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15284         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
15285         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
15286         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
15287         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
15288         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
15289         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15290         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
15291         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15292         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
15293         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
15294         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
15295         config/xtensa/xtensa.h:
15296         Do not define, undefine, or mention in comments any of
15297         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
15298         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
15299         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
15300         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
15301         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
15302         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
15303         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
15304         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
15305         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
15307 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15309         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
15310         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
15311         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
15312         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
15313         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
15314         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
15315         Delete.
15316         * defaults.h (BITS_PER_WORD): Define.
15317         * doc/tm.texi (BITS_PER_WORD): Document default value.
15319         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
15320         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
15321         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
15323 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15325         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
15326         lieu of explicit sizeof/sizeof.
15327         * i386.c (override_options, ix86_init_mmx_sse_builtins,
15328         ix86_expand_builtin): Likewise.
15329         * mips.c (mips_add_gc_roots): Likewise.
15330         * mmix.c (mmix_output_condition): Likewise.
15331         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
15332         altivec_init_builtins): Likewise.
15333         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
15334         * cppexp.c (Nsuff, parse_number): Likewise.
15335         * cppinit.c (builtin_array_end): Likewise.
15336         * gcc.c (n_default_compilers, process_command): Likewise.
15337         * genpreds.c (output_predicate_decls): Likewise.
15338         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
15339         * lcm.c (N_ENTITIES): Likewise.
15340         * stor-layout.c (set_sizetype): Likewise.
15342 2002-03-03  Richard Henderson  <rth@redhat.com>
15344         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
15345         for types or labels.
15347 2002-03-03  Richard Henderson  <rth@redhat.com>
15349         * c-decl.c (start_decl): Initialized variables are not common.
15351 2002-03-02  Per Bothner  <per@bothner.com>
15353         * gcc.c (option_map):  Suport new --bootclasspath option.
15354         --CLASSPATH is now just an alias for --classpath.
15356 2002-03-02  Richard Henderson  <rth@redhat.com>
15358         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
15359         load if "internal" visibility.
15360         * doc/extend.texi: Document visibility meanings.
15362 2002-03-02  Richard Henderson  <rth@redhat.com>
15364         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
15365         to functions as well.
15367 2002-03-02  Richard Henderson  <rth@redhat.com>
15369         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
15370         (handle_visibility_attribute): Don't call assemble_visibility.
15371         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
15372         without asmspec.  Invoke assemble_alias when needed.
15373         * varasm.c (maybe_assemble_visibility): New.
15374         (assemble_start_function, assemble_variable, assemble_alias): Use it.
15376 2002-03-02  Richard Henderson  <rth@redhat.com>
15378         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
15379         invoke ENCODE_SECTION_INFO with first call flag.
15381         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
15382         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
15383         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
15384         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
15385         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
15386         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
15387         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
15388         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
15389         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
15390         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
15391         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
15392         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
15393         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
15394         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
15395         config/mcore/mcore-protos.h, config/mcore/mcore.c,
15396         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
15397         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
15398         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
15399         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
15400         config/sh/sh.h, config/sparc/sparc.h,
15401         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
15402         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
15403         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
15404         FIRST argument.  As needed, examine it and do nothing.
15406         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
15407         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15408         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
15410         * config/arm/t-pe (pe.o): Add dependencies.
15412 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15414         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
15415         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
15416         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
15417         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
15418         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
15419         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
15420         * defaults.h (BITS_PER_UNIT): Define.
15421         * doc/tm.texi (BITS_PER_UNIT): Document default value.
15423 2002-03-02  Kazu Hirata  <kazu@hxi.com>
15425         * config/h8300/h8300-protos.h: Add a prototype for
15426         compute_a_shift_length.
15427         * config/h8300/h8300.c (h8300_asm_insn_count): New.
15428         (compute_a_shift_length): Likewise.
15429         (h8300_adjust_insn_length): Do not adjust insn length of shift
15430         insns.
15431         * config/h8300/h8300.md (anonymous shift patterns): Use
15432         compute_a_shift_length.
15434 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15436         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
15437         trunc_int_for_mode.
15439         * emit-rtl.c (offset_address): Call update_temp_slot_address.
15441 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15443         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
15444         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
15445         * flags.h (flag_zero_initialized_in_bss): Declare.
15446         * toplev.c (flag_zero_initialized_in_bss): New flag.
15447         (lang_independent_options): Add flag_zero_initialized_in_bss.
15448         * tree.c (initializer_zerop): New function.
15449         * tree.h (initializer_zerop): Declare.
15450         * varasm.c (assemble_variable): If we can emit bss, put zero
15451         initializers in the bss section.
15453 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
15455         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
15456         like more than one symbol per .weak directive.
15458 2002-03-01  Richard Henderson  <rth@redhat.com>
15460         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
15461         adjust argument_pointer by pretend_args_size.
15462         (ia64_va_start): Adjust va_start address by -pretend_args_size.
15464 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15466         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
15468 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
15470         * toplev.c (rest_of_compilation): Delete dead jumptables before
15471         loop.
15472         * flow.c (delete_dead_jumptables): Make global.
15473         * rtl.h (delete_dead_jumptables): Declare.
15475 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
15477         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
15478         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
15479         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
15481 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15483         * config/h8300/h8300-protos.h: Fix formatting.
15484         * config/h8300/h8300.c: Likewise.
15485         * config/h8300/h8300.h: Likewise.
15487 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15489         * config/h8300/h8300.c (print_operand): Support 16-bit
15490         constant addresses.
15491         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
15493 2002-02-28  Richard Henderson  <rth@redhat.com>
15495         * expmed.c (store_bit_field): Prevent generation of CONCATs;
15496         pun complex values as integers; use gen_lowpart instead of
15497         gen_rtx_SUBREG.
15498         (extract_bit_field): Likewise.
15500 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
15501             David Edelsohn  <edelsohn@gnu.org>
15503         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
15504         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
15505         (SUPPORTS_WEAK): Likewise.
15506         * output.h (add_weak): Add tree param.
15507         * varasm.c (add_weak): Likewise.  Save decl.
15508         (struct weak_syms): Add decl field.
15509         (mark_weak_decls): New function.
15510         (init_varasm_once): ggc_add_root mark_weak_decls.
15511         (assemble_start_function): Use ASM_WEAKEN_DECL.
15512         (assemble_variable): Likewise.
15513         (assemble_alias): Likewise.
15514         (declare_weak): Pass decl to add_weak.
15515         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
15516         (remove_from_pending_weak_list): Declare and define for
15517         ASM_WEAKEN_DECL.
15518         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
15519         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
15520         * defaults.h (SUPPORTS_WEAK): Likewise.
15521         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15522         .weak for code sym.  Do emit .size for descriptor sym.
15523         (ASM_DECLARE_FUNCTION_SIZE): Define.
15524         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
15525         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
15526         .lglobl unless TARGET_XCOFF.  Formatting fixes.
15527         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15528         .weak for code sym.
15529         (HANDLE_PRAGMA_WEAK): Remove.
15530         (ASM_WEAKEN_LABEL): Remove.
15531         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
15533 2002-03-01  Jason Merrill  <jason@redhat.com>
15535         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
15536         (TARGET_EXPR_CLEANUP): New macro.
15538 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
15540         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
15541         to take ptr_extend into account as third type of extension.
15542         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
15543         fields used by SUBREG_PROMOTED_UNSIGNED_P.
15544         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
15545         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
15546         * calls.c (precompute_arguments): Use new macro.
15547         (expand_call): Ditto.
15548         * combine.c (nonzero_bits): Ditto.
15549         (record_promoted_value): Ditto.
15550         * expr.c (store_expr): Ditto.
15551         (expand_expr): Ditto.
15552         * function.c (assign_parms): Ditto.
15554 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
15556         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
15557         override -shared and -shared-libgcc.
15559 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
15561         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
15562         of "ultrasparc".
15563         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
15564         to be broken.
15566 2002-02-28  Richard Henderson  <rth@redhat.com>
15568         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
15569         4 cycle latency from MM producers.
15570         (ia64_internal_sched_reorder): Likewise with pipeline flush.
15572 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
15574         * mklibgcc.in: Don't use GNU make extension.
15576 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15578         * c-parse.in (STATIC): New terminal.
15579         (scspec): New non-terminal.  Update productions accordingly.
15580         (program): Remove bogus ifc / end ifc.
15581         (array_declarator): Simplify production using STATIC.
15583 2002-02-28  Jim Meyering  <meyering@lucent.com>
15585         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
15586         \a still means TARGET_BELL.
15588 2002-02-28  Richard Henderson  <rth@redhat.com>
15590         * haifa-sched.c (sched_emit_insn): New.
15591         (schedule_block): Use last_scheduled_insn to track last insn.
15592         * sched-int.h (sched_emit_insn): Prototype.
15593         * config/ia64/ia64.c (last_issued): Remove.
15594         (ia64_variable_issue): Don't set it.
15595         (nop_cycles_until): Use sched_emit_insn.
15597 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
15599         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
15600         extended constants.
15602 2002-02-28  Kazu Hirata  <kazu@hxi.com>
15604         * config/h8300/h8300.c: Fix formatting.
15605         * config/h8300/h8300.h: Likewise.
15607 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15609         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
15610         which may overwrite the high byte of the frame pointer.
15612 2002-02-28  Bo Thorsen  <bo@suse.de>
15614         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
15615         (STARTFILE_SPEC): Add 64 bit files.
15616         (ENDFILE_SPEC): Likewise.
15618 2002-02-28  Jason Merrill  <jason@redhat.com>
15620         * c-decl.c (finish_function): Only warn about missing return
15621         statement with -Wreturn-type.
15623 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
15625         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
15627         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
15628         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
15630 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
15632         * basic-block.h (BB_REACHABLE): Renumber.
15633         (BB_DIRTY, BB_NEW): New flags.
15634         (clear_bb_flags): Declare.
15635         (update_life_info_in_dirty_blocks): Declare.
15636         * cfg.c (clear_bb_flags): New function.
15637         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
15638         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
15639         reorder_insns, emit_insn_after): Mark block as dirty.
15640         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
15641         (update_life_info_in_dirty_blocks): New function.
15642         * recog.c (apply_change_group): Dirtify block.
15644         * cse.c (cse_insn): Reorder emitting of jump insn to keep
15645         cfg consistent.
15646         * gcse.c (delete_null_pointer_checks): Likewise.
15648         * toplev.c (dump_file_index): Move cse2 after bp,
15649         add DFI_null
15650         (dump_file_info): Similary.
15651         (rest_of_compilation): Avoid most of CFG rebuilds;
15652         do first if converision after null pointer checks, do cse2
15653         after branch prediction; avoid full liveness rebuild after
15654         initializing subregs.
15655         * invoke.texi (-d options): Document -du, renumber.
15657         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
15658         (notice_new_block): Do not set BB_UPDATE_LIFE.
15659         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
15660          merge_blocks_move_successor_nojumps, merge_blocks,
15661          try_crossjump_to_edge): Likewise.
15662         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
15663         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
15664         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
15665         (merge_of_block): Do not use life_data_ok.
15666         (find_if_case_1): Do not use SET_UPDATE_LIFE.
15667         (if_convert): Use BB_DIRTY mechanizm to update life.
15668         * lcm.c (optimize_mode_switching): Update
15669         update_life_info_in_dirty_blocks
15671 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15673         * Makefile.in (integrate.o): Update.
15674         * c-decl.c (copy_lang_decl): Rename.
15675         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15676         * integrate.c: Include langhooks.h.
15677         (copy_decl_for_inlining): Update to use langhook.
15678         * langhooks-def.h (lhd_do_nothing_t,
15679         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
15680         (LANG_HOOKS_INITIALIZER): Update.
15681         * langhooks.c (lhd_do_nothing_t): New.
15682         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
15683         * tree.h (copy_lang_decl): Remove.
15684 objc:
15685         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15687 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
15689         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
15690         POST_DEC, and POST_MODIFY.
15692 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15694         * c-typeck.c (digest_init): Remove unused parameter; all
15695         callers changed.
15697 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
15699         * expmed.c (expand_shift): Correctly test for low part of a
15700         subreg.
15702 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
15704         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
15705         insn UIDs with insn addresses.
15707 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15709         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
15710         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
15711         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
15712         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
15713         gcc.c, toplev.c: Delete code implementing -traditional mode.
15715         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
15716         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
15717         Document removal of -traditional mode for compilation, and
15718         remove documentation only relevant to that mode.
15720         * config/nextstep.h, config/ptx4.h, config/svr4.h,
15721         config/convex/convex.h, config/d30v/d30v.h,
15722         config/i386/dgux.h, config/i386/osf1elf.h,
15723         config/i386/osfelf.h, config/i386/osfrose.h,
15724         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
15725         config/m68k/hp310.h, config/m88k/dgux.h,
15726         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
15727         config/m88k/m88k.h, config/m88k/openbsd.h,
15728         config/mips/abi64.h, config/mips/osfrose.h,
15729         config/mips/svr4-5.h, config/mips/svr4-t.h,
15730         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15731         config/stormy16/stormy16.h: Remove all references to
15732         -traditional from target specs.  Delete all mention of the
15733         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
15734         delete a couple of commented-out definitions of
15735         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
15736         to -traditional.
15738         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
15739         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
15741 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15743         * mklibgcc.in: Don't use \n in a line subject to
15744         interpretation by echo.
15746 2002-02-27  Graham Stott  <grahams@redhat.com>
15748         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
15749         Constify NAME.
15751         * loop.c (prescan_loop): Handle PARALLEL.
15753         * unroll.c (loop_iterations): Return 0 if the add_val for
15754         a BIV is REG.
15756         * final.c (output_operand_lossage): Constify PFX_STR.
15758         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
15760 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15762         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
15763         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
15765 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
15767         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15769 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
15771         * cpplex.c (_cpp_lex_token): Handle directives in macro
15772         arguments.
15773         * cpplib.c (_cpp_handle_directive): Save and restore state
15774         if parsing macro args when entering a directive.
15775         * cppmacro.c (collect_args): No need to handle directives
15776         in macro arguments.
15777         (enter_macro_context, replace_args): Use the original macro
15778         definition in case it was redefined whilst collecting arguments.
15779 doc:
15780         * cpp.texi: Update.
15782 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
15784         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
15785         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
15786         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
15787         method on AIX.
15788         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
15789         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
15790         (load_toc_v4_PIC_2): Same.
15792 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
15794         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
15796 2002-02-26  Richard Henderson  <rth@redhat.com>
15798         * config/alpha/alpha.md (ashldi_se): Re-enable.
15800 2002-02-26  Richard Henderson  <rth@redhat.com>
15802         * config/alpha/alpha.c (alpha_encode_section_info): Examine
15803         MODULE_LOCAL_P; improve commentary.
15805 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
15807         * doc/cpp.texi: Clarify documentation of relationship between
15808         #line and #include.
15810 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15812         * config/h8300/h8300-protos.h: Update the prototype for
15813         compute_logical_op_length.  Add the prototype for
15814         compute_logical_op_cc.
15815         * config/h8300/h8300.c (compute_logical_op_length): Figure out
15816         code from operands.
15817         (compute_logical_op_cc): New.
15818         * config/h8300/h8300.md: Combine all the logical op patterns
15819         in HImode and SImode.  Use compute_logical_op_cc.
15821 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
15823         * config/i386/i386.c (print_operand): Don't append ATT-style
15824         length suffixs to x87 opcodes when in Intel mode.
15826 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
15828         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
15829         (init_emit_once): Update calls.
15830         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
15831         (init_syntax_once): Prototype.
15833 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15835         * pa-linux.h (LIB_SPEC): Update definition.
15836         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15838 2002-02-26  Richard Henderson  <rth@redhat.com>
15840         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
15841         if we emitted a stop bit.
15843 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15845         * configure.in (libgcc_visibility): Substitute.
15846         * configure: Rebuilt.
15847         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
15848         defined symbols .hidden.
15850 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15852         * attribs.c (c_common_attribute_table): Add visibility.
15853         (handle_visibility_attribute): New function.
15854         * varasm.c (assemble_visibility): New function.
15855         * output.h (assemble_visibility): Add prototype.
15856         * tree.h (MODULE_LOCAL_P): Define.
15857         * crtstuff.c (__dso_handle): Use visibility attribute.
15858         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
15859         for MODULE_LOCAL_P symbols too.
15860         * config/ia64/ia64.c (ia64_encode_section_info): Handle
15861         MODULE_LOCAL_P symbols the same way as local symbols.
15862         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
15863         into .sdata/.sbss by the user.
15864         * doc/extend.texi (Function Attributes): Document visibility
15865         attribute.
15867 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15869         PR debug/5770
15870         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
15871         STRING_CST initializer spanning the whole variable without
15872         embedded zeros.
15873         If expand_expr returned MEM, don't use it.
15875 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
15877         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
15878         generate a die for the lexical block.
15880 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15882         * config/h8300/h8300-protos.h: Add a prototype for
15883         compute_logical_op_length.
15884         * config/h8300/h8300.c (compute_logical_op_length): New.
15885         * config/h8300/h8300.md (anonymous logical patterns): Use
15886         compute_logical_op_length for length.
15888 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15890         * dwarf2out.c (modified_type_die): Do not call type_main_variant
15891         for vectors.
15892         (gen_type_die): Same.
15894         * attribs.c (handle_vector_size_attribute): Set debug information.
15896 2002-02-26  Daniel Egger  <degger@fhm.edu>
15898         * config/rs6000/rs6000.md: Swap define_insn attributes to
15899         fix incorrect generation of merge high instructions instead
15900         of merge low.
15902 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15904         * c-typeck.c (really_start_incremental_init): Use
15905         bitsize_zero_node for vectors.
15907 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15909         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
15910         ("*set_vrsave_internal"): Same.
15912 2002-02-25  Richard Henderson  <rth@redhat.com>
15914         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
15915         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
15917 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
15919         PR target/5755
15920         * config/i386/i386.c (ix86_return_pops_args): Only pop
15921         fake structure return argument if it was passed on the stack.
15923 2002-02-25  Jason Merrill  <jason@redhat.com>
15925         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
15926         RESULT_DECL.
15928 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15930         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
15931         link with shared_name only.
15932         * doc/invoke.texi (Link Options): Document new behavior.
15934 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15936         * c-typeck.c (push_init_level): Handle vectors.
15938 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15940         * config/sparc/sparc.c (const64_high_operand): Zero-extend
15941         operands of SPARC_SETHI_P.
15942         (input_operand): Likewise.
15943         (sparc_emit_set_const32): Likewise.
15944         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
15945         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
15946         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
15947         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
15948         (movdi_insn_sp64_vis): Likewise.
15949         (movdi split, movdf split): Use SETHI32.
15950         * doc/md.texi: Document SPARC constraints L, M and N.
15952 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15954         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
15955         ("*set_vrsave_internal"): use mfspr for Darwin.
15957         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
15958         gen_get_vrsave_internal.
15960 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15962         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
15964 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
15966         * cpplex.c (cpp_interpret_charconst): Get signedness or
15967         otherwise of wide character constants correct.
15968         * cppexp.c (lex): Get signedness of wide charconsts correct.
15970 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15972         * optabs.c (widen_operand): Only call convert_modes for
15973         promoted SUBREG if signedness matches.
15974         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
15976 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15978         * cpplib.c (glue_header_name): Use local buffer to build up
15979         header name.
15981 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15983         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
15985 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15987         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
15988         H8/300[HS] separately.
15989         * config/h8300/h8300.md: Remove the early clobber constraint
15990         from bit field patterns.
15992 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15994         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
15995         register_operand.
15996         (mulhisi3): Likewise.
15997         (umulqisi3): Likewise.
15998         (umulhisi3): Likewise.
16000 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
16002         * cppinit.c (output_deps): Correct test for stdout output.
16003         (init_dependency_output): Cure warning.
16005 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16007         * expr.c (store_expr): When converting expression to promoted
16008         equivalent type, allow using SUBREG_REG of TARGET as the target
16009         of the expansion of EXP.
16010         * loop.c (basic_induction_var, case SUBREG): Always look inside.
16011         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
16012         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
16013         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
16014         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
16016 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
16018         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
16019         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
16020         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
16022 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
16024         PR optimization/5747
16025         * loop.c (scan_loop): Update reg info if move_movables created new
16026         pseudos.
16028 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
16030         * gcc.c (init_gcc_spec): Revert last change.
16032 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
16034         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
16035         gpc_reg_operand constraint.
16037 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
16039         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
16040         Simplify comparison of `low'.
16041         (add_operand): Fix formatting.
16042         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
16043         (mask_operand): Disallow mask to wrap in 64-bit mode.
16044         (rs6000_stack_info): Remove redundant test setting push_p.
16045         (output_toc): Fix formatting.
16046         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
16047         cc_reg_not_cr0_operand constraint.
16048         (booldi3, boolcdi3 splitters): Same.
16050 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
16052         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
16054 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
16056         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
16057         gcc invoked with -shared-libgcc.
16059 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
16061         PR c++/5748
16062         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
16063         decl if any of elements was TREE_USED.
16065 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
16067         * config/sparc/sol2.h: Don't include sys/mman.h.
16068         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
16069         (arith_4096_operand): Don't throw high bits away.
16070         (const64_operand): Take sign extension of CONST_INTs into account.
16071         (const64_high_operand, sparc_emit_set_const32): Likewise.
16072         (GEN_HIGHINT64): Likewise.
16073         (sparc_emit_set_const64_quick1): Likewise.
16074         (const64_is_2insns): Likewise.
16075         (print_operand): Use trunc_int_for_mode for sign extension.
16076         * config/sparc/sparc.h (SMALL_INT32): Likewise.
16077         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
16078         chars.  Assume CONST_INT is already properly sign-extended.
16079         (movdi split): Sign-extend each SImode part.
16080         (andsi3 split): Don't mask high bits off, so that result
16081         remains properly sign-extend.
16082         (iorsi3 split): Likewise.
16083         (xorsi3 split): Likewise.
16085 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
16087         * fold-const.c (fold): Fix typo in comments.
16089 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
16091         * Makefile.in (langhooks.o): Update dependencies.
16093 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
16095         * langhooks.c: Include flags.h.
16097 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
16099         * testsuite/gcc.dg/attr-alwaysinline.c: New.
16101         * c-common.c (c_common_post_options): Set inline trees by
16102         default.
16104         * doc/extend.texi (Function Attributes): Document always_inline
16105         attribute.
16106         Update documentation about inlining when not optimizing.
16108         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
16110         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
16111         unless DECL_ALWAYS_INLINE.
16113         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
16114         unless DECL_ALWAYS_INLINE.
16115         (c_disregard_inline_limits): Disregard if always_inline set.
16117         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
16118         Disregard if always_inline set.
16119         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
16120         unless DECL_ALWAYS_INLINE.
16122         * attribs.c (handle_always_inline_attribute): New.
16123         (c_common_attribute_table): Add always_inline.
16125         * config/rs6000/altivec.h: Add prototypes for builtins
16126         requiring the always_inline attribute.
16128 2002-02-21  Eric Christopher  <echristo@redhat.com>
16130         * expmed.c (store_bit_field): Try to simplify the subreg
16131         before generating a new one when when the mode size of
16132         value is less than maxmode.
16134 2002-02-21  Richard Henderson  <rth@redhat.com>
16136         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
16137         than gen_rtx_PLUS to form the sum.
16138         * explow.c (force_reg): Rearrange to not allocate new pseudo
16139         when force_operand returns a register.
16140         * expr.c (expand_assignment): Allow offset_rtx expansion to
16141         return a sum.  Do not force addresses into registers.
16142         (expand_expr): Likewise.
16143         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
16144         to canonicalize arithmetic that didn't simpify.
16145         (simplify_plus_minus): New argument force; update
16146         all callers.  Don't split CONST unless we can do something with it,
16147         and wouldn't lose the constness of the operands.
16149         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
16150         that we generated earlier.
16152 2002-02-21  Tom Tromey  <tromey@redhat.com>
16154         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16155         (output_line_info): Use constant `1', with a long explanatory
16156         comment.
16157         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
16159 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
16161         * jump.c (redirect_jump): If old label has no UID, don't try to
16162         delete it.
16164 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
16166         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
16167         If input is constant, do shifts at compile time.
16169 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
16171         * doc/extend.texi: Fix some more overfull hboxes.
16173 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
16175         PR optimization/4994
16176         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
16177         register moves.
16179 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
16181         PR c++/4574
16182         * expr.h (expand_and): Add mode argument.
16183         * expmed.c (expand_and): Add mode argument.
16184         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
16185         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
16186         * except.c (expand_builtin_extract_return_addr): Likewise.
16187         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
16188         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
16189         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
16190         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
16191         * config/c4x/c4x.md: Use GEN_INT (x) instead of
16192         gen_rtx (CONST_INT, VOIDmode, x).
16194 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
16196         PR c/4697:
16197         * stmt.c (warn_if_unused_value): Move side effects test once more.
16199 2002-02-20  Torbjorn Granlund  <tege@swox.com>
16201         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
16202         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
16204 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
16206         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
16207         SUBREG or ZERO_EXTEND.
16209 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
16211         * sh.h (current_function_anonymous_args): Remove.
16212         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
16213         of current_function_varargs and current_function_stdarg is set.
16214         * sh.c (sh_expand_prologue): Check current_function_varargs /
16215         current_function_stdarg / TARGET_SH5 instead of
16216         current_function_anonymous_args.
16218         * sh64.h (TARGET_VERSION): Define.
16220 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
16222         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
16223         VRSAVE_REGNO on TARGET_ALTIVEC.
16225 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
16227         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
16228         bits of SImode const_int.
16229         (includes_rshift_p): Likewise.
16230         (print_operand): Call mask_operand and mask64_operand with correct
16231         mode.
16232         (rs6000_output_function_epilogue): Pad traceback table to word.
16233         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
16234         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
16235         mask64_operand with correct mode.
16236         (FUNCTION_ARG_REGNO_P): Correct parentheses.
16238 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
16240         PR debug/4461
16241         * varasm.c (get_pool_constant_mark): New.
16242         * rtl.h (get_pool_constant_mark): Add prototype.
16243         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
16244         be represented if it has not been output.
16246 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
16248         * combine.c (do_SUBST): Sanity check substitutions of
16249         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
16250         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
16251         CONST_INT into its operand.
16252         (known_cond): Likewise, for ZERO_EXTEND.
16253         * simplify-rtx.c (simplify_unary_operation): Fix condition to
16254         allow for simplification of wide modes.  Reject CONST_INTs in
16255         ZERO_EXTEND when their actual mode is not given.
16257 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
16259         * c-decl.c (pushdecl): If no global declaration is found for an
16260         extern declaration in block scope, try a limbo one.
16262 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
16264         PR c++/4401
16265         * c-common.c (pointer_int_sum): Moved from...
16266         * c-typeck.c (pointer_int_sum): ...here.
16267         * c-common.h (pointer_int_sum): Add prototype.
16269 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
16271         PR c++/5713
16272         * c-decl.c (duplicate_decls): Return 0 if issued error about
16273         redeclaration.
16275 2002-02-20  Roger Sayle  <roger@eyesopen.com>
16276             Jakub Jelinek  <jakub@redhat.com>
16278         PR c/4389
16279         * tree.c (host_integerp): Ensure that the constant integer is
16280         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
16281         when pos is zero or non-zero respectively.  Clarify comment.
16282         * c-format.c (check_format_info_recurse): Fix host_integerp
16283         usage; the pos argument should be zero when assigning to a
16284         signed HOST_WIDE_INT.
16286 2002-02-20  Richard Henderson  <rth@redhat.com>
16288         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
16289         of the operand, rather than assuming TImode.
16290         (ix86_expand_binop_builtin): Cope with commutative patterns
16291         using nonimmediate_operand for both operands.
16292         (ix86_expand_timode_binop_builtin): Likewise.
16293         (ix86_expand_store_builtin): Validate operand 1.
16294         (ix86_expand_unop1_builtin): Likewise.
16296 2002-02-20  Philip Blundell  <philb@gnu.org>
16298         PR 5705
16299         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
16301 2002-02-20  Richard Henderson  <rth@redhat.com>
16303         PR c/5615
16304         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
16306 2002-02-20  Tom Tromey  <tromey@redhat.com>
16308         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16309         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16310         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16311         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16312         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
16313         unconditionally.
16315 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
16317         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
16318           for (const_int 0) in X not just INTVAL.
16320 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
16322         * doc/extend.texi: Avoid or reduce overfull hboxes.
16324 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
16326         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
16327         operations if the field does not start at a mode boundary.
16329 2001-02-20      Joel Sherrill <joel@OARcorp.com>
16331         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
16332         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
16333         Also done for -Acpu and -Amachine.
16335 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
16337         * cppinit.c (init_dependency_output): Take deps output file
16338         from -o if none given with -MF.  Suppress normal output.
16339         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
16340         * doc/cpp.texi, doc/invoke.texi: Update.
16342 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
16344         * toplev.c (output_quoted_string): Write unprintable
16345         characters with octal escapes.
16347 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
16349         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
16350         really_call_used[VRSAVE_REGNO] if not Altivec.
16352 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
16354         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
16355         MODE_MASK.
16356         (constant_pool_expr_1): Fix formatting.
16357         (rs6000_legitimize_reload_address): Likewise.
16359 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16361         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
16362         now that we have one.
16364 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
16366         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
16367         end of first block of bitfields (which was only seven bits);
16368         rename dummy to unused_1; remove comment which is no longer true.
16370 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
16372         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
16374 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
16376         PR 5399
16377         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
16378         if generating PIC.
16380         PR 5054
16381         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
16382         arm_is_longcall_p rather than inspecting call-type cookie
16383         directly.
16384         (call_value_insn) [TARGET_THUMB]: Likewise.
16386 2002-02-19  Graham Stott  <grahams@redhat.com>
16388         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
16390 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
16392         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
16393         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
16394         (FP_SAVE_INLINE): Delete.
16396         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
16397         * config/rs6000/eabi.asm: Remove ABI save restore routines.
16398         * config/rs6000/t-ppccomm: Build crtsavres.o.
16399         * config/rs6000/crtsavres.asm: New file.
16401 2002-02-19  Philip Blundell  <philb@gnu.org>
16403         * config/arm/arm.c (use_return_insn): Don't reject interrupt
16404         functions.
16405         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
16406         (output_return_instruction): Allow interrupt functions to return with
16407         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
16408         (arm_expand_prologue): Subtract 4 before stacking LR in an
16409         interrupt function.
16411 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
16413         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
16414         decl, not just FUNCTION_DECL.
16415         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
16416         (arm_assemble_integer): Likewise.
16417         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
16418         marked local.
16420 2002-02-19  matthew green  <mrg@eterna.com.au>
16422         * config.gcc (sparc-*-netbsdelf*): Enable target.
16423         (sparc64-*-netbsd*): New target.
16424         * config/sparc/netbsd-elf.h: New file.
16425         * config/sparc/t-netbsd64: New file.
16427 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
16429         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
16431 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
16433         * doc/invoke.texi: explicitly list the style guidelines that
16434         -Weffc++ checks for.
16436 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
16438         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
16440 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16442         PR other/5718
16443         * gcc.c (cpp_unique_options): Treat -o as indicating object file
16444         only if not -E.  If -E, pass -o through to the preprocessor.
16446 2002-02-19  Kazu Hirata  <kazu@hxi.com>
16448         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
16449         register number with an appropriate macro.
16451 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16453         * doc/rtl.texi (Constants): Close @code tag.
16455 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
16457         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
16458         ("mmx_uavgv4hi3"): Same.
16459         ("pmulhrwv4hi3"): Same.
16461         * tree-inline.c (walk_tree): Handle vectors.
16463         * c-common.c (constant_expression_warning): Handle vectors.
16464         (overflow_warning): Same.
16466         * sched-deps.c (sched_analyze_2): Handle vectors.
16468         * rtlanal.c (rtx_unstable_p): Handle vectors.
16469         (rtx_varies_p): Same.
16470         (count_occurrences): Same.
16471         (regs_set_between_p): Same.
16472         (modified_between_p): Same.
16473         (modified_in_p): Same.
16474         (volatile_insn_p): Same.
16475         (volatile_refs_p): Same.
16476         (side_effects_p): Same.
16477         (may_trap_p): Same.
16478         (inequality_comparisons_p): Same.
16479         (replace_regs): Same.
16480         (computed_jump_p_1): Same.
16482         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
16483         argument.
16484         (inner_mode_array): New.
16485         (copy_rtx): Handle vectors.
16486         (copy_most_rtx): Same.
16487         (rtx_equal_p): Same.
16488         (get_mode_alignment): Adjust for vectors.
16490         * resource.c (mark_referenced_resources): Handle vectors.
16491         (mark_set_resources): Same.
16493         * reload1.c (eliminate_regs): Handle vectors.
16494         (elimination_effects): Same.
16495         (scan_paradoxical_subregs): Same.
16497         * reload.c (subst_reg_equivs): Handle vectors.
16499         * regrename.c (scan_rtx): Handle vectors.
16501         * regclass.c (reg_scan_mark_refs): Handle vectors.
16503         * recog.c (find_single_use_1): Handle vectors.
16505         * local-alloc.c (equiv_init_varies_p): Handle vectors.
16506         (contains_replace_regs): Same.
16507         (memref_referenced_p): Same.
16509         * integrate.c (copy_rtx_and_substitute): Handle vectors.
16510         (subst_constants): Same.
16512         * genattrtab.c (attr_copy_rtx): Handle vectors.
16513         (encode_units_mask): Same.
16514         (clear_struct_flag): Same.
16515         (count_sub_rtxs): Same.
16517         * gcse.c (want_to_gcse_p): Handle vectors.
16518         (oprs_unchanged_p): Same.
16519         (hash_expr_1): Same.
16520         (oprs_not_set_p): Same.
16521         (expr_killed_p): Same.
16522         (compute_transp): Same.
16523         (store_ops_ok): Same.
16525         * function.c (purge_addressof_1): Do not allow paradoxical subregs
16526         of vectors.
16527         (fixup_var_refs_1): Same.
16528         (instantiate_virtual_regs_1): Same.
16530         * fold-const.c (operand_equal_p): Handle vectors.
16531         (fold): Same.
16532         (rtl_expr_nonnegative_p): Same.
16534         * flow.c (mark_used_regs): Handle vectors.
16536         * df.c (df_uses_record): Handle vectors.
16538         * cselib.c (cselib_subst_to_values): Handle vectors.
16539         (cselib_mem_conflict_p): Same.
16540         (hash_rtx): Same.
16542         * cse.c (canon_reg): Handle vectors.
16543         (fold_rt): Same.
16544         (cse_process_notes): Same.
16545         (count_reg_usage): Same.
16546         (canon_hash): Same.
16548         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
16550         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
16552         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
16553         (gen_rtx): Handle CONST_VECTOR.
16554         (gen_const_vector_0): New.
16555         (copy_rtx_if_shared): CONST_VECTORs can be shared.
16556         (reset_used_flags): Same.
16557         (copy_insn_1): Same.
16558         (initializer_constant_valid_p): Handle VECTOR_CST.
16560         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
16562         * doc/rtl.texi (Constants): Document const_vector.
16563         (CONST0_RTX): Update for vectors.
16564         (RTL sharing): Same.
16566         * print-tree.c (print_node): Add case for VECTOR_CST.
16568         * tree.h (TREE_VECTOR_CST_ELTS): New.
16569         (struct tree_vector): New.
16570         (union tree_node): Add vector node.
16571         (build_vector): Add prototype.
16573         * tree.def (VECTOR_CST): New.
16575         * tree.c (build_vector): New.
16577         * expmed.c (make_tree): Handle CONST_VECTOR.
16579         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
16580         (CONST_VECTOR_ELT): New.
16581         (CONST_VECTOR_NUNITS): New.
16583         * machmode.h (GET_MODE_INNER): New.
16584         (DEF_MACHMODE): Accept 8th arg.
16586         * machmode.def: Add 8th argument for vector inner mode.
16587         Add inner vector modes for vectors.
16589         * rtl.def (VEC_CONST): Remove.
16590         (CONST_VECTOR): New.
16592         * expr.c (clear_storage): Allow vectors.
16593         (is_zeros_p): Handle VECTOR_CST.
16595         * varasm.c (output_constant_pool): Handle vectors.
16596         (rtx_const): Add veclo and vechi fields.
16597         (kind): Add RTX_VECTOR.
16598         (decode_rtx_const): Add case for vector.
16600         * config/rs6000/rs6000-protos.h: Add zero_constant.
16602         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
16603         constants.  Force easy vector constants into memory.
16604         (easy_vector_constant): New.
16605         (emit_easy_vector_constant): New.
16606         (rs6000_legitimize_reload_address): Do not generate bad reloads on
16607         darwin.
16609         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
16610         instruction does.
16611         ("altivec_lvxl"): Same.
16612         (altivec_lvebx): Same.
16613         (altivec_lvehx): Same.
16614         (altivec_lvewx): Same.
16615         ("*movv4si_const0"): New.
16616         ("*movv4sf_const0"): New.
16617         ("*movv8hi_const0"): New.
16618         ("*movv16qi_const0"): New.
16620 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16622         * config/h8300/h8300.c (notice_update_cc): Use
16623         cc_status.value2.
16625 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16627         * config/h8300/h8300.md (divmod patterns): Change the
16628         constraints for operands[1] to register_operand.
16630 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16632         * config/h8300/h8300-protos.h: Remove the prototype for
16633         p_operand.
16634         * config/h8300/h8300.c (p_operand): Remove.
16635         * config/h8300/h8300.md: Replace p_operand with
16636         const_int_operand.
16638 2002-02-18 Philip Blundell <pb@nexus.co.uk>
16640         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
16641         comment.
16642         (output_return_instruction): Allow use of LDR to unstack
16643         return addresss even for interrupt handlers or when
16644         interworking.  If compiling for ARMv5, use interworking-safe
16645         return instructions by default.  Remove duplicated code and
16646         lengthy "strcat" sequences.
16648 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16650         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
16651         (LINK_EH_SPEC): Define.
16652         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
16654 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
16656         * config/s390/s390.c (s390_emit_prologue): Do not set the
16657         frame_related flag for call-clobbered registers.
16659 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
16661         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
16662         (construct_container): Fix handling of SSE operands.
16663         (ix86_expand_builtin): Fix handling of 64bit pointers.
16664         (mmx_maskmovq_rex): New pattern.
16666 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
16668         * regrename.c (kill_set_value): Handle subregs properly.
16670 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
16672         * objc/objc-act.c (handle_impent): Remove leading '*'
16673         from objc_class_name.
16675 2002-02-17  Richard Henderson  <rth@redhat.com>
16677         * config/alpha/alpha.c (some_small_symbolic_operand,
16678         some_small_symbolic_operand_1, split_small_symbolic_operand,
16679         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
16680         Handle small SYMBOL_REFs anywhere, not just inside memories.
16681         * config/alpha/alpha-protos.h: Update.
16682         * config/alpha/alpha.h (PREDICATE_CODES): Update.
16683         * config/alpha/alpha.md (small symbolic operand splitter): Update.
16685 2002-02-17  Roland McGrath  <roland@frob.com>
16687         * config.gcc (powerpc-*-gnu-gnualtivec*,
16688         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
16689         * config/rs6000/gnu.h: New file.
16690         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
16691         Grok "gnu" in rs6000_abi_name.
16692         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
16693         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
16694         Grok -mcall-gnu analogous to -mcall-linux et al.
16695         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16696         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
16697         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
16699 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
16701         PR c/3444:
16702         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
16703         shortening.
16705 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16707         * config/cris/cris.h: Undefine STARTFILE_SPEC and
16708         ENDFILE_SPEC before (re)defining them.
16710 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16712         * config/h8300/h8300.c: Fix formatting.
16713         * config/h8300/h8300.h: Likewise.
16715 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16717         * doc/tm.texi: Explain why empty strings should not be
16718         marked for translation.
16720 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16722         * final.c (output_operand_lossage): Changed to accept
16723         printf style arguments. Change calls where necessary.
16724         * output.h (output_operand_lossage): Change declaration
16725         accordingly. Update copyright.
16726         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
16727         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
16728         Update copyright date where necessary.
16730         * config/i386/i386.c (print_operand): Likewise. Remove use of
16731         sprintf.
16733         * config/cris/cris.c (cris_operand_lossage): Likewise.
16734         Rename parameter so that exgettext recognizes it as
16735         translatable message.
16736         (LOSE_AND_RETURN): Rename parameter to msgid.
16738 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16740         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
16741         hard coded register number with an appropriate macro.
16742         (HARD_REGNO_MODE_OK): Likewise.
16743         (ARG_POINTER_REGNUM): Likewise.
16744         (STATIC_CHAIN_REGNUM): Likewise.
16745         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
16746         * config/h8300/h8300.md (define_constants): Define more
16747         register numbers.
16749 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16751         * config/i386/i386.h: Don't mark empty strings for translation.
16753 2002-02-16  H.J. Lu <hjl@gnu.org>
16755         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
16757 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
16759         * cppinit.c (merge_include_chains): Check for brack being
16760         NULL before attempting to merge it with qtail.
16762 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
16764         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
16765         DBX_DEBUG.
16767 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16769         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
16771 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16773         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
16774         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
16775         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
16777 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16779         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
16780         now only if !TARGET_FIX.
16781         (*movsi_nt_vms_fix): New pattern.
16783 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
16785         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
16786         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
16787         (alpha_sa_mask, alpha_sa_size): Reflect above change.
16788         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
16789         (alpha_start_function, alpha_expand_epilogue): Likewise.
16790         (unicosmk_gen_dsib): Likewise.
16792 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16794         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
16796 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
16798         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
16799         check_and_change_labels, s390_final_chunkify): Delete.
16800         (s390_split_branches, s390_chunkify_pool): New functions.
16801         (s390_function_prologue): Call them.
16803         * config/s390/s390.h (S390_REL_MAX): Delete.
16804         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
16806         * config/s390/s390.md (cjump, icjump, jump): Fix length
16807         attribute calculation.
16810 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
16812         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
16813         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
16815 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16817         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
16818         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
16819         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
16821 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16823         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
16825 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16827         * reload.c (find_dummy_reload): Check that an output register
16828         is valid for its mode.
16830 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
16832         * combine.c (known_cond): After replacing the REG of a SUBREG, try
16833         to simplify it.
16835         * function.c (assign_parms): Demote promoted argument passed by
16836         transparent reference.
16838 2001-02-14      Joel Sherrill <joel@OARcorp.com>
16840         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
16841         -Acpu() and -Amachine() to eliminate warnings.
16843 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
16845         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
16847 2002-02-14  Kazu Hirata  <kazu@hxi.com>
16849         * config/h8300/h8300-protos.h: Update the prototype for
16850         const_costs.
16851         * config/h8300/h8300.c (const_costs): Treat SET as a little
16852         more expensive operation.
16853         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
16854         reference to const_costs.
16856 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
16858         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
16860 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
16862         PR c/5503:
16863         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
16864         use arguments from newtype.
16866 2002-02-13  Eric Christopher  <echristo@redhat.com>
16868         * config/mips/mips.c (override_options): Add check for march/mipsX
16869         on the same command line. Fix error message in cpu processing.
16870         Remove architecture and ISA checks.
16872 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16874         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
16876         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
16878 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16880         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
16881         alternatives.
16882         ("*movv8hi_internal1"): Same.
16883         ("*movv16qi_internal1"): Same.
16884         ("*movv4sf_internal1"): Same.
16886         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
16887         not push_reload for altivec modes.
16889 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
16891         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
16892         all RTEMS targets including removal of #includes from config/*/rtems*.h
16893         file and adding them to tm_file setting. Added xm_defines=POSIX to
16894         many targets.
16895         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
16896         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
16897         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
16898         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
16899         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
16900         config/m68k/rtemself.h: Ditto.
16901         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
16902         config/mips/rtems64.h: Ditto.
16903         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
16904         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
16905         Ditto.
16906         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
16907         config/sparc/rtemself.h: Ditto.
16908         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
16909         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
16910         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
16911         more like arm-elf.
16912         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
16913         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
16914         target made more similar to i386-elf.
16915         * config/i386/t-rtems-i386: Added soft float support and multilibs.
16916         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
16917         be similar to config/m68k/t-m68kelf.
16918         * gthr-rtems.h: Encapsulate with extern "C" for C++.
16920 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
16922         * regmove.c (kill_value): Handle subregs.
16924 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
16926         * i386.md (mul patterns): Allow memory operand to be first;
16927         add expanders where needed; fix constraints.
16928         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
16929         Allow memory operand to be the first.
16931         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
16932         operands.
16934 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16936         PR c/5681:
16937         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
16938         GET_MODE (x).
16940 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16942         PR optimization/5547:
16943         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
16944         all valid IA-32 address modes involving non-scaled %ebx and
16945         GOT/GOTOFF as displacement.
16947 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
16949         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
16950         after emitting ltorg insns.
16952         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
16953         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
16954         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
16955         *abssf2): Fix "op_type" attribute.
16957 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
16959         * mkconfig.sh: Avoid using a subshell redirect.
16960         ($output.T): Change to $(output)T.
16961         (ENABLE_NLS): Remove unneeded undef.
16963         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
16964         * config/alpha/x-vms (libsubdir): Define.
16966         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
16967         register frame procedures. Optimize retrieving context.
16969         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
16970         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
16971         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
16973 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16975         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
16976         Make same change as for find_base_value.
16978 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16980         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
16981         of QImode and SImode.
16983 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16985         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
16986         length computation of movsi.
16987         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
16989 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16991         * config/h8300/h8300.md (subqi3): Tighten the predicate for
16992         operands[2] to register_operand.
16994 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
16996         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
16998 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
17000         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
17001         for altivec_lvx* and altivec_stvx*.
17002         ("*movv4si_internal"): Add constraint for loading from GPRs.
17003         ("*movv8hi_internal1"): Same.
17004         ("*movv16qi_internal1"): Same.
17005         ("*movv4sf_internal1"): Same.
17007         * config/rs6000/rs6000.c (altivec_register_operand): New.
17009         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
17010         altivec_register_operand.
17012 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
17014         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
17015         handle SYMBOL_REF.
17017 2002-02-13  Stan Shebs  <shebs@apple.com>
17019         * c-typeck.c (digest_init): Handle vectors.
17020         (really_start_incremental_init): Same.
17021         (pop_init_level): Same.
17022         (process_init_element): Same.
17024         * varasm.c (output_constant): Same.
17026         * expr.c (clear_storage): Same.
17027         (store_constructor): Same.
17029 2002-02-12  Eric Christopher  <echristo@redhat.com>
17031         * explow.c (hard_function_value): Add comment explaining
17032         signed/unsigned comparison.
17034 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
17036         * jump.c (never_reached_warning): Add finish argument.
17037         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
17038         real insn after end.
17039         * rtl.h (never_reached_warning): Adjust prototype.
17040         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
17041         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
17042         never_reached_warning.
17044 2002-02-12  Graham Stott  <grahams@redhat.com>
17046         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
17048 2002-02-12  Kazu Hirata  <kazu@hxi.com>
17050         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
17051         logical shifts on H8/300.
17052         (shift_alg_si): Improve several shifts on H8/300.
17053         (get_shift_alg): Likewise.
17055 2002-02-12  Graham Stott  <grahams@redhat.com>
17057         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
17059 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17061         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
17062         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
17064 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
17066         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
17067         non-CONST_INT through default_assemble_integer.
17068         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
17069         <case 8>: Abort for CONST_DOUBLE.
17071 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17073         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
17074         is specified.
17075         * config/pa/pa-linux.h (LIB_SPEC): Delete.
17076         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
17078 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
17080         * config/stormy16/stormy16.md (zero_extendqihi2): New.
17082 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
17084         * regrename.c (regrename_optimize): Don't accept a
17085         part-clobbered register if the replaced register is not part
17086         clobbered.
17088         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
17089         take padding into account when computing the argument value.
17091         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
17093         * combine.c (try_combine): Apply substitutions in
17094         CALL_INSN_FUNCTION_USAGE too.
17096 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
17098         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
17099         __builtin_altivec_abs*.
17100         (bdesc_abs): New.
17102         * config/rs6000/rs6000.h (rs6000_builtins): Add
17103         ALTIVEC_BUILTIN_ABS*.
17105         * config/rs6000/altivec.h: Use const char for builtins expecting
17106         literals.
17107         (vec_abs): New versions for C and C++.
17108         (vec_abss): Same.
17110 2002-02-10  Kazu Hirata  <kazu@hxi.com>
17112         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
17113         using Pmode.
17115 2002-02-10  Kazu Hirata  <kazu@hxi.com>
17117         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
17118         constant definition from h8300.md.
17119         (FRAME_POINTER_REGNUM): Likewise.
17120         * config/h8300/h8300.md (define_constants): Add FP_REG.
17122 2002-02-10  Kazu Hirata  <kazu@hxi.com>
17124         * config/h8300/h8300.c (print_operand): Remove redundant code.
17126 2002-02-10  Kazu Hirata  <kazu@hxi.com>
17128         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
17129         * config/h8300/h8300.c (byte_reg): Make it static.
17131 2002-02-10  Richard Henderson  <rth@redhat.com>
17133         PR c/5623
17134         * c-typeck.c (incomplete_type_error): Handle flexible array members.
17136 2002-02-10  Richard Henderson  <rth@redhat.com>
17138         PR c++/5624
17139         * tree.c (append_random_chars): Don't abort if main_input_filename
17140         does not exist.
17142 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
17144         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
17146 2002-02-10  Kazu Hirata  <kazu@hxi.com>
17148         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
17149         (pushhi1): Likewise.
17151 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17153         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
17154         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
17156 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
17158         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
17159         remove MASK_VIS.
17160         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
17162 2002-02-09  Kazu Hirata  <kazu@hxi.com>
17164         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
17165         a half of an SImode register on H8/300.
17167 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
17169         * i386.md (movdi_2): Add missing '!'.
17171 2002-02-09  Kazu Hirata  <kazu@hxi.com>
17173         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
17174         definitions.
17176 2002-02-09  Kazu Hirata  <kazu@hxi.com>
17178         * config/h8300/h8300.md (length): Correct the distance valid
17179         for the short branch.
17181 2002-02-09  Kazu Hirata  <kazu@hxi.com>
17183         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
17185 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
17187         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
17188         registers in SImode.
17189         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
17190         part-clobbered.
17192         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
17193         patch.
17195         Contribute sh64-elf.
17196         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
17197         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
17198         (sh_cannot_modify_jumps_p): New function.
17199         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
17200         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
17201         (sh_ms_bitfield_layout_p): New function.
17202         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
17203                     Zack Weinberg  <zack@codesourcery.com>
17204         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
17205         expand_simple_binop instead of expand_binop.
17206         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
17207         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
17208         use of .quad and .uaquad.
17209         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
17210         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
17211         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17212         * config/sh/sh.md (movdi_const, movdi_const_32bit,
17213         movdi_const_16bit): Make sure all CONSTs have modes.
17214         (sym2PIC): Ditto, but by adjusting all callers.
17215         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
17216         if the prologue calls the SHmedia argument decoder or register
17217         saver.
17218         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17219         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
17220         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
17221         (sh_expand_epilogue): Don't emit USE of return target register.
17222         (prepare_move_operands): Legitimize DImode PIC addresses.
17223         (sh_media_register_for_return): Skip tr0, used to initialize the
17224         PIC register.
17225         (sh_expand_prologue): Remove explicit USE of return register.
17226         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
17227         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
17228         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
17229         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
17230         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
17231         EXTRA_CONSTRAINT_T.
17232         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
17233         (MOVI_SHORI_BASE_OPERAND_P): New.
17234         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
17235         (EXTRA_CONSTRAINT_T): Define in terms of them.
17236         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
17237         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
17238         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
17239         alternatives supporting TARGET_REGS.
17240         (UNSPEC_GOTPLT): New constant.
17241         (movdi split): Move incrementing of LABEL_NUSES...
17242         (movdi_const, movdi_const_32bit): Here.  Use
17243         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
17244         (movdi_const_16bit): New.
17245         (call, call_value) [flag_pic]: Use GOTPLT.
17246         (call_pop, call_value_pop): New expands.
17247         (call_pop_compact, call_pop_rettramp): New insns.
17248         (call_value_pop_compact, call_value_pop_rettramp): New insns.
17249         (sibcall) [flag_pic]: Use GOT.
17250         (builtint_setjmp_receiver): Remove bogus, unused expand.
17251         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
17252         (*pt, *ptb, ptrel): New insns.
17253         (sym2GOT): Handle DImode GOT.
17254         (sym2GOTPLT, symGOTPLT2reg): New expands.
17255         (sym2PIC): New expand.
17256         (shcompact_return_tramp): Use GOTPLT to return trampoline.
17257         (shcompact_return_tramp_i): Use return register explicitly.
17258         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
17259         disable flag_reorder_blocks.
17260         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
17261         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
17262         clobbers, for clarity.
17263         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
17264         restoring of r0 in macl as MAYBE_DEAD.
17265         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
17266         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
17267         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
17268         alter_subreg all over.
17269         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
17270         reload, instead of emitting instructions that would require
17271         reloading.
17272         (casesi_load_media): Add missing modes.
17273         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
17274         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
17275         as used if the argument decoder is called.
17276         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
17277         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
17278         Pmode, then extend it to DImode if necessary.
17279         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
17280         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
17281         constants in FPU-enabled SHmedia, let them be loaded from memory.
17282         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
17283         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
17284         Adjust whitespace in assembly output templates.
17285         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
17286         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
17287         mode of if_then_else.
17288         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
17289         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
17290         sh.h.
17291         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
17292                     Joern Rennecke <amylaar@redhat.com>
17293         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
17294         (SUBTARGET_CPP_PTR_SPEC): New.
17295         (SUBTARGET_CPP_SPEC): Remove.
17296         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
17297         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17298         Fix typo in previous checkin.
17299         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
17300         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
17301         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
17302                     Alexandre Oliva  <aoliva@redhat.com>
17303         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
17304         what single FP register can hold for SHmedia target.
17305         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
17306                     Alexandre Oliva  <aoliva@redhat.com>
17307         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17308         Do not split into SUBREG.
17309         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
17310         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
17311         and added new functions as specified in SH5 ABI r9.
17312         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
17313         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
17314         8-byte boundary.
17315         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
17316         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
17317         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
17318         and consttable_window_ends.
17319         2001-06-03  Graham Stott  <grahams@redhat,com>
17320         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
17321         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
17322         * config/sh/sh.c (print_operand): Handle floating-point pair,
17323         vector and matrix registers.
17324         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
17325         vector modes into account.
17326         * config/sh/sh.md (movv2sf): Split move between registers into
17327         movdf.
17328         (movv4sf, movv16sf): Introduce insns that get split only after
17329         reload.
17330         * config/sh/shmedia.h: Fix Copyright dates.
17331         * config/sh/ushmedia.h: Likewise.  Move loop counter
17332         declarations into conditionals that uses them.
17333         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
17334         loop boundary.
17335         * config/sh/sshmedia.h: Fix Copyright dates.
17336         (sh_media_PUTCFG): Fix constraints.
17337         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
17338         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
17339         ptrmemfunc_vbit_in_delta for SH5.
17340         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
17341         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
17342         * invoke.texi: Likewise.
17343         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
17344         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
17345         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
17346         GCC_pop_shmedia_regs_nofpu): New global symbols.
17347         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
17348         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
17349         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
17350         compact function with nonlocal labels.
17351         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
17352         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
17353         (initial_elimination_offset): Account for their stack space.
17354         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
17355         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
17356         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
17357         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
17358         least one of the operands to be a register.
17359         (movv2sf): Likewise.  Renamed to movv2sf_i.
17360         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
17361         prepare_move_operands() before emitting SHmedia insns.
17362         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
17363         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
17364         Don't save nor initialize r12.  Don't mis-align the stack.
17365         Pad the code with a nop.
17366         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
17367         stack.
17368         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
17369         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
17370         [__SHMEDIA__]: Implement.
17371         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
17372         * config/sh/sh.md: Set latency of `pt' closer to reality.
17373         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
17374         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
17375         Set move, load and store type attributes.
17376         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
17377         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
17378         profiling.
17379         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
17380         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
17381         * config/sh/sh.c (sh_media_register_for_return): New function.
17382         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
17383         branch-target register.
17384         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
17385         * config/sh/sh.md (return_media_i): Use any call-clobbered
17386         branch-target register.
17387         (return_media): If r18 wasn't copied in the prologue, copy it
17388         here.
17389         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
17390         Clear class FP0_REGS.
17391         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
17392         from elf.h.
17393         2001-03-08  DJ Delorie  <dj@redhat.com>
17394         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
17395         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
17396         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
17397         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
17398         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
17399         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
17400         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
17401         return value correctly for call_cookie.
17402         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
17403         * config/sh/crt1.asm (start): Modified so as to call
17404         ___setup_argv_and_call_main.
17405         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
17406         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
17407         SHmedia mode.
17408         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
17409         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
17410         (STRIP_NAME_ENCODING): Use it.
17411         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
17412         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
17413         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
17414         prepare_scc_operands().
17415         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
17416         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
17417         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
17418         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
17419         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
17420         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
17421         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
17422         used in shcompact_incoming_args.
17423         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
17424         change.
17425         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
17426         mode.
17427         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
17428         Adjust accordingly.
17429         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
17430         Simplify.  Adjust.  Add sanity check.
17431         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
17432         FPU_SINGLE_BIT.
17433         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
17434         TARGET_SHCOMPACT.
17435         (udivsi3, divsi3): Use them.
17436         (force_mode_for_call): New insn.
17437         (call, call_value, sibcall_value): Emit it before SHcompact
17438         calls.
17439         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
17440         * config/sh/sh.md (call, call_value, sibcall): Make sure the
17441         call cookie is non-NULL before taking its value.
17442         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
17443         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
17444         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
17445         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
17446         block.
17447         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
17448         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
17449         temporary for stack adjusts.  Use MACL and MACH to pass
17450         arguments to shcompact_incoming_args.
17451         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
17452         clobber r1.
17453         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
17454         (nested_trampoline): Load static chain address into r1.
17455         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
17456         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
17457         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
17458         fp_arith_reg_operand().
17459         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
17460         * config/sh/sh.md (casesi): Sign-extend the first two operands,
17461         and use signed compares for them.
17462         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
17463         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
17464         ones properly aligned.
17465         (find_barrier): Account for extra alignment needed for 8-byte wide
17466         constants.
17467         (machine_dependent_reorg): Require a label for the second 4-byte
17468         constant after an 8-byte one.
17469         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
17470         change.
17471         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
17472         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
17473         last_float when switching float modes.
17474         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
17475         auto-increment for general-purpose registers.
17476         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
17477         result.
17478         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
17479         for stack adjust.
17480         * config/sh/sh.c (sh_builtin_saveregs): Support using all
17481         registers for varargs.
17482         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
17483         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
17484         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
17485         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
17486         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
17487         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
17488         call_cookie accordingly.
17489         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
17490         (SHCOMPACT_BYREF): Likewise.
17491         (SHCOMPACT_FORCE_ON_STACK): New macro.
17492         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
17493         (sh_builtin_saveregs): Likewise.
17494         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17495         shcompact_incoming_args): Use new shift values.  Support
17496         sequences of consecutive and non-consecutive pushes/pops.
17497         * config/sh/sh.md (return): Don't explicitly use PR_REG.
17498         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
17499         * config/sh/sh.h (TEXT_SECTION): Define.
17500         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
17501         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
17502         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
17503         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
17504         return values on FPU-enabled SHmedia.
17505         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
17506         FPU-enabled SHmedia.
17507         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
17508         value is returned in a non-FP reg and is not returned by
17509         reference.
17510         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
17511         jump_ind.
17512         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
17513         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
17514         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
17515         quad-aligned to be passed by callee-copy reference.
17516         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
17517         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
17518         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
17519         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
17520         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
17521         copying low-numbered FP regs to r7 and r8.
17522         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
17523         FP regs to general-purpose regs only if the copy was passed on the
17524         stack.
17525         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
17526         copying FP reg to r9.
17527         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
17528         copy FP regs to general-purpose regs only in outgoing calls.
17529         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
17530         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
17531         HOST_WIDE_INT.
17532         * config/sh/sh.h (struct sh_args): Document all fields.
17533         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
17534         passed partially on the stack should not consider making
17535         sibcalls.
17536         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
17537         stack_regs only for incoming calls.  When passing FP args,
17538         make sure there are FP regs available before modifying
17539         call_cookie.
17540         (SHCOMPACT_BYREF): Pass double args in general-purpose
17541         registers by reference.
17542         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
17543         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
17544         attempt to generate sibcalls if the caller got any arguments
17545         by reference.
17546         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
17547         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
17548         to 8-byte boundaries.
17549         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
17550         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
17551         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
17552         stored in the stack.
17553         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
17554         for the offsets to have the ISA bit set.
17555         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
17556         invocation.  Use beq instead of bgt to mark end of sequence of
17557         loads.
17558         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
17559         bgt to mark end of sequence of stores.
17560         * config/sh/sh.c (arith_operand): Don't check whether
17561         CONST_OK_FOR_J for now.
17562         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
17563         instead of long for conversion.
17564         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
17565         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
17566         before passing it to fprintf.
17567         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
17568         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
17569         Call set_fpscr before reading/writing SR.
17570         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
17571         Call set_fpscr.
17572         * config/sh/lib1funcs.asm: Add `.align 2' directives before
17573         SHmedia code.
17574         (FMOVD_WORKS): Define on SH5 with FPU.
17575         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
17576         setting.
17577         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
17578         _fpscr_values.
17579         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
17580         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
17581         address.
17582         (ia_main_table): Ditto.
17583         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
17584         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
17585         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
17586         the definitions from sh.h.
17587         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
17588         TARGET_SH5.
17589         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
17590         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
17591         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17592         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
17593         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
17594         Increment LABEL_NUSES.
17596         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
17597         TARGET_SH5.
17598         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
17599         defined.
17600         * config/sh/elf.h (SIZE_TYPE): Likewise.
17601         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17602         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17603         shcompact_incoming_args): Load switch table addresses using
17604         datalabel.
17605         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17606         (NO_BUILTIN_SIZE_TYPE): Define.
17607         (SIZE_TYPE): Don't define.
17608         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17609         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
17610         definition of __SH5__=32 for -m5-compact-nofpu.
17611         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
17612         ADDR_DIFF_VEC.
17613         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
17614         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
17615         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
17616         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
17617         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
17618         (INSN_LENGTH_ALIGNMENT): Likewise.
17619         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17620         * config/sh/sh.md (call, call_value, sibcall): Simplify
17621         copying of non-branch-target register.
17622         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17623         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
17624         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
17625         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17626         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
17627         floating-point values as structs.
17628         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
17629         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
17630         general-purpose register.
17631         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
17632         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17633         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
17634         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
17635         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
17636         (ENCODE_SECTION_INFO): Enclose variables and constants in
17637         DATALABEL unspecs.
17638         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
17639         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
17640         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
17641         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
17642         only for LABEL_REFs.  For SYMBOL_REFs, prepend
17643         SH_DATALABEL_ENCODING to the symbol name.
17644         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
17645         convert_mode().
17646         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17647         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
17648         UNSPEC_DATALABEL.
17649         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
17650         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
17651         (DATALABEL_REF_P): Don't require CONST.
17652         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
17653         REL label.
17654         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
17655         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
17656         right.
17657         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17658         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
17659         Use shallow_copy_rtx and PUT_MODE to change the mode of
17660         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
17661         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
17662         on SHmedia using GENERAL_REGs.
17663         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17664         bltu_media_i): Fix reversion of conditions.
17665         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17666         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
17667         * config/sh/sh.c (output_far_jump): Save r13 in macl.
17668         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
17669         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
17670         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
17671         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
17672         (GCC_nested_trampoline): Likewise.
17673         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
17674         * config/sh/sh.c (gen_datalabel_ref): Define.
17675         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
17676         (INITIALIZE_TRAMPOLINE): Likewise.
17677         (TRAMPOLINE_ADJUST_ADDRESS): Define.
17678         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
17679         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
17680         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
17681         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
17682         (ic_invalidate): Adjust for SH5.
17683         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
17684         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
17685         _nested_trampoline.
17686         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
17687         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
17688         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
17689         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17690         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
17691         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
17692         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17693         * config/sh/sh.c (target_reg_operand): Match only target-branch
17694         registers and pseudos that aren't virtual registers.
17695         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17696         Copy operands that don't match target_reg_operand to pseudos.
17697         (call_media, call_value_media, sibcall_media): Use
17698         target_reg_operand instead of target_operand.
17699         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
17700         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
17701         * config/sh/sh.c (target_reg_operand): Match hardware registers
17702         other than branch-target registers.
17703         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
17704         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
17705         (fpscr_values) [SH5 == 32]: Define.
17706         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
17707         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17708         Handle function addresses coming in SUBREGs.
17709         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
17710         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17711         shcompact_return_trampoline): Use datalabel where appropriate.
17712         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
17713         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
17714         general-purpose register to copy one branch-target register to
17715         another.
17716         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17717         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
17718         SYMBOL_REFs with VOIDmode.
17719         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17720         bltu_media_i): New insns.
17721         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17722         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
17723         (INIT_CUMULATIVE_ARGS): Likewise.
17724         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
17725         * machmode.def (V16SFmode): New mode.
17726         * c-common.c (type_for_mode): Support V2SF and V16SF.
17727         * tree.c (build_common_tree_nodes_2): Likewise.
17728         * tree.h (tree_index): Likewise.
17729         * calls.c (emit_call_1): Take args_so_far.  Adjust all
17730         callers.  Introduce CALL_POPS_ARGS.
17731         * tm.texi (CALL_POPS_ARGS): Document.
17732         * config/sh/crt1.asm: Implement in SHmedia mode.
17733         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
17734         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
17735         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
17736         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
17737         Implement divsi and udivsi in SHmedia mode.  Introduce
17738         SHcompact trampolines.
17739         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
17740         only in SHmedia64.
17741         (regno_reg_class): Rewrite.
17742         (fp_reg_names): Remove.
17743         (sh_register_names, sh_additional_register_names): New.
17744         (print_operand): Added `u'.  Support SUBREGs in addresses.
17745         Add parentheses around shifted CONSTs.
17746         (output_file_start): Output .mode and .abi directives.
17747         (shiftcosts, addsubcosts, multcosts): Adjust.
17748         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
17749         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
17750         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
17751         bytes, not registers.  Take into account the need for the
17752         SHcompact incoming args trampoline.  Adjust all callers.
17753         (sh_expand_prologue): Take stack_regs into account.  Call
17754         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
17755         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
17756         stack aligned as per SH5 ABI.
17757         (sh_builtin_saveregs): Support SH5 ABI.
17758         (sh_build_va_list, sh_va_start): Likewise.
17759         (initial_elimination_offset): Take alignment into account.
17760         Compute location of PR according to the SH5 stack frame.
17761         (arith_reg_operand): Reject branch-target registers.
17762         (shmedia_6bit_operand): New.
17763         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
17764         (target_reg_operand): Match DImode only.  Accept SUBREGs.
17765         (target_operand): New.
17766         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
17767         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
17768         SIBCALL_REGS for SHmedia.
17769         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
17770         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
17771         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
17772         (TARGET_SWITCHES): New SH5 flags.
17773         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
17774         VALID_REGISTER_P to disable unsupported registers.
17775         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
17776         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
17777         (FUNCTION_ARG_PADDING): Define.
17778         (FASTEST_ALIGNMENT): Adjust.
17779         (SH_REGISTER_NAMES_INITIALIZER): New.
17780         (sh_register_names): Declare.
17781         (DEBUG_REGISTER_NAMES): Define.
17782         (REGISTER_NAMES): Define based on sh_register_names.
17783         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
17784         (sh_additional_register_names): Declare.
17785         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
17786         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
17787         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
17788         (REGISTER_NATURAL_MODE): Define.
17789         (FIRST_PSEUDO_REGISTER): Adjust.
17790         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
17791         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
17792         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
17793         (VECTOR_MODE_SUPPORTED_P): Define.
17794         (REG_CLASS_CONTENTS): Adjust.
17795         (SMALL_REGISTER_CLASSES): Adjust.
17796         (REG_ALLOC_ORDER): Adjust.
17797         (INDEX_REG_CLASS): Adjust.
17798         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
17799         (CONST_OK_FOR_LETTER_P): Adjust.
17800         (PREFERRED_RELOAD_CLASS): Adjust.
17801         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
17802         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
17803         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
17804         (FIRST_FP_PARM_REG): Adjust.
17805         (CALL_POPS_ARGS): Define.
17806         (FUNCTION_ARG_REGNO_P): Adjust.
17807         (struct sh_args): New fields.
17808         (GET_SH_ARG_CLASS): Adjust.
17809         (INIT_CUMULATIVE_ARGS): Adjust.
17810         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
17811         (FUNCTION_ARG_ADVANCE): Adjust.
17812         (FUNCTION_ARG): Adjust.
17813         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
17814         (FUNCTION_ARG_CALLEE_COPIES): Define.
17815         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
17816         (STRICT_ARGUMENT_NAMING): Define.
17817         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
17818         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
17819         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
17820         (SETUP_INCOMING_VARARGS): Adjust.
17821         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
17822         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
17823         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
17824         (SUBREG_OK_FOR_INDEX_P): Adjust.
17825         (EXTRA_CONSTRAINT_S): Update.
17826         (EXTRA_CONSTRAINT_T): New.
17827         (EXTRA_CONSTRAINT): Adjust.
17828         (GO_IF_LEGITIMATE_INDEX): Adjust.
17829         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
17830         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
17831         (MOVE_MAX): Adjust.
17832         (MAX_MOVE_MAX): Define.
17833         (Pmode): Adjust.
17834         (CONST_COSTS): Adjust.
17835         (REGISTER_MOVE_COST): Adjust.
17836         (BRANCH_COST): Adjust.
17837         (TEXT_SECTION_ASM_OP): Adjust.
17838         (DBX_REGISTER_NUMBER): Adjust.
17839         (ASM_OUTPUT_DOUBLE_INT): New.
17840         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
17841         (PREDICATE_CODES): Adjust.
17842         (PROMOTE_MODE): Adjust.
17843         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
17844         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
17845         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
17846         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
17847         (DR0_REG, DR2_REG, DR4_REG): Renumber.
17848         (TR0_REG, TR1_REG, TR2_REG): New.
17849         (XD0_REG): Renumber.
17850         (UNSPEC_COMPACT_ARGS): New.
17851         (type): Added pt and ptabs.
17852         (length): Default to 4 on SHmedia.  Default pt length to 12
17853         and     20 on SHmedia32 and SHmedia64, respectively.
17854         (pt): New function unit.
17855         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
17856         Add whitespace between operands of SHmedia instructions.
17857         (movdicc): Fix.
17858         (adddi3_media, addsi3_media): Adjust constraints.
17859         (subsi3) [SHmedia]: Force operand 1 into a register.
17860         (udivsi3_i1_media, udivsi3_i4_media): New.
17861         (udivsi3): Support SHmedia.
17862         (divsi3_i1_media, divsi3_i4_media): New.
17863         (divsi3): Support SHmedia.
17864         (anddi3, iordi3, xordi3): Adjust constraints.
17865         (zero_extendhidi2, zero_extendqidi2): New.
17866         (extendsidi2, extendhidi2, extendqidi2): New.
17867         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
17868         (pop_e, pop_fpul, pop_4): Likewise.
17869         (movsi_media): Support FP and BT registers.
17870         (movsi_media_nofpu): New.  Adjust splits to DImode.
17871         (lduw, ldub): Renamed to zero_extend* above.
17872         (movqi_media): Fix typo.
17873         (movdi_media): Support FP and BT registers.
17874         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
17875         (movdi_const_32bit): New.
17876         (shori_media): Require immediate operand.  Use `u' for output.
17877         (movdf_media, movsf_media): Simplified.
17878         (movdf_media_nofpu, movsf_media_nofpu): New.
17879         (movdf, movsf): Adjust
17880         (movv2sf, movv2sf, movv16sf): New.
17881         (beq_media, beq_media_i): Adjust constraints.  Don't use
17882         scratch BT register.
17883         (bne_media, bne_media_i): Likewise.
17884         (bgt_media, bgt_media_i): Likewise.
17885         (bge_media, bge_media_i): Likewise.
17886         (bgtu_media, bgtu_media_i): Likewise.
17887         (bgeu_media, bgeu_media_i): Likewise.
17888         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
17889         bunordered): Emit jump insn.  Force operands to registers when
17890         needed.
17891         (jump_media, jump): Simplify.
17892         (call_compact, call_compact_rettramp): New.
17893         (call_value_compact, call_value_compact_rettramp): New.
17894         (call_media, call_value_media): Simplify.
17895         (sibcall_compact, sibcall_media): New.
17896         (call, call_value): Adjust for SHmedia and SHcompact.
17897         (sibcall, sibcall_value, untyped_call): Likewise.
17898         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
17899         (indirect_jump): Adjust for SHmedia.
17900         (casesi_jump_media): New.
17901         (nop): Re-enable for SHmedia.
17902         (call_site): Restrict to SH1.
17903         (casesi): Adjust for SHmedia.
17904         (casesi_shift_media, casesi_load_media): New.
17905         (return): Explicitly use PR register.  Call return trampoline
17906         on SHcompact.
17907         (return_i): Explicitly use PR register.
17908         (shcompact_return_tramp, shcompact_return_tramp_i): New.
17909         (return_media): Adjust.
17910         (shcompact_incoming_args): New.
17911         (epilogue): Adjust.
17912         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17913         (movstrsi): Disable on SH5.
17914         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
17915         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
17916         (subsf3, subsf3_media): Likewise.
17917         (mulsf3, mulsf3_media, mac_media): Likewise.
17918         (divsf3, divsf3_media): Likewise.
17919         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
17920         (floatsisf2, fux_truncsfsi2): Likewise.
17921         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
17922         constraints.
17923         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
17924         (cmpunsf_media, cmpsf): Likewise.
17925         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
17926         (abssf2, abssf2_media): Likewise.
17927         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
17928         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
17929         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
17930         (floatsidf2, fix_truncdfsi2): Likewise.
17931         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
17932         constraints.
17933         (cmpeqdf_media, cmpgtdf_media): Likewise.
17934         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
17935         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
17936         (absdf2, absdf2_media): Likewise.
17937         (extendsfdf2, extendsfdf2_media): Likewise.
17938         (truncsfdf2, truncsfdf2_media): Likewise.
17939         * config/sh/sh64.h: New file.
17940         * config/sh/t-sh64: New file.
17941         * config/sh/shmedia.h: New file.
17942         * config/sh/ushmedia.h: New file.
17943         * config/sh/sshmedia.h: New file.
17944         * configure.in: Added sh64-*-elf.
17945         * configure: Rebuilt.
17946         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
17947         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
17948         (reg_class_from_letter): Use `b' for TARGET_REGS.
17949         (print_operand): Support `%M', `%m', `AND' and
17950         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
17951         (andcosts): Adjust for SHmedia.
17952         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
17953         Likewise.
17954         (target_reg_operand): New function.
17955         * config/sh/sh-protos.h (target_reg_operand): Declare.
17956         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
17957         FP registers on SH5.
17958         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
17959         on SH4.
17960         (TARGET_REGISTER_P): New macro.
17961         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
17962         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
17963         (EXTRA_CONSTRAINT_S): New macro.
17964         (EXTRA_CONSTRAINT): Adjust.
17965         (FLOAT_TYPE_SIZE): Define to 32.
17966         (Pmode): DImode on SHmedia.
17967         (CONST_COSTS): Adjust for SHmedia literals.
17968         (PREDICATE_CODES): Added target_reg_operand.
17969         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
17970         * config/sh/sh.md: Remove all attrs from SHmedia insns.
17971         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
17972         (cmpdi): Accept SHmedia.
17973         (movdicc_false, movdicc_true): New insns.
17974         (movdicc): New expand.
17975         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
17976         no_new_pseudos.
17977         (addsi3_media): Match `S' constraint.
17978         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
17979         (negdi2): Expand for SHmedia.
17980         (one_cmpldi2): New expand.
17981         (zero_extendsidi2): Change from expand to insn.
17982         (extendsidi2): Add constraints.
17983         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
17984         LD/ST address.  Fix SI immediate loading split.
17985         (movhi_media, movqi_media, lduw, ldub): New insns.
17986         (movhi, movqi): Accept SHmedia.
17987         (shori_media, movdi_media): Relax input constraints.  Split
17988         symbolic constants.
17989         (movdf_media, movsf_media): New insn.  New split to movdi.
17990         (movdf, movsf): Match on SHmedia.
17991         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
17992         bgeu_media): New insns and splits.  New insns with `_i' suffix.
17993         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
17994         (bunordered): New expand.
17995         (jump_compact): Renamed from `jump'.
17996         (jump_media): New insn.
17997         (jump): New expand.
17998         (call_media, call_value_media): New insns.
17999         (call, call_value): Adjust.
18000         (indirect_jump_compact): Renamed from `indirect_jump'.
18001         (indirect_jump_media): New insn.
18002         (indirect_jump): New expand.
18003         (untyped_call, return): Accept SHmedia.
18004         (return_media): New insn.
18005         (prologue, epilogue, blockage): Accept SHmedia.
18006         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
18007         (sunordered): New expand.
18008         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
18009         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
18010         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
18011         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
18012         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
18013         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
18014         abssf2_media): New insns.
18015         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
18016         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
18017         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
18018         floatdidf2, floatsidf2_media, fix_truncdfdi2,
18019         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
18020         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
18021         absdf2_media): New insns.
18022         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
18023         (extendsfdf2_media, truncdfsf2_media): New insns.
18024         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
18025         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
18026         * config/sh/sh.h (CONST_OK_FOR_J): Document.
18027         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
18028         * config/sh/sh.md (adddi3): New expand.
18029         (adddi3_media, adddi3z_media): New insns.
18030         (adddi3_compact): Renamed from adddi3.
18031         (addsi3_media): Use add.l r63 to add constant zero.
18032         (subdi3): New expand.
18033         (subdi3_media): New insn.
18034         (subdi3_compact): Renamed from subdi3.
18035         (mulsidi3): New expand.
18036         (mulsidi3_media): New insn.
18037         (mulsidi3_compact): Renamed from mulsidi3.
18038         (umulsidi3): New expand.
18039         (umulsidi3_media): New insn.
18040         (umulsidi3_compact): Renamed from umulsidi3.
18041         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
18042         (ashlsi3, ashrsi3, lshrsi3): Use them.
18043         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
18044         (ashldi3, ashrdi3, lshrdi3): Use them.
18045         (zero_extendsidi2): New expand.
18046         (extendsidi2): New insn.
18047         (movsi_media): New insn.  Split to movdi to load constants.
18048         (movsi): Enable for shmedia.
18049         (movdi_media): New insn.  Use shori_media to load wide constants.
18050         (short_media): New insn.
18051         (movdi): Enable for shmedia.
18052         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
18053         * config/sh/sh.h (CPP_SPEC): Added `m5'.
18054         (SUBTARGET_CPP_SPEC): Added `!m5'.
18055         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
18056         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
18057         to all other SH variants.
18058         (TARGET_DEFAULT): Set to SH1_BIT.
18059         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
18060         (BITS_PER_WORD): Raise to 64 on shmedia.
18061         (MAX_BITS_PER_WORD): Change to 64.
18062         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
18063         (INT_TYPE_SIZE): Keep as 32.
18064         (UNITS_PER_WORD): Raise to 8 on shmedia.
18065         (MIN_UNITS_PER_WORD): Keep as 4.
18066         (POINTER_SIZE): Raise to 64 on shmedia.
18067         (CONST_OK_FOR_J): New macro.
18068         (CONST_OK_FOR_LETTER_P): Use it.
18069         (processor_type): Add PROCESSOR_SH5.
18070         * config/sh/sh.md: Conditionalize all expands, insns and
18071         splits to TARGET_SH1.
18072         (cpu): Added sh5.
18073         (addsi3_compact): Renamed from...
18074         (addsi3): Now an expand.
18075         (addsi3_media, subsi3_media): New insns.
18076         (subsi3): Don't negate constants with SHmedia.
18078         * hooks.c: New file.
18079         * hooks.h: New file.
18080         * Makefile.in (HOOKS_H): New.
18081         (TARGET_DEF_H): Added $(HOOKS_H).
18082         (OBJS): Added hooks.o.
18083         (cfgcleanup.o, bb-reorder.o): Added target.h.
18084         (hooks.o): Added dependencies.
18085         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
18086         (TARGET_INITIALIZER): this.
18087         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
18088         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
18089         * bb-reorder.c: Include target.h.
18090         (reorder_basic_blocks): Skip if cannot modify jumps.
18091         * cfgcleanup.c: Include target.h.
18092         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
18094 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
18096         * config/mips/mips.md (casesi_internal, casesi_internal_di):
18097         Protect jump delay slot instructions with .set noreorder and
18098         .set nomacro.
18100 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
18102         * config/mips/mips.md (casesi_internal_di): Calculate
18103         the index into the target offset table correctly.
18105 2002-02-08  Richard Henderson  <rth@redhat.com>
18107         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
18108         * final.c (output_addr_const): Accept and discard SUBREG.
18109         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
18110         mark them unknown instead.
18111         (simplify_subtraction): Handle RTX_UNKNOWN.
18112         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
18114 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
18116         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
18118 2002-02-08  Richard Henderson  <rth@redhat.com>
18120         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
18122 2002-02-08  Andreas Jaeger  <aj@suse.de>
18124         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
18125         * config/i386/t-linux64: New file.
18127 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
18129         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
18130         * c-parse.in (compstmt): Clear last_expr_type.
18132 2002-02-07  Richard Henderson  <rth@redhat.com>
18134         * loop.c (strength_reduce): Sink final_value when not
18135         eliminating a biv.
18137 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
18139         * config/sparc/freebsd.h: Fix mismatched spec {.
18141 2002-02-07  Richard Henderson  <rth@redhat.com>
18143         * cfgrtl.c: Include recog.h and insn-config.h.
18144         (keep_with_call_p): Fix general_operand invocation.
18145         * Makefile.in (cfgrtl.o): Update dependencies.
18147 2002-02-07  Kazu Hirata  <kazu@hxi.com>
18149         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
18150         comment.  Accept HImode only if TARGET_H8300.
18152 2002-02-07  Eric Christopher  <echristo@redhat.com>
18154         * config/mips/crtn.asm: Cleanup #ifdefs.
18156 2002-02-07  Eric Christopher  <echristo@redhat.com>
18158         * config/mips/crti.asm: Add changes for mips16. mips16 uses
18159         register 7 as RA instead of $31.
18160         * config/mips/crtn.asm: Ditto.
18161         * config/mips/mips.c (mips_move_2words): Add case for
18162         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
18163         (compute_frame_size): Fix typo.
18164         (save_restore_insns): Ditto.  Make documentation about using
18165         register $7 as return register more precise.
18166         (mips_expand_epilogue): Fix comment. Add code to work around not
18167         being able to add to the stack pointer directly.
18168         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
18169         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
18170         epilogue.
18172 2002-02-07  Tom Rix  <trix@redhat.com>
18174         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
18175         immediates in ldu and stdu DS opcode field.
18176         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
18177         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
18178         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
18180 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
18182         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
18183         offset for stack bias.
18185 2002-02-07  H.J. Lu <hjl@gnu.org>
18187         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
18189 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
18191         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
18193 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
18195         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
18196         * i386.c (x86_order_regs_for_local_alloc): New global function.
18197         * i386.h (REG_ALLOC_ORDER): CLeanup.
18198         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
18200 2002-02-07  Richard Henderson  <rth@redhat.com>
18202         PR optimization/2463
18203         * alias.c (find_base_value): Recall base values for fixed hard regs.
18204         * loop.c (loop_regs_update): Don't use single_set on non-insns.
18206 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
18208         * config/mips/mips.md (define_delay) [mips16]: Adjust required
18209         length.
18211 2002-02-06  Richard Henderson  <rth@redhat.com>
18213         PR c/5609
18214         * stmt.c (resolve_operand_name_1): Take more care with mixed
18215         named and unnamed operands.
18217 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
18218             Jan Hubicka  <jh@suse.cz>
18220         * loop.c (remove_constant_addition): Avoid clobbering a shared
18221         CONST expression.
18223 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
18225         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
18226         * config/s390/t-linux64: New file.
18227         * config/s390/libgcc-glibc.ver: New file.
18229 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
18231         * config/s390/linux64.h: Delete file.
18232         * config/s390/s390x.h: New file.
18233         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
18234         as target header file.
18235         * config/s390/linux.h (TARGET_VERSION): Define depending on
18236         DEFAULT_TARGET_64BIT.
18237         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
18238         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
18239         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
18240         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
18241         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
18242         (EXTRA_SPEC): New define.
18243         * config/s390/s390.h (TARGET_VERSION): Define depending on
18244         DEFAULT_TARGET_64BIT.
18245         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
18247 2002-02-06  Jason Merrill  <jason@redhat.com>
18249         * c-decl.c (finish_function): Warn about a non-void function with
18250         no return statement and no abnormal exit.
18251         (current_function_returns_abnormally): New variable.
18252         (start_function): Clear it.
18253         (struct c_language_function): Add returns_abnormally.
18254         (push_c_function_context): Save it.
18255         (pop_c_function_context): Restore it.
18256         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
18257         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
18258         an explicit return type.
18259         * c-tree.h: Declare current_function_returns_abnormally.
18260         (C_FUNCTION_IMPLICIT_INT): New macro.
18261         * c-typeck.c (build_function_call): Set it.
18262         (c_expand_return): Set current_function_returns_value even if the
18263         value is erroneous.
18265 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
18267         PR c/5420:
18268         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
18269         unsafe for reevaluation.
18271 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
18273         PR c/5482:
18274         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
18275         EXPR_STMT, but COMPOUND_STMT, recurse into it.
18277 2002-02-06  Richard Henderson  <rth@redhat.com>
18279         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
18280         be a general_operand.  Dest for function value must be a pseudo.
18282 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
18284         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
18285         as SYMBOL_REFs from the constant pool.
18287 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
18289         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
18290         passed by invisible reference.
18292 2002-02-05  Richard Henderson  <rth@redhat.com>
18294         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
18296 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
18298         Implement using "base addresses" in insn operands as default.
18299         * config/mmix/mmix.c (mmix_conditional_register_usage): if
18300         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
18301         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
18302         used to read the rtx value.
18303         (mmix_target_asm_function_epilogue): Fix spacing.
18304         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
18305         (mmix_legitimate_address): Ditto.
18306         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
18307         should be loaded with a GETA insn.  Don't allocate needless extra
18308         char for nul termination and fix misleading comment.
18309         (mmix_print_operand_address): Handle constants if
18310         TARGET_BASE_ADDRESSES.
18311         (mmix_output_register_setting): Use base addressing if
18312         TARGET_BASE_ADDRESSES and the number of insns is 3.
18313         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
18314         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
18315         to use R as constraint, add LDA to match s.
18316         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
18317         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
18318         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
18319         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
18320         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
18321         order with other fixed registers.
18322         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
18323         other parameter/call-clobbered registers.
18324         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
18325         -mbase-addresses, -mno-base-addresses.
18326         (MMIX Options): Ditto.
18328 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18330         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
18332 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
18334         * config/rs6000/altivec.h: Change elem to _S_elem.
18336 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
18338         * config/netbsd.h (WCHAR_TYPE): Define.
18339         (WCHAR_TYPE_SIZE): Ditto.
18340         (WINT_TYPE): Ditto.
18341         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
18342         (WCHAR_UNSIGNED): Ditto.
18343         (WCHAR_TYPE_SIZE): Ditto.
18344         (WINT_TYPE): Ditto.
18345         * config/arm/netbsd.h: Likewise.
18346         * config/i386/netbsd-elf.h: Likewise.
18347         * config/i386/netbsd.h: Likewise.
18348         * config/m68k/netbsd-elf.h: Likewise.
18349         * config/m68k/netbsd.h: Likewise.
18350         * config/ns32k/netbsd.h: Likewise.
18351         * config/sparc/netbsd.h: Likewise.
18352         * config/vax/netbsd.: Likewise.
18354 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
18356         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
18357         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
18358         (TARGET_INITIALIZER): this.
18359         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
18360         (BITFIELD_NBYTES_LIMITED): Markup fix.
18361         * tree.h (default_ms_bitfield_layout_p): Declare.
18362         (record_layout_info): Added prev_field.
18363         * tree.c (default_ms_bitfield_layout_p): New fn.
18364         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
18365         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
18366         * stor-layout.c: Include target.h.
18367         (start_record_layout): Initialize prev_field.
18368         (place_field): Handle MS bit-field layout, and disregard
18369         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
18370         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
18371         * Makefile.in (stor-layout.o): Adjust dependencies.
18373 2002-02-05  Jason Merrill  <jason@redhat.com>
18375         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
18377 2002-02-05  Andreas Jaeger  <aj@suse.de>
18379         * crtstuff.c: Fix comments.
18381 2002-02-05  Richard Henderson  <rth@redhat.com>
18383         PR fortran/3393
18384         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
18385         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
18387         PR fortran/3392
18388         * config/mips/mips.c (function_arg): Handle TImode.
18389         (function_arg_advance): Likewise.
18391 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18393         * config/rs6000/altivec.h (vec_step_help): Rename to
18394         __vec_step_help.
18396 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18398         * config/rs6000/altivec.h: Fix typos.
18400 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
18402         * config/arm/netbsd.h: Correct a comment.
18404 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18406         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
18407         building void typed builtins.
18409         * config/rs6000/altivec.h (vec_ld*): Fix typos.
18410         (vec_step): Implement for C++.
18412 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18414         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
18416 2002-02-04  Richard Henderson  <rth@redhat.com>
18418         * combine.c (nonzero_bits): Re-introduce special case for
18419         sp/fp/ap wrt REGNO_POINTER_ALIGN.
18421 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18423         * doc/extend.texi: Warn about unsupported usage of altivec
18424         builtins.
18426         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
18427         (altivec_predicate_*): New.
18429         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
18430         Add C++ version of vec_*() functions.
18432         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
18433         (bdesc_2arg): Remove altivec predicates.
18434         (altivec_expand_builtin): Handle predicates.
18435         (altivec_init_builtins): Handle predicates.
18436         (altivec_expand_predicate_builtin): New.
18438 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18440         * pa.c (DO_FRAME_NOTES): Move forward.
18441         (store_reg): Revise handling of frame notes.
18442         (load_reg): Likewise.
18443         (set_reg_plus_d): Likewise.
18444         (hppa_expand_prologue): Likewise.
18445         (hppa_expand_epilogue): Likewise.
18447 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18449         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
18451 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18453         PR c/4475, c++/3780:
18454         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
18455         * c-common.h (SWITCH_TYPE): Define.
18456         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
18457         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
18458         Rename spareness variable to sparseness.
18459         (expand_end_case_type): Renamed from expand_end_case, use orig_type
18460         if non-NULL instead of TREE_TYPE (orig_index).
18461         * tree.h (expand_end_case_type): Renamed from expand_end_case.
18462         (expand_end_case): Define using expand_end_case_type.
18463         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
18464         to expand_end_case_type.
18465         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
18467 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18469         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
18470         (BIGGEST_ALIGNMENT): Change to 128.
18472 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18474         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
18476 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18478         * pa.md (call_internal_reg_64bit): Remove unused variable.
18480 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
18482         * config/arm/arm.h (machine_function): Add uses_anonymous_args
18483         field.
18484         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
18485         * config/arm/arm.c (current_function_anonymous_args): Delete,
18486         replace uses with cfun->machine->uses_anonymous_args.
18487         (arm_reorg): Do not reset uses_anonymous_args.
18489         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
18490         any geenral register.
18492 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
18494         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
18495         the entry block.
18497 2002-02-04  Richard Henderson  <rth@redhat.com>
18499         * combine.c (force_to_mode): Remove STACK_BIAS code.
18500         (nonzero_bits): Likewise.  Replace sp/fp special case with
18501         REGNO_POINTER_ALIGN.
18503         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
18504         (HARD_FRAME_POINTER_REGNUM): New.
18505         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
18506         (FIXED_REGS, CALL_USED_REGS): Update.
18507         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
18508         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
18509         (HARD_REGNO_NREGS): Update for SFP.
18510         (STACK_POINTER_OFFSET): Include bias here ...
18511         (FIRST_PARM_OFFSET): ... not here.
18512         (STACK_BIAS): Remove.
18513         (INIT_EXPANDERS): New.
18514         (STARTING_FRAME_OFFSET): Do not include bias.
18515         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
18516         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
18517         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
18518         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
18519         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
18520         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
18521         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
18522         (MUST_SAVE_REGISTER): Likewise.
18523         (sparc_flat_function_prologue): Likewise.
18524         (sparc_flat_function_epilogue): Likewise.
18525         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
18526         (sparc_init_modes): SFP is GENERAL_REGS.
18527         (sparc_builtin_saveregs): SFP does not have bias applied.
18529 2002-02-04  Richard Henderson  <rth@redhat.com>
18531         * config/alpha/alpha.c (current_function_is_thunk): Don't check
18532         current_function_is_thunk.
18533         (alpha_sa_mask): Distinguish between current_function_is_thunk
18534         called from ASM_OUTPUT_MI_THUNK and not.
18535         (alpha_does_function_need_gp): Thunks always need gp.
18536         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
18537         (alpha_output_mi_thunk_osf): New.
18538         * config/alpha/alpha-protos.h: Update.
18539         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
18541 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
18543         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
18544         function types, not when they're taken away.
18546 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
18548         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
18549         CODE_LABEL and jump table when replacing a table jump with a
18550         simple jump.
18552 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18554         * config/s390/s390-protos.h (legitimize_la_operand,
18555         s390_secondary_input_reload_class, s390_plus_operand,
18556         s390_expand_plus_operand): Add prototypes.
18558         config/s390/s390.c (s390_secondary_input_reload_class,
18559         s390_plus_operand, s390_expand_plus_operand): New functions.
18561         (struct s390_address): New member 'pointer'.
18562         (s390_decompose_address): Compute it.
18563         (legitimate_la_operand_p): Use it.
18564         (legitimize_la_operand): New function.
18565         (movti, movdi, movdf splitters): Call it.
18567         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
18568         (PREDICATE_CODES): Add s390_plus_operand.
18570         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
18571         (la_ccclobber): Allow GENERAL_REGS as output operand.
18573         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
18574         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
18575         (*la_64, *la_31, reload_indi, reload_insi): ... these.
18577 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18579         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
18580         register names for regular asm () construct.
18582 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18584         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
18585         registers.
18587 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18589         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
18590         pat for recog.
18592 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
18594         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
18595         constant pool to be identical by string address and index.
18597 2002-02-04  Anthony Green  <green@redhat.com>
18599         * output.h (SECTION_OVERRIDE): Define.
18600         * varasm.c (named_section): Obey SECTION_OVERRIDE.
18602 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18604         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
18605         by existing arm*-*-netbsd* (a.out) target.
18606         (ns32k-*-netbsdelf*): Likewise.
18607         (sparc-*-netbsdelf*): Likewise.
18608         (vax-*-netbsdelf*): Likewise.
18610 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
18612         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
18613         headers and libobjc headers.
18615 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
18617         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
18618         (_mingw.h): Remove duplicate include.
18620 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18622         * config.gcc: Set cpu_type to m68k for 68010, as well.
18623         (m68010-*-netbsdelf*): New...
18624         (m68k*-*-netbsdelf*): ...targets.
18625         * config/m68k/netbsd-elf.h: New file.
18627 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18629         * config/h8300/h8300.c (hand_list): Move inside function_arg.
18631 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18633         * config/h8300/h8300.c (h8_push_ops): Move inside
18634         h8300_init_once.
18635         (h8_pop_ops): Likewise.
18636         (h8_move_ops): Likewise.
18638 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18640         * config/h8300/h8300.c (os_task): Make it static.
18641         (monitor): Likewise.
18642         (pragma_saveall): Likewise.
18644 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
18646         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
18647         constant is a valid sign-extension for Pmode.
18649 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18651         * config/h8300/h8300.c: Fix formatting.
18653 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18655         * config/h8300/h8300.md: Fix formatting.
18657 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18659         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
18660         predicates of operands[1].  Split the patterns for each
18661         processor variant.
18663 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18665         * config/h8300/h8300.md (xor patterns): Tighten the predicates
18666         of operands[1] to register_operand.
18668 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18670         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
18671         * cpphash.c (_cpp_init_hashtable): Similarly.
18672         * cppinit.c (cpp_create_reader): Default the signed_char flag.
18673         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
18674         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
18675         (cpp_handle_option): Handle the new options.
18676         * cpplex.c (cpp_interpret_charconst): Use new flag.
18677         * cpplib.h (struct cpp_options): New member signed_char.
18678         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
18679         (cpp_options): Handle -fsigned-char and -funsigned-char.
18680         (static_specs): Remove signed_char_spec.
18681         (do_spec1): Don't handle %c.
18682         * system.h: Poison SIGNED_CHAR_SPEC.
18683         * tradcif.y (yylex): Use flag_signed_char.
18684         * tradcpp.h (flag_signed_char): New.
18685         * tradcpp.c (flag_signed_char): New.
18686         (main): Handle new command-line options.
18687         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
18688 config:
18689         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
18690         * avr/avr.h: Remove old comments.
18691         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
18692         (CC1_SPEC): Pass -fsigned-char if -mic*.
18693         (SIGNED_CHAR_SPEC): Remove.
18694 doc:
18695         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
18697 2002-02-01  Eric Christopher  <echristo@redhat.com>
18699         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
18700         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
18701         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
18702         (ASM_OUTPUT_REG_POP): Ditto.
18704 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18706         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
18707         patch.
18709 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18711         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
18713 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18715         PR c/5304:
18716         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
18717         unconditionally.
18719 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18721         * cfganal.c: Include tm_p.h.
18722         (keep_with_call_p): Fix the test that determines if a register holds
18723         the return value of a call.
18725 2002-02-01  DJ Delorie  <dj@redhat.com>
18727         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
18728         we are given conflicting registers, switch to the other one we
18729         had allocated for us.
18730         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
18731         as TImode so we know when the "other" register is available.
18733 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
18735         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
18736         sparc/sparc_bi.h.
18738 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18740         * cfganal.c (keep_with_call_p): New function.
18741         (flow_call_edges_add): Prevent splitting a block between a call and
18742         a single-set instruction that should be kept in the same block.
18744 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18746         * doc/install.texi (avr): Update outdated URL.
18748 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
18750         * config/stormy16/stormy16.md (pushqi): New.
18751         (popqi): New.
18752         (pushhi): New.
18753         (pophi): New.
18754         (movhi): Remove stack operands.
18755         (movqi): Likewise.
18756         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
18757         nonimmediate_nonstack_operand.
18758         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
18759         New.
18760         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
18761         New.
18763 2002-01-31  Jason Merrill  <jason@redhat.com>
18765         * Makefile.in (c-parse.c): Handle .output file.
18766         * objc/Make-lang.in (objc-parse.c): Likewise.
18768 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
18770         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
18771         the -me[lb] option is given.  Don't output the default flag
18772         twice.
18774 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
18776         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
18777         the primary source file; this has not been done yet.
18778         * c-decl.c (c_expand_body): Reset input_filename from
18779         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
18781 2002-01-31  Kazu Hirata  <kazu@hxi.com>
18783         * rtlanal.c (subreg_regno_offset): Do not use
18784         SUBREG_REGNO_OFFSET.
18785         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
18786         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
18788 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18790         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
18791         version rather than GNATS version in --version output.
18793 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
18795         * ifcvt.c (noce_process_if_block): Make a copy of the destination
18796         when copying back from a temporary.
18798 2002-01-30  Richard Henderson  <rth@redhat.com>
18800         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
18801         and new_dest are the same.
18803 2002-01-30  Richard Henderson  <rth@redhat.com>
18805         PR opt/5076
18806         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
18807         * rtl.c (note_insn_name): Update.
18808         * emit-rtl.c (remove_unnecessary_notes): Kill it.
18809         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
18810         to perform loop rotation.
18811         (expand_exit_loop_top_cond): New.
18812         * tree.h (expand_exit_loop_top_cond): Declare it.
18813         * c-semantics.c (genrtl_while_stmt): Use it.
18814         (genrtl_for_stmt): Likewise.
18816 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
18818         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
18819         arguments to 64-bit boundaries on 64-bit ABIs.
18821 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
18823         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
18825 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18827         * c-decl.c (grokdeclarator): Handle type being a typedef for an
18828         invalid type.
18830 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
18832         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
18833         * config/sparc/sparc_bi.h: Remove file.
18834         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
18836 2002-01-30  Richard Henderson  <rth@redhat.com>
18838         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
18840 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
18842         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
18844 2002-01-30  Jason Merrill  <jason@redhat.com>
18846         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
18847         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
18848         (reg_save): Use DW_CFA_offset_extended_sf instead.
18850         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
18852 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18854         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
18855         in cselib_lookup.
18857 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
18859         * rs6000.md ("*call_value_local32"): Remove constraints.
18860         ("*call_value_local64"): Same.
18861         ("*call_value_indirect_nonlocal_aix32"): Same.
18862         ("*call_value_nonlocal_aix32"): Same.
18863         ("*call_value_indirect_nonlocal_aix64"): Same.
18864         ("*call_value_nonlocal_aix64"): Same.
18865         ("*call_value_nonlocal_sysv"): Same.
18867 2002-01-29  Richard Henderson  <rth@redhat.com>
18869         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
18871 2002-01-29  Richard Henderson  <rth@redhat.com>
18873         * expr.c (force_operand): Ignore flag_pic for detecting pic
18874         address loads.
18875         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
18876         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
18877         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
18878         instead of open-coded loop.
18879         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
18880         be fixed when in use.
18882 2002-01-29  Richard Henderson  <rth@redhat.com>
18884         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
18885         * sched-rgn.c (propagate_deps): Update them.
18886         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
18887         clobbers list when either gets too long.
18889 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18891         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
18892         and INDEX_REGS the same as GENERAL_REGS.
18893         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18895 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18897         * tree.c (build_nonstandard_integer_type): Correct prototype.
18899 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
18901         * config/s390/s390.md (movstrsico, movstrdix_64,
18902         movstrsix_31): Remove, replace by ...
18903         (movstrdi_short, movstrsi_short, movstrdi_long,
18904         movstrsi_long): ... these.  New.
18905         (movstrdi, movstrsi): Adapt.
18907         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
18908         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
18909         Remove unnecessary CC clobber.
18910         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
18911         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
18913         (divmoddi4): Don't partially initialize TImode register.
18915 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
18917         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
18919 2002-01-29  Richard Henderson  <rth@redhat.com>
18921         * flow.c (print_rtl_and_abort): Remove.
18922         (print_rtl_and_abort_fcn): Remove.
18923         (verify_local_live_at_start): Use dump_bb instead.
18924         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
18925         (verify_wide_reg_1): Return 2 on mode test failure.
18927 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18929         PR c/3325, c/3326, c/2511, c/3347
18930         * c-decl.c (enum_decl_context): Remove BITFIELD.
18931         (grokdeclarator): Take bitfield width as an input.
18932         Ensure bitfields are given the correct type.  Perform
18933         bitfield width validation with build_bitfield_integer_type
18934         rather than waiting for finish_struct.
18935         (grok_typename, grok_typename_in_parm_context, start_decl,
18936         push_parmdecl, grokfield, start_function): Update calls to
18937         grokdeclarator.
18938         (build_bitfield_integer_type): New function.
18939         (finish_struct): Move bitfield validation to grokdeclarator
18940         and build_bitfield_integer_type.
18941         * tree.c (build_nonstandard_integer_type): New function.
18942         * tree.h (build_nonstandard_integer_type): New prototype.
18943 objc:
18944         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
18946 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18948         PR other/1502:
18949         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
18950         don't ignore unrecognized -W* options.
18951         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
18952         * cpplib.h (cpp_handle_option): Adjust prototype.
18953         * c-decl.c (c_decode_options): Pass 0 as last argument to
18954         cpp_handle_option.
18956         PR c/2896:
18957         * gcc.c (cpp_unique_options): Split from cpp_options.
18958         (cpp_options): Source cpp_unique_options.
18959         (default_compilers): Use cpp_unique_options instead of cpp_options
18960         when used together with cc1_options.
18961         (static_specs): Add cpp_unique_options.
18962         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
18963         when used together with cc1_options.
18965 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18967         * config/h8300/h8300-protos.h: Update the prototype of
18968         output_a_shift.
18969         * config/h8300/h8300.c (output_a_shift): Remove an unused
18970         argument 'insn'.  Remove redundant code.
18971         * config/h8300/h8300.md: Adust to the new prototype of
18972         output_a_shift.
18974 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18976         * config/h8300/h8300-protos.h: Update the prototypes of
18977         emit_a_rotate and expand_a_rotate.
18978         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
18979         first argument to 'enum rtx_code'.
18980         (expand_a_rotate): Likewise.
18982 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18984         * config/h8300/h8300-protos.h: Update the prototype of
18985         output_simode_bld.
18986         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
18987         'log2'.
18988         * config/h8300/h8300.md: Adjust to the new prototype.
18990 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18992         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
18993         redundant code.
18995 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18997         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
18998         is a fixed register before returning pic_offset_table_rtx.
18999         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
19000         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
19002 2002-01-28  Jason Merrill  <jason@redhat.com>
19004         * dwarf2.h: Sync with src version.
19006 2002-01-28  Paul Koning  <pkoning@equallogic.com>
19008         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
19009         BT_FN_VOID_PTR_VAR.
19010         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
19011         * doc/extend.texi (__builtin_prefetch): Update documentation:
19012         first argument is now const void ptr.
19014 2002-01-28  Kazu Hirata  <kazu@hxi.com>
19016         * config/h8300/h8300-protos.h: Remove an unused prototype.
19018 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
19020         * toplev.c (lang_independent_init): Round up identifier size.
19022 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
19024         * config.gcc: Revert previous change.
19026 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
19028         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
19030 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
19032         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
19033         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
19034         other non-elf netbsd config frags.
19035         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
19036         collect2 will does that.
19037         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
19038         shared-lib frobbing will work.
19040 2002-01-28  Kazu Hirata  <kazu@hxi.com>
19042         * config/h8300/h8300.h: Fix formatting.
19043         * config/h8300/h8300.md: Likewise.
19045 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
19047         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
19048         the old, removed AAA_standards fix.
19049         * fixinc/fixincl.x: Rebuilt.
19051 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
19053         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
19054         atexit call in crtbegin, hooked in after call to frame_dummy;
19055         register EH before registering __fini__start.
19057 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
19059         * config/rs6000/altivec.h: Remove spurious semicolons.
19061 2002-01-27  Kazu Hirata  <kazu@hxi.com>
19063         * config/h8300/h8300.md: Replace dead bit extraction patterns
19064         with ones that work.
19066 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19068         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
19069         if not STRICT_ALIGNMENT.
19070         * rtl.h (MEM_ALIGN): Likewise.
19072 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19074         * doc/invoke.texi (-fdump-translation-unit): Revert this
19075         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19077 2002-01-27  Kazu Hirata  <kazu@hxi.com>
19079         * config/h8300/h8300.md (define_constants): New.
19080         (anonymous patterns) Use defined constants appropriately.
19082 2002-01-27  Kazu Hirata  <kazu@hxi.com>
19084         * config/h8300/h8300.c (function_arg): Remove redundant code.
19086 2002-01-26  Richard Henderson  <rth@redhat.com>
19088         * sched-deps.c (reg_pending_uses_head): New.
19089         (reg_pending_barrier): Rename from reg_pending_sets_all.
19090         (find_insn_list): Don't mark inline.
19091         (find_insn_mem_list): Remove.
19092         (add_dependence_list, add_dependence_list_and_free): New.
19093         (flush_pending_lists): Replace only_write param with separate
19094         for_read and for_write parameters.  Update all callers.  Use
19095         add_dependence_list_and_free.
19096         (sched_analyze_1): Do not add reg dependencies here; just set
19097         the pending bits.  Use add_dependence_list.
19098         (sched_analyze_2): Likewise.
19099         (sched_analyze_insn): Replace schedule_barrier_found with
19100         reg_pending_barrier.  Add all dependencies for pending reg
19101         uses, sets, and clobbers.
19102         (sched_analyze): Don't add reg dependencies for calls, just
19103         set pending bits.  Use regs_invalidated_by_call.  Treat
19104         sched_before_next_call as a normal list, not a fake insn.
19105         (init_deps): No funny init for sched_before_next_call.
19106         (free_deps): Free pending mems lists.  Don't zero reg_last.
19107         (init_deps_global): Init reg_pending_uses.
19108         (finish_deps_global): Free it.
19109         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
19110         (find_insn_mem_list): Remove.
19111         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
19112         (propagate_deps): Use them.  Zero temp mem lists.
19114 2002-01-26  Richard Henderson  <rth@redhat.com>
19116         * Makefile.in (CRTSTUFF_CFLAGS): New.
19117         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
19118         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
19119         crtstuff.c instead of alpha assembly version.
19120         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
19121         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
19122         not FORCE_{INIT,FINI}_SECTION_ALIGN.
19123         (__do_global_dtors_aux): Mark used.
19124         (frame_dummy, __do_global_ctors_aux): Mark used.
19125         (fini_dummy, init_dummy): Remove.
19127         * config/alpha/crtbegin.asm: Remove file.
19128         * config/alpha/crtend.asm: Remove file.
19129         * config/alpha/t-crtbe: Remove file.
19130         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
19131         (LINK_EH_SPEC): New.
19133         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
19134         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
19135         calling constructors.
19136         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
19138         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
19139         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
19140         CRT_END_INIT_DUMMY hack.
19141         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
19142         FORCE_{INIT,FINI}_SECTION_ALIGN.
19144         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
19145         FORCE_{INIT,FINI}_SECTION_ALIGN.
19147         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
19148         invocation sequence.
19149         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
19151         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
19152         (FORCE_CODE_SECTION_ALIGN): New.
19154 2002-01-26  Richard Henderson  <rth@redhat.com>
19156         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
19158 2002-01-26  Richard Henderson  <rth@redhat.com>
19160         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
19161         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
19163 2002-01-26  Kazu Hirata  <kazu@hxi.com>
19165         * config/h8300/h8300.md: Remove bit extraction patterns that
19166         cannot be triggered.
19167         Restrict each bit extraction pattern to a variant on which the
19168         pattern is tested.
19170 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
19172         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
19174 2002-01-26  Kazu Hirata  <kazu@hxi.com>
19176         * config/h8300/h8300.md: Remove bit test patterns that cannot
19177         be triggered.
19178         Restrict each bit test pattern to a variant on which the
19179         pattern is tested.
19181 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19183         * builtins.c (expand_builtin_strncat): Remove redundant check for
19184         INTEGER_CST.
19186 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
19188         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
19189         default setting.
19190         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
19191         existing setting.
19193 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
19195         * dbxout.c (dbxout_init): Use assemble_name rather than just
19196         stripping off the first character.
19197         (dbxout_source_file): Likewise.
19199 2002-01-25  DJ Delorie  <dj@redhat.com>
19201         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
19202         using rtx_equal_p, not by comparing pointers.
19204 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
19206         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
19207         for PIC_OFFSET_TABLE_REGNUM.
19208         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
19210 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
19212         * config.gcc (x86_64-*-freebsd*): New target.
19213         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
19214         value.
19215         (i[34567]86-*-freebsd*): Don't include svr4.h.
19216         * config/i386/freebsd64.h: New file.
19218 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
19220         * config/alpha/x-vms (version): Make static.
19222         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
19223         in previous checkin.
19225         * Makefile.in (install-headers-cp): New target.
19226         * config.gcc (alpha-dec-*vms*): Install headers with
19227         install-headers-cp
19229 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
19231         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
19232         avoid it's copies.
19234 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19236         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
19237         of compare_tree_int.
19238         (expand_builtin_strncat): Likewise.
19239         * c-decl.c (finish_struct): Use tree_low_cst.
19240         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
19241         * tree.c (compare_tree_int): Likewise.
19243 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
19245         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
19246         adjustments even if they are implemented by more than two insns.
19248 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
19250         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
19251         * df.h (struct ref): Kill B.
19252         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
19254         * basic-block.h (PROP_EQUAL_NOTES): New flag.
19255         * flow.c (propagate_one_insn): Use it.
19256         (mark_used_regs): Handle NIL.
19258 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
19260         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
19261         to help folding.
19263 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
19265         * rs6000.md (prefetch): Make address V4SI mode so that the address
19266         is restricted to legitimate form for instruction.
19268 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
19270         * doc/install.texi (xtensa-*-elf): New target.
19271         (xtensa-*-linux*): New target.
19272         * doc/contrib.texi: Add myself.
19274 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
19276         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
19277         purpose register to hold an SImode (or smaller) value.
19279 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
19281         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
19282         registry only.
19283         * crtstuff.c: Likewise.
19285 2002-01-25  Kazu Hirata  <kazu@hxi.com>
19287         * config/h8300/h8300.md (negation patterns): Tighten
19288         predicates to register_operand.
19290 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
19292         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
19293         mode, not Pmode.
19295         * builtins.c (expand_builtin_prefetch): Same.
19297 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19299         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
19300         modes.
19302 2002-01-24  Kazu Hirata  <kazu@hxi.com>
19304         * config/h8300/h8300.c (print_operand): Remove support for
19305         operand character 'A'.
19306         * config/h8300/h8300.md (three anonymous patterns): Replace
19307         operand character 'A' with either 'T' or 'S'.
19309 2002-01-24  Kazu Hirata  <kazu@hxi.com>
19311         * config/h8300/h8300.c (print_operand): Remove support for
19312         operand character 'U'.
19314 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
19316         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
19318 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
19320         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
19321         values to be assigned to the stack pointer.
19323 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
19325         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
19326         to const_double needs to be done right for big-endian systems.
19328 2002-01-24  Jason Merrill  <jason@redhat.com>
19330         PR c++/2432
19331         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
19332         to can_throw_internal.
19334 2002-01-23  Richard Henderson  <rth@redhat.com>
19336         * fold-const.c (fold): Change UINT_MAX test to check vs precision
19337         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
19339 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19341         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
19342         (symGOT2reg): Use them, then set as GOT value as unchanging.
19343         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
19344         as a temporary, if possible.
19345         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
19346         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
19348 2002-01-23  Kazu Hirata  <kazu@hxi.com>
19350         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
19351         accept to accept 0x80 as operands[2].
19353 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19355         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
19357 2002-01-23  Richard Henderson  <rth@redhat.com>
19359         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
19361 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
19363         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
19364         (parmlist_or_identifiers_1): Verify that only a parmlist follows
19365         an attribute.
19367 2002-01-23  Richard Henderson  <rth@redhat.com>
19369         * expr.c (move_by_pieces_1): Extend size before negation.
19371         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
19372         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
19373         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
19374         * config/m68k/t-m68kelf: Likewise.
19376 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
19378         * config/xtensa/elf.h: New file.
19379         * config/xtensa/lib1funcs.asm: New file.
19380         * config/xtensa/lib2funcs.S: New file.
19381         * config/xtensa/linux.h: New file.
19382         * config/xtensa/t-xtensa: New file.
19383         * config/xtensa/xtensa-config.h: New file.
19384         * config/xtensa/xtensa-protos.h: New file.
19385         * config/xtensa/xtensa.c: New file.
19386         * config/xtensa/xtensa.h: New file.
19387         * config/xtensa/xtensa.md: New file.
19388         * config.gcc (xtensa-*-elf*): New target.
19389         (xtensa-*-linux*): New target.
19390         * cse.c (canon_hash): Compare rtx pointers instead of register
19391         numbers.  This is required for the Xtensa port.
19392         * integrate.c (copy_insn_list): Handle case where the static
19393         chain is in memory and the memory address has to be copied to
19394         a register.
19395         * doc/invoke.texi (Option Summary): Add Xtensa options.
19396         (Xtensa Options): New node.
19397         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
19399 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
19401         * diagnostic.c (internal_error): Do ICE suppression only
19402         when ENABLE_CHECKING is not defined.
19404         * c-typeck.c (require_complete_type): Return error_mark_node
19405         if type is error_mark_node.
19407 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
19409         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
19410         -Os and issue a warning.
19412 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
19414         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
19415         current (lack of) need for host configuration by hand.
19417         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
19418         references.  Documentation of some target macros moved from
19419         hostconfig.texi to tm.texi.
19421 2002-01-23  Will Cohen  <wcohen@redhat.com>
19423         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
19424         defined.
19426 2002-01-23  Kazu Hirata  <kazu@hxi.com>
19428         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
19429         operand[3].
19431 2002-01-23  Jason Merrill  <jason@redhat.com>
19433         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
19435         * function.c (assign_parms): Don't put args of inline functions
19436         into registers when not optimizing.
19438 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
19440         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
19441         (prologue_use): New pattern.
19442         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
19443         preference to gen_rtx_USE.
19444         (thumb_expand_prologue): Use gen_prologue_use in preference to
19445         gen_rtx_USE.
19446         (thumb_expand_epilogue): Use gen_prologue_use in preference to
19447         gen_rtx_USE.
19449 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
19451         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
19453 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
19455         PR c/3504
19456         * doc/extend.texi: Correct documentation of __alignof__.
19458 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
19460         * params.h: Rename arguments of DEFPARAM so that it will be
19461         recognized as a translation keyword.
19463 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19465         * extend.texi: Document altivec functions.
19466         Fix N-bit adjectives in X86 builtin documentation.
19468 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
19470         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
19471         auto_inc_dec values.
19473 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
19475         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
19476         after backslash.
19477         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
19479 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
19481         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
19483 2002-01-22  Richard Henderson  <rth@redhat.com>
19485         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
19486         copy_insn not copy_rtx.
19488 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
19490         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
19491         "nonzero" as that might add "1" bits.  Ensure "constop" is
19492         properly sign extened.
19493         (force_to_mode): Tweak for sign extended constop.
19495 2002-01-22  Richard Henderson  <rth@redhat.com>
19497         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
19498         for_each_rtx instead of assuming we're already looking at the MEM.
19499         (split_small_symbolic_mem_operand): Likewise.
19500         * config/alpha/alpha.h (PREDICATE_CODES): Update.
19501         * config/alpha/alpha.md (small symbolic memory splitters): Update.
19503 2002-01-22  Richard Henderson  <rth@redhat.com>
19505         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
19506         sequence number for the literal.
19507         (divmoddi_internal_er): Likewise.
19509 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19511         PR java/4972
19512         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
19513         in LIBICONV variable.
19514         * configure: Regenerated.
19516 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
19518         * dependence.c (build_def_use): Remove array_idx.
19520         * dwarfout.c (last_filename): Remove.
19521         (output_compile_unit_die): Remove last_filename.
19523 2002-01-22  Roger Sayle  <roger@eyesopen.com>
19524             Richard Henderson  <rth@redhat.com>
19526         PR opt/3640
19527         * fold-const.c (fold): Optimize unsigned comparisons against
19528         UINT_MAX (and similar unsigned constants).
19530 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
19532         * Makefile.in (loop.o): Depend on OPTABS_H.
19533         * loop.c (emit_prefetch_instructions): Check the prefetch operand
19534         against the predicate.
19536         PR target/5379
19537         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
19538         for the address operand.
19540 2002-01-22  Richard Henderson  <rth@redhat.com>
19542         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
19544 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19546         PR other/5450
19547         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
19548         preprocessor flags.
19550 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
19552         * config.gcc (x86_64-*-netbsd*): New target.
19553         * config/i386/netbsd64.h: New file.
19555 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19557         * regrename.c (kill_value): Fix typo.
19559 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19561         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
19563         * config/rs6000/rs6000.h: Same.
19565         * function.c (instantiate_virtual_regs): Remove
19566         STARTING_FRAME_PHASE.
19567         (assign_stack_local_1): Same.
19568         Calculate frame phase.
19570 2002-01-22  Nick Clifton  <nickc@redhat.com>
19572         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
19573         variable declaration to outer scope in order to simplify
19574         future extensions.
19575         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
19576         arm_hard_regno_mode_ok.
19577         * config/arm/arm-protos.h: Add a prototype for
19578         arm_hard_regno_mode_ok.
19579         * config/arm/arm.c (soft_df_operand): Remove now redundant
19580         check for DImode values using IP_REGNUM.
19581         (nonimmediate_soft_df_operand): Remove now redundant check for
19582         DImode values using IP_REGNUM.
19583         (arm_hard_regno_mode_ok): New function. New check: make sure
19584         that DImode values are not stored in IP_REGNUM.
19586         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
19587         note with a USE.
19588         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
19590 2002-01-22  Jason Merrill  <jason@redhat.com>
19592         * c-semantics.c (genrtl_compound_stmt): Only check nesting
19593         consistency if this COMPOUND_STMT is scoped.
19595 2002-01-22  Kazu Hirata  <kazu@hxi.com>
19597         * predict.c: Fix formatting.
19598         * print-tree.c: Likewise.
19599         * protoize.c: Likewise.
19600         * real.h: Likewise.
19601         * rtl.h: Likewise.
19602         * sbitmap.h: Likewise.
19603         * scan.c: Likewise.
19604         * sched-deps.c: Likewise.
19605         * sched-vis.c: Likewise.
19606         * sdbout.c: Likewise.
19607         * sibcall.c: Likewise.
19608         * ssa.c: Likewise.
19609         * ssa-ccp.c: Likewise.
19610         * ssa-dce.c: Likewise.
19611         * stmt.c: Likewise.
19612         * stor-layout.c: Likewise.
19613         * system.h: Likewise.
19615 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19617         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
19618         if fits in bounds of base type.
19620         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
19621         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
19622         (add_bound_info, default): If can't find a context, make a
19623         SAVE_EXPR.
19624         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
19626 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
19628         * c-typeck.c (parser_build_binary_op): If result from
19629         build_binary_op is ERROR_MARK just return error_mark_node without
19630         further processing.
19632 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
19634         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
19635         Split a.out-specific bits into...
19636         * config/netbsd-aout.h: ...this.
19637         * config/netbsd-elf.h: New file.
19638         * config/alpha/netbsd-elf.h: Remove.
19639         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
19640         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
19641         (STARTFILE_SPEC): Remove redundant definition.
19642         (ENDFILE_SPEC): Likewise.
19643         (LINK_SPEC): Likewise.
19644         (CPP_SPEC): Likewise.
19645         (ASM_SPEC): Likewise.
19646         (LIB_SPEC): Likewise.
19647         (SWITCH_TAKES_ARG): Likewise.
19648         (TARGET_MEM_FUNCTIONS): Likewise.
19649         (CPP_PREDEFINES): Redefine.
19650         (ASM_FINAL_SPEC): Remove redefinition.
19651         (ASM_COMMENT_START): Redefine.
19652         (FUNCTION_PROFILER): Define.
19653         (TARGET_VERSION): Redefine.
19654         Comment and formatting cleanup.
19655         * config/i386/netbsd.h: Include <netbsd-aout.h>.
19656         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
19657         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
19658         big- or little-endian.
19659         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
19660         * config.gcc (*-*-netbsd*): Add definitions common to all
19661         NetBSD configs.
19662         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
19663         gnu_ld definitions.  Add netbsd-elf.h to and remove
19664         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
19665         tmake_file, and don't lose previous tmake_file contents.
19666         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
19667         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
19668         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
19669         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
19670         (mipsel-*-netbsd*): Rename this to...
19671         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
19672         mips/little.h to tm_file for mips*el-*.
19673         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
19674         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
19675         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
19677 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19679         * pa-protos.h (reg_before_reload_operand): New function prototype.
19680         * pa.c (reg_before_reload_operand): New function implementation.
19681         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
19682         contraints to "*m".
19684 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19686         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
19688 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19690         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
19691         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
19692         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
19693         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
19694         (ENDFILE_SPEC): Undefine.
19695         (STARTFILE_SPEC): Redefine for PA.
19697 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19699         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
19701 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
19703         * config.gcc: Add entries to supported PowerPC --with-cpu
19704         types.
19706 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
19708         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
19709         true for 64-bit mode only SSE registers in 32-bit mode.
19711 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19713         * unwind-dw2.c: Fix formatting.
19714         * unwind-dw2-fde.c: Likewise.
19715         * unwind-dw2-fde.h: Likewise.
19716         * unwind-pe.h: Likewise.
19717         * varasm.c: Likewise.
19718         * varray.h: Likewise.
19720 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
19722         Remove workaround for register stack overwrite bug in mmix.
19723         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
19724         support for TARGET_REG_STACK_FILL_BUG.
19725         * config/mmix/mmix.h: Remove member has_call_without_parameters.
19726         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
19727         Delete.
19728         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
19729         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
19730         -mno-reg-stack-fill-bug-workaround.
19731         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
19732         machine member has_call_without_parameters.
19733         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
19734         -mreg-stack-fill-bug-workaround and
19735         -mno-reg-stack-fill-bug-workaround.
19736         (MMIX Options): Ditto.
19738 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19740         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
19741         as appropriate.
19742         Remove redundant code.
19744 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
19746         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
19747         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19748         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19749         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
19750         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
19751         out target macro definitions and non-target-specific comments
19752         mostly taken from old versions of the manual.
19754 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19756         * config/h8300/h8300.h: Fix comment formatting.
19757         * config/ia64/aix.h: Likewise.
19758         * config/ia64/ia64-protos.h: Likewise.
19759         * config/ia64/ia64.c: Likewise.
19760         * config/ia64/ia64.h: Likewise.
19761         * config/ia64/ia64intrin.h: Likewise.
19762         * config/ia64/linux.h: Likewise.
19763         * config/ia64/unwind-aix.c: Likewise.
19764         * config/ia64/unwind-ia64.c: Likewise.
19766 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19768         * config/h8300/h8300.c: Revise comments about shift code.
19770 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19772         * config/h8300/h8300.c (function_arg): Update a comment.
19774 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19776         * config/h8300/h8300.md: Update the comments at the beginning
19777         of the file.
19779 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19781         * config/i370/i370.c: Fix comment formatting.
19782         * config/i370/i370.h: Likewise.
19783         * config/i370/i370.md: Likewise.
19784         * config/i370/linux.h: Likewise.
19786 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19788         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
19790         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
19791         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
19792         in incomplete case.
19794 2002-01-20  Graham Stott  <grahams@redhat.com>
19796         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
19798 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19800         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
19802 2002-01-19  Tom Rix  <trix@redhat.com>
19804         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
19806 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
19808         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
19810         * function.c (assign_stack_local_1): Adjust x_frame_offset with
19811         STARTING_FRAME_PHASE.
19812         (STARTING_FRAME_PHASE): New.
19813         (instantiate_virtual_regs): Check saneness of
19814         STARTING_FRAME_PHASE.
19816         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
19818 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
19820         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
19822 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19824         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
19825         be used for bootstrapping GCC 3.0.
19827 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19829         * config/h8300/h8300.md: Fix an insn length.
19831 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19833         * bitmap.h: Fix comment formatting.
19834         * combine.c: Likewise.
19835         * cppfiles.c: Likewise.
19836         * c-pragma.h: Likewise.
19837         * c-typeck.c: Likewise.
19838         * df.c: Likewise.
19839         * dwarf2out.c: Likewise.
19840         * function.c: Likewise.
19841         * gcc.c: Likewise.
19842         * genattrtab.c: Likewise.
19843         * gthr-win32.h: Likewise.
19844         * haifa-sched.c: Likewise.
19845         * predict.c: Likewise.
19846         * rtlanal.c: Likewise.
19847         * rtl.h: Likewise.
19848         * unwind-dw2-fde.h: Likewise.
19849         * unwind-pe.h: Likewise.
19850         * vmsdbgout.c: Likewise.
19852 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19854         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
19855         if type_required and passed decl.
19857 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
19859         * config.gcc (cpu_type): Include altivec.h in powerpc
19860         extra_headers.
19861         Same for darwin.
19863         * config/rs6000/altivec.h: New.
19865 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
19867         * doc/install.texi (*-ibm-aix*): Update assembler and exception
19868         handling information.
19869         * doc/trouble.texi (Interoperation): Add libstdc++ information
19870         for AIX.
19871         (Misunderstandings): Add template instantiation and static template
19872         member information for AIX.
19874 2002-01-17  Jason Merrill  <jason@redhat.com>
19876         * dbxout.c (dbxout_type): Support const and volatile.
19878         * except.c (add_partial_entry): Remove backwards compatibility code.
19879         (end_protect_partials): Likewise.
19881 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
19883         * config/ia64/ia64.md (prologue_use): New.
19884         * config/ia64/ia64.c (ia64_expand_prologue): Use
19885         gen_prologue_use instead of gen_rtx_USE.
19886         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
19887         as CODE_FOR_pred_rel_mutex.
19888         (ia64_sched_reorder2): Likewise.
19890 2002-01-16  Eric Christopher  <echristo@redhat.com>
19892         * config/mips/r3900.h: Reformat.
19893         (SUBTARGET_CPP_SIZE_SPEC): Remove.
19894         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
19895         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
19896         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
19897         * config/mips/t-elf: Remove mips3 multilib.
19899 2002-01-16  H.J. Lu <hjl@gnu.org>
19901         * config/mips/linux.h: Include "mips/abi64.h".
19903 2002-01-16  H.J. Lu <hjl@gnu.org>
19905         * config/mips/t-linux: New.
19907         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
19909         * config/mips/linux.h: Don't include "gofast.h".
19910         (INIT_SUBTARGET_OPTABS): Removed.
19912 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19914         * config/h8300/h8300-protos.h: Replace emit_a_shift with
19915         output_a_shift.
19916         * config/h8300/h8300.c: Likewise.
19917         * config/h8300/h8300.md: Likewise.
19919 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19921         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
19922         spaces after an opcode name.
19923         (pushqi1_h8300hs): Likewise.
19924         (pushhi1_h8300hs): Likewise.
19926 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19928         * doc/extend.texi: Replace "option" with "attribute"
19929         appropriately.
19931 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19933         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
19934         (and:DI () (const_int -8)).
19935         (split_small_symbolic_mem_operand): Split
19936         (mem (and:DI () (const_int -8)).
19938 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19940         PR target/5309:
19941         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
19942         same way as TYPE_IMUL.
19943         (ultrasparc_sched_reorder): Likewise.
19944         * config/sparc/sparc.md (type): Add comment to update
19945         ultrasparc_sched_reorder when making changes.
19947 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19949         * doc/invoke.texi: Change the dump file name of block
19950         reordering pass from 28.bbro to 29.bbro.
19951         Mention -dk option.
19953 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
19955         * i386.md (minsf splitter): Fix pasto.
19957 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19959         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
19960         to frame pointer initialisation instruction.
19961         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
19962         initialisation instruction.
19963         (soft_df_operand): Do not accept the IP register.
19964         (nonimmediate_soft_df_operand): Do not accept the IP register.
19966 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19968         PR target/5357:
19969         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
19970         MASK_V8 being both set.
19972 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
19974         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
19975         insn for GOT register; add REG_MAYBE_DEAD notes instead.
19976         config/s390/s390.md (call, call_value): Add GOT register to
19977         CALL_INSN_FUNCTION_USAGE where needed.
19978         (call_exp, call_value_exp): New.
19980 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19982         * config/arm/arm.c: General formatting tidy up.
19984 2002-01-16  Graham Stott  <grahams@redhat.com>
19986         * calls.c (try_to_integrate): Use "(size_t)" intermediate
19987         cast and when casting an integer literal to "rtx" pointer.
19988         (expand_call): Likewise.
19989         * flow.c (try_pre_increment): Likewise.
19990         (find_use_as_address): Likewise.
19991         * integrate.c (expand_iline_function): Likewise.
19992         * regmove.c (try_auto_increment): Likewise.
19994 2002-01-16  Graham Stott  <grahams@redhat.com>
19996         * sched-rgn.c (passed): Use sbitmap_free.
19997         (header): Likewise.
19998         (inner): Likewise.
19999         (in_queue): Likewise.
20000         (in_stack): Likewise.
20002 2002-01-15  Eric Christopher  <echristo@redhat.com>
20004         * flow.c (propagate_one_insn): Change to use fatal_insn.
20006 2002-01-15  Kazu Hirata  <kazu@hxi.com>
20008         * expmed.c (extract_fixed_bit_field): Remove unused code.
20009         * system.h: Poison SLOW_ZERO_EXTEND.
20010         * doc/tm.texi: Remove.
20011         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
20012         * config/arm/arm.h: Likewise.
20013         * config/avr/avr.h: Likewise.
20014         * config/clipper/clipper.h: Likewise.
20015         * config/convex/convex.h: Likewise.
20016         * config/d30v/d30v.h: Likewise.
20017         * config/dsp16xx/dsp16xx.h: Likewise.
20018         * config/elxsi/elxsi.h: Likewise.
20019         * config/fr30/fr30.h: Likewise.
20020         * config/h8300/h8300.h: Likewise.
20021         * config/i370/i370.h: Likewise.
20022         * config/i386/i386.h: Likewise.
20023         * config/m68k/m68k.h: Likewise.
20024         * config/mips/mips.h: Likewise.
20025         * config/ns32k/ns32k.h: Likewise.
20026         * config/pdp11/pdp11.h: Likewise.
20027         * config/pj/pj.h: Likewise.
20028         * config/s390/s390.h: Likewise.
20029         * config/sh/sh.h: Likewise.
20030         * config/stormy16/stormy16.h: Likewise.
20031         * config/v850/v850.h: Likewise.
20032         * config/vax/vax.h: Likewise.
20033         * config/we32k/we32k.h: Likewise.
20035 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
20037         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
20038         (altivec_lvsl): Change constraint to b.
20039         (altivec_lvsr): Same.
20040         (altivec_lvebx): Same.
20041         (altivec_lvehx): Same.
20042         (altivec_lvewx): Same.
20043         (altivec_lvxl): Same.
20044         (altivec_lvx): Same.
20045         (altivec_stvx): Add parallel.
20046         (altivec_stvxl): Same.
20047         (altivec_stvehx): Same.
20048         (altivec_stvebx): Same.
20049         (altivec_stvebx): Same.
20051 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
20053         * config.gcc: Change altivec.h to altivec-defs.h.
20055         * config/rs6000/altivec.h: Delete.
20057         * config/rs6000/altivec-defs.h: Add.
20059 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20061         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
20062         and UMOD modes.
20064         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
20065         less than or equal to eight bytes.
20067         * vax.md (andsi3): Remove constraints and change SET destination
20068         operand type to nonimmediate_operand.
20069         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
20070         when it is a CONST_INT.
20072 2002-01-15  Jason Merrill  <jason@redhat.com>
20074         * c-common.def (FILE_STMT): New code.
20075         * c-common.c (statement_code_p): It's a statement.
20076         * c-common.h (stmt_tree_s): Add x_last_filename.
20077         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
20078         (last_expr_filename): New macro.
20079         * c-semantics.c (begin_stmt_tree): Initialize it.
20080         (add_stmt): If the filename changed, also insert a
20081         FILE_STMT.
20082         (expand_stmt): Handle seeing one.
20084 2002-01-15  Eric Christopher  <echristo@redhat.com>
20086         * flow.c (propagate_one_insn): Add error message and print out
20087         insn for debugging.
20089 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
20091         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
20092         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
20093         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
20094         TRAMPOLINE_ALIGNMENT.
20095         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
20096         to be in bits.
20097         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
20098         PCC_BITFIELD_TYPE_MATTERS.
20099         * config/interix.h (STDC_VALUE): Remove.  Use
20100         STDC_0_IN_SYSTEM_HEADERS.
20101         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
20102         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
20103         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
20105 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20107         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
20108         not work on this platform currently.
20110 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
20112         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
20113         readonly_warning in _().
20115 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
20117         * gcc.c (delete_if_ordinary): Backout previous change.
20119 2002-01-15  Kazu Hirata  <kazu@hxi.com>
20121         * config/h8300/h8300.c (print_operand): Remove support for
20122         unused operand characters.
20124         * read-rtl.c: Fix formatting.
20125         * real.c: Likewise.
20126         * recog.c: Likewise.
20127         * regclass.c: Likewise.
20128         * regmove.c: Likewise.
20129         * reg-stack.c: Likewise.
20130         * reload1.c: Likewise.
20131         * rtlanal.c: Likewise.
20133 2002-01-15  Kazu Hirata  <kazu@hxi.com>
20135         * config/i386/i386.c: Fix formatting.
20137 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
20139         * c-typeck.c (process_init_element): Don't save_expr
20140         COMPOUND_LITERAL_EXPR if just its initializer will be used.
20142 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
20144         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
20145         emit optional traceback table if optimize_size or TARGET_ELF.
20146         * config/rs6000/rs6000.md (prefetch): New.
20148 2002-01-15  Andreas Jaeger  <aj@suse.de>
20150         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
20152 2002-01-15  Kazu Hirata  <kazu@hxi.com>
20154         * mips-tfile.c: Fix formatting.
20156 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
20158         * unroll.c (final_reg_note_copy): Fix previous commit.
20160 2002-01-14  Kazu Hirata  <kazu@hxi.com>
20162         * config/h8300/h8300-protos.h: Remove the prototype for
20163         eq_operator.
20164         * config/h8300/h8300.c (eq_operator): Remove.
20166 2002-01-14  Richard Henderson  <rth@redhat.com>
20168         * config/i386/i386.md (prefetch): Tidy.
20169         (prefetch_3dnow): Fix locality operand.
20171 2002-01-14  Richard Henderson  <rth@redhat.com>
20173         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
20174         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
20176 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
20178         * reload1.c (reload_combine): Pass reg_sum replacement through
20179         copy_rtx in loop performing multiple changes.
20181 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
20183         * except.c (remove_unreachable_regions): New.
20184         (free_eh_status): Clear exception_handler_labels.
20185         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
20186         (find_exception_handler_labels): Don't add the same label more than
20187         once.
20188         (remove_exception_handler_label): Don't die if
20189         find_exception_handler_labels hasn't been called for the current
20190         function yet.
20192 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
20194         * toplev.c (rest_of_compilation): Rebuild jump labels after
20195         gcse.
20197 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
20199         * doc/extend.texi: Move documentation of X86 built-in functions
20200         here.
20201         * doc/invoke.texi: From here.
20202         * doc/sourcebuild.texi: Document location of documentation for
20203         machine built-in functions.
20205 2002-01-13  Christopher Faylor  <cgf@redhat.com>
20207         * cppfiles.c (TEST_THRESHOLD): New macro.
20208         (SHOULD_MMAP): Ditto.
20209         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
20210         be used.
20212 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
20214         * unroll.c (final_reg_note_copy): Properly handle
20215         REG_LABEL
20216         (unroll_loops): Fix LOOP_CONDITION heuristics.
20218 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
20220         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
20221         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
20223 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
20225         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
20226         threaded loop.
20228 2002-01-14  Tom Rix  <trix@redhat.com>
20230         * config/rs6000/rs6000.md: Fix typo with sradi.
20232 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
20234         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
20235         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
20236         (clrstrdi, clrstrsi): Adapt callers.
20238         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
20240         (movti splitter): Never use register 0 as base register.
20242 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
20244         * combine.c (simplify_shift_const): Always generate new rtx
20245         for shift expression instead of reusing given expression.
20247 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20249         * config/alpha/alpha.c (alpha_expand_mov): Don't call
20250         alpha_legitimize_address unless mode is Pmode.
20252 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
20254         * doc/md.texi (Modifiers): Document the '*' constraint for the
20255         user.
20257         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
20258         * doc/extend.texi (Function Attributes): 'interrupt' is valid
20259         for xstormy16 too.
20261 2002-01-13  Richard Henderson  <rth@redhat.com>
20263         * reload.c (find_reloads): Use a hard reg destination as reload reg
20264         for an input reload of the source.
20266 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20268         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
20269         more generic.
20271 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
20273         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
20274         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
20276         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
20278 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20280         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
20282 2002-01-12  Tom Rix  <trix@redhat.com>
20284         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
20285         TARGET_POWERPC64.
20287 2002-01-12  Richard Henderson  <rth@redhat.com>
20289         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
20291         * doc/invoke.texi: Update Alpha options.
20293         * doc/invoke.texi: Update i386 built-in function lists.
20295 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
20297         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
20298         referencing outside.
20300 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20302         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
20303         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
20304         offsets, and change line folding.
20305         * optabs.c (expand_binop): Remove warnings.
20306         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
20308 2002-01-12  Graham Stott <grahams@redhat.com>
20310         * attribs.c (handle_deprecated_attribute): constify WHAT.
20311         * diagnostic.c (warn_deprecated_use): Add braces, fixes
20312         dangling else warning and constify WHAT.
20313         * except.h (struct function, struct inline_remap): Move
20314         struct tag forward defs before all prototypes.
20315         (duplicate_eh_regions): Whitespace.
20317 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
20319         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20320         MODE_BASE_REG_CLASS.
20321         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
20323 2002-01-12  Richard Henderson  <rth@redhat.com>
20325         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
20326         (ix86_expand_vector_move): New.
20327         (bdesc_2arg): Remove andps, andnps, orps, xorps.
20328         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
20329         Remove old prefetch builtins.  Special case the logicals removed above.
20330         (ix86_expand_builtin): Likewise.
20331         (safe_vector_operand): Use V4SFmode, not TImode.
20332         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
20333         (ix86_expand_timode_binop_builtin): New.
20334         * config/i386/i386-protos.h: Update.
20335         * config/i386/i386.h (enum ix86_builtins): Update.
20336         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
20337         Use ix86_expand_vector_move in vector move expanders.
20338         (movti_internal, movti_rex64): Add xorps alternative.
20339         (sse_clrv4sf): Rename and adjust from sse_clrti.
20340         (prefetch): Don't work so hard.
20341         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
20342         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
20343         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
20345 2002-01-11  Richard Henderson  <rth@redhat.com>
20347         * config/i386/mmintrin.h: New file.
20348         * config/i386/xmmintrin.h: New file.
20349         * config.gcc (i?86-*-*): Add extra_headers.
20350         * simplify-rtx.c (simplify_unary_operation): Handle saturating
20351         truncation codes.
20352         (simplify_binary_operation): Handle saturating arithmetic codes.
20353         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
20354         not the lowpart subreg.
20355         (ix86_expand_builtin): Return a TImode dummy register instead of 0
20356         on error.
20357         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
20359 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20361         * conflict.c (conflict_graph_compute): Free regsets when finished.
20362         * ssa.c (compute_coalesced_reg_partition): Likewise.
20364 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20366         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
20367         every where we allocate a register.
20369 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20371         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
20372         * lcm.c (compute_earliest, compute_farthest): Likewise.
20374 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
20376         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
20378 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
20380         * doc/rtl.texi (Insns): Fix 2 typos.
20382 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
20384         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
20385         options.  Use @table @gcctabopt for MMIX options.  Add index
20386         entries for MMIX options.  Start new paragraph with first
20387         heading of the machine-dependent options.
20389 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20391         PR other/5299
20392         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
20393         * combine.c (force_to_mode): Same.
20394         * reload1.c (clear_reload_reg_in_use): Same.
20396 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
20398         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
20399         and 'subtargets'.
20401 2002-01-11  Andreas Jaeger  <aj@suse.de>,
20402             Brad Lucier <lucier@math.purdue.edu>
20404         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
20405         mcpu.
20407 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
20409         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
20410         Protect with IN_LIBGCC.
20411         (LINK_EH_SPEC): Add required trailing space.
20413 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
20415         * c-tree.h: Move function declarations so that they are listed
20416         under the filename which contains them.
20417         (check_identifier, finish_decl_top_level,
20418         lookup_name_current_level_global, shadow_record_fields): Remove.
20420 2002-01-11  Andreas Jaeger  <aj@suse.de>
20422         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
20423         march.
20425 2002-01-10  Richard Henderson  <rth@redhat.com>
20427         * config/alpha/alpha.c (print_operand): Add 'J'.
20428         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
20429         new operand with the sequence number for the lituse.  When splitting
20430         the insns, use gen_movdi_er_high_g and generate a sequence number.
20431         (gen_movdi_er_high_g): Print the sequence number if non-zero.
20433 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
20435         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
20436         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
20437         stvxl.
20438         (altivec_expand_builtin): Same.
20439         (altivec_expand_stv_builtin): New.
20441         * config/rs6000/rs6000.h (rs6000_builtins): Same.
20443         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
20444         ("altivec_lvehx"): New.
20445         ("altivec_lvewx"): New.
20446         ("altivec_lvxl"): New.
20447         ("altivec_lvx"): New.
20448         ("altivec_stvx"): New.
20449         ("altivec_stvebx"): New.
20450         ("altivec_stvehx"): New.
20451         ("altivec_stvewx"): New.
20452         ("altivec_stvxl"): New.
20454 2002-01-10  Richard Henderson  <rth@redhat.com>
20456         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
20457         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
20458         care not to delete instructions twice.
20460 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
20462         * toplev.c: Don't declare environ (it's not used anywhere).
20463         * configure.in: Don't check for declaration of environ.
20464         * config/i386/xm-mingw32.h: Don't #define environ.
20465         * config.in, configure: Regenerate.
20467 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
20469         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
20470         * configure: Regenerate.
20472         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
20473         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
20474         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
20475         alpha/xm-vms.h.
20476         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
20477         LIMITS_H_TEST here, not in m68k/x-next.
20478         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
20479         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
20481         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
20482         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
20483         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
20485         * config/i386/x-djgpp: Renamed i386/t-djgpp.
20486         * config/m88k/x-dolph: Renamed m88k/t-dolph.
20487         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
20488         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
20489         replacement of quadlib.asm with quadlib.c.
20491         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
20492         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
20493         config/rs6000/xm-beos.h: Delete file.
20495         * config.gcc: Update to match above changes.
20497 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20499         * config/h8300/h8300.h: Fix comment typos.
20500         * config/h8300/h8300.md: Likewise.
20501         * config/h8300/lib1funcs.asm: Likewise.
20503 2002-01-10  Dale Johannesen  <dalej@apple.com>
20505         PR optimization/5269
20506         * unroll.c (precondition_loop_p): Make *increment be the correct
20507         sign when n_iterations known, to avoid confusing caller.
20509 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20511         * doc/extend.texi (deprecated): Fix a typo.
20513 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
20515         * basic-block.h (update_br_prob_note): Declare.
20516         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
20517         (try_forward_edges): Care negative frequencies and update note.
20518         (outgoing_edges_match): Tweek conditional merging heuristics.
20519         (try_crossjump_to_edge): use update_br_prob_note.
20520         * cfglayout.c (fixup_reorder_chain): Likewise.
20521         * cfrtl.c (update_br_prob_note): New.
20522         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
20524         * i386.c (ix86_decompose_address): Return -1 if address contains
20525         shift.
20526         (legitimate_address_p): Require ix86_decompose_address to return 1.
20528         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
20529         (cprop_insn): Likewise.
20531 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20533         * toplev.c: Fix formatting.
20534         * tree.c: Likewise.
20535         * tree-dump.c: Likewise.
20536         * unroll.c: Likewise.
20537         * unwind-dw2.c: Likewise.
20538         * unwind-dw2-fde.c: Likewise.
20539         * unwind-dw2-fde-glibc.c: Likewise.
20540         * unwind-sjlj.c: Likewise.
20542 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20544         * doc/invoke.texi: Document PDP-11 options.
20546 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20548         * config/h8300/h8300.h: Fix formatting.
20550 2002-01-10  Ira Ruben   <ira@apple.com>
20552         Add __attribute__ ((deprecated)).
20553         * extend.texi: Document __attribute__ ((deprecated)).
20554         * invoke.texi: Document -Wno-deprecated-declarations.
20555         * testsuite/g++.dg/other/deprecated.C: New C++ test.
20556         * testsuite/gcc.dg/deprecated.c: New C test.
20557         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
20558         (c_common_attribute_table): Add "deprecated" entry.
20559         (handle_deprecated_attribute): New function.
20560         * c-decl.c (deprecated_states): New enum.
20561         deprecated_state: State of "deprecated" handling.
20562         (start_decl): Set deprecated_state based on attributes.
20563         (grokdeclarator): Test for deprecated uses, propagate attribute.
20564         * c-typeck.c (build_component_ref): Test for deprecated fields.
20565         (build_external_ref): Test for deprecated primaries.
20566         * diagnostic.c (warn_deprecated_use) New function to issue
20567         warnings about __attribute__ ((depricated)) references.
20568         * flags.h (warn_deprecated_decl): Extern declared for
20569         -W[no-]deprecated-declarations option.
20570         * print-tree.c (print_node): Show deprecated flag status.
20571         * toplev.c (warn_deprecated_decl): Defined.
20572         (W_options): Added "deprecated-declaration".
20573         * toplev.h (warn_deprecated_use): Extern declared.
20574         * tree.h (struct tree_common): Define deprecated_flag.
20575         (TREE_DEPRECATED): New macro to access flag.
20576         * cp/call.c (build_call): Test for deprecated calls.
20577         * cp/class.c (add_implicitly_declared_members): Set global
20578         flag to tell grokdeclarator to not issue deprecated warnings.
20579         * cp/cp-tree.h: Add extern for adding_implicit_members.
20580         * cp/decl.c (deprecated_states): New enum.
20581         (start_decl): Set deprecated_state based on attributes.
20582         (grokdeclarator): Test for deprecated uses, propagate attribute.
20583         * cp/lex.c (do_identifier): Test for deprecated primaries.
20584         * cp/typeck.c (build_component_ref): Test for deprecated fields.
20586 2002-01-10  Ira Ruben   <ira@apple.com>
20588         Fix to assign attributes to inline member functions.
20589         * cp/decl.c (start_method): Handle attrlist.
20591 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20593         * combine.c (expand_field_assignment): Use subreg_lsb().
20595 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
20597         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
20598         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
20599         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
20600         Recurse for any operand of AND as long as constant is non-zero.
20602 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20604         * config/h8300/h8300.md: Remove constraints from expanders.
20606 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20608         * varasm.c: Fix formatting.
20609         * varray.c: Likewise.
20610         * vmsdbgout.c: Likewise.
20611         * xcoffout.c: Likewise.
20613 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
20615         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
20616         update edge probabilities to match.
20618 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20620         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
20621         dependencies.
20622         * doc/languages.texi, doc/sourcebuild.texi: New files.
20623         * doc/configfiles.texi: Make a subsubsection.  Update.
20624         * doc/configterms.texi: Add @node.  Remove warning that this isn't
20625         instructions for building GCC.
20626         * doc/makefile.texi: Make a subsection.
20627         * doc/gccint.texi: Update.
20629 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
20631         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
20633 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
20635         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
20637 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
20639         * optabs.c (expand_fix): Look for wider integer modes first.
20641         * i386.md (mov?f): Avoid the fake const double trick for medium
20642         memory model.
20643         (min?f*/max?f*): Prohibit memory operands for i387 variant.
20644         (fop_df_4): Disable for SSE compilation.
20646 2002-01-10  Graham Stott  <grahams@redhat.com>
20648         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
20649         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
20651 2002-01-10  Richard Henderson  <rth@redhat.com>
20653         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
20655 2002-01-10  Richard Henderson  <rth@redhat.com>
20657         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
20658         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
20660 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20662         * combine.c (can_combine_p): Fix a comment typo.
20664 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
20666         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
20667         empty list correctly.  Change loop index $t to $f for
20668         consistency with rest of Makefile.
20670 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
20672         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
20673         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20675         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
20676         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
20677         (altivec_init_builtins): Same.
20678         (altivec_expand_unop_builtin): Return NULL_RTX on error.
20679         (altivec_expand_binop_builtin): Same.
20680         (altivec_expand_ternop_builtin): Same.
20681         (bdesc_dst): New.
20683         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
20684         ("altivec_vctuxs"): Fix typo.
20685         ("altivec_vnmsubfp"): Same.
20686         ("altivec_dssall"): New.
20687         ("altivec_mfvscr"): New.
20688         ("altivec_dss"): New.
20689         ("altivec_lvsl"): New.
20690         ("altivec_lvsr"): New.
20691         ("altivec_dstt"): New.
20692         ("altivec_dstst"): New.
20693         ("altivec_dststt"): New.
20694         ("altivec_dst"): New.
20696         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
20697         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20699 2002-01-09  Richard Henderson  <rth@redhat.com>
20701         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
20703 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
20705         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
20706         function.
20707         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
20708         prototype.
20709         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
20711 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20713         * read-rtl.c: Fix formatting.
20714         * real.c: Likewise.
20715         * regclass.c: Likewise.
20716         * regrename.c: Likewise.
20717         * reg-stack.c: Likewise.
20718         * reload1.c: Likewise.
20719         * reload.c: Likewise.
20720         * rtl.c: Likewise.
20722 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20724         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
20725         to extract items in the expr_list chain.
20727 2002-01-09  Richard Henderson  <rth@redhat.com>
20729         * config/vax/vax.c (vax_rtx_cost): Never abort.
20731         * config/vax/vax.h (REAL_ARITHMETIC): Define.
20733 2002-01-09  Jan Hubicka  <jh@suse.cz>
20735         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
20737 2002-01-09  Richard Henderson  <rth@redhat.com>
20739         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
20740         Unify code from various alternatives.
20742 2002-01-09  Richard Henderson  <rth@redhat.com>
20744         * regrename.c (copy_value): Ignore the copy if the source register
20745         is present in the value chain with a narrower mode.
20747 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
20749         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
20750         for the c4x target. Also improve layout.
20752 2002-01-09  Richard Henderson  <rth@redhat.com>
20754         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
20755         * config/m32r/m32r.md (and ior xor splitters): Swap operands
20756         to match insn patterns.
20758 2002-01-09  Richard Henderson  <rth@redhat.com>
20760         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
20761         (copyprop_hardreg_forward_1): Likewise.
20763 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20765         * pa.md (decrement_and_branch_until_zero): Change predicate for
20766         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
20768 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
20770         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
20771         gets undefined. For Darwin.
20773 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20775         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
20777 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20779         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
20781 2002-01-08  Richard Henderson  <rth@redhat.com>
20783         * regrename.c (copy_value): Ignore overlapping copies.
20785 2002-01-08  Richard Henderson  <rth@redhat.com>
20787         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
20788         as needed to avoid shared structure.
20790 2002-01-08  Kazu Hirata  <kazu@hxi.com>
20792         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
20793         H8/300H and H8/S.
20795 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20797         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
20798         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
20799         documentation of obsolete macros.
20800         * system.h: Poison these macros.
20801         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
20802         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
20803         config/c4x/c4x.h, config/clipper/clipper.h,
20804         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
20805         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
20806         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
20807         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
20808         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
20809         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
20810         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20811         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
20812         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
20813         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20814         config/sparc/sparc.h, config/stormy16/stormy16.h,
20815         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
20816         definitions and commented out definitions of obsolete macros.
20817         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
20818         of MAX_INT_TYPE_SIZE.
20820 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20822         * config/s390/s390.c (s390_preferred_reload_class): Never
20823         return ADDR_REGS if it isn't a subset of the given class.
20824         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
20825         FP_REGS, but all superclasses as well.
20827         * config/s390/s390.c (s390_function_profiler): Fix thinko.
20829         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
20830         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
20831         must not be a const_int.
20833 2002-01-08  Richard Henderson  <rth@redhat.com>
20835         * Makefile.in (toplev.o): Depend on options.h.
20836         (gcc.o): Depend on specs.h.
20838 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
20840         * expr.c (store_expr): Convert VOIDmode constants back to target's
20841         mode.
20843 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20845         * doc/invoke.texi: Markup gcc as @command.  Refer to
20846         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
20847         of http://gcc.gnu.org/thanks.html.
20849 2002-01-08  Dale Johannesen  <dalej@apple.com>
20851         * config/rs6000/rs6000.md: Add missing int register
20852         target case to movdf_low.
20854 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
20856         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
20857         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
20858         (cppinit.o): Depend on except.h.
20859         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
20860         s-specs): New rules.
20862         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
20863         Don't create specs.h/options.h/gencheck.h here.  Remove
20864         unnecessary variable settings from last argument of AC_OUTPUT.
20865         * config.in, configure: Regenerate.
20866         * intl.c: Hardcode package name as "gcc".
20868         * cppinit.c: Include except.h.
20869         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
20870         appropriate.
20871         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
20872         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
20873         (!)USING_SJLJ_EXCEPTIONS.
20874         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
20876 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20878         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
20879         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
20880         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
20881         documentation of obsolete macros.
20882         * system.h: Poison these macros.
20883         * config/d30v/d30v.h, config/ns32k/encore.h,
20884         config/stormy16/stormy16.h: Remove definitions and commented out
20885         definitions of obsolete macros.
20887 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
20889         * objc/objc-act.c (handle_class_ref): Mark the declaration of
20890         %sobjc_class_ref_%s as used - to prevent unwanted compiler
20891         warnings.
20893 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20895         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
20896         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
20897         to insn adjusting stack/frame pointer.
20898         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
20899         accept operands that cause the insn to be non-splittable.
20901 2002-01-08  Graham Stott  <grahams@redhat.com>
20903         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
20904         (C_TYPE_FIELDS_VOLATILE): Likewise.
20905         (C_TYPE_BEING_DEFINED): Likewise.
20906         (C_IS_RESERVED_WORD): Likewise.
20907         (C_TYPE_VARIABLE_SIZE): Likewise.
20908         (C_DECL_VARIABLE_SIZE): Likewise.
20909         (C_MISSING_PROTOTYPE_WARNED): Likewise.
20910         (C_SET_EXP_ORIGINAL_CODE): Likewise.
20911         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
20912         parenthesis.
20913         (C_DECL_ANTICIPATED): Likewise.
20914         (c_build_type_variant): Add parenthesis.
20916 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20918         * gcc.c (option_map): Remove --version.
20919         (process_command): Handle -fversion following the GNU Coding
20920         Standards.  Partially addresses PR other/704.
20922 2002-01-08  Graham Stott  <grahams@redhat.com>
20924         * combine.c (combine_instructions): Fix typo.
20926 2002-01-08  Graham Stott  <grahams@redhat.com>
20928         * debug.h: Use "tree" and "rtx" throughout.
20930         * debug.c: Likewise.
20932 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
20934         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
20935         constant pool, use the pool's version of the symbol instead.
20937 2002-01-07  Richard Henderson  <rth@redhat.com>
20939         * regrename.c (find_oldest_value_reg): Ignore the value chain if
20940         the original register was copied in a mode with a fewer number of
20941         hard registers than the desired mode.
20942         (copyprop_hardreg_forward_1): Likewise.
20943         (debug_value_data): Fix loop test.
20944         * toplev.c (parse_options_and_default_flags): Reenable
20945         -fcprop-registers at -O1.
20947 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20949         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
20950         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
20952         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
20953         predicates.
20955         * config/rs6000/rs6000.md: Add altivec predicate patterns.
20957 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20959         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
20960         (pa_output_function_prologue): Output local label at the beginning of
20961         the prologue when profiling.
20962         (hppa_profile_hook): Use the local label rather than the function label.
20963         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
20965 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20967         * config/rs6000/rs6000.c (print_operand): Remove extra space.
20968         (altivec_expand_unop_builtin): Fix thinko.
20969         (altivec_expand_binop_builtin): Same.
20970         (altivec_expand_ternop_builtin): Same.
20971         (altivec_expand_builtin): Same.
20973 2002-01-07  Richard Henderson  <rth@redhat.com>
20975         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
20977 2002-01-07  Jason Merrill  <jason@redhat.com>
20979         * unwind-dw2.c (execute_cfa_program): Use < again.
20981 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20983         * predict.c (combine_predictions_for_insn): Avoid division by zero.
20985 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20987         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
20988         Don't allow -1 - x -> ~x simplifications in the first pass.
20990 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20992         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
20993         arguments.
20994         (altivec_expand_binop_builtin): Same.
20995         (altivec_expand_unop_builtin): Same.
20996         (print_operand): Fix typo.
20997         (bdesc_1arg): Add vupk* variants.
20999         * rs6000.h (rs6000_builtins): Add vupk* enums.
21001         * rs6000.md: Add altivec_vupk* variants.
21003 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
21005         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
21006         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
21007         and last update dates.
21009 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
21011         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
21013 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
21015         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
21016         * config/avr/avr.h (CPP_SPEC): Likewise.
21017         (LINK_SPEC): Likewise.
21018         (CRT_BINUTILS_SPECS): Likewise.
21019         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
21020         * doc/invoke.texi (AVR Options): Document them.
21022 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
21024         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
21025         LABEL_NUSES.
21027 2002-01-07  Graham Stott  <grahams@redhat.com>
21029         * config/i386/i386.h: Update copyright date.
21030         (HALF_PIC_PTR): Add parenthesis.
21031         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
21032         (CONSTANT_ALIGNMENT): Add parenthesis.
21033         (DATA_ALIGNMENT): Likewise.
21034         (LOCAL_ALIGNMENT): Likewise.
21035         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
21036         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
21037         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
21038         (HARD_REGNO_NREGS): Add paranethesis.
21039         (VALID_SSE_REG_MODE): Whitespace.
21040         (VALID_MMX_REG_MODE): Whitespace.
21041         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
21042         (ix86_hard_regno_mode_ok): Add parenthesis.
21043         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
21044         (RETURN_IN_MEMORY): Whitespace.
21045         (N_REG_CLASSES): Add parenthesis.
21046         (INTEGER_CLASS_P): Add parenthesis and wrap.
21047         (FLOAT_CLASS_P): Likewise.
21048         (SSE_CLASS_P): Likewise.
21049         (MMX_CLASS_P): Likewise.
21050         (MAYBE_INTEGER_CLASS_P): Likewise.
21051         (MAYBE_FLOAT_CLASS_P): Likewise.
21052         (MAYBE_SSE_CLASS_P): Likewise.
21053         (MAYBE_MMX_CLASS_P): Likewise.
21054         (Q_CLASS_P): Likewise.
21055         (GENERAL_REGNO_P): Uppercase macro parameter.
21056         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
21057         (FP_REGNO_P): Likewise.
21058         (ANY_FP_REGNO_P): Uppercase macro parameter.
21059         (SSE_REGNO_P): Likewise.
21060         (SSE_REGNO): Likewise.
21061         (SSE_REG_P): Likewise.
21062         (SSE_FLOAT_MODE_P): Likewise.
21063         (MMX_REGNO_P): Likewise.
21064         (MMX_REG_P):Likewise.
21065         (STACK_REG_P): Likewise.
21066         (NON_STACK_REG_P): Likewise.
21067         (STACK_TOP_P): Likewise.
21068         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
21069         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
21070         (SECONDARY_MEMORY_NEEDED): Likewise.
21071         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
21072         (MD_ASM_CLOBBERS): Whitespace and wrap.
21073         (MUST_PASS_IN_STACK): Whitespace and wrap.
21074         (RETURN_POPS_ARGS): Add parenthesis.
21075         (INIT_CUMULATIVE_ARGS): Likewise.
21076         (FUNCTION_ARG): Likewise.
21077         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
21078         (SETUP_INCOMING_VARARGS): Likewise.
21079         (BUILD_VA_LIST_TYPE):  Add parenthesis.
21080         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
21081         parenthsis.
21082         (EXPAND_BUILTIN_VA_ARG): Likewise.
21083         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
21084         (INITIALIZE_TRAMPOLINE): Add parenthesis.
21085         (INITIAL_ELIMINATION_OFFSET): Likewise.
21086         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
21087         (REGNO_OK_FOR_BASE_P): Likewise.
21088         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
21089         (REGNO_OK_FOR_DIREG_P): Likewise.
21090         (REG_OK_FOR_INDEX_P): Whitespace.
21091         (REG_OK_FOR_BASE_P): Whitespace.
21092         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
21093         parenthesis.
21094         (FIND_BASE_TERM): Fix typo.
21095         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
21096         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
21097         (SYMBOLIC_CONST; Whitespace.
21098         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
21099         (ENCODE_SECTION_INFO): Whitespace.
21100         (FINALIZE_PIC): Remove do { ... } while (0).
21101         (PROMOTE_MODE): Wrap in do { ... } while (0).
21102         (CONST_COSTS): Whitespace.
21103         (RTX_COSTS): Add paramethesis, whitespace and wrap.
21104         (REGISTER_MOVE_COST): Add parenthesis.
21105         (MEMORY_MOVE_COST): Likewise.
21106         (EXTRA_CC_MODES): Whitespace.
21107         (SELECT_CC_MODE): Add parenthesis and whitespace.
21108         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
21109         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
21110         (ASM_OUTPUT_LABEL): Add paramethesis.
21111         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
21112         (ASM_OUTPUT_REG_POP): Likewise.
21113         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
21114         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21116         * config/i386/i386.c: Update copyright.
21117         (CHECK_STACK_LIMIT): Add parenthesis.
21118         (AT_BP): Uppercase macro parameter.
21119         (x86_64_int_parameter_registers): Constify.
21120         (x86_64_int_return_registers): Likewise.
21121         (ix86_compare_op0): Use rtx.
21122         (construct_container): Constify INTREG parameter.
21123         (function_arg): Use rtx.
21125         * diagnostic.h: Update copyright date.
21126         (output_buffer_state): Add parenthesis.
21127         (output_buffer_format_args): Likewise.
21129         * combine.c (combine_instructions): Replace XEXP (links, 0)
21130         with link.
21132 2002-01-06  H.J. Lu <hjl@gnu.org>
21134         * cfgcleanup.c (thread_jump): Fix 2 typos.
21136 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
21138         * config.gcc: Add support for --enable-altivec.
21140 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21142         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
21144 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
21146         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
21147         __objc_class_name_*.
21149 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21151         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
21153 2002-01-06  Richard Henderson  <rth@redhat.com>
21155         * reorg.c (emit_delay_sequence): Remove death notes, not merely
21156         nop them out.  Increment label reference count for REG_LABEL.
21157         (fill_slots_from_thread): Frob label reference count around
21158         delete_related_insns.
21160 2002-01-05  Richard Henderson  <rth@redhat.com>
21162         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
21163         jump threading.
21165 2002-01-05  Richard Henderson  <rth@redhat.com>
21167         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
21168         * integrate.c (output_inline_function): Likewise.
21169         * toplev.c (rest_of_compilation): Do it here instead.  Move call
21170         to remove_unnecessary_notes after emitting abstract instance.
21171         Force an emitted nested function to have its parent emited as well.
21172         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
21173         for null.
21174         (rtl_for_decl_location): Do not look at reload data structures
21175         before reload has run.
21177 2002-01-05  Kazu Hirata  <kazu@hxi.com>
21179         * cse.c: Fix formatting.
21180         * dwarf2asm.c: Likewise.
21181         * dwarf2out.c: Likewise.
21182         * explow.c: Likewise.
21183         * expmed.c: Likewise.
21184         * function.c: Likewise.
21185         * gcov.c: Likewise.
21186         * gencheck.c: Likewise.
21187         * genrecog.c: Likewise.
21188         * ggc-common.c: Likewise.
21189         * ggc-page.c: Likewise.
21190         * global.c: Likewise.
21192 2002-01-05  Kazu Hirata  <kazu@hxi.com>
21194         * combine.c: Fix formatting.
21196 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
21198         PR middle-end/1557
21199         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
21201 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
21203         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
21204         as 1 for __powerpc64__ as well.
21206         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
21208         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
21209         return it.
21211 2002-01-05  Daniel Berlin  <dan@dberlin.org>
21213         * lcm.c: Revert change, due to performance regression it causes on
21214         SPEC because it's slightly more conservative (sigh, I hate
21215         edge-based LCM).
21217 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
21219         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
21221 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
21223         * doc/cppinternals.texi: Update.
21225 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
21227         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
21228         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
21229         negatives.
21230         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
21231         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
21232         kludge for pre-october-14th mmix versions to handle new-found bug
21233         with PUSHJ/PUSHGO and the register stack.
21234         * config/mmix/mmix.h (struct machine_function): Rename member
21235         has_call_value_without_parameters to has_call_without_parameters.
21236         All referers changed.
21237         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
21238         TARGET_MASK_BRANCH_PREDICT): New macros.
21239         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
21240         -mno-reg-stack-fill-bug-workaround.
21241         * config/mmix/mmix.md ("call"): Set struct machine member
21242         has_call_without_parameters.
21244 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
21246         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
21248 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
21250         * cfgcleanup.c: Include tm_p.h
21251         (mark_effect): Fix handling of hard register; fix handling of SET
21253 2002-01-04  Kazu Hirata  <kazu@hxi.com>
21255         * config/h8300/h8300.md (anonymous patterns): Check that
21256         operands are registers before using REGNO on them.
21258 2002-01-03  Roland McGrath  <roland@frob.com>
21260         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
21262 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
21264         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
21265         * c-common.h (genrtl_expr_stmt_value): Likewise.
21266         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
21267         (expand_expr_stmt_value): Add maybe_last argument.
21268         Don't warn about statement with no effect if it is the last statement
21269         in expression statement.
21270         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
21271         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
21272         expand_expr_stmt_value.
21273         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
21274         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
21275         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
21276         as maybe_last to expand_expr_stmt_value.
21278 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
21280         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
21281         be passed in, do not build it.
21282         (c_begin_if_stmt): New function.
21283         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
21284         * c-common.h (c_expand_start_cond): Update prototype.
21285         (c_begin_if_stmt): Prototype new function.
21286         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
21287         * c-parse.in (if_prefix): Use c_begin_if_stmt,
21288         c_begin_while_stmt and c_finish_while_stmt_cond.
21290 2002-01-04  William Cohen  <wcohen@redhat.com>
21292         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
21293         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
21294         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21295         * config/pa/som.h (ASM_FILE_START): Likewise.
21297 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
21299         * lcm.c: Include df.h.
21300         Add available_transfer_function prototype.
21301         (compute_available): Rework to use iterative dataflow framework.
21302         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
21303         with bb_info in df.h
21304         (available_transfer_function): New function.
21306         * Makefile.in (lcm.o): add df.h to dependencies.
21308 2002-01-04  Richard Henderson  <rth@redhat.com>
21310         * config/alpha/alpha.c (some_operand): Accept HIGH.
21311         (input_operand): Likewise; accept simple references to globals.
21312         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
21313         (alpha_const_double_ok_for_letter_p): Likewise.
21314         (alpha_extra_constraint): Likewise.
21315         (alpha_preferred_reload_class): Likewise.  Do not force
21316         symbolic constants to memory.
21317         (alpha_legitimate_address_p): Accept simple references
21318         to small_symbolic_operand.
21319         (alpha_legitimize_address): New arg scratch.  Be prepared to be
21320         called when no_new_pseudos.  Emit simple symbolic references.
21321         Split integers into low, high, and rest.
21322         (alpha_expand_mov): Use alpha_legitimize_address.
21323         (some_small_symbolic_mem_operand): New.
21324         (split_small_symbolic_mem_operand): New.
21325         * config/alpha/alpha-protos.h: Update.
21326         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
21327         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
21328         (EXTRA_CONSTRAINT): Likewise.
21329         (PREFERRED_RELOAD_CLASS): Likewise.
21330         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
21331         (PREDICATE_CODES): Update.
21332         * config/alpha/alpha.md: New post-reload splitters to convert
21333         simplfied symbolic operands to the form that references $29.
21334         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
21335         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
21337 2002-01-03  Richard Henderson  <rth@redhat.com>
21339         * local-alloc.c (function_invariant_p): Update commentary.
21341 2002-01-04  H.J. Lu <hjl@gnu.org>
21343         * toplev.c (rest_of_compilation): Fix a typo when calling
21344         cleanup_cfg.
21346 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21348         * c-common.c: Fix formatting.
21349         * diagnostic.c: Likewise.
21350         * doloop.c: Likewise.
21351         * dwarf2out.c: Likewise.
21353 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21355         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
21356         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
21358 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
21360         * cpperror.c: Update comments and copyright.
21361         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
21362         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
21364 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21366         * collect2.c (main): Use strcmp when testing for "-shared".
21368 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
21370         * cppmacro.c: Don't include intl.h.  Update comments.
21371         (new_number_token): Allocate enough buffer for 64-bit unsigned
21372         integers; update prototype.
21373         * cppmain.c: Update comments.
21375 2002-01-03  William Cohen  <wcohen@redhat.com>
21377         * function.h (struct function): Add profile.
21378         (current_function_profile): New.
21379         doc/extend.texi: Update documentation.
21380         * final.c (final_start_function): Use current_function_profile
21381         instead of profile_flag.
21382         (profile_after_prologue): Likewise.
21383         * function.c (expand_function_start): Likewise.
21384         (expand_function_start): Likewise.
21385         * config/alpha/alpha.c (direct_call_operand):
21386         (alpha_does_function_need_gp): Likewise.
21387         (alpha_expand_prologue): Likewise.
21388         * config/arm/arm.c (arm_expand_prologue): Likewise.
21389         thumb_expand_prologue: Likewise.
21390         * config/d30v/d30v.c (d30v_stack_info): Likewise.
21391         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
21392         (fr30_expand_prologue): Likewise.
21393         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
21394         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
21395         * config/i386/i386.h (FINALIZE_PIC): Likewise.
21396         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
21397         * config/i960/i960.c (i960_output_function_prologue): Likewise.
21398         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
21399         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
21400         (m32r_expand_prologue): Likewise.
21401         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
21402         (m88k_expand_prologue): Likewise.
21403         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
21404         * config/mips/mips.c (compute_frame_size): Likewise.
21405         (mips_expand_prologue): Likewise.
21406         (mips_can_use_return_insn): Likewise.
21407         * config/pa/elf.h (ASM_FILE_START): Likewise.
21408         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
21409         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21410         * config/pa/som.h (ASM_FILE_START): Likewise.
21411         * config/romp/romp.c (romp_using_r14): Likewise.
21412         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
21413         (rs6000_stack_info): Likewise.
21414         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21415         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
21416         * config/v850/v850.c (compute_register_save_size): Likewise.
21418 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
21420         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
21421         gen_lowpart_common fails, use gen_lowpart_SUBREG.
21423 2002-01-03  Turly O'Connor  <turly@apple.com>
21425         * darwin.c (machopic_output_possible_stub_label): Don't generate
21426         stub routines for pseudo-stubs which we've just defined.
21428 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21430         * builtins.c: Fix formatting.
21431         * c-typeck.c: Likewise.
21432         * combine.c: Likewise.
21433         * expr.c: Likewise.
21434         * loop.c: Likewise.
21436 2002-01-03  Andreas Schwab  <schwab@suse.de>
21438         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
21439         and return true if _cpp_push_next_buffer pushed a new include
21440         file.
21441         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
21442         _cpp_pop_file_buffer did not push a new file.
21443         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
21445 2002-01-02  Eric Christopher  <echristo@redhat.com>
21447         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
21448         FIND_REG_INC_NOTE call. Update copyright.
21449         * loop.c (canonicalize_condition): Ditto.
21450         * reorg.c (delete_scheduled_jump): Ditto.
21452 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21454         * gcse.c: Fix formatting.
21456 2002-01-03  Graham Stott  <grahams@redhat.com>
21458         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
21459         forward defs for struct tags rtx_def, union_tree, rtvec_def
21460         also output corresponding typedefs for rtx, tree, and rtvec.
21462         * system.h: Move forward defs for struct tags rtx_def, union_tree,
21463         rtvec_def along with corresponding typedefs for rtx, tree, and
21464         rtvec to config.h, hconfig.h, tconfig.h.
21466 2002-01-03  Graham Stott  <grahams@redhat.com>
21468         * tree.h: Update copyright date.
21469         (IS_EXPR_CODE_CLASS): Add parenthesis.
21470         (TREE_SET_CODE): Add whitespace.
21471         (TREE_CHECK): Add parenthesis.
21472         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
21473         (CST_OR_CONSTRUCTOR_CHECK):
21474         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
21475         (TREE_SYMBOL_REFERENCED): Whitespace.
21476         (INT_CST_LT): Likewise.
21477         (INT_CST_LT_UNSIGNED): Likewise.
21478         (tree_real_cst): Unwrap comment.
21479         (tree_string): Likewise.
21480         (tree_complex): Likewise.
21481         (IDENTIFIER_POINTER): correct cast.
21482         (SAVE_EXPR_CONTEXT): Whitespace.
21483         (EXPR_WFL_FILENAME_NODE): Likewise.
21484         (EXPR_WFL_FILENAME): Remove parenthesis.
21485         (DECL_ORIGIN): Add parenthesis.
21486         (DECL_FROM_INLINE): Use NULL_TREE.
21487         (build_int_2): Whitespace.
21488         (build_type_variant): Add parenthesis.
21490         * gcc/jcf-parse.c: Update copyright date.
21491         (yyparse): Constify resource_filename.
21493 2002-01-03  Graham Stott  <grahams@redhat.com>
21495         * rtl.h: Update copyright date.
21496         (RTL_CHECK1): Wrap long line.
21497         (RTL_CHECK2): Likewise.
21498         (RTL_CHECKC1): Wrap long line and whitespace.
21499         (RTL_CHECKC2): Likewise.
21500         (XWINT): Whitespace.
21501         (XINT): Likewise.
21502         (XSTR): Likewise.
21503         (XEXP): Likewise.
21504         (XVEC): Likewise.
21505         (XMODE): Likewise.
21506         (XBITMAP): Likewise.
21507         (XTREE): Likewise.
21508         (XBBDEF): Likewise.
21509         (XTMPL): Likewise.
21510         (X0WINT): Likewise.
21511         (X0INT):Likewise.
21512         (X0UINT): Likewise.
21513         (X0STR): Likewise.
21514         (X0EXP): Likewise.
21515         (X0VEC): Likewise.
21516         (X0MODE): Likewise.
21517         (X0BITMAP): Likewise.
21518         (X0TREE): Likewise.
21519         (X0BBDEF): Likewise.
21520         (X0ADVFLAGS): Likewise.
21521         (X0CSELIB): Likewise.
21522         (X0MEMATTR): Likewise.
21523         (XCWINT): Likewise.
21524         (XCINT): Likewise.
21525         (XCUINT): Likewise.
21526         (XCSTR): Likewise.
21527         (XCEXP): Likewise.
21528         (XCVEC): Likewise.
21529         (XCMODE): Likewise.
21530         (XCBITMAP): Likewise.
21531         (XCTREE): Likewise.
21532         (XCBBDEF): Likewise.
21533         (XCADVFLAGS): Likewise.
21534         (XCCSELIB): Likewise.
21535         (XC2EXP): Likewise.
21536         (INSN_UID): Likewise.
21537         (PREV_INSN): Likewise.
21538         (PATTERN): Likewise.
21539         (INSN_CODE): Likewise.
21540         (PUT_REG_NOTE_KIND): Likewise.
21541         (CODE_LABEL_NUMBER): Likewise.
21542         (NOTE_SOURCE_FILE): Likewise.
21543         (NOTE_BLOCK): Likewise.
21544         (NOTE_EH_HANDLER): Likewise.
21545         (NOTE_RANGE_INFO): Likewise.
21546         (NOTE_LIVE_INFO): Likewise.
21547         (NOTE_BASIC_BLOCK): Likewise.
21548         (NOTE_EXPECTED_VALUE): Likewise.
21549         (NOTE_LINE_NUMBER): Likewise.
21550         (LABEL_NAME): Likewise.
21551         (LABEL_NUSES): Likewise.
21552         (LABEL_ALTERNATE_NAME): Likewise.
21553         (ADDRESSOF_DECL): Likewise.
21554         (JUMP_LABEL): Likewise.
21555         (LABEL_NEXTREF): Likewise.
21556         (REGNO): Likewise.
21557         (ORIGINAL_REGNO: Likewise.
21558         (HARD_REGISTER_NUM_P): Add parenthesis.
21559         (SUBREG_REG): Whitespace.
21560         (SUBREG_BYTE): Likewise.
21561         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
21562         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
21563         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
21564         (ASM_OPERANDS_INPUT_VEC): Likewise.
21565         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
21566         (ASM_OPERANDS_INPUT): Likewise.
21567         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
21568         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
21569         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
21570         (ASM_OPERANDS_INPUT_MODE): Likewise.
21571         (ASM_OPERANDS_SOURCE_FILE): Likewise.
21572         (ASM_OPERANDS_SOURCE_LINE): Likewise.
21573         (MEM_SET_IN_STRUCT_P): Minor reformat.
21574         (TRAP_CONDITION): Whitespace.
21575         (TRAP_CODE): Likewise.
21576         (COND_EXEC_TEST): Likewise.
21577         (COND_EXEC_CODE): Likewise.
21578         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
21579         (PHI_NODE_P): Add parenthesis.
21580         (plus_constant): Whitespace and add parenthesis.
21582 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21584         * config/avr/avr.c: Fix comment typos.
21585         * config/c4x/c4x.md: Likewise.
21586         * config/dsp16xx/dsp16xx.h: Likewise.
21587         * config/dsp16xx/dsp16xx.md: Likewise.
21588         * config/i386/i386.md: Likewise.
21589         * config/ia64/ia64.c: Likewise.
21590         * config/m32r/m32r.h: Likewise.
21591         * config/m68hc11/m68hc11.md: Likewise.
21592         * config/mmix/mmix.c: Likewise.
21593         * config/mn10200/mn10200.c: Likewise.
21594         * config/romp/romp.c: Likewise.
21595         * config/sh/sh.c: Likewise.
21596         * config/stormy16/stormy16.c: Likewise.
21597         * config/stormy16/stormy16.h: Likewise.
21598         * config/stormy16/stormy16.md: Likewise.
21600 2002-01-03  Graham Stott  <grahams@redhat.com>
21602         * loop.h: Update copyright date.
21603         (LOOP_MOVABLES): Fix typo.
21604         (LOOP_REGS): Likewise.
21605         (LOOP_IVS): Likewise.
21607 2002-01-03  Graham Stott  <grahams@redhat.com>
21609         * cppinit.c: Update copyright date.
21610         Don't include output.h
21611         * Makefile.in: Update copyright date.
21612         Update dependency.
21614 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21616         PR c/5226
21617         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
21618         (-pthread) Add to RS/6000 options.
21620 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21622         * except.c: Fix comment typos.
21623         * loop.c: Likewise.
21624         * varasm.c: Likewise.
21625         * doc/tm.texi: Fix a typo.
21627 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
21629         * c-typeck.c (output_init_element): Allow initializing static storage
21630         duration objects with compound literals.
21632 2002-01-02  Richard Henderson  <rth@redhat.com>
21634         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
21635         after abusing it.
21637 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21639         * gcc.c (default_compilers): Const-ify.
21640         * mips-tdump.c (stab_names): Likewise.
21641         * mips-tfile.c (map_coff_types, map_coff_storage,
21642         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
21643         pseudo_ops_t, pseudo_ops): Likewise.
21644         * protoize.c (default_include): Likewise
21646         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
21647         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
21648         Add array size in declaration.
21649         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
21650         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
21651         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
21652         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
21653         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
21654         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
21655         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
21656         emtens, make_nan): Const-ify.
21657         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
21658         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
21660 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
21662         * config.gcc (ia64-*-*): Set extra_headers.
21663         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
21664         * config/alpha/t-osf: Remove.
21665         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
21667 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
21669         * config/rs6000/t-aix43: Revert previous change.
21671 2002-01-02  Jason Merrill  <jason@redhat.com>
21673         * c-decl.c (c_expand_body): Call outlining_inline_function when
21674         emitting an inline function out of line.
21676 2002-01-02  Richard Henderson  <rth@redhat.com>
21678         * dwarf2out.c (limbo_die_node): Add created_for member.
21679         (new_die): New argument created_for.  Update all callers.
21680         (mark_limbo_die_list): New.
21681         (dwarf2out_init): Register limbo_die_list as a root.
21682         (dwarf2out_finish): Force insert limbo dies into their function
21683         context.
21685 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
21687         PR c++/5089
21688         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
21690 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21692         * config/h8300/fixunssfsi.c: Update copyright.
21693         Fix comment typos.
21694         Fix formatting.
21695         * config/h8300/h8300.c: Update copyright.
21696         Eliminate warnings.
21698 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21700         * config/romp/romp.c: Fix comment formatting.
21701         * config/romp/romp.h: Likewise.
21702         * config/romp/romp.md: Likewise.
21703         * config/s390/s390.c: Likewise.
21704         * config/stormy16/stormy16.c: Likewise.
21705         * config/stormy16/stormy16.h: Likewise.
21707 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
21709         * c-common.h (genrtl_expr_stmt_value): Declare.
21710         * c-semantics.c (genrtl_goto_stmt): Redirect to...
21711         (genrtl_goto_stmt_value): ... this new function.  Pass new
21712         argument down to expand_expr_stmt_value, taking
21713         TREE_ADDRESSABLE into account.
21714         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
21715         STMT_EXPR as addressable, i.e., one whose result we want.
21716         * expr.c (expand_expr): Don't save expression statement value
21717         of labeled_blocks or loop_exprs.
21718         * stmt.c (expand_expr_stmt): Redirect to...
21719         (expand_expr_stmt_value): ... this new function.  Use new
21720         argument to tell whether to save expression value.
21721         (expand_end_stmt_expr): Reset last_expr_type and
21722         last_expr_value if we don't have either.
21723         * tree-inline.c (declare_return_variable): Mark its use
21724         statement as addressable.
21725         * tree.h: Document new use of TREE_ADDRESSABLE.
21726         (expand_expr_stmt_value): Declare.
21728 2002-01-01  Tom Rix  <trix@redhat.com>
21730         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
21731         rs6000_emit_allocate_stack.
21733 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
21735         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
21736         ${srcdir}/ginclude/ to every entry in extra_headers.
21737         * configure: Regenerate.
21738         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
21739         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
21740         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
21741         * ginclude/proto.h: Rename to config/convex/proto.h.
21743 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21745         * attribs.c (handle_vector_size_attribute): Use host_integerp
21746         and tree_int_cst; remove warnings.
21747         * caller-save.c (insert_restore): Add cast to get rid of warning.
21748         (insert_save): Likewise.
21749         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
21750         * regmove.c (find_matches): Add temporary var to kill a warning.
21752 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
21754         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
21755         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
21756         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
21757         (vms-dwarf2eh.o): Add Makefile rule.
21758         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
21759         * config/alpha/vms-dwarf2eh.asm: New file.
21761         * gcc.c (delete_if_ordinary): Delete all versions.
21763 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
21765         * config/mmix/mmix.md: Update FIXME to not mention
21766         define_constants.
21767         (MMIX_rJ_REGNUM): New define_constants constant.
21768         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
21769         "*movdicc_real"): Adjust contraints formatting.
21770         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
21771         for branch prediction.
21772         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
21773         output template.
21774         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
21775         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
21776         number.  Delete related FIXMEs.
21777         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
21778         from number to MMIX_rJ_REGNUM.
21779         (TARGET_MASK_BRANCH_PREDICT): New.
21780         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
21781         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
21782         value.  Add -mbranch-predict and -mno-branch-predict.
21783         (TARGET_VERSION): Drop date.
21784         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
21785         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
21786         for finding out global symbols.
21787         (mmix_asm_output_labelref): Revert condition for global symbol.
21788         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
21789         (mmix_print_operand_punct_valid_p): A '+' is valid.
21791 See ChangeLog.6 for earlier changes.