OSDN Git Service

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