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