OSDN Git Service

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