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