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