OSDN Git Service

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