OSDN Git Service

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