(THUMB_FUNCTION_PROFILER): Remove.
[official-gcc.git] / gcc / ChangeLog
blob0aad8c8ab83089aaa041c3c87fc460f2fa4b595b
1 2002-09-24  Adam Nemet  <anemet@lnxw.com>
2             Nick Clifton  <nickc@redhat.com>
4         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
5         (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
6         is defined.
8 2002-09-24  Ulrich Weigand  <uweigand@de.ibm.com>
10         * config/s390/s390.c (preferred_la_operand_p): New function.
11         * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
12         * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
13         ("*la_64_cc", "*la_31_cc", splitters): ... these.
14         ("*la_31"): Deactivate for TARGET_64BIT.
15         ("*la_31_and", "*la_31_and_cc"): New.
17 2002-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19         * real.h (real_value): Make `exp' explicitly signed.
21 2002-09-24  Kazu Hirata  <kazu@cs.umass.edu>
23         * config/elfos.h: Follow spelling conventions.
24         * config/alpha/alpha.h: Likewise.
25         * config/arc/arc.h: Likewise.
26         * config/arm/arm.md: Likewise.
27         * config/avr/avr.h: Likewise.
28         * config/cris/cris.md: Likewise.
29         * config/d30v/d30v.h: Likewise.
30         * config/frv/frv.c: Likewise.
31         * config/frv/frv.h: Likewise.
32         * config/h8300/h8300.c: Likewise.
33         * config/h8300/h8300.h: Likewise.
34         * config/h8300/h8300.md: Likewise.
35         * config/i386/cygwin.h: Likewise.
36         * config/i386/i386.h: Likewise.
37         * config/i386/sysv3.h: Likewise.
38         * config/i960/i960.h: Likewise.
39         * config/ia64/ia64.h: Likewise.
40         * config/ia64/ia64.md: Likewise.
41         * config/ip2k/ip2k.h: Likewise.
42         * config/m32r/m32r.h: Likewise.
43         * config/m68k/m68k.h: Likewise.
44         * config/m88k/m88k.h: Likewise.
45         * config/mcore/mcore.c: Likewise.
46         * config/mcore/mcore.h: Likewise.
47         * config/mcore/mcore.md: Likewise.
48         * config/mips/mips.h: Likewise.
49         * config/mmix/mmix.h: Likewise.
50         * config/mmix/mmix.md: Likewise.
51         * config/ns32k/netbsd.h: Likewise.
52         * config/ns32k/ns32k.h: Likewise.
53         * config/ns32k/ns32k.md: Likewise.
54         * config/pa/pa.h: Likewise.
55         * config/romp/romp.h: Likewise.
56         * config/rs6000/rs6000.h: Likewise.
57         * config/rs6000/rs6000.md: Likewise.
58         * config/sparc/sparc.h: Likewise.
59         * config/stormy16/stormy-abi: Likewise.
60         * config/stormy16/stormy16.h: Likewise.
61         * config/vax/vax.h: Likewise.
63 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
65         * version.c (version_string): Now const char[].
66         * version.h: Update to match.
68 2002-09-23  Richard Henderson  <rth@redhat.com>
70         * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
71         MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
72         (TARGET_SWITCHES): Don't reference them.
73         * config/i386/i386.c (override_options): Use target_flags_explicit
74         to examine bits set by the user.
76 2002-09-23  Dale Johannesen  <dalej@apple.com>
78         * dbxout.c (dbxout_parms):  Set current_sym_code for params
79         passed on stack by invisible reference.
81 2002-09-23  Richard Earnshaw  <rearnsha@arm.com>
83         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
84         at least one byte of space.
86 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
88         * c-common.h (flag_abi_version): Fix typo in comment.
89         * doc/invoke.texi (flag_abi_version): Document default value.
91 2002-09-23  Hans-Peter Nilsson  <hp@axis.com>
93         * doc/extend.texi (Extended Asm): Clarify that overlap between
94         asm-declared register variables used in an asm and the asm clobber
95         list is not allowed.
96         * stmt.c (decl_conflicts_with_clobbers_p): New function.
97         (expand_asm_operands): Keep track of clobbered registers.  Call
98         decl_conflicts_with_clobbers_p for each input and output operand.
99         If no conflicts found before, also do conflict sanity check when
100         emitting clobbers.
102 2002-09-23  Richard Henderson  <rth@redhat.com>
104         * c-common.c (cpp_define_data_format): Remove.
105         (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
106         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
107         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
108         * doc/cpp.texi: Don't document them either.
109         (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
110         __LONG_LONG_MAX__): Document.
111         (__TARGET_FLOAT_FORMAT__): Remove.
113 2002-09-23  Richard Henderson  <rth@redhat.com>
115         * real.c (do_multiply): Normalize U before addition.
117 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
119         * c-common.c (flag_abi_version): New variable.
120         * c-common.h (flag_abi_version): Declare it.
121         * c-opts.c (missing_arg): Add -fabi-version.
122         (c_common_decode_option): Process -fabi-version.
123         * doc/invoke.texi (-fabi-version): Document it.
124         (-Wabi): Add information about bit-fields in unions.
126 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
128         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
129         unless -fno-pic or -fno-PIC is specified.
131 2002-09-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
133         * c-common.c (preprocessing_trad_p): Define.
134         * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
135         (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
136         * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
137         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
138         * pa-linux.h (CPP_PREDEFINES): Delete.
139         (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
140         * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
141         * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
142         (TARGET_OS_CPP_BUILTINS): Define.
143         * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
144         (TARGET_SWITCHES): Reformat.  Use N_() macro.  Add SUBTARGET_SWITCHES.
145         (SUBTARGET_SWITCHES): Provide default definition.
146         (TARGET_OPTIONS): Reformat.  Use N_() macro.
147         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
148         CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
149         EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
150         (TARGET_CPU_CPP_BUILTINS): Define.
151         (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
152         * doc/invoke.texi (msio, mwsio): Document new hppa options.
153         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
154         preprocessing_trad_p().
156 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
158         * doc/install.texi: Document behavior of --with-headers and
159         --with-libs when arguments are omitted.
161 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>
163         * dbxout.c: Follow spelling conventions.
164         * defaults.h: Likewise.
165         * df.c: Likewise.
166         * diagnostic.h: Likewise.
167         * doloop.c: Likewise.
168         * dwarf2out.c: Likewise.
169         * dwarfout.c: Likewise.
170         * emit-rtl.c: Likewise.
171         * except.c: Likewise.
172         * explow.c: Likewise.
173         * expmed.c: Likewise.
174         * expr.c: Likewise.
175         * expr.h: Likewise.
176         * flags.h: Likewise.
177         * flow.c: Likewise.
178         * fold-const.c: Likewise.
179         * function.c: Likewise.
180         * function.h: Likewise.
181         * gcc.c: Likewise.
182         * gcov-io.h: Likewise.
183         * gcov.c: Likewise.
184         * gcse.c: Likewise.
185         * genattrtab.c: Likewise.
186         * genconfig.c: Likewise.
187         * genrecog.c: Likewise.
188         * ggc-page.c: Likewise.
189         * ggc.h: Likewise.
190         * global.c: Likewise.
191         * gthr-win32.h: Likewise.
192         * integrate.c: Likewise.
193         * jump.c: Likewise.
194         * langhooks.c: Likewise.
195         * langhooks.h: Likewise.
196         * line-map.h: Likewise.
197         * local-alloc.c: Likewise.
198         * longlong.h: Likewise.
199         * loop.c: Likewise.
200         * loop.h: Likewise.
202 Tue Aug 27 22:26:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
204         * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
206 Tue Aug 27 20:07:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
208         * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
209         for -Os/TARGET_64BIT too.
211 2002-09-21  Kazu Hirata  <kazu@cs.umass.edu>
213         * ChangeLog: Follow spelling conventions.
214         * ChangeLog.0: Likewise.
215         * ChangeLog.1: Likewise.
216         * ChangeLog.2: Likewise.
217         * ChangeLog.3: Likewise.
218         * ChangeLog.4: Likewise.
219         * ChangeLog.5: Likewise.
220         * ChangeLog.6: Likewise.
221         * FSFChangeLog.10: Likewise.
222         * FSFChangeLog.11: Likewise.
223         * alias.c: Likewise.
224         * basic-block.h: Likewise.
225         * c-aux-info.c: Likewise.
226         * c-common.c: Likewise.
227         * c-common.h: Likewise.
228         * c-decl.c: Likewise.
229         * c-format.c: Likewise.
230         * c-semantics.c: Likewise.
231         * c-typeck.c: Likewise.
232         * calls.c: Likewise.
233         * cfganal.c: Likewise.
234         * cfgloop.c: Likewise.
235         * collect2.c: Likewise.
236         * combine.c: Likewise.
237         * conflict.c: Likewise.
238         * cppexp.c: Likewise.
239         * cppfiles.c: Likewise.
240         * cpphash.h: Likewise.
241         * cppinit.c: Likewise.
242         * cpplex.c: Likewise.
243         * cpplib.c: Likewise.
244         * cpplib.h: Likewise.
245         * cppmacro.c: Likewise.
246         * cse.c: Likewise.
248 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
250         * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
251         LINK_SPEC.
252         (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
253         * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
254         (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
256 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
258         PR opt/7930
259         * cse.c (fold_rtx): Calculate old_cost before we fold each
260         operand.
262 2002-09-21  Richard Henderson  <rth@redhat.com>
264         * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
265         __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
266         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
267         __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
268         __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
269         * doc/cpp.texi: Don't document them.
271 2002-09-21  Richard Henderson  <rth@redhat.com>
273         * c-common.c (builtin_define_float_constants): Use real_format
274         to get the floating-point parameters.
276 2002-09-21  Richard Henderson  <rth@redhat.com>
278         * real.c (struct real_format): Move to real.h.
279         (real_format_for_mode): Rename from fmt_for_mode; update all users;
280         initialize with ieee defaults.
281         (real_to_target_fmt, real_from_target_fmt): New.
282         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
283         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
284         ieee_quad_format, i370_single_format, i370_double_format,
285         c4x_single_format, c4x_extended_format): Rename from s/_format//.
286         (ieee_quad_format): Fix emin.
287         (format_for_size, init_real_once): Remove.
288         * real.h (struct real_format): Move from real.c.
289         (real_format_for_mode): Declare.
290         (real_to_target_fmt, real_from_target_fmt): Declare.
291         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
292         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
293         ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
294         i370_single_format, i370_double_format, c4x_single_format,
295         c4x_extended_format): Declare.
296         * toplev.c (do_compile): Don't call init_real_once.
298         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
299         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
301         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
302         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
303         * config/alpha/alpha.c (override_options): Set real_format_for_mode
304         for VAX, if enabled.
306         * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
307         for C4X.
309         * config/i370/i370.h (OVERRIDE_OPTIONS): New.
310         * config/i370/i370.c (override_options): New.
311         * config/i370/i370-protos.h: Update.
313         * config/i386/i386.c (override_options): Set real_format_for_mode
314         for Intel 80-bit extended.
315         * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
317         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
318         (OVERRIDE_OPTIONS): Move code...
319         * config/i960/i960.c (i960_initialize): ... here.  Set
320         real_format_for_mode for Intel 80-bit extended.
322         * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
323         for Intel 80-bit extended, if enabled.
325         * config/m68k/m68k.c (override_options): Set real_format_for_mode
326         for Motorola 96-bit extended.
328         * config/vax/vax.h (OVERRIDE_OPTIONS): New.
329         * config/vax/vax.c (override_options): New.
330         * config/vax/vax-protos.h: Update.
332 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
334         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
335         #if TARGET_MACHO.
337         * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
338         insns.  Supply missing clobber of scratch reg.
340 2002-09-20  Kazu Hirata  <kazu@cs.umass.edu>
342         * config/m32r/m32r.c: Follow spelling conventions.
343         * config/m32r/m32r.h: Likewise.
344         * config/m32r/m32r.md: Likewise.
345         * config/m68k/m68k.c: Likewise.
346         * config/m88k/m88k.c: Likewise.
347         * config/mcore/mcore.c: Likewise.
348         * config/mips/mips.c: Likewise.
349         * config/mips/mips.h: Likewise.
350         * config/mmix/mmix.c: Likewise.
351         * config/mn10200/mn10200.c: Likewise.
352         * config/ns32k/ns32k.h: Likewise.
353         * config/pa/pa.c: Likewise.
354         * config/pa/pa64-linux.h: Likewise.
355         * config/pdp11/pdp11.h: Likewise.
356         * config/romp/romp.c: Likewise.
357         * config/romp/romp.h: Likewise.
358         * config/rs6000/eabi.asm: Likewise.
359         * config/rs6000/linux64.h: Likewise.
360         * config/rs6000/rs6000.c: Likewise.
361         * config/rs6000/rs6000.h: Likewise.
362         * config/rs6000/rs6000.md: Likewise.
363         * config/rs6000/sysv4.h: Likewise.
364         * config/rs6000/xcoff.h: Likewise.
366 2002-09-20  Jim Wilson  <wilson@redhat.com>
368         * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
370 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
372         * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
373         * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
374         UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
375         (legitimate_address_p): Likewise.
376         (legitimize_address): Use @gotntpoff and @indntpoff.
377         (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
378         (output_addr_const_extra): Likewise.
380 2002-09-20  Jim Wilson  <wilson@redhat.com>
382         * combine.c (try_combine): When split an instruction pair, where the
383         first has a sign_extend src, verify that the src and dest modes match.
385 2002-09-20  Richard Henderson  <rth@redhat.com>
387         * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
388         (override_options): Do not initialize them.
389         (mips_const_double_ok): Allow no fp constants except zero,
390         and not even that for mips16.
391         (const_float_1_operand): Use dconst1.
392         * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
393         movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
394         Don't allow arbitrary constants; fix predicates and C constraint.
396 2002-09-20  Neil Booth  <neil@daikokuya.co.uk>
398         * cppmacro.c: Don't warn about function-like macros without
399         '(' during pre-expansion.
401 2002-09-20  Jim Wilson  <wilson@redhat.com>
403         * config/v850/v850.c (current_function_anonymous_args): Delete.
404         (expand_prologue): Use current_function_args_info.anonymous_args.
405         (expand_epilogue): Delete use of current_function_anonymous_args.
406         * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
407         (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
408         (current_function_anonymous_args): Delete extern declaration.
409         (SETUP_INCOMING_VARARGS): Set anonymous_args field.
411 2002-09-20  Geoffrey Keating  <geoffk@apple.com>
413         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
414         to load_macho_picbase.
415         * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
416         (load_macho_picbase): Take the symbol to use as a parameter.
417         (macho_correct_pic): New insn.
418         (builtin_setjmp_reciever): On Darwin, restore the PIC register.
420         * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
421         RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
422         (CAN_ELIMINATE): Likewise.
423         (INITIAL_ELIMINATION_OFFSET): Likewise.
424         (TOC_REGISTER): Likewise.
426 2002-09-20  Richard Henderson  <rth@redhat.com>
428         * real.c (real_hash): New.
429         * real.h: Declare it.
430         * cse.c (canon_hash): Use it.
431         * cselib.c (hash_rtx): Likewise.
432         * emit-rtl.c (const_double_htab_hash): Likewise.
433         * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
434         * varasm.c (struct rtx_const): Reduce vector size; separate
435         integer and fp vectors.
436         (HASHBITS): Remove.
437         (const_hash_1): Rename from const_hash.  Use real_hash.  Do not
438         take modulus MAX_HASH_TABLE.
439         (const_hash): New.  Do take modulus MAX_HASH_TABLE.
440         (output_constant_def): Do not take modulus MAX_HASH_TABLE.
441         (SYMHASH): Don't use HASHBITS.
442         (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
443         Fix CONST_VECTOR thinko wrt fp vectors.  Fix kind comparison.
444         (simplify_subtraction): Fix kind comparison.
445         (const_hash_rtx): Return unsigned int.  Don't use HASHBITS.
446         Use a union to pun integer array.
447         * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
448         only hash two words of integral CONST_DOUBLE.
450 2002-09-20  Steve Ellcey  <sje@cup.hp.com>
452         * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
453         (STARTFILE_PREFIX_SPEC): New.
454         (LINK_SPEC): Modify.
455         (LIB_SPEC): Modify.
456         (LIBGCC_SPEC): New.
458 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
460         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
461         UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
463 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
465         * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
466         Add clobber of the condition code register.
468 2002-09-20  Richard Henderson  <rth@redhat.com>
470         * real.c (do_fix_trunc): Static.
471         (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
472         encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
473         encode_i370_single, encode_i370_double, encode_c4x_single,
474         encode_c4x_extended): Add default abort case.
476 2002-09-20  Richard Henderson  <rth@redhat.com>
478         * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
479         MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
480         (struct realvaluetype): Remove.
481         (REAL_VALUE_TYPE): Use struct real_value.
482         (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
483         (test_real_width): New.
484         * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
485         (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
486         (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
487         real_isneg, real_isnegzero, real_identical, exact_real_inverse,
488         real_to_integer, real_to_integer2, real_to_decimal,
489         real_to_hexadecimal, real_from_string, real_from_integer,
490         real_inf, real_nan, real_2expN, real_convert, real_to_target,
491         real_from_target): Likewise.
492         * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
493         * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
495 2002-09-20  Richard Henderson  <rth@redhat.com>
497         * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
498         IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
499         * defaults.h: ... here.
500         * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
501         config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
502         config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
503         config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
505 2002-09-20  Hans-Peter Nilsson  <hp@bitrange.com>
507         * config/mmix/mmix.md ("negdf2"): Rewrite.
508         ("*expanded_negdf2"): New.
510 2002-09-19  Jim Wilson  <wilson@redhat.com>
512         * combine.c (simplify_set): When optimizing a subreg src with a
513         cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
515 2002-09-19  Dale Johannesen <dalej@apple.com>
516         * combine.c (make_extraction): Don't create
517         invalid subreg.
519 2002-09-19  Ulrich Weigand  <uweigand@de.ibm.com>
521         * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
522         and STRICT_LOW_PART within SET_DEST.
523         * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
524         splitters, replacing pre-reload splitters.
525         ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
526         "*zero_extendqihi2_31"): New insns.
527         ("*zero_extendqihi2_64"): Do not clobber CC.
529 2002-09-18  Devang Patel  <dpatel@apple.com>
531         * cp/cp-tree.h: New prototype for walk_vtabls().
532         * cp/decl.c (walk_vtables_r): New function.
533         (struct cp_binding_level): Add new members, namespaces,
534         names_size and vtables.
535         (add_decl_to_level): Add decl in namespaces or vtables
536         chain, if conditions match.
537         (walk_vtables): New function.
538         (walk_namespaces_r): Travers separate namespace chain
539         for namespace decls.
540         (wrapup_globals_for_namespace): Use names_size instead
541         of list_length().
542         * cp/decl2.c (finish_file): Use walk_vtables() instead of
543         walk_globals() to walk vtable decls.
545 2002-09-19  Steve Ellcey  <sje@cup.hp.com>
547         * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
548         (DTORS_SECTION_ASM_OP): Ditto.
549         (READONLY_DATA_SECTION_ASM_OP): Moved.
550         (DATA_SECTION_ASM_OP): New.
551         (SDATA_SECTION_ASM_OP): New.
552         (BSS_SECTION_ASM_OP): New.
553         (SBSS_SECTION_ASM_OP): New.
554         (TEXT_SECTION_ASM_OP): New.
556 2002-09-19  Kazu Hirata  <kazu@cs.umass.edu>
558         * config/fp-bit.c: Follow spelling conventions.
559         * config/d30v/d30v.c: Likewise.
560         * config/d30v/d30v.h: Likewise.
561         * config/fr30/fr30.c: Likewise.
562         * config/fr30/fr30.h: Likewise.
563         * config/fr30/fr30.md: Likewise.
564         * config/frv/frv.c: Likewise.
565         * config/frv/frv.h: Likewise.
566         * config/h8300/h8300.c: Likewise.
567         * config/h8300/lib1funcs.asm: Likewise.
568         * config/i370/i370.c: Likewise.
569         * config/i386/i386.h: Likewise.
570         * config/i386/i386.md: Likewise.
571         * config/i386/pentium.md: Likewise.
572         * config/i386/winnt.c: Likewise.
573         * config/i960/i960.c: Likewise.
574         * config/ia64/ia64.h: Likewise.
575         * config/ip2k/ip2k.c: Likewise.
576         * config/ip2k/ip2k.h: Likewise.
577         * config/ip2k/ip2k.md: Likewise.
578         * config/ip2k/libgcc.S: Likewise.
580 2002-09-19  Stephen Clarke <stephen.clarke@superh.com>
582         * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
583         (GOTOFF_P): Extend to allow gotoff plus constant.
585 2002-09-18  Richard Henderson  <rth@redhat.com>
587         * ifcvt.c (noce_process_if_block): Correctly detect X modified
588         with INSN_B before COND_EARLIEST.  Don't check A and B for
589         modification in condition range.  Reorder INSN_B for A==B properly.
590         (if_convert): Iterate until no matches for a block.
592 2002-09-18  Richard Henderson  <rth@redhat.com>
594         * calls.c (store_one_arg): Rename default_align to parm_align;
595         always adjust parm_align for downward padding.
597 2002-09-18  Richard Henderson  <rth@redhat.com>
599         * toplev.c (backend_init): Move init_real_once invocation ...
600         (do_compile): ... here.
602 2002-09-18  Richard Henderson  <rth@redhat.com>
604         * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
605         RTX_UNCHANGING_P markers for successful tail-recursive replacement.
607 2002-09-18  Richard Henderson  <rth@redhat.com>
609         * real.c (round_for_format): Collect sticky as unsigned long, not bool.
611 2002-09-19  Alan Modra  <amodra@bigpond.net.au>
613         * config/rs6000/rs6000.md: (floatdisf2): Rename to
614         floatdisf2_internal1.
615         (floatdisf2): New define_expand.
616         (floatdisf2_internal2): Likewise.
618 2002-09-18  Richard Henderson  <rth@redhat.com>
620         * real.c (sticky_rshift_significand): Collect sticky as
621         unsigned long, not bool.
623 2002-09-18  Ulrich Weigand  <uweigand@de.ibm.com>
625         * config/s390/s390.c (s390_address_cost): New function.
626         config/s390/s390-protos.h (s390_address_cost): Add prototype.
627         config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
628         (RTX_COST): Use COSTS_N_INSNS.
630 2002-09-18  Douglas Rupp  <rupp@gnat.com>
631             Donn Terry  <donnte@microsoft.com>
633         * stor-layout.c (place_field): Handle alignment of whole
634         structures when MSVC compatible bitfields are involved.
635         Change method of computing location of MS bitfields to
636         be compatible with #pragma pack(n).
638         * tree.h (record_layout_info): Add new field
639         remaining_in_alignment.
641         * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
642         (pragma pack): Add paragraph on MSVC bit-field packing.
644 2002-09-18  Richard Earnshaw  (reanrsha@arm.com)
646         PR optimization/7967
647         * arm.md (ne_zeroextractsi): Add clobber of the condition code
648         register.
650 2002-09-18  Kazu Hirata  <kazu@cs.umass.edu>
652         * config/s390/s390.c: Follow spelling conventions.
653         * config/sh/lib1funcs.asm: Likewise.
654         * config/sh/sh.c: Likewise.
655         * config/sh/sh.h: Likewise.
656         * config/sparc/sparc.c: Likewise.
657         * config/sparc/sparc.h: Likewise.
658         * config/sparc/sparc.md: Likewise.
659         * config/stormy16/stormy16.c: Likewise.
660         * config/stormy16/stormy16.h: Likewise.
661         * config/v850/v850.c: Likewise.
662         * config/v850/v850.h: Likewise.
663         * config/vax/vax.c: Likewise.
664         * config/vax/vax.h: Likewise.
666 2002-09-18  Nick Clifton  <nickc@redhat.com>
668         * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
669         * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
670         * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
672 2002-09-17  Zack Weinberg  <zack@codesourcery.com>
674         * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
675         statement that the only translation is to en_UK.
677 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
679         * config/alpha/alpha.c: Follow spelling conventions.
680         * config/alpha/alpha.h: Likewise.
681         * config/alpha/alpha.md: Likewise.
682         * config/arc/arc.h: Likewise.
683         * config/arm/arm.c: Likewise.
684         * config/arm/arm.h: Likewise.
685         * config/arm/arm.md: Likewise.
686         * config/arm/pe.c: Likewise.
687         * config/arm/unknown-elf.h: Likewise.
688         * config/avr/avr.c: Likewise.
689         * config/avr/avr.h: Likewise.
690         * config/c4x/c4x.c: Likewise.
691         * config/cris/cris.c: Likewise.
692         * config/cris/cris.h: Likewise.
694 2002-09-17  Samuel Figueroa  <figueroa@apple.com>
696         * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
697         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
698         * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
700 2002-09-17  Dale Johannesen  <dalej@apple.com>
702         * cfgcleanup.c (try_forward_edges):  Do not forward a
703         branch to just after a loop exit before loop optimization;
704         this interfered with doloop detection.
706 2002-09-17  Nick Clifton  <nickc@redhat.com>
708         * config/arm/arm.c (output_return_instruction): Do not
709         writeback the stack pointer when it is being loaded.
710         (arm_output_epilogue): Likewise.
712 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
714         * optabs.c (prepare_cmp_insn): Let emit_library_call_value
715         generate a pseudo reg that receives the result of a libcall.
716         (prepare_float_lib_cmp): Likewise.
718 2002-09-17  Steve Ellcey  <sje@cup.hp.com>
720         * config/ia64/elf.h: Remove CPP_PREDEFINES.
722 Tue Sep 17 13:58:04 2002  Nicola Pero  <n.pero@mi.flashnet.it>
724         Fix PR/7014 and related objc bugs:
725         * c-typeck.c (comp_target_types): Added a reflexive argument.
726         Pass it to ObjC when/if calling objc_comptypes().  Updated all
727         callers to provide the appropriate reflexive argument.
728         * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
729         typechecking for all cases of comparisons and assignments,
730         particularly the obscure and less common ones involving protocols.
732 2002-09-17  Nick Clifton  <nickc@redhat.com>
734         * machmode.def (V1DImode): New mode.  A single element vector.
735         * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
736         (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
737         * tree.c (build_common_tree_nodes_2): Build
738         unsigned_V1DI_type_node and V1D1_type_node.
739         * c-common.c (c_common_type_for_mode): Return
740         unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
741         * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
743 Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
745         * doc/objc.texi (Constant string objects): Extended documentation
746         to make clear that the constant string class ivar layout is
747         completely fixed.
749 2002-09-17  Roger Sayle  <roger@eyesopen.com>
751         * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
752         NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
754 2002-09-16  Richard Henderson  <rth@redhat.com>
756         * expr.c (emit_block_move): Set memory block size as appropriate
757         for the copy.
759 2002-09-16  Richard Henderson  <rth@redhat.com>
761         PR fortran/3924
762         * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
764 2002-09-16  Richard Henderson  <rth@redhat.com>
766         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
767         as well as OFFSET for BITPOS.
769 2002-09-16  Jeff Garzik  <jgarzik@mandrakesoft.com>
771         * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
772         * config/i386/i386.c (processor_alias_table): Add winchip-c6,
773         winchip2 and c3.
774         * doc/invoke.texi: Mention new aliases.
776 2002-09-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
778         * calls.c (store_one_arg): Set default alignment for BLKmode arguments
779         to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
780         downward.
781         * function.c (pad_below):  Always compile.
782         (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
783         alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
784         Pad below when the argument is not in a register and the padding
785         direction is downward.
787         * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
788         (PAD_VARARGS_DOWN): Define.
789         * pa.c (function_arg_padding): Revise padding directions to make them
790         compatible with the 32 and 64-bit runtime architecture documentation.
791         (hppa_va_arg):  Add code to handle variable and size zero arguments
792         passed by reference on TARGET_64BIT.  Reformat.
793         (function_arg): Use a PARALLEL for BLKmode and aggregates args on
794         TARGET_64BIT.  Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
795         wide when !TARGET_64BIT.  Move forward check for mode==VOIDmode.
796         Add comments.
797         * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
798         (RETURN_IN_MEMORY): Return size zero types in memory.
799         (FUNCTION_VALUE): Return TFmode in general registers.
800         (MUST_PASS_IN_STACK): Define.
801         (FUNCTION_ARG_BOUNDARY): Simplify.
802         (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
803         by reference.
804         (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
806 2002-09-16  Richard Henderson  <rth@redhat.com>
808         * real.c (do_fix_trunc): New.
809         (real_arithmetic): Call it.
810         * simplify-rtx.c (simplify_unary_operation): Handle FIX
811         with a floating-point result mode.
813 2002-09-16  Richard Henderson  <rth@redhat.com>
815         * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
816         (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
817         * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
818         (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
819         * builtins.c (fold_builtin_nan): New.
820         (fold_builtin): Call it.
821         * real.c (real_nan): Parse a non-empty string.
822         (round_for_format): Fix NaN significand truncation.
823         * real.h (real_nan): Return bool.
824         * doc/extend.texi: Document new builtins.
826 2002-09-16  Jason Merrill  <jason@redhat.com>
827             Danny Smith  <dannysmith@users.sourceforge.net>
829         * config/i386/winnt.c (ix86_handle_dll_attribute): Set
830         DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
831         (i386_pe_mark_dllimport): Not here.
833 2002-09-16  Nathan Sidwell  <nathan@codesourcery.com>
835         * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
837 2002-09-16  Geoffrey Keating  <geoffk@redhat.com>
839         * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
840         warnings about unused operands when HOST_BITS_PER_WIDE_INT is
841         < 64.
842         (rs6000_emit_cmove): Use real_isinf not target_isinf.
844 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
846         * calls.c (emit_library_call_value_1): Don't refer to
847         hard_libcall_value.
848         * optabs.c (prepare_float_lib_cmp): Likewise.
850 2002-09-16  Geoffrey Keating  <geoffk@apple.com>
852         * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
853         mangling.
855         The following changes are merged from pch-branch:
857         * doc/gty.texi (GTY Options): Document %a.
858         * gengtype.c (do_scalar_typedef): New function.
859         (process_gc_options): Handle `length' option.
860         (set_gc_used_type): A pointer to an array of structures doesn't
861         qualify as a pointer to a structure.
862         (output_escaped_param): Add `%a' escape.
863         (write_gc_structure_fields): Allow 'desc' on array of unions.
864         (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
865         do_scalar_typedef.
867         * gengtype.c (enum rtx_code): Make global.
868         (rtx_format): Make global.
869         (rtx_next): New.
870         (gen_rtx_next): New.
871         (write_rtx_next): New.
872         (adjust_field_rtx_def): Skip fields marked by chain_next.
873         (open_base_files): Delete redundant prototype.
874         (write_enum_defn): New.
875         (output_mangled_typename): Correct abort call.
876         (write_gc_marker_routine_for_structure): Handle chain_next and
877         chain_prev options.
878         (finish_root_table): Don't output redundant \n.
879         (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
880         * c-tree.h (union lang_tree_node): Add chain_next option.
882         * gengtype.h (NUM_PARAM): New definition.
883         (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
884         * gengtype.c (find_param_structure): New.
885         (adjust_field_type): Handle param<n>_is option.
886         (process_gc_options): Detect use_params option.  Update callers.
887         (set_gc_used_type): Add 'param' parameter, update callers.  Handle
888         'use_params' option.
889         (open_base_files): Add splay-tree.h to list of files included.
890         (output_mangled_typename): New.
891         (write_gc_structure_fields): Update 'param' parameter to support
892         multiple parameters.  Change name mangling.  Allow parameterized
893         fields to have an apparent scalar type.  Handle param<n>_is options,
894         use_param option.
895         (write_gc_marker_routine_for_structure): Update for change to name
896         mangling.  Better guess the output file for parameterized types.
897         (write_gc_types): Update for change to name mangling.
898         (write_gc_root): Update for change to name mangling.  Handle (ignore)
899         param<n>_is options.
900         * doc/gty.texi (GTY Options): Add description of param<n>_is
901         options, use_params option.
902         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
903         * gengtype-lex.l: Produce token for param<n>_is.
904         * gengtype-yacc.y: Parse param<n>_is.
906         * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
908         * rtl.c: Update comment describing rtx_format.
909         * rtl.h (union rtunion): Separate definition and typedef.
910         (struct rtx_def): Use gengtype to mark.
911         * Makefile.in (gengtype.o): Also depend on rtl.def.
912         * ggc.h (ggc_mark_rtx_children): Delete prototype.
913         (ggc_mark_rtx): Change to alias of gengtype-generated routine.
914         * ggc-common.c (ggc_mark_rtx_children): Delete.
915         (ggc_mark_rtx_children_1): Delete.
916         (gt_ggc_m_rtx_def): Delete.
917         * gengtype.c (adjust_field_rtx_def): New.
918         (adjust_field_type): Call adjust_field_rtx_def.
919         (write_gc_structure_fields): Add 'default' case to switch if none
920         is specified; remove unused code.
922         * tree.h (struct tree_exp): Update for change to meaning
923         of special.
924         * gengtype.c (adjust_field_tree_exp): New function.
925         (adjust_field_type): Handle `tree_exp' special here.
926         (write_gc_structure_fields): Don't handle `tree_exp' special here.
927         Handle new `dot' option.
929         * gengtype.h: Make `info' a pointer-to-const.
930         * gengtype-yacc.y (yacc_ids): Use xasprintf.
932         * gengtype.c (write_gc_structure_fields): Remove implementation
933         of `always' option, add `default' option.
934         * doc/gty.texi (GTY Options): Remove documentation of `always',
935         add `default'.
937 2002-09-16  Hans-Peter Nilsson  <hp@bitrange.com>
939         * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
941 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
943         * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
945         * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
946         instead of the *-protos.h file directly.
947         * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
948         * darwin.c (machopic_output_stub): Move prototype ...
949         * darwin-protos.h (machopic_output_stub): ... here.
950         * rs6000-protos.h (machopic_output_stub): Don't declare.
952 2002-09-16  Richard Henderson  <rth@redhat.com>
954         * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
956 2002-09-16  Richard Henderson  <rth@redhat.com>
958         * real.c, real.h: Rewrite from scratch.
960         * Makefile.in (simplify-rtx.o): Depend on TREE_H.
961         (paranoia): New target.
962         * builtins.c (fold_builtin_inf): Use new real.h interface.
963         * c-common.c (builtin_define_with_hex_fp_value): Likewise.
964         * c-lex.c (interpret_float): Likewise.
965         * emit-rtl.c (gen_lowpart_common): Likewise.
966         * optabs.c (expand_float): Use real_2expN.
967         * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
968         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
969         (FLOAT_WORDS_BIG_ENDIAN): New.
970         * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
971         directly to REAL_VALUE_NEGATIVE.
972         * loop.c (canonicalize_condition): Likewise.
973         * simplify-rtx.c: Include tree.h.
974         (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
975         with floating-point result modes.
976         * toplev.c (backend_init): Call init_real_once.
978         * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
979         * tree.c (build_real): Likewise.
980         * config/alpha/alpha.c, config/vax/vax.c (float_strings,
981         float_values, inited_float_values, check_float_value): Remove.
982         * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
983         config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
984         * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
985         (VAX_HALFWORD_ORDER): Remove.
987 2002-09-16  Ulrich Weigand  <uweigand@de.ibm.com>
989         * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
990         (s390_load_address): ... this new function.
991         (s390_decompose_address): Allow the argument pointer and all
992         virtual registers as 'pointer' registers.
993         (s390_expand_plus_operand): Use s390_load_address.
994         config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
995         ("force_la_31"): New insn pattern.
996         config/s390/s390-protos.h (legitimize_la_operand): Remove.
997         (s390_load_address): Add prototype.
999         * config/s390/s390.c: Include "optabs.h".
1000         (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
1001         config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
1002         s390_expand_cmpstr): Add prototypes.
1003         config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
1004         ("movstrdi_short"): Rename to "movstr_short_64".  Change predicates
1005         for operands 0 and 1 to "memory_operand".  Add type attribute.
1006         ("movstrsi_short"): Rename to "movstr_short_31".  Change predicates
1007         for operands 0 and 1 to "memory_operand".  Add type attribute.
1008         ("movstrdi_long", "movstrsi_long"): Remove.
1009         ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
1010         ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
1011         ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
1012         ("clrstrsico"): Remove, replace by ...
1013         ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
1014         ("clrstrsi_64"): Rename to "clrstr_long_64".
1015         ("clrstrsi_31"): Rename to "clrstr_long_31".
1016         ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
1017         ("cmpstr_const"): Remove, replace by ...
1018         ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
1019         ("cmpstr_64"): Rename to "cmpstr_long_64".
1020         ("cmpstr_31"): Rename to "cmpstr_long_31".
1022 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
1024         * ABOUT-NLS: Follow spelling conventions.
1025         * ChangeLog: Likewise.
1026         * ChangeLog.1: Likewise.
1027         * ChangeLog.2: Likewise.
1028         * ChangeLog.3: Likewise.
1029         * ChangeLog.4: Likewise.
1030         * ChangeLog.5: Likewise.
1031         * ChangeLog.6: Likewise.
1032         * FSFChangeLog.10: Likewise.
1033         * FSFChangeLog.11: Likewise.
1034         * c-common.c: Likewise.
1035         * c-lex.c: Likewise.
1036         * c-objc-common.c: Likewise.
1037         * cppexp.c: Likewise.
1038         * cppinit.c: Likewise.
1039         * cpplex.c: Likewise.
1040         * doloop.c: Likewise.
1041         * flow.c: Likewise.
1042         * function.c: Likewise.
1043         * integrate.c: Likewise.
1044         * loop.c: Likewise.
1045         * reg-stack.c: Likewise.
1046         * reload.h: Likewise.
1047         * ssa.c: Likewise.
1049 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
1051         * ChangeLog: Follow spelling conventions.
1052         * ChangeLog.0: Likewise.
1053         * ChangeLog.1: Likewise.
1054         * ChangeLog.2: Likewise.
1055         * ChangeLog.4: Likewise.
1056         * ChangeLog.6: Likewise.
1057         * config.gcc: Likewise.
1058         * dwarfout.c: Likewise.
1059         * reload1.c: Likewise.
1060         * simplify-rtx.c: Likewise.
1061         * unwind-sjlj.c: Likewise.
1062         * config/avr/avr.h: Likewise.
1063         * config/d30v/d30v.h: Likewise.
1064         * config/frv/frv.c: Likewise.
1065         * config/frv/frv.h: Likewise.
1066         * config/ip2k/ip2k.h: Likewise.
1067         * config/m88k/m88k-move.sh: Likewise.
1068         * config/stormy16/stormy16.c: Likewise.
1069         * config/stormy16/stormy16.h: Likewise.
1070         * doc/extend.texi: Likewise.
1071         * doc/interface.texi: Likewise.
1072         * doc/invoke.texi: Likewise.
1073         * doc/md.texi: Likewise.
1074         * doc/rtl.texi: Likewise.
1075         * doc/tm.texi: Likewise.
1076         * doc/trouble.texi: Likewise.
1077         * ginclude/float.h: Likewise.
1078         * treelang/treelang.texi: Likewise.
1080 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1082         * i386-protos.h (i386_pe_dllexport_name_p,
1083         i386_pe_dllimport_name_p, i386_pe_unique_section,
1084         i386_pe_declare_function_type, i386_pe_record_external_function,
1085         i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
1086         prototype.
1087         * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
1088         * i386/t-interix (winnt.o): Likewise.
1090         * v850-protos.h (v850_output_addr_const_extra): Prototype.
1092 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
1094         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
1095         MIPS ABI CPP macros.
1096         (TARGET_CPU_CPP_BUILTINS): Redefine.
1097         (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
1098         (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
1100 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1102         * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
1104 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
1106         * ChangeLog: Follow spelling conventions.
1107         * ChangeLog.0: Likewise.
1108         * ChangeLog.1: Likewise.
1109         * ChangeLog.2: Likewise.
1110         * ChangeLog.3: Likewise.
1111         * ChangeLog.4: Likewise.
1112         * ChangeLog.5: Likewise.
1113         * ChangeLog.6: Likewise.
1114         * FSFChangeLog.10: Likewise.
1115         * FSFChangeLog.11: Likewise.
1116         * c-common.c: Likewise.
1117         * c-common.h: Likewise.
1118         * c-format.c: Likewise.
1119         * c-opts.c: Likewise.
1120         * cpplib.c: Likewise.
1121         * langhooks.h: Likewise.
1122         * real.c: Likewise.
1123         * reg-stack.c: Likewise.
1124         * toplev.c: Likewise.
1125         * config/arm/arm.c: Likewise.
1126         * config/arm/arm.md: Likewise.
1127         * config/arm/linux-gas.h: Likewise.
1128         * config/arm/netbsd.h: Likewise.
1129         * config/c4x/c4x.c: Likewise.
1130         * config/c4x/c4x.h: Likewise.
1131         * config/c4x/c4x.md: Likewise.
1132         * config/c4x/libgcc.S: Likewise.
1133         * config/fr30/fr30.md: Likewise.
1134         * config/frv/frv.md: Likewise.
1135         * config/ia64/ia64.md: Likewise.
1136         * config/mips/mips.h: Likewise.
1137         * config/mn10300/mn10300.c: Likewise.
1138         * config/stormy16/stormy16.c: Likewise.
1139         * config/v850/v850.md: Likewise.
1140         * doc/extend.texi: Likewise.
1141         * doc/invoke.texi: Likewise.
1142         * doc/md.texi: Likewise.
1144 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
1146         * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
1147         library if -pthread is specified.
1149 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
1151         * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
1152         for --enable-threads=yes and --enable-threads=posix.
1154 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
1156         * config/sparc/cypress.md: Replace Sparc with SPARC.
1157         * config/sparc/freebsd.h: Likewise.
1158         * config/sparc/gmon-sol2.c: Likewise.
1159         * config/sparc/hypersparc.md: Likewise.
1160         * config/sparc/lb1spc.asm: Likewise.
1161         * config/sparc/lb1spl.asm: Likewise.
1162         * config/sparc/linux.h: Likewise.
1163         * config/sparc/linux64.h: Likewise.
1164         * config/sparc/lynx.h: Likewise.
1165         * config/sparc/sol2.h: Likewise.
1166         * config/sparc/sparc-modes.def: Likewise.
1167         * config/sparc/sparc.c: Likewise.
1168         * config/sparc/sparc.h: Likewise.
1169         * config/sparc/sparc.md: Likewise.
1170         * config/sparc/sparclet.md: Likewise.
1171         * config/sparc/supersparc.md: Likewise.
1172         * config/sparc/sysv4.h: Likewise.
1173         * config/sparc/vxsim.h: Likewise.
1174         * config/sparc/vxsparc64.h: Likewise.
1176 2002-09-14  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1178         * config/avr/avr.c (output.h): Move after inclusion of tree.h.
1180 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1182         * ChangeLog: Follow spelling conventions.
1183         * ChangeLog.0: Likewise.
1184         * ChangeLog.2: Likewise.
1185         * ChangeLog.3: Likewise.
1186         * ChangeLog.4: Likewise.
1187         * ChangeLog.5: Likewise.
1188         * ChangeLog.6: Likewise.
1189         * cppfiles.c: Likewise.
1190         * cppinit.c: Likewise.
1191         * cpplib.h: Likewise.
1192         * cse.c: Likewise.
1193         * debug.h: Likewise.
1194         * df.c: Likewise.
1195         * dominance.c: Likewise.
1196         * hashtable.c: Likewise.
1197         * hashtable.h: Likewise.
1198         * loop.c: Likewise.
1199         * config/arm/README-interworking: Likewise.
1200         * config/arm/arm.c: Likewise.
1201         * config/arm/arm.h: Likewise.
1202         * config/arm/arm.md: Likewise.
1203         * config/dsp16xx/dsp16xx.h: Likewise.
1204         * config/frv/frv.c: Likewise.
1205         * config/frv/frv.h: Likewise.
1206         * config/ip2k/ip2k.h: Likewise.
1207         * config/rs6000/rs6000.c: Likewise.
1208         * config/stormy16/stormy-abi: Likewise.
1209         * config/stormy16/stormy16.h: Likewise.
1210         * config/v850/v850.c: Likewise.
1212 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1214         * loop.c: Fix a comment typo.
1216 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1218         * config/fr30/fr30.h: Fix comment typos.
1219         * config/frv/frv.c: Likewise.
1220         * config/i386/xmmintrin.h: Likewise.
1221         * config/mips/mips.c: Likewise.
1222         * config/sh/sh.c: Likewise.
1224 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1226         * haifa-sched.c: Follow spelling conventions.
1227         * regclass.c: Likewise.
1228         * regrename.c: Likewise.
1229         * config/fp-bit.c: Likewise.
1230         * config/frv/frv.h: Likewise.
1231         * config/m88k/m88k.c: Likewise.
1232         * config/mcore/mcore.c: Likewise.
1233         * config/rs6000/darwin.h: Likewise.
1234         * config/rs6000/gnu.h: Likewise.
1235         * config/rs6000/linux.h: Likewise.
1236         * config/rs6000/linux64.h: Likewise.
1237         * config/rs6000/rs6000.c: Likewise.
1238         * config/rs6000/rs6000.h: Likewise.
1239         * config/sh/sh.c: Likewise.
1240         * config/sparc/sparc.c: Likewise.
1241         * config/sparc/ultra1_2.md: Likewise.
1243 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
1245         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
1246         memory operand when source is 0 (K constraint).
1247         ("movsi_internal"): Likewise.
1248         ("movdf_internal"): Likewise.
1249         ("movsf_internal"): Likewise.
1251 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
1253         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
1254         targetm.binds_local_p to set SYMBOL_REF_FLAG.
1255         (rs6000_xcoff_encode_section_info): Likewise.
1256         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1258 2002-09-10  Theodore A. Roth  <troth@verinet.com>
1260         * gcc/config/avr/avr.h: Set default options for C++ for avr.
1262 2002-09-13  Richard Henderson  <rth@redhat.com>
1264         * Makefile.in (toplev.o): Depend on real.h.
1265         (print-rtl.o, varasm.o, ifcvt.o): Likewise.
1267 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
1269         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
1270         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
1271         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
1273 2002-09-13  Nathan Sidwell  <nathan@codesourcery.com>
1275         * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
1277 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
1279         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
1280         ia64*-*-linux*): Set extra_parts.
1281         * config/ia64/t-aix (EXTRA_PARTS): Remove.
1282         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
1284 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
1286         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
1287         * config/h8300/h8300.c: Likewise.
1288         * config/h8300/h8300.h: Likewise.
1289         * config/h8300/h8300.md: Likewise.
1290         * doc/invoke.texi: Likewise.
1292 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
1294         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
1296 2002-09-13  Matt Austern  <austern@apple.com>
1298         * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
1299         * cp/call.c: Change call-by-const-reference mechanism to use
1300         non_cast_lvalue_p when deciding whether the create a temporary.
1301         We need a temporary when passing, e.g. (long) x by const ref.
1302         * testsuite/g++.dg/other/constref[12].C: New, regression tests for
1303         passing a cast expression to a function by const reference.
1305 2002-09-13  Richard Henderson  <rth@redhat.com>
1307         * config/alpha/alpha.md (attr type): Add callpal.
1308         (imb, trap, load_tp, set_tp): Use it.
1309         * config/alpha/ev4.md (ev4_callpal): New.
1310         * config/alpha/ev5.md (ev5_callpal): New.
1311         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
1312         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
1313         (alphaev5_insn_pipe): Likewise.
1315 2002-09-13  Andreas Jaeger  <aj@suse.de>
1317         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
1319 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
1321         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
1322         LIB2ADDEH): New, set to NULL.
1323         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
1325 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
1327         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
1328         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
1329         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
1330         Add declarations.
1331         (_U_Qfneg): Remove.
1333 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
1335         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
1336         for H8/300, H8S aa:8 mode.
1337         (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
1338         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
1339         for H8/300 aa:8 mode.
1341 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
1343         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
1344         insns.
1346 2002-09-12  Richard Henderson  <rth@redhat.com>
1348         * Makefile.in (HOST_PRINT): Use print-rtl1.o
1349         (print-rtl.o): Don't define GENERATOR_FILE.
1350         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
1351         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
1352         unless GENERATOR_FILE.
1354 2002-09-12  Stan Shebs  <shebs@apple.com>
1356         * config/darwin.h (USER_LABEL_PREFIX): Define here...
1357         * config/i386/darwin.h: ... instead of here.
1359         * target.h (struct gcc_target): New field
1360         terminate_dw2_eh_frame_info.
1361         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
1362         (TARGET_INITIALIZER): Add it.
1363         * dwarf2out.c (output_call_frame_info): Use target hook.
1364         * dwarf2asm.c (dw2_asm_output_delta): Use macro
1365         ASM_OUTPUT_DWARF_DELTA if defined.
1366         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
1367         (ASM_OUTPUT_DWARF_DELTA): Ditto.
1368         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
1369         (ASM_OUTPUT_DWARF_PCREL): Ditto.
1370         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
1371         (powerpc-*-darwin*): Ditto.
1372         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
1373         to work correctly for Darwin.
1374         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
1375         (STARTFILE_SPEC): Add crtbegin.o.
1376         (ENDFILE_SPEC): Define.
1377         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
1378         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
1379         (ASM_OUTPUT_DWARF_DELTA): Define.
1380         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
1381         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
1383 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
1385         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
1386         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
1387         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
1389 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
1391         * toplev.c: Move default definition of USER_LABEL_PREFIX...
1392         * defaults.h: ... here.
1394 2002-09-12  Richard Henderson  <rth@redhat.com>
1396         * vax.c: Include tree.h earlier.
1398 2002-09-12  Stan Shebs  <shebs@apple.com>
1400         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
1401         (machopic_operand_p): Ditto.
1403 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1405         * config/arm/arm.c (arm_compute_initial_elimination_offset):
1406         Fix a comment typo.
1408 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1410         * toplev.c (do_abort): Fix a comment typo.
1412 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1414         * cselib.c: Fix comment formatting.
1415         * gengtype.c: Likewise.
1417 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1419         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
1420         (udivmodhi4): Likewise.
1422 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
1423             Roger Sayle  <roger@eyesopen.com>
1425         * i386.c (any_fp_register_operand, fp_register_operand,
1426         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
1427         New predicate functions.
1428         * i386-protos.h:  Add their prototypes.
1429         * i386.h: Add them to PREDICATE_CODES.
1430         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
1431         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
1432         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
1433         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
1434         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
1435         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
1436         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
1437         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
1438         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
1439         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
1440         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
1441         Use these new predicates to simplify and correct the use of
1442         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
1444 2002-09-12  Jason Merrill  <jason@redhat.com>
1446         * diagnostic.c (output_add_identifier): New fn.
1447         * diagnostic.h: Declare it.
1449         * calls.c (store_one_arg): Use size_in_bytes to determine the
1450         amount of space to push.
1452 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
1454         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
1456 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
1458         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
1459         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
1460         (s390_select_ccmode): Likewise.
1461         (s390_branch_condition_mask): Likewise.
1462         (optimization_options): Do not set flag_branch_on_count.
1463         (s390_split_branches): Handle doloop branches.
1464         (s390_chunkify_pool): Likewise.
1465         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
1466         ("doloop_end"): New expander.
1467         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
1468         associated splitters): New.
1470 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
1472         * fold-const.c (make_range): Only narrow to signed range if
1473         the signed range is smaller than the unsigned range.
1475 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
1477         * emit-rtl.c (set_mem_size): New function.
1478         * expr.h (set_mem_size): Declare.
1479         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
1480         (expand_block_move): Instead, use adjust_address and
1481         replace_equiv_address to generate proper aliasing info.
1482         Move common code out of conditionals.  Localize vars.
1484 2002-09-09  Eric Botcazou  ebotcazou@libertysurf.fr
1486         * optabs.c (expand_binop): Minor cleanup.
1487         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
1489 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
1491         * print-tree.c (print_node): Print the restrict qualifier.
1493 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
1495         * doc/install.texi: Fix typos.
1497 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
1499         * Makefile.in: Remove all references to s-under and underscore.c.
1500         * collect2.c, tlink.c: Change all uses of prepends_underscore
1501         to look directly at USER_LABEL_PREFIX.
1503 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
1505         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
1506         alignment to csect.
1507         (rs6000_xcoff_unique_section): Only set section name for public
1508         data.
1509         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
1510         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
1511         duplicate definition.
1513 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1515         * pa.md (extzv): Check predicates before emitting extzv_32.
1516         (insv): Likewise.
1518 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1520         * config/s390/s390.h (MOVE_MAX): Define to correct value.
1521         (MAX_MOVE_MAX): Define.
1522         (MOVE_BY_PIECES_P): Define.
1523         (CLEAR_BY_PIECES_P): Define.
1525 2002-09-10  Denis Chertykov  <denisc@overta.ru>
1527         * config/avr/avr.md (movstrhi): Use right operands for conversion.
1529 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
1531         PR c/7873
1532         * arm.md (insv): Use reg_or_int_operand for operand[3].
1534 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
1536         * rs6000.c (rs6000_assemble_visibility): Protect declaration
1537         inside macro.  Correct function definition typo.
1538         (rs6000_xcoff_section_type_flags): New function.
1539         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
1540         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
1541         with appropriate PIC test.
1542         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
1543         determine readonly.
1544         (rs6000_binds_local_p): Combine PIC flags.
1545         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
1546         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
1548 2002-09-09  Per Bothner  <per@bothner.com>
1550         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
1551         characters, and only print TREE_STRING_LENGTH chars.
1553 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
1555         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
1556         (ASM_FILE_END) New.
1557         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
1558         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
1559         * config/ia64/ia64.c (ia64_asm_output_external): Create list
1560         of external functions if TARGET_HPUX_LD is true.
1561         (ia64_hpux_add_extern_decl): New, routine to put names on
1562         list of external functions.
1563         (ia64_hpux_asm_file_end): Put out declarations for external
1564         functions if and only if they are used.
1566 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1568         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
1569         on TARGET_64BIT before pic register restore.
1571 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
1573         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
1574         (TARGET_HAVE_TLS): New description.
1576 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
1578         * doc/extend.texi (Statement Exprs): Fix broken link.
1580 2002-09-09  Denis Chertykov  <denisc@overta.ru>
1582         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
1583         right conversion of operands[1].
1585 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1587         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
1588         commutative.  Use "nonimmediate_operand" instead of "register_operand"
1589         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
1591         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
1592         as commutative.
1594         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
1595         mark as commutative.  Use "nonimmediate_operand" instead of
1596         "register_operand" as predicate for operand 1.
1598         ("movstrictsi"): Fix typo in insn name.
1600 2002-09-09  Jan Hubicka  <jh@suse.cz>
1602         * i386.c (index_register_operand): New.
1603         * i386.h (predicate_codes): Add new predicate.
1604         * i386.md (lea_general_*): Use index_regsiter_operand
1605         (ashift to lea splitter): Do not produce invalid leas
1606         (ashift to mov+ashift split): New.
1608 2002-09-09  Nick Clifton  <nickc@redhat.com>
1610         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
1611         Fix folding marks.
1613 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1614             J"orn Rennecke <joern.rennecke@superh.com>
1616         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
1618 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
1620         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
1621         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
1622         attributes.
1624 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1626         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
1628 2002-09-08  Richard Henderson  <rth@redhat.com>
1630         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
1631         (DW_OP_GNU_push_tls_address): New.
1632         (DW_OP_lo_user): Fix.
1633         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
1634         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
1635         (size_of_loc_descr): Likewise.
1636         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
1637         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
1638         (loc_descriptor_from_tree): Handle TLS variables.
1639         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
1640         (add_location_or_const_value_attribute): ... not here.  Defer
1641         to loc_descriptor_from_tree for TLS variables.
1643         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
1644         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
1645         * config/i386/i386-protos.h: Update.
1647 2002-09-08  Roger Sayle  <roger@eyesopen.com>
1649         PR optimization/6405
1650         * unroll.c (loop_iterations): last_loop_insn should be the previous
1651         non-note instruction before loop->end.
1652         * loop.c (strength_reduce): The conditional jump is the last
1653         non-note instruction before loop->end (as above).
1655 2002-09-08  Roger Sayle  <roger@eyesopen.com>
1657         * combine.c (try_combine): Handle the case that undobuf.other_insn
1658         has been turned into a return or unconditional jump, by inserting
1659         a BARRIER if necessary.
1660         (simplify_set):  Test if a condition code setter has a constant
1661         comparison at compile time, if so convert this insn to a no-op move
1662         and update/simplify the condition code user (undobuf.other_insn).
1664 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
1666         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
1667         (CLEAR_INSN_CACHE): Define.
1669 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
1671         * basic-block.h: Fix comment formatting.
1672         * c-common.c: Likewise.
1673         * c-common.h: Likewise.
1674         * c-lex.c: Likewise.
1675         * c-pretty-print.c: Likewise.
1676         * cfglayout.c: Likewise.
1677         * cfgloop.c: Likewise.
1678         * defaults.h: Likewise.
1679         * et-forest.c: Likewise.
1680         * explow.c: Likewise.
1681         * function.h: Likewise.
1682         * gcov.c: Likewise.
1683         * genattrtab.c: Likewise.
1684         * gengtype.c: Likewise.
1685         * ifcvt.c: Likewise.
1686         * libgcc2.c: Likewise.
1687         * loop.c: Likewise.
1688         * profile.c: Likewise.
1689         * ra-build.c: Likewise.
1690         * real.c: Likewise.
1691         * rtl.h: Likewise.
1692         * tracer.c: Likewise.
1693         * tree-inline.c: Likewise.
1694         * varasm.c: Likewise.
1696 2002-09-08  Jan Hubicka  <jh@suse.cz>
1698         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
1699         handling.
1701         * loop.c (loop_gics_reduce):  Emit addition after.
1703 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
1705         * varasm.c (default_assemble_visibility): Rename from
1706         assemble_visibility.
1707         * output.h: Here too.
1708         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
1709         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
1711 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
1713         * reload.c (find_reloads <p constraint>): Pass operand_mode to
1714         find_reloads_address.
1716 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
1718         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
1719         (anonymous pattern): Likewise.
1721 2002-09-07  Scott Snyder  <snyder@fnal.gov>
1723         PR target/7374
1724         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
1726 2002-09-07  Roger Sayle  <roger@eyesopen.com>
1728         * basic-block.h (struct loop): Remove unused cont_dominator field.
1730 2002-09-07  Igor Shevlyakov <igor@microunity.com>
1732         * varasm.c (decode_rtx_const): Don't check undefined field for
1733         CONST_VECTOR.
1735 2002-09-07  Glen Nakamura  <glen@imodulo.com>
1737         PR opt/7814
1738         * sched-deps.c (sched_analyze_insn): Make sure to add insn
1739         to reg_last->sets after flushing the dependency lists to guarantee
1740         that subsequent clobbers will be dependent on it.
1742 2002-09-07  Igor Shevlyakov <igor@microunity.com>
1744         * combine.c (simplify_shift_const): Calculate rotate count
1745         correctly for vector operands.
1747 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
1749         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
1750         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
1751         tree_expr_nonnegative_p.
1752         (build_conditional_expr): Likewise.
1753         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
1755 2002-09-07  Richard Henderson  <rth@redhat.com>
1757         * builtins.def (inf, inff, infl): Mark const.
1758         (huge_val, huge_valf, huge_vall): Likewise.
1759         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
1761         * real.c (ereal_inf): Clear E before use.
1763 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
1765         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
1766         an expander and an anonymous pattern.  Zero out the upper half
1767         of the dividend in the expander.
1768         (udivmodqi4): Likewise.
1770 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
1772         * config/h8300/h8300.c: Fix formatting.
1773         * config/h8300/h8300.h: Likewise.
1774         * config/h8300/h8300.md: Likewise.
1776 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1778         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
1779         information.
1781 2002-09-07  Graham Stott  <graham.stott@btinternet.con>
1783        * rtlanal.c (dead_or_set_regno_p): Fix typo.
1785 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
1787         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1789         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
1790         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
1791         (TARGET_ASM_OUT): Add the above here.
1792         * target.h (struct gcc_target): Add "visibility" field.
1793         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
1794         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
1795         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
1796         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
1798 2002-09-06  Ziemowit Laski <zlaski@apple.com>
1800         * c-lang.c (objc_is_id): New stub.
1801         * c-tree.h (objc_is_id): New forward declaration.
1802         * c-typeck.c (build_c_cast): Do not strip protocol
1803         qualifiers from 'id' type.
1804         * objc/objc-act.c (objc_comptypes): Correct handling
1805         of protocol qualifiers.
1806         (objc_is_id): New.
1808 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
1810         * pentium.md (pentium-firstvboth): Fix typo.
1812 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
1814         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
1815         (enum shift_type, enum h8_cpu): Likewise.
1816         (INL, ROT, LOP, SPC macros): Likewise.
1817         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
1818         const designator.
1819         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
1820         space efficient algorithms when optimize for codesize.
1822 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1824         Fix PR/1727 and long-standing failing testcase
1825         objc/formal-protocol-6.m.
1826         * objc-act.c (build_protocol_expr): If compiling for the GNU
1827         runtime, create a list of Protocol statically allocated instances
1828         if it doesn't exist, then add the Protocol object to this same
1829         list.
1830         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
1831         instead of TREE_CHAIN.
1833 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1835         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
1836         10k.  Fixed category dumping - print out category names with the
1837         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
1838         interface.
1839         (finish_objc): Fixed the -gen-decls option.  It was printing out
1840         only the last class.  Dump an interface declaration of all classes
1841         being compiled instead.
1843 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
1845         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
1846         prototype.
1847         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
1848         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
1849         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
1850         rather than GEN_INT.
1851         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
1852         (return_addr_mask, *check_arch2): New.
1854 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
1856         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
1857         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
1858         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
1859         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
1860         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
1861         "adddf3", "*adddf3", "*adddf3_ibm",
1862         "addsf3", "*addsf3", "*addsf3_ibm",
1863         "muldi3", "mulsi3", "mulsidi3",
1864         "muldf3", "*muldf3", "*muldf3_ibm",
1865         "mulsf3", "*mulsf3", "*mulsf3_ibm",
1866         "*anddi3_cc", "*anddi3_cconly", "anddi3",
1867         "*andsi3_cc", "*andsi3_cconly", "andsi3",
1868         "*iordi3_cc", "*iordi3_cconly", "iordi3",
1869         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
1870         "*xordi3_cc", "*xordi3_cconly", "xordi3",
1871         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
1872         instead of "register_operand" as predicate for "%0" operand.
1874 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
1876         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
1877         unconditionally when gcc_cv_as_flags64 checks are gone.
1878         * configure: Rebuilt.
1880 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
1882         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
1883         2002-07-26 change.  Comment.
1885 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1887         * frv.c (frv_unique_section, frv_select_section,
1888         frv_select_rtx_section): Delete.
1889         (frv_in_small_data_p): New.
1890         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
1891         TARGET_ASM_SELECT_RTX_SECTION): Delete.
1892         (TARGET_IN_SMALL_DATA_P): Define.
1894 2002-09-05  Dale Johannesen  <dalej@apple.com>
1896         * reload1.c (reload):  Retain only those memory clobbers
1897         added for variable-array handling.
1899 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
1901         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
1902         return-in-memory rules.
1903         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
1905 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
1907         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
1908         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
1910 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
1912         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
1913         not a compile-time constant for the non-IBM case.
1914         * config/arm/arm-protos.h (arm_float_words_big_endian): New
1915         prototype.
1916         * config/arm/arm.c (arm_float_words_big_endian): New function.
1917         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
1918         if TARGET_VFP  and not TARGET_HARD_FLOAT.
1919         (ARM_FLAG_VFP, TARGET_VFP): Define.
1920         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
1922 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
1924         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
1925         URLs.  Fix AIX wording.
1927 2002-09-05  Stan Shebs  <shebs@apple.com>
1929         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
1930         -fPIC equivalent on Darwin.
1932 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
1934         * sh.c (sh_expand_builtin): Return early if encountering an
1935         error_mark for a type.
1937 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1939         * config/s390/s390.c (s390_expand_plus_operand): Do not require
1940         double-word scratch register.
1941         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
1943         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
1944         "*cli"): Replace s_operand by memory_operand.
1945         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
1947 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
1949         * config/h8300/h8300.c (asm_file_start): Add a missing
1950         semicolon.
1952 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
1954         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
1955         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
1956         (ix86_output_addr_diff_elt) Likewise.
1957         (x86_output_mi_thunk) Likewise.
1958         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
1960 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1962         * frv.c (frv_encode_section_info): Fix error in last change.
1964 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
1966         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
1967         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
1968         (TARGET_BINDS_LOCAL_P): Define.
1969         (rs6000_override_options): Save original flag_pic value.
1970         (rs6000_elf_select_section): Call default_elf_select_section_1.
1971         (rs6000_elf_unique_section): Call default_unique_section_1.
1972         (rs6000_elf_in_small_data_p): New function.
1973         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
1974         (rs6000_xcoff_select_section): Update based on defaults.
1975         (rs6000_xcoff_unique_section): Set to basic name if not common.
1976         (rs6000_binds_local_p): New function.
1977         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
1978         targetm.have_srodata_section if SDATA_EABI.
1979         (TARGET_IN_SMALL_DATA_P): Define.
1981 2002-09-04  Dale Johannesen  <dalej@apple.com>
1983         * varasm.c (struct rtx_const, decode_rtx_const):
1984         Make veclo and vechi fields not share storage.
1986 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
1988         * loop.c (scan_loop): Don't mark separate insns out of a libcall
1989         for moving.
1990         (move_movables): Abort if we see the first insn of a libcall.
1992 2002-09-04  Richard Henderson  <rth@redhat.com>
1994         * builtin-types.def (BT_FN_FLOAT): New.
1995         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
1996         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
1997         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
1998         * builtins.c (fold_builtin_inf): New.
1999         (fold_builtin): Call it.
2000         * real.c (ereal_inf): New.
2001         * real.h: Declare it.
2002         * doc/extend.texi: Document new builtins.
2004 2002-09-04  Richard Henderson  <rth@redhat.com>
2006         * cse.c (cse_insn): Avoid subreg games if the equivalence
2007         is already in the proper mode.
2009 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
2011         PR c/7102
2012         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
2014 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2016         * pa.md (setccfp0, setccfp1): New patterns.
2018 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2020         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
2021         frv_select_section, frv_select_rtx_section,
2022         frv_encode_section_info, frv_unique_section): Delete.
2023         * frv.c: Update for target hooks.
2024         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
2025         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
2026         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
2028 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2030         * ip2k-protos.h (function_prologue, function_epilogue,
2031         encode_section_info): Update to match target hook specification.
2032         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
2033         (function_prologue, function_epilogue, encode_section_info):
2034         Update to match target hook specification.
2035         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
2036         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
2037         (NOTICE_UPDATE_CC): Cast to void.
2038         * ip2k.md: Add defaults in switch statements.
2040 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
2042         * doc/trouble.texi (Interoperation): Update information about C++ ABI
2043         issues.
2045 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
2047         * config/sparc/t-netbsd64: Disable multilib for now.
2049 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
2051         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
2052         * target.h (gcc_target): Add have_srodata_section member.
2053         * varasm.c (section_category): Add SECCAT_SRODATA.
2054         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
2055         READONLY_SDATA_SECTION defined.
2056         (decl_readonly_section_1): True for SECCAT_SRODATA also.
2057         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
2058         (default_unique_section_1): Likewise.
2060 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2062         * expr.c (emit_group_load): Revise to allow splitting TCmode source
2063         into DImode pieces.
2065         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
2066         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
2067         for floating-point register class.
2068         * pa.c (function_arg): Fix handling of modes wider than one word for
2069         TARGET_64BIT.
2071 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
2073         * combine.c (make_compound_operation): Don't generate zero / sign
2074         extensions in floating point modes.
2076 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
2078         * doc/c-tree.texi: Fix overfull hboxes.
2079         * doc/cppopts.texi: Ditto.
2080         * doc/extend.texi: Ditto.
2081         * doc/gty.texi: Ditto.
2082         * doc/invoke.texi: Ditto.
2083         * doc/makefile.texi: Ditto.
2084         * doc/rtl.texi: Ditto.
2085         * doc/standards.texi: Ditto.
2086         * doc/tm.texi: Ditto.
2088 2002-09-04  Richard Henderson  <rth@redhat.com>
2090         * c-common.c (builtin_define_with_hex_fp_value): New.
2091         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
2093 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
2095         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
2096         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
2097         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
2098         Warn that these options can break ABI compatibility.
2100 2002-09-04  Richard Henderson  <rth@redhat.com>
2102         * real.c (ereal_to_decimal): Add digits parameter.
2103         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
2104         * c-pretty-print.c (pp_c_real_literal): Update call.
2105         * print-rtl.c (print_rtx): Likewise.
2106         * print-tree.c (print_node_brief, print_node): Likewise.
2107         * sched-vis.c (print_value): Likewise.
2108         * config/arc/arc.c (arc_print_operand): Likewise.
2109         * config/c4x/c4x.c (c4x_print_operand): Likewise.
2110         * config/i370/i370.h (PRINT_OPERAND): Likewise.
2111         * config/i386/i386.c (print_operand): Likewise.
2112         * config/i960/i960.c (i960_print_operand): Likewise.
2113         * config/ip2k/ip2k.c (asm_output_float): Likewise.
2114         * config/m32r/m32r.c (m32r_print_operand): Likewise.
2115         * config/m68hc11/m68hc11.c (print_operand): Likewise.
2116         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
2117         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
2118         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
2119         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
2120         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
2121         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2122         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
2123         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2124         * config/mips/mips.c (print_operand): Likewise.
2125         * config/ns32k/ns32k.c (print_operand): Likewise.
2126         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
2127         * config/vax/vax.h (PRINT_OPERAND): Likewise.
2128         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
2130 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
2132         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
2133         xtensa_multibss_section_type_flags.
2134         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
2136 2002-09-04  Richard Henderson  <rth@redhat.com>
2138         * doc/install-old.texi: Don't mention enquire.
2139         * doc/sourcebuild.texi: Update float.h description.
2141 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
2143         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
2145 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
2147         * varasm.c (default_section_type_flags): Append _1 to name with
2148         shlib parameter.  Use original name to call new function with
2149         implicit flag_pic.
2150         (decl_readonly_section): Likewise.
2151         (default_elf_select_section): Likewise.
2152         (default_unique_section): Likewise.
2153         (default_bind_local_p): Likewise.
2154         (categorize_decl_for_section): Add shlib parameter to use in place
2155         of implicit flag_pic.
2156         * output.h: Declare new functions with _1 and shlib argument.
2158 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
2160         * doc/install.texi: Fix typos, formatting problems, and obvious
2161         overfull/underfull boxes.
2163         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
2164         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
2165         include its file, compat.texi.
2166         * doc/compat.texi: New file with new chapter, Binary Compatibility.
2168 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
2170         Debian BTS Bug #157416
2171         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
2172         * cpplib.c (destringize_and_run): Kludge around getting
2173         tokens from in-progress macros.
2174         (_cpp_do__Pragma): Simplify.
2176 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
2178         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
2179         (CPP_CPU_SPEC): Remove.
2180         (TARGET_CPU_CPP_BUILTINS): New.
2181         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
2182         (CPP_SPEC): Remove.
2183         (TARGET_OS_CPP_BUILTINS): New.
2184         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
2185         (TARGET_OS_CPP_BUILTINS): New.
2186         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
2187         TARGET_OS_CPP_BUILTINS.
2188         (CPP_PREDEFINES): Remove.
2189         (CPLUSPLUS_CPP_SPEC): Remove.
2190         (TARGET_OS_CPP_BUILTINS): New.
2192 2002-09-03  Richard Henderson  <rth@redhat.com>
2194         * Makefile.in (USER_H): Add ginclude/float.h.
2195         (FLOAT_H): Remove.
2196         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
2197         (mostlyclean): Don't remove float.h intermediate files.
2198         (distclean): Don't remove float.h.
2199         * config.gcc: Remove all float_format references.
2200         * configure.in (float_format, float_h_file): Remove.
2202         * c-common.c: Include tree-inline.h.
2203         (builtin_define_with_int_value): New.
2204         (builtin_define_type_precision): Use it.
2205         (builtin_define_float_constants): New.
2206         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
2207         __FLT_EVAL_METHOD__.
2208         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
2209         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
2210         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
2211         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
2212         (TARGET_FLT_EVAL_METHOD): New.
2214         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
2215         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
2216         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
2217         * ginclude/float.h: New.
2219 2002-09-03  Stan Shebs  <shebs@apple.com>
2221         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
2222         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
2223         (PREFERRED_DEBUGGING_TYPE): Ditto.
2224         (ASM_OUTPUT_IDENT): Remove empty definition.
2226 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
2228         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
2229         cxx_target.
2230         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
2231         handling routine for builtin pragma.
2232         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
2233         Registered pragma handling routine.
2234         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
2235         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
2236         If builtin pragma seen for math routine and C89 conformance is
2237         requested use different math function in order to set errno.
2238         * t-ia64 (ia64-c.o): Add new rule for new file.
2240 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
2242         * config/s390/s390.md ("movti"): Add Q->Q alternative.
2243         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
2244         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
2246         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
2247         "*movsf_ss"): Remove.
2249 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2251         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
2252         Delete macros.
2254 2002-09-03   Arati Dikey  <aratid@kpit.com>
2256         * h8300.c (asm_file_start): Corrected optimization comment.
2258 2002-09-03  Stan Shebs  <shebs@apple.com>
2260         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
2261         * c-tree.h (recognize_objc_keyword): Remove decl.
2262         * c-typeck.c (comp_target_types): Update a comment.
2264 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
2266         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
2267         and register validity checks.
2268         (general_s_operand): Adapt to s390_decompose_address interface change.
2269         (q_constraint): Likewise.
2270         (s390_expand_plus_operand): Likewise.
2271         (legitimiate_address_p): Likewise.
2272         (legitimate_la_operand_p): Likewise.
2273         (legitimize_la_operand): Likewise.
2274         (print_operand_address): Likewise.
2275         (print_operand): Likewise.
2277 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2279         PR objc/5956:
2280         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
2281         was causing the new selector never to match the existing ones
2282         (Patch by Alexander Malmberg <alexander@malmberg.org>).
2284 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
2286         * config/i386/i386.md ("femms"): Add "memory" attr "none".
2288 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
2290         * expr.c (expand_expr): Remove extraneous comment and code.
2292 2002-08-31  Richard Henderson  <rth@redhat.com>
2294         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
2296 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2298         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
2300 2002-08-30  Richard Henderson  <rth@redhat.com>
2302         PR opt/7515
2303         * c-objc-common.c: Include target.h.
2304         (c_cannot_inline_tree_fn): Don't auto-inline functions that
2305         don't bind locally.  Factor setting DECL_UNINLINABLE.
2306         * Makefile.in (c-objc-common.o): Update.
2308 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
2310         * doc/install.texi (Configuration, Building): Fix a typo and
2311         some formatting directives.
2313 2002-08-30  Paul Koning <pkoning@equallogic.com>
2315         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
2316         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
2317         implemented" note.
2318         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
2319         for alphabetic order.
2320         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
2321         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
2322         (VAX_HALFWORD_ORDER): Document.
2323         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
2324         IEEE float format.
2325         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
2326         (ASM_OUTPUT_LABEL_REF): Fix font.
2327         (CASE_VECTOR_SHORTEN_MODE): Ditto.
2329 2002-08-30  Denis Chertykov  <denisc@overta.ru>
2331         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
2332         stuff.
2333         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
2334         CONST_DOUBLE constants.
2336 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
2338         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
2339         related defines to...
2340         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
2341         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
2342         as a no-op.
2344 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
2346         * config/arm/arm.c (arm_asm_output_labelref): New function.
2347         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
2348         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
2350 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
2352         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
2353         memory exhausted" workarounds.
2355 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2357         * diagnostic.c (fancy_abort): Don't repeat "internal error".
2358         * toplev.c (crash_signal): Likewise.
2360 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2362         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
2363         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
2364         Extended, updated documentation.
2365         (-Wundeclared-selector): Documented.
2367 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
2369         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
2370         the value 1.  Do not undef before defining.
2371         * config/darwin.h: Likewise.
2372         * config/dbx.h: Likewise.
2373         * config/dbxcoff.h: Likewise.
2374         * config/dbxelf.h: Likewise.
2375         * config/elfos.h: Likewise.
2376         * config/interix.h: Likewise.
2377         * config/lynx-ng.h: Likewise.
2378         * config/lynx.h: Likewise.
2379         * config/netware.h: Likewise.
2380         * config/psos.h: Likewise.
2381         * config/svr3.h: Likewise.
2382         * config/alpha/alpha.h: Likewise.
2383         * config/alpha/elf.h: Likewise.
2384         * config/alpha/vms.h: Likewise.
2385         * config/arc/arc.h: Likewise.
2386         * config/arm/aout.h: Likewise.
2387         * config/arm/coff.h: Likewise.
2388         * config/c4x/c4x.h: Likewise.
2389         * config/h8300/h8300.h: Likewise.
2390         * config/i386/cygwin.h: Likewise.
2391         * config/i386/djgpp.h: Likewise.
2392         * config/i386/gas.h: Likewise.
2393         * config/i386/gstabs.h: Likewise.
2394         * config/i386/i386-coff.h: Likewise.
2395         * config/i386/i386-interix.h: Likewise.
2396         * config/i386/sco5.h: Likewise.
2397         * config/i386/svr3dbx.h: Likewise.
2398         * config/i386/sysv3.h: Likewise.
2399         * config/i386/win32.h: Likewise.
2400         * config/i386/x86-64.h: Likewise.
2401         * config/i960/i960.h: Likewise.
2402         * config/ia64/ia64.h: Likewise.
2403         * config/ip2k/ip2k.h: Likewise.
2404         * config/m32r/m32r.h: Likewise.
2405         * config/m68k/3b1.h: Likewise.
2406         * config/m68k/3b1g.h: Likewise.
2407         * config/m68k/ccur-GAS.h: Likewise.
2408         * config/m68k/coff.h: Likewise.
2409         * config/m68k/hp2bsd.h: Likewise.
2410         * config/m68k/hp310g.h: Likewise.
2411         * config/m68k/hp320g.h: Likewise.
2412         * config/m68k/hp3bsd.h: Likewise.
2413         * config/m68k/hp3bsd44.h: Likewise.
2414         * config/m68k/linux-aout.h: Likewise.
2415         * config/m68k/m68k-aout.h: Likewise.
2416         * config/m68k/mot3300.h: Likewise.
2417         * config/m68k/netbsd.h: Likewise.
2418         * config/m68k/openbsd.h: Likewise.
2419         * config/m68k/pbb.h: Likewise.
2420         * config/m68k/plexus.h: Likewise.
2421         * config/m68k/sun2.h: Likewise.
2422         * config/m68k/sun3.h: Likewise.
2423         * config/m68k/tower-as.h: Likewise.
2424         * config/m68k/vxm68k.h: Likewise.
2425         * config/m88k/aout-dbx.h: Likewise.
2426         * config/m88k/m88k-aout.h: Likewise.
2427         * config/mcore/mcore-elf.h: Likewise.
2428         * config/mcore/mcore-pe.h: Likewise.
2429         * config/mips/elf.h: Likewise.
2430         * config/mips/elf64.h: Likewise.
2431         * config/mips/iris5gas.h: Likewise.
2432         * config/mips/iris6.h: Likewise.
2433         * config/mips/mips.h: Likewise.
2434         * config/mips/sni-gas.h: Likewise.
2435         * config/mmix/mmix.h: Likewise.
2436         * config/ns32k/netbsd.h: Likewise.
2437         * config/pa/pa64-hpux.h: Likewise.
2438         * config/romp/romp.h: Likewise.
2439         * config/rs6000/sysv4.h: Likewise.
2440         * config/rs6000/xcoff.h: Likewise.
2441         * config/sh/coff.h: Likewise.
2442         * config/sh/elf.h: Likewise.
2443         * config/sparc/linux64.h: Likewise.
2444         * config/sparc/liteelf.h: Likewise.
2445         * config/sparc/netbsd.h: Likewise.
2446         * config/sparc/openbsd.h: Likewise.
2447         * config/sparc/pbd.h: Likewise.
2448         * config/sparc/sp64-elf.h: Likewise.
2449         * config/sparc/sp86x-elf.h: Likewise.
2450         * config/sparc/sparc.h: Likewise.
2451         * config/vax/vax.h: Likewise.
2452         * config/vax/vaxv.h: Likewise.
2454 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
2456         * h8300.c (shift_alg_hi): Various tweaks to improve performance
2457         of HImode shifts.
2458         (get_shift_alg): Corresponding changes.
2460 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2462         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
2464 2002-08-29  Richard Henderson  <rth@redhat.com>
2466         * expr.h (enum block_op_methods): New.
2467         (emit_block_move): Update prototype.
2468         * expr.c (block_move_libcall_safe_for_call_parm): New.
2469         (emit_block_move_via_loop): New.
2470         (emit_block_move): Use them.  New argument METHOD.
2471         (emit_push_insn): Always respect the given alignment.
2472         (expand_assignment): Update call to emit_block_move.
2473         (store_expr, store_field, expand_expr): Likewise.
2474         * builtins.c (expand_builtin_apply): Likewise.
2475         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
2476         * function.c (expand_function_end): Likewise.
2477         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
2478         * config/sparc/sparc.c (sparc_va_arg): Likewise.
2479         * calls.c (expand_call, emit_library_call_value_1): Likewise.
2480         (save_fixed_argument_area): Use emit_block_move with
2481         BLOCK_OP_CALL_PARM instead of move_by_pieces.
2482         (restore_fixed_argument_area): Likewise.
2483         (store_one_arg): Fix alignment parameter to emit_push_insn.
2485 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2487         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
2489 2002-08-29  Catherine Moore  <clm@redhat.com>
2491         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
2492         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
2493         (PREDICATE_CODES): Include new predicates.
2494         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
2495         (TARGET_SWITCHES):  Add strict-align.
2496         (TARGET_STRICT_ALIGN): New.
2497         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
2498         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2499         Define.
2500         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
2501         v850_muldi3.
2502         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
2503         L_callt_save_r2_r31, L_return_r2_r31,
2504         L_save_all_interrupt): Change addi to add.
2505         (L_save_interrupt, L_return_interrupt): Rework.
2506         (__return_r31):  Correct .size directive.
2507         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
2508         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
2509         New routines.
2510         * config/v850/v850.c (expand_prologue): Call
2511         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
2512         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
2513         (reg_or_int9_operand): New predicate.
2514         (reg_or_const_operand): New routine.
2515         * config/v850/v850.md (return_interrupt): Changed from
2516         restore_interrupt.
2517         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
2518         (callt_save_interrupt): Change save sequence.
2519         (callt_return_interrupt): New.
2520         (save_interrupt): Don't use runtime function for LONG_CALLS
2521         and TARGET_PROLOG_FUNCTION.
2522         (save_all_interrupt): Likewise.
2523         (mulsi3): Use new predicate.
2524         (moviscc): Disallow some combination of constants.
2525         Fix define_split for sasf insns, so that it will not generate bad
2526         code if operand0 and operand5 are the same.
2527         * config/v850/v850-protos.h: Prototype new predicates.
2529 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2531         * c-common.c (builtin_define_type_precision): New function.
2532         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
2533         wchar_t is unsigned in C++.
2534         * doc/cpp.texi (Common Predefined Macros): Document
2535         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
2536         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
2537         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
2539 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
2541         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
2542         section.  Mention that it is enabled by -Wall.
2543         (-Wall): Mention that there can be language-specific warnings as well.
2544         (-Wctor-dtor-privacy): Mention that it is enabled by default.
2545         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
2547 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
2549         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
2550         if it is ever live.
2552         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
2553         attribute for SHCOMPACT.
2555         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
2556         appropriately.
2557         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
2558         by the ABI.
2560         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
2562 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
2564         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
2565         "MASK_GAS|MASK_ABICALLS".
2566         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
2567         (TARGET_DEFAULT): Remove.
2568         (MACHINE_TYPE): Undefine before defining.
2569         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
2571 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
2573         * c-common.c (warn_abi): New variable.
2574         * c-common.h (warn_abi): Likewise.
2575         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
2576         (c_common_decode_option): Handle it.
2577         * doc/invoke.texi: Document -Wabi.
2579 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2581         * c-common.c (warn_undeclared_selector): New variable.
2582         * c-common.h (warn_undeclared_selector): Idem.
2583         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
2584         to on when -Wundeclared-selector is found.
2585         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
2586         * objc/objc-act.c (build_selector_expr): If
2587         warn_undeclared_selector is set, check that the selector has
2588         already been defined, and emit a warning if not.
2590 2002-08-27  Nick Clifton  <nickc@redhat.com>
2591             Catherine Moore  <clm@redhat.com>
2592             Jim Wilson  <wilson@cygnus.com>
2594         * config.gcc: Add v850e-*-* target.
2595         Add --with-cpu= support for v850.
2596         * config/v850/lib1funcs.asm: Add v850e callt functions.
2597         * config/v850/v850.h: Add support for v850e target.
2598         * config/v850/v850.c: Add functions to support v850e target.
2599         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
2600         * config/v850/v850.md: Add patterns for v850e instructions.
2601         * doc/invoke.texi: Document new v850e command line switches.
2603 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
2604                           Aldy Hernandez <aldyh at redhat dot com>
2606         * doc/tm.texi: Applied numerous fixes to the automaton based
2607         scheduler descrition.
2609 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
2611         * i386.c (classify_argument): Handle variable sized objects.
2613 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
2615         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
2617 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
2619         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
2621 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
2623         * i386.c (classify_argument): Properly compute word size of the analyzed object.
2625 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
2627         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
2628         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
2629         accordingly.
2630         (attribute insn_class): Provide default definitions based on type.
2631         Remove all insn-specific settings.
2632         (various function units): Remove old SH4 scheduling.
2633         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
2634         New attributes.  Set them where appropriate.
2635         (cpu unit FS): Don't define / use.
2636         (F3, load_store): New cpu units.
2637         (F01): New reservation.
2638         (all insn_reservations): Make dependent on sh4 pipeline model.
2639         Fix latencies.
2640         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
2641         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
2642         (mt insn_reservation): Use type mt_group.
2643         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
2644         sh4_fload and sh4_store.
2645         (insn_reservation branch_zero and branch): Replace with sh4_branch.
2646         (insn_reservation branch_far): Replace with sh4_return.
2647         (insn_reservation return_from_exp): Rename to:
2648         (sh4_return_from_exp).  Change to be just d_lock*5.
2649         (insn_reservation lds_to_pr): Rename to:
2650         (sh4_lds_to_pr).  Change to be just d_lock*2.
2651         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
2652         d_lock*2.
2653         (insn_reservation prload_mem): Rename to:
2654         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
2655         (insn_reservation fpscr_store): Rename to:
2656         (fpscr_load).  Change to d_lock,nothing,F1*3.
2657         (insn_reservation fpscr_store_mem): Rename to:
2658         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
2659         (insn_reservation multi): Change to
2660         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
2661         (insn_reservation fp_arith): Change to issue,F01,F2.
2662         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
2663         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
2664         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
2665         (insn_reservation fp_double_cmp): Change to
2666         d_lock,(d_lock+F01),F1+F2,F2.
2667         (insn_reservation dp_div): Change to
2668         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
2669         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
2670         (sh_adjust_cost, SHcompact): Differentiate between different
2671         kinds of dependencies.  Drop factor of ten for superscalar.
2672         Use new instruction types.  Add new exception rules.
2674         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
2676         * sh.md (mperm_w): Add DONE.
2678 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
2680         * longlong.h: Import current PowerPC defintion from GMP-4.1.
2682         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
2684         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
2686 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2688         * sh.h (MAX_FIXED_MODE_SIZE): Define.
2690 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
2692         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
2693         delimiter.
2695 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2697         * c-common.c (cpp_define_data_format): New function.
2698         (cb_register_builtins): Call it.
2700         * doc/cpp.texi (Common Predefined Macros): Document
2701         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
2702         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
2703         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
2704         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
2705         __TARGET_USES_VAX_H_FLOAT__.
2707 2002-08-26  Ziemowit Laski <zlaski@apple.com>
2709         * objc/objc-act.c (get_super_receiver): If inside a class method
2710         of a category, cast the receiver to 'id' before accessing the 'isa'
2711         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
2713 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2715         * config/s390/s390-protos.h (s390_function_prologue,
2716         s390_function_epilogue): Remove.
2717         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
2718         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2720         config/s390/s390.c (s390_machine_dependent_recorg): New function.
2721         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
2722         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
2723         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
2724         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
2726         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
2727         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
2728         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
2729         function is not a leaf function.  Use save_gprs and restore_gprs.
2730         (s390_emit_epilogue): Likewise.
2731         (save_gprs, restore_gprs): New functions.
2732         (struct s390_frame): Remove return_reg_saved_p member.
2733         (save_fprs_p): Remove.
2734         (s390_optimize_prolog): New function.
2735         (s390_legitimate_reload_constant): Remove now unnecessary check.
2737         (s390_function_count): Remove.
2738         (s390_output_symbolic_const): Replace s390_function_count by
2739         current_function_funcdef_no.
2740         (s390_output_constant_pool): Likewise.
2742         (legitimize_pic_address): Use regs_ever_live to track PIC register
2743         instead of current_function_uses_pic_offset_table.
2744         (s390_emit_prologue): Likewise.
2745         config/s390/s390.md ("call", "call_value"): Likewise.
2747 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
2749         * c-opts.c (find_opt): Don't complain about wrong languages
2750         here.  Return exact matches even for wrong language.
2751         (c_common_decode_option): Complain about wrong languages
2752         here.
2754 2002-08-24  Stuart Hastings  <stuart@apple.com>
2756         * function.h (struct function): Add flag
2757         all_throwers_are_sibcalls.
2758         * except.c (set_nothrow_function_flags): Replaces
2759         nothrow_function_p. Set new flag.
2760         * except.h (set_nothrow_function_flags): Replaces
2761         nothrow_function_p.
2762         * dwarf2out.c (struct dw_fde_struct): Add flag
2763         all_throwers_are_sibcalls.
2764         (output_call_frame_info): Test it.
2765         (dwarf2out_begin_prologue) Propagate it from cfun to
2766         dw_fde_struct.
2767         * toplev.c (rest_of_compilation): Update calls to
2768         nothrow_function_p.
2770 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
2772         * ggc-page.c (compute_inverse): Short circuit calculation for
2773         object sizes larger than half a page.
2775 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
2777         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
2778         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
2779         default.
2780         (rs6000_elf_unique_section): Likewise.
2782 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2784         * ns32k.c (ns32k_globalize_label): Delete.
2785         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
2787 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
2789         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
2790         for loading delta with num_insns_constant_wide.  Calculate
2791         delta_low, delta_high without using a conditional.
2793 2002-08-22  Jason Merrill  <jason@redhat.com>
2795         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
2796         * c-common.def: Adjust.
2797         * c-dump.c (c_dump_tree): Adjust.
2798         * c-semantics.c (genrtl_return_stmt): Adjust.
2799         * c-pretty-print.c (pp_c_statement): Adjust.
2800         * tree-inline.c (copy_body_r): Adjust.
2802 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
2804         * ggc-page.c: Avoid division in ggc_set_mark.
2805         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
2806         compute_inverse): New.
2807         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
2808         (init_ggc): Initialize inverse_table.
2810 2002-08-22  Tom Tromey  <tromey@redhat.com>
2812         * doc/install.texi (Configuration): Document --datadir.
2814 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
2816         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
2818 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
2820         * gengtype-lex.l (ID): Allow underscore as first character.
2822 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
2824         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
2825         function.
2826         (rs6000_xcoff_asm_named_section): Rename.
2827         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
2829 2002-08-21  Tom Tromey  <tromey@redhat.com>
2831         For PR java/6005 and PR java/7611:
2832         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
2833         (fold): Likewise.
2834         * langhooks.c (lhd_can_use_bit_fields_p): New function.
2835         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
2836         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
2837         (LANG_HOOKS_INITIALIZER): Use it.
2838         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
2839         field.
2841 2002-08-21  Stan Shebs  <shebs@apple.com>
2843         * tree.c (finish_vector_type): Fix a typo in a comment.
2844         * Makefile.in: Fix "the the" stutters in comments.
2845         * genautomata.c: Ditto.
2846         * ifcvt.c: Ditto.
2847         * regrename.c: Ditto.
2848         * config/alpha/alpha.c: Ditto.
2849         * config/alpha/vms-crt0-64.c: Ditto.
2850         * config/alpha/vms-crt0.c: Ditto.
2851         * config/alpha/vms-psxcrt0-64.c: Ditto.
2852         * config/alpha/vms-psxcrt0.c: Ditto.
2853         * config/d30v/d30v.h: Ditto.
2854         * config/fr30/fr30.h: Ditto.
2855         * config/rs6000/rs6000.c: Ditto.
2856         * config/stormy16/stormy16.h: Ditto.
2857         * doc/md.texi: Ditto.
2859 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2861         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
2863 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
2865         * c-decl.c (grokdeclarator): Make invalid combinations with long,
2866         short, signed or unsigned into hard errors.  Fixes PR c/4319.
2867         Also make duplicate modifiers such as "short short" into hard
2868         errors.
2870 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
2871             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2873         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
2874         to the actual end.  Add '@end table' and '@table @code'.
2876 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
2878         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
2880         * unroll.c (biv_total_increment): Don't try to compute the total
2881         increment for FP BIVs.
2883 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2885         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
2886         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
2887         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2888         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
2889         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
2890         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
2891         (GLOBAL_ASM_OP): Define.
2892         * arm.c (aof_globalize_label): New function.
2893         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
2894         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2895         * c4x.c (c4x_globalize_label): New function.
2896         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
2897         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
2898         (GLOBAL_ASM_OP): Define.
2899         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
2900         * darwin-protos.h (darwin_globalize_label): Declare.
2901         * darwin.c (darwin_globalize_label): New function.
2902         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
2903         (ASM_GLOBALIZE_LABEL): Delete.
2904         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
2905         * dsp16xx.c (asm_output_common): Use target hook.
2906         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2907         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
2908         (GLOBAL_ASM_OP): Define.
2909         * i370.c (i370_globalize_label): New function.
2910         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
2911         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
2912         * i386.c (ix86_asm_file_end): Use target hook.
2913         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
2914         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
2915         * ia64.c (ia64_asm_output_external): Likewise.
2916         * ia64/sysv4.h: Update comment.
2917         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2918         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2919         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
2920         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2921         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
2922         * mmix-protos.h (mmix_asm_globalize_label): Delete.
2923         * mmix.c (mmix_asm_globalize_label): Likewise.
2924         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
2925         (GLOBAL_ASM_OP): Define.
2926         * ns32k.c (ns32k_globalize_label): New function.
2927         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
2928         (ASM_GLOBALIZE_LABEL): Delete.
2929         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
2930         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
2931         * pa.c (pa_globalize_label): New function.
2932         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
2933         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
2934         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
2935         (GLOBAL_ASM_OP): Define.
2936         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
2937         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2938         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
2939         (GLOBAL_ASM_OP): Define.
2940         * v850.c (v850_output_aligned_bss): Use target hook.
2941         * vax.c (vms_globalize_label): New function.
2942         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
2943         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
2944         (GLOBAL_ASM_OP): Define.
2945         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
2946         * doc/tm.texi: Update docs.
2947         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
2948         target hook.
2949         * final.c (output_alternate_entry_point): Likewise.
2950         * hooks.c (hook_FILEptr_constcharptr_void): New function.
2951         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
2952         * output.h (assemble_global): Delete.
2953         (default_globalize_label): Declare.
2954         * system.h (ASM_GLOBALIZE_LABEL): Poison.
2955         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
2956         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
2957         * target.h (gcc_target): Add globalize_label member.
2958         * varasm.c (asm_output_bss, asm_output_aligned_bss,
2959         globalize_decl): Use target hook.
2960         (assemble_global): Delete.
2961         (default_globalize_label): New function.
2963 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2965         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
2967 2002-08-20  Devang Patel  <dpatel@apple.com>
2968         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
2970 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2972         * arc.c (output_shift): Use stdio instead of asm_fprintf.
2973         * arm.c (thumb_output_function_prologue): Likewise.
2974         * avr.c (print_operand): Likewise.
2975         * c4x.c (c4x_print_operand): Likewise.
2976         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
2977         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
2978         * cris.c (cris_target_asm_function_prologue,
2979         cris_asm_output_mi_thunk): Likewise.
2980         * h8300.c (print_operand): Likewise.
2981         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2982         * ip2k.c (print_operand): Likewise.  Fix format specifier.
2983         * m68hc11.c (asm_print_register, print_operand,
2984         print_operand_address): Use stdio instead of asm_fprintf.
2985         (print_operand_address): Fix format specifier.
2986         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
2987         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
2988         asm_fprintf.
2989         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2990         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2991         * m68k.c (m68k_output_function_prologue,
2992         m68k_output_function_epilogue, print_operand): Likewise.
2993         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
2994         Likewise.  Fix format specifier.
2995         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2996         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2997         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2999 2002-08-15  Eric Christopher  <echristo@redhat.com>
3000             Jeff Knaggs  <jknaggs@redhat.com>
3002         * config.gcc (mipsisa64sr71k-elf): New target.
3003         * config/mips/sr71k.md: New file.
3004         * config/mips/mips.md: Use it.
3005         (rot*): Add sr71k specifics.
3006         * config/mips/t-sr71k: New file.
3007         * config/mips/mips.h (sr71k): New cpu.
3008         (TARGET_SR71K): Use it.
3009         (TUNE_SR71K): Ditto.
3010         (GENERATE_BRANCHLIKELY): Ditto.
3011         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
3012         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
3013         * config/mips/mips.c (sr71k): New cpu.
3014         (mips_use_dfa_pipeline_interface): Use.
3016 2002-08-15  Eric Christopher  <echristo@redhat.com>
3017             Richard Sandiford <rsandifo@redhat.com>
3018             Aldy Hernandez  <aldyh@redhat.com>
3019             Graham Stott    <grahams@redhat.com>
3020             Michael Meissner  <meissner@redhat.com>
3021             Gavin Romig-Koch  <gavin@redhat.com>
3022             Ken Raeburn  <raeburn@cygnus.com>
3023             Alexandre Oliva <aoliva@redhat.com>
3025         * config.gcc (mips64vr-elf): New target.
3026         * config/mips/5400.md: New file.
3027         * config/mips/5500.md: Ditto.
3028         * config/mips/mips.md: Use them.
3029         (frsqrt): New.
3030         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
3031         cpus.
3032         (mips_issue_rate): Use them.
3033         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
3034         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
3035         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
3036         cpus.
3037         (TARGET_MIPSx): Use them.
3038         (TUNE_MIPSx): Ditto.
3039         (GETNATE_MULT3_SI): Ditto.
3040         (ISA_HAS_BRANCHLIKELY): Ditto.
3041         (ISA_HAS_CONDMOVE): Ditto.
3042         (ISA_HAS_NMADD_NMSUB): Ditto.
3043         (ISA_HAS_MULHI): New. Ditto.
3044         (ISA_HAS_MULS): Ditto.
3045         (ISA_HAS_MSAC): Ditto.
3046         (ISA_HAS_MACC): Ditto.
3047         (ISA_HAS_ROTR_SI): Ditto.
3048         (ISA_HAS_ROTR_DI): Ditto.
3049         (RTX_COSTS): Use.
3051 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3053         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
3054         at head.
3055         (remove_dup_nonsys_dirs): New function.
3056         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
3057         (merge_include_chains): Remove non-system include directories from
3058         quote and bracket include chains when they duplicate equivalent system
3059         directories.
3060         * doc/cpp.texi (-I): Update.
3061         * doc/cppopts.texi (-I): Update.
3062         * doc/install.texi (--with-local-prefix): Further document usage of
3063         this option.
3064         * doc/invoke.texi (-I): Update.
3066 2002-08-20  Richard Henderson  <rth@redhat.com>
3068         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
3069         (emit_block_move): Split out subroutines.
3070         (emit_block_move_via_movstr): New.
3071         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
3072         (emit_block_move_libcall_fn): New.  Construct function prototype for
3073         bcopy as well.
3074         (clear_storage): Split out subroutines.
3075         (clear_storage_via_clrstr): New.
3076         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
3077         (clear_storage_libcall_fn): New.  Construct function prototype for
3078         bzero as well.
3079         (emit_push_insn): Use emit_block_move.
3080         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
3081         (store_constructor): Likewise.
3083 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
3085         * objc/objc-act.c (building_objc_message_expr): Rename to
3086         current_objc_message_selector.
3088 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
3090         * objc/objc-act.c (build_ivar_chain): Remove.
3091         (objc_copy_list): Likewise.
3092         (get_class_ivars): Inline call to removed build_ivar_chain
3093         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
3094         slot; use that slot (rather than CLASS_IVARS) when accessing
3095         ivars for base classes.  Call copy_list and chainon instead of
3096         objc_copy_list.
3097         (build_private_template): Call get_class_ivars instead of
3098         build_ivar_chain.
3099         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
3100         (continue_class): Call get_class_ivars instead of
3101         build_ivar_chain.
3102         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
3103         of DECL_BIT_FIELD (which may have been cleared).
3104         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
3106 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3108         * genautomata.c (output_translate_vect, output_state_ainsn_table,
3109         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
3110         in output file.
3111         (output_internal_min_issue_delay_func): Initialize variable in
3112         output file.
3114 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
3116         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
3117         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
3119 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
3120             Steve Ellcey  <sje@cup.hp.com>
3122         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
3123         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
3124         * explow.c (trunc_int_for_mode): Abort when the mode is not
3125         a scaler integer mode.
3126         * combine.c (expand_compound_operation): Don't expand Vector
3127         or Complex modes into shifts.
3128         (expand_field_assignment): Don't do bitwise arithmatic and
3129         shifts on Vector or Complex modes.
3130         (simplify_comparison): Don't call trunc_int_for_mode
3131         for VOIDmode.
3132         * recog.c (general_operand): Likewise.
3133         (immediate_operand): Likewise.
3134         (nonmemory_operand): Likewise.
3136 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
3138         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
3139         multi-instruction SImode constant.  Add REG_EQUAL note.
3140         * config/rs6000/rs6000.md (movsi splitter): Use
3141         rs6000_emit_set_const.
3143 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3145         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
3146         the macro test controlling its use.
3148 2002-08-18  H.J. Lu  (hjl@gnu.org)
3150         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
3151         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
3152         gnu_ld=yes.
3153         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
3154         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
3155         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
3156         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
3157         here.
3158         (cris-*-linux*): Remove setting thread_file here.
3160 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
3162         PR preprocessor/7602
3163         * cppinit.c (path_include): Treat the system environment
3164         variables as being cxx_aware.
3166 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
3168         * c-decl.c (flexible_array_type_p): New function.
3169         (grokdeclarator, finish_struct): Use it.
3170         * doc/extend.texi: Document constraints on use of structures with
3171         flexible array members.
3173 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
3175         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
3176         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
3177         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
3179 2002-08-16  Stan Shebs  <shebs@apple.com>
3181         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
3182         for ObjC with -fnext-runtime.
3183         * doc/cpp.texi: Document it.
3185 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
3187         * doc/install.texi (Final installation): Replace links to individual
3188         build status pages with a link to a common page that lists them all.
3190 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
3192         * doc/invoke.texi: Fix typo.
3194 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
3196         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
3198 2002-08-16  Andrew Haley  <aph@redhat.com>
3200         * tree-inline.c: Add includes for Java inliner.
3201         (remap_decl): Don't handle anonymous types for Java.
3202         (remap_block): Add handling for Java trees.
3203         (copy_scope_stmt): Conditionalize for non-Java use only.
3204         (copy_body_r): Handle Java trees.  Add handling for
3205         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
3206         (initialize_inlined_parameters):  Handle Java trees.
3207         (declare_return_variable): Likewise.
3208         (expand_call_inline): Handle Java trees.
3209         (walk_tree): Likewise.
3210         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
3211         (add_stmt_to_compound): New function.
3213 2002-08-15  Richard Henderson  <rth@redhat.com>
3215         * Makefile.in (LOOSE_WARN): Remove -fno-common.
3216         (NOCOMMON_FLAG): New substitution point.
3217         (GCC_WARN_CFLAGS): Include it.
3218         * configure.in (ac_checking): Set nocommon_flag.
3219         (nocommon_flag): New substitution point.
3221 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
3223         * c-tree.h (skip_evaluation): Move declaration...
3224         * c-common.h: ... here.
3225         * c-typeck.c (build_external_ref): Don't assemble_external nor
3226         mark a tree as used if skip_evaluation is set.
3227         * c-parse.in (typeof): New non-terminal to set skip_evaluation
3228         around TYPEOF.
3229         (typespec_nonreserved_nonattr): Use it.
3231 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
3233         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
3234         (xcoff_debug_hooks): Update end_prologue.
3235         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
3236         * debug.h (end_prologue): Add file arg.
3237         (end_epilogue): Add line and file args.
3238         (dwarf2out_end_epilogue): Add line and file args.
3239         (vmsdbgout_after_prologue): Remove.
3240         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
3241         (dwarf2_debug_hooks): Update end_prologue.
3242         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
3243         (dwarfout_end_prologue): Add file arg.
3244         * final.c (vmsdbgout_after_prologue): Remove
3245         (final_end_function): Update end_epilogue call.
3246         (final_scan_insn): Update end_prologue call.
3247         * sdbout.c (sdbout_end_epilogue): Add line and file args.
3248         (sdbout_end_prologue): Add file arg.
3249         (sdb_debug_hooks): Update end_prologue.
3250         (sdb_begin_prologue): Update sdbout_end_prologue call.
3251         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
3252         vmsdbgout_end_function.
3253         (vmsdbgout_end_prologue): New function renamed from
3254         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
3255         (vmsdbgout_end_function): New function.
3256         (vmsdbgout_end_epilogue): Add line and file args. Call
3257         vmsdbgout_source_line.
3258         (write_pclines): Write only valid line numbers.
3259         (write_srccorr): Don't write source correlation records if 0 lines.
3260         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
3262 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
3264         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
3265         (_Unwind_Internal_Ptr): 32 bit version for use in
3266         read_encoded_value_with_base.
3267         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
3268         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
3269         right size.
3271 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3273         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
3274         signed/unsigned warnings.
3276         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
3277         record_reg_classes): Likewise.
3279         * reload.c (reload_inner_reg_of_subreg, push_reload,
3280         find_reloads_address_1): Likewise.
3282 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
3284         * rs6000.c (output_mi_thunk): Return to function section on
3285         TARGET_ELF.
3287         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
3289 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
3291         * config/s390/s390.c (legitimize_address): Optimize loading
3292         of large displacements.
3294 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
3296         * config/alpha/alpha-protos.h: Update.
3298         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
3299         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
3300         (alpha_linkage_symbol_p): New static function.
3301         (print_operand_address): Print linkage operand.
3303         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
3304         variables.
3305         (reloc_kind): New enum.
3306         (struct alpha_funcs): New struct.
3307         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
3309         (alpha_need_linkage): Rewrite.
3310         (alpha_use_linkage): New global function.
3311         (alpha_write_linkage): Rewrite and make static.
3312         (alpha_write_one_linkage): Rewrite
3314         (alpha_start_function): Remove procedure descriptor output.
3315         (alpha_end_function): Write linkages at end of each function.
3317         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
3318         (call_vms_1, call_value_vms_1): Rewrite.
3320         * config/alpha/vms.h (ASM_FILE_END): Remove.
3322 2002-08-14  Richard Henderson  <rth@redhat.com>
3324         * ggc-page.c (RTL_SIZE): New.
3325         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
3326         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
3328 2002-08-14  Richard Henderson  <rth@redhat.com>
3330         * calls.c: Include target.h.
3331         * Makefile.in (calls.o): Update.
3333         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
3334         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
3336 2002-08-14  Richard Henderson  <rth@redhat.com>
3338         * Makefile.in (LOOSE_WARN): Add -fno-common.
3339         * c-common.h (constant_string_class_name): Add missing extern.
3341 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
3343         PR preprocessor/7358
3344         * c-opts.c (check_deps_environment_vars): Ignore main file
3345         for SUNPRO_DEPENDENCIES.
3346         * cppfiles.c (stack_include_file): Ignore main file if
3347         appropriate.
3348         * cpplib.h (struct cpp_options): New member in deps.
3349         * doc/cppenv.texi: Update.
3351 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
3353         PR preprocessor/7526
3354         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
3356 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
3358         * doc/invoke.texi (-a): Remove documentation.
3359         (-fprofile-arcs): Remove reference to -a, -ax options.
3360         * doc/gcov.texi (Gcov Data Files): Data might be merged.
3362 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
3364         Fix PR/7566
3365         * c-semantics.c (genrtl_case_label): Don't (mis)use
3366         warning_with_decl.
3368 2002-08-14  Dale Johannesen  <dalej@apple.com>
3370         * explow.c (emit_stack_restore):  Emit memory clobbers
3371         preceding the stack pop, to prevent the scheduler from
3372         moving refs to variable arrays below this pop.
3373         * reload1.c (reload):  Preserve these clobbers for sched2.
3374         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
3376 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
3378         * c-opts.c (c_common_post_options): Correct test.
3380 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3382         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
3383         order in call to fprintf.
3385 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3387         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
3389 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
3391         * reload.c (find_reloads): Handle constraint letters marked by
3392         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
3393         (alternative_allows_memconst): Likewise.
3394         * reload1.c (maybe_fix_stack_asms): Likewise.
3395         * recog.c (asm_operand_ok, preprocess_constraints,
3396         constrain_operands): Likewise.
3397         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
3398         * local-alloc.c (block_alloc, requires_inout): Likewise.
3399         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3401         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
3402         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
3403         * doc/tm.texi: Document these two new target macros.
3405         * config/s390/s390.c (s390_expand_plus_operand): Accept already
3406         valid operands.
3407         (q_constraint): New function.
3408         config/s390/s390-protos.h (q_constraint): Declare it.
3409         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
3410         (EXTRA_MEMORY_CONSTRAINT): New macro.
3412         * config/s390/s390.md: Throughout the machine description,
3413         replace all instances of the constraint combinations 'Qo'
3414         or 'oQ' with simply 'Q'.
3416 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3418         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
3419         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
3420         (LIBGCC2_CFLAGS): Compile with -mrelax.
3422 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3424         * doc/invoke.texi: Document -minmax for 68HC12.
3426         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
3427         ("uminqi3"): Likewise.
3428         ("uminhi3", "umaxhi3"): Likewise.
3430         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
3431         (TARGET_MIN_MAX): Define.
3432         (TARGET_SWITCHES): New option -minmax/-mnominmax.
3434 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3436         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
3437         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
3439         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
3440         (ret, declare, farsym): New gas macros.
3441         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
3442         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
3443         and declare the symbol far when compiled with -mlong-calls.
3444         (__far_trampoline): New for 68HC12 trampoline code to invoke a
3445         far handler using jsr/bsr.
3447         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
3448         (jsr): New macro to transform a 'jsr' into a 'call'.
3450 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3452         * doc/invoke.texi: Document -mlong-calls for 68HC12.
3454         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
3455         -mlong-calls is specified.
3456         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
3457         assembler directives.
3458         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
3459         (TARGET_SWITCHES): Add -mlong-calls options.
3460         (current_function_far): Declare.
3462         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
3463         into account the page register saved on the stack.
3464         (m68hc11_override_options): Take into account -mlong-calls option.
3465         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
3467         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
3468         if the function is going to be in 68HC12 banked memory (-mlong-calls).
3469         ("*return_16bit"): Likewise.
3470         ("*return_void"): Likewise.
3471         ("call", "call_value"): Use call for a far function call.
3473 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
3475         * toplev.c (parse_options_and_default_flags): Don't call
3476         post_options here.
3477         (general_init): Initialize GC, pools and tree hash here,
3478         instead of lang_independent_init.
3479         (lang_independent_init): Rename backend_init.
3480         (do_compile): Call post_options hook; exit early if there
3481         have been errors after switch processing.
3482         (toplev_main): Update.
3484 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
3486         * c-pretty-print.h: Guard against multiple inclusion.
3487         Robustify macros.
3488         (pp_c_attributes): Declare.
3489         * c-pretty-print.c (pp_c_attributes): New function.
3491 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3493         * m68k.c (m68k_output_function_prologue,
3494         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
3495         and NEWS/MOTOROLA.
3496         * genattrtab.c: Remove dpx2 comment.
3497         * libgcc2.c (__enable_execute_stack): Delete versions for
3498         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
3499         sony_news/SYSTYPE_BSD.
3500         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
3501         __gmicro__, __i860__, __NeXT__ and __pyr__.
3502         * rtl.h: Remove convex comment.
3503         * varasm.c: Likewise.
3505 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3507         * c-opts.c (lang_flags): Const-ify.
3508         * ra-build.c (undef_table): Likewise.
3509         * ra.c (eliminables): Likewise.
3511 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
3513         * tree.h: Guard against multiple inclusion.
3515 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
3517         * reload1.c (reload_cse_simplify): Before checking
3518         REG_FUNCTION_VALUE_P, check REG_P.
3520 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
3522         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
3524 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
3526         * c-opts.c (c_common_init_options): Extra braces needed.
3528 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
3530         * sh.c (sh_init_builtins): Add PARAMS to declaration.
3531         (sh_media_init_builtins, sh_expand_builtin): Likewise.
3532         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
3533         (sh_expand_binop_v2sf): Likewise.
3534         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
3535         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
3536         (sh_initialize_trampoline): Likewise.
3538 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
3540         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
3541         new condition code modes.
3542         s390.c (s390_match_ccmode_set): Handle those new CC modes.
3543         (s390_select_ccmode): Likewise.
3544         (s390_branch_condition_mask): Likewise.
3546         * s390-protos.h (s390_tm_ccmode): Declare.
3547         s390.c (s390_tm_ccmode): New function.
3548         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
3550         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
3551         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
3552         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
3554         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
3555         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
3556         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
3557         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
3558         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
3560         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
3561         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
3562         "*cmpqi_ccs_0"): Remove, replace by ...
3563         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
3564         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
3565         "*tstqi", "*tstqi_cconly"): ... these new patterns.
3567         ("*cmpsidi_ccs"): Remove, replace by ...
3568         ("*cmpsi_ccs_sign"): ... this new pattern.
3569         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
3571         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
3572         ("*cli"): ... this new pattern.
3574         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
3575         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
3576         New patterns.
3577         ("adddi3_64"): Rename to "*adddi3_64".
3578         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
3579         ("adddi3"): Adapt expander.
3581         ("*addsi3_cc"): Allow "general_operand" for operand 2.
3582         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
3583         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
3585         ("addhi3", "addqi3"): Remove, replace by ...
3586         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
3588         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
3589         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
3590         ("subdi3"): Replace by insn and splitter "*subdi3_31".
3591         ("subdi3"): New expander.
3593         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
3595         ("subhi3", "subqi3"): Remove, replace by ...
3596         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
3598         ("*muldi3_sign"): New pattern.
3599         ("muldi3"): Do not clobber CC.
3600         ("mulsi3"): Likewise.
3601         ("mulsi_6432"): Likewise.
3603 2002-08-13  Denis Chertykov  <denisc@overta.ru>
3605         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
3606         which can change CC0.
3608 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
3610         * gcse.c (adjust_libcall_notes): New function.
3611         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
3613 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
3615         * libgcc2.c (L_bb): Remove unneeded #includes.
3616         (__global_counters, __gthreads_active): Remove unused globals.
3617         (__bb_exit_func): Merge counts into files rather than appending.
3618         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
3619         (ALL_CFLAGS): ... to here.
3621 2002-08-13  Denis Chertykov  <denisc@overta.ru>
3623         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
3624         (function_epilogue): Don't calculate function size.
3625         (ip2k_set_compare): Don't use lookup_const_double.
3626         (asm_file_start): Initialization of commands_in_file removed.
3627         (asm_file_end): Output of commands_in_file removed.
3629         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
3630         __INT_MAX__.
3632 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
3634         * c-opts.c (c_common_init_options): Check option array is
3635         sorted if checking enabled.
3637 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
3639         * c-pretty-print.c: #include "c-tree.h".
3640         (pp_c_simple_type_specifier): Tweak.
3641         (pp_c_storage_class_specifier): New.
3642         (pp_c_function_specifier): Likewise.
3643         (pp_c_declaration_specifiers): Likewise.
3644         (pp_c_init_declarator): Likewise.
3645         (pp_c_declaration): Likewise.
3646         (pp_c_direct_declarator): Stub.
3647         (pp_c_declarator): Likewise.
3648         (pp_c_parameter_declaration): Likewise.
3650 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
3652         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
3653         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
3654         struct deferred_opt): New.
3655         (COMMAND_LINE_OPTIONS): Add -M*.
3656         (missing_arg): Update.
3657         (c_common_decode_option): Handle -M*.
3658         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
3659         don't call cpp_post_options.
3660         (c_common_finish, check_deps_environment_vars): Update.
3661         * cppfiles.c (stack_include_file, handle_missing_header): Update.
3662         * cpphash.h (CPP_PRINT_DEPS): Remove.
3663         * cppinit.c: Don't include version.h.
3664         (cpp_create_reader): Don't call deps_init.  Initialize
3665         warn_long_long.
3666         (cpp_read_main_file): Init deps if necessary.
3667         (cpp_destroy): Conditionally free deps.
3668         (cpp_finish): Update.
3669         (no_tgt): Remove.
3670         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
3671         (cpp_post_options): Rename post_options.
3672         * cpplib.h (struct cpp_options): Remove some dependency options;
3673         move others to a new structure.
3674         (cpp_post_options): Remove.
3675         (cpp_finish): Comment.
3676         * fix-header.c (read_scan_file): Don't call cpp_post_options.
3678 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
3680         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
3681         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
3682         MMIX_rR_REGNUM as clobbered.
3683         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
3685 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
3687         * diagnostic.h (output_formatted_scalar): Rename from
3688         output_formatted_integer.
3689         * diagnostic.def: Add DK_DEBUG.
3690         * diagnostic.c (output_decimal): Adjust.
3691         (output_long_decimal): Likewise.
3692         (output_unsigned_decimal): Likewise.
3693         (output_octal): Likewise.
3694         (output_long_octal): Likewise.
3695         (output_hexadecimal): Likewise.
3696         (output_long_hexadecimal): Likewise.
3697         * c-pretty-print.c (pp_c_type_specifier): New function.
3698         (pp_c_specifier_qualifier_list): Likewise.
3699         (pp_c_abstract_declarator): Likewise.
3700         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
3702 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
3704         * doc/trouble.texi (Disappointments): Add static constructor and
3705         destructor dependency information for AIX.
3707 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
3709         * cpphash.h (struct printer): New from cppmain.c.
3710         (cpp_reader): New member.
3711         * cppmain.c (struct printer): Move to cpphash.h.
3712         (options, print): Remove.
3713         (account_for_newlines, print_line, maybe_print_line,
3714         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
3715         scan_translation_unit_trad, cb_line_change, cb_ident,
3716         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
3717         cb_def_pragma): Make reentrant.
3719 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3721         * real.c (ieee_64): Always define.
3722         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
3723         (dec_h): Not used yet, hide it.
3724         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
3725         macro controlling use.
3726         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
3728 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
3730         * i386.md (tablejump): Sign extend the operand.
3731         * i386.c (classify_argument): Fix missed case from previous patch.
3733 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
3735         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
3736         to c-copts.c.
3737         (warn_multichar): Die.
3738         (cb_register_builtins): Export.
3739         * c-common.h (warn_multichar, preprocess_file): Remove.
3740         (cb_register_builtins): New.
3741         * c-lang.c (c_init): Remove.
3742         (LANG_HOOKS_INIT): Use c_objc_common_init.
3743         * c-lex.c (init_c_lex): Don't canonicalize filename.
3744         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
3745         (preprocess_file): Make static.  Update for cpplib.
3746         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
3747         (c_common_post_options): Set some cpp options here.
3748         (c_common_init): Move from c-common.c.
3749         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
3750         * cpplib.h (struct cpp_options): Remove in_fname.
3751         (cpp_preprocess_file): Update.
3752         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
3754 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3756         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
3758 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3760         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
3761         backslash in comment preceeding macro definition.
3762         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
3763         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
3764         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
3766 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
3768         * expr.c (store_expr): In condition for checking if value is
3769         generated in TARGET, move call to expr_size last.
3771 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
3773         * c-common.c (c_common_init): Call preprocess_file instead.
3774         (c_common_finish): Move to c-opts.c.
3775         * c-common.h (preprocess_file): new.
3776         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
3777         check_deps_environment_vars, c_common_finish): New.
3778         (c_common_decode_option): Update for out_fname and dependencies.
3779         * cppinit.c (init_dependency_output, output_deps): Remove.
3780         (cpp_destroy): Update prototype.
3781         (cpp_add_dependency_target): New.
3782         (cpp_read_main_file): Don't overlay a buffer.
3783         (cpp_finish): Take a deps output stream and write deps to it.
3784         Return the error count.
3785         (cpp_post_options): Don't canonicalize out_fname, or do anything
3786         with dependencies.
3787         * cpplib.h (struct cpp_options): Remove out_fname and
3788         preprocess_only.
3789         (cpp_add_dependency_target): New.
3790         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
3791         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
3792         set preprocess_only.  Don't handle the output stream directly.
3794 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3796         * dsp16xx.c (print_operand): Fix format specifier.
3797         * dsp16xx.md: Avoid automatic aggregate initialization.
3798         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
3799         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
3800         integer constant modifier.
3801         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
3802         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
3803         guards.
3804         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
3805         * v850.c (v850_select_section): Mark parameter with
3806         ATTRIBUTE_UNUSED.
3807         * global.c (global_alloc): Const-ify.
3808         * ra-colorize.c (hardregset_to_string): Fix format specifier.
3810 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3812         * darwin-c.c (darwin_pragma_options): Const-ify.
3813         * darwin.c (machopic_non_lazy_ptr_name,
3814         machopic_validate_stub_or_non_lazy_ptr): Likewise.
3815         (machopic_indirect_data_reference): Wrap variables in macros
3816         controlling their use.
3817         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
3818         (machopic_select_section): Use parentheses around && within ||.
3819         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
3821 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3823         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
3824         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3825         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
3826         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
3827         mdr_try_remove_redundant_insns, track_w_reload,
3828         mdr_try_wreg_elim): Make function static to match prototype.
3829         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
3830         parameter with ATTRIBUTE_UNUSED.
3832 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3834         * arc.c (arc_init): Don't use ISO C style function definitions.
3835         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
3836         arm_get_strip_length, arm_strip_name_encoding): Likewise.
3837         * avr.h (progmem_section): Likewise.
3838         * h8300.c h8300_asm_insn_count): Likewise.
3839         * m32r.c (init_idents): Likewise.
3840         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
3841         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
3842         * xtensa.c (xtensa_build_va_list): Likewise.
3844 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
3846         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
3847         * c-opts.c (parse_option): Rename find_opt.
3848         (set_std_c99): New function.
3849         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
3850         (missing_arg): Remove OPT_std_bad.  Handle -o.
3851         (c_common_decode_option): Handle input and output file names,
3852         -o and -remap.  Clean up -std= handling.
3853         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
3854         (cpp_handle_option): Similarly.  Don't handle filenames.
3856 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
3858         * i386.c (classify_argument): Fix computing of field's offsets.
3860 2002-08-11  Andreas Jaeger  <aj@suse.de>
3862         PR target/7531:
3863         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
3865 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
3867         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
3868         reference to clk_objective_c with flag_objc.
3869         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
3870         Likewise.
3871         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3873 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
3875         * c-opts.c (set_std_cxx98, set_std_c89): New.
3876         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
3877         (c_common_decode_option): Handle new switches from cppinit.c.
3878         Add -std=gnu++98.
3879         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
3880         (no_arg, no_num): Remove.
3881         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
3882         switches apart from -lang-objc and lang-asm.
3883         (cpp_handle_option): Similarly.
3884         * cpplib.h (cpp_set_lang): New.
3885         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
3886         -std=gnu++98.
3887         * objc/lang-specs.h: Remove -ansi.
3889 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
3890                                Graham Stott
3892         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
3893         errors.
3895 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3897         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
3898         emit_jump_insn): Fix uninitialized variable.
3899         * gcov.c (init_line_info): Likewise.
3900         * genautomata.c (transform_3): Add braces around ambiguous
3901         else.
3902         * ifcvt.c (cond_exec_process_insns): Mark parameter with
3903         ATTRIBUTE_UNUSED.
3904         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
3905         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
3906         variable.
3908         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
3909         warnings in output files.
3911 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
3913         * c-common.c (flag_objc): New.
3914         * c-common.h (c_language_kind): Get rid of clk_objective_c
3915         enum value.
3916         (flag_objc): New extern declaration.
3917         * c-decl.c (implicitly_declare): Call objc_check_decl
3918         instead of maybe_objc_check_decl.
3919         (finish_decl): Likewise.
3920         (grokfield): Likewise.
3921         (finish_struct): Likewise.
3922         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
3923         (maybe_objc_comptypes): Rename to objc_comptypes.
3924         (maybe_building_objc_message_expr): Rename to
3925         objc_message_selector.
3926         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
3927         replace with flag_objc as needed.
3928         * c-opts.c (c_common_init_options): Likewise.
3929         (c_common_decode_option): Likewise.
3930         * c-parse.in (init_reswords): Likewise.
3931         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
3932         (maybe_objc_comptypes): Rename to objc_comptypes.
3933         (maybe_building_objc_message_expr): Rename to
3934         objc_message_selector.
3935         * c-typeck.c (comptypes): Call objc_comptypes instead of
3936         maybe_objc_comptypes, and/or objc_message_selector instead of
3937         maybe_building_objc_message_expr.
3938         (comp_target_types): Likewise.
3939         (convert_for_assignment): Likewise.
3940         (warn_for_assignment): Likewise.
3941         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
3942         independently of those for other languages.
3943         * objc/objc-act.c (maybe_objc_comptypes): Delete.
3944         (maybe_objc_check_decl): Delete.
3945         (maybe_building_objc_message_expr): Rename to
3946         objc_message_selector.
3947         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
3948         clk_objective_c; set flag_objc flag.
3950 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3952         * ifcvt.c (find_if_case_2): Test correct basic block for size.
3954 2002-08-09  Dale Johannesen  <dalej@apple.com>
3956         * config/rs6000/rs6000.md: Add sibcall patterns.
3957         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
3958         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
3959         Rewritten to handle sibcalls.
3960         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
3961         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
3963 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
3965         * profile.c (da_file_name): New static var.
3966         (init_branch_prob): Initialize it.
3967         (end_branch_prob): Remove da file.
3969         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
3970         * configure.in (coverage_flags): Default to nothing.
3971         * configure: Rebuilt.
3973 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
3975         * Makefile.in (c-opts.o): Update
3976         * c-opts.c: Include intl.h.
3977         (print_help): Move from cppinit.c.  Remove unused options.
3978         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
3979         (missing_arg): Complain for switches without an argument.
3980         (c_common_decode_option): Reject missing joined arguments.
3981         Handle new switches from cppinit.c.
3982         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
3983         (cpp_handle_option): Similarly.
3984         (print_help): Moved to c-opts.c.
3985         * cpplib.h (struct cpp_options): Remove help_only.
3986         * gcc.c (cpp_unique_options): Remove -$.
3987         * doc/cppopts.texi: Undocument -h.
3989 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3991         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
3992         legitimate constant.
3993         (legitimate_pic_operand_p): Neither pic operand.
3994         (legitimate_address_p): But legitimate address.
3995         (get_thread_pointer): Generate MEM/u instead of CONST around
3996         UNSPEC_TP.
3997         (print_operand): Remove printing of UNSPEC_TP.
3998         (print_operand_address): And print it here.
4000 2002-08-08  Devang Patel  <dpatel@apple.com>
4002         * objc/objc-act.c (build_selector_translation_table): Issue warning,
4003         when  -Wselector is used,if method for which selector is being
4004         created does not exist.
4006 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
4008         * config/sh/sh.c (prepare_move_operands): Only call
4009         target_reg_operand if TARGET_SHMEDIA.
4011 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
4013         * config/rs6000/rs6000.h, config/rs6000/aix.h,
4014         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
4015         two patches.
4016         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
4018 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
4019             Richard Henderson  <rth@redhat.com>
4021         * emit-rtl.c (gen_rtx_REG): After reload, only return
4022         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
4024 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
4026         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
4027         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
4028         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
4029         macro.
4031 2002-08-08  Adam Nemet  <anemet@lnxw.com>
4033         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
4034         register.
4035         (thumb_expand_prologue): Likewise.
4036         (thumb_output_function_prologue): Likewise.
4037         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
4038         the additional push of the PIC register.
4040 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
4042         * configure.in (enable_coverage): New enable switch.
4043         * configure: Rebuilt.
4044         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
4045         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
4046         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
4047         (mostlyclean): Remove coverage files.
4048         * doc/install.texi: Document enable_coverage.
4050         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
4051         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
4052         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
4053         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
4054         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
4055         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
4056         files.
4058 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
4060         * c-opts.c (cpp_opts): New.
4061         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
4062         (c_common_decode_options): Handle cpplib switches.
4063         (c_common_init_options): Set cpp_opts.
4064         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
4065         (cpp_handle_option): Similarly.
4067 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
4069         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
4070         (TARGET_ALTIVEC_ABI): Same.
4071         (TARGET_ALTIVEC_VRSAVE): Same.
4073         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
4074         icode not CODE_FOR_nothing.  Change switch to if.
4076 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
4078         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
4080 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
4082         * stor-layout.c (place_union_field): For bitfields if
4083         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
4084         TYPE_USER_ALIGN.
4086 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4088         * pa.c (struct deferred_plabel): Constify name field.
4090 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
4092         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
4094 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4096         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
4097         local_prefix are the same.
4098         * configure: Rebuilt.
4100 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
4101             Richard Henderson  <rth@redhat.com>
4103         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
4104         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
4105         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
4106         (place_field): Likewise.
4107         * config/i386/i386.c (x86_field_alignment): Don't check
4108         DECL_USER_ALIGN here.
4109         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
4110         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
4111         prototype.
4112         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
4113         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
4114         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
4115         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
4116         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
4117         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
4119 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
4121         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
4122         * c-common.c: Don't include tree-inline.h.
4123         (c_common_init_options, c_common_post_options): Move to c-opts.c.
4124         * c-common.h (c_common_decode_option): New.
4125         * c-decl.c (c_decode_option): Remove.
4126         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
4127         * c-opts.c: New file.
4128         * c-tree.h (c_decode_option): Remove.
4129         * doc/passes.texi: Update.
4130         * objc/objc-act.c (objc_decode_option): Remove.
4131         * objc/objc-act.h (objc_decode_option): Remove.
4132         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
4133         c_common_decode_option.
4135 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
4137         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
4138         dependency on TARGET_DOUBLE_FLOAT.
4140 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
4142         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
4143         overwrite callee-save registers.  Fix comment.
4145 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
4147         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
4148         in target_flags based on ISA, if it was not set on the command
4149         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
4150         support Branch Likely instructions.
4151         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
4152         (TARGET_BRANCHLIKELY): Likewise.
4153         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
4154         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
4155         ISA_HAS_BRANCHLIKELY.
4156         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
4157         * doc/invoke.texi: Document new MIPS -mbranch-likely and
4158         -mno-branch-likely options.
4160 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4162         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
4164         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
4165         $(GCONFIG_H).
4167 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
4169         * c-decl.c (duplicate_decls): Error out for incompatible TLS
4170         declarations.
4172         * testsuite/gcc.dg/tls/diag-3.c: New.
4174 2002-08-06  Dale Johannesen  <dalej@apple.com>
4176         * c-common.c (fname_decl): Use line number 0 for
4177         __func__, to avoid confusing debuggers.
4179 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
4181         * gcov.c: Tidy.
4182         (struct line_info, struct coverage): New structures.
4183         (gcov_file_name, gcov_file): Remove globals.
4184         (output_data): Take source file parameter. Fix memory leak. Break
4185         up into ...
4186         (init_line_info, output_line_info, make_gcov_file_name,
4187         accumulate_branch_counts): ... here.
4188         (calculate_branch_probs, function_summary): Adjust.
4189         (main): Adjust.
4190         (function_*): Remove global variables.
4192 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
4194         * dwarf2out.c: Remove unused macros.
4196 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
4198         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
4200 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
4202         * cppinit.c (struct lang_flags): Rename trigraphs std.
4203         (set_lang): Update.
4204         * cpplib.h (struct cpp_options): New member std.
4205         * cppmacro.c (_cpp_builtin_macro_text): Use std.
4206         (collect_args): Flag whether to swallow a possible future
4207         comma pasted with varargs.
4208         (replace_args): Use this flag.
4209         * doc/cpp.texi: Update varargs extension documentation.
4211 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
4213         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
4215 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
4217         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
4218         and MODE_CLASS_INT modes.
4220 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
4222         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
4223         --{enable,disable}-threads is given to configure.
4224         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
4225         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
4226         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
4227         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
4228         Remove thread_file setting here.
4230 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
4232         * doc/install.texi (Binaries): Update Bull Freeware URL.
4234 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4236         * doc/gcc.texi (Top): Rename Index to Keyword Index.
4238 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
4240         * gcov.c (output_data): Round to % to nearest, tweak formatting.
4242 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
4244         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
4245         of the operands into MINUS_EXPR if code is PLUS_EXPR.
4247 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
4249         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
4250         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
4251         drectve_section): Define.
4252         * config/i386/t-interix: Replace interix.o rule with winnt.o.
4253         * config/i386/interix.c: Remove.
4255 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
4257         * attribs.c: Don't include obstack.h.
4258         * builtins.c: Likewise.
4259         * cfganal.c: Likewise.
4260         * cfgbuild.c: Likewise.
4261         * cfgcleanup.c: Likewise.
4262         * emit-rtl.c: Likewise.
4263         * loop.c: Likewise.
4264         * stmt.c: Likewise.
4266         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
4268 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
4270         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
4272 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
4274         * doc/invoke.texi: Remove duplicated paragraph describing
4275         TARGET_SWITCHES.
4277 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
4279         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
4280         * collect2.h (permanent_obstack): Delete declaration.
4281         * collect2.c (permanent_obstack): Delete definition.
4282         (main): Don't initialize permanent_obstack.  Use xstrdup instead.
4283         * expr.c: Don't include obstack.h.
4284         (permanent_obstack): Delete declaration.
4285         * function.c: Don't include obstack.h.
4286         (permanent_obstack): Delete declaration.
4287         * integrate.c: Don't include obstack.h.
4288         (function_maybepermanent_obstack): Delete declaration.
4289         * print-tree.c (debug_tree): Use x*alloc not permalloc.
4290         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
4291         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
4292         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
4293         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
4294         of permalloc, expralloc, perm_calloc.
4295         * tree.c (permanent_obstack): Delete definition.
4296         (init_ttree): Rename from init_obstacks.
4297         (permalloc): Delete.
4298         (perm_calloc): Delete.
4299         (dump_tree_statistics): Don't print information about
4300         permanent_obstack.
4301         * varasm.c (assemble_start_function): Use xstrdup instead of
4302         permalloc/strcpy.
4303         (assemble_variable): Likewise.
4304         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
4305         permalloc.
4306         (unicosmk_add_extern): Likewise.
4307         * config/c4x/c4x.c (c4x_external_ref): Likewise.
4308         (c4x_global_label): Likewise.
4309         * config/frv/frv.c (frv_encode_section_info): Likewise.
4310         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4311         (i386_pe_record_exported_symbol): Likewise.
4312         * config/mips/mips.c (mips_output_external): Likewise.
4313         (mips_output_external_libcall): Likewise.
4314         * config/pa/pa.c: (permanent_obstack): Delete declaration.
4315         (output_call): Use ggc_strdup instead of allocating on
4316         permanent_obstack.
4317         * config/romp/romp.c: Include ggc.h.
4318         (get_symref): Don't declare permanent_obstack, use ggc_strdup
4319         intead of permanent_obstack.
4320         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
4321         instead of permalloc.
4322         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
4323         instead of permalloc
4324         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
4325         instead of permalloc.
4326         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
4327         permalloc.
4329 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
4331         Contribute a port developed primarily by Michael Meissner,
4332         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
4333         * config.gcc: Add frv-elf target.
4334         * config/frv/cmovd.c: New file.
4335         * config/frv/cmovh.c: New file.
4336         * config/frv/cmovw.c: New file.
4337         * config/frv/frv-abi.h: New file.
4338         * config/frv/frv-asm.h: New file.
4339         * config/frv/frv-modes.def: New file.
4340         * config/frv/frv-protos.h: New file.
4341         * config/frv/frv.c: New file.
4342         * config/frv/frv.h: New file.
4343         * config/frv/frv.md: New file.
4344         * config/frv/frvbegin.c: New file.
4345         * config/frv/frvend.c: New file.
4346         * config/frv/lib1funcs.asm: New file.
4347         * config/frv/media.h: New file.
4348         * config/frv/modi.c: New file.
4349         * config/frv/t-frv: New file.
4350         * config/frv/uitod.c: New file.
4351         * config/frv/uitof.c: New file.
4352         * config/frv/ulltod.c: New file.
4353         * config/frv/ulltof.c: New file.
4354         * config/frv/umodi.c: New file.
4355         * config/frv/xm-frv.h: New file.
4357         * config/frv/media.h: Removed again.
4359 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4361         * gcov.c (bb_file_time): New static variable.
4362         (object_directory): May also be object file.
4363         (preserve_paths): New static variable.
4364         (print_usage): Adjust.
4365         (options): Adjust.
4366         (process_args): Adjust.
4367         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
4368         file. Find modification date on bb file.
4369         (read_profile): Don't rewind a NULL file.
4370         (format_hwint): New static function.
4371         (function_summary): Use format_hwint.
4372         (output_data): SOURCE_FILE_NAME is never relative to
4373         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
4374         mangling. Adjust output format to make it more machine readable.
4375         * doc/gcov.texi: Document & clarify semantics.
4377 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
4379         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
4381 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4383         * gcc.c (cc1_options): Pass output file as auxbase when
4384         appropriate.
4385         * profile.c (init_branch_prob): FILENAME has already had ending
4386         stripped.
4387         * final.c (end_final): Likewise.
4388         * toplev.c (aux_base_name): New global.
4389         (compile_file): Pass aux_base_name to init init_branch_prob and
4390         end_final.
4391         (independent_decode_option, case 'a'): New auxinfo options.
4392         (case 'd'): Protect against mising basename.
4393         (do_compile): Initialize aux_base_name.
4394         * toplev.h (aux_base_name): New global.
4395         * doc/invoke.texi: Adjust documentation.
4397 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4399         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
4400         of TARGET_ALIGN_DOUBLE.
4402 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
4404         * diagnostic.c (inform): New function.
4405         * diagnostic.h (inform): Declare.
4407 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
4409         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
4410         (movhi_internal): Same.
4411         (movqi_internal): Same.
4412         (movdi_internal64): Same.
4414         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
4416         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
4417         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
4418         (COMMON_ASM_OP): Define.
4419         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
4420         Use ALIGN parameter.
4421         (LOCAL_COMMON_ASM_OP): Define.
4422         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
4424 2002-08-03  Roger Sayle  <roger@eyesopen.com>
4426         * builtins.def: Define new builtin functions exp, expf, expl,
4427         log, logf and logl (and their __builtin_* variants).
4428         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
4429         Define exp_optab and log_optab.
4430         * optabs.c (init_optans): Initialize exp_optab and log_optab.
4431         * genopinit.c (optabs): Implement exp_optab and log_optab
4432         using exp?f2 and log?f2 patterns.
4433         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
4434         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
4435         (expand_builtin): Ignore the new builtins (and all cos and
4436         sin variants) when not optimizing.  Expand new builtins via
4437         expand_builtin_mathfn when flag_unsafe_math_optimizations.
4439         * doc/extend.texi: Document new exp and log builtins.
4440         * doc/md.texi: Document new exp?f2 and log?f2 patterns
4441         (and previously undocumented cos?f2 and sin?f2 patterns).
4443 2002-08-03  Jason Merrill  <jason@redhat.com>
4445         * explow.c (int_expr_size): New fn.
4446         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
4447         * expr.h: Declare it.
4449 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
4451         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
4452         gengtype-* dependencies.
4454 2002-08-02  Eric Christopher  <echristo@redhat.com>
4456         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
4457         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
4458         #ifndef to #undef.
4459         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
4461 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
4463         PR optimize/7067
4464         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
4465         small if optimizing for size.
4467 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
4469         * configure.in (FORBUILD): Use $build_alias.
4470         * configure: Regenerated.
4472 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
4474         * config.gcc: Don't include mips/abi64.h in $tm_file.
4475         * hard-reg-set.h (call_really_used_regs): Declare.
4476         * config/mips/abi64.h: Remove file.
4477         * config/mips/linux.h,
4478         * config/mips/iris6.h: Don't include it.
4479         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
4480         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
4481         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
4482         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
4483         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
4484         Bring across definitions from abi64.h.
4485         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
4486         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
4487         (struct mips_args): Use it.
4488         * config/mips/mips.c (mips_conditional_register_usage): Define.
4490 2002-08-02  Jason Merrill  <jason@redhat.com>
4492         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
4493         * langhooks.c (lhd_expr_size): Define default.
4494         * langhooks.h (struct lang_hooks): Add expr_size.
4495         * explow.c (expr_size): Call it.
4496         * expr.c (store_expr): Don't copy an expression of size zero.
4497         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
4498         to store.
4499         * Makefile.in (builtins.o): Depend on langhooks.h.
4501 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4503         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
4504         * ra-debug.c: Include "tm_p.h".
4505         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
4507 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
4509         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
4510         when not honoring signalling NaNs.
4511         (simplify_ternary_operation): a == b has a definite value
4512         when not honoring NaNs.
4514 2002-08-02  Jason Merrill  <jason@redhat.com>
4516         * gdbinit.in (pct): New macro.
4518 2002-08-01  Stan Shebs  <shebs@apple.com>
4519             Andreas Tobler  <toa@pop.agri.ch>
4521         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
4522         plays nice with Darwin headers.
4523         (_BSD_RUNE_T_DEFINED_): Likewise.
4525 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
4527         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
4528         * cppinit.c (cpp_post_options): Likewise.
4530         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
4531         warning about 'LL' suffix (but not 'ULL' etc) when
4532         -Wno-long-long is in effect.
4534         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
4535         Check for failing time()/localtime(), issue a warning, and
4536         make __TIME__ and __DATE__ expand to fallback strings.
4538         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
4539         and __TIME__ when the date and time cannot be determined.
4541 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
4543         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
4545 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
4547         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
4549 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
4551         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
4552         (mipsisa64sb1el-*-elf*): Likewise.
4553         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
4554         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
4555         (TARGET_SB1, TUNE_SB1): New macros.
4556         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
4557         -mtune flags.
4559 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
4561         * varasm.c (asm_emit_uninitialized): Return false if global BSS
4562         and ASM_EMIT_BSS not supported by target.
4563         (assemble_variable): Do not duplicate uninitialized logic.
4564         Fall through if asm_emit_uninitialized failed.
4566 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
4568         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
4570 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
4572         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
4573         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
4575         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
4576         HOST_BITS_PER_WIDE_INT == 64.
4578 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4580         * df.c (df_insn_table_realloc): Change parameter to unsigned.
4581         * optabs.c (expand_binop): Make variable unsigned.
4582         * simplify-rtx.c (simplify_subreg): Likewise.
4583         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
4585 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4587         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
4589 2002-08-01  Richard Henderson  <rth@redhat.com>
4591         * toplev.c (parse_options_and_default_flags): Don't set
4592         flag_reorder_blocks for -Os.
4594         * config/avr/avr.c (avr_optimization_options): Remove.
4595         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
4596         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
4597         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
4599 2002-08-01  H.J. Lu <hjl@gnu.org>
4600             Richard Henderson  <rth@redhat.com>
4602         * output.h (DECL_READONLY_SECTION): Remove.
4603         (decl_readonly_section): Declare.
4604         * varasm.c (decl_readonly_section): New.
4605         (default_section_type_flags, default_select_section): Use it.
4606         * config/arm/pe.c (arm_pe_unique_section): Likewise.
4607         * config/i386/interix.c (i386_pe_unique_section): Likewise.
4608         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
4609         * config/mcore/mcore.c (mcore_unique_section): Likewise.
4610         * config/mips/mips.c (mips_unique_section): Likewise.
4612 2002-08-01  Richard Henderson  <rth@redhat.com>
4614         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
4615         refers to a subroutine parameter.
4617 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
4619         * varasm.c (assemble_visibility): Strip name encoding.
4621 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
4623         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
4624         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
4625         when there is no frame pointer.
4626         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
4627         registers properly.
4628         * config/ns32k/__unorddf2.c: New file.
4629         * config/ns32k/__unordsf2.c: New file.
4630         * config/ns32k/t-ns32k: New file.
4631         * config.gcc (ns32k-*-netbsd*): Use it.
4633 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
4635         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
4637 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4639         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
4641 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
4643         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
4645 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
4647         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
4649 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4651         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
4652         n_sets): Removed.
4653         (expr_hash_table, set_hash_table): Type changed to ...
4654         (struct hash_table): New type.
4655         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
4656         insert_expr_in_table, insert_set_in_table, compute_hash_table,
4657         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
4658         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
4659         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
4660         (alloc_hash_table): New.
4661         (free_set_hash_table, free_expr_hash_table): Merged to ...
4662         (free_hash_table): New.
4663         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
4664         (compute_hash_table_work): New.
4665         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
4666         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
4667         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
4668         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
4669         hoist_code, one_code_hoisting_pass,
4670         trim_ld_motion_mems): Altered due to changed type of hash tables.
4672 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
4674         * final.c (output_alternate_entry_point):
4675         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
4677 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4679         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
4680         avoid ISO C style function definition.
4682         * expr.c (expand_assignment): Delete unused variable.
4684 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
4686         * c-common.c (cb_register_builtins): Set
4687         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
4688         is given, and to 0 otherwise.
4689         * combine.c (simplify_if_then_else): HONOR_NANS
4690         implies FLOAT_MODE_P.
4692 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4694         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
4695         (cpp_handle_option): Don't handle it.
4696         (print_help): Update.
4697         * doc/cppopts.texi: Update.
4699 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4701         * c-common.c (cb_register_builtins): If C++, define
4702         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
4703         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
4705         * lang-specs.h: Simplify in accordance with new code in
4706         c-common.c.
4708 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4710         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
4711         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
4712         * c-decl.c: Move all warning and flag variables to c-common.c.
4713         * c-format.c: Move all warning variables to c-common.c.
4714         * c-tree.h: Move all warning and flag declarations to c-common.h.
4715         * objc/objc-act.c: Move all warning variables to c-common.c.
4716         (flag_warn_protocol): Rename warn_protocol.
4718 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4720         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
4722 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
4724         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
4725         .section prefix.
4727 2002-07-31  Stan Shebs  <shebs@apple.com>
4729         * config.gcc (i[34567]86-*-darwin*): New configuration.
4730         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
4731         defining.
4732         (TARGET_ENCODE_SECTION_INFO): Ditto.
4733         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
4734         * config/darwin.c (machopic_indirect_data_reference): Remove
4735         setting of RTX_UNCHANGING_P.
4736         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
4737         not to be applied to sums.
4738         * config/i386/t-darwin: New file.
4739         * config/i386/darwin.h: New file.
4740         * config/i386/i386.h (TARGET_MACHO): Add default definition.
4741         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
4742         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
4743         label and not the GOT add.
4744         (constant_address_p): For Mach-O, seeing a CONST is enough.
4745         (legitimate_pic_address_disp_p): Add a Mach-O case.
4746         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
4747         (legitimize_pic_address): Use generic Mach-O code to legitimize.
4748         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
4749         if outputting a difference.
4750         (ix86_output_addr_diff_elt): Add Mach-O case.
4751         (ix86_expand_move): Similarly.
4752         (ix86_expand_call): Similarly.
4753         (current_machopic_label_num): New global.
4754         (machopic_output_stub): New function.
4755         (ix86_value_regno): New function.
4756         (ix86_function_value): Use it instead of VALUE_REGNO.
4757         (ix86_libcall_value): Ditto.
4758         * config/i386/unix.h (VALUE_REGNO): Remove.
4760 2002-07-31  Graham Stott  <grahas@btinternet.com>
4762         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
4763         hash for LABEL_REF's.
4765 2002-07-31  Graham Stott  <grahams@btinternet.com>
4767         * config/rs6000/rs6000.c (spe_init_builtins,
4768         altivec_init_builtins, rs6000_common_init_builtins):
4769         Replace ANSI with K&R function def.
4771 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
4773         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
4774         for CCFPmode.
4776 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
4778         * config/mips/crtn.asm: Don't use __mips16 to determine the
4779         return-address offset.  Define RA to a suitable temporary
4780         register for the return address.
4782 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
4784         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
4785         constraints to 'd'.
4787 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
4789         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
4790         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
4791         patch on 2002-07-29.)
4792         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4794 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4796         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
4797         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
4798         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
4799         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
4800         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
4801         (ASM_GLOBALIZE_LABEL): Delete.
4802         (GLOBAL_ASM_OP): Define.
4804         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
4806         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
4807         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
4809 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
4811         * doc/extend.texi (Hints implementation): Document that GCC
4812         mostly ignores `register'.
4814 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
4816         * flags.h: Declare flag_finite_math_only.
4817         Use it in definition of HONOR_NANS and
4818         HONOR_INFINITIES.
4819         * c-common.c (cb_register_builtins): Emit
4820         __FINITE_MATH_ONLY__ when flag_finite_math_only
4821         is set.
4822         * combine.c (simplify_if_then_else): If
4823         flag_finite_math_only is set, a == b has a
4824         definite value.
4825         * toplev.c: Initialize flag_finite_math_only.
4826         (set_flags_fast_math): Set it on -ffast-math.
4827         (flag_fast_math_set_p): Test it.
4828         * doc/invoke.texi: Document -ffinite-math-only.
4830 2002-07-30  Richard Henderson  <rth@redhat.com>
4832         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
4833         (noce_process_if_block): Likewise.
4835 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
4837         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
4838         Bail out early if false_expr is NULL and we'd crash due to this.
4839         * genemit.c (gen_expand): Recognize return insns even if the return
4840         appears in a parallel.
4841         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
4842         * config/fp-bit.c: Likewise.
4843         * doc/tm.texi: Document it.
4845 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
4846             Zack Weinberg  <zack@codesourcery.com>
4848         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
4849         CODE_FOR_nothing.  Change switch to if.
4850         (rs6000_expand_binop_builtin): Same.
4851         (rs6000_expand_builtin): Expand builtin if target support enabled.
4852         (rs6000_init_builtins): Init builtin if target support enabled.
4853         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
4855 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4857         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
4859 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
4861         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
4863 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
4865         * sh.md (cond_delay_slot): New attribute.
4866         (cbranch delay): Use it for anulled-true case.
4867         (stuff_delay_slot): New pattern.
4868         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
4869         delay slot insn.
4870         (gen_far_branch): Emit stuff_delay_slot pattern.
4872 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
4874         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
4876 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
4878         * fold-const.c: Fix comment typos.
4879         * gcse.c: Likewise.
4880         * reload1.c: Likewise.
4882 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
4884         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
4885         for TARGET_SPE.
4887 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
4889         * c-pretty-print.h (pp_c_statement): Declare.
4890         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
4891         (pp_c_statement): Define.
4893 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4895         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
4896         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
4897         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
4898         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
4899         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
4900         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
4902         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
4903         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
4905 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
4907         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
4908         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
4909         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
4910         (pp_c_expression): Update.
4912 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4914         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
4915         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
4916         * alpha/vms-ld.c (main): Likewise.
4917         * dsp16xx.c (double_reg_to_memory): Likewise.
4918         * mcore.c (mcore_expand_prolog): Likewise.
4919         * cppfiles.c (read_name_map): Likewise.
4920         * gensupport.c (process_rtx, identify_predicable_attribute,
4921         alter_test_for_insn): Likewise.
4922         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
4924 2002-07-29  Roger Sayle  <roger@eyesopen.com>
4926         * builtins.c (expand_builtin):  Change the default behavior to
4927         only issue an error if the builtin function doesn't have a
4928         fallback library call.  Remove several cases handled by the
4929         new default.
4931 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
4933         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
4934         floating point format of the target is IEEE.
4935         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
4936         format of the target is DEC.
4938 2002-07-29  Richard Henderson  <rth@redhat.com>
4940         * unroll.c (verify_addresses): Remove.
4941         (find_splittable_givs): Never split DEST_ADDR givs.
4943 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
4945         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
4946         is exhaustive.
4947         (Files): Improve documentation on generated source files.
4949         * doc/extend.texi (Translation implementation): Document what
4950         diagnostics look like.
4951         (Identifiers implementation): Document that there's normally no
4952         limit on identifier names.
4953         (Integers implementation): Document two's complement.
4954         (Hints implementation): Document that GCC honors 'inline', mostly.
4955         (Preprocessing directives implementation): Document that GCC
4956         requires the current time.
4958 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
4960         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
4961         (pp_initializer): New macro.
4962         (pp_c_initializer): Declare.
4963         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
4964         (pp_c_initializer): Define.
4965         (pp_c_initializer_list): New function.
4966         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
4967         VECTOR_CST, CONSTRUCTOR.
4968         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
4969         IMAGPART_EXPR.
4970         (pp_c_cast_expression): Handle FLOAT_EXPR.
4971         (pp_c_assignment_expression): Handle INIT_EXPR.
4972         (pp_c_expression): Update.
4974 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
4976         * objc/objc-act.c (objc_init): Return immediately if filename
4977         is NULL.
4979 2002-07-29  Eric Christopher  <echristo@redhat.com>
4981         * config/mips/elf.h: Remove ecoff.h and gofast includes.
4982         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
4983         (SDB_DEBUGGING_INFO): Undefine.
4984         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
4985         (PUT_SDB_SIZE): Remove.
4986         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
4987         (STARTFILE_SPEC): Add isa3264 define.
4988         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
4989         * config/mips/ecoff.h: Remove. and here...
4990         * config/mips/iris3.h: and here...
4991         * config/mips/sni-svr4.h: and here...
4992         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
4993         Add assembler -mmdebug options for non-dwarf debugging.
4994         * config/mips/r3900.h: Remove debug info defines.
4995         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
4996         * config/mips/isa3264.h: Ditto.
4997         * config/mips/t-isa3264: Fix up for file removal and gofast configure
4998         change.
4999         * config/mips/t-elf: Ditto.
5000         * config/mips/t-ecoff: Ditto.
5001         * config/mips/t-r3900: Ditto.
5002         * config/mips/t-iris5-6: Ditto.
5003         * config/mips/t-isa3264: Ditto.
5004         * config/mips/t-linux: Remove.
5005         * config/mips/t-netbsd: Remove.
5006         * config/mips/t-mips: New file.
5007         * config/mips/t-gofast: Ditto.
5008         * config/mips/netbsd.h: Remove unnecessary undefines.
5009         * config/mips/linux.h: Remove #include of mips.h.
5010         * config.gcc: Add mips.h include for elf targets. Remove tm_file
5011         for ecoff. Add gofast configure option for mips.
5013 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
5015         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
5016         linker scripts use STARTUP directives consistently.
5017         * configure: Regenerate.
5018         * config.in: Regenerate.
5019         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
5020         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
5021         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5022         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
5023         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
5024         will be the same.
5026 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5028         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
5030 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5032         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
5034 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
5036         * config/rs6000/rs6000.md: Move altivec patterns from here...
5038         * config/rs6000/altivec.md: ...to here.
5040 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5042         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
5044 2002-07-29  Richard Henderson  <rth@redhat.com>
5046         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
5047         set_mem_attributes and add BITPOS argument.  Subtract it from
5048         OFFSET when same is adjusted.
5049         (set_mem_attributes): New wrapper function.
5050         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
5051         remove offset adjustment hack.
5052         * expr.h (set_mem_attributes_minus_bitpos): Declare.
5054 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
5056         * Makefile.in (C_OBJS): Include c-pretty-print.o
5057         (c-pretty-print.o): Add depency rule.
5058         * pretty-print.h: Add more macros.
5059         * c-pretty-print.c: New file.
5060         * c-pretty-print.h: Likewise.
5062 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5064         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
5065         constants to __ev64_s32__.
5066         (__internal_ev_mwhgsmian): Same.
5067         (__internal_ev_mwhgsmfan): Same.
5068         (__internal_ev_mwhgssfan): Same.
5069         (__internal_ev_mwhgumiaa): Same.
5070         (__internal_ev_mwhgsmiaa): Same.
5071         (__internal_ev_mwhgsmfaa): Same.
5072         (__internal_ev_mwhgssfaa): Same.
5074 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
5076         * varasm.c (assemble_variable): Narrow test for uninitialized
5077         without BSS target support.
5079 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
5081         * profile.c: Add file comment describing the overall algorithm and
5082         structures.
5083         (struct edge_info): Add comments.
5084         (struct bb_info): Add comments.
5085         * basic-block.h (EDGE_*): Add comments.
5086         * doc/gcov.texi (Gcov Data Files): Document bit flags.
5088 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
5090         * config/xtensa/elf.h, config/xtensa/linux.h
5091         (TARGET_OS_CPP_BUILTINS): Define.
5092         (CPP_PREDEFINES): Remove.
5093         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
5094         (CPP_SPEC): Remove.
5096 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
5098         * gensupport.c: Include hashtab.h.
5099         (insn_elision, condition_table, hash_c_test, cmp_c_test,
5100         maybe_eval_c_test): New routines and data structures to
5101         support insn elision.
5102         (init_md_reader): Read and initialize the condition_table.
5103         (read_md_rtx): Discard insn patterns whose C test is provably
5104         always false.
5105         * gensupport.h: Declare new functions and data structures.
5107         * genconditions.c, dummy-conditions.c: New files.
5108         * Makefile.in: Build genconditions; run it to construct
5109         insn-conditions.c; build that and link it into most gen*
5110         programs.
5111         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
5112         (GEN): Delete, unused.
5113         (STAGESTUFF): Update.
5115         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
5116         CODE_FOR_nothing for all elided patterns.
5117         (main): Tweaked to support this.
5118         * genflags.c (gen_proto): Emit a static inline generator
5119         function here for all elided patterns, which simply returns
5120         NULL_RTX.
5121         (gen_insn): Do not define HAVE_xxx for elided patterns.
5122         (main): Tweaked to support this.  No need to forward-declare
5123         struct rtx_def.
5124         * genrecog.c: Do not bother emitting the C test if it's known
5125         to be true at compile time.
5127 2002-07-29  Mike Stump  <mrs@apple.com>
5129         * config.gcc (target_gtfiles): Initialize, as otherwise cross
5130         compilers hosted on powerpc-apple-darwin6.0 won't even build.
5132 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
5134         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
5135         remove clobber of LR.
5136         (sibcall_insn, sibcall_value_insn): Update accordingly.
5137         (sibcall_epilogue): Remove debugging comment from assembler stream.
5139 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
5141         * pretty-print.h: Define more macros.
5142         * diagnostic.h (output_formatted_integer): Moved from...
5143         * diagnostic.c: ... here.
5145 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5147         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
5149 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
5151         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
5152         arguments.  Always use ".-symbol" as expression argument.
5153         * doc/tm.texi: Update to match.  Document requirement for
5154         ".size symbol, .-symbol" to be acceptable to assembler.
5156         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
5157         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
5158         config/i386/freebsd-aout.h, config/i386/sco5.h,
5159         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
5160         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
5162 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5164         * Makefile.in (gengtype-lex.c): Fix error in last change.
5166         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
5167         backslash.
5169         * Makefile.in (vmsdbgout.o): Depend on function.h.
5171         * vmsdbgout.c: Include function.h.
5173 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
5175         * prefix.c (update_path): Don't strip single `.' path components
5176         unless stripping a later `..' component.  Exit loop as soon as
5177         a valid path is found.
5179 2002-07-27  Roger Sayle  <roger@eyesopen.com>
5181         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
5182         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
5183         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
5184         floating point unordered comparisons (e.g. __builtin_isgreater)
5185         as const, and leave the remaining GCC_BUILTINs unchanged.
5187         * c-decl.c (builtin_function): No need to explicitly mark
5188         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
5190 2002-07-27  Roger Sayle  <roger@eyesopen.com>
5192         * Makefile.in: rtlanal.o now depends upon real.h.
5194         * flags.h [flag_signaling_nans]: New flag.
5195         [HONOR_SNANS]: New macro.
5197         * toplev.c [flag_signaling_nans]: Initialize to false.
5198         (f_options): Add processing for "-fsignaling-nans".
5199         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
5200         (process_options): flag_signaling_nans implies flag_trapping_math.
5202         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
5203         when -fsignaling-nans.  First step to implementing WG14's N965.
5205         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
5206         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
5207         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
5209         * simplify-rtx.c (simplify_relational_operation): Conditionalize
5210         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
5212         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
5213         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
5214         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
5215         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
5216         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
5218         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
5220 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5222         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
5223         * gengtype-lex.l (YY_USE_PROTOS): Undef.
5224         (YY_DECL): Define.
5226 2002-07-27  Roger Sayle  <roger@eyesopen.com>
5228         * doc/invoke.texi: Document that both -fno-builtin-foo and
5229         -fno-builtin are supported by the g++ front-end.
5231 2002-07-27  Stan Shebs  <shebs@apple.com>
5233         * configure.in: Rename config_gtfiles to target_gtfiles.
5234         * configure: Regenerate.
5235         * doc/gty.texi: Update reference.
5236         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
5237         instead of appending to it.
5239 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
5241         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
5242         vectors are split into two registers.
5243         (function_arg): Same.
5245 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
5247         * pa.md (extv): Check predicates before emitting extv_32.
5249 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
5251         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
5252         (rs6000_traceback): New var.
5253         (rs6000_override_options): Set rs6000_traceback.
5254         (rs6000_output_function_epilogue): Implement traceback options.
5255         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
5256         (rs6000_traceback_name): Declare.
5258         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
5259         label reference when NO_PROFILE_COUNTERS.
5261 2002-07-26  Jason Merrill  <jason@redhat.com>
5263         * function.c (assign_parms): Handle frontend-directed pass by
5264         invisible reference.
5266 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
5268         * doc/cppopts.texi: Update.
5270 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
5272         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
5273         warnings on assertions.
5275 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
5277         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
5278         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
5279         RID_COMPL): Remove.
5280         * c-parse.in (rid_to_yy): Similarly.
5282 2002-07-26  Jason Merrill  <jason@redhat.com>
5284         * c-dump.c: Resurrect.
5285         * tree-dump.c: Move C-specific stuff to c-dump.c.
5286         * c-common.h: Declare c_dump_tree.
5287         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
5288         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
5289         (c-dump.o): New rule.
5291 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
5293         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
5294         PowerPC64.  Replace "T" and "S" constraints with "n" when the
5295         predicate will do.  Formatting fixes.
5296         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
5297         as for extzvsi_internal1.
5299 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5301         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
5302         DERIV_END_LABEL_FMT): Remove.
5303         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
5305 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5307         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
5308         Remove.
5310 2002-07-25  Stan Shebs  <shebs@apple.com>
5312         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
5313         local var dwarfp.
5314         (output_compiler_stub): Remove unused locals.
5315         (output_call): Always initialize line number.
5317 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
5319         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
5320         * sh.md (truncdiqi2, movqi_media): Likewise.
5322 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5324         * gcse.c (obstack_chunk_alloc): Remove.
5325         (gcse_alloc): Fix to count allocated bytes.
5326         * collect2.c (SYMBOL__MAIN): Remove.
5328 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5330         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
5331         HAVE_TARGET_EXECUTABLE_SUFFIX.
5333 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
5335         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
5336         SIZE, EXPR and OFFSET.
5338 2002-07-25  Richard Henderson  <rth@redhat.com>
5340         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
5341         in ARRAY_REF of DECL_P case.
5343 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
5345         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
5346         description.  Document -mips32, -mips64, and the associated -march
5347         values.  Describe the "mipsN" arguments to -march.  Say that the
5348         -mipsN options are equivalent to -march.  Reword the description
5349         of default type sizes.
5350         * toplev.h (target_flags_explicit): Declare.
5351         * toplev.c (target_flags_explicit): New var.
5352         (set_target_switch): Update target_flags_explicit.
5353         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
5354         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
5355         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
5356         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
5357         * config/mips/mips.h (mips_cpu_info): New struct.
5358         (mips_cpu_string, mips_explicit_type_size_string): Remove.
5359         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
5360         (MIPS_CPP_SET_PROCESSOR): New macro.
5361         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
5362         Define _MIPS_ARCH and _MIPS_TUNE.
5363         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
5364         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
5365         MIPS_ISA_DEFAULT were already defined.
5366         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
5367         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
5368         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
5369         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
5370         (ABI_GAS_ASM_SPEC): Remove.
5371         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
5372         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
5373         Invoke %(asm_abi_default_spec) if no ABI was specified.
5374         (CC1_SPEC): Remove ISA -> register-size rules.
5375         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
5376         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
5377         (mips_cpu_string, mips_explicit_type_size_string): Remove.
5378         (mips_cpu_info_table): New array.
5379         (mips_set_architecture, mips_set_tune): New fns.
5380         (override_options): Rework to make -mipsN equivalent to -march.
5381         Detect more erroneous cases, including those removed from CC1_SPEC.
5382         Don't change the ABI based on architecture, or vice versa.
5383         Unify logic with GAS.
5384         (mips_asm_file_start): Get architecture name from mips_arch_info.
5385         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
5386         (mips_parse_cpu): Take the name of the option as argument.  Handle
5387         'from-abi'.  Raise an error if the option is wrong.
5388         (mips_cpu_info_from_isa): New fn.
5390 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
5392         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
5393         (tablejump_mips162): Likewise.
5395 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
5397         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
5398         int_mode_for_mode.
5400 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
5402         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
5403         complaining.
5404         * c-common.h (c_sizeof): Adjust definition.
5405         (c_alignof): Likewise.
5406         * c-tree.h (c_sizeof_nowarn): Now macro.
5407         * c-typeck.c (c_sizeof_nowarn): Remove definition.
5409 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5411         * c-decl.c (c_decode_option): No need to handle switches
5412         cpplib handles.
5414 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
5416         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
5417         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
5418         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
5419         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
5421         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
5422         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
5423         config/cris/aout.h, config/i386/freebsd-aout.h,
5424         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
5425         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
5426         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
5427         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
5428         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
5429         config/xtensa/elf.h, config/xtensa/linux.h:
5430         Use the new macros.
5431         Where possible, remove redundant definitions of SIZE_ASM_OP,
5432         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
5434 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
5436         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
5437         TARGET_ISEL, and TARGET_FPRS.
5439         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5440         -mabi=spe, -mabi=no-spe, and -misel=.
5442         * config/rs6000/rs6000-protos.h: Add output_isel.
5443         Move vrsave_operation prototype here.
5445         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
5446         (smaxsi3): Same.
5447         (uminsi3): Same.
5448         (umaxsi3): Same.
5449         (abssi2_nopower): Disallow when TARGET_ISEL.
5450         (*ne0): Same.
5451         (negsf2): Change to expand and rename old pattern to *negsf2.
5452         (abssf2): Change to expand and rename old pattern to *abssf2.
5454         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
5455         fixunssfsi2.
5457         Change patterns that check for TARGET_HARD_FLOAT or
5458         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
5460         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
5461         rs6000_isel, rs6000_fprs, rs6000_isel_string.
5462         (rs6000_override_options): Add 8540 case to
5463         processor_target_table.
5464         Set rs6000_isel for the 8540.
5465         Call rs6000_parse_isel_option.
5466         (enable_mask_for_builtins): New.
5467         (rs6000_parse_isel_option): New.
5468         (rs6000_parse_abi_options): Add spe and no-spe.
5469         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
5470         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
5471         for TARGET_HARD_FLOAT.
5472         Add case for SPE_VECTOR_MODE.
5473         (rs6000_legitimize_reload_address): Handle SPE vector modes.
5474         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
5475         vector modes.
5476         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
5477         (rs6000_emit_move): Check for TARGET_FPRS.
5478         Add cases for SPE vector modes.
5479         (function_arg_boundary): Return 64 for SPE vector modes.
5480         (function_arg_advance): Check for TARGET_FPRS and
5481         Handle SPE vectors.
5482         (function_arg): Same.
5483         (setup_incoming_varargs): Check for TARGET_FPRS.
5484         (rs6000_va_arg): Same.
5485         (struct builtin_description): Un-constify mask field.  Move up in
5486         file.
5487         (bdesc_2arg): Un-constify and add SPE builtins.
5488         (bdesc_1arg): Same.
5489         (bdesc_spe_predicates): New.
5490         (bdesc_spe_evsel): New.
5491         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
5492         (rs6000_expand_binop_builtin): Same.
5493         (bdesc_2arg_spe): New.
5494         (spe_expand_builtin): New.
5495         (spe_expand_predicate_builtin): New.
5496         (spe_expand_evsel_builtin): New.
5497         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
5498         (rs6000_init_builtins): Initialize SPE builtins.  Call
5499         rs6000_common_init_builtins.
5500         (altivec_init_builtins): Move all non-altivec builtin code to...
5501         (rs6000_common_init_builtins): ...here.  New function.
5502         (branch_positive_comparison_operator): Allow NE code for SPE.
5503         (ccr_bit): Return correct ccr bit for SPE fp.
5504         (print_operand): Emit crnor in 'D' case for SPE.
5505         New case 't'.
5506         Add SPE code for 'y' case.
5507         (rs6000_generate_compare): Generate rtl for SPE fp.
5508         (output_cbranch): Handle SPE hard floats.
5509         (rs6000_emit_cmove): Handle isel.
5510         (rs6000_emit_int_cmove): New.
5511         (output_isel): New.
5512         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
5513         64-bits for SPE.
5514         (debug_stack_info): Add SPE info.
5515         (gen_frame_mem_offset): New.
5516         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
5517         Change mode of frame pointer, when saving it, to Pmode.
5518         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
5519         Misc cleanups and use gen_frame_mem_offset when appropriate.
5521         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
5522         (TARGET_SPE_ABI): New.
5523         (TARGET_SPE): New.
5524         (TARGET_ISEL): New.
5525         (TARGET_FPRS): New.
5526         (FIXED_SCRATCH): New.
5527         (RTX_COSTS): Add PROCESSOR_PPC8540.
5528         (ASM_CPU_SPEC): Add case for 8540.
5529         (TARGET_OPTIONS): Add isel= case.
5530         (rs6000_spe_abi): New.
5531         (rs6000_isel): New.
5532         (rs6000_fprs): New.
5533         (rs6000_isel_string): New.
5534         (UNITS_PER_SPE_WORD): New.
5535         (LOCAL_ALIGNMENT): Adjust for SPE.
5536         (HARD_REGNO_MODE_OK): Same.
5537         (DATA_ALIGNMENT): Same.
5538         (MEMBER_TYPE_FORCES_BLK): New.
5539         (FIRST_PSEUDO_REGISTER): Set to 113.
5540         (FIXED_REGISTERS): Add SPE registers.
5541         (reg_class): Same.
5542         (REG_CLASS_NAMES): Same.
5543         (REG_CLASS_CONTENTS): Same.
5544         (REGNO_REG_CLASS): Same.
5545         (REGISTER_NAMES): Same.
5546         (DEBUG_REGISTER_NAMES): Same.
5547         (ADDITIONAL_REGISTER_NAMES): Same.
5548         (CALL_USED_REGISTERS): Same.
5549         (CALL_REALLY_USED_REGISTERS): Same.
5550         (SPE_ACC_REGNO): New.
5551         (SPEFSCR_REGNO): New.
5552         (SPE_SIMD_REGNO_P): New.
5553         (HARD_REGNO_NREGS): Adjust for SPE.
5554         (VECTOR_MODE_SUPPORTED_P): Same.
5555         (REGNO_REG_CLASS): Same.
5556         (FUNCTION_VALUE): Same.
5557         (LIBCALL_VALUE): Same.
5558         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
5559         (SPE_VECTOR_MODE): New.
5560         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
5561         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
5562         (rs6000_stack): Add spe_gp_size, spe_padding_size,
5563         spe_gp_save_offset.
5564         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
5565         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
5566         (SPE_CONST_OFFSET_OK): New.
5567         (rs6000_builtins): Add SPE builtins.
5569         * testsuite/gcc.dg/ppc-spe.c: New.
5571         * config/rs6000/eabispe.h: New.
5573         * config/rs6000/spe.h: New.
5575         * config/rs600/spe.md: New.
5577         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5578         __SIMD__ for TARGET_SPE.
5580         * config.gcc: Add powerpc-*-eabispe* case.
5581         Add spe.h to user headers for powerpc.
5583 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
5585         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
5586         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5587         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
5589 2002-07-24  Richard Henderson  <rth@redhat.com>
5591         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
5592         form when not optimizing.
5594 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
5596         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
5597         thread_pointer_rtx as unchanging.
5599 2002-07-24  Michael Matz  <matz@suse.de>
5601         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
5602         (free_reg): Use it.
5604 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
5606         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
5607         pattern.
5608         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
5609         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
5611 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
5613         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
5614         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5615         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
5617 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
5619         * toplev.c (rest_of_compilation): Dump loops before clobbering
5620         the structure.
5622 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
5624         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
5626 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
5628         PR optimization/7291
5629         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
5630         problem on x86_64.
5632 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
5634         * pretty-print.h: Add macros from cp/error.c
5636 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
5638         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
5639         (mask64_2_operand): Declare.
5640         (build_mask64_2_operands): Declare.
5641         (and64_2_operand): Declare.
5642         (extract_MB): Declare.
5643         (extract_ME): Declare.
5644         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
5645         CONST_DOUBLE code.
5646         (mask_operand_wrap): New insn predicate.
5647         (mask64_2_operand): Likewise.
5648         (and64_2_operand): Likewise.
5649         (build_mask64_2_operands): New function.
5650         (extract_MB): New function.
5651         (extract_ME): New function.
5652         (print_operand <case m,M>): Use extract_MB and extract_ME.
5653         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
5654         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
5655         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
5656         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
5657         * config/rs6000/rs6000.md (andsi3_internal3): New
5658         (andsi3_internal3+1): Enable split for powerpc64.
5659         (andsi3_internal3+2): New split.
5660         (andsi3_internal4): Renamed old andsi3_internal3.
5661         (andsi3_internal5): New.
5662         (andsi3_internal5+1): Enable split for powerpc64.
5663         (andsi3_internal5+2): New split.
5664         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
5665         (anddi3): Handle 't' constraint.
5666         (anddi3+1): New split.
5667         (anddi3_internal2): Handle 't' constraint.
5668         (anddi3_internal2+1): New split.
5669         (anddi3_internal3): Handle 't' constraint.
5670         (anddi3_internal3+1): New split.
5672 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
5674         * config/rs6000/rs6000.md: Remove scratch reg on insns using
5675         addze and similar (plus (comparison r1 r2) r3) insns.  Add
5676         missing scratch reg in one case.  Formatting fixes.
5678 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
5680         * cppexp.c (parse_defined): Mark macro used.
5681         * cpphash.h (struct cpp_macro): New member "used".
5682         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
5683         (struct cpp_reader): New member.
5684         * cppinit.c (cpp_finish_options): Set first_unused_line.
5685         (cpp_finish): Warn of unused macros if requested.
5686         (OPT_TABLE): New switches.
5687         (cpp_handle_option): Handle them.
5688         * cpplib.c (do_undef): Warn if macro unused.
5689         (do_ifdef, do_ifndef): Mark macro used.
5690         * cpplib.h (struct cpp_options): New member.
5691         * cppmacro.c (_cpp_warn_if_unused_macro): New.
5692         (enter_macro_context): Mark macro used.
5693         (_cpp_create_definition): Mark macro unused; warn if unused
5694         when redefined.
5695         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
5696         Mark macros used.
5697         * doc/cppopts.texi: Update.
5699 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5701         * dwarf2out.c (SECTION_ASM_OP,
5702         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5703         * system.h (SECTION_ASM_OP): Poison.
5704         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
5705         * config/alpha/alpha-interix.h, config/mips/linux.h
5706         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5707         * config/mmix/mmix-protos.h, config/mmix/mmix.c
5708         (mmix_asm_output_define_label_difference_symbol): Remove.
5709         * config/mmix/mmix.h
5710         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5711         * doc/tm.texi: Remove documentation.
5713 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
5715         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
5716         (constrain_operands): Likewise.
5717         * regclass.c (record_reg_classes): Likewise.
5718         * reload.c (find_reloads): Likewise.
5719         * doc/md.texi: Likewise.
5721         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
5722         * simplify-rtx.c (simplify_subreg): When converting to a non-int
5723         mode, try to convert to an integer mode of matching size first.
5725         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
5726         from individual subregs, check that each subreg has been generated
5727         sucessfully.
5729 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5731         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
5732         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
5733         FOR_EACH_BB_IN_SBITMAP): Remove.
5734         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
5735         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
5736         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
5737         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
5738         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
5739         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
5741 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
5743         * pretty-print.h: New file.
5745 2002-07-23      Paul Koning     <pkoning@equallogic.com>
5747         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
5748         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
5749         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
5750         (TARGET_G_FLOAT): Default to 0 if not defined.
5751         (ieeetoe): New, common routine to convert target format floats
5752         to internal form.
5753         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
5754         vs. others.
5755         (e113toe): Change to use ieeetoe.
5757 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5759         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
5760         IBM.
5761         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
5762         (e64toe): Remove special cases for DEC and IBM. Remove support for
5763         ARM_EXTENDED_IEEE_FORMAT.
5764         (e24toe): Remove special cases for DEC.
5765         (significand_size): Simplify. Indent.
5766         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
5767         (etoieee, toieee): New.
5768         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
5769         etoieee and toieee for IEEE arithmetic.
5771 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
5773         * doc/extend.texi: Say ISO C90, not ISO C89.
5774         * doc/invoke.texi: Likewise.
5775         * doc/standards.texi: Likewise.
5777 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
5779         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
5780         Fix permutation of conversion and plus/mult.
5781         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
5782         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
5783         (expand_builtin_strncpy) Ditto.
5784         (expand_builtin_memset) Ditto.
5786 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
5788         Fix PR/7363:
5789         * c-common.c (c_sizeof_or_alignof_type): New function.
5790         (c_alignof): Remove definition.
5791         * c-common.h (c_sizeof, c_alignof): Define as macros.
5792         (c_sizeof_or_alignof_type): Declare.
5793         (my_friendly_assert): Moved from cp/cp-tree.h
5794         * c-typeck.c (c_sizeof): Remove definition.
5796 2002-07-23  Jan Hubicka  <jh@suse.cz>
5798         * gcse.c (try_replace_reg): Use num_changes_pending.
5799         * recog.c (num_changes_pending): New function.
5800         (validate_replace_src): Use validate_repalce_src_group.
5801         (validate_replace_src_group): New.
5802         * recog.h (validate_repalce_src_group): New.
5803         (num_changes_pending): Likewise.
5805 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
5807         * calls.c (emit_library_call_value_1): If
5808         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
5809         libcall, const call nor pure call.
5811 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5813         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
5815 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5817         * vmsdbgout.c (SECTION_ASM_OP): Remove.
5819 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5821         * config/i386/i386.c (AT_BP): Remove.
5823 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5825         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
5826         Default definition.
5827         * gcse.c: Don't define obstack_chunk_free.
5828         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
5829         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
5830         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
5831         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
5832         Don't define obstack macros.
5834 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
5836         PR target/6744
5837         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
5838         ASM_OPERANDS instructions.
5840 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
5842         PR target/7361
5843         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
5844         constant addresses only on 68HC12.
5846 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
5848         * cppfiles.c (stack_include_file): Correct test of whether
5849         a dependency should be output.
5851 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
5853         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
5855 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
5857         * arm.md (movqi): If optimizing and we can create pseudos, use
5858         a ZERO_EXTEND to load from memory, then copy the result into the
5859         target.
5860         (movhi): Likewise, but only for ARMv4.
5862 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
5864         * ssa-ccp.c (PHI_PARMS): Remove.
5866 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
5868         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
5869         on big-endian targets.
5871 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5873         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
5874         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
5875         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
5876         New formatting macros.
5878         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
5880 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
5882         * rtlanal.c (subreg_regno_offset): Return correct offset for
5883         big endian paradoxical subregs.
5885         * optabs.c (expand_vector_unop): Don't expand using sub_optab
5886         if we got the wrong mode.
5888         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
5889         * genrecog.c (write_switch, write_cond): Use it.
5890         * genemit.c (gen_exp): Likewise.
5892 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
5894         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
5896 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
5898         * c-decl.c (build_compound_literal): Defer compound literal decls
5899         until until file end to emit them only if they are actually used.
5901 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5903         * ra-build.c (check_conflict_numbers): Hide unused function.
5904         (livethrough_conflicts_bb): Avoid automatic aggregate
5905         initialization.
5906         (parts_to_webs_1): Avoid `U' integer constant modifier.
5907         (conflicts_between_webs): Wrap a variable in the macro controlling
5908         its usage.
5909         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
5910         (dump_igraph, dump_graph_cost): Avoid string concatenation
5911         (dump_static_insn_cost): Avoid automatic aggregate
5912         initialization.
5913         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
5914         initialization.
5915         (dump_cost): Avoid string concatenation
5917 2002-07-21  Richard Henderson  <rth@redhat.com>
5919         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
5920         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
5922 2002-07-21  Richard Henderson  <rth@redhat.com>
5924         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
5925         that are not unrolled completely.
5927 2002-07-21  Richard Henderson  <rth@redhat.com>
5929         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
5930         * loop.c (strength_reduce): Update.
5931         * toplev.c (rest_of_compilation): Do unrolling in the first
5932         loop pass, not the second.
5934 2002-07-21  Richard Henderson  <rth@redhat.com>
5936         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
5937         when flag_argument_noalias == 2.
5938         * alias.c (nonoverlapping_memrefs_p): Handle that.
5939         * print-rtl.c (print_mem_expr): Likewise.
5941 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
5943         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
5944         instead of __negdi2 directly.
5946 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5948         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
5949         * function.c (SYMBOL__MAIN): Remove definition.
5950         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
5951         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
5952         * profile.c (GCOV_INDEX_TO_BB): Remove.
5953         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
5954         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
5956 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5958         * c-lex.c (GET_ENVIRONMENT): Remove.
5959         * collect2.c (GET_ENV_PATH_LIST): Remove.
5960         (prefix_from_env): Use GET_ENVIRONMENT.
5961         * cppinit.c (GET_ENV_PATH_LIST): Remove.
5962         (init_standard_includes): Use GET_ENVIRONMENT.
5963         * defaults.h (GET_ENVIRONMENT): Define here if not already.
5964         * gcc.c (GET_ENV_PATH_LIST): Remove.
5965         (make_relative_prefix, process_command): Update.
5966         * protoize.c (GET_ENV_PATH_LIST): Remove.
5967         (do_processing): Update.
5969 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
5971         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
5972         (grokdeclarator): Likewise.
5973         * c-format.c (C_STD_NAME): Likewise.
5974         * c-lex.c (interpret_integer): Likewise.
5975         * c-typeck.c (build_array_ref): Likewise.
5976         * cpplex.c (_cpp_lex_direct): Likewise.
5977         * toplev.c (documented_lang_options): Likewise.
5979 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5981         * c-format.c (T99_I, T99_UI): Remove.
5983 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5985         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
5987 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5989         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
5990         do_local_cprop.
5992 2002-07-21  Andreas Jaeger  <aj@suse.de>
5994         * reload1.c (fixup_abnormal_edges): Remove unused variable.
5996 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
5998         Improvements for the ifcvt pass from Michael Meissner, with patches
5999         by Richard Sandiford <rsandifo@redhat.com>
6000         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
6001         * ifcvt.c (cond_exec_changed_p): New static variable.
6002         (last_active_insn): New function, renamed from last_active_insn_p
6003         and changed to return the last active insn in a basic block. All
6004         callers updated.
6005         (block_fallthru): New function.
6006         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
6007         IFCVT_MODIFY_INSN.  All callers updated.
6008         Return false if START or END are NULL.
6009         Handle case where we're processing an insn that is already
6010         conditional.
6012         (noce_process_if_block): CE_INFO argument rather than
6013         multiple args containing the involved basic blocks.  All callers
6014         changed.
6015         (process_if_block, merge_if_block, find_if_block,
6016         cond_exec_process_if_block): Likewise.
6018         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
6019         changed.
6020         Use new function last_active_insn to simplify some code.
6021         New code to handle multiple tests.
6022         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
6023         cond_exec_changed_p to TRUE.
6025         (process_if_block): New code to handle multiple tests.
6026         (merge_if_block): Likewise.
6027         (find_if_header): New arg PASS.  Changed to return the currently
6028         processed basic block or NULL instead of true/false. All callers
6029         changed.
6030         Call IFCVT_INIT_EXTRA_FIELDS.
6031         (block_jumps_and_fallthru_p): New function.
6032         (find_if_block): Discover opportunities to convert multiple tests.
6033         Add additional debugging output.
6034         Update the ce_info structure before returning.
6036         (if_convert): Run multiple passes of if-conversion.
6037         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
6038         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
6039         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
6040         these macros.
6042 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6044         * gcse.c: Include cselib.h
6045         (constptop_register): Break out from ...
6046         (cprop_insn): ... here; kill basic_block argument.
6047         (do_local_cprop, local_cprop_pass): New functions.
6048         (one_cprop_pass): Call local_cprop_pass.
6050 2002-07-20  Roger Sayle  <roger@eyesopen.com>
6052         * simplify-rtx.c (simplify_relational_operation): Optimize
6053         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
6055 2002-07-20  Michae Matz  <matz@suse.de>
6057         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
6059 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
6061         * cppexp.c (struct op): Add token pointer.
6062         (check_promotion, CHECK_PROMOTION): New.
6063         (optab): Update.
6064         (_cpp_parse_expr): Update, use token pointer of struct op.
6065         (reduce): Warn about change of sign owing to promotion.
6066         * cppinit.c (cpp_handle_option): New warning if -Wall.
6067         * cpplib.h (struct cpp_options): New member.
6069 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
6071         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
6072         fpu list.  Separate Power4 compare and delayed_compare.  Correct
6073         Power4 fpcompare.
6074         (fix_truncdfsi2_internal): Restore FPR preference.
6075         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
6076         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
6078 2002-07-19  Momchil Velikov <velco@fadata.bg>
6080         * reload1.c (reload_as_needed): Duplicate oldpat.
6082 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
6084         PR optimization/7130
6085         * loop.h (struct loop_info): Add "preconditioned".
6086         * unroll.c (unroll_loop): Set it.
6087         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
6089 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
6091         * rtl.def (CODE_LABEL): Remove slot 8.
6092         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
6093         (LABEL_ALTERNATE_NAME): Delete.
6094         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
6095         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
6097         * final.c (output_alternate_entry_point): New.
6098         (final_scan_insn): Use it instead of
6099         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
6100         of a case label being an alternate entry point.
6102         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
6103         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
6104         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
6105         (field deleted).
6106         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
6108         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
6109         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
6110         * doc/tm.texi: Delete documentation of
6111         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
6113 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6115         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
6116         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
6117         (LINK_SPEC): Define.
6118         (STARTFILE_SPEC): Define.
6119         (ENDFILE_SPEC): Define.
6121         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
6122         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
6124         * config/mips/iris6-o32-gas.h: New file.
6125         * config.gcc (mips-sgi-irix6*o32): Use it.
6127         * config/mips/t-iris5-gas: New file.
6128         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
6130 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
6132         * cppexp.c (ALWAYS_EVAL): Remove.
6133         (optab, reduce): Always evaluate.
6134         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
6135         only if not skipping evaluation.
6137 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6139         * config/avr/avr.c (debug_hard_reg_set): Remove.
6141 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
6143         * gcc.c (cpp_options): Include "%1" (cc1_spec).
6145 2002-07-19  Richard Henderson  <rth@redhat.com>
6147         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
6149 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
6151         * prefix.c (update_path): Don't zap single `.' path components
6152         unless followed by another `.' and fix typo last patch.
6154 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
6156         * cppexp.c (cpp_num_mul): Remove unused parameter.
6157         (UNARY, BINARY, OTHER, binary_handler): Remove.
6158         (ALWAYS_EVAL): New.
6159         (optab): Update.
6160         (reduce): Refactor to a large switch, don't use a function
6161         pointer.
6163 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
6165         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
6167 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
6169         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
6170         (sh_expand_binop_v2sf): Likewise.
6171         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
6172         (int_gpr_dest, trunc_hi_operand): New functions.
6173         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
6174         trunc_hi_operand.
6175         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
6176         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
6177         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
6178         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
6179         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
6180         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
6181         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
6182         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
6183         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
6184         (movsf_ie+1): Likewise.
6185         (loaddi_trunc): Use int_gpr_dest predicate.
6186         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
6187         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
6188         (casesi_worker_0+[12], casesi_worker): Likewise.
6189         (shcompact_preserve_incoming_args): Likewise.
6190         (mov_nop): Use any_register_operand predicate.
6191         (mperm_w0): Use trunc_hi_operand predicate.
6193 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6195         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
6196         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
6197         numbering.
6199 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6201         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
6203 2002-07-18  Richard Henderson  <rth@redhat.com>
6205         PR optimization/7147
6206         * ifcvt.c (noce_get_condition): Make certain that the condition
6207         is valid at JUMP.
6209 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
6211         * sh.c (barrier_align, push): Shut up compiler warnings.
6212         (initial_elimination_offset,sh_media_init_builtins): Likewise.
6213         (reg_no_subreg_operand): Delete.
6215 2002-07-17  Bo Thorsen  <bo@suse.de>
6217         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
6218         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
6219         (STARTFILE_SPEC): Remove hardcoded library paths.
6220         (ENDFILE_SPEC): Likewise.
6222 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
6224         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
6226         * gcse.c (try_replace_reg): Do not return false positives.
6228 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
6230         * prefix.c: (update_path): Strip ".." components when prior dir
6231         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
6233         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
6234         (ASM_OUTPUT_REG_POP): Likewise.
6236 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
6238         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
6239         adjustments to first_reg for profiling case.
6240         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
6241         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
6242         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
6243         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
6244         (ASM_OUTPUT_REG_POP): Define.
6245         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
6246         (ASM_OUTPUT_REG_POP): Undef.
6248 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
6250         * cpplib.c (do_sccs): Handle #sccs on all systems.
6251         * system.h (SCCS_DIRECTIVE): Poison.
6252         * config/darwin.h, config/freebsd.h, config/netbsd.h,
6253         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
6254         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
6255         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
6256         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
6257         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
6258         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
6259         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
6260         Remove all references to SCCS_DIRECTIVE.
6261         * doc/cpp.texi, doc/tm.texi: Update.
6263 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
6265         * regrename.c (maybe_mode_change): New function.
6266         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
6268 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
6270         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
6271         suppress addition when either ct or cf are zero.
6273 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
6274             Glen Nakamura <glen@imodulo.com>
6276         PR optimization/6713
6277         * loop.c (loop_givs_rescan): Explicitly delete the insn that
6278         sets a non-replaceable giv after issuing the new one.
6280 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
6282         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
6283         eval_token): Clarify and correct use of "bool" variables.
6284         * cpplib.h (struct cpp_options): Similarly.
6285         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
6286         * cpptrad.c (recursive_macro): Similarly.
6288 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
6290         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
6291         SHmedia code.
6293         * sh.md (cmpgtudi_media): Remove spurious @.
6295         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
6296         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
6298         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
6299         * sh-protos.h (sh_initialize_trampoline): Declare.
6300         * sh.c (sh_initialize_trampoline): New function.
6301         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
6302         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
6303         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
6304         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
6305         * sh.md (initialize_trampoline, double_shori): New patterns.
6306         (initialize_trampoline_compact): Likewise.
6307         (shmedia32_initialize_trampoline_big): Remove.
6308         (shmedia32_initialize_trampoline_little): Likewise.
6310         * sh-protos.h (binary_float_operator): Remove declaration.
6311         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
6312         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
6313         (unary_float_operator, sh_expand_unop_v2sf): New functions.
6314         (sh_expand_binop_v2sf): Likewise.
6315         (zero_vec_operand): Delete.
6316         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
6317         all non-shared ones.
6318         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
6319         Enable nsb and byterev.
6320         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
6321         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
6322         in general regs.
6323         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
6324         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
6325         immediate operands.
6326         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
6327         Add DF_HI_REGS.
6328         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
6329         lowpart fp regs - only for big endian for now.
6330         (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
6331         when FPU is in use.
6332         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
6333         (LOAD_EXTEND_OP): NIL for SImode.
6334         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
6335         general and fp registers is 4.
6336         PREDICATE_CODES: Amend binary_float_operator entry.
6337         Remove zero_vec_operand.  Add unary_float_operator.
6338         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
6339         subreg SET_DEST.
6340         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
6341         (truncdiqi2): Do sign extension.
6342         (movsi_media, movdi_media): Allow to use r63 to an fp register.
6343         (movdf_media, movsf_media): Likewise.
6344         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
6345         Collapse to one define_insn_and_split.  Allow immediate sources.
6346         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
6347         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
6348         (movv4sf): Allow immediate sources.
6349         (movsf_media_nofpu+1): Don't split moves to FP registers.
6350         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
6351         (movv8qi_i+3): Check against CONST0_RTX.
6352         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
6353         for input and output operands.  Fix argument 3 to gen_mextr_rl.
6354         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
6355         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
6356         (mshf0_w, fipr, ftrv): Likewise.
6357         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
6359 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6361         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
6362         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
6363         * arm.c: Similarly.
6365 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
6367         * config/mips/mips-protos.h (mips_sign_extend): Declare.
6368         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
6369         (TARGET_SWITCHES): Remove debugh.
6370         (ISA_HAS_TRUNC_W): New macro.
6371         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
6372         (PREDICATE_CODES): Remove se_nonimmediate_operand.
6373         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
6374         any SImode move_operand.
6375         (se_nonimmediate_operand): Remove.
6376         (mips_sign_extend): New.
6377         (mips_move_2words): Use it for sign-extended source operands.
6378         (override_options): Allow integers to be put into single FPRs.
6379         (mips_secondary_reload_class): Handle integers in float registers.
6380         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
6381         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
6382         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
6383         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
6384         (fix_truncdfdi2): Provide only a single alternative, in which the
6385         integer is in a float register.  Depend on TARGET_FLOAT64 rather
6386         than TARGET_64BIT.
6387         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
6388         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
6389         (movdi_internal2): Don't allow the source operand to be sign-extended.
6390         Add alternatives for float registers.
6391         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
6392         allows sign-extension.
6393         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
6394         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
6395         float registers.  Remove TARGET_DEBUG_H_MODE test.
6396         (movhi_internal1): Rename to movhi_internal.  Don't check
6397         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
6398         (movqi_internal1): Rename to movqi_internal and remove
6399         TARGET_DEBUG_H_MODE dependency.
6400         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
6402 2002-07-16  Jim Wilson  <wilson@redhat.com>
6404         * toplev.c (lang_dependent_init): Create function context for
6405         init_expr_once.
6407 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
6409         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
6410         --gc-sections if -r.
6411         * config/cris/cris.h: Ditto.
6413 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
6415         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
6416         the comparison directly gives a mask suppress addition when cf is
6417         zero by complementing the mask.
6419 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
6421         * Makefile.in: Delete references to enquire.
6422         * enquire.c: Move to contrib.
6424 2002-07-16  Stan Shebs  <shebs@apple.com>
6426         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
6427         config/rs6000/darwin.h.
6428         (ASM_OUTPUT_SKIP): Ditto.
6429         (TEXT_SECTION_ASM_OP): Ditto.
6430         (DATA_SECTION_ASM_OP): Ditto.
6431         (ASM_APP_ON): Define.
6432         (ASM_APP_OFF): Define.
6433         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
6434         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
6436         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
6437         (machopic_function_base_name): Declare result to be const.
6438         (machopic_non_lazy_ptr_name): Ditto.
6439         (machopic_stub_name): Ditto.
6440         * config/darwin-protos.h: Ditto for the prototypes.
6442 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
6444         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
6446 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
6448         * i386.md (prefetch): Fix for 64bit mode.
6449         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
6451 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
6453         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
6454         * i386.c (x86_machine_dependent_reorg): New function.
6455         * i386-protos.h (x86_machine_dependent_reorg): Declare.
6457 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
6459         * builtins.c (std_expand_builtin_va_start): Remove unused
6460         first argument.
6461         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
6462         std_expand_builtin_va_start with just two arguments.
6463         * expr.h: Update prototypes.
6465         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
6466         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
6467         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
6468         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
6469         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
6470         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
6471         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
6472         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
6473         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
6474         argument from all implementations of EXPAND_BUILTIN_VA_START
6475         and all uses of std_expand_builtin_va_start.
6477 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
6479         * regrename.c (copy_value): Don't record high part copies.
6481 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
6483         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
6484         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
6485         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
6487 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
6489         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
6491         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
6492         into addsi3 using register class "x" and "y".
6494         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
6495         "earlyclobber" constraint modifier for some alternative.
6497         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
6498         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
6499         unordered.
6500         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
6502         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
6503         (TARGET_SWITCHES): Add -mieee-compare option.
6504         (OVERRIDE_OPTIONS): 32332 is a subset of
6505         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
6506         (TARGET_SWITCHES): Fix description of bit-field option.
6507         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
6508         -mieee-compare option. Remove 32332 flag.
6510 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
6512         * explow.c (convert_memory_address): Remove special handling
6513         when POINTERS_EXTEND_UNSIGNED < 0.
6514         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
6515         (movedi_symbolic): Fix typo.
6516         (load_fptr): Remove mode restriction so it works for SI and DI.
6517         (load_fptr_internal1): Ditto.
6518         (load_gprel): Ditto.
6519         (load_symptr_internal1): Ditto.
6520         (call_pic): Ditto.
6521         * config/ia64.c (call_operand): Modify mode check.
6522         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
6523         (ia64_expand_move): Ditto.
6524         (ia64_assemble_integer): Handle SImode function pointers.
6525         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
6526         (ia64_expand_op_and_fetch): Ditto.
6527         (ia64_expand_compare_and_swap): Ditto.
6528         (ia64_expand_lock_test_and_set): Ditto.
6529         (ia64_expand_lock_release): Ditto.
6531 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6533         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
6535 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6536             Richard Earnshaw  <rearnsha@arm.com>
6538         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
6539         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
6541 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
6543         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
6544         understands to be a memory clobber.
6545         * arm.c (arm_expand_prologue): Use it.
6547 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
6549         * ra-rewrite.c: #include reload.h, insn-config.h
6550         * ra-build.c: #include reload.h
6551         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
6552         depend on reload.h, insn-config.h.
6554 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
6556         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
6557         the same size as a word.
6559         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
6560         BYTES_BIG_ENDIAN into account.
6562 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
6564         * i386.md (prefetch): Fix for 64bit mode.
6565         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
6567         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
6569 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6571         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
6573 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
6575         * ginclude/varargs.h: Replace with stub which issues #error.
6576         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
6577         __builtin_va_start.
6579         * builtins.def (BUILT_IN_VARARGS_START): Delete.
6580         (BUILT_IN_VA_START): New.
6581         * builtins.c (expand_builtin_va_start): Eliminate first
6582         argument and code to implement pre-ISO varargs.
6583         (std_expand_builtin_va_start): Ignore first argument; it is
6584         always 1.
6585         (expand_builtin): Handle BUILT_IN_VA_START and
6586         BUILT_IN_STDARG_START identically.  Delete
6587         BUILT_IN_VARARGS_START case.
6589         * function.c (assign_parms): Delete hide_last_arg and all
6590         its uses.
6591         (mark_varargs): Delete function.
6592         * function.h (struct function): Delete 'varargs' bit.
6593         (current_function_varargs): Delete macro.
6594         * tree.h: Don't declare mark_varargs.
6596         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
6597         (c_expand_body): Don't call mark_varargs.
6598         * c-objc-common.c: Handle BUILT_IN_VA_START and
6599         BUILT_IN_STDARG_START identically.  Delete
6600         BUILT_IN_VARARGS_START case.
6601         * c-tree.h: Don't declare c_mark_varargs.
6602         * c-parse.in: Remove grammar rules for '&...' (which has been
6603         commented out since before 2.7.2) and for '...' in K+R
6604         argument declarations.
6606         * builtins.c, function.c, integrate.c, sibcall.c,
6607         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
6608         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
6609         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
6610         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
6611         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
6612         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
6613         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
6614         config/stormy16/stormy16.c: Delete all references to
6615         current_function_varargs, and code predicated on that flag.
6617         * config/alpha/alpha.c (alpha_va_start),
6618         config/arc/arc.c (arc_va_start),
6619         config/i386/i386.c (ix86_va_start),
6620         config/mips/mips.c (mips_va_start),
6621         config/mn10300/mn10300.c (mn10300_va_start),
6622         config/rs6000/rs6000.c (rs6000_va_start),
6623         config/s390/s390.c (s390_va_start),
6624         config/sh/sh.c (sh_va_start),
6625         Ignore first argument; it is always 1.
6627         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
6628         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
6629         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
6630         Delete m68hc11_va_start.
6631         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
6632         No need to define EXPAND_BUILTIN_VA_START.
6634         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
6635         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
6637 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
6639         PR optimization/7153
6640         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
6641         dies in more than one insn.
6643 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
6645         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
6647 2002-07-15  Michael Matz  <matz@suse.de>,
6648             Daniel Berlin  <dberlin@dberlin.org>,
6649             Denis Chertykov  <denisc@overta.ru>
6651         Add a new register allocator.
6653         * ra.c: New file.
6654         * ra.h: New file.
6655         * ra-build.c: New file.
6656         * ra-colorize.c: New file.
6657         * ra-debug.c: New file.
6658         * ra-rewrite.c: New file.
6660         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
6661         (ra-rewrite.o): New .o files for libbackend.a.
6662         (GTFILES): Add basic-block.h.
6664         * toplev.c (flag_new_regalloc): New.
6665         (f_options): New option "new-ra".
6666         (rest_of_compilation): Call initialize_uninitialized_subregs()
6667         only for the old allocator.  If flag_new_regalloc is set, call
6668         new allocator, instead of local_alloc(), global_alloc() and
6669         friends.
6671         * doc/invoke.texi: Document -fnew-ra.
6672         * basic-block.h (FOR_ALL_BB): New.
6673         * config/rs6000/rs6000.c (print_operand): Write small constants
6674         as @l+80.
6676         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
6677         (df_reg_table_realloc): Make size at least as large as max_reg_num().
6678         (df_insn_table_realloc): Size argument now is absolute, not relative.
6679         Changed all callers.
6681         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
6682         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
6684         2002-06-20  Michael Matz  <matz@suse.de>
6686         * df.h (struct ref.id): Make unsigned.
6687         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
6689         2002-06-13  Michael Matz  <matz@suse.de>
6691         * df.h (DF_REF_MODE_CHANGE): New flag.
6692         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
6693         involving subregs with invalid mode changes, when
6694         CLASS_CANNOT_CHANGE_MODE is defined.
6696         2002-05-07  Michael Matz  <matz@suse.de>
6698         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
6700         2002-05-03  Michael Matz  <matz@suse.de>
6702         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
6704         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
6706         * regclass.c (regclass): Work with all regs which have sets or
6707         refs.
6708         (reg_scan_mark_refs): Count regs inside (clobber ...).
6710         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
6712         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
6713         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
6714         add new refs.
6715         (df_bb_refs_update): Don't clear insns_modified here, ...
6716         (df_analyse): ... but here.
6718         * sbitmap.c (dump_sbitmap_file): New.
6719         (debug_sbitmap): Use it.
6721         * sbitmap.h (dump_sbitmap_file): Add prototype.
6723         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
6725         * df.c (df_insn_modify): Grow the UID table if necessary, rather
6726         than assume all emits go through df_insns_modify.
6728         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
6730         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
6731         increase REG_N_REFS (like flow does), so that regclass doesn't
6732         think a reg is useless, and thus, not calculate a class, when it
6733         really should have.
6735         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
6737         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
6738         dataflow analysis.
6740 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
6742         PR middle-end/7245
6743         * config/i386/i386.c (const_int_1_31_operand): New.
6744         * config/i386/i386.h (PREDICATE_CODES): Add it.
6745         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
6746         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
6747         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
6749 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
6751         PR target/7282
6752         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
6753         (floatunssidf2): Likewise.
6754         (floatsidf_ppc64): New insn_and_split.
6755         (floatunssidf_ppc64): Likewise.
6757 2002-07-14  Andreas Jaeger  <aj@suse.de>
6759         * config.gcc (sh64): Remove unused
6760         target_requires_64bit_host_wide_int.
6762 2002-07-12  Roger Sayle  <roger@eyesopen.com>
6764         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
6765         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
6766         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
6767         whether clear_by_pieces should be used to clear storage.
6768         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
6770         * doc/tm.texi: Document these two new target macros.
6772 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
6774         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
6775         the scratch register.
6776         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
6777         of it, forbid reload to use it.
6779 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6781         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
6782         usage on 64-bit hosts, return value was truncated to 32 bits.
6784 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
6786         * simplify-rtx.c (simplify_subreg): Handle floating point
6787         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
6788         the element mode is requested, compute a subreg with an
6789         integer mode of the same size as the element mode first.
6791 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6793         * combine.c (try_combine): When converting a paradoxical subreg
6794         to an extension, take LOAD_EXTEND_OP into account.
6796 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6798         * config.gcc (mips-sgi-irix6*o32): New configuration.
6800         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
6801         configurations.
6802         * configure: Regenerate.
6804         * config/mips/iris6-o32-as.h: New file.
6805         * config/mips/iris6-o32.h: New file.
6807         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
6808         (NM_FLAGS): Define.
6809         (HAVE_AS_SHF_MERGE): Undefine.
6811         * config/mips/t-iris5-as: New file.
6812         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
6814         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
6815         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
6816         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
6817         dp-bit.c, fp-bit.c): Move ...
6818         * config/mips/t-iris5-6: ... here.
6819         New file, shared by IRIX 5 and IRIX 6.
6820         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
6821         mips-sgi-irix5*): Use it.
6823         * config/mips/iris6.h: Remove duplicate comment.
6825         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
6826         !TARGET_IRIX6]: Define.
6827         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
6829         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
6831 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6833         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
6834         and delete code to force constant to register.
6835         * pa-protos.h (adddi3_operand): Add prototype.
6836         * pa.c (adddi3_operand): New function.
6838 2002-07-11  Roger Sayle  <roger@eyesopen.com>
6840         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
6841         non-ANSI builtin functions.
6843 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
6845         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
6846         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
6847         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
6848         (gen_const_vector_0): Use it.
6850 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6852         * pa.md (adddi3): For 32-bit targets, force constants to a register
6853         if they don't fit in an 11-bit immediate.  Change insn predicate to
6854         arith11_operand.  Remove comment.
6855         * pa.c (cint_ok_for_move): Fix comment.
6856         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
6857         targets.
6859 2002-07-11  Tim Josling  <tej@melbpc.org.au>
6861         Remove front end hard coding from gengtype.c.
6863         * Makefile.in
6864         (STAGESTUFF): add gtyp-gen.h
6865         (GTFILES): Remove front end specific files.
6866         (GTFILES_FILES_LANGS): New, from configure..
6867         (GTFILES_FILES_FILES): Likewise.
6868         (GTFILES_LANG_DIR_NAMES): Likewise.
6869         (GTFILES_SRCDIR): Likewise.
6870         (gtyp-gen.h): Build from configure information.
6871         (s-gtype): Remove command line parameters from gengtype.
6872         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
6873         (mostlyclean): Delete files generated by and for gengtype.
6875         * c-config-lang.in: New file.
6877         * configure.in (all_gtfiles_files_langs): New. Accumulate files
6878         for each language.
6879         (all_gtfiles_files_files): New. Accumulate language for each file
6880         accumulated.
6881         (gtfiles): Pick up value for C.
6882         (srcdir): AC-SUBST this variable.
6883         (all_gtfiles_files_langs): AC-SUBST this variable.
6884         (all_gtfiles_files_files): AC-SUBST this variable.
6886         * configure: Regenerate.
6888         * gengtype-lex.l (parse_file): Make parameter const.
6890         * gengtype.c (toplevel): include gtyp-gen.h.
6891         (BASE_FILE_<language> unnamed enum): Delete.
6892         (lang_names): Delete (replaced by gtyp-gen.h)
6893         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
6894         all references.
6895         (NUM_GT_FILES): New.
6896         (NUM_LANG_FILES): New.
6897         (srcdir_len): New.
6898         (NUM_BASE_FILES): Change calculation.
6899         (open_base_files): Change prototype to avoid warning.
6900         (startswith): Delete.
6901         (get_file_basename): Iterate through generated language list not
6902         hard coded list.
6903         (get_base_file_bitmap): Use generated list of files and languages.
6904         (close_output_files): Add prototype to rmove warning.
6905         (main): Iterate through list of generated files from gtyp-gen.h
6906         rather than command line paramaters.  Ignore duplicated file
6907         names.
6909         * gengtype.h (parse_file): Amend prototype for const parameter.
6911         * doc/sourcebuild.texi: Document gtfiles variable.
6913         * doc/gty.texi: Document changes to gtfiles variable for front
6914         ends.
6916         * objc/config-lang.in (gtfiles): Add files needed for objc front
6917         end.
6919 2002-07-10  Roger Sayle  <roger@eyesopen.com>
6921         PR c/2454
6922         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
6923         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
6925 2002-07-10  Roger Sayle  <roger@eyesopen.com>
6926             Zack Weinberg <zack@codesourcery.com>
6928         * builtins.def: Make the argument types of abort and exit
6929         independent of the front-end.
6931 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
6933         * config/rs6000/linux64.h (ASM_SPEC): Define.
6935 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
6937         * config/rs6000/rs6000.c (emit_frame_save): New.
6938         (rs6000_frame_related): Replace reg2 before reg.
6939         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
6940         and eh_return registers.
6942 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
6944         Revert all patches for optimization of Complex .op. Real.
6945         * complex_part_zero_p: Remove
6946         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
6947         with x.
6948         * expand_cmplxdiv_wide: Ditto.
6949         * expand_binop: Ditto.
6951 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6953         * config/avr/avr.md: Fix two 0x80000000 constants to make them
6954         negative also on 64-bit hosts.
6956         Default to -fno-reorder-blocks when optimizing for size.
6957         * config/avr/avr-protos.h (avr_optimization_options): Declare.
6958         * config/avr/avr.c (avr_optimization_options): New function.
6959         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
6961         Optimize returning from simple functions.
6962         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
6963         * config/avr/avr.c (avr_simple_epilogue): New function.
6964         * config/avr/avr.md (return): New insn.
6966 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
6968         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
6969         HAS_INIT_SECTION to protection.
6971 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
6973         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
6974         deprecated.
6976 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
6978         * combine.c (gen_lowpart_for_combine): Handle vector modes.
6979         Supply non-VOID mode to simplify_gen_subreg.
6981 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
6983         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
6985 2002-07-10  Jeffrey A Law  <law@redhat.com>
6987         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
6988         as appropriate.
6990         * mn10200.c (expand_epilogue): Fix test to determine which scratch
6991         register to use.
6993 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
6995         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
6996         Get mode from dest.
6997         If simplify_gen_subreg fails, try next equivalent.
6999 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
7001         * diagnostic.h: #include location.h
7002         (location_t): Move definition to..
7003         * location.h: ... here.  New file.
7004         * tree.h: #include location.h
7005         (DECL_SOURCE_LOCATION): New macro.
7006         (DECL_SOURCE_FILE): Use.
7007         (DECL_SOURCE_LINE): Likewise.
7008         (struct tree_decl): REplace filename and linenum with locus.
7009         * Makefile.in (TREE_H): add location.h
7010         (diagnostic.o): Depends on gt-location.h
7011         (gt-location.h): Depends on s-gtype
7013 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
7015         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
7016         TARGET_OS_CPP_BUILTINS.
7017         * config/rs6000/aix31.h: Likewise.
7018         * config/rs6000/aix41.h: Likewise.
7019         * config/rs6000/aix43.h: Likewise.
7020         * config/rs6000/aix51.h: Likewise.
7021         * config/rs6000/beos.h: Likewise.
7022         * config/rs6000/darwin.h: Likewise.
7023         * config/rs6000/eabi.h: Likewise.
7024         * config/rs6000/eabisim.h: Likewise.
7025         * config/rs6000/linux.h: Likewise.
7026         * config/rs6000/linux64.h: Likewise.
7027         * config/rs6000/lynx.h: Likewise.
7028         * config/rs6000/mach.h: Likewise.
7029         * config/rs6000/rtems.h: Likewise.
7030         * config/rs6000/sysv4.h: Likewise.
7031         * config/rs6000/vxppc.h: Likewise.
7033 2002-07-09 Devang Patel <dpatel@apple.com>
7034         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
7035         Do not allow ObjC objects as a parameter type for Objective-C methods.
7036         My previous patch restricted  'struct' also.
7038 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
7040         * cpperror.c (cpp_error): Default to directive_line within
7041         directives here.
7042         * cppexp.c (cpp_interpret_integer): Only use traditional
7043         number semantics in directives.
7044         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
7045         (do_include_common): Similarly.
7046         * cpptrad.c (scan_out_logical_line): Implement accurate
7047         quoting of <> in #include.
7048         * doc/cpp.texi: Update.
7050 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
7051                           J"orn Rennecke <joern.rennecke@superh.com>
7053         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
7054         * sh.md (attribute issues): Replace with:
7055         (attribute pipe_model).  All users changed.
7056         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
7057         All users changed.
7058         (function units sh5issue, sh5fds): New.
7059         (attribute is_mac_media): New.
7060         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
7061         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
7062         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
7063         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
7064         (call_media, call_value_media, sibcall_media): Likewise.
7065         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
7066         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
7067         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
7068         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
7069         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
7070         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
7071         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
7072         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
7073         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
7074         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
7075         (truncdfsf2_media): Likewise.
7076         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
7077         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
7079 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
7081         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
7082         * sh.c (general_extend_operand, inqhi_operand): New functions.
7083         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
7084         alternatives using 'N' modifier.  Add type.
7085         (adddi3z_media): Likewise.  Enable generator function generation.
7086         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
7087         exact predicates / constraints.  Add type.
7088         (subsi3): Allow 0 for SHMEDIA.
7089         (udivsi3_i4_media): Use match_operand for input values
7090         rather than hard registers.
7091         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7092         unnecessarily through hard registers.  Keep copies of pseudo
7093         registers outside of the libcall sequence.
7094         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
7095         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
7096         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
7097         (extendhidi2, extendqidi2): Likewise.
7098         (andsi3_compact): Name.
7099         (andcdi3): Enable generator function generation.
7100         (zero_extendhisi2, zero_extendqisi2): Rename to
7101         (zero_extendhisi2_compact, zero_extendqisi2_compact).
7102         (extendhisi2, extendqisi2): Rename to
7103         (extendhisi2_compact, extendqisi2_compact).
7104         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
7105         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
7106         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
7107         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
7108         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
7109         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
7110         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
7111         (shmedia32_initialize_trampoline_big): Likewise.
7112         (shmedia32_initialize_trampoline_little): Likewise.
7113         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
7114         (negdi2): Remove spurious T clobber.
7115         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
7116         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
7117         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
7118         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
7119         (ic_invalidate_line_media): Write back data cache before invalidating
7120         instruction cache.  Add type.
7121         (movsf_media): Sign-extend when the destination is a general
7122         purpose register.  Add type.
7123         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
7124         (casesi_worker_0+1): Only increment ref count for proper label.
7125         (casesi_worker_0+2): Likewise.
7127 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
7129         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
7131 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
7133         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
7134         from Pmode to ptr_mode.
7135         (get_exception_pointer): Ditto.
7136         (connect_post_landing_pads): Ditto.
7137         (dw2_build_landing_pads): Ditto.
7139 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
7140         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
7141         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
7142         (handle_pragma_redefine_extname): Change to use new function.
7144 2002-07-08  Roger Sayle  <roger@eyesopen.com>
7146         * combine.c (combine_simplify_rtx): Add an explicit cast
7147         to avoid signed/unsigned comparison warning.
7148         (simplify_if_then_else): Likewise.
7149         (extended_count): Likewise.
7150         (simplify_shift_const): Likewise.
7151         (simplify_comparison): Likewise.
7153 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
7155         * config/mips/mips.md: Add imadd type.  Update scheduler description
7156         to use imadd as well as imul.
7157         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
7158         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
7159         (*mul_sub_si): Likewise for first alternative.  Change second
7160         alternative from imul to multi.
7162 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
7164         * c-common.c (c_common_post_options): Update prototype;
7165         don't init backends if preprocessing only.
7166         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
7167         * langhooks.h (struct lang_hooks): Update post_options to
7168         return a boolean.
7169         * toplev.c (parse_options_and_default_flags, do_compile,
7170         lang_independent_init): Update prototypes.  Allow the
7171         front end to specify that there is no need to initialize
7172         the back end.
7173         (general_init): Move call to hex_init here...
7174         (toplev_main): ...from here.  Pass flag for back end init
7175         suppression.
7177 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7179         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
7180         (PREDICATE_CODES): Add entries for equality_comparison_operator,
7181         greater_comparison_operator and less_comparison_operator.
7182         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
7183         more operators.
7184         (equality_comparison_operator): New function.
7185         (greater_comparison_operator, less_comparison_operator): Likewise.
7186         * sh.md (beq_media_i): Disable generator function generation.
7187         Use match_operator to handle a whole class of comparisons.  Add
7188         modifier in output template to provide branch prediction.  Add type.
7189         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
7190         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
7191         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
7192         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
7194 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
7196         Emit MMIX function prologue and epilogue as rtl.
7197         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
7198         not unprototyped get_hard_reg_initial_val.
7199         ("call_value", "nonlocal_goto_receiver"): Ditto.
7200         ("return"): Make define_expand.  Move real insn to...
7201         ("*expanded_return"): New pattern.
7202         ("prologue", "epilogue"): New define_expands.
7203         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
7204         (struct machine_function): New member in_prologue.
7205         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
7206         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
7207         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
7208         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
7209         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
7210         (LOCAL_REGNO): Define.  Adjust comment.
7211         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
7212         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
7213         leaf_function_p.
7214         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
7215         the prologue.
7216         (mmix_target_asm_function_prologue): Make static.  Just mark that
7217         the prologue is being emitted.  Move guts to...
7218         (mmix_expand_prologue): New function.  Adjust for emitting
7219         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
7220         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
7221         \n.  Move guts to...
7222         (mmix_expand_epilogue): New function.  Adjust for emitting
7223         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
7224         (mmix_target_asm_function_end_prologue): Mark that the prologue
7225         has ended.
7226         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
7227         (mmix_conditional_register_usage): Improve comments.
7228         (mmix_local_regno): New function.
7229         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
7230         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
7231         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
7232         (mmix_get_hard_reg_initial_val): Ditto.
7234 2002-07-06  Andreas Jaeger  <aj@suse.de>
7236         * toplev.c (set_fast_math_flags): Don't use ISO C style function
7237         definitions.
7238         * gengtype.c (open_base_files): Likewise.
7239         (close_output_files): Likewise.
7240         * tracer.c (find_best_predecessor): Likewise.
7241         (find_best_successor): Likewise.
7242         (ignore_bb_p): Likewise.
7244 2002-07-05  Roger Sayle  <roger@eyesopen.com>
7246         PR c++/7099
7247         * builtin-attrs.def: Define new attribute lists for use in
7248         builtins.def.
7249         * builtins.def [DEF_BUILTIN]: Modify to take an additional
7250         ATTRS argument, an enumerated value defined in builtin-attrs.def
7251         that represents the attribute list for the builtins.  Modify
7252         all builtin functions to pass an appropriate attribute list.
7253         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
7254         their required noreturn attributes.
7255         * tree.h (enum_builtin_function): Ignore the additional parameter
7256         to DEF_BUILTIN.
7257         * builtins.c (built_in_names): Likewise.
7258         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
7259         argument with a tree representing the functions attribute list.
7260         Pass this "attrs" argument to builtin_function.  No longer handle
7261         the noreturn_p processing manually.
7262         (built_in_attributes): Move the definitions from builtin-attrs.def
7263         before c_common_nodes_and_builtins.
7264         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
7265         DEF_BUILTIN, passing it to both builtin_function and the changed
7266         builtin_function_2.
7268         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
7269         __builtin__exit and __builtin__Exit.
7271 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
7273         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
7274         QI mode registers in soft registers.
7275         ("zero_extendqihi2"): Do not take into account soft registers
7276         for register allocation (use '*' constraint).
7278 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
7280         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
7281         it is dead.
7282         ("*ashrsi3"): Likewise.
7283         ("*lshrsi3"): Likewise.
7285 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
7287         * genautomata.c (output_max_insn_queue_index_def): Take latencies
7288         into account.
7290 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
7292         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
7293         address computation and memory moves.
7295 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
7297         PR c++/6706
7298         * dwarfout.c (output_reg_number): Fix warning message.
7299         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
7300         before using it.
7302 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7304         * gcc/gcc.c (asm_debug): Move initialization ...
7305         (init_spec): ... here.
7307 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
7309         * c-parse.in (extdef): Append ';'.
7310         (old_style_parm_decls): Append ';'.
7312 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7314         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
7315         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
7316         to gcc_cv_as_gstabs_flag.
7317         * configure: Rebuilt.
7319 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
7321         * ggc.h (ggc_add_root): Document as obsolete.
7323 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
7325         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
7326         (mshflo_w): Likewise.
7328 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
7330         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
7331         vector mode subregs of constants to finding integer mode
7332         subregs of constants.
7333         * cse.c (cse_insn): Use simplify_gen_subreg.
7334         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
7335         From a vector mode expression of different size than the
7336         target mode.
7338 2002-07-03  Eric Christopher  <echristo@redhat.com>
7340         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
7341         * config/mips/mips.h: Remove deprecated -m<processor> options
7342         and cc1_cpu_spec associated.
7343         (CONSTANT_ADDRESS_P): Fix last patch.
7344         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
7345         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
7346         sunge_sf): Remove.
7348 2002-07-03  Stan Shebs  <shebs@apple.com>
7350         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
7351         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
7352         (CPP_SPEC): Remove insertion of APPLE_CC definition.
7354 2002-07-03  Roger Sayle  <roger@eyesopen.com>
7356         * combine.c (struct_undo): Change types of recorded substitutions
7357         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
7358         (do_SUBST_INT): Change types of the substitution from unsigned int
7359         to int, to avoid compilation warning from SUBST_INT's only caller.
7361         (make_extraction): Add cast to avoid compilation warning.
7362         (force_to_mode): Remove cast to avoid compilation warning.
7364 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
7365             Jeff Law  <law@redhat.com>
7367         * i386.md (length_immediate attribute): Fix typo.
7368         (length_address attribute): Likewise.
7369         (modrm attribute): Set it to 0 for immediate call instructions.
7370         (jcc_1 pattern): Set modrm attribute to 0.
7371         (jcc_2 pattern ): Likewise.
7372         (jump pattern): Likewise.
7373         (doloop_end_internal pattern): Explicitly set length.
7374         (leave pattern): Fix typo.
7375         (leave_rex64 pattern): Likewise.
7377 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
7379         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
7380         in FPR as preference.
7381         (fctiwz): Same.
7382         (floatdidf2, fix_truncdfdi2): Same.
7383         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
7384         (floatditf2): Same.
7385         (floatsitf2, fix_trunctfsi2): SImode in GPR.
7386         (ctrdi): Remove FPR alternative and splitter.
7388 2002-07-03  Will Cohen  <wcohen@redhat.com>
7390         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
7392 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
7394         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
7395         than UNITS_PER_WORD, unless this is little endian and the first unit
7396         in this word.  Let extract_bit_field decide how to load an element.
7397         Force arguments to matching mode.
7398         (expand_vector_unop): Likewise.
7400         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
7401         consist of word_mode elements.
7402         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
7403         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
7404         (build_unary_op): Allow vector types for BIT_NOT_EPR.
7405         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
7406         CONST_VECTOR.
7407         * optabs.c (expand_vector_binop): Try to perform operation in
7408         smaller vector modes with same inner size.  Add handling of AND, IOR
7409         and XOR.  Reject expansion to inner-mode sized scalars when using
7410         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
7411         (expand_vector_unop): Try to perform operation in smaller vector
7412         modes with same inner size.  Add handling of one's complement.
7413         When there is no vector negate operation, try a vector subtract
7414         operation.  Use simplify_gen_subreg on constants.
7415         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
7416         constants into smaller vectors with same inner mode, and to
7417         integer CONST_DOUBLEs.
7419 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7421         * c-parse.in (parsing_iso_function_signature): New variable.
7422         (extdef_1): New, copied from...
7423         (extdef): ... here.  Reset parsing_iso_function_signature.
7424         (old_style_parm_decls):  Reset parsing_iso_function_signature.
7425         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
7426         Warn about ISO C style function definitions.
7427         (nested_function, notype_nested_function): Reset
7428         parsing_iso_function_signature.
7429         (parmlist_2): Set parsing_iso_function_signature.
7431         * doc/invoke.texi (-Wtraditional): Document new behavior.
7433 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
7435         * config.gcc (mips*el-*-*): Use tm_defines to set
7436         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
7437         * config/mips/little.h: Remove.
7439 2002-07-02 Devang Patel <dpatel@apple.com>
7441         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
7442         object as parameter. Prevent something like 'NSObject' to be
7443         used as the type for a method argument.
7445 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
7447         * cpptrad.c: Update comment.
7449 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
7451         * doc/cpp.texi: Update for traditional preprocessing changes.
7452         * goc/cppopts.texi: Similarly.
7454 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
7456         * c-parse.in (designator): Enable designated initializers if ObjC.
7457         (objcmessageexpr): Remove references to objc_receiver_context.
7458         * objc/objc-act.h (objc_receiver_context): Remove decl.
7459         * objc/objc-act.c (objc_receiver_context): Remove.
7460         (lookup_objc_ivar): Test objc_method_context instead of
7461         objc_receiver_context.
7463 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
7465         * sh.c (print_operand, case 'N'): Allow zero vector.
7466         (arith_reg_or_0_operand): Likewise.
7467         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
7468         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
7469         IOR, XOR, PLUS and SET and take their respective constant
7470         ranges into account.
7471         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
7472         * sh.md (subdi3, subdi3_media): Allow zero operand.
7473         (movv8qi_i+3): Only vector that is not split is the zero vector.
7474         Fix operand 3 to simplify_subreg.
7475         (movv2si_i): Split alternative 1.
7476         (mshfhi_l_di_rev+1): New splitter.
7478 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
7480         PR preprocessor/7029
7481         * cppinit.c (cpp_handle_option):  Suppress warnings with an
7482         implicit "-w" for "-M" and "-MM".
7483         * doc/cppopts.texi: Update.
7485 2002-07-01  Roger Sayle  <roger@eyesopen.com>
7487         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
7488         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
7489         builtin_function.
7491 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
7493         * README.Portability: Fix typos.
7495 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
7497         PR target/7177
7498         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
7499         of indirections for register inside sign-extended mem part.
7501 2002-07-01  Roger Sayle  <roger@eyesopen.com>
7503         * tree.h:  Modify builtin_function interface to take an extra
7504         argument ATTRS, which is a tree representing an attribute list.
7506         * c-decl.c (builtin_function): Accept additional parameter.
7507         * objc/objc-act.c (builtin_function): Likewise.
7508         * f/com.c (builtin_function): Likewise.
7509         * java/decl.c (builtin_function): Likewise.
7510         * ada/utils.c (builtin_function): Likewise.
7511         * cp/decl.c (builtin_function): Likewise.
7512         (builtin_function_1): Likewise.
7514         * c-common.c (c_common_nodes_and_builtins): Pass an additional
7515         NULL_TREE argument to builtin_function.  (builtin_function_2):
7516         Likewise.
7517         * cp/call.c (build_java_interface_fn_ref): Likewise.
7518         * objc/objc-act.c (synth_module_prologue): Likewise.
7519         * java/decl.c (java_init_decl_processing): Likewise.
7520         * f/com.c (ffe_com_init_0): Likewise.
7522         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
7523         NULL_TREE argument to builtin_function.
7524         * config/arm/arm.c (def_builtin): Likewise.
7525         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
7526         * config/i386/i386.c (def_builtin): Likewise.
7527         * config/ia64/ia64.c (def_builtin): Likewise.
7528         * config/rs6000/rs6000.c (def_builtin): Likewise.
7530 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
7532         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
7533         * config/mips/t-isa3264: Likewise.
7534         * config/mmix/t-mmix: Likewise.
7536 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7538         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
7540 2002-07-01  Roger Sayle  <roger@eyesopen.com>
7542         PR opt/4046
7543         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
7544         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
7545         B are truth values.
7547 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
7549         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
7551 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
7553         * README.Portability (Function prototypes): Give an example of
7554         declaring and defining a function with no arguments.
7556         * README.Portability (Function prototypes): Document new
7557         variable-argument function macros.
7559 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
7561         * sh.c (langhooks.h): Include.
7562         (sh_init_builtins, sh_media_init_builtins): New functions.
7563         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
7564         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
7565         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
7566         (builtin_description): New struct tag.
7567         (signature_args, bdesc): New arrays.
7568         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
7569         (print_operand): Add 'N' modifier.
7570         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
7571         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
7572         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
7573         (CONST_COSTS): Add special case for SHmedia AND.
7574         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
7575         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
7576         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
7577         target_operand can also be const or unspec.
7578         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
7579         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
7580         (attribute type): Add new types.
7581         (anddi3): Add splitter.
7582         (movdi_const_16bit+1): Add code to handle vector constants and
7583         bitmasks efficiently.
7584         (shori_media): Have generator function made.
7585         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
7586         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
7587         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
7588         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
7589         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
7590         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
7591         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
7592         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
7593         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
7594         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
7595         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
7596         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
7597         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
7598         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
7599         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
7600         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
7601         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
7602         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
7603         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
7604         (ftrv): Likewise.
7606         (fpu_switch+1, fpu_switch+2): Remove constraint.
7608 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
7610         * tree.c (build_function_type_list): Update function comment.
7611         Rename first argument to return_type.
7613 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
7615         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
7616         tradcif.y and related files.
7618 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
7620         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
7622 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7624         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
7626 See ChangeLog.7 for earlier changes.