OSDN Git Service

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