]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
re PR rtl-optimization/6713 (Regression wrt 3.0.4: g++ -O2 leads to seg fault at...
[gcc.git] / gcc / ChangeLog
CommitLineData
f1a73cfe
EB
12002-06-17 Eric Botcazou <ebotcazou@multimania.com>
2 Glen Nakamura <glen@imodulo.com>
3
4 PR optimization/6713
5 * loop.c (loop_givs_rescan): Explicitly delete the insn that
6 sets a non-replaceable giv after issuing the new one.
7
23ff0223
NB
82002-07-17 Neil Booth <neil@daikokuya.co.uk>
9
10 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
11 eval_token): Clarify and correct use of "bool" variables.
12 * cpplib.h (struct cpp_options): Similarly.
13 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
14 * cpptrad.c (recursive_macro): Similarly.
15
ac09192a
R
16Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
17
d28586ab 18 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
ac09192a 19 SHmedia code.
68cef009
R
20
21 * sh.md (cmpgtudi_media): Remove spurious @.
701e3726
R
22
23 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
24 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
ca903bba
R
25
26 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
27 * sh-protos.h (sh_initialize_trampoline): Declare.
28 * sh.c (sh_initialize_trampoline): New function.
29 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
30 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
31 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
32 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
33 * sh.md (initialize_trampoline, double_shori): New patterns.
34 (initialize_trampoline_compact): Likewise.
35 (shmedia32_initialize_trampoline_big): Remove.
36 (shmedia32_initialize_trampoline_little): Likewise.
0ac78517
R
37
38 * sh-protos.h (binary_float_operator): Remove declaration.
39 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
40 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
41 (unary_float_operator, sh_expand_unop_v2sf): New functions.
42 (sh_expand_binop_v2sf): Likewise.
43 (zero_vec_operand): Delete.
44 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
45 all non-shared ones.
46 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
47 Enable nsb and byterev.
48 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
49 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
50 in general regs.
51 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
52 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
53 immediate operands.
54 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
55 Add DF_HI_REGS.
56 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
57 lowpart fp regs - only for big endian for now.
58 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
59 when FPU is in use.
60 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
61 (LOAD_EXTEND_OP): NIL for SImode.
62 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
63 general and fp registers is 4.
64 PREDICATE_CODES: Amend binary_float_operator entry.
65 Remove zero_vec_operand. Add unary_float_operator.
66 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
67 subreg SET_DEST.
68 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
69 (truncdiqi2): Do sign extension.
70 (movsi_media, movdi_media): Allow to use r63 to an fp register.
71 (movdf_media, movsf_media): Likewise.
72 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
73 Collapse to one define_insn_and_split. Allow immediate sources.
74 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
75 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
76 (movv4sf): Allow immediate sources.
77 (movsf_media_nofpu+1): Don't split moves to FP registers.
78 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
79 (movv8qi_i+3): Check against CONST0_RTX.
80 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
81 for input and output operands. Fix argument 3 to gen_mextr_rl.
82 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
83 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
84 (mshf0_w, fipr, ftrv): Likewise.
85 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
86
e9d7b180
JD
872002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
88
89 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
90 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
91 * arm.c: Similarly.
92
8214bf98
RS
932002-07-17 Richard Sandiford <rsandifo@redhat.com>
94
95 * config/mips/mips-protos.h (mips_sign_extend): Declare.
96 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
97 (TARGET_SWITCHES): Remove debugh.
98 (ISA_HAS_TRUNC_W): New macro.
99 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
100 (PREDICATE_CODES): Remove se_nonimmediate_operand.
101 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
102 any SImode move_operand.
103 (se_nonimmediate_operand): Remove.
104 (mips_sign_extend): New.
105 (mips_move_2words): Use it for sign-extended source operands.
106 (override_options): Allow integers to be put into single FPRs.
107 (mips_secondary_reload_class): Handle integers in float registers.
108 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
109 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
110 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
111 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
112 (fix_truncdfdi2): Provide only a single alternative, in which the
113 integer is in a float register. Depend on TARGET_FLOAT64 rather
114 than TARGET_64BIT.
115 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
116 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
117 (movdi_internal2): Don't allow the source operand to be sign-extended.
118 Add alternatives for float registers.
119 (*movdi_internal2_extend): New. Version of movdi_internal2 that
120 allows sign-extension.
121 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
122 (movsi_internal2): Rename to movsi_internal. Add alternatives for
123 float registers. Remove TARGET_DEBUG_H_MODE test.
124 (movhi_internal1): Rename to movhi_internal. Don't check
125 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
126 (movqi_internal1): Rename to movqi_internal and remove
127 TARGET_DEBUG_H_MODE dependency.
128 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
129
7ab0121e
JW
1302002-07-16 Jim Wilson <wilson@redhat.com>
131
132 * toplev.c (lang_dependent_init): Create function context for
133 init_expr_once.
134
349ccf2e
HPN
1352002-07-16 Hans-Peter Nilsson <hp@axis.com>
136
137 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
138 --gc-sections if -r.
139 * config/cris/cris.h: Ditto.
140
06ec023f
RB
1412002-07-16 Rodney Brown <rbrown64@csc.com.au>
142
143 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
144 the comparison directly gives a mask suppress addition when cf is
145 zero by complementing the mask.
146
39cef914
NN
1472002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
148
149 * Makefile.in: Delete references to enquire.
150 * enquire.c: Move to contrib.
151
92c1a778
SS
1522002-07-16 Stan Shebs <shebs@apple.com>
153
2aa9948d
SS
154 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
155 config/rs6000/darwin.h.
156 (ASM_OUTPUT_SKIP): Ditto.
157 (TEXT_SECTION_ASM_OP): Ditto.
158 (DATA_SECTION_ASM_OP): Ditto.
159 (ASM_APP_ON): Define.
160 (ASM_APP_OFF): Define.
161 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
162 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
163
164 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
92c1a778
SS
165 (machopic_function_base_name): Declare result to be const.
166 (machopic_non_lazy_ptr_name): Ditto.
167 (machopic_stub_name): Ditto.
2aa9948d 168 * config/darwin-protos.h: Ditto for the prototypes.
92c1a778 169
daaab00a
JH
170Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
171
172 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
173
63c574cc
JH
174Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
175
176 * i386.md (prefetch): Fix for 64bit mode.
177 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
178
2a500b9e
JH
179Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
180
181 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
182 * i386.c (x86_machine_dependent_reorg): New function.
183 * i386-protos.h (x86_machine_dependent_reorg): Declare.
184
e5faf155
ZW
1852002-07-16 Zack Weinberg <zack@codesourcery.com>
186
187 * builtins.c (std_expand_builtin_va_start): Remove unused
188 first argument.
189 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
190 std_expand_builtin_va_start with just two arguments.
191 * expr.h: Update prototypes.
192
193 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
194 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
195 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
196 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
197 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
198 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
199 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
200 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
201 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
202 argument from all implementations of EXPAND_BUILTIN_VA_START
203 and all uses of std_expand_builtin_va_start.
204
dbf65c2f
R
205Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
206
207 * regrename.c (copy_value): Don't record high part copies.
208
6acb6d3e 2092002-07-16 Steve Ellcey <sje@cup.hp.com>
99b823ca 210
6acb6d3e
SE
211 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
212 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
213 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
214
5d7c2819
ID
2152002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
216
217 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
218
219 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
220 into addsi3 using register class "x" and "y".
221
222 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
223 "earlyclobber" constraint modifier for some alternative.
e5faf155 224
5d7c2819
ID
225 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
226 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
227 unordered.
228 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
229
230 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
231 (TARGET_SWITCHES): Add -mieee-compare option.
232 (OVERRIDE_OPTIONS): 32332 is a subset of
233 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
234 (TARGET_SWITCHES): Fix description of bitfield option.
235 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
236 -mieee-compare option. Remove 32332 flag.
237
5da4f548 2382002-07-16 Steve Ellcey <sje@cup.hp.com>
5d7c2819
ID
239
240 * explow.c (convert_memory_address): Remove special handling
5da4f548 241 when POINTERS_EXTEND_UNSIGNED < 0.
5d7c2819 242 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
5da4f548
SE
243 (movedi_symbolic): Fix typo.
244 (load_fptr): Remove mode restriction so it works for SI and DI.
245 (load_fptr_internal1): Ditto.
246 (load_gprel): Ditto.
247 (load_symptr_internal1): Ditto.
248 (call_pic): Ditto.
5d7c2819 249 * config/ia64.c (call_operand): Modify mode check.
5da4f548
SE
250 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
251 (ia64_expand_move): Ditto.
252 (ia64_assemble_integer): Handle SImode function pointers.
253 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
254 (ia64_expand_op_and_fetch): Ditto.
255 (ia64_expand_compare_and_swap): Ditto.
256 (ia64_expand_lock_test_and_set): Ditto.
257 (ia64_expand_lock_release): Ditto.
258
1575c31e
JD
2592002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
260
261 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
262
2632002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
264 Richard Earnshaw <rearnsha@arm.com>
265
e5faf155 266 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
1575c31e
JD
267 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
268
3894f59e
RE
2692002-07-16 Richard Earnshaw <rearnsha@arm.com>
270
271 * arm.md (stack_tie): New insn. Use an idiom that the alias code
272 understands to be a memory clobber.
273 * arm.c (arm_expand_prologue): Use it.
274
e0b89be2 2752002-07-16 Daniel Berlin <dberlin@dberlin.org>
54b2a7f8
DB
276
277 * ra-rewrite.c: #include reload.h, insn-config.h
278 * ra-build.c: #include reload.h
279 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
e5faf155 280 depend on reload.h, insn-config.h.
54b2a7f8 281
cffa2189
R
282Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
283
284 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
285 the same size as a word.
286
287 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
288 BYTES_BIG_ENDIAN into account.
289
052c96b1
JH
290Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
291
292 * i386.md (prefetch): Fix for 64bit mode.
293 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
294
295 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
296
ae32926b
MM
2972002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
298
299 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
300
6c535c69
ZW
3012002-07-15 Zack Weinberg <zack@codesourcery.com>
302
303 * ginclude/varargs.h: Replace with stub which issues #error.
304 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
305 __builtin_va_start.
306
307 * builtins.def (BUILT_IN_VARARGS_START): Delete.
308 (BUILT_IN_VA_START): New.
309 * builtins.c (expand_builtin_va_start): Eliminate first
310 argument and code to implement pre-ISO varargs.
311 (std_expand_builtin_va_start): Ignore first argument; it is
312 always 1.
313 (expand_builtin): Handle BUILT_IN_VA_START and
314 BUILT_IN_STDARG_START identically. Delete
315 BUILT_IN_VARARGS_START case.
316
317 * function.c (assign_parms): Delete hide_last_arg and all
318 its uses.
319 (mark_varargs): Delete function.
320 * function.h (struct function): Delete 'varargs' bit.
321 (current_function_varargs): Delete macro.
322 * tree.h: Don't declare mark_varargs.
323
324 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
325 (c_expand_body): Don't call mark_varargs.
326 * c-objc-common.c: Handle BUILT_IN_VA_START and
327 BUILT_IN_STDARG_START identically. Delete
328 BUILT_IN_VARARGS_START case.
329 * c-tree.h: Don't declare c_mark_varargs.
330 * c-parse.in: Remove grammar rules for '&...' (which has been
331 commented out since before 2.7.2) and for '...' in K+R
332 argument declarations.
333
334 * builtins.c, function.c, integrate.c, sibcall.c,
335 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
336 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
337 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
338 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
339 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
340 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
341 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
342 config/stormy16/stormy16.c: Delete all references to
343 current_function_varargs, and code predicated on that flag.
344
345 * config/alpha/alpha.c (alpha_va_start),
346 config/arc/arc.c (arc_va_start),
347 config/i386/i386.c (ix86_va_start),
348 config/mips/mips.c (mips_va_start),
349 config/mn10300/mn10300.c (mn10300_va_start),
350 config/rs6000/rs6000.c (rs6000_va_start),
351 config/s390/s390.c (s390_va_start),
352 config/sh/sh.c (sh_va_start),
353 Ignore first argument; it is always 1.
354
355 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
356 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
357 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
358 Delete m68hc11_va_start.
359 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
360 No need to define EXPAND_BUILTIN_VA_START.
361
362 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
363 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
364
6d80a854
EB
3652002-07-15 Eric Botcazou <ebotcazou@multimania.com>
366
367 PR optimization/7153
368 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
369 dies in more than one insn.
370
043cfcbe
JT
3712002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
372
373 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
374
ed8d2920 3752002-07-15 Michael Matz <matz@suse.de>,
6c535c69 376 Daniel Berlin <dberlin@dberlin.org>,
ed8d2920
MM
377 Denis Chertykov <denisc@overta.ru>
378
379 Add a new register allocator.
380
381 * ra.c: New file.
382 * ra.h: New file.
383 * ra-build.c: New file.
384 * ra-colorize.c: New file.
385 * ra-debug.c: New file.
386 * ra-rewrite.c: New file.
387
388 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
389 (ra-rewrite.o): New .o files for libbackend.a.
390 (GTFILES): Add basic-block.h.
391
392 * toplev.c (flag_new_regalloc): New.
393 (f_options): New option "new-ra".
394 (rest_of_compilation): Call initialize_uninitialized_subregs()
395 only for the old allocator. If flag_new_regalloc is set, call
396 new allocator, instead of local_alloc(), global_alloc() and
397 friends.
398
399 * doc/invoke.texi: Document -fnew-ra.
400 * basic-block.h (FOR_ALL_BB): New.
401 * config/rs6000/rs6000.c (print_operand): Write small constants
402 as @l+80.
403
404 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
405 (df_reg_table_realloc): Make size at least as large as max_reg_num().
406 (df_insn_table_realloc): Size argument now is absolute, not relative.
407 Changed all callers.
408
409 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
410 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
411
412 2002-06-20 Michael Matz <matz@suse.de>
413
414 * df.h (struct ref.id): Make unsigned.
415 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
416
417 2002-06-13 Michael Matz <matz@suse.de>
418
419 * df.h (DF_REF_MODE_CHANGE): New flag.
420 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
421 involving subregs with invalid mode changes, when
422 CLASS_CANNOT_CHANGE_MODE is defined.
423
424 2002-05-07 Michael Matz <matz@suse.de>
425
426 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
427
428 2002-05-03 Michael Matz <matz@suse.de>
429
430 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
431
432 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
433
434 * regclass.c (regclass): Work with all regs which have sets or
435 refs.
436 (reg_scan_mark_refs): Count regs inside (clobber ...).
437
438 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
439
440 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
441 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
442 add new refs.
443 (df_bb_refs_update): Don't clear insns_modified here, ...
444 (df_analyse): ... but here.
445
446 * sbitmap.c (dump_sbitmap_file): New.
447 (debug_sbitmap): Use it.
448
449 * sbitmap.h (dump_sbitmap_file): Add prototype.
450
451 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
452
453 * df.c (df_insn_modify): Grow the UID table if necessary, rather
454 than assume all emits go through df_insns_modify.
455
456 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
457
458 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
459 increase REG_N_REFS (like flow does), so that regclass doesn't
460 think a reg is useless, and thus, not calculate a class, when it
461 really should have.
462
463 2001-01-28 Daniel Berlin <dberlin@redhat.com>
464
465 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
466 dataflow analysis.
467
794a292d
JJ
4682002-07-15 Jakub Jelinek <jakub@redhat.com>
469
470 PR middle-end/7245
471 * config/i386/i386.c (const_int_1_31_operand): New.
472 * config/i386/i386.h (PREDICATE_CODES): Add it.
473 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
474 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
475 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
476
05d49501
AM
4772002-07-14 Alan Modra <amodra@bigpond.net.au>
478
479 PR target/7282
480 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
481 (floatunssidf2): Likewise.
482 (floatsidf_ppc64): New insn_and_split.
483 (floatunssidf_ppc64): Likewise.
484
e89617fe
AJ
4852002-07-14 Andreas Jaeger <aj@suse.de>
486
487 * config.gcc (sh64): Remove unused
488 target_requires_64bit_host_wide_int.
489
78762e3b
RS
4902002-07-12 Roger Sayle <roger@eyesopen.com>
491
492 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
493 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
494 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
495 whether clear_by_pieces should be used to clear storage.
496 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
497
498 * doc/tm.texi: Document these two new target macros.
499
f7a454e9
SC
5002002-07-12 Stephane Carrez <stcarrez@nerim.fr>
501
502 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
503 the scratch register.
504 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
505 of it, forbid reload to use it.
506
26af4041
MM
5072002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
508
509 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
510 usage on 64-bit hosts, return value was truncated to 32 bits.
511
226cfe61
R
512Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
513
514 * simplify-rtx.c (simplify_subreg): Handle floating point
515 CONST_DOUBLEs. When an integer subreg of a smaller mode than
516 the element mode is requested, compute a subreg with an
517 integer mode of the same size as the element mode first.
518
25c25947
R
519Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
520
521 * combine.c (try_combine): When converting a paradoxical subreg
522 to an extension, take LOAD_EXTEND_OP into account.
523
789b7de5
RO
5242002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
525
526 * config.gcc (mips-sgi-irix6*o32): New configuration.
527
528 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
529 configurations.
530 * configure: Regenerate.
531
532 * config/mips/iris6-o32-as.h: New file.
533 * config/mips/iris6-o32.h: New file.
e89617fe 534
789b7de5
RO
535 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
536 (NM_FLAGS): Define.
537 (HAVE_AS_SHF_MERGE): Undefine.
538
539 * config/mips/t-iris5-as: New file.
540 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
541
542 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
543 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
544 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
545 dp-bit.c, fp-bit.c): Move ...
546 * config/mips/t-iris5-6: ... here.
547 New file, shared by IRIX 5 and IRIX 6.
548 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
549 mips-sgi-irix5*): Use it.
550
551 * config/mips/iris6.h: Remove duplicate comment.
552
553 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
554 !TARGET_IRIX6]: Define.
555 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
556
557 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
558
a18c2c5f
JDA
5592002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
560
561 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
562 and delete code to force constant to register.
563 * pa-protos.h (adddi3_operand): Add prototype.
564 * pa.c (adddi3_operand): New function.
565
e65a2d65
RS
5662002-07-11 Roger Sayle <roger@eyesopen.com>
567
568 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
569 non-ANSI builtin functions.
570
a06e3c40
R
571Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
572
573 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
574 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
575 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
576 (gen_const_vector_0): Use it.
577
47abc309
JDA
5782002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
579
580 * pa.md (adddi3): For 32-bit targets, force constants to a register
581 if they don't fit in an 11-bit immediate. Change insn predicate to
582 arith11_operand. Remove comment.
583 * pa.c (cint_ok_for_move): Fix comment.
584 (emit_move_sequence): Don't directly split DImode constants on 32-bit
585 targets.
586
8ac9d31f
TJ
5872002-07-11 Tim Josling <tej@melbpc.org.au>
588
e89617fe 589 Remove front end hard coding from gengtype.c.
8ac9d31f
TJ
590
591 * Makefile.in
592 (STAGESTUFF): add gtyp-gen.h
593 (GTFILES): Remove front end specific files.
594 (GTFILES_FILES_LANGS): New, from configure..
595 (GTFILES_FILES_FILES): Likewise.
596 (GTFILES_LANG_DIR_NAMES): Likewise.
597 (GTFILES_SRCDIR): Likewise.
598 (gtyp-gen.h): Build from configure information.
599 (s-gtype): Remove command line parameters from gengtype.
600 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
601 (mostlyclean): Delete files generated by and for gengtype.
602
603 * c-config-lang.in: New file.
604
605 * configure.in (all_gtfiles_files_langs): New. Accumulate files
606 for each language.
607 (all_gtfiles_files_files): New. Accumulate language for each file
608 accumulated.
609 (gtfiles): Pick up value for C.
610 (srcdir): AC-SUBST this variable.
611 (all_gtfiles_files_langs): AC-SUBST this variable.
612 (all_gtfiles_files_files): AC-SUBST this variable.
e89617fe 613
8ac9d31f 614 * configure: Regenerate.
e89617fe 615
8ac9d31f
TJ
616 * gengtype-lex.l (parse_file): Make parameter const.
617
618 * gengtype.c (toplevel): include gtyp-gen.h.
619 (BASE_FILE_<language> unnamed enum): Delete.
620 (lang_names): Delete (replaced by gtyp-gen.h)
621 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
622 all references.
623 (NUM_GT_FILES): New.
624 (NUM_LANG_FILES): New.
625 (srcdir_len): New.
626 (NUM_BASE_FILES): Change calculation.
627 (open_base_files): Change prototype to avoid warning.
628 (startswith): Delete.
629 (get_file_basename): Iterate through generated language list not
630 hard coded list.
631 (get_base_file_bitmap): Use generated list of files and languages.
632 (close_output_files): Add prototype to rmove warning.
633 (main): Iterate through list of generated files from gtyp-gen.h
634 rather than command line paramaters. Ignore duplicated file
e89617fe 635 names.
8ac9d31f
TJ
636
637 * gengtype.h (parse_file): Amend prototype for const parameter.
e89617fe 638
8ac9d31f
TJ
639 * doc/sourcebuild.texi: Document gtfiles variable.
640
641 * doc/gty.texi: Document changes to gtfiles variable for front
642 ends.
643
644 * objc/config-lang.in (gtfiles): Add files needed for objc front
645 end.
646
0e603223
RS
6472002-07-10 Roger Sayle <roger@eyesopen.com>
648
649 PR c/2454
650 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
651 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
652
c5358a5d
RS
6532002-07-10 Roger Sayle <roger@eyesopen.com>
654 Zack Weinberg <zack@codesourcery.com>
655
656 * builtins.def: Make the argument types of abort and exit
657 independent of the front-end.
658
a35f8b74
AM
6592002-07-11 Alan Modra <amodra@bigpond.net.au>
660
661 * config/rs6000/linux64.h (ASM_SPEC): Define.
662
89e7058f
AH
6632002-07-10 Aldy Hernandez <aldyh@redhat.com>
664
6c535c69
ZW
665 * config/rs6000/rs6000.c (emit_frame_save): New.
666 (rs6000_frame_related): Replace reg2 before reg.
667 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
668 and eh_return registers.
89e7058f 669
086bbd21
TM
6702002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
671
672 Revert all patches for optimization of Complex .op. Real.
673 * complex_part_zero_p: Remove
674 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
675 with x.
676 * expand_cmplxdiv_wide: Ditto.
677 * expand_binop: Ditto.
678
126dbce0
MM
6792002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
680
681 * config/avr/avr.md: Fix two 0x80000000 constants to make them
682 negative also on 64-bit hosts.
683
684 Default to -fno-reorder-blocks when optimizing for size.
685 * config/avr/avr-protos.h (avr_optimization_options): Declare.
686 * config/avr/avr.c (avr_optimization_options): New function.
687 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
688
689 Optimize returning from simple functions.
690 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
691 * config/avr/avr.c (avr_simple_epilogue): New function.
692 * config/avr/avr.md (return): New insn.
693
21c318ba
DR
6942002-07-10 Douglas B Rupp <rupp@gnat.com>
695
696 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
697 HAS_INIT_SECTION to protection.
698
537834c8
MM
6992002-07-10 Mark Mitchell <mark@codesourcery.com>
700
701 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
702 deprecated.
703
80ba02b1
R
704Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
705
706 * combine.c (gen_lowpart_for_combine): Handle vector modes.
707 Supply non-VOID mode to simplify_gen_subreg.
708
ae3aa00d
JH
709Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
710
711 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
712
029f3983
JL
7132002-07-10 Jeffrey A Law <law@redhat.com>
714
7a464913
JL
715 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
716 as appropriate.
717
6c535c69
ZW
718 * mn10200.c (expand_epilogue): Fix test to determine which scratch
719 register to use.
029f3983 720
ff27a429
R
721Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
722
723 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
724 Get mode from dest.
725 If simplify_gen_subreg fails, try next equivalent.
726
e6986399
GDR
7272002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
728
729 * diagnostic.h: #include location.h
730 (location_t): Move definition to..
731 * location.h: ... here. New file.
732 * tree.h: #include location.h
733 (DECL_SOURCE_LOCATION): New macro.
734 (DECL_SOURCE_FILE): Use.
735 (DECL_SOURCE_LINE): Likewise.
736 (struct tree_decl): REplace filename and linenum with locus.
737 * Makefile.in (TREE_H): add location.h
738 (diagnostic.o): Depends on gt-location.h
739 (gt-location.h): Depends on s-gtype
740
7990b46f
MK
7412002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
742
743 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
744 TARGET_OS_CPP_BUILTINS.
745 * config/rs6000/aix31.h: Likewise.
746 * config/rs6000/aix41.h: Likewise.
747 * config/rs6000/aix43.h: Likewise.
748 * config/rs6000/aix51.h: Likewise.
749 * config/rs6000/beos.h: Likewise.
750 * config/rs6000/darwin.h: Likewise.
751 * config/rs6000/eabi.h: Likewise.
752 * config/rs6000/eabisim.h: Likewise.
753 * config/rs6000/linux.h: Likewise.
754 * config/rs6000/linux64.h: Likewise.
755 * config/rs6000/lynx.h: Likewise.
756 * config/rs6000/mach.h: Likewise.
757 * config/rs6000/rtems.h: Likewise.
758 * config/rs6000/sysv4.h: Likewise.
759 * config/rs6000/vxppc.h: Likewise.
efa39e99
DP
760
7612002-07-09 Devang Patel <dpatel@apple.com>
762 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
763 Do not allow ObjC objects as a parameter type for Objective-C methods.
764 My previous patch restricted 'struct' also.
e89617fe 765
cd98faa1
NB
7662002-07-09 Neil Booth <neil@daikokuya.co.uk>
767
768 * cpperror.c (cpp_error): Default to directive_line within
769 directives here.
770 * cppexp.c (cpp_interpret_integer): Only use traditional
771 number semantics in directives.
772 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
773 (do_include_common): Similarly.
774 * cpptrad.c (scan_out_logical_line): Implement accurate
775 quoting of <> in #include.
776 * doc/cpp.texi: Update.
777
2ad65b0e 778Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
6c535c69 779 J"orn Rennecke <joern.rennecke@superh.com>
2ad65b0e
SC
780
781 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
782 * sh.md (attribute issues): Replace with:
783 (attribute pipe_model). All users changed.
784 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
785 All users changed.
786 (function units sh5issue, sh5fds): New.
787 (attribute is_mac_media): New.
788 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
789 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
790 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
791 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
792 (call_media, call_value_media, sibcall_media): Likewise.
793 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
794 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
795 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
796 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
797 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
798 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
799 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
800 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
801 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
802 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
803 (truncdfsf2_media): Likewise.
804 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
805 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
806
b6d33983
R
807Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
808
809 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
810 * sh.c (general_extend_operand, inqhi_operand): New functions.
811 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
812 alternatives using 'N' modifier. Add type.
813 (adddi3z_media): Likewise. Enable generator function generation.
814 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
815 exact predicates / constraints. Add type.
816 (subsi3): Allow 0 for SHMEDIA.
817 (udivsi3_i4_media): Use match_operand for input values
818 rather than hard registers.
819 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
820 unnecessarily through hard registers. Keep copies of pseudo
821 registers outside of the libcall sequence.
822 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
823 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
824 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
825 (extendhidi2, extendqidi2): Likewise.
826 (andsi3_compact): Name.
827 (andcdi3): Enable generator function generation.
828 (zero_extendhisi2, zero_extendqisi2): Rename to
829 (zero_extendhisi2_compact, zero_extendqisi2_compact).
830 (extendhisi2, extendqisi2): Rename to
831 (extendhisi2_compact, extendqisi2_compact).
832 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
833 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
834 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
835 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
836 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
837 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
838 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
839 (shmedia32_initialize_trampoline_big): Likewise.
840 (shmedia32_initialize_trampoline_little): Likewise.
841 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
842 (negdi2): Remove spurious T clobber.
843 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
844 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
845 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
846 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
847 (ic_invalidate_line_media): Write back data cache before invalidating
848 instruction cache. Add type.
849 (movsf_media): Sign-extend when the destination is a general
850 purpose register. Add type.
851 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
852 (casesi_worker_0+1): Only increment ref count for proper label.
853 (casesi_worker_0+2): Likewise.
854
7ca0873c
MM
8552002-07-09 Mark Mitchell <mark@codesourcery.com>
856
857 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
858
26b10ae0 8592002-07-09 Steve Ellcey <sje@cup.hp.com>
7ca0873c 860
26b10ae0
SE
861 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
862 from Pmode to ptr_mode.
863 (get_exception_pointer): Ditto.
864 (connect_post_landing_pads): Ditto.
865 (dw2_build_landing_pads): Ditto.
866
0c3a2ea0
SE
8672002-07-08 Steve Ellcey <sje@cup.hp.com>
868 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
869 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
870 (handle_pragma_redefine_extname): Change to use new function.
871
26c34780
RS
8722002-07-08 Roger Sayle <roger@eyesopen.com>
873
874 * combine.c (combine_simplify_rtx): Add an explicit cast
875 to avoid signed/unsigned comparison warning.
876 (simplify_if_then_else): Likewise.
877 (extended_count): Likewise.
878 (simplify_shift_const): Likewise.
879 (simplify_comparison): Likewise.
880
1d4047e0
RS
8812002-07-08 Richard Sandiford <rsandifo@redhat.com>
882
883 * config/mips/mips.md: Add imadd type. Update scheduler description
884 to use imadd as well as imul.
885 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
886 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
887 (*mul_sub_si): Likewise for first alternative. Change second
888 alternative from imul to multi.
889
5351f1ca
NB
8902002-07-07 Neil Booth <neil@daikokuya.co.uk>
891
892 * c-common.c (c_common_post_options): Update prototype;
893 don't init backends if preprocessing only.
894 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
895 * langhooks.h (struct lang_hooks): Update post_options to
896 return a boolean.
897 * toplev.c (parse_options_and_default_flags, do_compile,
898 lang_independent_init): Update prototypes. Allow the
899 front end to specify that there is no need to initialize
900 the back end.
901 (general_init): Move call to hex_init here...
902 (toplev_main): ...from here. Pass flag for back end init
903 suppression.
904
c8cc4417
R
905Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
906
907 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
908 (PREDICATE_CODES): Add entries for equality_comparison_operator,
909 greater_comparison_operator and less_comparison_operator.
910 * sh.c (print_operand): Add '\'' code. Make 'o' handle
911 more operators.
912 (equality_comparison_operator): New function.
913 (greater_comparison_operator, less_comparison_operator): Likewise.
914 * sh.md (beq_media_i): Disable generator function generation.
915 Use match_operator to handle a whole class of comparisons. Add
916 modifier in output template to provide branch prediction. Add type.
917 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
918 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
919 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
920 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
921
957ec0f9
HPN
9222002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
923
924 Emit MMIX function prologue and epilogue as rtl.
925 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
926 not unprototyped get_hard_reg_initial_val.
927 ("call_value", "nonlocal_goto_receiver"): Ditto.
928 ("return"): Make define_expand. Move real insn to...
929 ("*expanded_return"): New pattern.
930 ("prologue", "epilogue"): New define_expands.
931 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
932 (struct machine_function): New member in_prologue.
933 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
934 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
935 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
936 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
937 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
938 (LOCAL_REGNO): Define. Adjust comment.
939 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
940 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
941 leaf_function_p.
942 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
943 the prologue.
944 (mmix_target_asm_function_prologue): Make static. Just mark that
945 the prologue is being emitted. Move guts to...
946 (mmix_expand_prologue): New function. Adjust for emitting
947 prologue as rtl. For sizes, use HOST_WIDE_INT only.
948 (mmix_target_asm_function_epilogue): Make static. Simply emit a
949 \n. Move guts to...
950 (mmix_expand_epilogue): New function. Adjust for emitting
951 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
952 (mmix_target_asm_function_end_prologue): Mark that the prologue
953 has ended.
954 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
955 (mmix_conditional_register_usage): Improve comments.
956 (mmix_local_regno): New function.
957 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
958 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
959 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
960 (mmix_get_hard_reg_initial_val): Ditto.
961
7ab5c789
AJ
9622002-07-06 Andreas Jaeger <aj@suse.de>
963
964 * toplev.c (set_fast_math_flags): Don't use ISO C style function
965 definitions.
966 * gengtype.c (open_base_files): Likewise.
967 (close_output_files): Likewise.
968 * tracer.c (find_best_predecessor): Likewise.
969 (find_best_successor): Likewise.
970 (ignore_bb_p): Likewise.
971
df061a43
RS
9722002-07-05 Roger Sayle <roger@eyesopen.com>
973
974 PR c++/7099
975 * builtin-attrs.def: Define new attribute lists for use in
976 builtins.def.
977 * builtins.def [DEF_BUILTIN]: Modify to take an additional
978 ATTRS argument, an enumerated value defined in builtin-attrs.def
979 that represents the attribute list for the builtins. Modify
980 all builtin functions to pass an appropriate attribute list.
981 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
982 their required noreturn attributes.
983 * tree.h (enum_builtin_function): Ignore the additional parameter
984 to DEF_BUILTIN.
985 * builtins.c (built_in_names): Likewise.
986 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
987 argument with a tree representing the functions attribute list.
988 Pass this "attrs" argument to builtin_function. No longer handle
989 the noreturn_p processing manually.
990 (built_in_attributes): Move the definitions from builtin-attrs.def
991 before c_common_nodes_and_builtins.
992 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
993 DEF_BUILTIN, passing it to both builtin_function and the changed
994 builtin_function_2.
995
996 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
997 __builtin__exit and __builtin__Exit.
998
e5eb8de8
SC
9992002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1000
1001 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
1002 QI mode registers in soft registers.
7ab5c789 1003 ("zero_extendqihi2"): Do not take into account soft registers
e5eb8de8
SC
1004 for register allocation (use '*' constraint).
1005
4c8aed14
SC
10062002-07-05 Stephane Carrez <stcarrez@nerim.fr>
1007
1008 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
1009 it is dead.
1010 ("*ashrsi3"): Likewise.
1011 ("*lshrsi3"): Likewise.
1012
99ed68ea
VM
10132002-07-05 Vladimir Makarov <vmakarov@redhat.com>
1014
1015 * genautomata.c (output_max_insn_queue_index_def): Take latencies
1016 into account.
1017
4c8aed14 10182002-07-05 Stephane Carrez <stcarrez@nerim.fr>
581fd392
SC
1019
1020 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1021 address computation and memory moves.
1022
9833f679
MM
10232002-07-03 Mark Mitchell <mark@codesourcery.com>
1024
1025 PR c++/6706
1026 * dwarfout.c (output_reg_number): Fix warning message.
1027 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
1028 before using it.
7ab5c789 1029
81bca2f5
RO
10302002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1031
1032 * gcc/gcc.c (asm_debug): Move initialization ...
1033 (init_spec): ... here.
1034
17f44f02
NS
10352002-07-05 Nathan Sidwell <nathan@codesourcery.com>
1036
1037 * c-parse.in (extdef): Append ';'.
1038 (old_style_parm_decls): Append ';'.
1039
da77408f
DJ
10402002-07-04 Daniel Jacobowitz <drow@mvista.com>
1041
1042 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
1043 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
1044 to gcc_cv_as_gstabs_flag.
1045 * configure: Rebuilt.
1046
ec52b446
GK
10472002-07-04 Geoffrey Keating <geoffk@redhat.com>
1048
1049 * ggc.h (ggc_add_root): Document as obsolete.
1050
8721e3df
R
1051Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
1052
1053 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
1054 (mshflo_w): Likewise.
1055
3767c0fd
R
1056Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1057
1058 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
1059 vector mode subregs of constants to finding integer mode
1060 subregs of constants.
1061 * cse.c (cse_insn): Use simplify_gen_subreg.
1062 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
1063 From a vector mode expression of different size than the
1064 target mode.
1065
4e314d1f
EC
10662002-07-03 Eric Christopher <echristo@redhat.com>
1067
1068 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
1069 * config/mips/mips.h: Remove deprecated -m<processor> options
1070 and cc1_cpu_spec associated.
1071 (CONSTANT_ADDRESS_P): Fix last patch.
1072 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
1073 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
1074 sunge_sf): Remove.
1075
6f0361e3
SS
10762002-07-03 Stan Shebs <shebs@apple.com>
1077
1078 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
1079 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
1080 (CPP_SPEC): Remove insertion of APPLE_CC definition.
1081
3129af4c
RS
10822002-07-03 Roger Sayle <roger@eyesopen.com>
1083
1084 * combine.c (struct_undo): Change types of recorded substitutions
1085 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
1086 (do_SUBST_INT): Change types of the substitution from unsigned int
1087 to int, to avoid compilation warning from SUBST_INT's only caller.
1088
1089 (make_extraction): Add cast to avoid compilation warning.
1090 (force_to_mode): Remove cast to avoid compilation warning.
1091
c7375e61
EB
10922002-07-03 Eric Botcazou <ebotcazou@multimania.com>
1093 Jeff Law <law@redhat.com>
1094
1095 * i386.md (length_immediate attribute): Fix typo.
1096 (length_address attribute): Likewise.
1097 (modrm attribute): Set it to 0 for immediate call instructions.
1098 (jcc_1 pattern): Set modrm attribute to 0.
1099 (jcc_2 pattern ): Likewise.
1100 (jump pattern): Likewise.
1101 (doloop_end_internal pattern): Explicitly set length.
1102 (leave pattern): Fix typo.
1103 (leave_rex64 pattern): Likewise.
1104
61c07d3c
DE
11052002-07-03 David Edelsohn <edelsohn@gnu.org>
1106
1107 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
1108 in FPR as preference.
1109 (fctiwz): Same.
1110 (floatdidf2, fix_truncdfdi2): Same.
1111 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
1112 (floatditf2): Same.
1113 (floatsitf2, fix_trunctfsi2): SImode in GPR.
1114 (ctrdi): Remove FPR alternative and splitter.
1115
11162002-07-03 Will Cohen <wcohen@redhat.com>
77966be3
WC
1117
1118 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
1119
34a80643
R
1120Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
1121
1122 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
1123 than UNITS_PER_WORD, unless this is little endian and the first unit
1124 in this word. Let extract_bit_field decide how to load an element.
1125 Force arguments to matching mode.
1126 (expand_vector_unop): Likewise.
1127
1128 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
1129 consist of word_mode elements.
1130 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
1131 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
1132 (build_unary_op): Allow vector types for BIT_NOT_EPR.
1133 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
1134 CONST_VECTOR.
1135 * optabs.c (expand_vector_binop): Try to perform operation in
1136 smaller vector modes with same inner size. Add handling of AND, IOR
1137 and XOR. Reject expansion to inner-mode sized scalars when using
1138 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
1139 (expand_vector_unop): Try to perform operation in smaller vector
1140 modes with same inner size. Add handling of one's complement.
1141 When there is no vector negate operation, try a vector subtract
1142 operation. Use simplify_gen_subreg on constants.
1143 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
1144 constants into smaller vectors with same inner mode, and to
1145 integer CONST_DOUBLEs.
1146
622d3731
KG
11472002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1148
1149 * c-parse.in (parsing_iso_function_signature): New variable.
1150 (extdef_1): New, copied from...
1151 (extdef): ... here. Reset parsing_iso_function_signature.
1152 (old_style_parm_decls): Reset parsing_iso_function_signature.
1153 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
1154 Warn about ISO C style function definitions.
1155 (nested_function, notype_nested_function): Reset
1156 parsing_iso_function_signature.
1157 (parmlist_2): Set parsing_iso_function_signature.
1158
1159 * doc/invoke.texi (-Wtraditional): Document new behavior.
1160
9bb46191
CD
11612002-07-02 Chris Demetriou <cgd@broadcom.com>
1162
1163 * config.gcc (mips*el-*-*): Use tm_defines to set
1164 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
1165 * config/mips/little.h: Remove.
1166
e1c2dd26 11672002-07-02 Devang Patel <dpatel@apple.com>
c40da518 1168
c40da518 1169 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
31e25abd
CD
1170 object as parameter. Prevent something like 'NSObject' to be
1171 used as the type for a method argument.
c40da518 1172
0879540b
NB
11732002-07-03 Neil Booth <neil@daikokuya.co.uk>
1174
1175 * cpptrad.c: Update comment.
1176
b6fb43ab 11772002-07-02 Neil Booth <neil@daikokuya.co.uk>
4e314d1f 1178
b6fb43ab
NB
1179 * doc/cpp.texi: Update for traditional preprocessing changes.
1180 * goc/cppopts.texi: Similarly.
1181
c1c5187c
ZL
11822002-07-02 Ziemowit Laski <zlaski@apple.com>
1183
1184 * c-parse.in (designator): Enable designated initializers if ObjC.
1185 (objcmessageexpr): Remove references to objc_receiver_context.
1186 * objc/objc-act.h (objc_receiver_context): Remove decl.
1187 * objc/objc-act.c (objc_receiver_context): Remove.
1188 (lookup_objc_ivar): Test objc_method_context instead of
1189 objc_receiver_context.
1190
52702ae1
R
1191Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
1192
1193 * sh.c (print_operand, case 'N'): Allow zero vector.
1194 (arith_reg_or_0_operand): Likewise.
1195 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
4e314d1f 1196 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
52702ae1
R
1197 IOR, XOR, PLUS and SET and take their respective constant
1198 ranges into account.
1199 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
1200 * sh.md (subdi3, subdi3_media): Allow zero operand.
1201 (movv8qi_i+3): Only vector that is not split is the zero vector.
1202 Fix operand 3 to simplify_subreg.
1203 (movv2si_i): Split alternative 1.
1204 (mshfhi_l_di_rev+1): New splitter.
1205
49e7b251
NB
12062002-07-02 Neil Booth <neil@daikokuya.co.uk>
1207
ba57a9c0 1208 PR preprocessor/7029
49e7b251
NB
1209 * cppinit.c (cpp_handle_option): Suppress warnings with an
1210 implicit "-w" for "-M" and "-MM".
1211 * doc/cppopts.texi: Update.
1212
a3acdc0c
RS
12132002-07-01 Roger Sayle <roger@eyesopen.com>
1214
1215 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
1216 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
1217 builtin_function.
1218
0b558962
AM
12192002-07-02 Alan Modra <amodra@bigpond.net.au>
1220
1221 * README.Portability: Fix typos.
1222
9a81c5b7
HPN
12232002-07-01 Hans-Peter Nilsson <hp@axis.com>
1224
1225 PR target/7177
1226 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
1227 of indirections for register inside sign-extended mem part.
1228
6a2dd09a
RS
12292002-07-01 Roger Sayle <roger@eyesopen.com>
1230
1231 * tree.h: Modify builtin_function interface to take an extra
1232 argument ATTRS, which is a tree representing an attribute list.
1233
1234 * c-decl.c (builtin_function): Accept additional parameter.
1235 * objc/objc-act.c (builtin_function): Likewise.
1236 * f/com.c (builtin_function): Likewise.
1237 * java/decl.c (builtin_function): Likewise.
1238 * ada/utils.c (builtin_function): Likewise.
1239 * cp/decl.c (builtin_function): Likewise.
1240 (builtin_function_1): Likewise.
1241
1242 * c-common.c (c_common_nodes_and_builtins): Pass an additional
1243 NULL_TREE argument to builtin_function. (builtin_function_2):
1244 Likewise.
1245 * cp/call.c (build_java_interface_fn_ref): Likewise.
1246 * objc/objc-act.c (synth_module_prologue): Likewise.
1247 * java/decl.c (java_init_decl_processing): Likewise.
1248 * f/com.c (ffe_com_init_0): Likewise.
1249
1250 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
1251 NULL_TREE argument to builtin_function.
1252 * config/arm/arm.c (def_builtin): Likewise.
1253 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
1254 * config/i386/i386.c (def_builtin): Likewise.
1255 * config/ia64/ia64.c (def_builtin): Likewise.
1256 * config/rs6000/rs6000.c (def_builtin): Likewise.
1257
e20569ae
ZW
12582002-07-01 Zack Weinberg <zack@codesourcery.com>
1259
1260 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
1261 * config/mips/t-isa3264: Likewise.
1262 * config/mmix/t-mmix: Likewise.
1263
f1b690f1
JDA
12642002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1265
1266 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
1267
6bfa5aac
RS
12682002-07-01 Roger Sayle <roger@eyesopen.com>
1269
1270 PR opt/4046
1271 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
1272 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
1273 B are truth values.
1274
9a5c1b9d
NN
12752002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
1276
1277 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
1278
d3fc4dbc
MK
12792002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
1280
3b2124df
MK
1281 * README.Portability (Function prototypes): Give an example of
1282 declaring and defining a function with no arguments.
1283
d3fc4dbc
MK
1284 * README.Portability (Function prototypes): Document new
1285 variable-argument function macros.
1286
c1b92d09
R
1287Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
1288
1289 * sh.c (langhooks.h): Include.
1290 (sh_init_builtins, sh_media_init_builtins): New functions.
1291 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
1292 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
1293 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
1294 (builtin_description): New struct tag.
1295 (signature_args, bdesc): New arrays.
1296 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
1297 (print_operand): Add 'N' modifier.
1298 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
1299 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
1300 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
1301 (CONST_COSTS): Add special case for SHmedia AND.
1302 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
1303 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
1304 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
1305 target_operand can also be const or unspec.
1306 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
1307 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
1308 (attribute type): Add new types.
1309 (anddi3): Add splitter.
1310 (movdi_const_16bit+1): Add code to handle vector constants and
1311 bitmasks efficiently.
1312 (shori_media): Have generator function made.
1313 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
1314 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
1315 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
1316 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
1317 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
1318 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
1319 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
1320 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
1321 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
1322 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
1323 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
1324 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
1325 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
1326 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
1327 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
1328 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
1329 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
1330 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
1331 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
1332 (ftrv): Likewise.
1333
1334 (fpu_switch+1, fpu_switch+2): Remove constraint.
1335
97ebc06f
AH
13362002-07-01 Aldy Hernandez <aldyh@redhat.com>
1337
6c535c69
ZW
1338 * tree.c (build_function_type_list): Update function comment.
1339 Rename first argument to return_type.
97ebc06f 1340
353a10d0
NB
13412002-07-01 Neil Booth <neil@daikokuya.co.uk>
1342
1343 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
1344 tradcif.y and related files.
1345
e34cabb3
NB
13462002-07-01 Neil Booth <neil@daikokuya.co.uk>
1347
1348 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
1349
8bf3ccbb
KG
13502002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1351
1352 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
1353
118f8dc1
DP
13542002-06-30 Devang Patel <dpatel@apple.com>
1355
1356 * objc/objc-act.c (finish_file): Avoid finish_objc() if
1357 -fsyntax-only.
1358
e3223ea2
DC
1359Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
1360 Frank Ch. Eigler <fche@redhat.com>
6c535c69 1361 Matthew Green <mrg@redhat.com>
e3223ea2
DC
1362 Richard Henderson <rtl@redhat.com>
1363 Dave Hudson <dave.hudson@ubicom.com>
1364 Jeff Johnston <jjohnstn@redhat.com>
1365 Alan Lehotsky <apl@alum.mit.edu>
1366 Bernd Schmidt <bernds@redhat.com>
1367 Graham Stott <grahams@redhat.com>
4e314d1f 1368
e3223ea2
DC
1369 * doc/extend.texi: Add ip2k port to description of attribute
1370 naked.
1371 * doc/install.texi (Specific): Add ip2k description.
1372 * doc/install-old.texi (Configurations): Add ip2k to possible
1373 cpu types.
1374 * doc/md.texi: Document ip2k constraints.
1375 * config/ip2k/crt0.S: New file.
1376 * config/ip2k/ip2k-protos.h: New file.
1377 * config/ip2k/ip2k.c: New file.
1378 * config/ip2k/ip2k.h: New file.
1379 * config/ip2k/ip2k.md: New file.
1380 * config/ip2k/libgcc.S: New file.
1381 * config/ip2k/t-ip2k: New file.
1382
66b8c57f
HPN
13832002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
1384
1385 * config/mmix/mmix.md ("return"): New pattern.
1386 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
1387 (TARGET_USE_RETURN_INSN): New macros.
1388 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
1389 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
1390 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
1391 (MMIX_POP_ARGUMENT): New macro.
1392 (mmix_target_asm_function_prologue): When no epilogue is executed,
1393 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
1394 (mmix_print_operand) <case '.'>: New case.
1395 (mmix_print_operand_punct_valid_p): Match '.'.
1396 (mmix_use_simple_return): New function.
1397 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
1398 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
1399 -msingle-exit, -mno-single-exit.
1400 (MMIX Options): Ditto.
1401
e7a60f56
AH
14022002-06-30 Aldy Hernandez <aldyh@redhat.com>
1403
6c535c69 1404 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
e7a60f56 1405
1ef7d32b
KG
14062002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1407
1408 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
1409
c8b64bf2
AM
14102002-06-30 Alan Modra <amodra@bigpond.net.au>
1411
1412 * unroll.c (loop_iterations): Handle EQ loops.
1413
35aba846
DE
14142002-06-29 David Edelsohn <edelsohn@gnu.org>
1415
1416 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
1417 constraint in define_expand, not splitter.
1418 Formatting.
1419
b4de2f7d
AH
14202002-06-29 Aldy Hernandez <aldyh@redhat.com>
1421
6c535c69
ZW
1422 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
1423 build_function_type_list instead of build_function_type.
b4de2f7d 1424
6c535c69 1425 * config/ia64/ia64.c (ia64_init_builtins): Same.
b4de2f7d 1426
6c535c69 1427 * config/alpha/alpha.c (alpha_init_builtins): Same.
b4de2f7d 1428
6c535c69 1429 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
b4de2f7d 1430
6c535c69 1431 * config/arm/arm.c (arm_init_builtins): Same.
b4de2f7d 1432
6c535c69 1433 * tree.h: Add build_function_type_list prototype.
b4de2f7d 1434
6c535c69 1435 * tree.c (build_function_type_list): New.
b4de2f7d 1436
1691051f
KG
14372002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1438
1439 * collect2.c (scan_prog_file): Fix typo in message.
1440
7bfb14f1
AL
14412002-06-28 Aaron Lehmann <aaronl@vitelus.com>
1442
6c535c69 1443 * fold-cont.c: Remove unused CHARMASK.
7bfb14f1 1444
38800fe8
NB
14452002-06-29 Neil Booth <neil@daikokuya.co.uk>
1446
1447 PR preprocessor/7150
1448 * cppmain.c (scan_translation_unit_trad): Simplify.
590e1987 1449 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
38800fe8 1450
f60ed6be
NB
14512002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
1452
1453 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
1454 Don't use CPP_PREDEFINES.
1455 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
1456 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
1457 * config/i386/djgpp.h, config/i386/i386-coff.h,
1458 config/i386/i386-interix.h, config/i386/i386-interix3.h,
1459 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
1460 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
1461 config/i386/uwin.h: Similarly.
1462
76118c11
HB
14632002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1464
6c535c69 1465 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
76118c11
HB
1466 flag_inline_trees to enable inlining.
1467
9137b119
PE
14682002-06-28 Phil Edwards <pme@gcc.gnu.org>
1469
1470 * configure.in (gcc_gxx_include_dir): Change to match versioned
1471 C++ headers if --enable-version-specific-runtime-libs is used.
1472 * configure: Regenerate.
1473
6bdb8dd6
JH
14742002-06-28 Jan Hubicka <jh@suse.cz>
1475
1476 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
1477
f1b1186f
SC
14782002-06-28 Stephen Clarke <stephen.clarke@superh.com>
1479
1480 * combine.c (combine_simplify_rtx): Pass the mode of the
1481 shift count, not the shift operation when trying to simplify
1482 a shift on a SHIFT_COUNT_TRUNCATED target.
1483
ae9bd481
SC
14842002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1485
1486 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
1487 avoid the auto increment addressing modes.
1488 ("*subsi3"): Likewise.
4e314d1f 1489 (split for add/sub on address): For 68HC12 push the value on
ae9bd481
SC
1490 the stack and do the operation with a pop.
1491
1d63a28a
NB
14922002-06-28 Neil Booth <neil@daikokuya.co.uk>
1493
1494 * cpplib.c (_cpp_handle_directive): Move #define-specific
1495 code to the #define handler...
1496 (do_define): ...here.
1497 (lex_macro_node): No longer a need to check for comments here.
1498
4caff360
SC
14992002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1500
1501 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
1502 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1503 Declare.
1504 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
1505 do not reorder basic blocks at the end when optimizing for size.
1506
2cc21497
SC
15072002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1508
1509 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
1510 (m68hc11_make_autoinc_notes): New function.
1511 (m68hc11_split_move): Be very cautious when spliting a move with
1512 auto increment/decrement modes because this may result in incompatible
1513 directions; add REG_INC notes to the resulting insn for CSE reg.
1514
3cdd2821
SC
15152002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
1516
1517 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
1518 can be a valid address.
1519
e6a82e80
AH
15202002-06-28 Aldy Hernandez <aldyh@redhat.com>
1521
6c535c69
ZW
1522 * config/rs6000/rs6000.c: Remove unusued variables from last
1523 patch.
e6a82e80 1524
a7ae18e2
AH
15252002-06-27 Aldy Hernandez <aldyh@redhat.com>
1526
1527 Revert:
6c535c69
ZW
1528 * config/rs6000/rs6000.c (rs6000_override_options): Move
1529 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
a7ae18e2 1530
3a9b8c7e
AH
15312002-06-27 Aldy Hernandez <aldyh@redhat.com>
1532
6c535c69
ZW
1533 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
1534 lvx/stv/dst builtins...
1535 (altivec_expand_ld_builtin): ...to here.
1536 (altivec_expand_st_builtin): ...here.
1537 (altivec_expand_dst_builtin): ...and here (respectively).
3a9b8c7e 1538
5f9dc214
BW
15392002-06-28 Bob Wilson <bob.wilson@acm.org>
1540
1541 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
1542
53501a19
BS
15432001-06-08 Bernd Schmidt <bernds@redhat.com>
1544
1545 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
1546 subregs.
1547 * recog.c (general_operand, register_operand): Disallow them.
1548
d1a58688
NB
15492002-06-28 Neil Booth <neil@daikokuya.co.uk>
1550
1551 PR preprocessor/7138
1552 * cpplib.c (_cpp_handle_directive): Do traditional
1553 preparation after setting state.angled_headers.
1554 * cpptrad.c (scan_out_logical_line): Fix potential
1555 quote bug.
1556
55c1c60d
AH
15572002-06-27 Aldy Hernandez <aldyh@redhat.com>
1558
6c535c69
ZW
1559 * config/rs6000/rs6000.c (rs6000_override_options): Move
1560 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
55c1c60d 1561
3219c65b
BW
15622002-06-27 Bob Wilson <bob.wilson@acm.org>
1563
1564 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
1565 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
1566 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
1567
c8f863fc
RS
15682002-06-27 Roger Sayle <roger@eyesopen.com>
1569
1570 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
1571 * config/stormy16/stormy16.h: Likewise.
1572
1573 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
1574 with #define.
1575
8d5362b7
GP
15762002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1577
1578 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
1579 Hitachi entry. Make punctuation more consistent.
1580
57694e40
MK
15812002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
1582
1583 * doc/install.texi: Change ` bit' to `-bit'.
1584 * doc/md.texi: Change `-bits' to `-bit'.
1585 * doc/tm.texi: Change `-bits' to ` bits'.
1586
c635a1ec
DB
15872002-06-27 Daniel Berlin <dberlin@dberlin.org>
1588
1589 * gcse.c (hoist_code): Rewrite to only get list of dominated
4e314d1f 1590 blocks once per BB. Also fix reversed test (by removing need for
c635a1ec
DB
1591 the test at all).
1592
951a0766
NB
15932002-06-27 Neil Booth <neil@daikokuya.co.uk>
1594
1595 * cpphash.h (_cpp_set_trad_context): Remove.
1596 * cpplib.c (prepare_directive_trad): Do nothing for #define.
1597 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
1598 * cpptrad.c: Update comments.
1599 (_cpp_read_logical_line_trad): Let scan_logical_line handle
1600 updating the current context.
1601 (scan_logical_line): Update the current context.
1602 (_cpp_create_trad_definition): Similarly.
1603 (_cpp_set_trad_context): Remove.
1604
06470238
NB
16052002-06-27 Neil Booth <neil@daikokuya.co.uk>
1606
1607 PR preprocessor/7070
1608 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
1609
0c14a54d
BW
16102002-06-26 Bob Wilson <bob.wilson@acm.org>
1611
1612 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
1613 config/xtensa/xtensa.c (xtensa_return_addr): New function.
1614 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
1615 config/xtensa/xtensa.md (fix_return_addr): New pattern.
1616
e9873fd5
KG
16172002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1618
1619 * mips.c (coprocessor_operand, coprocessor2_operand,
1620 symbolic_operand): Move prototypes from here...
1621 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
1622 symbolic_operand): ...to here.
1623
650e8d05
R
1624Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1625
1626 * config/sh/crt1.asm: remove _stack label definition
1627 and sentinel value.
1628
c7836bcd
KG
16292002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1630
1631 * varasm.c: Include real.h before output.h.
1632
6e1f54e2
AH
16332002-06-26 Aldy Hernandez <aldyh@redhat.com>
1634
6c535c69
ZW
1635 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
1636 check for TARGET_ALTIVEC.
6e1f54e2 1637
18fbcbcf
NN
16382002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
1639
1640 * config.gcc (vax-*-vms*): Make obselete.
1641
09bed167
KG
16422002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1643
1644 * gcc.c (warn_std): Delete.
1645
8254cb45
LR
16462002-06-25 Loren J. Rittle <ljrittle@acm.org>
1647
1648 * doc/extend.texi: Fix formatting of last checkin.
1649
f9ee10ab
RO
16502002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1651
1652 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
1653 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
1654
90989b26
AH
16552002-06-25 Aldy Hernandez <aldyh@redhat.com>
1656
6c535c69
ZW
1657 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1658 discrepancies from motorola's documentation.
90989b26 1659
9881adff
R
1660Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
1661
1662 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
1663 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
4de1b7a9 1664
4e314d1f 1665 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
4de1b7a9
R
1666 produce a 32 bit result before normalization, then normalize with a
1667 left shift. Compute approximative error of 2nd reciprocal
1668 approximation in 2's complement. Fix mask generation from upper
1669 longword of second divide stage result.
1670 For large divisor, fix shift count used to truncate first stage
1671 divide result; make decision if to adjust upwards based on comparison
1672 of higher parts of normalized values.
1673 (udivdi): Likewise. Undo normalization of result for large divisor
1674 case.
1675
16b46035
DM
16762002-06-25 David S. Miller <davem@redhat.com>
1677
1678 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
1679
0c6db544
NB
16802002-06-25 Neil Booth <neil@daikokuya.co.uk>
1681
1682 * cpplib.c (do_include_common): Revert to correct line number
1683 if -traditional.
1684 * cpptrad.c (scan_out_logical_line): Treat null directive as
1685 white space. Invlidate MI optimization for non-whitespace
1686 text outside a directive.
1687
eef709c7
KG
16882002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1689
b41e09a7
KG
1690 * Makefile.in (SHELL): Set to @SHELL@.
1691 * fixinc/Makefile.in (SHELL): Likewise.
1692
eef709c7
KG
1693 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
1694 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
1695 initialization.
1696
b0ac73f8
JL
16972002-06-24 Jeff Law <law@redhat.com>
1698
1699 * flow.c (propagate_one_insn): When removing an insn
1700 with a REG_LIBCALL note but not the entire libcall sequence,
1701 delete the associated REG_RETVAL note.
1702
9e96203d
R
1703Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
1704
1705 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
1706 (udivsi3): Likewise. Rewrite SH1 implementation.
1707 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
1708 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
1709 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
1710 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
1711 (_moddi3): Likewise.
1712
1713 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
87912be7
R
1714
1715 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
1716 arguments into account for stack_regs.
1717
0d893a63
MK
17182002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
1719
1720 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
1721 in examples.
4e314d1f 1722
04a5176a
AH
17232002-06-24 Art Haas <ahaas@neosoft.com>
1724
1725 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
1726 * doc/tm.texi (Frame Layout): Likewise.
1727
cad61762 17282002-06-20 Steve Ellcey <sje@cup.hp.com>
ec52b446 1729
cad61762
SE
1730 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
1731 Set float_format to i128.
1732
556a56ac
DM
17332002-06-24 David S. Miller <davem@redhat.com>
1734
1735 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
1736 32-bit ABI libfuncs to NULL.
1737
563facba
DM
1738 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
1739 strings instead of quoted strings for code blocks.
b776892b 1740
556a56ac
DM
1741 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
1742 optabs if op1 is const0_rtx.
1743
a8106207
DM
1744 * Makefile.in (GTFILES): Add basic-block.h
1745 * basic-block.h (label_value_list, tail_recursion_label_list):
1746 Mark with GTY.
1747
2c088b53
NB
17482002-06-24 Neil Booth <neil@daikokuya.co.uk>
1749
1750 * cpptrad.c (scan_out_logical_line): Check recursing only when
1751 we know we have a macro invocation in the function-like case.
1752 Only call _cpp_handle_directive if we know we have a good
1753 directive, or we want to reject a bad directive.
1754
0228d06b
AM
17552002-06-24 Alan Modra <amodra@bigpond.net.au>
1756
1757 * doloop.c (doloop_valid_p): Correct comment.
1758 (doloop_modify_runtime <abs_inc != 1>): Simplify.
1759 (doloop_modify_runtime <do-while>): Don't emit code when NE.
1760
2f9021d3
DC
1761Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
1762
1763 * config.gcc: Add support for ip2k.
1764
bc9c2952 17652002-06-23 Jan Hubicka <jh@suse.cz>
f81a79ef
JH
1766 Jeff Law <law@redhat.com>
1767
1768 * function.h (struct emit_status): Clarify potential contents
1769 of regno_reg_rtx array.
1770 * integrate.c (copy_rtx_and_substitute): Update comments. Make
1771 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
bc9c2952
AJ
1772
1773 * reg-stack.c (convert_regs_exit): Push the registers to stack in
1774 proper order.
1775
faa964e5
UW
17762002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1777
1778 PR middle-end/6963
1779 * function.c (assign_stack_temp_for_type): Do not return
1780 the same MEM rtx for multiple uses of a stack slot.
1781
7ae3e57c
DM
17822002-06-22 David S. Miller <davem@redhat.com>
1783
1784 PR target/6841 target/6770 target/6719
1785 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
1786 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
1787 GENERAL_OR_EXTRA_FP_REGS.
1788
847c76c8
NB
17892002-06-22 Neil Booth <neil@daikokuya.co.uk>
1790
1791 * cpptrad.c (struct fun_macro): Add line number.
1792 (scan_out_logical_line): Set it, and use it to report unterminated
1793 macro invocations.
1794
813674e0
KG
17952002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1796
1797 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
1798 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
1799 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
1800 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
1801 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
1802 REGEXP_ONEOF, check_name): Const-ify.
1803
23361093
MT
18042002-06-21 Matt Thomas <matt@3am-software.com>
1805
1806 * config/vax/vax.c (vax_output_function_prologue): Use
bc9c2952 1807 REGISTER_PREFIX. Fix some indentation.
23361093
MT
1808 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
1809 (VAX_ISTREAM_SYNC): Define.
1810 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
bc9c2952
AJ
1811 i-stream sync to the end.
1812 (REGISTER_PREFIX): Define as "".
23361093
MT
1813 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
1814
1c655a0d
JT
18152002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
1816
1817 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
1818 configurations.
1819
3e16bfe2
KG
18202002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1821
1822 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
1823 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
1824
6b0760fd
MT
18252002-06-21 Matt Thomas <matt@3am-software.com>
1826
1827 * config/vax/netbsd.h: Adjust a comment.
1828 (TARGET_DEFAULT): Redefine as 0.
1829
31a78298
RH
18302002-06-21 Richard Henderson <rth@redhat.com>
1831
1832 * bb-reorder.c (make_reorder_chain_1): Search harder for the
bc9c2952
AJ
1833 vax casesi fallthru edge.
1834 * cfglayout.c (cleanup_unconditional_jumps): Use
31a78298
RH
1835 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
1836 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
1837 block after ADDR_VEC.
1838
d8bf1785
RO
18392002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1840
1841 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
1842
00b94a44
NB
18432002-06-21 Neil Booth <neil@daikokuya.co.uk>
1844
1845 * cpperror.c (cpp_error): For traditional CPP, default to
1846 diagnostics on pfile->line.
1847 * cpplib.c (prepare_directive_trad): Set line number for
1848 diagnostics for #define too.
1849 * cpptrad.c (skip_whitespace): Skip comments properly.
1850 (_cpp_expansions_different_trad): Initialize quote2.
1851
c583c5c3
HPN
18522002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
1853
1854 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
1855 * config/mmix/mmix.h: Ditto.
1856 * config/mmix/mmix-protos.h: Ditto.
1857 * config/mmix/mmix.c: Ditto. Fix typo in comment.
1858 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
1859 comment. Comment extra CC modes.
1860
1292ec0c
JH
18612002-06-20 Jan Hubicka <jh@suse.cz>
1862
1863 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
1864 (scope_to_insns_finalize): Do not call set_block_levels; handle
1865 sequences.
1866 (choose_inner_scope): New.
1867 * rtl.h (choose_inner_scope): Declare.
1868
0f8e3849
JDA
18692002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
1870
1871 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
1872 HOST_WIDE_INT.
1873 * pa.c (pa_asm_output_mi_thunk): Likewise.
1874 (n_deferred_plabels): Change type to size_t.
1875 (output_deferred_plabels, output_call): Use size_t instead of int.
1876
0655301f
RH
18772002-06-20 Richard Henderson <rth@redhat.com>
1878
1879 PR target/4041
1880 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
1881 pattern and adjust constraints for coldfire.
1882
2b3aadfc
RH
18832002-06-20 Richard Henderson <rth@redhat.com>
1884
1885 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
1886
5c44e275
CD
18872002-06-20 Chris Demetriou <cgd@broadcom.com>
1888
1889 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
1890
8fff5435
CD
18912002-06-20 Chris Demetriou <cgd@broadcom.com>
1892
1893 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
1894
8a67e083
SS
18952002-06-20 Stan Shebs <shebs@apple.com>
1896
1897 * dominance.c: Include errors.h instead of error.h.
1898
017acb41
NB
18992002-06-20 Neil Booth <neil@daikokuya.co.uk>
1900
1901 * cppexp.c (cpp_interpret_integer): Don't force traditional
1902 numbers to be unsigned.
1903 * cpplib.c (prepare_directive_trad): Set line number for
1904 diagnostics.
1905 * cpptrad.c (scan_out_logical_line): Continue scanning out
1906 at start of buffer.
1907 * gcc.c (trad_capable_cpp): Use cc1 always.
1908
0ed4a390
JL
19092002-06-20 Jeffrey Law <law@redhat.com>
1910
1911 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
1912 elimination in leaf functions by default yet.
1913
988ef418
RS
19142002-06-20 Richard Sandiford <rsandifo@redhat.com>
1915
1916 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
1917
0ab2e54b
RO
19182002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1919
1920 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
1921 multilibs.
1922 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
d8bf1785 1923 Fixes PR other/6836.
0ab2e54b 1924
355be0dc
JH
1925Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
1926 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
1927
1928 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
1929
1930 * basic-block.h: Do not include et-forest.h
1931 (dominance_info): Declare as struct dominance-info.
1932 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
1933 deleting block.
1934 * dominance.c (struct dominance_info): Define.
1935 (BB_NODE, SET_BB_NODE): New macros.
1936 (bb_hash_func, bb_eq_func): Kill.
1937 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
1938 nearest_common_dominator, dominated_by_p, recount_dominator,
1939 add_to_dominance_info, delete_from_dominance_info): update for new
1940 representation.
1941 (get_dominated_by, redirect_immediate_dominators): Rewrite using
1942 enumerate_sons.
1943 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
1944 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
1945 structure.
1946
1947 * et-forest.h: Update copyright; revamp all function to operate on
1948 nodes
1949 (et_forest_value): Kill.
1950 (et_forest_enumerate_sons, et_forest_node_value): New.
1951 * et-forest.c: Update copyright.
1952 * et-forest.h: Update copyright; revamp all function to operate on
1953 nodes
1954 (et_forest_value): Kill.
1955 (et_forest_enumerate_sons, et_forest_node_value): New.
1956
1957 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1958
1959 * basic-block.h: Inlude et-forest.h
1960 (basic_block_def): Kill dominator.
1961 (dominance_info): New type.
1962 (loops): Use dominace_info.
1963 (dominace handling functions): Take dominace_info as argument
1964 instead of bitmaps.
1965 (create_preheader): Likewise.
1966 * cfg.c (entry_exit_blocks): Kill dominator.
1967 (dump_flow_info): Do not dump dominators.
1968 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
1969 dominators.
1970 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
1971 (flow_loops_pre_header_scan, make_forwarder_block,
1972 canonicale_loop_headers, flow_loops_find): Likewise.
1973 * dominance.c: Include error.h
1974 (idoms_to_doms): Kill.
1975 (bb_hash_func, bb_eq_func): New static functions.
1976 (debug_dominace_info): New global function.
1977 (calculate_dominance_info): Use new et forest structure.
1978 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
1979 get_dominated_by, redirect_immediate_dominators,
1980 nearest_common_dominator, dominated_by_p, verify_dominators,
1981 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
1982 delete_from_dominance_info): New global functions.
1983 * gcse.c (domnators): CHange to dominance_info.
1984 (alloc_hoist_mem): Do not alloc dominators
1985 (free_code_hoist_mem): Use free_dominance_info.
1986 (compute_code_hoist_data): Use dominance_info.
1987 (hoist_code): Likewise.
1988 * ifcvt.c (post_dominators): Likewise.
1989 (find_if_case_2, if_convert): Likewise.
1990 * predict.c (process_note_predictions, process_note_prediction,
1991 estimate-probability): Likewise.
1992 * sched-rgn.c (find_rgns, init_regions): Likewise.
1993 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
1994 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
1995 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
1996 find_evaluations, convert_to_ssa): Likewise.
1997 * ssa.h (compute_dominance_frontiers): Likewise.
1998
1999 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2000
2001 * Makefile.in (et-forest.c): Add.
2002 * et-forest.c: New file.
2003 * at-forest.h: New file.
2004
ef9772c8
KG
20052002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2006
62c71f4b
KG
2007 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
2008 array size calculation.
2009 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
2010 Likewise.
2011
ef9772c8
KG
2012 * diagnostic.c (diagnostic_kind_text): Const-ify.
2013 * gengtype.c (lang_names): Likewise.
2014
b0dd4808
JH
2015Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
2016
2017 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
2018
8433a25e
RO
20192002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2020
2021 * config/sol2.h: New file.
2022 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
2023 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
2024 (sparc-*-chorusos*): Likewise.
2025 (sparc-*-elf*): Likewise.
2026 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
2027 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
2028 (sparc-hal-solaris2*): Likewise.
2029 (sparc-*-solaris2*): Likewise.
2030 (sparclite-*-elf*): Likewise.
2031 (sparc86x-*-elf*): Likewise.
2032 (sparc64-*-elf*): Likewise.
bc9c2952 2033
8433a25e
RO
2034 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
2035 config/sol2.h.
2036 (ASM_SPEC): Override config/sol2.h version for now.
2037 Removed obsolete GAS_REJECTS_MINUS_S variant.
2038 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
2039 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2040 (TARGET_OS_CPP_BUILTINS): Likewise.
2041 Assert system=unix.
2042 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
2043 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
2044 config/sol2.h.
2045 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2046 (ASM_CPU_SPEC): Define.
2047 (SUBTARGET_EXTRA_SPECS): Define.
bc9c2952 2048
8433a25e
RO
2049 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
2050 in config/sparc/sol2.h.
2051 (ASM_SPEC): Moved to config/sol2.h.
2052 (CPP_CPU_SPEC): Simplified.
2053 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
2054 consistency.
2055 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
2056 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
2057 STARTFILE_ARCH64_SPEC.
2058 (STARTFILE_SPEC): Moved to config/sol2.h
2059 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
2060 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
2061 (LINK_ARCH64_SPEC): Simplified.
2062 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
2063 (LINK_SPEC): Moved to config/sol2.h
bc9c2952 2064
8433a25e
RO
2065 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
2066 config/sol2.h.
2067 Use BITS_PER_WORD for size.
2068 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
2069 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2070 (CPP_PREDEFINES): Removed OS-specific part handled by
2071 TARGET_OS_CPP_BUILTINS.
2072 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
2073 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
2074 (ASM_SPEC): Moved to config/sol2.h.
2075 (PREFERRED_DEBUGGING_TYPE): Likewise.
2076 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
2077 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2078 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
2079 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
bc9c2952 2080
8433a25e
RO
2081 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
2082 * config/i386/sol2gas.h: Removed.
2083
b6bb1d56
JH
2084Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2085
2086 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
2087
e50b19ce 20882002-06-16 Aldy Hernandez <aldyh@redhat.com>
4e314d1f 2089
e50b19ce
AH
2090 * gcc.c-torture/execute/simd-1.c: New.
2091
2092 * gcc.dg/simd-1.c: New.
2093
2094 * doc/extend.texi (Vector Extensions): Document that we can
2095 specify simd types not specifically supported by the hardware.
2096 Document that simd types can be used as function arguments.
2097 Document that signness does make a difference in SIMD types.
2098 Misc cleanups and revisions to the vector extensions section.
2099
2100 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
2101 constants.
2102
2103 * expr.c (vector_mode_valid_p): New.
2104
2105 * expr.h: Add vector_mode_valid_p.
2106
2107 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
2108
2109 * c-common.c (type_for_mode): Always build vector nodes regardless
2110 of VECTOR_MODE_SUPPORTED_P.
2111 (handle_mode_attribute): Error if we can't emulate a nonexisting
2112 vector mode.
2113 (handle_vector_size_attribute): Same.
2114
2115 * optabs.c (expand_binop): Open-code vector operations.
2116 (expand_unop): Open-code vector unops.
2117 (expand_vector_binop): New.
2118 (expand_vector_unop): New.
4e314d1f 2119
e50b19ce
AH
2120 * c-typeck.c (build_binary_op): Allow vectors in binops.
2121 Allow vectors in conditional operatiors.
2122 (build_unary_op): Allow vectors in unary minus.
2123
2124 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
2125 TARGET_ALTIVEC.
2126
74d86f4f
RH
21272002-05-20 Richard Henderson <rth@redhat.com>
2128
2129 * c-common.c (c_common_get_alias_set): Correctly handle characters.
2130 Rearrange order of expressions; don't handle vectors here.
2131 * alias.c (get_alias_set): Let vectors match their components.
2132
1867b624
CD
21332002-06-19 Chris Demetriou <cgd@broadcom.com>
2134
6c535c69 2135 * config/mips/mips.c (mips_emit_prefetch): Use hints which
1867b624
CD
2136 match desired locality.
2137
2c1d2fcb
DD
21382002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2139
2140 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
2141 (h8300_insert_attributes): New.
2142
84d901be
AD
21432002-06-19 Akim Demaille <akim@epita.fr>
2144
2145 * c-parse.in (initelt: identifier ':' initval): Add an empty
2146 action to fix a type clash.
2147 (aliasdecl, classdef): Add the missing closing `;'.
2148 Whitespace changes.
2149 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
2150 $$ = $1 type clashes.
2151
8f2e3902
EC
21522002-06-19 Eric Christopher <echristo@redhat.com>
2153
2154 * config/mips/mips.c (symbol_operand): New function.
2155 (mips_emit_prefetch): Ditto.
2156 * config/mips/mips-protos.h: Define.
2157 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
2158 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
2159 (LEGITIMIZE_ADDRESS): Ditto.
2160 * config/mips/mips.md (prefetch, prefetch_si_address,
2161 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
2162
c894819c
EC
21632002-06-19 Eric Christopher <echristo@redhat.com>
2164
2165 * config/fp-bit.h: Add unordered defines for gofast.
2166
4005971c
VM
21672002-06-19 Vladimir Makarov <vmakarov@redhat.com>
2168
2169 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
2170 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
2171 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
2172 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
2173 checking and without it.
2174 (decl_name, decl_mode_check_failed, regexp_name,
2175 regexp_mode_check_failed): New functions.
2176 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2177 gen_presence_set, gen_absence_set, gen_automaton,
2178 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2179 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
2180 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
2181 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
2182 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
2183 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
2184 (decl_hash, decl_eq_p): Use the macros.
2185 (find_decl): Ditto. Set up mode of work_decl.
2186 (process_excls, process_presence_absence, process_decls,
2187 check_automaton_usage, process_regexp, process_regexp_decls,
2188 check_usage, loop_in_regexp, check_loops_in_regexps,
2189 process_regexp_cycles, add_advance_cycle_insn_decl,
2190 initiate_states, initiate_excl_sets,
2191 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
2192 transform_2): Use the macros.
2193 (transform_3): Ditto. Check mode before making transformations of
2194 ALLOF.
2195 (regexp_transform_func, transform_insn_regexps,
2196 process_unit_to_form_the_same_automaton_unit_lists,
2197 form_the_same_automaton_unit_lists_from_regexp,
2198 form_the_same_automaton_unit_lists,
2199 process_seq_for_forming_states, process_alts_for_forming_states,
2200 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
2201 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
2202 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
2203 units_to_automata_heuristic_distr, create_ainsns,
2204 units_to_automata_distr, create_automata): Use the macros.
2205 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
2206 (longest_path_length, min_issue_delay_pass_states,
2207 output_dead_lock_vect, output_tables, output_insn_code_cases,
2208 output_internal_insn_latency_func, output_print_reservation_func,
2209 output_description, output_automaton_units, generate): Use the
2210 macros.
2211 (make_insn_alts_attr): Ditto. Check case when there are not
2212 alternatives in the reservation.
2213 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
2214 make_bypass_attr, form_important_insn_automata_lists,
2215 expand_automata): Use the macros.
c894819c 2216
015089dd
TJ
22172002-06-20 Tim Josling <tej@melbpc.org.au>
2218
2219 * Makefile.in: Clean up code to check for misspecified languages
2220 in enable-languages.
2221
7999462c
AP
22222002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
2223
84d901be 2224 * cpptrad.c (_cpp_replacement_text_len): initialize len.
7999462c 2225
9c8d079c
JM
22262002-06-19 Jason Merrill <jason@redhat.com>
2227
2228 * Makefile.in (unstrap, restrap): New targets.
2229 (bootstrap): Mention restrap.
2230
d90a95fb
MK
22312002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
2232
2233 * except.c (ehl_free): Remove.
2234
2235 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
2236 builtin_define and builtin_define_std.
2237
f01a0d8d
ID
22382002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2239
2240 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
2241 (sCOND): Restrict operand class so that gcc knows how to reload them.
2242 (bitfield_set): Merge two unnamed insn's using alternatives.
2243 (call_value): Remove constraint on unused uperand.
2244 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
2245 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
c894819c 2246
f01a0d8d
ID
2247 * longlong.h (count_trailing_zeros): Escape newline and beautify.
2248
62363d99
MM
22492002-06-19 Mark Mitchell <mark@codesourcery.com>
2250
2251 * Makefile.in (QMTEST_DIR): Simplify definition.
2252
099bd656
NC
22532002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
2254
2255 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
2256 #define.
2257
278c4662
NB
22582002-06-19 Neil Booth <neil@daikokuya.co.uk>
2259
2260 * cpphash.h (struct cpp_reader): Make date and time strings.
2261 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
2262 _cpp_replacement_text_len): New.
2263 * cppinit.c (cpp_create_reader): Update.
2264 (init_builtins): Register appropriate builtins for -traditional-cpp.
2265 * cppmacro.c (new_number_token): Remove.
2266 (_cpp_builtin_macro_text): New.
2267 (builtin_macro): Use it.
2268 (cpp_macro_definition): Update to handle traditional macros.
2269 * cppmain.c (cb_line_change): Don't do column positioning for
2270 traditional output.
2271 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
2272 state ls_fun_close.
2273 (skip_whitespace): Fix.
2274 (maybe_start_funlike): Don't set state.parsing_args.
2275 (scan_out_logical_line): Remove duplicate error. Use lex_state
2276 rather than state.parsing_args.
2277 (push_replacement_text): Handle builtins.
2278 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
2279
afd1930f 22802002-06-18 Hans-Peter Nilsson <hp@axis.com>
f01a0d8d 2281 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
afd1930f
HPN
2282
2283 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
2284 attribute __always_inline__.
2285
5ee924c2
BW
22862002-06-18 Bob Wilson <bob.wilson@acm.org>
2287
2288 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
2289 when generating the call to _mcount.
2290 (NO_PROFILE_COUNTERS): Define.
2291
32c36ac8
RH
22922002-06-18 Richard Henderson <rth@redhat.com>
2293
2294 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
2295 2002-06-02 change.
2296
c985dc5e
R
2297Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
2298
2299 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
2300 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
2301 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
2302 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
e3ba8d11
R
2303
2304 * sh-protos.h (sh_pr_interrupt): Declare.
2305 * sh.c (sh_pr_interrupt): New function.
2306 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
2307 (sh_hard_regno_rename_ok): Likewise.
2308 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
2309
e3c8eb86
VM
23102002-06-18 Vladimir Makarov <vmakarov@redhat.com>
2311
2312 * rtl.def (DEFINE_AUTOMATON): Add description of new options
2313 `time' and `v'. Fix incorrect description of option `w'.
2314
2315 * doc/md.texi: Ditto.
2316
2317 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
2318 (gen_automata_option): Process the new options.
2319 (transform_2, transform_3): Initialize some variables.
2320 (initiate_automaton_gen): Use the new macros.
c894819c 2321
b2471838
RS
23222002-06-18 Richard Sandiford <rsandifo@redhat.com>
2323
2324 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
2325 (mips_set_return_address, mips_restore_gp): Declare.
2326 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
2327 (current_frame_info): Remove.
2328 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
2329 * config/mips/mips.c: Remove uses of current_frame_info.
2330 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
2331 (struct machine_function): Add 'frame' and 'insns_len'.
2332 (current_frame_info, zero_frame_info): Remove.
2333 (mips_restore_gp, mips_set_return_address): New.
2334 (mips_initial_elimination_offset): New.
2335 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
2336 (eh_return define_split): Use mips_set_return_address.
2337
d97371e0
NB
23382002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
2339
2340 * cpplib.c (dtable): Update.
2341 (end_directive): Decrement expansion prevention count.
2342 Clear state.in_expression.
2343 (prepare_directive_trad): Set state.in_expression.
2344 Increment expansion prevention count.
2345 * cpptrad.c (enum ls): New.
2346 (_cpp_overlay_buffer): Set overlaid_buffer.
2347 (_cpp_remove_overlay): Use overlaid_buffer.
2348 (_cpp_read_logcial_line_trad): Update buffer when it might
2349 have changed.
2350 (scan_out_logical_line): Handle state transitions for assertions
2351 and defined() in #if, and for funlike invocations including the
2352 directive case. Handle '<' and '>' as a quote mechanism in
2353 #include. Warn about unterminated macro invocations.
2354 * cpphash.h (struct lexer_state): New member in_expression.
2355 (struct cpp_reader): New member overlaid buffer.
2356
807b20b0
HPN
23572002-06-18 Hans-Peter Nilsson <hp@axis.com>
2358
2359 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
2360 __always_inline__.
2361
8a09a7e5
AM
23622002-06-18 Alan Modra <amodra@bigpond.net.au>
2363
147d5f6f
AM
2364 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
2365
8a09a7e5
AM
2366 * doloop.c (doloop_optimize): Extract pattern from insn.
2367
390de769
MK
23682002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
2369
2370 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
2371
0ed4a390 23722002-06-17 Jeff Law <law@redhat.com>
912ce297
JL
2373
2374 * libgcc2.c: Do not include symcat.h or machmode.h.
2375
5c45425b
RH
23762002-06-17 Richard Henderson <rth@redhat.com>
2377
2378 PR target/6922
2379 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
2380
9aa497ae
TT
23812002-06-17 Tom Tromey <tromey@redhat.com>
2382
2383 * dwarfout.c: Include function.h.
2384
7f11f1f9
AS
23852002-06-17 Andreas Schwab <schwab@suse.de>
2386
2387 * print-rtl.c (print_rtx): Print space before vector, not after.
2388 (debug_rtx): Clear sawclose before printing.
2389 (debug_rtx_list): Print newline after each list element.
2390 (debug_rtx_range): Likewise.
2391
df696a75
RH
23922002-06-17 Richard Henderson <rth@redhat.com>
2393
2394 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
2395 (current_function_funcdef_no): Similarly.
2396 * function.c (funcdef_no): Similarly.
2397 (prepare_function_start): Set current_function_funcdef_no.
2398 (expand_function_start): Don't set current_function_profile_label_no.
2399 * dwarf2out.h (current_funcdef_number): Remove.
2400 * dwarf2out.c (current_funcdef_number): Remove. Replace with
2401 current_function_funcdef_no throughout.
2402 * dwarfout.c, vmsdbgout.c: Similarly.
2403 * except.c (sjlj_funcdef_number): Remove.
2404 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
2405 (output_function_exception_table): Likewise.
2406 * final.c (profile_function): Use current_function_funcdef_no
2407 instead of current_function_profile_label_no.
2408
97272202
VM
24092002-06-17 Vladimir Makarov <vmakarov@redhat.com>
2410
2411 * sched-ebb.c (init_ready_list): Check INSN_P first.
2412
8bccce2d
R
2413Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
2414
2415 * sh.md (divsi3): Update way how to find insns in a sequence.
dec0798e
R
2416
2417 * reload1.c (merge_assigned_reloads): Don't change reloads
2418 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
2419 to RELOAD_OTHER when there are conflicting input reloads.
2420
0af5c896
RE
24212002-06-17 Richard Earnshaw (rearnsha@arm.com)
2422
2423 * function.c (epilogue_done): Correctly build a sequence of insns for
2424 a sibcall epilogue.
2425
9d0fa9d6
NC
24262002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
2427
845b1456
NC
2428 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
2429 #define.
2430
9d0fa9d6
NC
2431 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
2432
e83f3cff
RH
24332002-06-16 Richard Henderson <rth@redhat.com>
2434
2435 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2436 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2437
caecc099
RH
24382002-06-16 Richard Henderson <rth@redhat.com>
2439
2440 PR opt/6722
2441 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
2442
3d05b15f
NB
24432002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
2444
caecc099
RH
2445 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
2446 * config/i386/i386-aout.h, config/i386/i386elf.h,
2447 config/i386/sysv4.h: Remove CPP_PREDEFINES.
2448 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
2449 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
2450 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
2451 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
3d05b15f 2452 CPP_PREDEFINES and part of CPP_SPEC.
caecc099 2453 * config/i386/sysv4-cpp.h: New.
3d05b15f 2454
8370aa3a
RH
24552002-06-16 Richard Henderson <rth@redhat.com>
2456
65a90f3c 2457 PR c/7030
8370aa3a
RH
2458 * dwarf2out.c (modified_type_die): Don't assign the qualified die
2459 to the unqualified type.
2460
e932b21b
JH
2461Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
2462
2463 * i386-protos.h (x86_field_alignment): Declare.
2464 * i386.c (x86_field_alignment): Define.
2465 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
2466 (BIGGEST_FIELD_ALIGNMENT): Kill.
2467
7ee02381
RH
24682002-06-16 Richard Henderson <rth@redhat.com>
2469
f01a0d8d 2470 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
7ee02381 2471
750491fc
RH
24722002-06-16 Richard Henderson <rth@redhat.com>
2473
2474 * c-common.c (flag_ms_extensions): Move from c++ front end.
2475 * c-common.h (flag_ms_extensions): Declare.
2476 * c-decl.c (c_decode_option): Add -fms-extensions.
2477 (grokfield): Don't accept anonymous structures in ISO C mode;
2478 accept only unnamed anonymous structures in GNU C mode; accept
2479 Plan 9 extensions in MS mode.
2480 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
2481 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
2482 (extension): Clear flag_iso.
2483 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
2484
c134da6b
HPN
24852002-06-16 Hans-Peter Nilsson <hp@axis.com>
2486
2487 PR target/7042
2488 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
2489 early if current_function_epilogue_delay_list is non-empty.
2490 * config/cris/cris.md ("return"): Add sanity check asserting that
2491 current_function_epilogue_delay_list is empty.
2492
038c7976
JL
24932002-06-16 Jeff Law <law@redhat.com>
2494
006a94b0
JL
2495 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
2496 sharing of hard registers.
2497
2498 * toplev.c (rest_of_compilation): Remove redundant conditional.
2499
038c7976
JL
2500 * toplev.c (rest_of_compilation): Perform a simpler, less costly
2501 cleanup of the CFG when not optimizing.
2502
0797741a
AM
25032002-06-16 Alan Modra <amodra@bigpond.net.au>
2504
2505 * gcc.c (main): Correct startfile_prefix_spec check.
2506
a6e2e53e
GK
25072002-06-12 Geoffrey Keating <geoffk@redhat.com>
2508
2509 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
2510 include both darwin.o and rs6000-c.o.
2511
129e0ee8
RS
25122002-06-15 Roger Sayle <roger@eyesopen.com>
2513
2514 * expr.c (compare_from_rtx): Call simplify_relational_operation
2515 on all comparisons, not just those between integer constants,
2516 with the correct (possibly unsigned) comparison code.
2517 (do_compare_rtx_and_jump): Likewise.
2518
d5355cb2
JDA
25192002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
2520
2521 * Makefile.in (tm_defines): New configuration variable.
2522 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
2523 Pass tm_defines in TM_DEFINES.
2524 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
2525 * config.gcc (tm_defines): New configuration variable.
2526 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
2527 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
2528 * configure.in: Substitute tm_defines.
2529 * configure: Rebuilt.
2530 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
2531 * doc/install.texi: Update.
2532 * pa/pa-700.h: Delete file.
2533 * pa/pa-7100.h: Delete file.
2534
8dcb27ed
RS
25352002-06-15 Roger Sayle <roger@eyesopen.com>
2536
2537 * fold-const.c (comparison_to_compcode): New function to convert
2538 an comparison TREE CODE into a bit-based representation.
2539 (compcode_to_comparison): New function to convert from this bit
2540 based representation back to a comparison TREE CODE.
2541 (fold_truthop): Simplify (x<y) && (x==y) and related composite
2542 comparisons.
2543
182e515e
AH
25442002-06-15 Aldy Hernandez <aldyh@redhat.com>
2545
f01a0d8d 2546 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
182e515e 2547
f01a0d8d
ID
2548 * stor-layout.c (compute_record_mode): Remove check for
2549 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
2550 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
2551 MEMBER_TYPE_FORCES_BLK.
182e515e 2552
f01a0d8d 2553 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
182e515e 2554
f01a0d8d 2555 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
182e515e 2556
8773135d
JS
25572002-06-14 Jeff Sturm <jsturm@one-point.com>
2558
2559 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
2560
893a047c
SE
25612002-06-14 Steve Ellcey <sje@cup.hp.com>
2562
2563 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
2564 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
2565 * configure, config.in: Regenerate.
2566
045d7161
EB
25672002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2568
2569 * loop.c (check_final_value): Use v->always_executed
2570 instead of v->always_computable.
2571 * unroll.c (final_giv_value): Don't calculate the final
2572 value as a function of the biv if the giv is not computed
2573 for every loop iteration.
2574
048c8616 25752002-06-14 Eric Botcazou <ebotcazou@multimania.com>
c894819c 2576
048c8616
EB
2577 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
2578
43e4a9d8
EB
25792002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2580
52689a98 2581 PR c/6677
43e4a9d8
EB
2582 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
2583 the truncation down when the target type is signed.
2584 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
2585 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
2586 the conversion if the target type is a smaller type.
2587
fa4a5557
RH
25882002-06-14 Richard Henderson <rth@redhat.com>
2589
2590 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
2591 earlier. Re-factor comparisons vs extrema.
2592
d95eb49f
RH
25932002-06-14 Richard Henderson <rth@redhat.com>
2594
2595 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
2596
be202ec2
FS
25972002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2598
2599 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
2600 * sched-deps.c (add_dependence): Likewise.
2601 (group_leader): Likewise.
2602 * sched-rgn.c (init_ready_list): Likewise.
2603 * doc/rtl.texi: Adjust accordingly.
2604
e56c4463
JL
26052002-06-13 Jeffrey Law <law@redhat.com>
2606
99a15921
JL
2607 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
2608 null pointer checks were eliminated. Update prototype.
2609 (delete_null_pointer_checks): Similarly.
2610 * rtl.h (delete_null_pointer_checks): Update prototype.
2611 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
2612 delete_null_pointer_checks deletes one or more null
2613 pointer checks. Do not run cleanup_cfg before gcse, the
2614 CFG is accurate and optimized at that point..
2615
e56c4463
JL
2616 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
2617 of hard registers.
2618
556b821e
UW
26192002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2620
2621 * Makefile.in (libgcc.mk): Depend on specs.
2622
fa60f36d
R
2623Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
2624
2625 * sh.md (mulsi3): Update way how to find insns in a sequence.
2626
03b8ec29
DD
2627Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2628
2629 * sh.h: Define HARD_REGNO_RENAME_OK
2630 * sh.c: sh_hard_regno_rename_ok: New. If current function has
2631 interrupt_handler attribute, only registers saved on stack are OK.
2632 * sh-protos.h: Declare sh_hard_regno_rename_ok.
2633
8e831557
KK
26342002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
2635
2636 * config/sh/sh.md (jump): Emit jump insn.
2637 (call_pcrel): Get pattern of the result of gen_call_site.
2638 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
2639
bf9d5852
NB
26402002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
2641
2642 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
2643 * cpptrad.c: Update comments.
2644 (skip_whitespace, copy_comment): Take a new parameter.
2645 (skip_escaped_newlines): Don't duplicate escaped newline test.
2646 (copy_comment): Different location for CUR, decide here how
2647 to copy / replace the comment.
2648 (skip_whitespace): Copy whitespace.
2649 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
2650 (scan_out_logical_line): Let copy comment handle keeping or
2651 replacing comments.
2652 (scan_parameters, _cpp_create_trad_definition): Update.
2653
57292ec3
AL
26542002-06-13 Alan Lehotsky <apl@alum.mit.edu>
2655
2656 * reload.c (get_secondary_mem,find_reloads_address,
2657 find_reloads_address_1): Pass reference to MEM to find_reloads_address
2658 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
c894819c 2659
a6f5e048
RH
26602002-06-13 Jessica Han <jessica@cup.hp.com>
2661
2662 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2663 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2664 * doc/tm.texi: Document them.
2665 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2666 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2667 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
2668 (ASM_OUTPUT_FDESC): Likewise.
2669
3aafa0bb
EC
26702002-06-13 Eric Christopher <echristo@redhat.com>
2671
2672 * diagnostic.c (output_format): Fix thinko.
2673
8e581963
R
2674Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
2675
2676 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
2677 (DWARF2_UNWIND_INFO): Define to 0.
9d7ed806
R
2678
2679 * config/sh/sh.c (calc_live_regs): Don't use initial_value
2680 optimization for PR_MEDIA_REG.
2681
b66377c1
NB
26822002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
2683
2684 * cpphash.h (_cpp_lex_identifier_trad): Remove.
2685 * cpplib.c (end_directive): Don't skip, always remove overlay
2686 apart from #define.
2687 (prepare_directive_trad): Handle NULL pfile->directive.
2688 (_cpp_handle_directive): Always call prepare_directive_trad
2689 if traditional.
2690 * cppmain.c (check_multiline_token): Rename account_for_newlines,
2691 generalize inputs.
2692 (scan_translation_unit_trad): Use it.
2693 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
2694 output, get escaped newline in comment close correct.
2695 (check_output_buffer, skip_whitespace): Update.
2696 (_cpp_lex_identifier_trad): Remove.
2697 (scan_out_logical_line): Handle -C and comments in directives
2698 properly.
2699
8bc6e101
R
2700Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2701
2702 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
2703 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2704 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
2705 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
2706 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
2707 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
2708 (SELECT_SH5_COMPACT_NOFPU): Likewise.
2709 (TARGET_SWITCHES): Use them.
2710 (TARGET_CPU_DEFAULT): Define if not already defined.
2711 (TARGET_DEFAULT): Use it.
2712 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
2713 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
2714 * config/sh/t-monolib: New file.
2715
2181005d
RS
27162002-06-13 Roger Sayle <roger@eyesopen.com>
2717
2718 * toplev.c (rest_of_compilation): Simplify (and correct) the
2719 logic of the first delete-null-pointer-checks pass.
2720
aaae0bb9
JH
2721Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
2722
2723 * i386.c (ix86_expand_movstr): Fix pasto.
2724
2725Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
b80cb6e2
JH
2726
2727 * reload.c (find_valid_class): Fix thinko in my previous patch.
2728
dd3fbd93
UW
27292002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
2730
2731 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
2732 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
2733 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
2734 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
2735
0d0f605c
GDR
27362002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
2737
2738 * tree-inline.c (expand_call_inline): Don' mess with _DECL
3aafa0bb 2739 fields.
0d0f605c 2740
c92bcccb
GDR
27412002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
2742
2743 * diagnostic.c (output_format): Recognize "%H" as a format
2744 specifier for a location_t.
2745 (text_specifies_location): New function.
2746 (diagnostic_set_info): Use it.
2747
7f243674
JL
27482002-06-13 Jeffrey Law <law@redhat.com>
2749
6cde4876
JL
2750 * emit-rtl.c (static_regno_reg_rtx): Define.
2751 (init_emit_once): Initialize static_regno_reg_rtx.
2752 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
2753 of building new hard reg objects once per function.
2754 (gen_rtx_REG): Try to share hard regs.
2755 * regclass.c (init_fake_stack_mems): New function broken out from
2756 init_regs.
2757 * rtl.h (init_fake_stack_mems): Declare.
2758 * toplev.c (lang_independent_init): Call init_regs before
2759 init_emit_once. Call init_fake_stack_mems after init_emit_once.
2760
110b3faa
JL
2761 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
2762
7f243674
JL
2763 * alias.c (argument_registers): Remove.
2764 (init_alias_once): Initialize static_reg_base_value here. Remove
2765 initialization of argument_registers.
2766 (init_alias_once_per_function): Remove.
2767 (init_alias_analysis): Copy all the entries from static_reg_base_value
2768 into new_reg_base_value all at once.
2769 * rtl.h (init_alias_once_per_function): Remove declaration.
2770 * function.c (prepare_function_start): Do not call
2771 init_alias_once_per_function.
2772
2773 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
2774 starting a sequence and emitting an INSN.
2775
a336f2e5
RS
27762002-06-13 Richard Sandiford <rsandifo@redhat.com>
2777
2778 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
2779
2acf0fa9
DM
27802002-06-13 David S. Miller <davem@redhat.com>
2781
2782 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
2783
974c43f1
NB
27842002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
2785
2786 * cpplib.c (end_directive): Handle line skipping. Only remove
2787 the rest of the line if the directive was valid.
2788 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
2789 expanding a traditional macro.
2790 * cpptrad.c (recursive_macro): New.
2791 (read_logical_line_trad): Handle skipping.
2792 (scan_out_logical_line): Continue after a successful directive.
2793 Don't expand macros whilst skipping, or if recursing.
2794 (_cpp_create_trad_definition): scan_out_logical_line now sets
2795 the output current position.
2796
12bf26b6
EC
27972002-06-12 Eric Christopher <echristo@redhat.com>
2798
2799 From Chris Demetriou <cgd@broadcom.com>
2800 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
2801 comment.
2802 (ISA_HAS_MADD_MSUB): Ditto.
2803 (ISA_HAS_NMADD_NMSUB): Ditto.
2804
be95b8a5
EC
28052002-06-12 Eric Christopher <echristo@redhat.com>
2806
2807 * config.gcc: Consolidate little endian handling and
2808 little/big endian targets.
2809 * config/mips/elfl.h: Remove file.
2810 * config/mips/elfl64.h: Ditto.
2811 * config/mips/ecoffl.h: Ditto.
2812 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
2813
e03856fe
GK
28142002-06-12 Geoffrey Keating <geoffk@redhat.com>
2815
2816 * gengtype.h (xvasprintf): New prototype.
2817 (xasprintf): New prototype.
2818 (struct outf): New.
2819 (get_output_file): Return an outf_p.
2820 (header_file): Is now an outf_p.
2821 (base_files): Now are outf_p.
2822 (oprintf): New.
2823 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
2824 rather than stdio operations. Use xasprintf in a few places,
2825 when appropriate.
2826 (xvasprintf): New.
2827 (xasprintf): New.
2828 (struct filemap): Delete.
2829 (files): Delete.
2830 (output_files): New.
2831 (oprintf): New.
2832 (create_file): Create an outf_p. Add parameter to indicate output
2833 file name, change all callers.
2834 (open_base_files): Create gtype-desc.c here.
2835 (get_output_file_with_visibility): Rewrite.
2836 (get_output_file_name): Just look at 'name' field in struct outf.
2837 (close_output_files): Rewrite.
2838
ec01703c
JT
28392002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
2840
2841 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
be95b8a5 2842 (MASK_G_FLOAT): Define.
ec01703c
JT
2843 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
2844 (TARGET_SWITCHES): Likewise.
2845 (TARGET_DEFAULT): Likewise.
2846
8b0397a6
DJ
28472002-06-12 Daniel Jacobowitz <drow@mvista.com>
2848
2849 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
2850 * config/mips/mips.c (mips_output_filename): Don't print a
2851 ".file" directive if we are using DWARF-2.
2852 (mips_output_function_prologue): Do not emit source file
2853 name for TARGET_GAS.
2854
495333a6
JH
2855Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
2856
2857 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
2858 decide whether emit the short opcode.
2859 * i386.h (x86_shift1): Declare.
2860 (TARGET_SHIFT1): New macro.
2861 * i386.c (x86_shift1): New global variable.
2862
8b0397a6
DJ
2863 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
2864 unconditionally; make loop to rebuild CFG; kill unnecesary
2865 find_basic_block calls; kill compute_bb_for_insn call.
495333a6
JH
2866 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
2867 * haifa-sched.c (sched_init): Likewise.
2868 * ssa-ccp.c (ssa_const_prop): Likewise.
2869 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2870
d11cea13
DM
28712002-06-11 David S. Miller <davem@redhat.com>
2872
2873 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
2874 active_insn_p.
2875
676997cf
RH
28762002-06-11 Richard Henderson <rth@redhat.com>
2877
2878 * c-common.c (builtin_define_type_max): New.
2879 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
2880 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
2881
2882 From Joseph S. Myers:
2883 * glimits.h: Rewrite to expect the double underscore definitions
2884 from the compiler.
2885
2886 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
2887 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
2888 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
2889 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
2890 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
2891 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
2892 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
2893 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
2894
116b7a5e
RH
28952002-06-11 Richard Henderson <rth@redhat.com>
2896
2897 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
2898 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
2899 (code_for_builtns): Update.
2900 (alpha_init_builtins): Add __builtin_thread_pointer and
2901 __builtin_set_thread_pointer.
2902 (alpha_expand_builtin): Handle void builtins.
2903 * doc/extend.texi (Alpha Built-in Functions): Update.
2904
0cec6af1
HPN
29052002-06-11 Hans-Peter Nilsson <hp@axis.com>
2906
2907 PR target/6997
2908 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
2909
1c0ca89d
ZW
29102002-06-11 Zack Weinberg <zack@codesourcery.com>
2911
2912 * config.gcc: Make the name of the extra-modes file adjustable
2913 by target stanzas.
2914 (s390x, strongarm, xscale stanzas): Use this facility.
2915 * configure.in: Update to match.
2916 * configure: Regenerate.
2917
5dc8d536
AH
29182002-06-11 Aldy Hernandez <aldyh@redhat.com>
2919
1c0ca89d
ZW
2920 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
2921 max/mins as unsigned GE compares.
5dc8d536 2922
169274cd
JT
29232002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
2924
1c0ca89d 2925 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
169274cd
JT
2926 * config/vax/bsd.h: New file.
2927 * config/vax/netbsd.h: Add missing notice.
1c0ca89d
ZW
2928 (CPP_PREDEFINES): Remove.
2929 (TARGET_OS_CPP_BUILTINS): Define.
2930 (CPP_SPEC): Use NETBSD_CPP_SPEC.
169274cd
JT
2931 * config/vax/openbsd.h: Update copyright years.
2932 (CPP_PREDEFINES): Remove.
2933 (TARGET_OS_CPP_BUILTINS): Define.
2934 * config/vax/ultrix.h: Likewise.
2935 * config/vax/vaxv.h: Likewise.
2936 * config/vax/vms.h: Likewise.
2937 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
2938 (CPP_PREDEFINES, CPP_SPEC): Remove.
2939
2f41793e
JH
2940Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
2941
2942 * i386.md (addqi_1_slp, subqi_1_slp
2943 (andqi_ext0, testqi_ext0): Remove unnecesary check.
2944 (addhi*, addqi*): Simplify "dec" condition.
2945 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
2946 (and, or, xor to QImode splitters): New.
2947 (iorqi_ext*): New.
2948 (xorqi_ext_0): New.
2949 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
2950 (andqi_ext_1_rex64): New.
2951 (ashrqi*_slp): New.
2952 (ashlqi*_slp): New.
2953 (lshlqi*_slp): New.
2954 (rotrqi3*_slp): New.
2955 (rotlqi3*_slp): New.
2956
fc5c400a
GK
29572002-06-11 Geoffrey Keating <geoffk@redhat.com>
2958
4c4eb375
GK
2959 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
2960 softfloat.h.
2961 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
2962 (CPP_ENDIAN_LITTLE_SPEC): Delete.
2963 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
2964 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
2965 __LONG_DOUBLE_128__ setting, _CALL_* setting.
2966 (CPP_DEFAULT_SPEC): Delete.
2967 (CPP_FLOAT_DEFAULT_SPEC): Delete.
2968 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
2969 (CPP_SYSV_DEFAULT_SPEC): Delete.
2970 (CPP_ENDIAN_BIG_SPEC): Delete.
2971 (CPP_ENDIAN_LITTLE_SPEC): Delete.
2972 (CPP_ENDIAN_SPEC): Delete.
2973 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
2974 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
2975 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
2976 cpp_longdouble_default.
2977 * config/rs6000/softfloat.h: Delete.
2978 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
2979 (EXTRA_SPECS): Delete cpp_cpu.
2980 (TARGET_CPU_CPP_BUILTINS): New.
2981 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
2982 prototype.
2983 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
2984 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
2985 (CPP_DEFAULT_SPEC): Delete.
2986 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
2987 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
2988 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
2989 (CPP_DEFAULT_SPEC): Delete.
2990 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
2991 (CPLUSPLUS_CPP_SPEC): Likewise.
2992 (CPP_CPU_SPEC): Delete.
2993 (CPP_DEFAULT_SPEC): Delete.
2994 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
2995 (CPLUSPLUS_CPP_SPEC): Likewise.
2996 (CPP_CPU_SPEC): Delete.
2997 (CPP_DEFAULT_SPEC): Delete.
2998 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
2999 (CPP_DEFAULT_SPEC): Delete.
3000 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
3001 (CPP_DEFAULT_SPEC): Delete.
3002
fc5c400a
GK
3003 * doc/gty.texi: Small updates.
3004
13f0d49c
GDR
30052002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
3006
3007 * objc/objc-act.c (warn_with_ivar): Adjust calls to
3008 diagnostic_count_error.
3009 (warn_with_method): Likewise.
3010
3011 * diagnostic.h (warnings_are_errors_message): New field of
3012 diagnostic_context.
3013 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
3014 match semantics.
3015 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
3016 (diagnostic_count_diagnostic): Make aware of other kinds of
1c0ca89d 3017 diagnostics.
13f0d49c
GDR
3018 (diagnostic_initialize): Initialize warnings_are_errors_message field.
3019
0797e472
TT
30202002-06-11 Tom Tromey <tromey@redhat.com>
3021
3022 For PR java/6520:
3023 * fold-const.c (fold_convert): Don't modify existing tree's type.
3024
f288d4aa
GK
30252002-06-11 Geoffrey Keating <geoffk@redhat.com>
3026
3027 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
3028
d27bab4c
RH
30292002-06-11 Richard Henderson <rth@redhat.com>
3030
3031 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
3032
bc2a8f08
RH
30332002-06-11 Richard Henderson <rth@redhat.com>
3034
1c0ca89d 3035 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
bc2a8f08
RH
3036 DWARF2_UNWIND_INFO is false.
3037
b217ec1b
BW
30382002-06-11 Bob Wilson <bob.wilson@acm.org>
3039
3040 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
3041
11819f80
UW
3042 * config/s390/s390.c (emit_prologue): gen_store_multiple
3043 returns an insn now, not a pattern.
3044
c2727579
RO
30452002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3046
3047 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
3048 $(TEXI2DVI) -o.
3049
285464d0
JH
3050Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
3051
3052 * i386.c (x86_promote_QImode): Set for Athlon
3053 (x86_fast_prefix): New global variable.
3054 (x86_arch_always_fancy_math_387): Fix formating.
3055 * i386.h (x86_fast_prefix): Declare
3056 (TARGET_FAST_PREFIX): define.
3057 * i386.md (and to strict_low_part, HI to SI
3058 promoting splitter): Use new macro.
3059
3060 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
3061
1bb1f121
ZW
30622002-06-11 Zack Weinberg <zack@codesourcery.com>
3063
3064 * Makefile.in (distclean): Delete junk left in testsuite
3065 directory, too.
3066
88c65786
JL
30672002-06-11 Jeffrey Law <law@redhat.com>
3068
c6a3fcf0
JL
3069 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
3070 last insn created by the splitter.
3071
0db79a6b
JL
3072 * caller-save.c (init_caller_save): Move creation of SAVEINSN
3073 and RESTINSN into into the scope of the sequence.
3074
47eb2ca8
JL
3075 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
3076 RETURN insns.
3077
603b4b92
JL
3078 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
3079
88c65786
JL
3080 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
3081 not the pattern. So extract the pattern from the insn.
882c7223
JL
3082
3083 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
3084
df14489a
UW
30852002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3086
3087 * config/s390/s390.md (movsi): Only use floating point
3088 register alternatives when operands are already fprs.
3089 (movdi_31, movdi_64): Likewise.
3090
6f9703af
DM
30912002-06-11 David S. Miller <davem@redhat.com>
3092
3093 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
3094 Only run RTX equality checks on INSN_P rtl.
3095
b2ccb744
UW
30962002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3097
3098 * config/s390/s390.md (reload_base, ltorg): Remove.
1c0ca89d 3099 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
b2ccb744 3100 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1c0ca89d 3101 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
b2ccb744
UW
3102 s390_asm_output_pool_prologue): Likewise.
3103 * s390.h (s390_pool_start_insn): Likewise.
3104
1c0ca89d 3105 * s390.c (s390_output_symbolic_const): Remove support for
b2ccb744
UW
3106 old-style pool chunks.
3107 (s390_function_epilogue): Likewise.
1c0ca89d 3108 (s390_output_constant_pool): Likewise. Also, fix incorrect
b2ccb744
UW
3109 alignment for 64-bit literal pools.
3110 (print_operand_address): Remove 'y' and 'Y' format flags.
1c0ca89d 3111 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
b2ccb744
UW
3112 old-style pool chunks.
3113 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3114 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
3115 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
3116
3117 * s390.c (consttable_operand): New function.
3118 * s390-protos.h (consttable_operand): Declare it.
3119 * s390.h (PREDICATE_CODES): Add consttable_operand.
1c0ca89d
ZW
3120 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
3121 consttable_sf, consttable_df, pool_start_31, pool_end_31,
b2ccb744
UW
3122 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
3123 * s390.c (struct constant, struct constant_pool): New data types.
3124 (constant_modes, gen_consttable): New variables.
1c0ca89d 3125 (s390_start_pool, s390_end_pool, s390_add_pool,
b2ccb744 3126 s390_dump_pool, s390_free_pool): New functions.
1c0ca89d 3127 (s390_chunkify_pool): Completely reimplement literal pool
b2ccb744
UW
3128 overflow handling.
3129
3130 * s390.c (s390_pool_overflow): New variable.
3131 * s390.h (s390_pool_overflow): Declare it.
1c0ca89d 3132 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
b2ccb744
UW
3133 jumps in literal pool overflow situations.
3134
3135 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1c0ca89d 3136 (s390_frame_info): Account for possible use of RETURN_REGNUM
b2ccb744
UW
3137 by new literal pool overflow code.
3138 (s390_emit_prologue): Likewise.
3139
2f937369
DM
31402002-06-05 David S. Miller <davem@redhat.com>
3141
3142 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
3143 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
3144 emit_insns_before_scope, emit_insns_after,
3145 emit_insns_after_scope): Delete declaration.
3146 * ada/misc.c (insert_code_for): Use emit_insn* instead of
3147 emit_insns_foo.
3148 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
3149 (alpha_set_memflags): Fix comment.
3150 (set_frame_related_p): Use get_insns instead of gen_sequence.
3151 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
3152 emitting no insns.
3153 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
3154 gen_sequence.
3155 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
3156 * config/fr30/fr30.c (fr30_move_double): Likewise.
3157 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
3158 Likewise.
3159 * config/ia64/ia64.c (spill_restore_mem): Likewise.
3160 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
3161 no insns.
3162 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
3163 instead of gen_sequence.
3164 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
3165 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
3166 * config/sh/sh.c (sh_need_epilogue): Likewise.
3167 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
3168 attributes.
3169 (setjmp pattern and split): Use them to avoid splitter which emits
3170 no RTL.
3171 * genattrtab.c (main): Emit include of function.h
3172 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
3173 get_insns instead of gen_sequence.
3174 * config/cris/cris.c (cris_split_movdx): Likewise.
3175 * emit-rtl.c (emit_insns*): Kill.
3176 (try_split): Expect insn list instead of SEQUENCE.
3177 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
3178 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
3179 Make them abort if a SEQUENCE is given and RTL checking is
3180 enabled.
3181 (emit_*_scope): Don't forget to set scope on final insn.
3182 (gen_sequence): Move from here...
3183 * ssa.c (gen_sequence): To here as private function.
3184 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
3185 comments.
3186 (expand_builtin_return, expand_builtin_mathfn): Likewise.
3187 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
3188 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
3189 (expand_builtin_expect_jump): Use get_insns and fix comments.
3190 * calls.c (try_to_integrate): Use emit_insn_foo.
3191 (expand_call, emit_library_call_value_1): Likewise.
3192 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
3193 (emit_move_insn_1): Use get_insns instead of gen_sequence.
3194 (expand_expr): Use emit_insn_foo.
3195 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
3196 * except.c (build_post_landing_pads): Likewise.
3197 * flow.c (attempt_auto_inc): Likewise.
3198 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
3199 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
3200 * function.c (fixup_var_refs_insn): Use get_insns instead of
3201 gen_sequence.
3202 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
3203 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
3204 (fixup_stack_1, purge_addressof_1, expand_main_function,
3205 get_arg_pointer_save_area): Likewise.
3206 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
3207 expand_function_end): Use emit_insn_foo.
3208 (record_insns, keep_stack_depressed): Work with insn list instead
3209 of SEQUENCE, fix comments.
3210 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
3211 noce_try_store_flag_constants, noce_try_store_flag_inc,
3212 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
3213 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
3214 (noce_process_if_block): Use get_insns instead of gen_sequence.
3215 * optabs.c (add_equal_note): Work with insn list, fix comments.
3216 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
3217 (expand_unop, expand_complex_abs, expand_unop_insn,
3218 expand_no_conflict_block): Likewise.
3219 (gen_move_insn): Use get_insns instead of gen_sequence.
3220 (gen_cond_trap): Likewise.
3221 * integrate.c (copy_rtx_and_substitute): Likewise.
3222 (emit_initial_value_sets): Use emit_insn_foo.
3223 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
3224 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
3225 now that RTL generators give insn lists.
3226 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
3227 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
3228 instead of gen_sequence.
3229 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
3230 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
3231 instead of gen_sequence.
3232 * loop.c (move_movables, emit_prefetch_instructions,
3233 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
3234 Likewise.
3235 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
3236 (product_cheap_p): Likewise, and add commentary about RTL wastage
3237 here.
3238 * lcm.c (optimize_mode_switching): Use get_insns instead of
3239 gen_sequence.
3240 * profile.c (gen_edge_profiler): Likewise.
3241 * regmove.c (copy_src_to_dest): Likewise.
3242 * reg-stack.c (compensate_edge): Likewise and fix comment.
3243 * gcse.c (process_insert_insn): Likewise.
3244 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
3245 * jump.c (delete_prior_computation): Update comment.
3246 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
3247 of gen_sequence, update comments to match.
3248 * recog.c (peephole2_optimize): Work with insn lists instead of
3249 SEQUENCE rtl.
3250 * sched-vis.c (print_pattern): Abort on SEQUENCE.
3251 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
3252 Use get_insns instead of gen_sequence.
3253 (copy_loop_body): Likewise and don't emit dummy NOTE.
3254 * genrecog.c: Don't mention SEQUENCE rtl in comments.
3255 * combine.c (try_combine): Expect insn lists from split generator.
3256 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
3257 hand.
1c0ca89d 3258
43cf10b5
RS
32592002-06-11 Roger Sayle <roger@eyesopen.com>
3260 Andreas Jaeger <aj@suse.de>
3261
3262 * cfgbuild.c: Update copyright years.
3263
1062f15a
AS
32642002-06-11 Andreas Schwab <schwab@suse.de>
3265
1c0ca89d 3266 * config/m68k/m68k.h (PREDICATE_CODES): Define.
1062f15a 3267
ce3649d2
EC
32682002-06-11 Eric Christopher <echristo@redhat.com>
3269
3270 * doc/tm.texi (Run-time Target): Add comment about flag_iso
3271 and strict ANSI.
3272 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
3273 * config/mips/ecoffl.h: Ditto.
3274 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
3275 (CPP_PREDEFINES): Ditto.
3276 * config/mips/elfl64.h: Ditto.
3277 * config/mips/elfl.h: Ditto.
3278 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
3279 out until irix header consolidation.
3280 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
3281 with SUBTARGET_OS_CPP_BUILTINS.
3282 * config/mips/iris6.h: Ditto.
3283 (CPLUSPLUS_CPP_SPEC): Remove.
3284 * config/mips/linux.h: Ditto.
3285 * config/mips/netbsd.h: Ditto.
3286 * config/mips/openbsd.h: Ditto.
3287 * config/mips/rtems.h: Ditto.
3288 * config/mips/rtems64.h: Ditto.
3289 * config/mips/sni-svr4.h: Ditto.
3290 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
3291 ISA_MIPS32, ISA_MIPS64): New defines.
3292 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
3293 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
3294 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3295 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
3296 (TARGET_CPU_CPP_BUILTINS): Define.
3297 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
3298 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
3299 (movdicc): Remove check for ISA_MIPS32.
3300 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
3301 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
3302 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
3303 sunge_sf, sunle_df, sunle_sf): New patterns.
3304
bc3437ba
NB
33052002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
3306
3307 * Makefile.in: Update cppmain.o.
3308 * cpphash.h (struct cpp_reader): Move some members to a
3309 nested structure.
3310 (trad_line): Rename saved_line.
3311 (_cpp_read_logical_line_trad): Update.
3312 (_cpp_remove_overlay): New.
3313 * cppinit.c (cpp_create_reader): No need to set saved_line.
3314 (cpp_destroy): Update.
3315 (cpp_read_main_file): Only overlay if compiling.
3316 * cpplex.c (continue_after_nul): Return false if in directive.
3317 * cpplib.c (EXPAND): New.
3318 (directive_table, SEEN_EOL): Update.
3319 (end_directive): Remove overlay if traditional; don't skip
3320 line in traditional #define.
3321 (prepare_directive_trad): New.
3322 (_cpp_handle_directive, run_directive): Update for traditional
3323 directives.
3324 (lex_macro_node): Simplify, don't use lex_identifier_trad.
3325 * cpplib.h (struct options): Add preprocess_only.
3326 * cppmain.c: Don't include intl.h.
3327 (cpp_preprocess_file): Set options->preprocess_only.
3328 (scan_translation_unit_trad): Fix, and print line numbers.
3329 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
3330 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
3331 save_replacement_text, _cpp_create_trad_definition): Update for
3332 variable renaming.
3333 (_cpp_overlay_buffer): Save line number.
3334 (_cpp_remove_overlay): Rename from restore_buff, restore line.
3335 (_cpp_read_logical_line_trad): Don't handle overlays here.
3336 (scan_out_logical_line): Process directives.
3337
b25bb36a
DS
33382002-06-11 Danny Smith <dannysmith@users.sourforge.net>
3339
3340 * gthr-win32.h: Wrap functions in extern "C".
3341 (__gthread_key_t): Typedef as unsigned long,
3342 not win32 DWORD.
3343 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
3344 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
3345 (__gthr_win32_once, __gthr_win32_key_create,
3346 __gthr_win32_key_delete, __gthr_win32_getspecific,
3347 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3348 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3349 __gthr_win32_mutex_unlock): Declare.
3350 (__gthread_once,__gthread_key_create,
3351 __gthread_key_delete, __gthread_getspecific,
3352 __gthread_setspecific, __gthread_mutex_init_function,
3353 __gthread_mutex_lock,__gthread_mutex_trylock,
3354 __gthread_mutex_unlock): Call corresponding
3355 __gthr_win32_* extern implementations if #defined
3356 __GTHREAD_HIDE_WIN32API.
3357 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
ce3649d2 3358 $(srcdir)/config/i386/gthr-win32.c
b25bb36a
DS
3359 * config/i386/gthr-win32.c: New implementation file.
3360 (__gthr_win32_once, __gthr_win32_key_create,
3361 __gthr_win32_key_delete, __gthr_win32_getspecific,
3362 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3363 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3364 __gthr_win32_mutex_unlock): New functions, based on
3365 static inlines in gthr-win32.h.
3366
a69c385e
BW
33672002-06-10 Bob Wilson <bob.wilson@acm.org>
3368
3369 * config/xtensa/xtensa.c (override_options): Don't warn about
3370 using -fpic or -fPIC when PIC is enabled by default.
3371
e654730d
RS
33722002-06-10 Roger Sayle <roger@eyesopen.com>
3373
3374 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
3375
a5381466
ZW
33762002-06-10 Zack Weinberg <zack@codesourcery.com>
3377
3378 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
ce3649d2 3379 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
a5381466
ZW
3380 exists, substitute its pathname as @extra_modes_file@, define
3381 EXTRA_MODES_FILE to be an appropriate string to #include it
3382 with, and define EXTRA_CC_MODES to 1.
3383
3384 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
3385 it's defined. Get rid of redundancy in calling sequence for
3386 CC; don't use it to define CCmode, to avoid a warning.
3387 * libgcc2.c: Include symcat.h for the sake of machmode.def.
3388
3389 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
3390 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
3391 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
3392 New files.
3393 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
3394 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
3395
3396 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
3397 defining extra CC modes.
3398
852c6ec7
RS
33992002-06-10 Roger Sayle <roger@eyesopen.com>
3400 Andreas Jaeger <aj@suse.de>
3401
3402 * cfgrtl.c (create_basic_block_structure): Remove index argument
3403 and use last_basic_block++ instead. (create_basic_block): Update.
3404 * cfgbuild.c (find_basic_blocks_1): Likewise.
3405
3406 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
3407 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
3408 * sched-ebb.c (schedule_ebbs): Likewise.
3409 * sched-rgn.c (schedule_insns): Likewise.
3410 * ssa-ccp.c (ssa_const_prop): Likewise.
3411 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
3412 * toplev.c (rest_of_compilation): Likewise.
3413 * config/ia64/ia64.c (ia64_reorg): Likewise.
3414
60c86d4e
RS
34152002-06-10 Roger Sayle <roger@eyesopen.com>
3416
3417 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
3418 of matching registers.
3419
9543a9d2
RS
34202002-06-10 Roger Sayle <roger@eyesopen.com>
3421
3422 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
3423 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
3424
38e18619
HPN
34252002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
3426
3427 * config/mmix/mmix.h: Improve comments.
3428 (CPP_SPEC, CPP_PREDEFINES): Don't define.
3429 (TARGET_CPU_CPP_BUILTINS): Define.
3430 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
3431 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
3432 unused predicate.
3433 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
3434 compiler warning.
3435 (mmix_constant_address_p): Remove another
3436 redundant test before case.
3437 (mmix_canonicalize_comparison): Remove unused function.
3438 (mmix_print_operand_address): Don't test and adjust for operand in
3439 non-canonical format.
3440 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
3441 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
3442
ac17cd8f
ZW
34432002-06-10 Zack Weinberg <zack@codesourcery.com>
3444
3445 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
3446 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
3447 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
3448 (gen_compare): Use CCmode unconditionally.
3449
7b668f9e
JJ
34502002-06-10 Jakub Jelinek <jakub@redhat.com>
3451
3452 PR optimization/6759
3453 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
3454 the REQ_EQUAL note.
3455
85d49058
JJ
34562002-06-10 Jakub Jelinek <jakub@redhat.com>
3457
3458 PR c/6660
3459 * c-decl.c (grokfield): Allow user defined types if they declare
3460 structs or unions for unnamed fields.
3461
50f30e6b
JJ
34622002-06-10 Jakub Jelinek <jakub@redhat.com>
3463
3464 PR c/6809
3465 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
3466
156755ac
JJ
34672002-06-10 Jakub Jelinek <jakub@redhat.com>
3468
3469 PR optimization/6842
3470 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
3471 operand subreg cannot be simplified.
3472
5d056e9b
JJ
34732002-06-10 Jakub Jelinek <jakub@redhat.com>
3474
3475 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
3476 (compare_constant): Likewise.
3477 (output_addressed_constants): Likewise.
3478
2bf87216
JJ
34792002-06-10 Jakub Jelinek <jakub@redhat.com>
3480
3481 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
3482 merge bb with itself.
3483
135fd2d8
RH
34842002-06-10 Richard Henderson <rth@redhat.com>
3485
3486 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
3487 (builtin_zapnot): Likewise.
3488
3489 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
3490 reservation.
3491
fce5a9f2
EC
34922002-06-10 Eric Christopher <echristo@redhat.com>
3493
3494 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
3495 prototype and function.
3496 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
3497 (call_insn_operand): Remove half pic references.
3498 (legitimate_address_p): Ditto.
3499 * config/i386/i386.h: Remove half pic defines.
3500
95b1627e
EC
35012002-06-10 Eric Christopher <echristo@redhat.com>
3502
3503 * doc/extend.texi (Return Address): Add note explaining the side-
3504 effects of inlining on __builtin_return_address.
3505
aea185b3
TT
35062002-06-10 Tom Tromey <tromey@redhat.com>
3507
3508 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
3509 (c-common.o): Depend on langhooks.h.
3510
afb03408
NB
35112002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
3512
3513 * cpphash.h (_cpp_read_logical_line_trad,
3514 _cpp_expansions_different_trad): Update prototypes.
3515 * cpplex.c (continue_after_nul): New.
3516 * cppmain.c: Include cpphash.h.
3517 (scan_translation_unit_trad): New.
3518 (cpp_preprocess_file): Call it.
3519 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
3520 overlay.
3521 (_cpp_expansions_different_trad): Update prototype.
3522
2754d3c5
R
3523Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3524
3525 Fix cfi generation for SH[1-4]:
3526
3527 * sh.c (frame_insn): New function.
3528 (output_stack_adjust): Add parameter emit_fn. All callers changed.
3529 (push): Now returns rtx. Use frame_insn.
3530 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
3531 of a DF register.
3532 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
3533
ad854f24
ZW
35342002-06-10 Zack Weinberg <zack@codesourcery.com>
3535
3536 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
3537 and gtype-desc.c.
3538 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
3539 (distclean): ... not here. But do delete all testsuite/*.log,
3540 testsuite/*.sum files here. Delete mkheaders. Delete
3541 po/*.gmo and the testsuite directory in a split tree build.
3542
bf1660a6
JL
35432002-06-10 Jeffrey Law <law@redhat.com>
3544
3545 * alias.c (static_reg_base_value): New to hold RTL for
3546 items allocated once per function for the aliasing code.
3547 (init_alias_once_per_function): Initialize static_reg_base_value.
3548 (init_alias_analysis): Avoid throw-away allocations of RTL by
3549 using pre-computed values in static_reg_base_value.
3550 * function.c (prepare_function_start): Call
3551 init_alias_once_per_function appropriately.
3552 * rtl.h (init_alias_once_per_function): Declare.
3553 * caller-save (init_caller_save): Restructure slightly to
3554 avoid lots of silly RTL generation.
3555 * expr.c (init_expr_once): Likewise.
3556 * reload1.c (reload_cse_regs_1): Allocate throw-away register
3557 RTL object here. Pass it into children.
3558 (reload_cse_simplify_operands): Use passed-in register RTL
3559 object.
3560 (reload_cse_simplify): Pass through throw-away register
3561 RTL object.
3562
8dc58484 35632002-06-10 Daniel Berlin <dberlin@dberlin.org>
ad854f24 3564
8dc58484
DB
3565 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
3566
ea16b5ee
RS
35672002-06-10 Richard Sandiford <rsandifo@redhat.com>
3568
3569 * gcc.c (process_command): Avoid assignment to read-only location.
3570 Fix sizeof calculation.
3571
6618c5d4
NB
35722002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
3573
3574 * cpphash.h (struct cpp_macro): Put comments on their own lines.
3575 (_cpp_expansions_different_trad): New.
3576 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
3577 * cpptrad.c (canonicalize_text): New.
3578 (scan_out_logical_line): Handle no arguments correctly.
3579 (save_replacement_text): Commit memory when finished.
3580 (_cpp_expansions_different_trad): New.
3581
96e3ac4f
TJ
35822002-06-10 Tim Josling <tej@melbpc.org.au>
3583
3584 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
3585 TREELANG and COBOL.
3586 (lang_names): Add treelang and cobol.
3587 (get_file_basename): Add code to support treelang and cobol as
3588 4th and 5th users of c-common.c.
3589
37a4aa31
GK
35902002-06-09 Geoffrey Keating <geoffk@redhat.com>
3591
3592 * Makefile.in (install-driver): Install driver as
3593 $(target_alias)-gcc-$(version).
3594 * gcc.c (spec_version): Make const.
3595 (process_command): Handle -V and -b by using exec.
3596 * doc/invoke.texi (Target Options): Restore -V option,
3597 update docs for -b option.
3598
02ef40d9
TJ
35992002-06-10 Tim Josling <tej@melbpc.org.au>
3600
ad854f24
ZW
3601 * configure.in (remaining_languages_check):
3602 Added check that all languages specified were found.
02ef40d9
TJ
3603 Exit if not found. Previous behaviour was silent failure.
3604 * configure: Regenerated.
3605
b38b97c4 36062002-06-10 Tim Josling <tej@melbpc.org.au>
ad854f24 3607
1c0ca89d 3608 First steps to making treelang documentation compliant, based on
b38b97c4
TJ
3609 instructions in sourcebuild.texi. Also add to gcc.c list of
3610 default languages.
ad854f24 3611
b38b97c4
TJ
3612 * doc/contrib.texi: Add self as contributor of treelang.
3613
3614 * doc/frontends.texi: Add mention of treelang.
3615
3616 * doc/invoke.texi (Overall Options): Add mention of treelang.
3617
3618 * doc/standards.texi: Add mention of treelang.
3619
ae9dbf1f
HPN
36202002-06-09 Hans-Peter Nilsson <hp@axis.com>
3621
3622 * config/cris/cris.c: Include ggc.h
3623
1ce676a0
NB
36242002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
3625
3626 * cpphash.h (_cpp_push_text_context): Update.
3627 (_cpp_arguments_ok): New.
3628 * cppmacro.c (_cpp_arguments_ok): New, split out from...
3629 (collect_args): ...here.
3630 (_cpp_push_text_context): Change inputs.
3631 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
3632 replace_args_and_push): New.
3633 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
3634 Don't use IS macros directly.
3635 (scan_out_logical_line): Handle function-like macro argument
3636 collection.
3637 (push_replacement_text): Update.
3638 (replacement_length): Remove.
3639 (_cpp_create_trad_definition): Don't skip whitespace before
3640 checking for '('.
3641
25f2e176
MM
36422002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3643
3644 * config/avr/avr.c (avr_mcu_types): Update for new devices.
3645 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
3646 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
3647 * config/avr/avr.md ("type" and "length" attributes): New type
3648 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
3649 output a single "call" or "rcall" insn depending on device size.
3650 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
3651
309323c2
DE
36522002-06-09 David Edelsohn <edelsohn@gnu.org>
3653
3654 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
3655 synonym for 630. Add power4. Remove embedded processors. Use -m604
3656 assembler option.
3657 (CPP_CPU_SPEC): Add power3 and power4.
3658 (PROCESSOR_DEFAULT): Change to 604e.
3659 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
3660 (CPP_CPU_SPEC): Similar additions.
3661 (enum process_type): Add POWER4.
3662 (RTX_COSTS): Add POWER4.
3663 (CPP_CPU_SPEC): Similar additions.
3664 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
6ef0903d 3665 (PROCESSOR_DEFAULT64): Define.
309323c2
DE
3666 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
3667 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
3668 branch adjustment.
3669 (rs6000_issue_rate): Add Power4.
3670 * config/rs6000/rs6000.md (cpu attr): Add power4.
3671 (iu compare): Remove 604, 604e, 620, 630.
3672 Add basic Power4 scheduling information.
3673 (mfcr/mtcrf): Change type attribute to cr_logical.
3674
1f8e4682
KG
36752002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3676
57d80297
KG
3677 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
3678 ATTRIBUTE_PRINTF_2.
3679 * gengtype-lex.l: Fix format specifier warning.
3680
1f8e4682
KG
3681 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
3682 not isspace.
3683 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
3684 lieu of isspace/IDchar.
3685 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
3686 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
3687 ISSPACE.
3688
5a9ee623
ZW
36892002-06-08 Zack Weinberg <zack@codesourcery.com>
3690
3691 * Makefile.in (LIBCPP_OBJS): Take out version.o.
3692 * cpphash.h (cpp_reader): Take out print_version member.
3693 * cppinit.c: (cpp_handle_option): Don't do anything with
3694 -version. Just set help_only for --version, --target-help.
3695 Just set verbose option for -v.
3696 (cpp_post_options): Don't print a version string.
3697
c16e5a35
MM
36982002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
3699
3700 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
3701 (avr_section_type_flags): New, handle .noinit* sections.
3702
79bc889e
JT
37032002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3704
3705 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
3706 and include netbsd_entry_point.
3707 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3708 (NETBSD_ENTRY_POINT): Define.
3709
6a79bb0a
JT
37102002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3711
3712 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
5a9ee623 3713 if not already defined.
6a79bb0a
JT
3714 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
3715
e52b6b63
MM
37162002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
3717
3718 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
3719 in a noreturn function.
3720 (avr_output_function_prologue, avr_output_function_epilogue):
3721 Correct function size calculation. Do not crash on empty function.
3722 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
3723
1569d670
JT
37242002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3725
3726 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
3727 netbsd_link_spec and netbsd_entry_point.
3728 (LINK_SPEC): Use %(netbsd_link_spec).
3729 (NETBSD_ENTRY_POINT): Define.
3730
cfb06024
JT
37312002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3732
3733 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
3734 linker emulation.
3735 (LINK_ARCH64_SPEC): Likewise.
3736 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
3737 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
3738
5a9ee623
ZW
37392002-06-08 Marc Espie <espie@openbsd.org>
3740
3741 * lists.c (free_list): Fix typo in comment.
e3623158 3742
272cdf58
AJ
37432002-06-08 Andreas Jaeger <aj@suse.de>
3744
3745 * lcm.c (optimize_mode_switching): Add unused attribute for
3746 variable.
3747
3748 * sched-deps.c (sched_analyze): Remove unused variable.
3749
bf3f2a12
GDR
37502002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
3751
3752 * diagnostic.def: Don't capitalize diagnostict descriptors.
3753
523a5f2f
JT
37542002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3755
3756 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
3757 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3758 (NETBSD_ENTRY_POINT): Define.
3759
a3e944f9
JT
37602002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3761
3762 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
3763 NETBSD_LINK_SPEC_ELF.
3764 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
3765 (NETBSD_ENTRY_POINT): Define.
3766 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
3767 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
3768 netbsd_entry_point.
3769 (NETBSD_ENTRY_POINT): Define.
3770
854928a0
JT
37712002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3772
3773 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
3774 netbsd_link_spec and netbsd_entry_point.
3775 (LINK_SPEC): Use %(netbsd_link_spec).
3776 (NETBSD_ENTRY_POINT): Define.
3777
6bb5d2e7
JT
37782002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3779
3780 * config/netbsd-elf.h (LINK_SPEC): Rename to...
3781 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
3782 to specify program entry point.
3783
e50126e8
JL
37842002-06-07 Jeff Law <law@redhat.com
3785
3786 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
272cdf58 3787 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
e50126e8
JL
3788 than creating a new register.
3789 (distribute_notes): Likewise.
3790 * df.c (df_reg_use_gen): Likewise.
3791 (df_reg_clobber_gen): Likewise.
3792 (df_ref_record): Likewise.
3793 * expr.c (use_regs): Likewise.
3794 * flow.c (propagate_one_insn): Likewise.
3795 (mark_set_1): Likewise.
3796 (mark_used_reg): Likewise.
3797 * reload.c (emit_reload_insns): Likewise.
3798
bc9c18c3
RS
37992002-06-07 Roger Sayle <roger@eyesopen.com>
3800
3801 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
3802 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
3803 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
3804 comparison code comp can be reversed.
3805
437f1df1
RS
38062002-06-07 Roger Sayle <roger@eyesopen.com>
3807
3808 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
3809 constants last in comparisons. Optimize (x+1.0)>0.0 into the
3810 equivalent x > -1.0 when -ffast-math.
3811
cd24b8a4
JT
38122002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
3813
3814 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
3815 * config/mips/t-netbsd: New file.
3816
09e77dee
ZW
38172002-06-07 Zack Weinberg <zack@codesourcery.com>
3818
3819 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
3820 options their own entries.
3821 (parse_option): Clarify comment.
3822 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
3823 special case. Replace if/strcmp chain for -W options with
3824 use of new OPT_* entries for them.
3825 (cpp_handle_options): Update to match.
3826 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
3827 * c-decl.c: Update call to cpp_handle_option.
3828
942030dc
AD
38292002-06-07 Akim Demaille <akim@epita.fr>
3830
3831 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
3832 Whitespace changes.
3833
f2846820
JL
38342002-06-07 Jeffrey Law <law@redhat.com>
3835
3836 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
3837 on empty lists.
3838
4bafaa6f
L
38392002-06-07 H.J. Lu (hjl@gnu.org)
3840
3841 * configure.in: Add --enable-__cxa_atexit.
3842 * configure: Regenerated.
3843 * config.in: Likewise.
3844
3845 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
3846 not defined.
3847
caef5b46
GDR
38482002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
3849
3850 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
3851
ac64a17c
JT
38522002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
3853
3854 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
3855
97459791
JM
38562002-06-07 Jason Merrill <jason@redhat.com>
3857
3858 * cppexp.c (num_equality_op): Use a temporary variable to work
3859 around gcc 3.0.4 bug.
3860
4b1d52c7
GDR
38612002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
3862
3863 * diagnostic.c (diagnostic_build_prefix): Tidy.
3864
c70f6ed3
NB
38652002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
3866
3867 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
3868 scan_parameters, save_replacement_text, replacement_length): New.
3869 (scan_out_logical_line): Take a macro and save parameters if
3870 non-NULL.
3871 (_cpp_logical_line_trad): Update.
3872 (_cpp_create_trad_definition): Update to handle function-like
3873 macros.
3874 * cpplex.c (new_buff): Update.
3875 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
3876 * cpphash.h: ...here.
3877 (CPP_ALIGN2, _cpp_save_parameter): New.
3878 * cppmacro.c (save_parameter): Rename, export.
3879 (parse_params): Update.
3880
aec2ac46
AJ
38812002-06-07 Andreas Jaeger <aj@suse.de>
3882
3883 * config/mmix/mmix.c: Remove extra broken prototype for
3884 mmix_init_machine_status.
3885
9f313342
GK
38862002-06-06 Geoffrey Keating <geoffk@redhat.com>
3887
3888 * gengtype.c: Add comments before all the routines.
3889
3fa1b448
JT
38902002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
3891
3892 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
3893 from and add t-sh64 to ${tmake_file}.
3894 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
3895 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
3896 * config/sh/t-netbsd-sh5-32: Remove.
3897 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
3898 MULTILIB_ENDIAN.
3899 (MULTILIB_DIRNAMES): Define.
3900
0d682900
JH
3901Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
3902
3903 * i386.md (and promoting splitters): Disable QI to SImode promoting
3904 when doing so changes immediate to be 32bit.
3905
3906 * rtl.h (emit_*_scope): Declare.
3907 * emit-rtl.c (emit_*_scope): New global functions.
3908 (try_split): Copy scope.
3909 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3910 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
3911 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
3912 noce_process_if_block, find_cond_trap): Copy scopes.
3913 * recog.c (peephole2_optimize): likewise.
3914
c991649c
JL
39152002-06-06 Jeffrey Law <law@redhat.com>
3916
3917 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
3918
8a5d66c4
R
3919Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
3920
3921 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
3922
d7f8491b
RO
39232002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3924
3925 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
3926 ($(docdir)/gccinstall.info): New target.
3927 (info): Depend on it.
3928 (gccinstall.dvi): New target.
3929 (dvi): Depend on it.
3930 * doc/.cvsignore: Ignore new info files.
3931 * doc/install.texi (@setfilename): Reflect new info filename.
3932
eaeb7de8
R
3933Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
3934
3935 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
3936 on an UNSPEC.
3937
0c7aeb88
NP
3938Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
3939
3940 PR objc/6834
3941 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
3942 c_common_get_alias_set.
aec2ac46 3943 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
0c7aeb88 3944
2a496e8b
JDA
39452002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3946
3947 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
3948 functions.
3949 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
3950 * avr/avr.c (avr_output_function_epilogue): Use above to determine
3951 function size.
3952 * pa/pa.c (pa_output_function_prologue): Likewise.
3953
2ff581c3
DM
39542002-06-05 David S. Miller <davem@redhat.com>
3955
3956 * integrate.c (subst_constants): Handle 'B' RTL format.
3957
b2e2d0cc
EC
39582002-06-05 Eric Christopher <echristo@redhat.com>
3959
3960 * varasm.c (make_decl_rtl): Fix comment for removed
3961 halfpic.c.
3962
0f81faf6
EC
39632002-06-05 Eric Christopher <echristo@redhat.com>
3964
3965 * Makefile.in: Remove missed halfpic bits.
3966
33005162
EC
39672002-06-05 Eric Christopher <echristo@redhat.com>
3968
3969 * toplev.c: Remove half-pic.
3970 * config/mips/mips.c: Ditto.
3971 * config/mips/mips.h: Ditto. Remove unused defines.
3972 * config/mips/openbsd.h: Update comment to reflect above.
3973 * config/mips/mips.md: Remove half-pic constraints.
3974 * halfpic.h: Delete.
3975 * halfpic.c: Ditto.
3976
80081028
JL
39772002-06-05 Jeffrey Law <law@redhat.com>
3978
5a9ee623
ZW
3979 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
3980 rejects (mem (lo_sum (reg) (unspec))), but will allow
3981 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
80081028 3982
cbc69f84
NB
39832002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
3984
3985 * cpphash.h (_cpp_create_definition): Update prototype.
3986 (_cpp_push_text_context, _cpp_create_trad_definition): New.
3987 ( cpp_lex_identifier_trad): New.
3988 (_cpp_set_trad_context): New.
3989 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
3990 * cpplib.c (SEEN_EOL): Update.
3991 (lex_macro_node): Update for -traditional.
3992 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
3993 * cppmacro.c (_cpp_create_definition): Split into
3994 create_iso_definition() and _cpp_create_trad_definition().
3995 (warn_of_redefinition): Update prototype; handle traditional
3996 macros.
3997 (_cpp_push_text_context): New.
3998 * cpptrad.c (skip_whitespace, push_replacement_text): New.
3999 (lex_identifier): Call ht_lookup with correct start.
4000 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
4001 _cpp_set_trad_context): New.
4002 (scan_out_logical_line): Update to handle changing contexts.
4003
dbf87f32
R
4004Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
4005
4006 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
4007 (shl*-*-elf*): Add.
4008 * config/sh/t-be (MULTILIB_ENDIAN): Set.
4009 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
4010 * t-sh (MULTILIB_ENDIAN): Set.
4011 (MULTILIB_OPTIONS): Use it.
4012 * t-sh64 (MULTILIB_OPTIONS): Likewise.
4013 (MULTILIB_DIRNAMES): Likewise.
4014
47b69537
GDR
40152002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
4016
4017 * toplev.h (report_error_function): Remove.
4018
4019 * diagnostic.h (location_t): New datatype.
4020 (text_info): Likewise.
4021 (diagnostic_info): Likewise.
4022 (output_prefix): New macro.
4023 (diagnostic_last_function_changed): Likewise.
4024 (diagnostic_set_last_function): Likewise.
4025 (diagnostic_last_module_changed): Likewise.
4026 (diagnostic_set_last_module): Likewise.
4027 (report_diagnostic): Now macro.
4028 (diagnostic_set_info): Declare.
4029
4030 * diagnostic.c (report_problematic_module): Rename to
33005162 4031 diagnostic_repor_current_module.
47b69537
GDR
4032 (set_diagnostic_context): Remove.
4033 (count_error): Rename to diagnostic_error_count.
4034 (error_function_changed): Remove.
4035 (record_last_error_function): Likewise.
4036 (error_module_changed): Likewise.
4037 (record_last_error_module): Likewise.
4038 (context_as_prefix): Rename to diagnostic_build_prefix.
4039 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
4040 (diagnostic_set_info): New function.
4041
4042 * objc/objc-act.c: #include diagnostic.h
4043 (error_with_ivar): Adjust call to count_error.
4044 (warn_with_method): Likewise.
4045 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
4046
540eaea8
BW
40472002-06-05 Bob Wilson <bob.wilson@acm.org>
4048
4049 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
4050 lang_hooks.types.make_type instead of make_node; set up
4051 __va_list_tag type decl.
4052 (xtensa_builtin_saveregs): Remove broken use of
4053 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
4054 for saved registers; add varargs alias set.
4055
f23a084d
NB
40562002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
4057
4058config:
4059 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
4060 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4061 CPP_PREDEFINES and part of CPP_SPEC.
4062 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
4063 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
4064
3fe3a596
JH
4065Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
4066
4067 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
4068
1fd9ba59
AM
40692002-06-05 Alan Modra <amodra@bigpond.net.au>
4070
4071 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
4072
cea554e0
ZW
40732002-06-04 Zack Weinberg <zack@codesourcery.com>
4074
4075 * gengtype-yacc.y: Make sure all rules end with a semicolon.
4076
07232638
BW
40772002-06-04 Bob Wilson <bob.wilson@acm.org>
4078
4079 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
4080 typo in function prototype and include "ggc.h" header.
4081
c4b50f1a
RH
40822002-06-04 Richard Henderson <rth@redhat.com>
4083
4084 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
4085 (print_operand) ['U']: Likewise.
4086 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
4087 (alpha_expand_unaligned_store_words): Likewise.
4088 (alpha_expand_builtin_vector_binop): Fix typo.
4089 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
4090 umulh, and cix insns.
4091 (one_arg_builtins): Add cix builtins.
4092 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
4093 (alpha_expand_builtin): Fix typo in arity.
4094 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
4095 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
4096 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
4097 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
4098 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
4099 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
4100 builtin_ctlz, builtin_ctpop): New.
4101 * doc/extend.texi (Alpha Built-in Functions): Update.
4102
aaab35ae
GK
41032002-06-04 Geoffrey Keating <geoffk@redhat.com>
4104
afb0f770
GK
4105 * gengtype.c (write_gc_root): Don't unnecessarily prevent
4106 global variable-length arrays being roots.
4107
aaab35ae
GK
4108 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
4109 * configure.in (config_gtfiles): New variable.
4110 (all_gtfiles): Initialise from config_gtfiles.
4111 * configure: Regenerate.
4112
1ba7b414
NB
41132002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4114
4115config/i386:
4116 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
4117 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
4118 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
4119 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
4120 win32.h (CPP_SPEC): Remove cpp_cpu.
4121 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
4122 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
4123
135ca7b2
JJ
41242002-06-04 Janis Johnson <janis187@us.ibm.com>
4125
4126 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
4127
85d69216 41282002-06-04 Jeff Law <law@redhat.com.
5a9ee623
ZW
4129 David Edelsohn <edelsohn@gnu.org>
4130 Michael Matz <matz@kde.org>
85d69216
JL
4131
4132 * sched-int.h (struct deps): New field libcall_block_tail_insn.
4133 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
4134 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
4135 is set, then mark the current insn as being part of a libcall
4136 scheduling group.
4137 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
4138
4139 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
4140 insns against the issue rate.
4141
63f4a88e
JH
4142Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
4143
4144 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
4145 * final.c (final_scan_insn): Likewise.
4146 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
4147 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
4148 * haifa-sched.c (unlink_other_notes): Likeewise.
4149 (reemit_notes): Likewise.
4150 * print-rtl.c (print_rtx): Likewise.
4151 * sched-deps (sched-analyze): Likewise.
4152 * rtl.c (note_insn_name): Likewise.
4153 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
4154 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
4155 (RANGE_*): Kill.
4156
a5d1f75b
JT
41572002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4158
4159 * varasm.c (mark_constants): Handle RTX format 'B'.
4160
82eda77e
NB
41612002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4162
4163 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
4164 (struct cpp_context): Add traditional fields.
4165 * cppmacro.c (paste_all_tokens, push_ptoken_context,
4166 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
4167 * cpptrad.c (skip_comment, lex_identifier,
4168 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
4169
589005ff
KH
41702002-06-04 Kazu Hirata <kazu@cs.umass.edu>
4171
4172 * gbl-ctors.h: Fix formatting.
4173 * gcc.c: Likewise.
4174 * gccspec.c: Likewise.
4175 * gcov.c: Likewise.
4176 * gcov-io.h: Likewise.
4177 * gcse.c: Likewise.
4178 * ggc-common.c: Likewise.
4179 * ggc.h: Likewise.
4180 * ggc-page.c: Likewise.
4181 * ggc-simple.c: Likewise.
4182 * global.c: Likewise.
4183 * graph.h: Likewise.
4184 * gthr-dce.h: Likewise.
4185 * gthr.h: Likewise.
4186 * gthr-posix.h: Likewise.
4187 * gthr-rtems.h: Likewise.
4188 * gthr-solaris.h: Likewise.
4189 * gthr-win32.h: Likewise.
4190
e2500fed
GK
41912002-06-03 Geoffrey Keating <geoffk@redhat.com>
4192
4193 Merge from pch-branch:
33005162 4194
e2500fed
GK
4195 * gengtype.h (UNION_OR_STRUCT_P): New macro.
4196 * gengtype.c (write_gc_structure_fields): Use it.
4197 (write_gc_root): Use it here too.
4198
4199 * gengtype.c (write_gc_structure_fields): Assume that lengths
4200 of typenames fit into an 'int'; don't pass a size_t to "%d" in
4201 printf.
4202 (write_gc_marker_routine_for_structure): Likewise.
4203 (write_gc_types): Likewise.
4204 (write_gc_root): Likewise.
4205
4206 * varray.h (VARRAY_CLEAR): New.
4207 (varray_clear): Prototype.
4208 * varray.c (varray_clear): New.
4209 * cselib.c (reg_values_old): New.
4210 (used_regs_old): New.
4211 (cselib_init): Use cached varrays if available to avoid
4212 generating large amounts of garbage.
4213 (cselib_finish): Don't throw away old varrays.
4214
4215 * final.c (insn_addresses_): Move out of ifdef.
4216
4217 * varray.c (uses_ggc): Make more varray kinds GCable.
4218 * varray.h (union varray_data_tag): Let gengtype see
4219 fields 'generic' and 'te'.
4220 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
4221 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
4222 (reg_to_stack): Don't call VARRAY_FREE.
4223 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
4224 (insn_addresses_): Use gengtype to mark.
4225 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
4226 pointers; handle generic pointers in unused union fields.
4227 (get_output_file_with_visibility): Include cselib.h,
4228 insn-addr.h in gtype-desc.c.
4229 * function.c (prologue): Use gengtype to mark.
4230 (epilogue): Likewise.
4231 (sibcall_epilogue): Likewise.
4232 * dependence.c: Include gt-dependence.h, ggc.h.
4233 (struct def_use): Use gengtype to mark.
4234 (struct loop): Likewise.
4235 (struct induction): Likewise.
4236 (struct dependence): Likewise.
4237 (def_use_chain): Likewise.
4238 (dep_chain): Likewise.
4239 (loop_chain): Likewise.
4240 (induction_chain): Likewise.
4241 (init_dependence_analysis): Don't free anything, just clear pointers.
4242 (build_def_use): Use GGC to allocate def_use.
4243 (add_loop): Use GGC to allocate loop.
4244 (find_induction_variable): Use GGC to allocate induction.
4245 (check_node_dependence): Use GGC to allocate induction, dependence.
4246 (dump_node_dependence): Don't free varrays.
4247 (end_dependence_analysis): Likewise.
4248 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
4249 (struct elt_loc_list): Likewise.
4250 (struct elt_list): Likewise.
4251 * cselib.c: Don't include obstack.h.
4252 (hash_table): Use gengtype to mark.
4253 (reg_values): Use gengtype to mark.
4254 (used_regs): Use gengtype to mark.
4255 (cselib_obstack): Delete.
4256 (cselib_startobj): Delete.
4257 (empty_vals): Mark as deletable.
4258 (empty_elt_lists): Mark as deletable.
4259 (empty_elt_loc_lists): Mark as deletable.
4260 (new_elt_list): Use GGC to allocate struct elt_list.
4261 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
4262 (clear_table): Don't delete obstack; don't unnecessarily clear
4263 deletable variables.
4264 (new_cselib_val): Use GGC to allocate struct cselib_val.
4265 (cselib_init): Don't set up obstacks. Use GGC to allocate
4266 hash table.
4267 (cselib_finish): Just clear variables, don't free anything.
4268 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
4269 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
4270 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
4271 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
4272 (gt-reg-stack.h): New rule.
4273 (gt-dependence.h): New rule.
4274 (gtype-desc.o): Add cselib.h, insn-addr.h.
4275
4276 * varray.c: Use only necessary headers.
4277 (element_size): New.
4278 (uses_ggc): New.
4279 (varray_init): Take type, not size. Use GGC if appropriate.
4280 (varray_grow): Update for change to struct varray_head_tag.
4281 Use GGC if appropriate.
4282 * varray.h (struct const_equiv_data): Use gengtype.
4283 (enum varray_data_enum): New.
4284 (union varray_data_tag): Use gengtype.
4285 (struct varray_head_tag): Use gengtype. Replace size field with
4286 enum varray_data_enum.
4287 (varray_init): Update prototype.
4288 (VARRAY_SCHED_INIT): Delete.
4289 (VARRAY_*_INIT): Update for change to varray_init.
4290 (VARRAY_SCHED): Delete.
4291 (VARRAY_PUSH_SCHED): Delete.
4292 (VARRAY_TOP_SCHED): Delete.
4293 * tree.h: Update for change to length specifier.
4294 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
4295 (clone_body): Likewise.
4296 * ssa.h (ssa_definition): Use gengtype to mark.
4297 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
4298 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
4299 * rtl.h (struct rtvec_def): Update for change to length specifier.
4300 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
4301 (struct initial_value_struct): Update for change to length specifier.
4302 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
4303 (ggc_add_tree_varray_root): Delete prototype.
4304 (ggc_mark_rtx_varray): Delete prototype.
4305 (ggc_mark_tree_varray): Delete prototype.
4306 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
4307 (ggc_add_tree_varray_root): Delete.
4308 (ggc_mark_rtx_varray): Delete.
4309 (ggc_mark_tree_varray): Delete.
4310 (ggc_mark_rtx_varray_ptr): Delete.
4311 (ggc_mark_tree_varray_ptr): Delete.
4312 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
4313 (create_varray): Delete prototype.
4314 * gengtype.c (varrays): Delete.
4315 (create_varray): Delete.
4316 (adjust_field_type): Detect array of string pointers.
4317 (process_gc_options): Remove code to handle varray_type option.
4318 (set_gc_used_type): Remove TYPE_VARRAY case.
4319 (output_escaped_param): New.
4320 (write_gc_structure_fields): Use output_escaped_param on all
4321 parameters. Handle 'skip' with 'use_param' option. Handle
4322 arrays of strings. Remove TYPE_VARRAY handling.
4323 (write_gc_roots): Use boolean to detect 'length' option.
4324 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
4325 (struct_fields): Call adjust_field_type on array fields.
4326 (type): Remove VARRAY_TYPE case.
4327 (type_option): Likewise.
4328 * gengtype-lex.l: Don't consider varray_type a keyword.
4329 * function.h: Update for change to length specifier.
4330 (free_eh_status): Delete prototype.
4331 * function.c (free_after_compilation): Don't call free_eh_status.
4332 (reorder_blocks): Don't use VARRAY_FREE.
4333 * except.c (struct eh_status): Update for change to length specifier.
4334 remove varray_type specifier.
4335 (free_eh_status): Delete.
4336 * dwarf2out.c: Include gt-dwarf2out.h.
4337 (used_rtx_varray): Use gengtype to mark, move
4338 outside ifdefs.
4339 (incomplete_types): Likewise.
4340 (decl_scope_table): Likewise.
33005162 4341 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
e2500fed
GK
4342 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
4343 * c-tree.h (struct lang_type): Update for change to length specifier.
4344 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
4345 * c-objc-common.c: Include gt-c-objc-common.h.
4346 (deferred_fns): Mark for gengtype.
4347 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
4348 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
4349 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
4350 (gtype-desc.o): Update dependencies.
4351 (dwarf2out.o): Add gt-dwarf2out.h.
4352 (varray.o): Update dependencies.
4353 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
4354 (gt-c-objc-common.h): New rule.
4355 (gt-dwarf2out.h): New rule.
4356 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
4357
4358 * doc/gty.texi (GTY Options): Correct spelling.
4359 (GGC Roots): Likewise.
4360 * Makefile.in (TEXI_CPP_FILES): New.
4361 (TEXI_GCC_FILES): New.
4362 (TEXI_GCCINT_FILES): New.
4363 (TEXI_CPPINT_FILES): New.
4364 ($(docdir)/cpp.info): Use new macros.
4365 ($(docdir)/gcc.info): Likewise.
4366 ($(docdir)/gccint.info): Likewise.
4367 ($(docdir)/cppinternals.info): Likewise.
4368 (cpp.dvi): Likewise.
4369 (gcc.dvi): Likewise.
4370 (gccint.dvi): Likewise.
4371 (cppinternals.dvi): Likewise.
4372
4373 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
4374 * doc/gccint.texi (Top): Include gty.texi.
4375 * doc/gty.texi: New file.
4376
4377 * bitmap.c: Include ggc.h, gt-bitmap.h.
4378 (bitmap_ggc_free): New.
4379 (bitmap_elem_to_freelist): New.
4380 (bitmap_element_free): Use bitmap_elem_to_freelist.
4381 (bitmap_element_allocate): Allow use of GGC.
4382 (bitmap_clear): Use bitmap_elem_to_freelist.
4383 (bitmap_copy): Update for change to bitmap_element_allocate.
4384 (bitmap_set_bit): Likewise.
4385 (bitmap_operation): Update for changes elsewhere.
4386 (bitmap_initialize): Allow to create bitmaps that will use GGC.
4387 * bitmap.h (struct bitmap_element_def): Use gengtype.
4388 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
4389 (bitmap_initialize): Add extra parameter.
4390 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
4391 (BITMAP_ALLOCA): Delete.
4392 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
4393 (BITMAP_GGC_ALLOC): New.
4394 * Makefile.in (gtype-desc.o): Add bitmap.h.
4395 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
4396 (GTFILES): Add bitmap.c.
4397 (gt-bitmap.h): New rule.
4398 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
4399 * basic-block.h: Update for changes to bitmap_initialize.
4400 * except.c (exception_handler_label_map): Move into...
4401 (struct eh_status): Here.
4402 (struct eh_region): Make 'aka' GCable.
4403 (free_eh_status): Don't need to specially handle
4404 exception_handler_label_map.
4405 (add_ehl_entry): Update for changes to exception_handler_label_map.
4406 (find_exception_handler_labels): Likewise.
4407 (remove_exception_handler_label): Likewise.
4408 (maybe_remove_eh_handler): Likewise.
4409 (for_each_eh_label): Likewise.
4410 (remove_eh_handler): Allocate 'aka' using GGC.
4411 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
4412 to list of includes.
4413
4414 * gengtype.c (write_gc_marker_routine_for_structure): Name
33005162 4415 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
e2500fed
GK
4416 (write_gc_types): Arrange for the tests with NULL to be inlined.
4417 (write_gc_roots): Update uses of procedure pointers.
4418 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
4419
4420 * Makefile.in (explow.o): Add dependency on gt-explow.h.
4421 (sdbout.o): Add dependency on gt-sdbout.h.
4422
4423 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
4424 (mem_attrs_htab): Likewise.
4425 (init_emit_once): Don't call ggc_add_deletable_htab.
4426 * fold-const.c (size_htab): Use gengtype to clear unused entries.
4427 (size_int_type_wide): Don't call ggc_add_deletable_htab.
4428 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
4429 parameters, use them, change callers.
4430 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
4431 (write_gc_roots): Handle 'if_marked' option.
4432 (main): Don't need to call set_gc_used_type any more.
4433 * ggc.h (ggc_htab_marked_p): Delete.
4434 (ggc_htab_mark): Delete.
4435 (struct ggc_cache_tab): New.
4436 (gt_ggc_cache_rtab): New declaration.
4437 * ggc-common.c (struct d_htab_root): Delete.
4438 (d_htab_roots): Delete.
4439 (ggc_add_deletable_htab): Delete.
4440 (ggc_htab_delete): Handle new htab-deleting mechanism.
4441 (ggc_mark_roots): Use new htab-deleting mechanism.
4442 * tree.c (type_hash_table): Use gengtype to clear unused entries.
4443 Make static.
4444 (init_obstacks): Don't call ggc_add_deletable_htab.
4445
4446 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
4447 (struct hashed_entry): Likewise.
4448 (nst_method_hash_list): Likewise.
4449 (cls_method_hash_list): Likewise.
4450 (HASH_ALLOC_LIST_SIZE): Delete.
4451 (ATTR_ALLOC_LIST_SIZE): Delete.
4452 * objc/objc-act.c (hash_init): Use ggc to allocate
4453 nst_method_hash_list, cls_method_hash_list.
4454 (hash_enter): Use ggc to allocate; allocate one entry at a time.
4455 (hash_add_attr): Likewise.
4456 (ggc_mark_hash_table): Delete.
4457 (objc_act_parse_init): Delete.
4458 (objc_init): Delete reference to objc_act_parse_init.
4459 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
4460 obstack.h. Replace references to 'struct hash_table' with htab_t.
4461 (struct symbol_hash_entry): Replace hash header with key field.
4462 (struct file_hash_entry): Replace hash header with key field.
4463 (struct demangled_hash_entry): Replace hash header with key field.
4464 (hash_string_eq): New.
4465 (hash_string_hash): New.
4466 (symbol_hash_newfunc): Delete.
4467 (symbol_hash_lookup): Modify to use htab_t.
4468 (file_hash_newfunc): Delete.
4469 (file_hash_lookup): Modify to use htab_t.
4470 (demangled_hash_newfunc): Delete.
4471 (demangled_hash_lookup): Modify to use htab_t.
4472 (tlink_init): Modify to use htab_t.
4473 * hash.h: Delete.
4474 * hash.c: Delete.
4475 * ggc.h: Delete forward structure declarations.
4476 Delete prototypes for deleted functions.
4477 * ggc-common.c: Don't include hash.h.
4478 (ggc_add_tree_hash_table_root): Delete.
4479 (ggc_mark_tree_hash_table_entry): Delete.
4480 (ggc_mark_tree_hash_table): Delete.
4481 (ggc_mark_tree_hash_table_ptr): Delete.
4482 * gengtype.c (write_gc_structure_fields): Allow param_is option.
4483 (write_gc_marker_routine_for_structure): Use visibility of
4484 the parameter if there is one.
4485 * function.c: Replace hash.h with hashtab.h. Replace references
4486 to 'struct hash_table *' with htab_t.
4487 (struct insns_for_mem_entry): Include a plain key.
4488 (fixup_var_refs_insns_with_hash): Update to use htab_t.
4489 (insns_for_mem_newfunc): Delete.
4490 (insns_for_mem_hash): Update to use htab_t.
4491 (insns_for_mem_comp): Likewise.
4492 (insns_for_mem_walk): Likewise.
4493 * c-lang.c: Include ggc.h.
4494 * Makefile.in (OBJS): Remove hash.o.
4495 (c-lang.o): Add GGC_H.
4496 (COLLECT2_OBJS): Remove hash.o.
4497 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
4498 (ggc-common.o): Remove hash.h.
4499 (function.o): Remove hash.h, add HASHTAB_H.
4500 (genautomata.o): Remove hash.h, add HASHTAB_H.
4501
4502 * varasm.c (mark_const_str_htab_1): Delete.
4503 (mark_const_str_htab): Delete.
4504 (const_str_htab_del): Delete.
4505 (const_str_htab): Use gengtype to mark.
4506 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
4507 allocate them.
4508 * tree.c (mark_tree_hashtable_entry): Delete.
4509 (mark_tree_hashtable): Delete.
4510 * tree.h (mark_tree_hashtable): Delete prototype.
4511 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
4512 (ggc_mark): Likewise.
4513 (ggc_calloc): New.
4514 (htab_create_ggc): New.
4515 * ggc-common.c (ggc_calloc): New.
4516 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
4517 (struct type): Add param_struct structure.
4518 * gengtype.c (param_structs): New.
4519 (adjust_field_type): Handle param_is option.
4520 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
4521 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
4522 (write_gc_structure_fields): Add new PARAM parameter. Update
4523 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
4524 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
4525 Use it to generate function name. Update callers.
4526 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
4527 Process them.
4528 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
4529 option.
4530 (main): Define PTR as pointer-to-scalar. Don't specially
4531 mark deferred_string or ehl_map_entry.
4532 * gengtype-yacc.y (PARAM_IS): Add new token.
4533 (externstatic): Use adjust_field_type.
4534 (type_option): Add PARAM_IS.
4535 * gengtype-lex.l: Add rule for typedef of function pointers.
4536 Add rule for PARAM_IS.
4537 (IWORD): Add size_t.
4538 * except.c (exception_handler_label_map): Use gengtype to mark.
4539 (type_to_runtime_map): Likewise.
4540 (mark_ehl_map_entry): Delete.
4541 (mark_ehl_map): Delete.
4542 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
4543 (t2r_mark_1): Delete.
4544 (t2r_mark): Delete.
4545 * Makefile.in (gtype-desc.o): Correct dependencies.
4546 (GTFILES): Add hashtab.h.
4547 (genautomata.o): Actually uses hashtab.h.
4548
4549 * Makefile.in (stringpool.o): Add $(GGC_H).
4550 (dwarf2asm.o): Likewise.
4551 (GTFILES): Add hashtable.h.
4552 * c-common.h (struct c_common_identifier): Use gengtype.
4553 * c-decl.h (c_mark_tree): Delete.
4554 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4555 * c-tree.h (struct lang_identifier): Use gengtype.
4556 (union lang_tree_node): New.
4557 (c_mark_tree): Delete prototype.
33005162 4558 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
e2500fed
GK
4559 dwarf2_debug_hooks.
4560 * gengtype-lex.l (IWORD): Allow 'bool'.
4561 (ptr_alias): Match.
4562 * gengtype-yacc.y (ALIAS): New token.
4563 (type_option): New rule.
4564 (option): Use type_option.
4565 * gengtype.c (process_gc_options): New.
4566 (set_gc_used_type): Use it.
4567 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
4568 Add new variable 't' to hold the type of the field being processed.
4569 Add more error checking. Use UNION_P when looking at 'desc' option.
4570 Handle language-specific structures containing other
4571 language-specific structures.
4572 (write_gc_types): Handle 'ptr_alias' option.
4573 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
4574 * ggc-common.c (ggc_pending_trees): Delete.
4575 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
4576 (ggc_mark_trees): Delete.
4577 (gt_ggc_m_tree_node): Delete.
4578 * ggc.h (ggc_pending_trees): Delete.
4579 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
4580 * hashtable.h (ht_identifier): Use gengtype.
4581 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
4582 * langhooks.h (struct lang_hooks): Delete mark_tree.
4583 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
4584 anyway.
4585 * system.h: Poison LANG_HOOKS_MARK_TREE.
4586 * tree.c (tree_node_structure): New.
4587 * tree.h (struct tree_common): Use gengtype.
4588 (struct tree_int_cst): Likewise.
4589 (struct tree_real_cst): Likewise.
4590 (struct tree_string): Likewise.
4591 (struct tree_complex): Likewise.
4592 (struct tree_vector): Likewise.
4593 (struct tree_identifier): Likewise.
4594 (struct tree_list): Likewise.
4595 (struct tree_vec): Likewise.
4596 (struct tree_exp): Likewise.
4597 (struct tree_block): Likewise.
4598 (struct tree_type): Likewise.
4599 (struct tree_decl): Likewise.
4600 (enum tree_structure_enum): New.
4601 (union tree_node): Use gengtype, with an alias.
4602 (tree_node_structure): Prototype.
4603 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4604
4605 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
4606 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
4607 to LANG_HOOKS_FUNCTION_FINAL.
4608 * Makefile.in (GTFILES): Add bitmap.h.
4609 * except.c (struct eh_region): Mark field 'aka' to be skipped.
4610
4611 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
4612 (alpha_init_machine_status): Give proper type.
4613 * Makefile.in (c-lang.o): Depend on gtype-c.h.
4614 (optabs.o): Depend on gt-optabs.h.
4615 (GTFILES): Add optabs.o.
4616 (gt-optabs.h): Add rule.
4617 * optabs.c: Include gt-optabs.h.
4618
4619 * gengtype.c (set_gc_used_type): Correct some errors in last change.
4620 (write_gc_structure_fields): If a field which should be NULL is
4621 not, abort.
4622 * c-pragma.c: Move struct align_stack and variable alignment_stack
4623 out from the ifdef.
4624
4625 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
4626 * config/xtensa/xtensa.c: Include gt-cris.h.
4627 (struct machine_function): Use gengtype to mark.
4628 * config/mmix/mmix.h (struct machine_function): Use gengtype
4629 to mark.
4630 * config/cris/t-cris: Add dependencies for gt-cris.h.
4631 * config/cris/cris.c: Include gt-cris.h.
4632 (struct machine_function): Use gengtype to mark.
4633 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
4634 to mark.
4635 * doc/tm.texi (Per-Function Data): Delete references to
4636 mark_machine_status.
4637 * config/ia64/ia64.c (ia64_override_options): Don't set
4638 mark_machine_status.
4639 * config/i386/i386.c (override_options): Likewise.
4640 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
4641 * config/arm/arm.c (arm_init_expanders): Likewise.
4642 * config/alpha/alpha.c (override_options): Likewise.
33005162 4643 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
e2500fed
GK
4644 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
4645 (write_gc_structure_fields): Don't handle 'really' option.
4646 Handle 'maybe_null' option.
4647 (write_gc_types): Handle 'maybe_null' option.
4648 * function.h (struct function): Don't use "really".
4649 (mark_machine_status): Delete declaration.
4650 (mark_lang_status): Delete declaration.
4651 (gt_ggc_mr_machine_function): Delete prototype.
4652 (gt_ggc_mr_language_function): Delete prototype.
4653 * function.c (mark_machine_status): Delete.
4654 (mark_lang_status): Delete.
4655 (gt_ggc_mr_machine_function): Delete.
4656 (gt_ggc_mr_language_function): Delete.
4657 * c-tree.h (mark_c_function_context): Delete prototype.
4658 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
4659 * c-decl.c (struct language_function): Rename from struct
4660 c_language_function. Update uses. Use gengtype to mark.
4661 (mark_c_function_context): Delete.
4662 * c-common.h (struct c_language_function): Rename from struct
4663 language_function.
4664 (mark_stmt_tree): Delete prototype.
4665 (c_mark_lang_decl): Delete prototype.
4666 (mark_c_language_function): Delete prototype.
4667 * c-common.c (mark_stmt_tree): Delete.
4668 (c_mark_lang_decl): Delete.
4669 (mark_c_language_function): Delete.
4670
4671 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
4672 (lang_bitmap): New typedef. Use where appropriate.
4673 (struct type): Add gc_used field, lang_struct field.
4674 (UNION_P): New macro.
4675 (new_structure): New prototype.
4676 (find_structure): Remove 'pos' parameter. Change all callers.
4677 * gengtype-lex.l: Update for changes to find_structure.
4678 * gengtype-yacc.y (typedef_struct): Use new_structure.
4679 (yacc_ids): Suppress warning.
4680 (type): Use new_structure.
4681 * gengtype.c (string_type): Update for changes to struct type.
4682 (find_structure): Just find a structure, don't worry about
4683 creating one.
4684 (new_structure): New.
4685 (note_yacc_type): Use new_structure.
4686 (set_gc_used_type): New.
4687 (set_gc_used): New.
4688 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
4689 (write_gc_types): Handle TYPE_LANG_STRUCT.
4690 (write_gc_marker_routine_for_structure): New.
4691 (main): Call set_gc_used. Add some calls to set_gc_used_type
4692 for places where GCC doesn't use gengtype properly yet.
4693 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
4694 (gt_ggc_m_tree_node): Likewise.
4695
4696 * varasm.c (copy_constant): Call expand_constant if we hit
4697 something we can't recognise.
4698
4699 * ggc-common.c (ggc_mark_rtvec_children): Delete.
4700 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
4701 (lang_mark_false_label_stack): Delete.
4702 * rtl.h (struct rtvec_def): Use gengtype to mark.
4703 * ggc.h (ggc_mark_rtvec): Delete.
4704 (gt_ggc_m_rtvec_def): Delete.
4705 (ggc_mark_nonnull_tree): Delete.
4706 (ggc_mark_rtvec_children): Delete prototype.
4707 (lang_mark_false_label_stack): Delete declaration.
4708
4709 * gengtype.h (note_yacc_type): Add prototype.
4710 * gengtype.c (note_yacc_type): New function.
4711 * gengtype-lex.l: Add lexer support for yacc files.
4712 * gengtype-yacc.y (start): Extract union from yacc files.
4713 (yacc_union): New rule.
4714 (yacc_typematch): New rule.
4715 (yacc_ids): New rule.
4716 (enum_items): Tweak for efficiency.
4717 (optionseq): Likewise.
4718
4719 * c-common.h (struct language_function): Use gengtype.
4720 (struct c_lang_decl): Likewise.
4721 * c-tree.h (struct lang_decl): Likewise.
4722 (struct lang_type): Likewise.
4723 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
4724 tree language substructures.
4725
4726 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
4727 ggc_mark_tree.
4728 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
4729
4730 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
4731
4732 * stmt.c (struct nesting): Add discriminator. Use gengtype to
4733 mark. Remove 'data.block.cleanup_ptr' field.
4734 (struct stmt_status): Use usual technique to mark struct nesting.
4735 (gt_ggc_mr_nesting_cond): Delete.
4736 (gt_ggc_mr_nesting_loop): Delete.
4737 (gt_ggc_mr_nesting_block): Delete.
4738 (gt_ggc_mr_nesting_case_stmt): Delete.
4739 (expand_start_cond): Set discriminator.
4740 (expand_start_loop): Likewise.
4741 (expand_start_null_loop): Likewise.
4742 (expand_start_bindings_and_block): Set discriminator. Don't set
4743 deleted fields.
4744 (expand_decl_cleanup): Replace 'cleanup_ptr' with
4745 &thisblock->data.block.cleanups.
4746 (expand_start_case): Set discriminator.
4747 (expand_start_case_dummy): Set discriminator.
4748
4749 * ggc-callbacks.c: Remove.
4750
4751 * gengtype.h (struct type): Add 'u.s.bitmap' field.
4752 (find_structure): Add 'pos' parameter.
4753 * gengtype-lex.l: Update callers to find_structure.
4754 * gengtype-yacc.y: Likewise.
4755 * gengtype.c (find_structure): Allow for structures to be defined
4756 in multiple language backends.
4757 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
4758 (counter): Rename to gc_counter.
4759 (write_gc_structure_fields): Fail when writing out fields for
4760 an incomplete structure. Ignore arrays of scalars. Handle
4761 'tree_vec' special.
4762 (write_gc_types): Reset counter for each procedure written.
4763
4764 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
4765 (free_case_nodes): Delete.
4766 (expand_end_case_type): Delete call to free_case_nodes.
4767
4768 * Makefile.in (cselib.o): Include gt-<filename>.h.
4769 (gcse.o): Likewise.
4770 (profile.o): Likewise.
4771 (alias.o): Likewise.
4772 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
4773 alphabetize backend files.
4774 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
4775 * alias.c: Use gengtype for roots.
4776 * c-common.h (struct stmt_tree_s): Use gengtype.
4777 * c-decl.c: Use gengtype for roots.
4778 * cselib.c: Use gengtype for roots.
4779 * expr.c: Use gengtype for roots.
4780 * fold-const.c: Use gengtype for roots.
4781 * gcse.c: Use gengtype for roots.
4782 * gengtype-lex.l: Handle typedefs of function types.
4783 Allow for empty array bounds.
4784 Allow processing to stop on initialisers.
4785 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
4786 (semiequal): New rule.
4787 * gengtype.c (create_file): Tidy output files.
4788 (get_output_file_with_visibility): Fix paren warning. Fix bug
4789 involving multiple input files mapping to one output file.
4790 (write_gc_structure_fields): Skip arrays of scalars.
4791 (write_gc_types): Tidy output files.
4792 (write_gc_root): New function.
4793 (write_gc_roots): Fix bugs, add support for roots that are
4794 structures.
4795 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
4796 (ggc_mark_tree_ptr): Delete.
4797 (ggc_add_rtx_root): Delete.
4798 (ggc_add_tree_root): Delete.
4799 (ggc_del_root): Delete.
4800 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
4801 allocate struct initial_value_struct.
4802 * profile.c: Use gengtype for roots.
4803 * sdbout.c: Use gengtype for roots.
4804 * varasm.c (mark_weak_decls): Delete unused prototype.
4805 (mark_const_hash_entry): Delete unused function.
4806 * config/darwin-protos.h: Use gengtype for roots.
4807 (machopic_add_gc_roots): Delete.
4808 * config/arm/arm.c: Use gengtype for roots.
4809 * config/arm/arm.h: Use gengtype for roots.
4810 * config/c4x/c4x-protos.h: Use gengtype for roots.
4811 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
4812 * config/d30v/d30v-protos.h: Use gengtype for roots.
4813 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
4814 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
4815 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
4816 * config/ia64/ia64-protos.h: Use gengtype for roots.
4817 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
4818 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
4819 * config/m68hc11/m68hc11.c (z_reg): Make global.
4820 (z_reg_qi): Make global.
4821 (m68hc11_add_gc_roots): Delete.
4822 * config/mcore/mcore-protos.h: Use gengtype for roots.
4823 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
4824 * config/mips/mips.c (mips_add_gc_roots): Delete.
4825 * config/mips/mips.h: Use gengtype for roots.
4826 * config/mmix/mmix.c (override_options): Use gengtype for roots.
4827 * config/mmix/mmix.h: Use gengtype for roots.
4828 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
4829 * config/mn10200/mn10200.h: Use gengtype for roots.
4830 * config/pa/pa.c: Use gengtype for roots, marking.
4831 (struct deferred_plabel): Use GGC, gengtype.
4832 (pa_add_gc_roots): Delete.
4833 (mark_deferred_plabels): Delete.
4834 * config/pj/pj-protos.h: Use gengtype for roots.
4835 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
4836 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
4837 machopic_add_gc_roots.
4838 * config/rs6000/rs6000.h: Use gengtype for roots.
4839 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
4840 (gt-darwin.h): Add rule.
4841 * config/sh/sh.c: Use gengtype for roots.
4842 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
4843 (gt-sh.h): Add rule.
4844 * config/sparc/sparc.c: Use gengtype for roots.
4845 (sparc_add_gc_roots): Delete.
4846 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
4847 (mark_ultrasparc_pipeline_state): Delete.
4848 * config/sparc/sparc.h: Use gengtype for roots.
4849
4850 * Makefile.in (c-parse.o): Update dependencies.
4851 (c-common.o): Likewise.
4852 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
4853 Add dependencies for the files they generate.
4854 * c-common.c: Replace ggc_add_* uses with GTY annotations.
4855 * c-common.h: Likewise.
4856 * c-decl.c: Likewise.
4857 (gt_ggc_mp_binding_level): Delete.
4858 * c-lang.c: Include gtype-c.h.
4859 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
4860 gt-c-parse.h.
4861 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
4862 (gt_ggc_mp_align_stack): Delete.
4863 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
4864 * function.c: Replace ggc_add_* uses with GTY annotations.
4865 (gt_ggc_mp_function): Delete.
4866 * function.h: Replace ggc_add_* uses with GTY annotations.
4867 * gengtype.c (lang_names): New.
4868 (NUM_BASE_FILES): New.
4869 (open_base_files): Create language base files.
4870 (startswith): New.
4871 (get_file_basename): New.
4872 (get_base_file_bitmap): New.
4873 (get_output_file_with_visibility): Rename from get_output_file.
4874 Add more mappings for various C/Objc filenames.
4875 (finish_root_table): New.
4876 (write_gc_roots): Handle dependencies and scoping properly.
4877 * gengtype.h: Add prototypes for new functions.
4878 * ggc-common.c (struct deletable_root): Delete.
4879 (deletables): Delete.
4880 (ggc_add_deletable_root): Delete.
4881 (ggc_mark_roots): No need to deal with deleted functionality.
4882 * ggc.h (ggc_add_deletable_root): Delete prototype.
4883 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
4884 (gtype-objc.h): Add rule to create.
4885 * objc/config-lang.in (gtfiles): New.
4886 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
4887 ggc_add_* with GTY markers. Include gtype-objc.h.
4888 (ggc_mark_imp_list): Delete.
4889 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
4890 * objc/objc-lang.c: Random Whitespace Change.
4891
4892 * except.h (exception_handler_labels): Delete.
4893 (get_exception_handler_labels): New.
4894 * except.c (exception_handler_labels): Delete.
4895 (struct eh_status): Add exception_handler_labels field.
4896 (doing_eh): Don't add exception_handler_labels as root.
4897 (free_eh_status): Don't need to free exception_handler_labels.
4898 (get_exception_handler_labels): New.
4899 (find_exception_handler_labels): Update for move of
4900 exception_handler_labels.
4901 (remove_exception_handler_label): Likewise.
4902 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
4903 * jump.c (rebuild_jump_labels): Likewise.
4904 * loop.c (find_and_verify_loops): Likewise.
4905 * sched-rgn.c (is_cfg_nonregular): Likewise.
4906
4907 * gengtype.c (write_gc_structure_fields): Handle variable-length
4908 TYPE_ARRAYs.
4909
4910 * varasm.c (struct weak_syms): Use GGC, gengtype.
4911 (mark_weak_decls): Delete.
4912 (weak_decls): Likewise.
4913 (add_weak): Likewise.
4914 (remove_from_pending_weak_list): Likewise.
4915 (init_varasm_once): Likewise.
4916
4917 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
4918 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
4919 stor-layout.c, regclass.c, and lists.c.
4920 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
4921 gt-regclass.h and gt-lists.h on s-gtype.
4922 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
4923 * except.c: Use gengtype for roots.
4924 * explow.c: Use gengtype for roots. Include gt-explow.h.
4925 * expr.h (init_stor_layout_once): Delete prototype.
4926 * function.c: Use gengtype for roots.
4927 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
4928 * gengtype-yacc.y (start): Can also be an externstatic.
4929 (externstatic): New production.
4930 (struct_fields): Correct array bounds inversion for 2-d arrays.
4931 * gengtype.c (variables): New variable.
4932 (note_variable): New function.
4933 (get_output_file): Include libfuncs.h into gtype-desc.c.
4934 (get_output_file_name): New function.
4935 (write_gc_structure_fields): Suppress warnings.
4936 (write_gc_types): Make static.
4937 (put_mangled_filename): New function.
4938 (write_gc_roots): New function.
4939 (main): Call write_gc_roots.
4940 * gengtype.h (note_variable): Prototype.
4941 (get_output_file_name): Prototype.
4942 (write_gc_types): Delete prototype.
4943 * ggc.h: Clean up unnecessary structure predefinitions.
4944 (struct ggc_root_tab): Define.
4945 (gt_ggc_m_rtx_def): Make function, not macro.
4946 (gt_ggc_m_tree_node): Likewise.
4947 * libfuncs.h: Use gengtype for roots.
4948 * lists.c: Use gengtype for roots. Include gt-lists.h.
4949 (init_EXPR_INSN_LIST_cache): Delete.
4950 * optabs.c: Use gengtype for roots.
4951 (gt_ggc_mp_optab): Delete.
4952 * optabs.h: Use gengtype for roots.
4953 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
4954 * rtl.h: Use gengtype for roots.
4955 (init_EXPR_INSN_LIST_cache): Delete prototype.
4956 * stor-layout.c: Use gengtype for roots.
4957 Include gt-stor-layout.h.
4958 (init_stor_layout_once): Delete.
4959 * toplev.c: Use gengtype for roots. Delete calls to deleted
4960 routines.
4961 * tree.c: Use gengtype for roots.
4962 * tree.h: Use gengtype for roots.
4963 * varasm.c: Use gengtype for roots.
33005162 4964
e2500fed
GK
4965 * Makefile.in (GTFILES): Add @all_gtfiles@.
4966 * configure: Regenerate.
4967 * configure.in: Construct all_gtfiles from the gtfiles definitions
4968 in config-lang.in.
4969 * gengtype-yacc.y (type): Warn about duplicate structure names.
4970 * gengtype.c (get_output_file): Handle .c files in language
4971 subdirectories.
4972
4973 * Makefile.in (GTFILES): Run gengtype on all the config files
4974 and on the target .c file.
4975 * except.c (mark_eh_region): Delete.
4976 (init_eh_for_function): Use GGC on struct eh_status.
4977 (mark_eh_status): Delete.
4978 (free_eh_status): Use GGC.
4979 (expand_eh_region_start): Use GGC to
4980 (collect_eh_region_array): Allocate last_region_number using GGC.
4981 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
4982 (remove_eh_handler): Let GGC free struct eh_region.
4983 (add_call_site): Use GGC to reallocate call_site_record array.
4984 * function.c (init_machine_status): Update calling sequence.
4985 (mark_machine_status): Likewise.
4986 (mark_lang_status): Likewise.
4987 (prepare_function_start): Update init_machine_status call.
4988 (mark_function_status): Delete.
4989 (maybe_mark_struct_function): Delete.
4990 (ggc_mark_struct_function): Delete.
4991 (gt_ggc_mp_function): New.
4992 (gt_ggc_mr_machine_function): New.
4993 (gt_ggc_mr_language_function): New.
4994 (init_function_once): Use canonical names.
4995 * function.h (struct function): Use gengtype.
4996 (init_machine_status): Return the structure.
4997 (mark_machine_status): Take a 'void *'.
4998 (mark_lang_status): Likewise.
4999 * ggc-common.c (ggc_mark_trees): Use canonical name for
5000 ggc_mark_struct_function.
5001 * tree.h (ggc_mark_struct_function): Delete prototype.
5002 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
5003 (alpha_init_machine_status): Likewise.
5004 (override_options): Use canonical name for alpha_mark_machine_status.
5005 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
5006 * config/arm/arm.h (struct machine_function): Use gengtype.
5007 * config/arm/arm.c (arm_mark_machine_status): Delete.
5008 (arm_init_machine_status): Update calling sequence.
5009 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
33005162 5010 * config/cris/cris.c (cris_init_machine_status): Update
e2500fed
GK
5011 calling sequence.
5012 * config/d30v/d30v.h (struct machine_function): Use gengtype.
33005162 5013 * config/d30v/d30v.c (d30v_init_machine_status): Update
e2500fed
GK
5014 calling sequence.
5015 (d30v_mark_machine_status): Delete.
5016 * config/i386/i386.c: Include gt-i386.h.
5017 (struct machine_function): Use gengtype.
5018 (ix86_init_machine_status): Update calling sequence.
5019 (ix86_mark_machine_status): Delete.
5020 (override_options): Use canonical namke for ix86_mark_machine_status.
5021 * config/ia64/ia64.h (struct machine_function): Use gengtype.
33005162 5022 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
e2500fed
GK
5023 sequence.
5024 (ia64_mark_machine_status): Delete.
33005162 5025 (ia64_override_options): Use canonical name for
e2500fed 5026 ia64_mark_machine_status.
33005162 5027 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
e2500fed
GK
5028 sequence.
5029 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
5030 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5031 * gengtype.c (get_output_file): Fix warning.
5032 (main): Add prototype to suppress warning.
5033 * tree.c: Remove tree_hash_mark prototype.
5034
5035 * tree.h (init_stmt): Delete prototype.
5036 * toplev.c (lang_independent_init): Don't call init_stmt.
5037 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
5038 (stmt_obstack): Delete.
5039 (POPSTACK): No need to free 'struct nesting'.
5040 (gt_ggc_mr_nesting_cond): Use canonical names.
5041 (gt_ggc_mr_nesting_loop): Use canonical names.
5042 (gt_ggc_mr_nesting_block): Use canonical names.
5043 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
5044 (mark_stmt_status): Delete.
5045 (init_stmt): Delete.
5046 (clear_last_expr): Clear both last_expr_type and last_expr_value.
5047 Use it everywhere that last_expr_type was cleared.
5048 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
5049 (zap_lists): Delete.
5050 * ggc.h (ggc_add_deletable_root): Prototype.
5051 (mark_stmt_status): Remove prototype.
5052 * ggc-common.c (ggc_add_deletable_root): New.
5053 (ggc_mark_roots): Handle deletable roots.
5054 * function.c (ggc_mark_struct_function): Use canonical name
5055 for mark_stmt_status.
5056 * emit-rtl.c (free_sequence_stack): New.
5057 (start_sequence): Use a freelist for sequences.
5058 (end_sequence): Likewise.
5059 (init_emit_once): Add free_sequence_stack as a deleteable root.
5060 * c-pragma.c Include gt-c-pragma.h.
5061 (struct align_stack): Use gengtype.
5062 (push_alignment): Use GGC for struct align_stack.
5063 (mark_align_stack): Delete.
5064 (gt_ggc_mp_align_stack): New.
5065 (init_pragma): Use canonical name for mark_align_stack.
5066 * c-decl.c: Include gt-c-decl.h.
5067 (struct binding_level): Use gengtype.
5068 (make_binding_level): Use GGC; handle the freelist here.
5069 (pop_binding_level): New.
5070 (pushlevel): Move code into make_binding_level.
5071 (push_label_level): Likewise.
5072 (poplevel): Move code into pop_binding_level.
5073 (pop_label_level): Likewise.
5074 (mark_binding_level): Delete.
5075 (gt_ggc_mp_binding_level): New.
5076 (c_init_decl_processing): Use canonical name for mark_binding_level.
5077 Add free_binding_level as deletable root.
5078 (mark_c_function_context): Use canonical name for mark_binding_level.
5079 * Makefile.in (c-decl.o): Add gt-c-decl.h.
5080 (c-pragma.o): Add gt-c-pragma.h.
5081 (GTFILES): Add c-decl.c and c-pragma.c.
5082 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
5083
5084 * tree.c (struct type_hash): Use gengtype.
5085 (init_obstacks): Use canonical name for type_hash_mark.
5086 (type_hash_mark): Delete.
5087 Include gt-tree.h.
5088 * rtl.h (struct mem_attrs): Use gengtype.
5089 * optabs.h (struct optab): Use gengtype.
5090 * optabs.c (expand_binop): Squish signed/unsigned warning.
5091 (mark_optab): Make local, use canonical name, use autogenerated
5092 marker procedure.
5093 (init_optabs): Use canonical name for mark_optab.
5094 (new_optab): Use GGC to allocate optabs.
5095 * ggc.h: Delete mark_optab prototype.
5096 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
5097 mem_attrs marker procedure.
5098 * gengtype.c (get_output_file): Include headers in gtype-desc.c
5099 explicitly rather than deducing them from file names.
5100 (write_gc_structure_fields): Handle arrays of structures.
5101 (main): Return non-zero exit code if errors occur during output.
5102 * emit-rtl.c (mem_attrs_mark): Delete.
5103 (init_emit_once): Use canonical name for mem_attrs marker procedure.
5104 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
5105 (tree.o): Depend on gt-tree.h.
5106 (GTFILES): Add rtl.h, optabs.h, tree.c.
5107 (gt-tree.h): Add it to s-gtype rule.
5108
5109 * .cvsignore: Ignore gengtype flex/bison generated files.
5110 * Makefile.in (GGC_H): Add gtype-desc.h.
5111 (OBJS): Add gtype-desc.o.
5112 (GEN): Add gengtype.
5113 (STAGESTUFF): Add gengtype.
5114 (varasm.o): Add gt-varasm.h.
5115 (stmt.o): Add gt-stmt.h.
5116 (except.o): Add gt-except.h.
5117 (integrate.o): Add gt-integrate.h.
5118 (GTFILES): New.
5119 Add new rules for new files.
5120 * configure: Regenerate.
5121 * configure.in: Correct defaults.h paths.
5122 * emit-rtl.c (mark_sequence_stack): Delete.
5123 (mark_emit_status): Delete.
5124 (start_sequence): Allocate sequence structures using GGC.
5125 (end_sequence): Allocate sequence structures using GGC.
5126 * except.c: Use gengtype for various structures. Include
5127 gt-except.h.
5128 * expr.c (mark_expr_status): Delete.
5129 * function.c: Use gengtype for various structures. Include
5130 gt-function.h.
5131 (mark_function_status): Use standard gt_ggc names for marker functions.
5132 (ggc_mark_struct_function): Likewise.
5133 * function.h: Use gengtype for various structures.
5134 * gengtype-lex.l: New file.
5135 * gengtype-yacc.y: New file.
5136 * gengtype.c: New file.
5137 * gengtype.h: New file.
5138 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
5139 the standard names. Remove some now-unnecessary prototypes.
5140 * integrate.c: Use gengtype for various structures. Include
5141 gt-integrate.h.
5142 (mark_hard_reg_initial_vals): Delete.
5143 * integrate.h (mark_hard_reg_initial_vals): Delete.
5144 * stmt.c: Use gengtype for various structures. Include
5145 gt-stmt.h.
5146 (mark_case_node): Delete.
5147 (mark_goto_fixup): Delete.
5148 (mark_stmt_status): Use standard gt_ggc names for marker functions.
5149 * system.h: Define GTY to empty. In flex/bison files,
5150 don't poison malloc or realloc, instead just define them to
5151 xmalloc and xrealloc.
5152 * varasm.c: Use gengtype for various structures. Include
5153 gt-varasm.h. Use standard gt_ggc names for marker functions.
5154 (mark_pool_constant): Delete.
5155 (mark_varasm_status): Delete.
5156 (decode_rtx_const): #if 0 out non-typesafe hack.
5157
5158 * function.h (free_lang_status): Mark as obsolete.
5159 * function.c (free_lang_status): Mark as obsolete.
5160 * c-decl.c (push_c_function_context): Use GC to allocate and free
5161 struct language_function.
5162 (pop_c_function_context): Likewise.
5163 * c-common.c (mark_c_language_function): Mark struct
5164 language_function.
5165
5166 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
5167 Document that the machine_function structures must be allocated
5168 using GC. Update mark_machine_status documentation.
5169 * function.h: Don't declare free_machine_status.
33005162 5170 * function.c (free_machine_status): Don't define.
e2500fed
GK
5171 (free_after_compilation): Don't call free_machine_status.
5172 (ggc_mark_struct_function): Mark f->machine. Call
5173 mark_machine_status only on non-NULL pointers.
5174 * system.h: Poison free_machine_status.
5175 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
5176 struct machine_function.
5177 (xtensa_free_machine_status): Delete.
5178 (override_options): Don't set free_machine_status.
5179 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
5180 free_machine_status.
5181 (rs6000_init_machine_status): Use GC on struct machine_function.
5182 (rs6000_free_machine_status): Delete.
5183 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
5184 machine_function.
5185 (ia64_mark_machine_status): Likewise.
5186 (ia64_free_machine_status): Delete.
5187 (ia64_override_options): Don't set free_machine_status.
5188 * config/i386/i386.c (override_options): Don't set
5189 free_machine_status.
5190 (ix86_init_machine_status): Use GC on struct machine_function.
5191 (ix86_mark_machine_status): Likewise.
5192 (ix86_free_machine_status): Delete.
5193 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
5194 machine_function.
5195 (d30v_mark_machine_status): Likewise.
5196 (d30v_free_machine_status): Delete.
5197 (d30v_init_expanders): Don't set free_machine_status.
5198 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
5199 machine_function.
5200 (arm_init_machine_status): Likewise.
5201 (arm_free_machine_status): Delete.
5202 (arm_init_expanders): Don't set free_machine_status.
5203 * config/alpha/alpha.c (override_options): Don't set
5204 free_machine_status.
5205 (alpha_init_machine_status): Use GC on struct machine_function.
5206 (alpha_mark_machine_status): Likewise.
5207 (alpha_free_machine_status): Delete.
5208
5209 * varasm.c (compare_constant): Fix typo.
5210
5211 * varasm.c: Don't include obstack.h.
5212 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
5213 (struct rtx_const): Give substructures names, improve formatting.
5214 (struct constant_descriptor): Delete.
5215 (struct constant_descriptor_tree): New, based on constant_descriptor.
5216 (const_hash_table): Is a hash table of trees.
5217 (mark_const_hash_entry): Is used for hashes of trees. Mark
5218 constant_descriptor_tree structure.
5219 (mark_const_str_htab_1): Mark deferred_string structure.
5220 (compare_constant): Rewrite to compare trees.
5221 (compare_constant_1): Delete.
5222 (record_constant): Delete.
5223 (record_constant_1): Delete.
5224 (output_constant_def): Use struct constant_descriptor_tree.
5225 Don't duplicate trees twice.
5226 (struct constant_descriptor_rtx): New.
5227 (struct pool_constant): Used for rtx constants.
5228 (init_varasm_status): Update for change to struct varasm_status.
5229 (mark_varasm_status): Likewise.
5230 (free_varasm_status): Delete.
5231 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
5232 (record_constant_rtx): Likewise.
5233 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
5234 (force_const_mem): Likewise.
5235 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
5236 * function.c (free_after_compilation): Don't use free_varasm_status.
5237 * function.h: Don't prototype free_varasm_status.
5238
5239 * ggc-common.c (ggc_realloc): Handle X being NULL.
5240
5241 * ggc-common.c (ggc_realloc): New function.
5242 * ggc.h: Prototype it.
5243 * emit-rtl.c (free_emit_status): Delete.
5244 (init_emit): Allocate emit subarrays using GC.
5245 (gen_reg_rtx): Reallocate subarrays using GC.
5246 (init_emit): Use GC to allocate 'struct emit_status' and its
5247 subarrays.
5248 (mark_emit_status): Mark structure and its subarrays.
5249 * stmt.c (free_stmt_status): Delete.
5250 * expr.c (free_expr_status): Delete.
5251 * function.h: Remove prototypes for deleted functions.
5252 * function.c (free_after_compilation): Don't use deleted functions.
5253 Don't call free() on x_parm_reg_stack_loc.
5254 (free_after_parsing): Don't use free_stmt_status.
5255 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
5256 (mark_function_status): Mark x_parm_reg_stack_loc.
5257
5258 * varasm.c (init_varasm_status): Use GC to allocate
5259 'struct varasm_status' and its fields x_const_rtx_hash_table
5260 and x_const_rtx_sym_hash_table.
5261 (mark_varasm_status): Mark them.
5262 (free_varasm_status): Use GC to free them.
5263 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
5264 (mark_expr_status): Mark the structure itself.
5265 (free_expr_status): Use GC to free the structure.
5266 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
5267 (mark_stmt_status): Mark the 'struct stmt_status' itself.
5268 (init_stmt_for_function): Allocate the structure for GC.
5269
5270 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
5271 (equate_type_number_to_die): Likewise.
5272 * tree.h (TYPE_SYMTAB_DIE): New macro.
5273 (struct die_struct): Predeclare.
5274 (struct tree_type): Add field symtab.die. Add a tag
5275 to the union type of field symtab.
5276
5277 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
5278 'struct rtvec_def *', not 'struct rtvec_def'.
5279
5280 * function.h (original_arg_vector): Make a real rtvec.
5281 * function.c (ggc_mark_struct_function): Adjust.
5282 * integrate.c (expand_inline_function): Adjust.
5283
b655555e
JT
52842002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5285
5286 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
5287 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
5288 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
5289 (TARGET_VERSION_CPU): Define according to the
5290 default target.
5291 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
5292 TARGET_VERSION_CPU.
5293 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
5294 if TARGET_SHMEDIA64.
5295 (LINK_DEFAULT_CPU_EMUL): Define according to the
5296 default target.
5297 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
5298 (SUBTARGET_LINK_SPEC): Define.
5299 (LINK_SPEC): Use SH_LINK_SPEC.
5300 (ASM_SPEC): Remove.
5301 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
5302 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
5303 and TARGET_SHMEDIA64 which abort, for now.
5304 * config/sh/t-netbsd-sh5: New file.
5305 * config/sh/t-netbsd-sh5-32: New file.
5306 * config/sh/t-netbsd-sh5-64: New file.
5307
6d8fd7bb
RH
53082002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5309 Richard Henderson <rth@redhat.com>
5310
5311 * config/alpha/alpha.c (reg_or_const_int_operand): New.
5312 (some_operand, input_operand): Accept CONST_VECTOR.
5313 (alpha_extra_constraint): Add 'W'.
5314 (alpha_expand_zap_mask): New.
5315 (alpha_expand_builtin_vector_binop): New.
5316 (enum alpha_builtin): New.
5317 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
5318 (alpha_init_builtins, alpha_expand_builtin): New.
5319 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
5320 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
5321 (PREDICATE_CODES): Update.
5322 * config/alpha/alpha-protos.h: Update.
5323 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
5324 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
5325 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
5326 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
5327 (movv2si, movv2si_fix, movv2si_nofix): New.
5328 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
5329 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
5330 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
5331 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
5332 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
5333 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
5334 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
5335 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
5336 builtin_unpkbw, unpkbw): New.
5337 * doc/extend.texi (Alpha Built-in Functions): New.
5338
618939de
RH
53392002-06-03 Richard Henderson <rth@redhat.com>
5340
5341 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
5342 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
5343
73db7137
RH
53442002-06-03 Richard Henderson <rth@redhat.com>
5345
6933647a
RH
5346 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
5347
73db7137
RH
5348 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
5349 (const0_operand): New.
5350 (reg_or_fp0_operand, fp0_operand): Remove.
5351 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5352 * config/alpha/alpha-protos.h: Update.
5353 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
5354 and fp0_operand with reg_or_0_operand and const0_operand.
5355
a6f7c915
DN
53562002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5357
5358 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
5359
b2f02503
RS
53602002-06-03 Roger Sayle <roger@eyesopen.com>
5361
5362 * gcse.c (cprop_jump): Use single_set to get the pattern
5363 from the setcc argument.
5364
4fcc2065
GDR
53652002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
5366
33005162 5367 * diagnostic.h (diagnostic_count): Move from output_buffer to
4fcc2065
GDR
5368 diagnostic_context.
5369 (diagnostic_kind_count): Adjust definition.
5370
5204d665
JH
5371Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
5372
5373 * except.c (except.c): Do not rebuild CFG.
5374 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
5375 optimization.
5376
0478a14c
JH
5377Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
5378
5379 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
5380 * toplev.c: Include cfglahout.h
5381 * Makefile.in (toplev.c): Add dependnecy.
5382
30efe578
NB
53832002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
5384
5385 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
5386 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
5387 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
5388
a782515b
JT
53892002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5390
5391 * config/ns32k/netbsd.h: Update copyright years.
5392 (TARGET_OS_CPP_BUILTINS): Define.
5393 (CPP_PREDEFINES): Remove.
5394 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
5395 (TARGET_CPU_CPP_BUILTINS): Define.
5396
0fb7aeda
KH
53972002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5398
589005ff 5399 * emit-rtl.c: Fix formatting.
0fb7aeda
KH
5400 * errors.h: Likewise.
5401 * except.c: Likewise.
5402 * explow.c: Likewise.
5403 * expmed.c: Likewise.
5404 * expr.c: Likewise.
5405 * expr.h: Likewise.
5406
1c8ec18b
KH
54072002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5408
5409 * config/h8300/elf.h: Fix formatting.
5410 * config/h8300/rtems.h: Likewise.
5411
86cb04f6
JT
54122002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5413
5414 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
5415
5d83269d
TT
54162002-06-02 Tom Tromey <tromey@redhat.com>
5417
5418 * fixinc/fixincl.x: Rebuilt.
5419 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
5420
62f6a494
NB
54212002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5422
5423config/i370:
5424 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
5425 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
5426 * mvs.h: Similarly.
5427 * oe.h: Similarly.
5428
0acb0203
JH
5429Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
5430
5431 * final.c (final): Allow notes to not have computed addresses;
5432 kill no longer needed STACK_REGS ifdef.
5433
ada8d98a
RH
54342002-06-02 Richard Henderson <rth@redhat.com>
5435
5436 * gcse.c (bypass_conditional_jumps): Fix typo last change.
5437
ba4f7968
JH
5438Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5439
ada8d98a
RH
5440 * loop.c (emit_prefetch_instructions): Properly place the address
5441 computation.
ba4f7968
JH
5442
5443Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
5444
5445 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
5446 (set_block_for_insn): Turn into macro.
5447 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
5448 * cfglayout.c (insn_scopes): Kill.
5449 (scope_to_insns_initialize): Do not use insn_scopes.
5450 (scope_to_insns_finalize): Likewise.
5451 (duplicate_insn_chain): Likewise.
5452 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
5453 * cfgrtl.c (basic_block_for_insn): Kill.
5454 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
5455 (create_basic_block_structure): Use reorder_insns.
5456 (compute_bb_for_insn): Do not use basic_block_for_insn.
5457 (merge_blocks_nomove): Likewise.
5458 (update_bb_for_insn): Likewise.
5459 (verify_flow_info): Likewise.
5460 (set_block_for_insn): Kill.
5461 * combine.c (try_combine): Update gen_rtx_INSN call.
5462 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
5463 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
5464 scopes and BBs.
5465 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
5466 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
5467 Clear BB.
5468 (emit_insns_after): Simplify.
5469 (emit_copy_of_insn_after): Copy scope.
5470 * final.c (final_start_function): Lower scopes.
5471 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
5472 * integrate.c (copy_insn_list): Cope scopes.
5473 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
5474 * loop.c (loop_optimize): Do not care block notes.
5475 * print-rtl.c (print_rtx): Print BB.
5476 * recog.c (apply_change_group): Simplify.
5477 * rtl.c (copy_rtx): Handle 'B'.
5478 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
5479 * rtl.h (Field accessors): Update indexes.
5480 * sched-ebb.c (schedule_ebbs): Do not lower notes.
5481 * sched-rgn.c (schedule_insns): Likewise.
5482 * toplev.c (rest_of_compilation): Lower notes.
5483 * unroll.c (unroll_loop): Do not care scoping notes.
5484 (copy_loop_body): Copy scopes.
5485
537fc532
NB
54862002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5487
5488config/h8300:
5489 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
5490 SUBTARGET_SPEC.
5491 * rtems.h: Similarly.
5492 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
5493 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
5494 (TARGET_CPU_CPP_BUILTINS): Use.
5495
ab780373
RH
54962002-06-02 Richard Henderson <rth@redhat.com>
5497
5498 * alias.c: Include target.h.
5499 (mark_constant_function): Use targetm.binds_local_p instead
5500 of checking TREE_PUBLIC ourselves.
5501 * Makefile.in (alias.o): Add TARGET_H.
5502
b9305c66
NB
55032002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5504
5505 * c-lex.c: Update copyright and file description.
5506
0ac3e0c4
NB
55072002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5508
5509 * config/fr30/fr30.h: Update to new CPP macros.
5510
be3a1d46
NB
55112002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5512
5513 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
5514
ceeedfc1 55152002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
a8fd5963 5516 Zack Weinberg <zack@codesourcery.com>
ceeedfc1
NB
5517
5518 * c-common.c (c_common_init): Override cpplib's default
5519 warn_long_long setting.
5520 * c-lex.c (lex_number): Replace with interpret_integer,
5521 interpret_float, narrowest_unsigned_type and
5522 narrowest_signed_type, taking advantage of the new
5523 cpplib functionality.
5524 * cpperror.c (_cpp_begin_message): If a warning is turned
5525 into an error, avoid printing "warning:".
5526 * cppexp.c (cpp_num_sign_extend): New.
5527 * cppinit.c: Update comment.
5528 * cpplib.h (cpp_num_sign_extend): New.
5529 * tree.h: Update comment.
5530
27e511e0
GDR
55312002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
5532
5533 * diagnostic.h (struct diagnostic_context): Add new member
33005162 5534 internal_error.
27e511e0
GDR
5535 (internal_error_function): Remove declaration.
5536 * diagnostic.c (internal_error_function): Remove definition..
5537 (internal_error): Adjust use.
5538
818b6b7f
RH
55392002-06-02 Richard Henderson <rth@redhat.com>
5540
5541 * rtl.h (CC0_P): New.
5542 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
5543 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
5544 (bypass_block): Save old dest block for dump text.
5545 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
5546 Allow only true SET insns, not single_set.
5547
167143a0
GDR
55482002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
5549
5550 * diagnostic.c (diagnostic_finish): Rename to output_flush.
5551 (clear_disgnostic_info): Rename to output_clear_data. Use false
5552 instead of 0 for boolean value.
5553 Adjust function call throughout.
5554
eae4bc56
JH
5555Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
5556
5557 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
5558 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
5559
9eb404a0
NB
55602002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5561
5562 * d30v.h (CPP_PREDEFINES): Replace with
5563 (TARGET_CPU_CPP_BUILTINS): New.
5564
53e8b0b8
RS
55652002-06-02 Roger Sayle <roger@eyesopen.com>
5566
5567 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
5568
92e34b67
JH
5569Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
5570
5571 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
5572
e7e9d242
RH
55732002-06-02 Richard Henderson <rth@redhat.com>
5574
5575 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
5576
9af145ae
MM
55772002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
5578
5579 Support for C++ constructors/destructors.
5580 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
5581 instead of looping if main() returns.
5582 (asm_file_start): Output global symbols that cause .data and .bss
5583 initialization code to be linked in, unconditionally for now.
5584 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
5585 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
5586 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5587 (LIBSTDCXX): New.
5588 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
5589 (__tablejump__): New.
5590 (__do_copy_data, __do_clear_bss): New.
5591 (__do_global_ctors, __do_global_dtors): New.
5592 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
5593 _ctors, _dtors.
5594
0d66ad57
NB
55952002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5596
5597 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
5598 (CPP_SPEC, CPP_PREDEFINES): Kill.
5599 * c4x/rtems.h (CPP_PREDEFINES): Kill.
5600 (TARGET_OS_CPP_BUILTINS): New.
5601
5c856b23
JH
5602Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
5603
5604 * Makefile.in (tracer.o): New.
5605 * params.def (TRACER_*): New options.
5606 * rtl.h (tracer): Declare.
5607 * timevar.def (TV_TRACER): New.
5608 * toplev.c (dump_file_index): Add DFI_tracer.
5609 (dump_file_info): Add tracer.
5610 (flag_tracer): New.
5611 (lang_indepdenent_options): Add tracer.
5612 (rest_of_compilation): Call tracer.
5613 * tracer.c: New file.
5614 * invoke.texi (-ftracer): Document.
5615 (--param tracer-*): Document.
5616
e2405951
DB
56172002-06-01 Daniel Berlin <dberlin@dberlin.org>
5618
5619 * tree-inline.c (expand_call_inline): Make the statement
33005162 5620 expression we generate have a COMPOUND_STMT.
e2405951 5621
0e3f0221
RS
56222002-06-01 Roger Sayle <roger@eyesopen.com>
5623
5624 * gcse.c (cprop_cc0_jump): Function deleted.
5625 (cprop_jump): Take an additional argument which is the possibly
5626 NULL cc setting insn immediately before the conditional jump.
5627 When a MODE_CC set is present, substitute it into the JUMP_INSN
5628 before attempting the constant propagation.
5629 (cprop_insn): Recognize cc setters followed by conditional jumps
5630 as a special case. Use cprop_jump instead of cprop_cc0_jump.
5631 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
5632 (find_bypass_set): New function based upon find_avail_set used by
5633 cprop, but finds constant expressions available at the end of
5634 basic blocks.
5635 (bypass_block): New function. Given a basic block that begins
5636 with a conditional jump and multiple incoming edges, perform
5637 the jump bypass optimization.
5638 (bypass_conditional_jumps): New function. Call bypass_block with
5639 each suitable basic block in the CFG using a simple single pass.
5640
378393da
RS
56412002-06-01 Roger Sayle <roger@eyesopen.com>
5642
5643 * tree.c (real_minus_onep): New function to test for -1.0.
5644 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
5645
01c58f26
RS
56462002-06-01 Roger Sayle <roger@eyesopen.com>
5647
5648 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
5649 and "!p && !q" into "(p|q) == 0" under suitable conditions.
5650
91b12472
AJ
56512002-06-01 Andreas Jaeger <aj@suse.de>
5652
5653 * cppexp.c (cpp_classify_number): Cast precission to int for
5654 correct printf format.
5655
01e9ae86
MM
56562002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
5657
5658 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
5659 expected, but don't really exist: atmega83, atmega85, attiny10.
5660 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
5661 emulations for all devices.
5662 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
5663 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
5664
be1e06df
KH
56652002-06-01 Kazu Hirata <kazu@cs.umass.edu>
5666
5667 * config/h8300/h8300-protos.h: Add a prototype for
5668 h8300_shift_needs_scratch_p.
5669 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
5670 * config/h8300/h8300.h (OK_FOR_R): New.
5671 (OK_FOR_S): Likewise.
5672 (OK_FOR_T): Likewise.
5673 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
5674 * config/h8300/h8300.md (anonymous shift patterns): Use
5675 constraints R, S, and T.
5676
2ecfd709
ZD
5677Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5678
5679 * basic-block.h (struct basic_block_def): New field loop_father.
5680 (BB_VISITED): New flag.
5681 (struct loop): New field pred, removed field shared.
5682 (struct loops): New field parray.
5683 (LOOP_EXITS_DOMS): Removed.
5684 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
5685 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
5686 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
5687 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
5688 verify_loop_structure): Declare.
5689 * cfg.c (entry_exit_blocks): Initialize loop_father field.
5690 * cfganal.c (dfs_enumerate_from): New function.
5691 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
5692 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5693 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
5694 flow_loop_dump, flow_loops_dump, flow_loops_free,
5695 flow_loop_tree_node_add, flow_loop_level_compute,
5696 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
5697 flow_loop_outside_edge_p): Modified for new infrastructure.
5698 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
5699 redirect_edge_with_latch_update, flow_loop_free): New static functions.
5700 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
5701 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
5702 find_common_loop, verify_loop_structure, loop_latch_edge,
5703 loop_preheader_edge): New functions.
5704 (flow_loops_cfg_dump): Do not show dominators, as this information
5705 does not remain up to date long.
5706 (flow_loops_find): Store results in new format.
5707 * predict.c (propagate_freq, estimate_probability,
5708 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
5709 infrastructure.
5710
d9763749 57112002-06-01 Alan Lehotsky <apl@alum.mit.edu>
91b12472 5712
d9763749
AL
5713 * except.c (nothrow_function_p): Walk epilogue delay list
5714 checking the insn, not the chain for potential throws.
91b12472 5715
1e730c5c
ZW
57162002-05-31 Zack Weinberg <zack@codesourcery.com>
5717
5718 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
5719 (install): Refer to install-cpp directly.
5720 (uninstall-cpp): Folded into uninstall rule.
5721 * configure.in: Delete all code relating to --disable-cpp.
5722 * configure: Regenerate.
5723 * config/t-install-cpp: Delete.
5724
6f9b006d
RH
57252002-05-31 Richard Henderson <rth@redhat.com>
5726
5727 * configure.in (HAVE_AS_TLS): Add alpha tests.
5728 * configure: Rebuild.
5729 * config/alpha/alpha.c (TARGET_AS_TLS): New.
5730 (alpha_tls_size, alpha_tls_size_string): New.
5731 (overide_options): Set it. Always install machine_status hooks.
5732 (input_operand): Accept got tls predicates.
5733 (local_symbol_p): Merge into ...
5734 (local_symbolic_operand): ... here. Reject tls symbols.
5735 (global_symbolic_operand): Likewise.
5736 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
5737 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
5738 (tp16_symbolic_operand, tp32_symbolic_operand): New.
5739 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
5740 (alpha_encode_section_info): Handle TLS symbols.
5741 (alpha_strip_name_encoding): Likewise.
5742 (alpha_legitimate_address_p): Likewise.
5743 (alpha_legitimize_address): Likewise.
5744 (alpha_expand_mov): Early exit to avoid nop moves.
5745 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
5746 (alpha_init_machine_status, alpha_mark_machine_status,
5747 alpha_free_machine_status): Always define.
5748 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
5749 (print_operand, print_operand_address): Add TLS relocs.
5750 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
5751 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
5752 (TARGET_SWITCHES): Add -mtls-kernel.
5753 (alpha_tls_size, alpha_tls_size_string): New.
5754 (TARGET_OPTIONS): Add -mtls-size=.
5755 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
5756 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
5757 (ASM_OUTPUT_LABELREF): Skip %.
5758 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
5759 (PREDICATE_CODES): Update.
5760 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
5761 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
5762 UNSPEC_TP, UNSPECV_SET_TP): New.
5763 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
5764 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
5765 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
5766 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
5767 (call_value_osf_2_er): Accept anything as op4.
5768 * config/alpha/alpha-protos.h: Update.
5769 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
5770
39e5db1a
ZW
57712002-05-31 Zack Weinberg <zack@codesourcery.com>
5772
5773 * cppinit.c (append_include_chain): Always pay attention to
5774 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
5775 marker on argument.
5776
41077ce4
KH
57772002-05-31 Kazu Hirata <kazu@cs.umass.edu>
5778
5779 * target.h: Fix formatting.
5780 * timevar.h: Likewise.
5781 * tlink.c: Likewise.
5782 * toplev.c: Likewise.
5783 * toplev.h: Likewise.
5784 * tree.c: Likewise.
5785 * tree-dump.h: Likewise.
5786 * tree.h: Likewise.
5787 * tree-inline.h: Likewise.
5788 * unroll.c: Likewise.
5789 * unwind-dw2.c: Likewise.
5790 * unwind-dw2-fde.c: Likewise.
5791 * unwind-dw2-fde-glibc.c: Likewise.
5792 * unwind-dw2-fde.h: Likewise.
5793 * unwind.h: Likewise.
5794 * unwind-sjlj.c: Likewise.
5795 * varasm.c: Likewise.
5796 * varray.h: Likewise.
5797 * vmsdbg.h: Likewise.
5798 * vmsdbgout.c: Likewise.
5799 * xcoffout.h: Likewise.
5800
b2e426a0
IS
58012002-05-31 Igor Shevlyakov <igor@microunity.com>
5802
1e730c5c 5803 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
b2e426a0
IS
5804 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
5805
8b968bd1
MW
58062002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
5807
5808 * gcc.c (cpp_unique_options): Remove "-d" options.
5809 (cpp_debug_options): New spec string.
5810 (default_compilers): Use it.
5811 * objc/lang-specs.h: Likewise.
5812
5c35940c
NN
58132002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
5814
1e730c5c 5815 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
5c35940c
NN
5816 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
5817 * gcc/mklibgcc.in: Likewise.
5818 * gcc/config/arc/t-arc: Likewise.
5819 * gcc/configure.in: Likewise.
5820 * gcc/configure: Regenerate.
5821
8b496ceb
SS
58222002-05-31 Stan Shebs <shebs@apple.com>
5823 Turly O'Connor <turly@apple.com>
5824
5825 * c-decl.c (struct binding_level): Change int field n_incomplete
5826 to tree list incomplete_list.
5827 (clear_binding_level): Init field with NULL.
5828 (pushdecl): Add incomplete type to list.
5829 (mark_binding_level): Mark the incomplete list.
5830 (finish_struct): Scan the incomplete list for types instead
5831 of all decls in the current binding level.
5832
4722213d
JDA
58332002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
5834
5835 * pa.c (output_millicode_call): Add missing '%' characters.
5836 (output_call): Likewise.
5837
1086fcb1
DE
58382002-05-31 David Edelsohn <edelsohn@gnu.org>
5839
5840 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
5841 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
5842
afdfb380 58432002-05-31 Alan Lehotsky <apl@alum.mit.edu>
91b12472 5844
afdfb380
AL
5845 * varasm.c (mark_constant_pool): Walk epilogue delay list
5846 checking the insn, not the chain for potential constants.
1e730c5c 5847
f2df45f6
R
5848Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
5849
5850 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
5851
91ea38f9
JH
5852Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
5853
5854 * i386.c (classify_argument): Properly handle base types.
5855
5856 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
5857 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
5858 registers.
5859
10d1bb36
JH
5860Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
5861
5862 * gcse.c (gcse_emit_move_after): New.
5863 (pre_delete, hoist_store): Use it.
5864
5865 * reload1.c (emit_input_reload_insns): Use constrain_operands
5866 instead of constraint_accepts_reg_p to verify optimization.
5867 (constraint_accepts_reg_p): Kill
5868
5869 * reload1.c (reload_cse_delete_noop_set): Kill.
5870 (reload_cse_simplify): use delte_insn_and_edges.
5871
8a72fb76
ZD
58722002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5873
5874 * cfgloop.c (flow_loops_find): Initialize first and last fields
5875 correctly.
5876
a9da2e5b
NB
58772002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
5878
5879 * c-common.c (builtin_define_std): Correct logic.
5880
6248c4dd
JDA
58812002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
5882
5883 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
5884 (output_call): Likewise.
5885
d499455b
JDA
58862002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
5887
5888 * pa.c: Move output.h include after tree.h include.
5889 (pa_asm_output_mi_thunk): Constify identifier lab.
5890
2eb2901a
JT
58912002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
5892
5893 * config/ns32k/ns32k.h: Define named constants for the
5894 bits in target_flags and use them.
5895 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
5896
806bf413
JDA
58972002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
5898
5899 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
5900 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
5901 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
5902 default scheduling model.
5903 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
5904 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
5905 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
5906 * doc/install.texi (hppa*-*-*): Document default scheduling.
5907
6d8d2bbc
JDA
59082002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
5909
5910 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
5911
c8eb9785
JT
59122002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
5913
5914 * config.gcc (ns32k-*-netbsd*): Set tm_file to
5915 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
5916 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
5917 netbsd.h, or netbsd-aout.h.
5918
6e2e5b6a
JT
59192002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
5920
5921 * longlong.h (count_trailing_zeros): Add missing \, and clean up
5922 whitespace in __ns32000__ case.
5923
00182e1e
AH
59242002-05-31 Aldy Hernandez <aldyh@redhat.com>
5925
1e730c5c
ZW
5926 * expr.c (expand_expr): Output partially zeroed out vectors with
5927 output_constant_def.
00182e1e 5928
b4eb03fe
JT
59292002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5930
5931 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
5932 (sh-*-netbsdelf*)
5933 (shl*-*-netbsdelf*): New targets.
5934 * config/sh/netbsd-elf.h: New file.
8fd0df91 5935 * config/sh/t-netbsd: New file.
b4eb03fe 5936
261376e7
RH
59372002-05-30 Richard Henderson <rth@redhat.com>
5938 Eric Botcazou <ebotcazou@multimania.com>
5939
5940 PR optimization/6822
5941 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
5942 to unsigned int for op1 comparisons. Use gen_int_mode.
5943
ce60bf25
EB
59442002-05-30 Eric Botcazou <ebotcazou@multimania.com>
5945
5946 * expmed.c (const_mult_add_overflow_p): New.
5947 * expr.h: Declare it.
5948 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
5949 Don't eliminate the biv if the giv has a constant multiplier and
5950 the rhs argument of the comparison does satisfy the predicate.
5951 Use expand_mult_add to compute the replacement constant.
5952
d18b1ed8
OS
59532002-05-30 Osku Salerma <osku@iki.fi>
5954
5955 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
5956 (c_common_get_alias_set): Handle it.
5957 * doc/extend.texi: Document it.
5958
a7943381
RH
59592002-05-30 Richard Henderson <rth@redhat.com>
5960
5961 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
5962 * toplev.c (process_options): Don't check it.
5963 * doc/tm.texi: Don't document it.
5964 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
5965 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
5966 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
5967 frame pointer optimization if current_function_profile.
5968
e11e816e
KH
59692002-05-30 Kazu Hirata <kazu@cs.umass.edu>
5970
5971 * langhooks.c: Fix formatting.
5972 * langhooks.h: Likewise.
5973 * lcm.c: Likewise.
5974 * libgcc2.c: Likewise.
5975 * lists.c: Likewise.
5976 * local-alloc.c: Likewise.
5977 * loop.c: Likewise.
5978 * loop.h: Likewise.
5979
59802002-05-30 Marc Espie <espie@openbsd.org>
5981
5982 * config.gcc (sparc64-*-openbsd*): New.
5983 * config/sparc/openbsd1-64.h: New.
5984 * config/sparc/openbsd64.h: New.
91f0fcee 5985
d35dfca9
JL
59862002-05-30 Jeff Law <law@redhat.com>
5987
5988 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
5989 a dead insn with a REG_RETVAL note when the entire libcall is not
5990 dead and remove the associated REG_LIBCALL note at the same time.
5991
81b40b72
R
5992Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
5993
5994 * lcm.c (output.h): #include.
5995 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
5996 as an ordinary block.
5997 (optimize_mode_switching): Don't pretend that the exit block is
5998 an ordinary block, or handle sucessors of entry block specially.
5999 Instead, split edges from entry block and to exit block, and
6000 put a computing definition on the thus gained post-entry-block,
6001 and a need on the pre-exit-block.
6002
c8ea9a0f
JH
6003Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
6004
6005 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
6006 * rtl.texi: Document 'B'
6007
348f0869
JT
60082002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6009
6010 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
6011 at run-time.
6012 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
6013
9a171fcd
AH
60142002-05-30 Aldy Hernandez <aldyh@redhat.com>
6015
1e730c5c
ZW
6016 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
6017 const0_rtx instead of NULL_RTX when in error.
6018 (altivec_expand_abs_builtin): Same.
6019 (rs6000_expand_binop_builtin): Same.
6020 (altivec_expand_predicate_builtin): Same.
6021 (altivec_expand_stv_builtin): Same.
6022 (rs6000_expand_ternop_builtin): Same.
6023 (altivec_expand_builtin): Same.
9a171fcd 6024
62a35e60
DM
60252002-05-29 David S. Miller <davem@redhat.com>
6026
6027 * rtl.h (clear_emit_caches): Delete.
6028 * integrate.c (output_inline_function): Don't call it.
6029 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
6030 (clear_emit_caches): Delete definition.
6031 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
6032
cbc39da8
HPN
60332002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
6034
6035 * config/mmix/mmix.c: Include real.h.
6036 (mmix_constant_address_p): Remove redundant test before switch.
6037
50efa737
JT
60382002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6039
6040 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
6041 only if not already defined.
6042
2e760b15
KH
60432002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6044
6045 * config/h8300/h8300-protos.h: Remove prototypes for
6046 ok_for_bclr and small_power_of_two.
6047 * config/h8300/h8300.c (small_power_of_two): Remove.
6048 (ok_for_blcr): Likewise.
6049 (fix_bit_operand): Make WHAT deal with an integer instead of a
6050 constraint character.
6051 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
6052 (CONST_OK_FOR_P): Likewise.
6053 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
6054 CONST_OK_FOR_P any more.
6055 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
6056 of fix_bit_operand.
6057 (iorqi3): Likewise.
6058 (xorqi3): Likewise.
6059
e1c293ae
JT
60602002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6061
6062 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6063 (CPP_PREDEFINES): Make sure this is undefined.
6064 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
6065 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
6066 or -U__MIPSEB__ before defining one or the other. Instead,
6067 use %(subtarget_endian_default) if neither -EB nor -EL are
6068 specified.
6069 (SUBTARGET_EXTRA_SPECS): Define.
6070 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
6071 %(netbsd_cpp_spec).
6072
fde6d81f
HPN
60732002-05-29 Hans-Peter Nilsson <hp@axis.com>
6074
6075 * doc/md.texi (Patterns): Note pattern condition pitfall
6076 for unnamed insn.
6077
92898235
AH
60782002-05-29 Aldy Hernandez <aldyh@redhat.com>
6079
1e730c5c
ZW
6080 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
6081 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
6082 ternary operations from here...
6083 (rs6000_expand_builtin): ...to here.
6084 New argument expandedp.
6085 Change all instances of altivec_expand_binop_builtin to
6086 rs6000_expand_binop_builtin.
6087 (altivec_expand_unop_builtin): Rename to
6088 rs6000_expand_unop_builtin.
6089 (altivec_expand_binop_builtin): Rename to
6090 rs6000_expand_binop_builtin.
6091 (altivec_expand_ternop_builtin): Rename to
6092 rs6000_expand_ternop_builtin.
92898235 6093
67adf6a9
RH
60942002-05-29 Richard Henderson <rth@redhat.com>
6095
6096 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
6097 (TARGET_BI_ARCH): Likewise.
6098 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
6099 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
6100 (TARGET_64BIT_DEFAULT): Default to 0.
6101 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
6102
145aacc2
RH
61032002-05-29 Richard Henderson <rth@redhat.com>
6104
6105 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
6106 (get_pc_thunk_name): New.
6107 (output_set_got): Use it.
6108 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
6109 into linkonce sections.
6110
a5b49bbc
JT
61112002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6112
6113 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6114 (CPP_PREDEFINES): Make sure this is undefined.
6115 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
6116 (CPP_SUBTARGET_SPEC): Don't provide different versions for
6117 default-32 and default-64. Just always use %(netbsd_cpp_spec).
6118 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
6119 cpp_subtarget_spec64. Add netbsd_cpp_spec.
6120 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6121 (CPP_PREDEFINES): Make sure this is undefined.
6122 (SUBTARGET_EXTRA_SPECS): Define.
6123 (CPP_SPEC): Use %(netbsd_cpp_spec).
6124
54374491
JL
61252002-05-29 Jeff Law <law@redhat.com>
6126
ae02eae8
JL
6127 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
6128
b862c2aa
JL
6129 * flow.c (propagate_one_insn): Do not remove a dead insn if it
6130 contains a REG_RETVAL note.
6131
d10791ba
JL
6132 * haifa-sched (sched_analyze): Remove another useless clearing
6133 of SCHED_GROUP_P I missed yesterday.
6134
54374491
JL
6135 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
6136 * pa.c (pa_asm_output_mi_thunk): New function.
6137 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
6138
92c392e6
NB
61392002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6140 Marek Michalkiewicz <marekm@amelek.gda.pl>
6141
6142 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
6143 (avr_asm_only_p): Make non-static.
6144 (enum avr_arch): Remove.
6145 (avr_arch_types): New.
6146 (avr_mcu_types): Update.
6147 (avr_override_options): Use avr_arch_types table instead of switch.
6148 * avr.h (CPP_PREDEFINES): Die.
6149 (avr_base_arch_macro, avr_extra_arch_macro): New.
6150 (TARGET_CPU_CPP_BUILTINS): New.
6151 (CPP_SPEC, EXTRA_SPECS): Simplify.
6152 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
6153 CPP_AVR5_SPEC): Die.
6154
4528173e
JT
61552002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6156
6157 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6158 NETBSD_OS_CPP_BUILTINS_AOUT.
6159 (SUBTARGET_EXTRA_SPECS): Define.
6160 (CPP_SPEC): Use %(netbsd_cpp_spec).
6161
bd09bdeb
RH
61622002-05-29 Richard Henderson <rth@redhat.com>
6163
6164 * config/i386/i386.c (ix86_output_function_epilogue): New.
6165 (TARGET_ASM_FUNCTION_EPILOGUE): New.
6166 (pic_label_name): Remove.
6167 (pic_labels_used): New.
6168 (ix86_asm_file_end): Emit one pc load stub for each register used.
6169 (output_set_got): Generate deep pc load to any register.
6170 (ix86_select_alt_pic_regnum): New.
6171 (ix86_save_reg): Don't save pic register if we can find a valid
6172 call-clobbered replacement.
6173 (ix86_expand_prologue): If we found a valid replacement, renumber
6174 pic_offset_table_rtx.
6175 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
6176 pic_offset_table_rtx after reload.
6177 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
6178 * config/i386/i386.md (set_got): Make insn, not expander.
6179 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
6180
002ff5bc
RH
61812002-05-29 Richard Henderson <rth@redhat.com>
6182
6183 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
6184 alignment for alloca.
6185
edfe8595
RH
61862002-05-29 Richard Henderson <rth@redhat.com>
6187
6188 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
6189 (print_operand_address): Only add rip for symbolic addresses
6190 for which we do not have another relocation type.
6191
cd7714ee
JT
61922002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6193
6194 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6195 (EXTRA_SPECS): Add netbsd_cpp_spec.
6196 (CPP_SPEC): Use %(netbsd_cpp_spec).
6197 (CPP_PREDEFINES): Remove.
6198 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6199 (EXTRA_SPECS): Define.
6200 (CPP_SPEC): Use %(netbsd_cpp_spec).
6201 (CPP_PREDEFINES): Remove.
6202
8dc901de
NB
62032002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6204
6205 PR preprocessor/6844
6206 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
6207 NUL.
6208
2274b31a
EC
62092002-05-29 Eric Christopher <echristo@redhat.com>
6210
6211 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
6212 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
6213
5c7666c1
NC
62142002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
6215
6216 * config/fr30/fr30.md: Remove previous restriction on splits.
6217 Enforce conformance through gen_lowpart and cont_int_operand.
1e730c5c 6218 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
5c7666c1
NC
6219 as the assembler does not support ".bss".
6220
45beef47
JT
62212002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6222
6223 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6224 (CPP_PREDEFINES): Remove.
6225 (SUBTARGET_EXTRA_SPECS): Define.
6226 (CPP_SPEC): Use %(netbsd_cpp_spec).
6227 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6228 (CPP_PREDEFINES): Remove.
6229 (SUBTARGET_EXTRA_SPECS): Define.
6230 (CPP_SPEC): Use %(netbsd_cpp_spec).
6231 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
6232 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
6233 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
6234 Add netbsd_cpp_spec.
6235 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
6236
cd7ab83f
NB
62372002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6238 Zack Weinberg <zack@codesourcery.com>
6239
6240 * cppexp.c (cpp_num): Move to cpplib.h.
6241 (CPP_ERROR): Remove.
6242 (interpret_float_suffix, interpret_int_suffix): New.
6243 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
6244 (cpp_classify_number, cpp_interpret_integer): New.
6245 (interpret_number): Remove.
6246 (eval_token): Update to use new routines.
6247 * cpphash.h (cpp_num_part): Move to cpplib.h.
6248 * cppinit.c (cpp_post_options): Set warn_long_long.
6249 * cpplib.h (struct cpp_options): Add warn_long_long.
6250 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
6251 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
6252 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
6253 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
6254 cpp_interpret_integer): New.
6255
61a8515c
JS
62562002-05-29 Joel Sherrill <joel@OARcorp.com>
6257
6258 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
6259
53a428b5
JT
62602002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6261
6262 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2274b31a
EC
6263 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
6264 (CPP_SUBTARGET_SPEC): Define.
6265 (SUBTARGET_EXTRA_SPECS): Define.
53a428b5
JT
6266 (CPP_SPEC): Remove.
6267
45b1f7c7
CL
62682002-05-29 Chris Lattner <sabre@nondot.org>
6269
1e730c5c
ZW
6270 * ssa.c (rename_insn_1): Rename uses of undefined registers to
6271 prevent confusion if/when the register is defined.
45b1f7c7 6272
049746c2
HPN
62732002-05-29 Hans-Peter Nilsson <hp@axis.com>
6274
6275 PR target/6838
6276 * config/cris/cris.md: Fix typos and thinkos in comments.
6277 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
6278 second alternative.
6279 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
6280 ("*mov_sideqi_mem"): Similar, but for operand 3.
6281 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
6282 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
6283 Remove spurious mode specifier on operand 2.
6284
4d4d89e2
KH
62852002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6286
6287 * config/h8300/h8300-protos.h: Remove the prototype for
6288 o_operand.
6289 Add prototypes for single_one_operand and single_zero_operand.
6290 * config/h8300/h8300.c (o_operand): Remove.
6291 (single_one_operand): New.
6292 (single_zero_operand): Likewise.
6293 (print_operand): For 'V' operand, and the operand with 0xff.
6294 For 'V' and 'W' operands, do not and the bit position with 7.
6295 * config/h8300/h8300.md (various anonymous patterns): Replace
6296 use of exact_log2 with single_one_operand/single_zero_operand.
6297
abd6ddec
UW
62982002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6299
6300 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
6301
da06d85a
UW
63022002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6303
6304 * config/s390/s390.c (legitimate_pic_operand_p): Do not
6305 accept symbolic LARL operands.
2274b31a 6306 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
da06d85a 6307 epilogue insns.
2274b31a 6308
f8766020
HP
63092002-05-29 Hartmut Penner <hpenner@de.ibm.com>
6310
6311 * config/s390/s390.md (cmpstr_64/31): Mark whole
2274b31a 6312 input registers as used.
f8766020 6313
66edd3b4
RH
63142002-05-28 Richard Henderson <rth@redhat.com>
6315
6316 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
6317 not current_function_uses_pic_offset_table and
6318 current_function_uses_const_pool; examine current_function_profile.
6319 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
6320 input to blockage if needed.
6321 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
6322 (legitimize_pic_address): Likewise. Set regs_ever_live for
6323 pic_offset_table_rtx when invoked during reload.
6324 * config/i386/i386.h (FINALIZE_PIC): Remove.
6325 * config/i386/i386.md (tablejump): Reformat. Do not set
6326 current_function_uses_pic_offset_table.
6327 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
6328 (blockage): Accept anything as operand 0.
6329
52f4fff6
JT
63302002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6331
6332 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
6333 common CPP built-ins for all NetBSD a.out targets.
6334 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
6335 common CPP built-ins for all NetBSD ELF targets.
6336 * config/netbsd.h: Add missing notice.
6337 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
6338 for all NetBSD targets.
6339 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
6340 for all NetBSD targets using an LP64 code model.
6341 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
6342 NetBSD targets.
6343
e0e577a2
RH
63442002-05-28 Richard Henderson <rth@redhat.com>
6345
6346 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
6347 update if UPDATE_LIFE_LOCAL.
6348
63492002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
62526ec3
TM
6350
6351 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
6352
f1a58d92 6353Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1e730c5c 6354 Jason R. Thorpe <thorpej@wasabisystems.com>
f1a58d92
R
6355
6356 config/sh reorganization to factor out endianness and coff:
6357
6358 * config/sh/little.h: New file.
1e730c5c
ZW
6359 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
6360 defined, define to 0 to select big-endian.
f1a58d92 6361 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
1e730c5c
ZW
6362 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6363 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6364 * config/sh/t-be: New file.
6365 * config/sh/t-le: New file.
f1a58d92
R
6366
6367 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
6368 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
6369 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
6370 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
6371 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6372 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6373 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
6374 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
6375 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
6376 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
6377 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
6378 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
6379 (LINK_SPEC): Define to SH_LINK_SPEC.
6380 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
6381 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
6382 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6383 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
6384 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
6385 * config/sh/coff.h: New file.
6386 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
6387 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6388 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
6389 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
6390 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
6391 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
6392 (PTRDIFF_TYPE): Likewise.
6393 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
6394 (CPP_PREDEFINES): Don't define.
6395 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6396 (LINK_SPEC): Define to SH_LINK_SPEC.
6397 (LINK_EMUL_PREFIX): Redefine.
6398 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
6399 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
6400 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
6401 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
6402 (TARGET_OS_CPP_BUILTINS): Define.
6403 (TARGET_DEFAULT): Redefine.
6404 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6405 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
6406 (LINK_SPEC): Don't redefine.
6407 (LINK_DEFAULT_CPU_EMUL): Redefine.
6408 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6409 * sh.c (sh_asm_named_section): Don't declare / define.
6410 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
6411 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
6412 (sh64-*-elf* tm_file): Likewise.
6413 (sh-*-rtemself* tm_file): Likewise.
6414 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
6415 (sh-*-linux* tmake_file): Add sh/t-le.
6416 (sh-*-rtems* tm_file): Add sh/coff.h
6417 (sh-*-* tm_file): Likewise.
6418
6419Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6420
6421 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
6422 CONSTANT_POOL_ADDRESS_P.
6423
6424 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
6425
d10791ba 64262002-05-28 David Edelsohn <edelsohn@gnu.org>
33a3dfc4
DE
6427 Jeff Law <law@redhat.com>
6428
64de6c0a
DE
6429 * optabs.c (expand_binop): Fix nwords sign warnings.
6430 generate pseudo for add_optab.
6431
33a3dfc4
DE
6432 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
6433 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
6434
972957ba 64352002-05-28 Marc Espie <espie@openbsd.org>
33a3dfc4 6436
2274b31a 6437 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
972957ba
ME
6438 inherited from gas.h.
6439 (ASM_QUAD): Undef. OpenBSD does not support it.
6440
cc92b8ab
DS
64412002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
6442
6443 * doc/install.texi (binaries): Change mingw binaries
6444 link to www.mingw.org.
6445
f8088d55
ZD
64462002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6447
6448 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
6449
0b7ae565
RH
64502002-05-28 Richard Henderson <rth@redhat.com>
6451
6452 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
6453 bottom alignment for leaf functions.
6454
16069d69
ZW
64552002-05-28 Zack Weinberg <zack@codesourcery.com>
6456
6457 * config/pa/milli32.S, config/pa/lib1funcs.asm,
6458 config/sparc/sol2-g1.asm: Delete unused files.
6459
04653686
RH
64602002-05-28 Richard Henderson <rth@redhat.com>
6461
6462 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
6463
f3ea5f6a
RH
6464 * flow.c (calculate_global_regs_live): Rename call_used to
6465 invalidated_by_call. Initialize from regs_invalidated_by_call
6466 instead of call_used_regs.
6467
923c7cdf
RH
6468 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
6469 DECL_EXTERNAL.
6470
11ad4784
ZW
64712002-05-28 Zack Weinberg <zack@codesourcery.com>
6472
8abbd76a
ZW
6473 * tree.h: Don't include real.h.
6474 Forward-declare struct realvaluetype.
11ad4784
ZW
6475 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
6476 contain it.
6477 (TREE_REAL_CST_PTR): New accessor.
6478 (TREE_REAL_CST): Update.
6479 * real.h: Include machmode.h.
2274b31a 6480 (realvaluetype): Make it struct realvaluetype, not a typedef.
11ad4784
ZW
6481 (build_real): Prototype here.
6482
6483 * tree.c: Include real.h.
2274b31a
EC
6484 (build_real): Allocate the REAL_VALUE_TYPE as a separate
6485 object in GC memory, set TREE_REAL_CST_PTR to point to it.
11ad4784
ZW
6486 (build_real_from_int_cst): Use build_real.
6487 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
6488 REAL_CST.
6489
6490 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
6491 fold-const.c, print-tree.c, real.c: Include real.h.
6492 * Makefile.in: Update dependency lists.
6493
bf77398c
ZD
64942002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6495
6496 * basic-block.h (last_basic_block): Declare.
6497 (expunge_block_nocompact): Declaration removed.
6498 (compact_blocks): Declare.
6499 * cfg.c (last_basic_block): New variable.
6500 (expunge_block_nocompact): Removed.
6501 (expunge_block): Do not compact basic blocks.
6502 (compact_blocks): New.
6503 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
6504 longer change.
6505 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
6506 last_basic_block.
6507 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
6508 real positions of blocks.
6509 (delete_unreachable_blocks): Simplified -- quadratic behavior now
6510 cannot occur.
6511 (cleanup_cfg): Compact blocks.
6512 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
6513 basic_block_info varray.
6514 (flow_delete_block): Comment update.
6515 (back_edge_of_syntactic_loop_p): Modify position check code.
6516 (verify_flow_info): Update checking.
6517 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
6518 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6519 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
6520 indices no longer change.
6521 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
6522 last_basic_block.
6523 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
6524 * profile.c (branch_prob): Compact blocks.
6525 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
6526 last_basic_block.
6527
ae12a094
KH
65282002-05-28 Kazu Hirata <kazu@cs.umass.edu>
6529
6530 * config/h8300/h8300.md (two anonymous patterns): New.
6531
c6172f14
DM
65322002-05-28 David S. Miller <davem@redhat.com>
6533
6534 * config/sparc/sparc.md (cpu): Tidy.
6535 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
6536 'trap'.
6537 (in_call_delay): Delete reference to 'return' type.
6538 (eligible_for_return_delay, in_return_delay, define_delay
6539 referencing those): Delete.
6540 (rest of file): Use new type attributes as appropriate.
6541 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
6542 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
6543 * config/sparc/ultra1_2.md (us1_single): New reservation.
6544 (us1_ialuX): Likewise.
6545 * config/sparc/ultra3.md (us3_single): Likewise.
6546 (us3_ialuX): Likewise.
6547 (us3_imul, us3_idiv): Tweak.
2274b31a 6548
34a6c2ec
RH
65492002-05-28 Richard Henderson <rth@redhat.com>
6550
6551 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
6552 STRING_CST.
6553
9c075570
RH
65542002-05-28 Richard Henderson <rth@redhat.com>
6555
6556 * config.gcc: Obsolete mn10200.
6557
359b0bec
NB
65582002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
6559
6560 * cppexp.c (interpret_number): Optimize for single-digit
6561 and less-than-half-precision cases.
6562 (num_trim, num_positive, num_div_op): Cast constants.
6563
4075db8f
BT
65642002-05-27 Bo Thorsen <bo@suse.de>
6565
6566 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
6567 3.1 branch. The file was made by Jakub Jelinek.
6568 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
6569 support so multilib doesn't break. And don't define this at all
6570 when -Dinhibit_libc is used.
6571 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
6572 * config/i386/t-linux64: Implement full multilib support. Patch
6573 originally done by Andreas Jaeger and Jakub Jelinek.
6574
39f2f3c8
RS
65752002-05-27 Roger Sayle <roger@eyesopen.com>
6576
6577 * c-common.c: Add support for __attribute__((nothrow)) to specify
6578 that a function cannot throw an exception (using TREE_NOTHROW).
6579 (handle_nothrow_attribute): New function to process this attribute.
6580
6581 * doc/extend.texi: Document the new nothrow function attribute.
6582
d51b0053
L
65832002-05-27 H.J. Lu (hjl@gnu.org)
6584
6585 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
6586 (num_positive): Likewise.
6587 (num_div_op): Likewise.
6588
630363b4
NB
65892002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
6590
6591 * c-common.c (c_common_init): Always use intmax_t.
6592
d94cde01
NB
65932002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
6594
6595 * c-common.c (c_common_init): Use intmax_t for now.
6596
57f851a3
AH
65972002-05-24 Andrew Haley <aph@redhat.com>
6598
6599 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
6600 if T is a boolean type.
6601
d55bc081
ZD
66022002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6603
6604 * basic-block.h (last_basic_block): Defined as synonym for
6605 n_basic_blocks.
6606 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
6607 flow_depth_first_order_compute, flow_preorder_transversal_compute,
6608 flow_dfs_compute_reverse_init): Replaced relevant occurences of
6609 n_basic_blocks with last_basic_block.
6610 * cfgbuild.c (make_edges): Likewise.
6611 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
6612 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
6613 * combine.c (combine_instructions): Likewise.
6614 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
6615 iterative_dataflow_bitmap): Likewise.
6616 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6617 calc_idoms, idoms_to_doms): Likewise.
6618 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
6619 Likewise.
6620 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
6621 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
6622 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
6623 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
6624 delete_null_pointer_checks, compute_code_hoist_vbeinout,
6625 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6626 compute_store_table, build_store_vectors): Likewise.
6627 * haifa-sched.c (sched_init): Likewise.
6628 * ifcvt.c (if_convert): Likewise.
6629 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
6630 pre_edge_lcm, compute_available, compute_nearerout,
6631 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
6632 Likewise.
6633 * predict.c (estimate_probability, process_note_prediction,
6634 note_prediction_to_br_prob): Likewise.
6635 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
6636 * recog.c (split_all_insns, peephole2_optimize): Likewise.
6637 * regrename.c (copyprop_hardreg_forward): Likewise.
6638 * resource.c (init_resource_info): Likewise.
6639 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
6640 init_regions, schedule_insns): Likewise.
6641 * ssa-ccp.c (ssa_const_prop): Likewise.
6642 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6643 * ssa.c (compute_dominance_frontiers,
6644 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
6645
6646 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
6647 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
6648 sizes consistently.
6649
71d2c5bd
JH
6650Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6651
6652 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
6653 new.
6654 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
6655 hoist_insn_after, hoist_insn_to_edge): New.
6656
5149f070
JH
6657Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
6658
6659 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
6660 (PROP_FINAL): Include.
6661 * flow.c (life_analysis, update_life_info,
6662 init_propagate_block_info, mark_set_1, mark_used_rgs):
6663 Support SCAN_DEAD_STORE.
6664
c9220e3a
NB
66652002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
6666
6667 * c-common.c (c_common_init): Set CPP arithmetic precision.
6668 * cppexp.c (cpp_num_part): Move typedef ...
6669 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
6670 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
6671 (sanity_checks): Update.
6672
e34a3d31
GK
66732002-05-26 Geoffrey Keating <geoffk@redhat.com>
6674
6675 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
6676 (mkheaders): New rule.
6677 (install-mkheaders): New rule.
6678 * configure.in (all_outputs): Add mkheaders.
6679 * configure: Regenerate.
6680 * mkheaders.in: New file.
6681
9059e33c
JJ
66822002-05-26 Jakub Jelinek <jakub@redhat.com>
6683
6684 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
6685
291cc0fe
AJ
66862002-05-26 Andreas Jaeger <aj@suse.de>
6687
6688 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
6689
91318908
NB
66902002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
6691
6692 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
6693 right_shift): Remove.
6694 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
6695 HIGH_PART): New.
6696 (struct op): Use cpp_num.
6697 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
6698 num_part_mul, num_unary_op, num_binary_op, num_negate,
6699 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
6700 num_div_op, num_lshift, num_rshift, append_digit): New.
6701 (interpret_number, parse_defined, eval_token, reduce): Update
6702 for two-integer arithmetic.
6703 (binary_handler): New typedef.
6704 (optab): Update.
6705 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
6706 (_cpp_parse_expr, reduce): Update to handle two-integers.
6707 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
6708
331ca350
MM
67092002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
6710
6711 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
6712 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
6713 branch insn into account, do not assume 1.
6714 (avr_out_sbxx_branch): New function. Optimize cases of skipping
6715 over single word insn. Handle upper half of I/O space too.
6716 * config/avr/avr.md (*sbrx_branch): Use it.
6717 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
6718 (*sbix_branch, *sbix_branch_bit7): Likewise.
6719 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
6720 Use RTL peepholes to optimize register operand sign tests.
6721
bcb6a2be
MM
67222002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
6723
6724 * config/avr/avr.c (avr_asm_only_p): New variable.
6725 (avr_override_options): Set it here if AVR1.
6726 (asm_file_start): Test it here, report an error if set.
6727
ca7fd9cd
KH
67282002-05-26 Kazu Hirata <kazu@cs.umass.edu>
6729
6730 * alias.c: Fix formatting.
6731 * attribs.c: Likewise.
6732 * bb-reorder.c: Likewise.
6733 * bitmap.c: Likewise.
6734 * bitmap.h: Likewise.
6735 * builtins.c: Likewise.
6736
a65dc37d
JH
6737Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
6738
6739 * reload.c (find_valid_class): Accept new argument DEST,
6740 choose class accordingly.
6741 (push_reload): Update callers.
6742
9b89393b
AJ
67432002-05-26 Andreas Jaeger <aj@suse.de>
6744
6745 * combine.c (combine_instructions): Do not indent #if for
6746 traditional C.
6747
b53bb376
RH
67482002-05-25 Richard Henderson <rth@redhat.com>
6749
6750 * c-pragma.c (apply_pragma_weak): Convert value identifier to
6751 string for decl_attributes.
6752 (handle_pragma_weak): Call assemble_alias if we're modifying
6753 an existing decl.
6754
e133041b
RH
67552002-05-25 Richard Henderson <rth@redhat.com>
6756
6757 PR target/6788
6758 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
6759 using rtl instead of fprintf.
6760 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
6761 * config/sparc/sparc-protos.h: Update.
6762
81a75f0f
NB
67632002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
6764
6765 * Makefile.in (C_COMMON_H): Fix.
6766 Update other targets.
6767 * c-common.c: Don't include c-lex.h.
6768 (builtin_define_with_value): Make static and prototype.
6769 (builtin_define_std): Move from c-lex.h.
6770 * c-common.h (init_c_lex): Move from c-lex.h.
6771 * c-decl.c: Don't include c-lex.h.
6772 (make_pointer_declarator): Move from c-parse.in.
6773 * c-lex.c: Don't include c-lex.h.
6774 * c-lex.h: Remove.
6775 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
6776 (make_pointer_declarator): Move to c-decl.c.
6777 * c-pragma.c: Don't include c-lex.h.
6778 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
6779 * c-tree.h (make_pointer_declarator): New.
6780doc:
6781 * passes.texi, tm.texi: Update.
6782objc:
6783 * Make-lang.in: Update and correct.
6784 * objc-act.c: Don't include c-lex.h or cpplib.h.
6785treelang:
6786 * treetree.c: Don't include c-lex.h.
6787config:
6788 * darwin-c.c: Don't include c-lex.h.
6789 * c4x/c4x-c.c: Don't include c-lex.h.
6790 * c4x/t-c4x: Update.
6791 * i370/i370-c.c: Don't include c-lex.h.
6792 * i370/t-i370: Update.
6793 * i960/i960-c.c: Don't include c-lex.h.
6794 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
6795 * i960/t-960bare: Update.
6796 * i960/t-vxworks: Update.
6797 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
6798 * rs6000/t-darwin: Update.
6799 * rs6000/t-rs6000-c-rule: Update.
6800 * v850/v850-c.c: Don't include c-lex.h.
6801 * v850/v850.c: Don't include c-lex.h or cpplib.h.
6802
6803
04d2be8e
KH
68042002-05-25 Kazu Hirata <kazu@cs.umass.edu>
6805
6806 * tree.def: Fix typos.
6807 * doc/install.texi: Likewise.
6808
7b6e506e
RH
68092002-05-25 Richard Henderson <rth@redhat.com>
6810
6811 * configure.in (HAVE_AS_TLS): Add ia64 test.
6812 * configure: Rebuild.
6813 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
6814 (override_options): Set it.
6815 (TARGET_HAVE_TLS): New.
6816 (sdata_symbolic_operand): Look for 's'.
6817 (tls_symbolic_operand): New.
6818 (ia64_expand_load_address): Abort for tls symbols.
6819 (gen_tls_get_addr): New.
6820 (gen_thread_pointer): New.
6821 (ia64_expand_move): Split out from movdi. Handle tls symbols.
6822 (rtx_needs_barrier): Add new unspecs.
6823 (ia64_encode_section_info): Handle tls symbols.
6824 (ia64_strip_name_encoding): Strip two encoding chars.
6825 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
6826 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
6827 (TARGET_OPTIONS): Add tls-size.
6828 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
6829 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
6830 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
6831 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
6832 (movsf, movdf): Likewise.
6833 (movdi_symbolic): Use match_scratch. Don't split if we won't
6834 have a scratch availiable.
6835 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
6836 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
6837 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
6838 * config/ia64/ia64-protos.h: Update.
6839 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
6840 sdata_symbolic_operand.
6841 (ASM_OUTPUT_LABELREF): Strip two characters.
6842
8c1d52a3
KH
68432002-05-25 Kazu Hirata <kazu@cs.umass.edu>
6844
6845 * combine.c (simplify_set): Remove an unnecessary subreg.
6846
b47cae3d
MM
68472002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
6848
6849 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
6850
6851 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
6852
ce9e3a6d
GDR
68532002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
6854
6855 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
6856
fb2c6841
RS
68572002-05-25 Roger Sayle <roger@eyesopen.com>
6858
6859 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
6860 (cond (compare x y) 0) into the equivalent (cond x y).
6861
da7ac8f1
GDR
68622002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
6863
6864 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
6865
c7bdf0a6
ZW
68662002-05-24 Zack Weinberg <zack@codesourcery.com>
6867
6868 * config.gcc: Remove all stanzas for previously obsoleted
6869 systems. Where necessary, add explicit error stanzas to
6870 prevent removed systems from being misidentified as something
6871 else. Begin a fresh obsoletions list, with the systems that
6872 were reprieved last round.
6873 * doc/install.texi: Remove all mention of dead targets.
6874 * fixinc/mkfixinc.sh: Likewise.
6875
6876 * config/arm/arm.h: Bit 31 of target_flags is no longer
6877 reserved.
6878
6879 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
6880 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
6881 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
6882 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
6883 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
6884 config/alpha/osf12.h, config/alpha/osf2or3.h,
6885 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
6886 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
6887 config/clipper/clipper-protos.h, config/clipper/clipper.c,
6888 config/clipper/clipper.h, config/clipper/clipper.md,
6889 config/clipper/clix.h, config/convex/convex-protos.h,
6890 config/convex/convex.c, config/convex/convex.h,
6891 config/convex/convex.md, config/convex/fixinc.convex,
6892 config/convex/proto.h, config/elxsi/elxsi-protos.h,
6893 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
6894 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
6895 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
6896 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
6897 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
6898 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
6899 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
6900 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
6901 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
6902 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
6903 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
6904 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
6905 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
6906 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
6907 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
6908 config/m68k/altos3068.h, config/m68k/apollo68.h,
6909 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
6910 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
6911 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
6912 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
6913 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
6914 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
6915 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
6916 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
6917 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
6918 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
6919 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
6920 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
6921 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
6922 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
6923 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
6924 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
6925 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
6926 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
6927 config/mips/dec-osf1.h, config/mips/elflorion.h,
6928 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
6929 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
6930 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
6931 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
6932 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
6933 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
6934 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
6935 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
6936 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
6937 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
6938 config/ns32k/sequent.h, config/ns32k/tek6000.h,
6939 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
6940 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
6941 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
6942 config/sparc/rtems.h, config/we32k/we32k-protos.h,
6943 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
6944 Delete file.
6945
755ac5d4
RH
69462002-05-24 Richard Henderson <rth@redhat.com>
6947
6948 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
6949 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
6950 * config/i386/i386.c (tls_model_chars): Add leading space.
6951 (tls_symbolic_operand): Don't bias by 1.
6952 (legitimize_address): Don't unbias by 1.
6953
c429f12e
TM
69542002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6955
6956 * lcm.c (optimize_mode_switching): Change bb used as indices
6957 to bb->index.
6958
8beda321
RH
69592002-05-24 Richard Henderson <rth@redhat.com>
6960
6961 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
6962 of update_life_info_in_dirty_blocks.
6963
90442291
JJ
69642002-05-24 Jakub Jelinek <jakub@redhat.com>
6965
6966 PR other/6782
6967 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
6968
3620711b
NB
69692002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
6970
6971 PR preprocessor/6780
6972 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
6973
2f8d482e
JB
69742002-05-24 Jim Blandy <jimb@redhat.com>
6975
6976 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
6977 entry with a type code of zero, marking the end of the compilation
6978 unit's macro info.
6979
95bfe95f
RH
69802002-05-24 Richard Henderson <rth@redhat.com>
6981
c7bdf0a6
ZW
6982 * varasm.c (asm_output_bss): Always output one byte.
6983 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
95bfe95f 6984
7efda054
BM
69852002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6986
6987 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
6988 namespace.
6989
8a951190
AJ
69902002-05-24 Andreas Jaeger <aj@suse.de>
6991
6992 * ggc-page.c (alloc_page): Cast variables of type size_t to
6993 unsigned long, adjust printf format string.
6994 (ggc_alloc): Likewise.
6995 (ggc_print_statistics): Likewise.
6996 (ggc_print_statistics): Correct printf format string for SCALE to
6997 use unsigned long.
6998
f29e2ec0
DS
69992002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
7000
7001 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
7002
211a0cbe 70032002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
c7bdf0a6 7004 Zack Weinberg <zack@codesourcery.com>
211a0cbe
GDR
7005
7006 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
7007 quoted strings.
7008 * dwarf2out.c (lookup_filename): Properly quote filename in .file
8a951190 7009 directive in assembly file.
211a0cbe
GDR
7010 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7011 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7012 * config/pj/pj.h (ASM_FILE_START): Likewise.
7013 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
7014 * config/avr/avr.c (asm_file_end): Likewise.
7015 * toplev.c (output_quoted_string): Handle possibly signed plain
8a951190 7016 char.
211a0cbe
GDR
7017 * toplev.h (output_clean_symbol_name): Declare
7018 * toplev.c (output_clean_symbol_name): Define.
7019 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
7020 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
7021
2f0552b6
AM
70222002-05-24 Alan Modra <amodra@bigpond.net.au>
7023
7024 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
7025
b326b2c1
VM
70262002-05-23 Vladimir Makarov <vmakarov@redhat.com>
7027
7028 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
7029 of size of unsigned.
7030
f996902d
RH
70312002-05-23 Richard Henderson <rth@redhat.com>
7032
7033 * configure.in (HAVE_AS_TLS): New test.
7034 * config.in, configure: Rebuild.
7035 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
7036 (ix86_tls_dialect_string, ix86_tls_dialect): New.
7037 (override_options): Set it.
7038 (tls_model_chars, tls_symbolic_operand): New.
7039 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
7040 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
7041 (local_exec_symbolic_operand): New.
7042 (get_pic_label_name): Merge into output_set_got.
7043 (ix86_asm_file_end): Emit pic_label_name if defined.
7044 (legitimate_constant_p, constant_address_p): New.
7045 (legitimate_pic_operand_p): New.
7046 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
7047 (legitimate_address_p): Likewise.
7048 (ix86_encode_section_info): Rename from i386_; handle tls decls.
7049 (ix86_strip_name_encoding): New.
7050 (get_thread_pointer): New.
7051 (legitimize_address): Handle tls symbols.
7052 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
7053 Remove UNSPEC_PLT.
7054 (struct machine_function): Add some_ld_name.
7055 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
7056 (print_operand) [&]: Use it. Handle UNSPEC_TP.
7057 (output_addr_const_extra): New.
7058 (maybe_get_pool_constant): New.
7059 (ix86_split_to_parts): Use it.
7060 (ix86_expand_move): Handle tls symbols.
7061 (ix86_tls_get_addr): New.
7062 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
7063 (TARGET_OPTIONS): Add tls-dialect.
7064 (CONSTANT_ADDRESS_P): Use new out-of-line function.
7065 (LEGITIMATE_CONSTANT_P): Likewise.
7066 (LEGITIMATE_PIC_OPERAND_P): Likewise.
7067 (TARGET_STRIP_NAME_ENCODING): New.
7068 (ASM_OUTPUT_LABELREF): New.
7069 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7070 (OUTPUT_ADDR_CONST_EXTRA): New.
7071 (PREDICATE_CODES): Update.
7072 (ix86_tls_dialect, ix86_tls_dialect_string): New.
7073 * config/i386/i386.md: Regroup and renumber unspec constants.
7074 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
7075 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
7076 (tls_global_dynamic, tls_local_dynamic_base): New.
7077 (tls_local_dynamic_once): New.
7078 * config/i386/i386-protos.h: Update.
7079
821e35ba
RH
70802002-05-23 Richard Henderson <rth@redhat.com>
7081
7082 * genemit.c (gen_insn): Print file:lineno comment before function.
7083 (main): likewise.
7084 * gensupport.c (struct queue_elem): Add filename member.
7085 (queue_pattern): Initialize it; update all callers.
7086 (process_include): Don't free filename.
7087 (read_md_rtx): Set read_rtx_filename.
7088
0f1ffa23 70892002-05-23 Hans Boehm <Hans_Boehm@hp.com>
821e35ba
RH
7090
7091 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
0f1ffa23 7092
8e9fadc3
RH
70932002-05-23 Richard Henderson <rth@redhat.com>
7094
7095 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
7096
244c2241
RH
70972002-05-23 Richard Henderson <rth@redhat.com>
7098
7099 * doc/extend.texi (C++98 Thread-Local Edits): Update with
7100 commentary from Mark.
7101
e0082a72
ZD
71022002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7103
7104 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
7105 Use FOR_EACH_BB macros to iterate over basic block chain.
7106 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
7107 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
7108 Likewise.
7109 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
7110 find_unreachable_blocks, create_edge_list, verify_edge_list,
7111 remove_fake_edges, add_noreturn_fake_exit_edges,
7112 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
7113 Likewise.
7114 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7115 find_sub_basic_blocks): Likewise.
7116 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
7117 Likewise.
7118 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
7119 Likewise.
7120 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
7121 Likewise.
7122 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
7123 commit_edge_insertions, commit_edge_insertions_watch_calls,
7124 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
7125 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
7126 * conflict.c (conflict_graph_compute): Likewise.
7127 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7128 df_modified_p, df_refs_unlink, df_dump): Likewise.
7129 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
7130 * final.c (compute_alignments): Likewise.
7131 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
7132 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
7133 count_or_remove_death_notes): Likewise.
7134 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
7135 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
7136 classic_gcse, compute_transp, cprop, compute_pre_data,
7137 compute_transpout, invalidate_nonnull_info,
7138 delete_null_pointer_checks_1, delete_null_pointer_checks,
7139 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
7140 compute_store_table, build_store_vectors, store_motion): Likewise.
7141 * global.c (global_conflicts, mark_elimination): Likewise.
7142 * graph.c (print_rtl_graph_with_bb): Likewise.
7143 * haifa-sched.c (sched_init): Likewise.
7144 * ifcvt.c (if_convert): Likewise.
7145 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7146 compute_available, compute_nearerout, compute_rev_insert_delete,
7147 optimize_mode_switching): Likewise.
7148 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
7149 * predict.c (estimate_probability, note_prediction_to_br_prob,
7150 propagate_freq, counts_to_freqs, expensive_function_p,
7151 estimate_bb_frequencies): Likewise.
7152 * profile.c (instrument_edges, get_exec_counts,
7153 compute_branch_probabilities, compute_checksum, branch_prob,
7154 find_spanning_tree): Likewise.
7155 * recog.c (split_all_insns, peephole2_optimize): Likewise.
7156 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
7157 Likewise.
7158 * regclass.c (scan_one_insn, regclass): Likewise.
7159 * regmove.c (mark_flags_life_zones, regmove_optimize,
7160 record_stack_memrefs): Likewise.
7161 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
7162 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
7163 * resource.c (find_basic_block): Likewise.
7164 * sched-ebb.c (schedule_ebbs): Likewise.
7165 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
7166 find_single_block_region, find_rgns, schedule_insns)
7167 * sibcall.c (optimize_sibling_and_tail_recursive_call)
7168 * ssa-ccp.c (optimize_unexecutable_edges,
7169 ssa_ccp_df_delete_unreachable_insns): Likewise.
7170 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7171 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
7172 rename_block, convert_to_ssa, compute_conservative_reg_partition,
7173 compute_coalesced_reg_partition, rename_equivalent_regs,
7174 convert_from_ssa): Likewise.
7175 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
7176 process_for_unwind_directive): Likewise.
7177
7178 * df.c (FOR_ALL_BBS): Removed.
7179 * gcse.c (struct null_pointer_info): Type of current_block field
7180 changed.
7181 (struct reg_avail_info): Type of last_bb field changed.
7182 * config/ia64/ia64.c (block_num): Removed.
7183 (need_copy_state): Type changed.
7184 (last_block): New.
7185
17645b15
NB
71862002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7187
7188 * cppinit.c (mark_named_operators): Split out from init_builtins.
7189 (cpp_finish_options): Call it from here instead.
7190
79ed7328
JT
71912002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7192
7193 * builtin-attrs.def: Update copyright years.
7194 (ATTR_NONNULL): New attribute identifier.
7195 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
7196 attribute tree lists.
7197 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
7198 format operand.
7199 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
7200 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
7201 attribute lists. Chain the appropriate nonnull attribute.
7202 * c-format.c (check_format_arg): Remove null format string
7203 warning.
7204 * testsuite/gcc.dg/format/null-1.c: New test.
7205
7d600178
RO
72062002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7207
7208 * Makefile.in (ADAC): Define.
7209 (SYSLIBS): Define.
7210 (.SUFFIXES): Move before language makefile fragments.
7211 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
7212
5ff225fc
MM
72132002-05-23 Mark Mitchell <mark@codesourcery.com>
7214
7215 * varasm.c (make_decl_rtl): Don't allow weak variables to be
7216 placed in common.
7217
0f72964f
JH
7218Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7219
7220 * cfg.c (dump_flow_info): Print results of
7221 maybe_hot/probably_never_executed predicates.
7222 * toplev.c (open_dump_file): Print function frequency.
7223
c863f8c2
DM
72242002-05-23 David S. Miller <davem@redhat.com>
7225
7226 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
7227 regsets.
7228
b34c7881
JT
72292002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7230
7231 * c-common.c (warn_nonnull): Declare.
7232 (c_common_attribute_table): Add "nonnull" attribute.
7233 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
7234 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
7235 check_function_arguments_recurse): New functions.
7236 * c-common.h (warn_nonnull): Declare extern.
7237 (check_function_arguments, check_function_arguments_recurse): New
7238 prototypes.
7239 * c-decl.c (c_decode_option): Add -Wnonnull option.
7240 * c-format.c (set_Wformat): Set warn_nonnull if enabling
7241 format checking.
7242 (format_check_context): New structure.
7243 (check_format_info_recurse): Remove recursion and rename to...
7244 (check_format_arg): ...this. Update comment.
7245 (check_format_info): Use check_function_arguments_recurse.
7246 * c-typeck.c (build_function_call): Call check_function_arguments
7247 instead of check_function_format.
7248 * doc/extend.texi: Document "nonnull" attribute.
7249 * doc/invoke.texi: Docuemnt -Wnonnull option.
7250 * testsuite/gcc.dg/nonnull-1.c: New test.
7251 * testsuite/gcc.dg/nonnull-2.c: New test.
7252
95479831
DM
72532002-05-23 David S. Miller <davem@redhat.com>
7254
7255 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
7256 * cfgcleanup.c (cleanup_cfg): If it is set do not
7257 attempt to delete trivially dead insns.
7258 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
7259 * toplev.c (rest_of_compilation): Document non-trivial aspect
7260 the RTL before optimize_save_area_alloca is run.
7261
a97d1398
NB
72622002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7263
7264 * c-lex.c (indent_level): Remove.
7265 (cb_file_change, c_lex): Remove indent level handling.
7266 * c-lex.h (indent_level): Remove.
7267 * input.h (struct file_stack): Remove indent_level.
7268 * toplev.c (push_srcloc): Remove indent_level handling.
7269
66b408f2
JJ
72702002-05-23 Jakub Jelinek <jakub@redhat.com>
7271
7272 PR target/6753
7273 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
7274 of x in constraints for clarity.
7275 (sse_mov?fcc split): abort if op2 == op3.
7276 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
7277 sse_movsfcc_const0_4): Add earlyclobber.
7278 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
7279 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
7280 Use Y instead of x in constraints.
7281
5bf0ebab
RH
72822002-05-23 Richard Henderson <rth@redhat.com>
7283
9217ef40
RH
7284 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
7285 (C++98 Thread-Local Edits): New subsection.
7286
5bf0ebab
RH
7287 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
7288 (ix86_arch): Set type to enum processor_type.
7289
8a951190 7290 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5bf0ebab
RH
7291 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
7292
4832c9e1
JJ
72932002-05-23 Jakub Jelinek <jakub@redhat.com>
7294
7295 * configure.in: Fix as version test for binutils 2.12.1 releases
7296 (without dates).
7297 * configure: Rebuilt.
7298
c8c03509
RH
72992002-05-23 Richard Henderson <rth@redhat.com>
7300
7301 * config/i386/i386.c (get_pic_label_name): New.
7302 (load_pic_register): Remove.
7303 (output_set_got): New.
7304 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
7305 * config/i386/i386.md (UNSPEC_SET_GOT): New.
7306 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
7307 (prologue_set_got, prologue_get_pc): Remove.
7308 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
7309 (builtin_setjmp_receiver): Use gen_set_got.
7310 * config/i386/i386-protos.h: Update.
7311
d51f3632
JH
7312Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
7313
7314 * gcse.c (hash_expr): Do not use alias set for hashing.
7315
b0a93386
KB
73162002-05-22 Kevin Buettner <kevinb@redhat.com>
7317
7318 * dbxout.c (dbxout_class_name_qualifiers): New function.
7319 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
7320
bdee42b1
NB
73212002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7322
7323 * cpperror.c (_cpp_begin_message): No special casing
7324 of CPP_FATAL_LIMIT.
7325 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
7326 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
7327 * cpplib.c (do_include_common): Use DL_ERROR.
7328 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
7329 (DL_ICE): Renumber.
7330 * fix-header.c (read_scan_file): Update.
7331
0e07aff3
RH
73322002-05-22 Richard Henderson <rth@redhat.com>
7333
7334 * config/i386/i386.c (ix86_expand_call): New function, extracted
7335 from md call patterns. Add pic_offset_table_rtx to
7336 CALL_INSN_FUNCTION_USAGE when needed.
7337 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
7338 (call_value_pop, call_value, untyped_call): Likewise.
7339 (call_exp, call_value_exp): Remove.
7340 * config/i386/i386-protos.h: Update.
7341
6f001fdf
RH
73422002-05-22 Richard Henderson <rth@redhat.com>
7343
7344 * varasm.c (default_section_type_flags): Check for VAR_DECL
7345 before using DECL_THREAD_LOCAL.
7346
cbaaba19
DE
73472002-05-22 David Edelsohn <edelsohn@gnu.org>
7348
7349 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
7350 (STARTFILE_SPEC): Delete PE crt0.o.
7351 * config/rs6000/aix51.h: Same.
7352 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
7353 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
7354 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
7355 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
7356 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
7357
c711ba8e
RH
73582002-05-22 Richard Henderson <rth@redhat.com>
7359
7360 * varasm.c (default_section_type_flags): Handle tls data and
7361 default sections.
7362 (default_unique_section): Handle tls sections.
7363
343f59d9
AM
73642002-05-23 Alan Modra <amodra@bigpond.net.au>
7365
7366 * configure.in (CROSS): Define NATIVE_CROSS.
7367 * configure: Regenerate.
7368 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
7369 (startfile_prefix_spec): New var.
7370 (static_specs): Add startfile_prefix_spec.
7371 (do_spec_2): Split out from..
7372 (do_spec): ..here.
7373 (main): Process startfile_prefix_spec.
7374 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
7375 dynamic linker.
7376 (STARTFILE_PREFIX_SPEC): Define.
7377 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
c7bdf0a6 7378 absolute paths.
343f59d9 7379
df383483
KH
73802002-05-22 Kazu Hirata <kazu@cs.umass.edu>
7381
7382 * cpperror.c: Fix formatting.
7383 * cppexp.c: Likewise.
7384 * cppfiles.c: Likewise.
7385 * cpphash.c: Likewise.
7386 * cpphash.h: Likewise.
7387 * cppinit.c: Likewise.
7388 * cpplex.c: Likewise.
7389 * cpplib.c: Likewise.
7390 * cppmacro.c: Likewise.
7391 * cppmain.c: Likewise.
7392 * cppspec.c: Likewise.
7393
2dd36f90
JJ
73942002-05-22 Jakub Jelinek <jakub@redhat.com>
7395
7396 * combine.c (force_to_mode): Use gen_int_mode.
7397 Don't clear CONST_INT bits outside of mode.
7398
8dc02d7f
RH
73992002-05-22 Richard Henderson <rth@redhat.com>
7400
7401 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
7402 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7403
45f79783
JJ
74042002-05-22 Jakub Jelinek <jakub@redhat.com>
7405
7406 PR c/6643
7407 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
7408 if DECL_SIZE_UNIT is INTEGER_CST.
7409
19f71cd7
RH
74102002-05-22 Richard Henderson <rth@redhat.com>
7411
7412 * flow.c (life_analysis): Delete broken reg_label check.
7413
d5bcfcce
RH
74142002-05-22 Richard Henderson <rth@redhat.com>
7415
7416 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
7417 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7418
985d311b 7419Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5ff94354
R
7420
7421 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
7422 (embed-bb.c): New rule.
985d311b 7423 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5ff94354
R
7424 * config/sh/embed_bb.c: Delete.
7425
985d311b
R
7426Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
7427
7428 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
7429
f6d45746
KH
74302002-05-22 Kazu Hirata <kazu@cs.umass.edu>
7431
7432 * config/h8300/h8300.md (*andorqi3): New.
7433
e5f3b786
NB
74342002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
7435
7436 PR preprocessor/6517
7437 * Makefile.in: Update.
7438 * c-common.c (c_common_post_options): Add preprocessor
7439 errors to the error count.
7440 * c-lang.c (c_post_options): Kill.
7441 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7442 * hooks.h: Add header guards.
7443 * langhooks-def.h: Include hooks.h.
7444 (LANG_HOOKS_POST_OPTIONS): Update.
7445 * langhooks.h (struct lang_hooks): Update post_options.
7446 * toplev.c (parse_options_and_default_flags): Update.
7447objc:
7448 * objc-lang.c (objc_post_options): Kill.
7449 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7450
4c526be3
BK
74512002-05-21 Bruce Korb <bkorb@gnu.org>
7452
7453 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
021c1f34
BK
7454 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
7455 * fixinc/fixincl.x: regen.
4c526be3 7456
f87c27b4
KH
74572002-05-21 Kazu Hirata <kazu@cs.umass.edu>
7458
7459 * cfgbuild.c: Fix formatting.
7460 * cfg.c: Likewise.
7461 * cfgcleanup.c: Likewise.
7462 * cfglayout.c: Likewise.
7463 * cfgloop.c: Likewise.
7464 * cfgrtl.c: Likewise.
7465
3d78f2e9
RH
74662002-05-21 Richard Henderson <rth@redhat.com>
7467
7468 * c-common.h (enum rid): Add RID_THREAD.
7469 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
7470 (grokdeclarator): Grok __thread.
7471 * c-parse.in (reswords): Add __thread.
7472 (rid_to_yy): Add RID_THREAD.
7473
7474 * tree.h (DECL_THREAD_LOCAL): New.
7475 (struct tree_decl): Add thread_local_flag.
7476 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
7477 * tree.c (staticp): TLS variables are not static.
7478
7479 * target-def.h (TARGET_HAVE_TLS): New.
7480 * target.h (have_tls): New.
7481 * output.h (SECTION_TLS): New.
7482 * varasm.c (assemble_variable): TLS variables can't be common for now.
7483 (default_section_type_flags): Handle .tdata and .tbss.
7484 (default_elf_asm_named_section): Handle SECTION_TLS.
7485 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
7486
7487 * flags.h (flag_tls_default): Declare.
7488 * toplev.c (flag_tls_default): Define.
7489 (display_help): Display help for it.
7490 (decode_f_option): Set it.
7491
7492 * doc/extend.texi (Thread-Local): New node describing language-level
7493 thread-local storage.
7494 * doc/invoke.texi (-ftls-model): Document.
7495
7496 * fixinc/inclhack.def (thread_keyword): New.
7497 * fixinc/fixincl.x: Rebuild.
7498
a151daf0
JL
74992002-05-21 Jeffrey A Law <law@redhat.com>
7500
8a951190 7501 * optabs.c (expand_binop): For double-word integer multiplies,
c7539aa0
JL
7502 do not compute intermediate results into something that is
7503 not a register (such as a SUBREG or MEM).
7504
a151daf0
JL
7505 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
7506 (ix86_sched_reorder): Make sure to initialize scheduling
7507 data even when there's only one insn in the ready queue.
7508
96b1f73b
VM
75092002-05-21 Vladimir Makarov <vmakarov@redhat.com>
7510
7511 * genautomata.c (reserv_sets_hash_value): Fix a typo.
7512
dceb2b75
VM
75132002-05-21 Vladimir Makarov <vmakarov@redhat.com>
7514
7515 * genautomata.c (reserv_sets_hash_value): Define hash_value as
7516 set_el_t. Transform the hash value into unsigned.
7517 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
7518 (transform_3): Add code to process `(A,B)+(D,E)'.
7519
159d5964
NY
75202002-05-21 NIIBE Yutaka <gniibe@m17n.org>
7521
7522 * reload1.c (do_output_reload): Run delete_output_reload
7523 only if optimizing.
7524
cf5124f6
RS
75252002-05-21 Roger Sayle <roger@eyesopen.com>
7526
7527 PR middle-end/6600
7528 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
7529 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
7530 (can_store_by_pieces): ... and here to limit the largest mode used.
7531 Add a comment to document this function.
7532
380e6ade
RH
75332002-05-21 Richard Henderson <rth@redhat.com>
7534
7535 * flow.c (life_analysis): Fix test for deleted label.
7536
1f95326c
NB
75372002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
7538
7539 * doc/tm.texi: Fix typo.
7540
2a1dc0d8
ZW
75412002-05-21 Zack Weinberg <zack@codesourcery.com>
7542
7543 * c-common.c (c_common_init): Set options->unsigned_char from
7544 flag_signed_char.
7545 (cb_register_builtins): Define __STRICT_ANSI__ and
7546 __CHAR_UNSIGNED__ here...
7547 * cppinit.c (init_builtins): Not here.
7548 (cpp_create_reader): unsigned_char option defaults to 0, not
7549 !DEFAULT_SIGNED_CHAR.
7550 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
7551 and -funsigned-char.
7552
7553 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
7554 * cpphash.c (_cpp_init_hashtable): Don't set it.
7555 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
7556 directly. Clarify comment.
7557
d29146f2 75582002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2a1dc0d8 7559
f5eb2fc8
ZD
7560 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
7561 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
7562 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
7563 BASIC_BLOCK (n_basic_blocks - 1).
d29146f2 7564 * cfganal.c (can_fallthru, flow_call_edges_add,
f5eb2fc8 7565 flow_preorder_transversal_compute): Too.
d29146f2 7566 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
f5eb2fc8
ZD
7567 find_sub_basic_blocks): Too.
7568 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
d29146f2 7569 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
f5eb2fc8
ZD
7570 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
7571 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
d29146f2
ZD
7572 * combine.c (this_basic_block): Type changed to basic_block.
7573 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
7574 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
f5eb2fc8
ZD
7575 get_last_value, distribute_notes, distribute_links): Too.
7576 * final.c (compute_alignments): Too.
7577 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
7578 * function.c (thread_prologue_and_epilogue_insns): Too.
7579 * gcse.c (compute_code_hoist_vbeinout): Too.
7580 * global.c (build_insn_chain): Too.
7581 * ifcvt.c (find_if_block, find_cond_trap): Too.
7582 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
7583 * regmove.c (regmove_optimize): Too.
7584 * resource.c (find_basic_block): Too.
7585 * sched-ebb.c (schedule_ebbs): Too.
7586 * ssa-dce.c (find_control_dependence, find_pdom): Too.
d29146f2 7587
68bd6dd6
AJ
75882002-05-21 Andreas Jaeger <aj@suse.de>
7589
7590 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
7591
35a76aac
RH
75922002-05-21 Richard Henderson <rth@redhat.com>
7593
7594 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
7595 unspec names, not numbers.
7596
2870428f
JM
75972002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
7598
7599 * doc/sourcebuild.texi: Mention snapshot-README and
7600 snapshot-index.html as needing updating for new front ends.
7601
b0ad77d5
KG
76022002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7603
7604 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
7605 disabling checking, and avoid multiple evaluation of RTX.
7606
279be7c8
RE
76072002-05-21 Richard Earnshaw <rearnsha@arm.com>
7608
7609 * bitmap.c (bitmap_find_bit): Return early if we have the correct
7610 element cached.
7611
193a563a
JH
7612Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7613
7614 * profile.c (gen_edge_profiler): Set alias set before the memory is
7615 used.
7616
31825e57
DM
76172002-05-20 David S. Miller <davem@redhat.com>
7618
7619 * cselib.c (max_value_regs): New.
7620 (cselib_lookup, cselib_invalidate_regno): Initialize it when
7621 adding new entries to the REG_VALUES table and we are dealing with
7622 a hard register.
7623 (clear_table): Initialize it.
7624 (cselib_invalidate_regno): Use it to determine which hard
7625 registers to scan when mode is not VOIDmode.
7626
68bd6dd6 76272002-05-20 Duraid Madina <duraid@fl.net.au>
29d83d60
DM
7628
7629 * tradcpp.c (fixup_newlines): Use old-style function header.
7630
e0a09fda
KW
76312002-05-20 Krister Walfridsson <cato@df.lth.se>
7632
7633 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
7634
e0c13c70
L
76352002-05-20 H.J. Lu (hjl@gnu.org)
7636
7637 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
7638
7639 * config/mips/mips.h (DFMODE_NAN): Defined.
7640 (SFMODE_NAN): Likewise.
7641
4c11675d 76422002-05-20 Dale Johannesen <dalej@apple.com>
e0c13c70 7643
2a1dc0d8
ZW
7644 * combine.c (cant_combine_insn_p): Back out my
7645 previous patch.
4c11675d 7646
6a4d6760
KH
76472002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7648
7649 * params.c: Fix formatting.
7650 * params.h: Likewise.
7651 * predict.c: Likewise.
7652 * prefix.c: Likewise.
7653 * print-rtl.c: Likewise.
7654 * print-tree.c: Likewise.
7655 * profile.c: Likewise.
7656
5715ca64
L
76572002-05-20 H.J. Lu (hjl@gnu.org)
7658
7659 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
7660
00b89f01
NC
76612002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
7662
7663 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
7664 switches straight on to the assembler, do not abbreviate them.
7665 * config/arm/elf.h (ASM_SPEC): As above.
7666 * config/arm/semi.h (ASM_SPEC): As above.
7667 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
7668 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
7669 -mcpu=xscale on to the assembler by default.
7670 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
7671
1441374b
RH
76722002-05-20 Richard Henderson <rth@redhat.com>
7673
7674 * cse.c (canon_hash): Reorder do_not_record test. Always
7675 allow pic_offset_table_rtx.
7676
c0fe508e
TM
76772002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
7678
7679 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
7680 (expand_binop): Ditto (3 times).
7681
f362c762
MM
76822002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
7683
7684 * Makefile.in (distclean): Remove QMTest stuff.
7685 (QMTEST_PATH): New variable.
7686 (QMTESTFLAGS): Likewise.
7687 (QMTESTRUNFLAGS): Likewise.
7688 (QMTEST): Likewise.
7689 (QMTEST_GPP_TESTS): Likewise.
7690 (QMTEST_DIR): Likewise.
7691 (QMTEST_DIR/context): New target.
7692 (qmtest-g++): Likeise.
7693 (qmtest-gui): Likewise.
7694 (QMTEST_DIR/gpp-expected.qmr): Likewise.
7695
16861f33
AH
76962002-05-19 Aldy Hernandez <aldyh@redhat.com>
7697
2a1dc0d8
ZW
7698 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
7699 an altivec register if TARGET_ALTIVEC.
16861f33 7700
2a1dc0d8
ZW
7701 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
7702 to ALTIVEC_VECTOR_MODE.
7703 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
7704 (rs6000_va_arg): Vectors may go in registers if they are not
7705 altivec vectors.
16861f33 7706
23459e15
KH
77072002-05-19 Kazu Hirata <kazu@cs.umass.edu>
7708
7709 * protoize.c: Fix formatting.
7710
174cc7d1
RH
77112002-05-19 Richard Henderson <rth@redhat.com>
7712
7713 * gensupport.c (init_include_reader): Merge into ...
7714 (process_include): ... here. Simplify composite path creation.
7715 Plug memory leaks. Fix file/line number tracking. Do not
7716 process_define_cond_exec. Return void.
7717 (process_rtx): Don't check process_include return value.
7718
918ed612
ZD
77192002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7720
7721 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
7722 fields.
7723 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7724 traversing basic block chain.
7725 (create_basic_block_structure, create_basic_block): Declaration changed.
7726 (link_block, unlink_block): Declare.
7727 * cfg.c (entry_exit_blocks): Initialize new fields.
7728 (link_block, unlink_block): New.
7729 (expunge_block_nocompact): Unlink basic block.
7730 (dump_flow_info): Print prev_bb/next_bb fields.
7731 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
7732 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
7733 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
7734 * cfgrtl.c (create_basic_block_structure, create_basic_block,
7735 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
7736 (verify_flow_info): Check that list agrees with numbering.
7737
e0322d5c
NB
77382002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
7739
7740 * c-common.c (preprocessing_asm): New macro.
7741 * c-lex.h (builtin_define, builtin_assert): Use pfile.
7742doc:
7743 * tm.texi: Update.
7744config/alpha:
7745 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
7746 (CPP_SPEC): Simplify.
7747 (TARGET_CPU_CPP_BUILTINS): Update.
7748 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
7749 (CPP_SPEC): Simplify.
7750 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
7751 (TARGET_OS_CPP_BUILTINS): Update.
7752 * osf.h (CPP_XFLOAT_SPEC): Kill.
7753 (TARGET_OS_CPP_BUILTINS): Update.
7754 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
7755 * osf5.h (CPP_XFLOAT_SPEC): Kill.
7756 * vms.h (CPP_SUBTARGET_SPEC): Kill.
7757 (TARGET_OS_CPP_BUILTINS): Update.
7758
121f5c2c
RH
77592002-05-19 Richard Henderson <rth@redhat.com>
7760
7761 * varasm.c (default_binds_local_p): Fix typo.
7762
651c5ed9
MM
77632002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
7764
7765 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
7766 CONST_INT operand to the correct mode after adding 1 to it.
7767
bce0deb2
MM
77682002-05-19 Mark Mitchell <mark@codesourcery.com>
7769
7770 * config.gcc (powerpc-wrs-windiss*): New target.
7771
4aa74a4f
FS
77722002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7773
7774 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
7775 (ashrdi3): Use it.
7776
a15135c9
MM
77772002-05-18 Mark Mitchell <mark@codesourcery.com>
7778
7779 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
7780 alphasort.
7781 * config.in: Regenerated.
7782 * configure: Regenerated.
7783
47754fd5
RH
77842002-05-19 Richard Henderson <rth@redhat.com>
7785
7786 * target-def.h (TARGET_BINDS_LOCAL_P): New.
7787 * target.h (struct gcc_target): Move boolean fields to the end.
7788 Add binds_local_p.
7789 * varasm.c (default_binds_local_p): New.
7790 * output.h: Declare it.
7791
7792 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
7793 * config/cris/cris.c (cris_encode_section_info): Likewise.
7794 * config/i386/i386.c (i386_encode_section_info): Likewise.
7795 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
7796 * config/sh/sh.c (sh_encode_section_info): Likewise.
7797
7798 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
7799 (TARGET_BINDS_LOCAL_P): New.
7800
fc881338
RH
78012002-05-19 Richard Henderson <rth@redhat.com>
7802
7803 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
7804 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
7805 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
7806
7807 * toplev.c (display_help): Kill -a -ax help.
7808
68bd6dd6 7809 * config/1750a/1750a.h, config/alpha/alpha.h,
fc881338
RH
7810 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
7811 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
7812 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
7813 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
7814
7815 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
7816 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
7817
7818 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
7819 (ix86_output_function_block_profiler): Kill.
7820 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
7821 (m68hc11_function_block_profiler): Kill.
7822 * config/m68hc11/m68hc11-protos.h: Update.
7823 * config/m88k/m88k.c (output_block_profiler): Kill.
7824 (output_function_block_profiler): Kill.
7825 * config/m88k/m88k-protos.h: Update.
7826
772c5265
RH
78272002-05-19 Richard Henderson <rth@redhat.com>
7828
7829 * system.h (STRIP_NAME_ENCODING): Poison it.
7830 * output.h (STRIP_NAME_ENCODING): Remove.
7831 (default_strip_name_encoding): Declare.
7832 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
7833 * target.h (strip_name_encoding): New.
7834 * varasm.c (default_strip_name_encoding): New.
7835
7836 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
7837 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
7838 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
7839 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
7840 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
7841 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
7842 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
7843 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
7844 config/v850/v850.h: Use the hook, not the macro.
7845
7846 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
7847 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
7848 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
7849 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
7850 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
7851 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
68bd6dd6 7852 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
772c5265
RH
7853 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
7854 config/v850/v850.c, config/v850/v850.h:
7855 Move STRIP_NAME_ENCODING to out-of-line function and add
7856 TARGET_STRIP_NAME_ENCODING.
7857
7858 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
7859 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
7860 with TARGET_STRIP_NAME_ENCODING referencing existing function;
7861 make function static.
7862
7863 * xcoffout.c: Include target.h
7864 * Makefile.in (xcoffout.o): Update.
7865
7866 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
7867 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
7868 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
7869 reloc argument unused.
7870 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
7871
7872 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
7873 STRIP_NAME_ENCODING docs.
7874
8f9eb495
AJ
78752002-05-19 Andreas Jaeger <aj@suse.de>
7876
7877 * gengenrtl.c: Add prototype for excluded_rtx.
7878
7879 * real.h: Add prototype for exact_real_truncate.
7880
fb49053f
RH
78812002-05-18 Richard Henderson <rth@redhat.com>
7882
7883 * system.h (ENCODE_SECTION_INFO): Poison it.
7884 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
7885 * target.h (encode_section_info): New.
7886 * varasm.c (make_decl_rtl, output_constant_def): Use it.
7887 * hooks.c (hook_tree_int_void): New.
7888 * hooks.h: Declare it.
7889
7890 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
7891 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
7892 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
7893 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
7894 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
7895 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
7896 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
7897 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
7898 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
7899 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7900 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
7901 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
7902 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
7903 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
7904 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
7905 referencing existing function. Make function static.
7906
7907 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8f9eb495 7908 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
fb49053f
RH
7909 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
7910 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
7911 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8f9eb495 7912 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
fb49053f
RH
7913 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
7914 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
7915 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
7916 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8f9eb495 7917 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
fb49053f
RH
7918 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
7919 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
7920 Move ENCODE_SECTION_INFO to out-of-line function and add
7921 TARGET_ENCODE_SECTION_INFO.
7922
7923 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
7924 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
7925
7926 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
7927 from SUBTARGET_*
7928 (switch_to_section): Replace in_rdata case with in_readonly_data.
7929
7930 * config/h8300/h8300.c (h8300_encode_label): Make static.
7931 * config/h8300/h8300-protos.h: Update.
7932
7933 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
7934 from rs6000_encode_section_info; make static.
7935 (rs6000_xcoff_encode_section_info): New.
7936
7937 * config/v850/v850.c (v850_encode_data_area): Make static.
7938 * config/v850/v850-protos.h: Update.
7939
7940 * config/vax/vax.c: Include flags.h.
7941 (vms_select_section): Fix typo.
7942
7943 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
7944 ENCODE_SECTION_INFO docs.
7945
9fe08fd0
RH
79462002-05-18 Richard Henderson <rth@redhat.com>
7947
7948 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
7949 REGISTER_TARGET_PRAGMAS.
7950 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
7951
410b770f
RH
7952 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
7953
b64a1b53
RH
79542002-05-18 Richard Henderson <rth@redhat.com>
7955
7956 * system.h (SELECT_RTX_SECTION): Poison.
7957 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
7958 * target.h (select_rtx_section): New.
7959 * varasm.c (output_constant_pool): Use it.
7960 (default_select_rtx_section, default_elf_select_rtx_section): New.
7961 * output.h: Declare them.
7962
7963 * config/darwin.h (SELECT_RTX_SECTION): Move ...
7964 * config/darwin.c (machopic_select_rtx_section): ... here.
7965 * config/darwin-protos.h: Update.
7966
7967 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
7968 * config/nextstep.c (machopic_select_rtx_section): ... here.
7969 (nextstep_select_section): Rename variable to avoid macro clash.
7970 * config/nextstep-protos.h: Update.
7971
7972 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
7973 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
7974 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8f9eb495 7975 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
b64a1b53
RH
7976 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
7977 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8f9eb495 7978 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
b64a1b53
RH
7979 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
7980 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
7981 (SELECT_RTX_SECTION): Remove.
7982
7983 * config/darwin.h, config/elfos.h, config/nextstep.h,
7984 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
7985 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
7986 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
7987 config/sparc/lynx.h, config/xtensa/xtensa.c
7988 (TARGET_ASM_SELECT_RTX_SECTION): New.
7989
7990 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
7991 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
7992 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
7993 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
7994 (ia64_aix_select_rtx_section): New.
7995 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
7996 redefining.
7997 * config/mips/mips.c (mips_select_rtx_section): Make static.
8f9eb495 7998 Support ELF SHF_MERGE features.
b64a1b53
RH
7999 * config/mips/mips-protos.h: Update.
8000 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
8001 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
8002 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
8003 make static, fall back to default_elf_select_rtx_section.
8004 * config/rs6000/rs6000-protos.h: Update.
8005 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
8006 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
8007 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
8008 * config/romp/romp.c (romp_select_rtx_section): New.
8009 * config/s390/s390.c (s390_select_rtx_section): New.
8010 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
8011 declarations before target macro definition.
8012 (xtensa_emit_call): Use static buffer.
8013 (xtensa_select_rtx_section): New.
8014 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
8015 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
8016 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
8017
8018 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
8019 SELECT_RTX_SECTION docs.
8020
8021Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5f90a099
JH
8022
8023 * i386.md (movsi/movdi): Fix template.
8024 (sse2 patterns): Set attributes consistently.
8025
8026 * i386.md (pushqi2, ashrqi_*): Fix constraint.
8027
6835a09c
TM
80282002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
8029
8030 * optabs.c (complex_part_zero_p): New.
8031 * (expand_cmplxdiv_straight): Use it.
8032 * (expand_cmplxdiv_wide): Ditto.
8033 * (expand_binop): Ditto.
8034
d48bc59a
RH
80352002-05-18 Richard Henderson <rth@redhat.com>
8036
8037 * final.c (HAVE_READONLY_DATA_SECTION): New.
8038 (shorten_branches): Use it instead of ifdefs.
8039 * varasm.c (enum in_section): Add in_readonly_data.
8040 (text_section, data_section): Tidy.
8041 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
8042
8043 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
8044 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
8045 (READONLY_DATA_SECTION): Don't undef.
8046
8047 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
8048 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
8049 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
8050
8051 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
8052 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
8053 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
8054 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
8055
8056 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
8057 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
8058 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8059 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
8060 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
8061 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
8062 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
8063 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
8064 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
8065
8066 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
8067 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
8068 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
8069 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
8070 config/pa/pa64-hpux.h, config/sparc/litecoff.h
8071 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
8072
8073 * config/elfos.h, config/netware.h, config/svr3.h,
8074 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8075 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8076 config/h8300/h8300.h, config/i386/i386-interix.h,
8077 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8078 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
8079
8080 * config/elfos.h, config/netware.h, config/svr3.h,
8081 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8082 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
8083 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8084 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
8085
8086 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
8087 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
8088 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
8089 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
8090 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
8091 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
8092 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
8093 config/rs6000/sysv4.h, config/v850/v850.h
8094 (EXTRA_SECTIONS): Remove in_const/in_rdata.
8095 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
8096
8097 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
8098 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
8099 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
8100 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
8101 * config/alpha/alpha.c (alpha_start_function): Likewise.
8102 (alpha_write_linkage): Likewise.
8103 * config/m32r/m32r.c (m32r_select_section): Likewise.
8104 * config/m88k/m88k.c (m88k_select_section): Likewise.
8105 * config/mips/mips.c (mips_select_rtx_section): Likewise.
8106 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
8107 (rs6000_elf_select_section): Likewise.
8108 * config/v850/v850.c (v850_select_section): Likewise.
8109
8110 * config/1750a/1750a.h, config/i860/sysv3.h
8111 (READONLY_DATA_SECTION_ASM_OP): New.
8112 READONLY_DATA_SECTION_ASM_OP.
8113 * config/i386/interix.c, config/i386/winnt.c
8114 (i386_pe_unique_section): Always use .rdata prefix.
8115 * config/pa/som.h (readonly_data): Always switch to read-only section.
8116 (READONLY_DATA_SECTION): Predicate on flag_pic.
8117 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
8118 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
8119 (READONLY_DATA_SECTION): Update.
8120
e964a556
JT
81212002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
8122
8123 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8f9eb495 8124 is used without -Wformat.
e964a556
JT
8125 * c-common.h (warn_format_zero_length): Declare extern.
8126 * c-decl.c (warn_options): Add "format-zero-length".
8127 * c-format.c (warn_format_zero_length): Declare.
8128 (set_Wformat): Set warn_format_zero_length for -Wformat.
8129 (check_format_info): Only warn about zero-length formats if
8130 warn_format_zero_length is true. Include the format type
8131 name in the warning message.
8132 * doc/invoke.texi: Document -Wformat-zero-length.
8133 * testsuite/gcc.dg/format/zero-length-1.c: New test.
8134
d92b4486
KH
81352002-05-18 Kazu Hirata <kazu@cs.umass.edu>
8136
8137 * timevar.c: Fix formatting.
8138 * tlink.c: Likewise.
8139 * toplev.c: Likewise.
8140 * tree-dump.c: Likewise.
8141 * tree-inline.c: Likewise.
8142
43612ffb
NB
81432002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8144
8145 * cppinit.c (cpp_post_options): If preprocessed, turn off
8146 traditional. If traditional, turn off column numbers.
8147 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
8148 * cpptrad.c (handle_newline): Update line_base.
8149 (skip_comment): Handle -Wcomment.
8150
f24a153a
ZW
81512002-05-17 Zack Weinberg <zack@codesourcery.com>
8152
8153 * cppinit.c (struct builtin): Remove unused fields.
8154 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
8155 (operator_array): New - was second half of builtin_array.
8156 (init_builtins): Simplify loop over builtin_array/operator_array.
8157
12403335
NB
81582002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8159
8160 * defaults.h (UNIQUE_SECTION): Remove.
8161 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
8162
1f8c3c5b
RH
81632002-05-17 Richard Henderson <rth@redhat.com>
8164
8165 * expr.c (init_expr_once): Don't use start/end_sequence.
8166 Use rtx_alloc instead of emit_insn.
8167 * toplev.c (lang_dependent_init): Run init_expr_once here ...
8168 (lang_independent_init): ... not here.
8169
4664f4c4
JT
81702002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8171
8172 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
8173
93febe68
MM
81742002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
8175
8176 * config/avr/avr.c (avr_regs_to_save): New function. Also check
8177 for fixed registers, possibly used for global register variables.
8178 (initial_elimination_offset, avr_output_function_prologue,
8179 avr_output_function_epilogue): Move common code to avr_regs_to_save.
8180
004cb263
NB
81812002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8182
8183 * Makefile.in: Update for cpptrad.c.
8184 * cpphash.h (struct cpp_buffer): New members for buffer
8185 overlays.
8186 (struct cpp_reader): New members for traditional output.
8187 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
8188 * cppinit.c (cpp_create_reader): Set trad_line.
8189 (cpp_destroy): Free trad_out_base if used.
8190 (cpp_read_main_file): Overlay an empty buffer if traditional.
8191 (cpp_finish_options): Don't do builtins.
8192 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
8193 (cpp_handle_option): Handle it.
8194 * cpplex.c (continue_after_nul): New.
8195 (_cpp_lex_direct): Use handle_nul.
8196 * cpplib.h (struct cpp_options): New traditional option.
8197 * cpptrad.c: New file.
8198
bdcae02b
NB
81992002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8200
8201 * c-common.c (c_common_init_options): Use C89 for Objective-C,
8202 and set the options flag.
8203 * cppinit.c (lang_flags): Remove objc.
8204 (lang_defaults): Remove OBJC and OBJCXX.
8205 (set_lang): Update.
8206 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
8207 (cpp_handle_option): Remove -+ and -lang-objc++.
8208 For ObjC, just set a flag.
8209 (print_help): Update.
8210 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
8211
0fca60ab
RO
82122002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8213
8214 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
8215 bootstrap with -mips3.
8216
dd3f0101
KH
82172002-05-17 Kazu Hirata <kazu@cs.umass.edu>
8218
8219 * final.c: Fix formatting.
8220 * fix-header.c: Likewise.
8221 * flow.c: Likewise.
8222 * fold-const.c: Likewise.
8223 * function.c: Likewise.
8224
5ca9299f
DM
82252002-05-17 David S. Miller <davem@redhat.com>
8226
8227 PR c/6689, PR optimization/6615
8228 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
8229 and make it a pointer to rtx. Update comments.
8230 (update_equiv_regs): When scanning for equivalences, record
8231 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
8232 it while making the equiv replacements.
8233
508bc172
RO
82342002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8235
8236 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
8237
5cd983a6
KK
82382002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
8239
8240 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
8241 when encoding visibility into SYMBOL_REF_FLAG.
8242
ce0f3925
RS
82432002-05-17 Richard Sandiford <rsandifo@redhat.com>
8244
8245 * expr.c (force_operand): Fix reversed move.
8246
06809951
GP
82472002-05-17 Kurt Wall <kwall@kurtwerks.com>
8248
8249 * doc/install.texi (Testing): Mention two common DejaGnu warnings
8250 that can be ignored.
8251
82522002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8253
8254 * doc/install.texi (Final install): Recommend to install into a
8255 "clean" target directory.
8256
1d5d7a21
RH
82572002-05-17 Richard Henderson <rth@redhat.com>
8258
8259 * config/ia64/ia64.md: Use braced strings instead of quoted strings
8260 for code blocks. Tidy whitespace.
8261
ae46c4e0
RH
82622002-05-17 Richard Henderson <rth@redhat.com>
8263
8264 * hooks.c (hook_tree_bool_false): New.
8265 * hooks.h: Declare it.
8266 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
8267 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
8268 * target.h (select_section, unique_section): New.
8269 (in_small_data_p): New.
8270 * varasm.c (resolve_unique_section): Use hooks instead of macros.
8271 (variable_section, output_constant_def_contents): Likewise.
8272 (default_select_section, default_unique_section): New.
8273 (categorize_decl_for_section, default_elf_select_section): New.
8274 * output.h: Declare them.
8275
8276 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
8277 (TARGET_ASM_SELECT_SECTION): New.
8278 (SELECT_SECTION): Move ...
8279 * config/darwin.c (machopic_select_section): ... here.
8280 * config/darwin-protos.h: Update.
8281
8282 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
8283 (SELECT_SECTION): Move ...
8284 * config/nextstep.c (nextstep_select_section): ... here.
8285 * config/nextstep-protos.h: Update.
8286
8287 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
8288 (TARGET_ASM_SELECT_SECTION): New.
8289 * config/svr3.h (SELECT_SECTION): Remove.
8290
8291 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
8292 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
8293 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
8294 (alpha_encode_section_info): Use it.
8295 * config/alpha/alpha-protos.h: Update.
8296 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
8297 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8298 (TARGET_ASM_SELECT_SECTION): New.
8299 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
8300
8301 * config/arm/pe.h (UNIQUE_SECTION): Remove.
8302 (TARGET_ASM_UNIQUE_SECTION): New.
8303
8304 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
8305 (avr_unique_section): Rename from unique_section; make static.
8306 * config/avr/avr-protos.h: Update.
8307 * config/avr/avr.h (UNIQUE_SECTION): Remove.
8308
8309 * config/c4x/c4x.h (SELECT_SECTION): Remove.
8310
8311 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
8312 (TARGET_ASM_UNIQUE_SECTION): New.
8313 * config/i386/i386-interix.h: Likewise.
8314 * config/i386/win32.h: Likewise.
8315 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
8316 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
8317 * config/i386/sco5.h (SELECT_SECTION): Remove.
8318 (TARGET_ASM_SELECT_SECTION): New.
8319 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
8320
8321 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
8322 instead of SELECT_SECTION.
8323 * config/m68k/dpx2.h: Likewise.
8324 * config/rs6000/lynx.h: Likewise.
8325
8326 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8327 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8328 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
8329 (ia64_in_small_data_p): New.
8330 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
8331 (ia64_aix_select_section, ia64_aix_unique_section): New.
8332 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
8333 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8334
8335 * config/m32r/m32r.h (SELECT_SECTION): Remove.
8336 (TARGET_ASM_SELECT_SECTION): New.
8337 * config/m32r/m32r.c (m32r_select_section): Take align argument.
8338 * config/m32r/m32r-protos.h: Update.
8339
8340 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
8341 (SELECT_SECTION): Move ...
8342 * config/m88k/m88k.c (m88k_select_section): ... here.
8343
8344 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
8345 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
8346 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
8347 (mcore_unique_section): Make static.
8348 * config/mcore/mcore-protos.h: Update.
8349
8350 * config/mips/elf.h (UNIQUE_SECTION): Remove.
8351 (TARGET_ASM_UNIQUE_SECTION): New.
8352 * config/mips/elf64.h: Likewise.
8353 * config/mips/iris6gld.h: Likewise.
8354 * config/mips/linux.h: Likewise.
8355 * config/mips/mips-protos.h: Update.
8356 * config/mips/mips.c (mips_select_section): Add align argument.
8357 * config/mips/mips.h (SELECT_SECTION): Remove.
8358 (TARGET_ASM_SELECT_SECTION): New.
8359
8360 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8361 * config/mmix/mmix.c (mmix_select_section): Remove.
8362 (mmix_unique_section): Remove.
8363 * config/mmix/mmix-protos.h: Update.
8364
8365 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
8366 (SELECT_SECTION): Move ...
8367 * config/pa/pa.c (pa_select_section): ... here.
8368 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
8369
8370 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
8371 from rs6000_select_section and make static.
8372 (rs6000_elf_unique_section): Similarly.
8373 (rs6000_xcoff_select_section): From xcoff.h.
8374 (rs6000_xcoff_unique_section): Likewise.
8375 * config/rs6000/rs6000-protos.h: Update.
8376 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8377 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8378 * config/rs6000/xcoff.h: Likewise.
8379
8380 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
8381 (SELECT_SECTION): Move ...
8382 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
8383
8384 * config/v850/v850.h (SELECT_SECTION): Move ...
8385 * config/v850/v850.c (v850_select_section): ... here.
8386 (TARGET_ASM_SELECT_SECTION): New.
8387
8388 * config/vax/vms.h (SELECT_SECTION): Move ...
8389 * config/vax/vax.c (vms_select_section): ... here.
8390 (TARGET_ASM_SELECT_SECTION): New.
8391
8392 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
8393 for the target hooks.
8394
eaeb23a7
NC
83952002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
8396
8397 * config/arm/arm.c (emit_multi_reg_push): Do not set
8398 RTX_FRAME_RELATED_P on the SEQUENCE.
8399
a00fe19f
RH
84002002-05-16 Richard Henderson <rth@redhat.com>
8401
8402 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
8403 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
8404
5ccff482
RH
84052002-05-16 Richard Henderson <rth@redhat.com>
8406
8407 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
8408
068d7739
RH
8409 * config/ia64/ia64.c (saveable_obstack): Do not declare.
8410
0b17ab2f
RH
84112002-05-16 Richard Henderson <rth@redhat.com>
8412
8413 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
8414 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
8415 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
8416 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
8417 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
8418 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
8419 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
8420 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
8421 Revert "Basic block renumbering removal", and two followup patches.
8422
8ae86b3c
JT
84232002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8424
8425 * lcm.c (optimize_mode_switching): Revert previous change.
8426
4e9f27af
ZD
84272002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8428
8429 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
8430 with only extant block numbers.
8431
3cdc1dbc
JT
84322002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8433
8434 * lcm.c (optimize_mode_switching): Fix typo.
8435
fbfb3b09
ZD
84362002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8437
8438 * flow.c (calculate_global_regs_live): Queue blocks in program order.
8439
b4b0fb02
RO
84402002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8441
8442 * doc/install.texi (Configuration): Document PWDCMD.
8443
63b827c5
DJ
84442002-05-16 Dale Johannesen <dalej@apple.com>
8445
8446 * combine.c (cant_combine_insn_p): Reenable combinations
8447 involving hard regs unless CLASS_LIKELY_SPILLED_P.
8448
748d29c1
NB
84492002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
8450
8451 * c-common.c (cb_register_builtins): Handle more built-ins
8452 here rather than in gcc.c specs.
8453 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
8454 (cpp_options): Pass -O flags even when only preprocessing.
8455 * toplev.c (set_fast_math_flags): New prototype.
8456 (fast_math_flags_set_p): New.
8457 (set_no_fast_math_flags): Remove.
8458 (decode_f_option): Update.
8459 * toplev.h (set_fast_math_flags): Update.
8460 (fast_math_flags_set_p): New.
8461 (set_no_fast_math_flags): Remove.
8462config:
8463 * c4x/c4x.c (c4x_override_options): Update.
8464
5279d739
ZW
84652002-05-16 Zack Weinberg <zack@codesourcery.com>
8466
8467 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
8468 Default-define here.
8469 (builtin_define_with_value): Can now wrap the expansion in
8470 quotation marks if such is wanted.
a00fe19f 8471 (cb_register_builtins): Update calls to builtin_define_with_value.
5279d739
ZW
8472 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
8473 here.
8474 (c_common_init): Set options->stdc_0_in_system_headers.
8475 * c-lex.h: Update prototype of builtin_define_with_value.
8476 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
8477 and REGISTER_PREFIX.
8478
8479 * cppinit.c (VERS, ULP, C, X): Kill.
8480 (builtin_array): Remove entries for __VERSION__,
8481 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
8482 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
8483 a constant.
8484 (init_builtins): Kill off a bunch of now-dead code.
8485 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
8486 -fno-leading-underscore.
8487 (cpp_handle_option): Remove code to set user_label_prefix.
8488 (cpp_post_options): Likewise.
8489
8490 * cpplib.h (struct cpp_options): Remove user_label_prefix.
8491 (stdc_0_in_system_headers): New.
8492 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
8493 stdc_0_in_system_headers) too to decide the value of __STDC__.
8494
8495 * tradcpp.c (user_label_prefix): Kill.
a00fe19f 8496 (main): Remove code handling -f(no-)leading-underscore.
5279d739
ZW
8497 (initialize_builtins): Don't define __REGISTER_PREFIX__
8498 or __USER_LABEL_PREFIX__.
8499 (install_value): Wrap compound statement in dummy loop so the
8500 macro works properly in an if statement.
8501
8502
62e6ca55
JJ
85032002-05-16 Janis Johnson <janis187@us.ibm.com>
8504
8505 * loop.h (struct loop_info): Add member has_prefetch.
8506 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
8507 (prescan_loop): Initialize has_prefetch.
8508 (struct prefetch_info): Change prefetch_in_loop and
8509 prefetch_before_loop from bit fields to ints.
8510 (emit_prefetch_instructions): Several small fixes.
8511 (check_dbra_loop): Don't reverse loop that uses prefetch.
8512
1e6347d8
RO
85132002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8514
8515 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
8516 * configure.in: Likewise.
8517 * fixinc/check.tpl: Likewise.
8518 * fixinc/fixinc.dgux: Likewise.
8519 * fixinc/fixinc.svr4: Likewise.
8520 * fixinc/fixinc.winnt: Likewise.
8521 * fixinc/fixincl.sh: Likewise.
8522 * fixproto: Likewise.
8523 * configure: Regenerate.
8524
355e4ec4
ZD
85252002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8526
8527 Basic block renumbering removal:
8528 * basic_block.h (struct basic_block_def): Renamed index to sindex,
8529 added prev_bb and next_bb fields.
8530 (n_basic_blocks): Renamed to num_basic_blocks.
8531 (last_basic_block): New, index of last basic block.
8532 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8533 traversing basic block chain.
8534 (BLOCK_NUM): index -> sindex.
8535 (create_basic_block_structure, create_basic_block): Declaration changed.
8536 (debug_num2bb): Declare.
8537 (expunge_block_nocompact): Declaration removed.
8538 (link_block, unlink_block, compact_blocks): Declare.
8539 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
8540 * cfg.c (entry_exit_blocks): Initialize new fields.
8541 (clear_edges, alloc_block, expunge_block, cached_make_edge,
8542 redirect_edge_pred, dump_flow_info, dump_edge_info,
8543 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
8544 free_aux_for_edges): Modified.
8545 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
8546 (expunge_block_nocompact): Removed.
8547 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
8548 find_unreachable_blocks, create_edge_list, print_edge_list,
8549 verify_edge_list, flow_edge_list_print, remove_fake_successors,
8550 remove_fake_edges, flow_reverse_top_sort_order_compute,
8551 flow_depth_first_order_compute, flow_preorder_transversal_compute,
8552 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
8553 flow_dfs_compute_reverse_execute): Modified.
8554 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
8555 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
8556 Modified.
8557 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
8558 merge_blocks_move_predecessor_nojumps,
8559 merge_blocks_move_successor_nojumps, merge_blocks,
8560 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
8561 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
8562 * cfglayout.c (skip_insns_after_block, label_for_bb,
8563 record_effective_endpoints, scope_to_insns_finalize,
8564 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
8565 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
8566 cfg_layout_duplicate_bb): Modified.
8567 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
8568 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
8569 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
8570 flow_loops_find, flow_loop_outside_edge_p): Modified.
8571 * cfgrtl.c (create_basic_block_structure, create_basic_block,
8572 flow_delete_block, compute_bb_for_insn, split_block,
8573 try_redirect_by_replacing_jump, redirect_edge_and_branch,
8574 force_nonfallthru_and_redirect, tidy_fallthru_edge,
8575 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
8576 commit_edge_insertions, commit_edge_insertions_watch_calls,
8577 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
8578 purge_all_dead_edges): Modified.
8579 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
8580 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8581 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
8582 Modified.
8583 * conflict.c (conflict_graph_compute): Modified.
8584 * df.c (FOR_ALL_BBS): Removed.
8585 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
8586 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
8587 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
8588 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
8589 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
8590 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
8591 * final.c (compute_alignments, final_scan_insn): Modified.
8592 * flow.c (verify_local_live_at_start, update_life_info,
8593 update_life_info_in_dirty_blocks, free_basic_block_vars,
8594 delete_noop_moves, calculate_global_regs_live,
8595 initialize_uninitialized_subregs, allocate_bb_life_data,
8596 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
8597 mark_used_reg, count_or_remove_death_notes): Modified.
8598 * function.c (thread_prologue_and_epilogue_insns): Modified.
8599 * gcse.c (struct null_pointer_info): Change typo of current_block
8600 to basic_block.
8601 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
8602 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
8603 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
8604 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
8605 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
8606 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
8607 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
8608 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
8609 pre_delete, one_pre_gcse_pass, compute_transpout,
8610 invalidate_nonnull_info, delete_null_pointer_checks_1,
8611 free_code_hoist_mem, compute_code_hoist_vbeinout,
8612 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
8613 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
8614 compute_store_table, build_store_vectors, insert_insn_start_bb,
8615 insert_store, replace_store_insn, free_store_memory, store_motion):
8616 Modified.
8617 * global.c (global_alloc, global_conflicts, mark_elimination,
8618 build_insn_chain): Modified.
8619 * graph.c (print_rtl_graph_with_bb): Modified.
8620 * haifa-sched.c (sched_init): Modified.
8621 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
8622 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
8623 if_convert): Modified.
8624 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
8625 compute_insert_delete, pre_edge_lcm, compute_available,
8626 compute_farthest, compute_nearerout, compute_rev_insert_delete,
8627 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
8628 Modified.
8629 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
8630 * loop.c (loop_dump_aux): Modified.
8631 * predict.c (combine_predictions_for_insn, estimate_probability,
8632 last_basic_block_p, process_note_prediction, process_note_predictions,
8633 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
8634 expensive_function_p, estimate_bb_frequencies,
8635 compute_function_frequency): Modified.
8636 * print-rtl.c (print_rtx): Modified.
8637 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
8638 get_exec_counts, compute_branch_probabilities, compute_checksum,
8639 branch_prob, find_spanning_tree): Modified.
8640 * recog.c (split_all_insns, peephole2_optimize): Modified.
8641 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
8642 convert_regs_1, convert_regs_2, convert_regs): Modified.
8643 * regclass.c (scan_one_insn, regclass): Modified.
8644 * regmove.c (mark_flags_life_zones, regmove_optimize,
8645 combine_stack_adjustments): Modified.
8646 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
8647 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
8648 * reorg.c (dbr_schedule): Modified.
8649 * resource.c (find_basic_block, init_resource_info): Modified.
8650 * sbitmap.c (sbitmap_intersection_of_succs,
8651 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
8652 sbitmap_union_of_preds): Modified.
8653 * sched-deps.c (init_dependency_caches): Modified.
8654 * sched-ebb.c (schedule_ebbs): Modified.
8655 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
8656 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
8657 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
8658 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
8659 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
8660 ssa_const_prop): Modified.
8661 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
8662 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
8663 * ssa.c (remove_phi_alternative, find_evaluations,
8664 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
8665 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
8666 make_regs_equivalent_over_bad_edges,
8667 make_equivalent_phi_alternatives_equival,
8668 compute_conservative_reg_partition,
8669 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
8670 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
8671 Modified.
8672
5a566bed
MM
86732002-05-16 Mark Mitchell <mark@codesourcery.com>
8674
8675 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
8676
48f6efae
NC
86772002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
8678
8679 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
8680 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8681 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
8682 calling CONSTANT_POOL_ADDRESS_P.
8683 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
8684 to decide whether to define __arm__ or __thumb.
355e4ec4 8685 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
48f6efae
NC
8686 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8687
b166fadd
NB
86882002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
8689
8690 * config/arc/arc.h (CPP_PREDEFINES): Remove.
8691 (CPP_SPEC): Update.
8692 (TARGET_CPU_CPP_BUILTINS): New.
8693
601328bb
NB
86942002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
8695
8696 * cpphash.h (cpp_macro): Move here, and make expansion a union.
8697 * cppmacro.c (cpp_macro): Remove.
8698 (enter_macro_context, replace_args, warn_of_redefinition,
8699 _cpp_create_definition, cpp_macro_definition): Update.
8700
ff48be5c
JM
87012002-05-16 Jason Merrill <jason@redhat.com>
8702
8703 * config/mips/mips.c (mips_output_external): Don't do sdata
8704 optimization for a variable with DECL_COMDAT set.
8705
805c42ba
AH
87062002-05-15 Aldy Hernandez <aldyh@redhat.com>
8707
355e4ec4
ZD
8708 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
8709 Cleanups for accepting modifiers on pointers.
8710 Fix predicate typos.
8711 Allow long pointers as well as int pointers.
805c42ba 8712
34fb9ba5
RH
87132002-05-15 Richard Henderson <rth@redhat.com>
8714
8715 * varasm.c (merge_weak): Remove special case for extern and common.
8716
62e118f5
MH
87172002-05-15 Matt Hiller <hiller@redhat.com>
8718
8719 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
355e4ec4 8720 XFAILing.
62e118f5
MH
8721 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
8722 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
8723 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
8724 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
8725 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
8726 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
8727
fefac463
AH
87282002-05-15 Aldy Hernandez <aldyh@redhat.com>
8729
355e4ec4 8730 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
fefac463 8731
5f004351
AH
87322002-05-15 Aldy Hernandez <aldyh@redhat.com>
8733
355e4ec4
ZD
8734 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
8735 ("altivec_mfvscr"): Read from VSCR.
8736
8737 Add vscr sets for the following insns: altivec_vctuxs,
8738 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
8739 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
8740 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
8741 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
8742 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
8743 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
8744 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
8745 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
8746 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
8747 altivec_vsum2sws, altivec_vsumsws.
8748
8749 * config/rs6000/rs6000.h: Add VSCR fixed register.
8750 (CALL_REALLY_USED_REGISTERS): Add vscr.
8751 (CALL_USED_REGISTERS): Same.
8752 (FIXED_REGISTERS): Same.
8753 (REG_ALLOC_ORDER): Same.
8754 (reg_class): Add VSCR_REGS.
8755 (REG_CLASS_NAMES): Same.
8756 (REG_CLASS_CONTENTS): Same.
8757 (VSCR_REGNO): New.
8758 (REGISTER_NAMES): Add vscr.
8759 (DEBUG_REGISTER_NAMES): Same.
8760 (ADDITIONAL_REGISTER_NAMES): Same.
8761 (FIRST_PSEUDO_REGISTER): Increment.
8762 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5f004351 8763
033afd11
RH
87642002-05-15 Jakub Jelinek <jakub@redhat.com>
8765
8766 * fold-const.c (fold): Fix a typo.
8767
87682002-05-15 Eric Botcazou <ebotcazou@multimania.com>
8769
8770 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
8771 comparison against the highest or lowest integer value before
8772 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
8773 transformation and that of an unsigned comparison against 0
8774 right after.
8775
14285ace
RH
87762002-05-15 Richard Henderson <rth@redhat.com>
8777
8778 * varasm.c (merge_weak): Error for any weakening after definition.
8779 Adjust weakening after use warning to catch more cases.
8780 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
8781 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
8782
194734e9
JH
8783Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
8784
8785 * invoke.texi (-malign-double): Re-add lost warning.
8786
8787 * i386-protos.h (x86_output_mi_thunk): Declare.
8788 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
8789 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
8790
8791 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
8792 when flag_asynchronous_unwind_tables is set.
8793
8794 * flags.h (flag_reorder_functions): Declare.
8795 * function.c (prepare_function_start): Initialize frequnecy.
14285ace 8796 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
194734e9
JH
8797 * Makefile.in (predict.o): Add dependency on target.h and params.h
8798 * defaults.h (HOT_TEXT_SECTION_NAME,
8799 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
8800 * predict.c (choose_function_section): New function.
8801 (estimate_bb_frequencies): Use it.
8802 * toplev.c (flag_reorder_functions): New global variable.
8803 (lang_independent_options): New.
8804 (parse_options_and_default_flags): Set.
8805 * varasm.c (assemble_start_function): Bypass functdion alignment
8806 for never executed functions.
8807 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
8808 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
8809 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
8810 Document.
8811
8812 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
8813
8814 * predict.c: Inlude profile.h
8815 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
8816 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
8817 Use the information about maximal counter in the program.
8818
8819 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
8820
8821 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
8822 probably_never_executed_bb_p): New functions.
8823 * cfgcleanup.c (outgoing_edges_match): Use them.
8824 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
8825 (maybe_hot_bb_p, probably_cold_bb_p,
8826 probably_never_executed_bb_p): New functions.
8827
8828 * function.h (function): Add new field function_frequency.
8829 * predict.c (compute_function_frequency): New function.
8830 (estimate_probability): Call it.
8831
61ad9a34
JJ
88322002-03-09 Jakub Jelinek <jakub@redhat.com>
8833
8834 PR optimization/5172, optimization/5200
8835 * gcse.c (gcse_main): Disable store_motion.
8836
a11eba95
ZW
88372002-05-14 Zack Weinberg <zack@codesourcery.com>
8838
8839 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
8840 (c_common_nodes_and_builtins): Use it.
8841 (builtin_define_with_value): New function.
8842 (cb_register_builtins): Define __SIZE_TYPE__,
8843 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
8844 using builtin_define_with_value. Use consistent notation when
8845 defining __GXX_WEAK__.
8846 (WCHAR_TYPE_SIZE): Don't redefine.
8847 (combine_strings): Don't use WCHAR_TYPE_SIZE.
8848
8849 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
8850 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
8851 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
8852 * tradcpp.c (initialize_builtins): Likewise.
8853 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
8854
8855 * c-lex.h (builtin_define_with_value): Prototype.
8856 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
8857 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
8858 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
8859
8860 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
8861 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
8862 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
8863 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
8864 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
8865 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
8866 config/sparc/sol2-bi.h, config/sparc/sparc.h:
8867 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
8868 to __SIZE_TYPE__ etc from all spec strings. When this makes
8869 extra specs empty, delete them.
8870
1c31ecf6
JDA
88712002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
8872
8873 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
8874 for PA8000 or generating dwarf2 call frame information.
8875 (output_call): Remove DO_FRAME_NOTES check from return pointer
8876 optimization.
8877 (following_call): Return 0 when scheduling for PA8000 or generating
8878 dwarf2 call frame information. Revise comment.
8879
ac9cfada
NB
88802002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
8881
8882config/alpha:
8883 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
8884 and __IEEE_FP_INEXACT as appropriate.
8885 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
8886 (CPP_SPEC): Remove ieee defines.
8887 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
8888
9b690711
RH
88892002-05-14 Richard Henderson <rth@redhat.com>
8890
8891 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
8892 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
8893
e6471be6
NB
88942002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
8895
e6471be6
NB
8896 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
8897 (CPP_SPEC): Update.
8898 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
8899 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
8900 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
8901 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
8902 (EXTRA_SPECS): Update.
8903 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
8904 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
8905 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
8906 define TARGET_OS_CPP_BUILTINS if necessary.
8907
e5f5feea
NB
89082002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
8909
8910 * gcc.c (cpp_options): Must pass -m* and -f* options
8911 to the front end even when only preprocessing.
8912 (cc1_options): Remove redundant -lang-c.
8913 * tradcpp.c (main): Ignore -m options.
8914objc:
8915 * lang-specs.h: Similarly.
8916
317638a8
VM
89172002-05-14 Vladimir Makarov <vmakarov@redhat.com>
8918
8919 * genautomata.c (transform_3): Add code for transformation
8920 `(A,B,...)+C -> A+C,B,...'.
8921
4d604303
JH
8922Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
8923
8924 * final.c (end_final): Do not output profile_arcs constructor, when
8925 no functions are instrumented.
8926
b18b06ed
JH
8927Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
8928
8929 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
8930
a12f97f0
GP
89312002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8932
8933 * doc/install.texi: Remove special markup originally required for
8934 HTML generation with texi2html.
8935
c1ae3eb4
AS
89362002-05-14 Andreas Schwab <schwab@suse.de>
8937
8938 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
8939 SELECT_SECTION.
8940 (UNIQUE_SECTION): Define to get small data correctly.
1b18fc2c
AS
8941
8942 * varasm.c (resolve_unique_section): Add third parameter
8943 flag_function_or_data_sections and use it instead of
8944 flag_function_sections.
8945 (assemble_start_function): Pass flag_function_sections.
8946 (asm_emit_uninitialised): Pass flag_data_sections.
8947 (assemble_variable): Likewise.
8948
8ee41eaf
RH
89492002-05-14 Richard Henderson <rth@redhat.com>
8950
8951 * config/i386/i386.md: Use define_constants for unspec numbers.
8952 * config/i386/i386.c: Likewise.
8953
e6471be6
NB
89542002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
8955
8956 * doc/contrib.texi: Update my entry.
8957
c297b764
MM
89582002-05-13 Mark Mitchell <mark@codesourcery.com>
8959
8960 * fixinc/inclhack.def (winidss_valist): Limit applicability.
8961 * fixinc/fixincl.x: Regenerated.
8962 * fixinc/tests/base/math.h: Update.
8963 * fixinc/tests/base/testing.h: Likewise.
8964
0b42c8f8
ZW
89652002-05-13 Zack Weinberg <zack@codesourcery.com>
8966
8967 * genattr.c (gen_attr): Don't emit a comma after the last
8968 enumerator.
8969
546c093e
RH
89702002-05-13 Richard Henderson <rth@redhat.com>
8971
8972 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
8973 by non-local gotos.
8974 * recog.c (peephole2_optimize): Likewise.
8975
85be8c2d
AP
89762002-05-13 Andris Pavenis <pavenis@lanet.lv>
8977
8978 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
8979 input to O_BINARY.
8980
765b8f90
JL
89812002-05-13 Jeffrey A Law (law@redhat.com)
8982
fe4b3c79
JL
8983 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
8984 Update prototype and callers.
8985 (propagate_one_insn): Stack pointer adjustments kill MEMs on
8986 the mem_set_list which reference the stack pointer, as do
8987 calls to constant functions as they may clobber outgoing
8988 argument space.
8989
16133d00
JL
8990 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
8991
765b8f90
JL
8992 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
8993 (ia32_multipass_dfa_lookahead): New function.
8994
63826d5b
NB
89952002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
8996
8997 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
8998 (translate_options): Remove 'V'.
8999 (process_command): Similarly.
9000doc:
9001 * invoke.texi: Remove documentation of 'V'.
9002
dcb41ced
UW
90032002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
9004
9005 * config/s390/linux.h: Revert 2002-04-22 changes.
9006
8dfea428
SM
90072002-05-13 Scott Marks <SMarks@mobile-mind.com>
9008
9009 * config/fr30/fr30.md: Only allow splits of immediate loads
9010 if the destination is a register.
9011
12a41c22
NB
90122002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
9013
9014 * Makefile.in (c-common.o, cppinit.o): Update.
9015 * c-common.c: Include except.h.
9016 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
9017 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
9018 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
9019 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
9020 CPP_PREDEFINES): Handle here.
9021config:
9022 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
9023 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
9024 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
9025 TARGET_OS_CPP_BUILTINS.
9026 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
9027 (CPP_SPEC, EXTRA_SPECS): Update.
9028 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
9029 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
9030 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
9031 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
9032 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
9033doc:
9034 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
9035 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
9036
5692c7bc
ZW
90372002-05-12 Zack Weinberg <zack@codesourcery.com>
9038
9039 * emit-rtl.c (global_rtl): Update comment.
9040 (const_double_htab, const_double_htab_hash,
9041 const_double_htab_hash, lookup_const_double): New.
9042 (const_int_htab_hash, const_int_htab_eq): Remove const
9043 qualifiers, which cause tons of warnings with RTL checking on.
9044 (gen_rtx_CONST_DOUBLE): Deleted.
9045 (const_double_from_real_value): New function - bears some
9046 resemblance to the former immed_real_const_1.
9047 (immed_double_const): Moved here from varasm.c and
9048 simplified.
9049 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
9050 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
9051 (gen_rtx): Use immed_double_const.
9052 (init_emit_once): Initialize the const_double_htab. Use
9053 REAL_VALUE_FROM_INT where possible. Can now use
9054 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
9055 * varasm.c (struct varasm_status): Remove x_const_double_chain.
9056 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
9057 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
9058 (init_varasm_status, mark_varasm_status): Don't touch
9059 x_const_double_chain.
9060
9061 * output.h: Delete prototype for clear_const_double_mem.
9062 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
9063 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
9064 const_double_from_real_value, not immed_real_const_1, and use
9065 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
9066 CONST_DOUBLE_ATOF.
9067 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
9068 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
9069 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
9070 (gen_rtx_REG): Second arg is unsigned.
9071
9072 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
9073 (excluded_rtx): New, return true for CONST_DOUBLE.
9074 (genmacro): Write nothing for excluded codes.
9075 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
9076 * expr.c (expand_expr): Likewise.
9077 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
9078 CONST_DOUBLE_CHAIN.
9079 * toplev.c (rest_of_compilation): Don't call
9080 clear_const_double_mem.
9081
9082 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
9083 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
9084 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
9085 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
9086 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
9087 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
9088 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
9089 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
9090
31397a7b
KG
90912002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9092
9093 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
9094
1b70d38a
TT
90952002-05-12 Tom Tromey <tromey@redhat.com>
9096
9097 * tree.h (copy_node): Don't mention TREE_PERMANENT.
9098
9a5834ae
ZW
90992002-05-12 Zack Weinberg <zack@codesourcery.com>
9100
9101 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
9102 (scan_comma_elt): New function. Accepts whitespace in comma lists.
9103 * gensupport.h: Prototype new routines.
9104 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
9105 use of printf.
9106 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
9107 (next_comma_elt): Use scan_comma_elt.
9108
9109 * config/i386/i386.md: Use new attribute notation to break up
9110 long lines in define_attr forms.
9111
51286de6
RH
91122002-05-12 Richard Henderson <rth@redhat.com>
9113
9114 * expr.c (compress_float_constant): New.
9115 (emit_move_insn): Use it.
9116 (float_extend_from_mem): New.
9117 (init_expr_once): Initialize it.
9118 * real.c (exact_real_truncate): New.
9119
9120 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
9121 dropped into memory; penalize for size.
9122 (RTX_COSTS): FLOAT_EXTEND is free.
9123 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
9124 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
9125
6412341e
RH
91262002-05-12 Richard Henderson <rth@redhat.com>
9127
9128 * profile.h (profile_info): Add missing extern to declaration.
9129 * profile.c (profile_info): Define it.
9130
12877f09
JDA
91312002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9132
9133 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
9134 used for DImode and TImode.
9135
387f9e32
NB
91362002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
9137
9138 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
9139 fake a newline.
9140
e1a0f69c
ZW
91412002-05-11 Zack Weinberg <zack@codesourcery.com>
9142
9143 * config/rs6000/rs6000.c (rs6000_default_long_calls,
9144 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
9145 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
9146 (rs6000_override_options): Handle -m(no-)longcall.
9147 (init_cumulative_args, output_mi_thunk): Check for both
9148 longcall and shortcall attributes on the function.
9149 (rs6000_attribute_table): Add "shortcall".
9150 (rs6000_handle_longcall_attribute): Update comment.
9151 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
9152 altivec_expand_ternop_builtin): Add default clauses to switches
9153 to silence warnings.
9154
9155 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
9156 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
9157 (TARGET_OPTIONS): Add longcall and no-longcall.
9158
9159 * config/rs6000/rs6000.md (call_nonlocal_sysv,
9160 call_value_nonlocal_sysv): Split by alternatives. One pair
9161 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
9162 the call cookie. The other pair accepts only LR/CTR and has
9163 no restriction.
9164
9165 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
9166 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
9167 tmake_file.
9168 * config/rs6000/rs6000-c.c: New file.
9169 * config/rs6000/t-rs6000-c-rule: New file.
9170 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
9171 Prototype rs6000_pragma_longcall.
9172
9173 * doc/extend.texi: Document shortcall attribute.
9174 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
9175
9c64026d
JDA
91762002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9177
9178 * reorg.c (dbr_schedule): Remove unnecessary test.
9179
6c81a490
JH
9180Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
9181
9182 * i386.md (testsi to testqi spliters): New.
9183
9184 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
9185
9186 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
9187
9188 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
9189
9190 * basic-block.h: New flag EDGE_CAN_FALLTHRU
9191 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
9192 that can be made fallthru.
9193
9194 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
9195
9196 * cfglayout.c (cleanup_unconditional_jumps): New static function.
9197 (cfg_layout_initialize): Use it.
4c476cf3 9198
e4447d94
MM
91992002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
9200
9201 * config/avr/avr.c (avr_mcu_types): Update supported devices.
9202 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9203 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9204
3a538a66
KH
92052002-05-11 Kazu Hirata <kazu@cs.umass.edu>
9206
9207 * dbxout.c: Fix formatting.
9208 * dependence.c: Likewise.
9209 * df.c: Likewise.
9210 * diagnostic.c: Likewise.
9211 * doloop.c: Likewise.
9212 * dominance.c: Likewise.
9213 * doschk.c: Likewise.
9214 * dwarf2asm.c: Likewise.
9215 * dwarf2out.c: Likewise.
9216 * dwarfout.c: Likewise.
9217
2292e8fc
RH
92182002-05-10 Richard Henderson <rth@redhat.com>
9219
9220 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
9221 Convert integers constants as needed. Replace "nwords" field with
9222 "sizeof_bb".
9223 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
9224 * function.h: Fix typo in comment.
9225 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
9226
dbfb1116
RS
92272002-05-10 Roger Sayle <roger@eyesopen.com>
9228
9229 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
9230 into the equivalent (signed char)c > 0.
9231
79a497cd
JJ
92322002-05-10 Janis Johnson <janis187@us.ibm.com>
9233
9234 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
9235 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
9236 (struct prefetch_info): Fix spelling of member bytes_accessed.
9237 (emit_prefetch_instructions): Make dump messages more regular;
9238 restructure code to add more dump messages; use new macros for
9239 heuristics. (There are no code generation changes in any of this).
9240
6c45cb0d
DM
92412002-05-10 David S. Miller <davem@redhat.com>
9242
7440af14
DM
9243 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
9244 (struct rtx_def): Update unchanging flag comment.
9245 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
9246 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
9247 to be handled to INSN too.
9248 (dbr_schedule): Likewise.
9249 * resource.c (next_insn_no_annul): Likewise.
9250
6c45cb0d
DM
9251 * cse.c (rtx_cost): Remove multiplication by power of 2 special
9252 casing.
9253
29f21e4f
GP
92542002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9255
9256 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
9257 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
9258 (possibly) work around broken /bin/sh.
9259
e4ba88da
RO
92602002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9261
9262 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
9263 . as N64/N32 libgcc_s.so subdirs.
9264
4f4778ee
DM
92652002-05-10 David S. Miller <davem@redhat.com>
9266
9267 * config/sparc/sparc.md: Use define_constants for unspec numbers.
cf40ea15
DM
9268
9269 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
9270 more accurately.
9271 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
9272 comment.
9273 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
9274 * doc/rtl.texi: Document these macros more accurately.
9275 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
9276 JUMP_INSNs and CALL_INSNs.
9277 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
9278 or INSN_FROM_TARGET_P if the code is appropriate.
9279
1a499b92
MM
92802002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
9281
9282 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
9283 before using SYMBOL_REF_FLAG (addr).
9284
9285 * config/avr/avr-protos.h (avr_io_address_p): Declare.
9286 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
9287 Make non-static. Update all callers.
9288 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
9289 New insns to clear/set/test a single bit in I/O address space.
9290
65212b66
KG
92912002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9292
9293 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
9294
3df89291
NB
92952002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9296
9297 * Makefile.in: Update.
9298 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
9299 builtin_define_std): New.
9300 (c_common_init): Register CPP builtins callback.
9301 * c-common.h (flag_iso, flag_undef): New.
9302 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
9303 * c-lex.c: Don't include target.h.
9304 (cb_register_builtins): Move to c-common.c.
9305 (init_c_lex): Don't register hook here.
9306 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
9307 (cpp_define, cpp_assert): Remove.
9308 * gcc.c (cc1_options): Pass -undef to front end.
9309 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
9310 (TARGET_INITIALIZER): Update.
9311 * target.h (struct cpp_reader): Don't predeclare.
9312 (struct gcc_target): Remove cpp builtin hook.
9313 * tree.c (default_register_cpp_builtins): Remove.
9314doc:
9315 * tm.texi: Update.
9316
32fa4565
NB
93172002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9318
9319 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
9320
23357c55
RO
93212002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9322
9323 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
9324 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
9325
5aa26af0
JJ
93262002-05-09 Jakub Jelinek <jakub@redhat.com>
9327
9328 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
9329 * config/sparc/libgcc-sparc-glibc.ver: New file.
9330 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
9331 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
9332
2937267b
JJ
93332002-05-09 Jakub Jelinek <jakub@redhat.com>
9334
9335 PR target/6429
9336 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
9337 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
9338 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
9339 base multilibs.
9340 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
9341 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
9342 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9343 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9344
086c0f96
RH
93452002-05-09 Richard Henderson <rth@redhat.com>
9346
9347 * config/ia64/ia64.md: Use define_constants for unspec numbers.
9348 * config/ia64/ia64.c: Likewise.
9349
a8b4881f
RS
93502002-05-09 Richard Sandiford <rsandifo@redhat.com>
9351
9352 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
9353 (save_restore_insns): Likewise.
9354 (mips_expand_prologue, mips_expand_epilogue): Update callers.
9355 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
9356
243e5500 9357Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
890d52e8 9358
af2728a4
JL
9359 * athlon.md, k6.md, pentium.md, ppro.md): New files.
9360 * i386.md: Move scheduling information into new files.
9361
890d52e8
JL
9362 * i386.md (type attribute): Add "rotate" for rotate insns.
9363 (rotate insns): Set type to "rotate".
9364 (various attributes and function units): Treat rotate like shift.
9365 (pent_pair attribute): Only rotates by one bit position are
9366 pairable.
9367 (sbb insns): Explicitly set pent_pair attribute on a couple
9368 that were missing it.
9369
f78ec36a
R
9370Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
9371
9372 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
9373 make sure that buffer starts on odd word address.
9374 (sh_va_arg): Skip odd fp registers when reading a double precision
9375 value.
9376
ff431459
NB
93772002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9378
9379 * tree.h (preserve_data, object_permanent_p, type_precision):
9380 Remove.
9381
c3bf3e6e
NB
93822002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9383
9384 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
9385 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
9386doc:
9387 * cpp.texi: Update for removal of obsolete features.
9388
02263a8a
JH
9389Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
9390 Jeffrey A Law (law@redhat.com)
9391
9392 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
9393 the DFA interface for Pentium processors.
9394 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
9395 (attr_pent_pair, ix86_pent_find_pair): Remove.
9396 (ix86_sched_reorder_pentium): Remove.
9397 (ix86_sched_reorder): Remove reordering for Pentium.
9398 * i386.md (Pentium scheduling): Rewrite using DFA description.
9399
3e638a90
JH
9400Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
9401
9402 * cfganal.c (can_fallthru): Fix fast path.
9403 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
9404 with edges to the next block.
9405
b7c9bf28
JH
9406Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
9407 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
9408
9409 * final.c (end_final): Use C trees to output data structures for profiling.
9410
9411 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5692c7bc
ZW
9412 (profile.o): New dependency profile.h
9413 (final.o): New dependency profile.h
9414 * profile.h: New file. New global structure profile_info.
9415 * final.h (count_edges_instrumented_now): Declare.
9416 (current_function_cfg_checksum): Declare.
9417 (function_list): New structure.
9418 (functions_head, functions_tail): New static variables.
9419 (end_final): Emits more data, removed some -ax stuff.
9420 (final): Stores function names and chcksums.
9421 * gcov-io.h (__write_gcov_string): New function.
9422 (__read_gcov_string): New function.
9423 * gcov.c (read_profile): New function.
9424 (create_program_flow_graph): Uses read_profile instead of reading
b7c9bf28 9425 da_file.
5692c7bc
ZW
9426 (read_files): Removed da_file checking, it's done by read_profile now.
9427 * libgcc2.c (bb_function_info): New structure.
9428 (bb): New field in structure, removed some -ax stuff.
9429 (__bb_exit_func): Changed structure of da_file.
9430 * profile.c (count_edges_instrumented_now): New global variable.
9431 (current_function_cfg_checksum): New global variable.
9432 (max_counter_in_program): New global variable.
9433 (get_exec_counts): New function.
9434 (compute_checksum): New function.
9435 (instrument_edges): Sets count_edges_instrumented_now.
9436 (compute_branch_probabilities): Uses get_exec_counts instead of
b7c9bf28 9437 reading da_file.
5692c7bc
ZW
9438 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
9439 (init_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 9440 now.
5692c7bc 9441 (end_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 9442 now.
5692c7bc 9443 * gcov.texi: Updated information about gcov file format.
b7c9bf28 9444
786de7eb
KH
94452002-05-09 Kazu Hirata <kazu@cs.umass.edu>
9446
9447 * sbitmap.c: Fix formatting.
9448 * scan.c: Likewise.
9449 * scan-decls.c: Likewise.
9450 * sched-deps.c: Likewise.
9451 * sched-ebb.c: Likewise.
9452 * sched-rgn.c: Likewise.
9453 * sched-vis.c: Likewise.
9454 * sdbout.c: Likewise.
9455 * sibcall.c: Likewise.
9456 * simplify-rtx.c: Likewise.
9457 * ssa.c: Likewise.
9458 * ssa-ccp.c: Likewise.
9459 * ssa-dce.c: Likewise.
9460 * stmt.c: Likewise.
9461 * stor-layout.c: Likewise.
9462 * stringpool.c: Likewise.
9463
b7764693
DM
94642002-05-09 David S. Miller <davem@redhat.com>
9465
9466 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
9467
4e7d5d27
DM
94682002-05-07 David S. Miller <davem@redhat.com>
9469
9470 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
9471 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
9472 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
9473 library implementation clobbers the output before the inputs
9474 are fully consumed, use stack temporary for the output.
9475
f979570e
JT
94762002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
9477
9478 * config/netbsd.h (CPP_SPEC): Remove.
9479 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
9480 * config/i386/netbsd.h (CPP_SPEC): Define.
9481 * config/ns32k/netbsd.h (CPP_SPEC): Define.
9482 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
9483 * config/sparc/netbsd.h (CPP_SPEC): Define.
9484 * config/vax/netbsd.h (CPP_SPEC): Define.
9485
a6a2274a
KH
94862002-05-08 Kazu Hirata <kazu@cs.umass.edu>
9487
9488 * read-rtl.c: Fix formatting.
9489 * real.c: Likewise.
9490 * recog.c: Likewise.
9491 * regclass.c: Likewise.
9492 * regmove.c: Likewise.
9493 * reg-stack.c: Likewise.
9494 * reload1.c: Likewise.
9495 * reload.c: Likewise.
9496 * resource.c: Likewise.
9497 * rtlanal.c: Likewise.
9498 * rtl.c: Likewise.
9499 * rtl-error.c: Likewise.
9500
461b48d5
JDA
95012002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
9502
9503 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
9504 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
9505
95d075ff
BS
95062002-05-08 Bernd Schmidt <bernds@redhat.com>
9507
9508 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
9509 use __SSE2__ macro instead.
9510 * config/i386/xmmintrin.h: Likewise.
9511
2d4cc6a7
JJ
95122002-05-08 Janis Johnson <janis187@us.ibm.com>
9513
9514 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
9515 and use it in all invocations of these macros. Clean up comments.
9516 * rtl.c (rtl_check_failed_flag): Add an argument for the name
9517 of the flag access macro whose check failed.
9518 * doc/rtl.texi (Flags): Document additional flag uses.
9519
3f8ffc7c
RS
95202002-05-08 Robert Spier <rspier@pobox.com>
9521 Neil Booth <neil@daikokuya.demon.co.uk>
9522
9523 PR preprocessor/6521
9524 * cppfiles.c (handle_missing_header): Don't do anything
9525 different for <> includes.
9526doc:
9527 * cppopts.texi: Update documentation for -MG.
9528
b9e2d17b
NB
95292002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
9530
9531 * cpplex.c (cpp_interpret_charconst): Truncate as well as
9532 sign-extend.
9533doc:
9534 * cpp.texi: Clarify multichar charconst valuation.
9535
8d8269fa
MM
95362002-05-08 Mark Mitchell <mark@codesourcery.com>
9537
9538 * doc/invoke.texi: Document -mwindiss option.
9539
29b91443
JM
95402002-05-08 Jason Merrill <jason@redhat.com>
9541
9542 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
9543
9544 * dwarf2out.c (gen_type_die): Abort on broken recursion.
9545
9546 PR c++/6381
9547 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
9548 REAL_CST.
9549
6c76b950
NC
95502002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
9551
9552 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
9553 little-endian multilibs to override arm/thumb multilibs.
a5c76ee6 9554 Do not build hardware floating point multilibs, nor apcs-26
6c76b950
NC
9555 multilibs for the Thumb.
9556
f90bf7ca
MM
95572002-05-08 Mark Mitchell <mark@codesourcery.com>
9558
9559 PR c/6569.
9560 * varasm.c (mark_weak): New function.
9561 (merge_weak): Use it. Do not call declare_weak.
9562 (declare_weak): Use merge_weak.
9563
1e150f2c
JH
9564Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
9565
9566 * cse.c (dead_libcall_p): Update counts.
9567 (delete_trivially_dead_insns): Update call of dead_libcall_p.
9568
969d70ca
JH
9569Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
9570
9571 * cfglayout.c (function_tail_eff_head): Rename to ...
9572 (function_footer): ... this one.
9573 (unlink_insn_chain): New functions.
9574 (label_for_bb): Only call block_label and emit debug message.
9575 (record_effective_endpoints): Actually unlink the headers and footers.
9576 (fixup_reorder_cahin): Re-insert the unlinked sequences.
9577 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
9578 * cfglayout.h (struct reorder_block_def): New fields footer/header;
9579 remove eff_head/eff_end.
9580 * rtl.h (set_first_insn): Declare.
9581 * emit-rtl.c (set_first_insn): New function.
9582
9583 * cfglayout.c (fixup_reorder_chain): Dump duplicated
9584 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9585 cfg_layout_duplicate_bb): New global function.
9586 (duplicate_insn_chain): New static function.
9587 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9588 cfg_layout_duplicate_bb): Declare.
9589 (struct reorder_block_def): Add "original" field.
9590 * emit-rtl.c (emit_copy_of_insn_after): New function.
9591 * rtl.h (emit_copy_of_insn_after): Declare.
9592
9593 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
9594 (fixup_reorder_chain): properly handle edges to exit block.
9595
9596Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9597 Jan Hubicka <jh@suse.cz>
9598
9599 * basic-block.h (note_prediction_to_br_prob): declare.
9600 * c-semantics.c: Inlucde predit.h
9601 (expand_stmt): predict GOTO_STMT as not taken.
9602 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
9603 (cleanup_cfg): Do not free tail_recursion_list.
9604 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
9605 (flow_delete_block): Kill predictions past end of basic block.
9606 * output.h (delete_unreachable_blocks): Declare.
9607 * predict.c (predicted_by_p, process_note_predictions,
9608 process_note_prediction, last_block_p): New function.
9609 (estimate_probability): Bypass loop on PRED_CONTINUE;
9610 do not handle noreturn heuristics; kill PRED_RETURN; add
9611 PRED_EARLY_RETURN.
9612 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
9613 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
9614 * predict.h (IS_TAKEN): New constant.
9615 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
9616 * rtl.c (NOTE_INSN_PREDICTION): New.
9617 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
9618 New macro.
9619 (insn_note): add NOTE_INSN_PREDICTION.
9620 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
9621 CFG; free tail_recursion_label_list.
9622 * stmt.c: Include predict.h;
9623 (return_prediction): New.
9624 (expand_value_return): Use it.
9625 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
9626
41f8d041
RS
96272002-05-08 Richard Sandiford <rsandifo@redhat.com>
9628
9629 * config/mips/mips.md: Name the unspecs with define_constant.
9630 (*HILO_delay): Rename to 'hilo_delay' (no star).
9631 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
9632 (reload_outdi, reload_outsi): Likewise.
9633
9cabb1d8
KH
96342002-05-07 Kazu Hirata <kazu@cs.umass.edu>
9635
9636 * toplev.c: Fix formatting.
9637
4c76f856
JJ
96382002-05-07 Janis Johnson <janis187@us.ibm.com>
9639
9640 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
9641 * configure.in (ac_rtlflag_checking): New.
9642 * doc/install.texi (--enable-checking): Document RTL flag checking.
9643
44a147ad
NB
96442002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
9645
9646 * c-common.c (c_common_init): Set options->unsigned_wchar.
9647 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
9648 group target dependencies.
9649 (init_builtins, cpp_handle_option): Update.
9650 * cpplex.c (cpp_interpret_charconst): Update.
9651 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
9652 signed_char to unsigned_char, group target dependencies.
9653 * defaults.h (WCHAR_UNSIGNED): Remove.
9654 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
9655config:
9656 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
9657 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
9658 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
9659 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
9660 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
9661doc:
9662 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
9663
cace4f93
MM
96642002-05-07 Mark Mitchell <mark@codesourcery.com>
9665
9666 * fixinc/inclhack.def (windiss_math1): New fix.
9667 (windiss_math2): Likewise.
9668 (windiss_valist): Likewise.
9669 * fixinc/fixincl.x: Regenerated.
9670
e2ff6cee
AJ
96712002-05-07 Andreas Jaeger <aj@suse.de>
9672
9673 * genautomata.c (output_internal_min_issue_delay_func): Add
9674 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
9675 (output_internal_trans_func): Likewise.
9676
bdad4be5
JL
9677Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
9678
9679 * pa.c (hppa_profile_hook): Use force_reg to get the address
9680 of the profile hook into an appropriate pseudo register.
9681
a1ffecd9
MM
96822002-05-07 Mark Mitchell <mark@codesourcery.com>
9683
9684 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
9685 (LINK_START_SPEC): Handle it.
9686 (LINK_OS_SPEC): Likewise.
9687 (CPP_SPEC): Likewise.
9688 (STARTFILE_SPEC): Likewise.
9689 (LIB_SPEC): Likewise.
9690 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
9691 all platforms.
9692 (CRTSAVRES_DEFAULT_SPEC): New macro.
9693 (LIB_WINDISS_SPEC): New macro.
9694 (CPP_OS_WINDISS_SPEC): Likewise.
9695 (STARTFILE_WINDISS_SPEC): Likewise.
9696 (ENDFILE_WINDISS_SPEC): Likewise.
9697 (LINK_START_WINDISS_SPEC): Likewise.
9698 (LINK_OS_WINDISS_SPEC): Likewise.
9699 * config/rs6000/windiss.h: New file.
e2ff6cee 9700
df966bff
AH
97012002-05-07 Aldy Hernandez <aldyh@redhat.com>
9702
a5c76ee6 9703 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
df966bff 9704
db84f1bd
DM
97052002-05-06 David S. Miller <davem@redhat.com>
9706
9707 * config/sparc/sparc.md (shift insns): Do not mask off
9708 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
9709 take care of it.
9710
818c0c94
RH
97112002-05-06 Richard Henderson <rth@redhat.com>
9712
9713 PR c++/6212
9714 * expr.c (highest_pow2_factor_for_type): New.
9715 (expand_assignment): Use it.
9716
61e0b50f
AH
97172002-05-06 Aldy Hernandez <aldyh@redhat.com>
9718
818c0c94
RH
9719 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
9720 unspec_volatile.
9721 ("altivec_mfvscr"): Same.
61e0b50f 9722
5a63e069
JJ
97232002-05-06 Janis Johnson <janis187@us.ibm.com>
9724
9725 * rtl.h (struct rtx_def): Update comments.
9726 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
9727 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
9728 RTL_FLAG_CHECK macros with list of expected RTL codes.
9729 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
9730 (rtl_check_failed_flag): New.
9731 * reload1.c (reload): Use REG macro before changing rtx to MEM.
9732 (reload_cse_noop_set_p): Check rtx code before using access macro.
9733 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
9734 before using access macro.
9735
4afe3952
JJ
97362002-05-06 Janis Johnson <janis187@us.ibm.com>
9737
9738 * doc/rtl.texi (Flags): Update to reflect current usage.
9739
1f77b5da
RS
97402002-05-06 Roger Sayle <roger@eyesopen.com>
9741
9742 PR opt/3995
9743 * fold-const.c (sign_bit_p): New function.
9744 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
818c0c94 9745 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1f77b5da
RS
9746 Reapply fold when converting (A & C) == C into (A & C) != 0.
9747 (fold_binary_op_with_conditional_arg): Fix typo in comment.
9748
a5a49440
NB
97492002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
9750
9751 * c-common.c (warn_multichar): New.
9752 (c_common_init): Set CPP's warn_multichar.
9753 * c-common.h (warn_multichar): New.
9754 * c-decl.c (warn_multichar): Remove.
9755 * c-lex.c (lex_charconst): Update.
9756 * c-tree.h (warn_multichar): Remove.
9757 * cppexp.c (eval_token): Sign-extend charconst value.
9758 * cppinit.c (cpp_create_reader): Set warn_multichar.
9759 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
9760 each character. Update prototype. Sign-extend the result.
9761 * cpplib.h: Fix conditions.
9762 (struct cpp_options): Add new warning flag.
9763 (cpp_interpret_charconst): Update prototype.
9764doc:
9765 * cpp.texi: Update documentation.
9766
83e0be55
VM
97672002-05-06 Vladimir Makarov <vmakarov@redhat.com>
9768
9769 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
9770 Fix typo in usage of allof instead of unit.
9771
688ec718
RH
97722002-05-06 Richard Henderson <rth@redhat.com>
9773
9774 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
9775 and any jump or call for IN.
9776
f6536266
BS
97772002-05-06 Bernd Schmidt <bernds@redhat.com>
9778
e2ff6cee 9779 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
f6536266
BS
9780 -msse2.
9781 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
e2ff6cee 9782
0316d49b
RS
97832002-05-06 Roger Sayle <roger@eyesopen.com>
9784
9785 * fold-const.c (lshift-double): Cast the high word to an unsigned
9786 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
9787 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
9788 avoid compiler warning. (fold): Remove redundant code from
9789 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
9790
5d50fab3
JL
97912002-05-06 Jeff Law <law@redhat.com>
9792
9793 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
9794 * pa.c (pa_adjust_cost): Remove all true dependency cost
9795 adjustments. Also remove support for non-DFA scheduling.
9796 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
9797 to adjust true dependency costs. Update various comments.
9798 (7100lc, 7200, 7300 scheduling): Simplify by combining the
9799 FP ALU & MPY units into a single unit.
9800
a17a104c
CM
98012002-05-06 Catherine Moore <clm@redhat.com>
9802
9803 * config/v850/v850.c (compute_register_save_size): Make sure
818c0c94 9804 to count all of the registers that will be saved.
a17a104c 9805
7799175f
JH
9806Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
9807
9808 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
9809
0ac941a0
DM
98102002-05-06 David S. Miller <davem@redhat.com>
9811
9812 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
9813 allow result to overlap input operands in memory.
9814
95ff5d3f
NB
98152002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
9816
9817doc:
9818 * cpp.texi: Update multichar charconst docs.
9819
639e8b0c
NB
98202002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
9821
9822 * cpplex.c (cpp_interpret_charconst): Sign-extend each
9823 character. Don't ignore excess characters. Treat
9824 multicharacter character constants as signed.
9825 (cpp_parse_escape): Clarify diagnostic.
9826
84ea5bc1
JJ
98272002-05-05 Jakub Jelinek <jakub@redhat.com>
9828
9829 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
9830 use add instead of shift.
9831 (ashldi3_sp64): Likewise.
9832 (ashlsi3_const1, ashldi3_const1): Remove.
9833 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
9834 * config/sparc/sparc.c (const1_operand): New.
9835
40cd22f2
JT
98362002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
9837
9838 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
9839
cac01076
JJ
98402002-05-05 Jakub Jelinek <jakub@redhat.com>
9841
9842 PR target/6561
9843 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
9844
98791e3a
RH
98452002-05-05 Richard Henderson <rth@redhat.com>
9846
9847 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
9848 memory latency adjustments.
9849 (alpha_variable_issue): Remove.
9850 (alpha_use_dfa_pipeline_interface): New.
9851 (alpha_multipass_dfa_lookahead): New.
9852 * config/alpha/alpha.md: Remove define_function_unit scheduling;
9853 include new dfa scheduling.
9854 (attr type): Add none.
9855 (blockage): Use it.
9856 * config/alpha/ev4.md: New.
9857 * config/alpha/ev5.md: New.
9858 * config/alpha/ev6.md: New.
9859
309527ce
DM
98602002-05-05 David S. Miller <davem@redhat.com>
9861
9862 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
9863
68252e27
KH
98642002-05-05 Kazu Hirata <kazu@cs.umass.edu>
9865
9866 * cse.c: Fix formatting.
9867 * emit-rtl.c: Likewise.
9868
30cc9d00
VM
98692002-05-05 Vladimir Makarov <vmakarov@redhat.com>
9870
9871 * genautomata.c (initiate_states): Add additional guard to
9872 initialize `units_array'.
9873
deb09eff
VM
98742002-05-05 Vladimir Makarov <vmakarov@redhat.com>
9875
9876 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
9877 process_unit_to_form_the_same_automaton_unit_lists,
9878 form_the_same_automaton_unit_lists
9879 check_unit_distributions_to_automata): New prototypes and
9880 functions.
9881 (check_automata): Rename it into `check_automata_insn_issues'.
9882 (unit_decl): New fields `the_same_automaton_unit' and
9883 `the_same_automaton_message_reported_p'.
9884 (unit_decl_t): New typedef.
9885 (the_same_automaton_lists): New gloval variable.
9886 (unit_regexp, unit_set_el, units_array, units_cmp,
9887 output_get_cpu_unit_code_func): Use the typedef.
9888 (evaluate_max_reserv_cycles): Increment
9889 `description->max_insn_reserv_cycles'.
9890 (initiate_states): Don't increment `max_cycles_num'.
9891 (transform_insn_regexps): Move code around transformation of
9892 regexps from `generate'.
9893 (generate): Remove call of `transform_insn_regexps'.
9894 (expand_automata): Call `transform_insn_regexps' and
9895 `check_unit_distributions_to_automata'. Check errors before
9896 `generate'.
9897
9898 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
9899 automaton `ultrasparc3_1'.
e2ff6cee 9900
2443d4e1
NB
99012002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
9902
9903 * c-common.c (c_common_init): Set up CPP arithmetic.
9904 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
9905 something reasonable for the host.
9906 (sanity_checks): Add checks.
9907 (cpp_read_main_file): Call sanity_checks() from here...
9908 (cpp_post_options): ... not here.
9909 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
9910 * cpplib.h (struct cpp_options): New member int_precision.
9911
791a949f
FS
99122002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9913
9914 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
9915
091fb516
DM
99162002-05-04 David S. Miller <davem@redhat.com>
9917
f60ebeb7
DM
9918 * config/sparc/linux.h, config/sparc/linux64.h
9919 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
9920
214c6394
DM
9921 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
9922 more RTX codes.
9923 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
9924
091fb516
DM
9925 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
9926 of SETs.
9927
f2fdc802
TJ
99282002-05-05 Tim Josling <tej@melbpc.org.au>
9929
e2ff6cee 9930 * treelang; New directory for new sample language treelang.
f2fdc802 9931
3d90d290
NB
99322002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
9933
9934 * Makefile.in (c-lex.o): Update.
9935 * c-lex.c: Include target.h.
9936 (cb_register_builtins): New.
9937 (init_c_lex): Set builtins callback.
9938 * c-lex.h (cpp_define, cpp_assert): New prototypes.
9939 * cppinit.c (init_builtins): Use callback, including for
9940 GXX_WEAK.
9941 * cpplib.h (struct cpp_callbacks): New member.
9942 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
9943 (TARGET_INITIALIZER): Update.
9944 * target.h (struct gcc_target): New hook.
9945 * tree.c (default_register_cpp_builtins): New.
9946 * tree.h (default_register_cpp_builtins): New.
9947doc:
9948 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
9949
625458d0
NB
99502002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
9951
9952 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
9953 (cpp_post_options): Move sanity checks to...
9954 (sanity_checks): New.
9955 * cpplex.c (maybe_read_ucs): Fix prototype.
9956 (parse_string, cpp_parse_escape): Cast for %c format specifier.
9957 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
9958 if necessary.
9959
916b60b7
BS
99602002-05-04 Bernd Schmidt <bernds@redhat.com>
9961
9962 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
9963 builtins. Use V2DI patterns instead of TI for logical operations.
9964 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
9965 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
9966 (ix86_expand_builtins): Change the pattern used for movntdq.
9967 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
9968 sse2_nandv2di3): New patterns.
9969 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
9970 on operands.
9971 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
9972 (cvtdq2pd): Correct mode on operand 1.
9973 (sse2_umulsidi3): Describe without unspec.
9974 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
9975 machine modes.
9976 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
9977 (ashlv2di3): Likewise, from sse2_ashlv2di3.
9978 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
9979 ashlv4si3, ashlv2di3): Use SImode for shift count.
9980 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
9981 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
9982 New patterns.
9983 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
9984 New typedefs.
9985 (__m128i, __m128d): New macros.
9986 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
9987 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
9988 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
9989 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
9990 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
e2ff6cee 9991 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
916b60b7
BS
9992 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
9993 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
e2ff6cee 9994 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
916b60b7
BS
9995 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
9996 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
9997 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
9998 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
9999 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
10000 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
10001 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
10002 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
10003 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
10004 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
10005 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
10006 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
10007 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
10008 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
10009 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
10010 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
10011 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
10012 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
10013 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
10014 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
10015 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
10016 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
10017 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
10018 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
10019 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
10020 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
10021 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
10022 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
10023 functions.
e2ff6cee 10024 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
916b60b7
BS
10025 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
10026
c26fbbca
KH
100272002-05-04 Kazu Hirata <kazu@cs.umass.edu>
10028
10029 * dwarf2out.c: Fix formatting.
10030 * varasm.c: Likewise.
10031
0387639b
DE
100322002-05-04 David Edelsohn <edelsohn@gnu.org>
10033
10034 PR c/6543
10035 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
10036 clobber and use result as temporary value.
10037
8a28dbcc
JH
10038Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
10039
10040 * expr.c (force_operand): Use expand_simple_* to handle more
10041 cases.
10042
4268e8bb
NB
100432002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
10044
10045 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
10046 and sign-extension.
10047 (lex_charconst): Update for change in prototype of
10048 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
10049 appropriately.
10050 * cpphash.h (BITS_PER_CPPCHAR_T): New.
10051 * cppinit.c (cpp_create_reader): Initialize them for no
10052 change in semantics.
10053 (cpp_post_options): Add sanity checks.
10054 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
10055 and truncation issues. Calculate in type cppchar_t.
10056 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
10057 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
10058 run-time dependent precision correctly. Return whether the
10059 result is signed or not.
10060 * cpplib.c (dequote_string): Use cppchar_t; update.
10061 * cpplib.h (cppchar_signed_t): New.
10062 struct cpp_options): New precision members.
10063 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
ae1a07e0 10064 * cppexp.c (eval_token): Update.
4268e8bb 10065
af54350e
DM
100662002-05-03 David S. Miller <davem@redhat.com>
10067
2ce04b6b
DM
10068 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
10069 * config/sparc/sparc.c (sparc_rtx_costs): New function
10070 implementing RTX_COSTS and CONST_COSTS.
10071 * config/sparc/sparc.h (CONST_COSTS): Delete.
10072 (RTX_COSTS_CASES): Define.
10073 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
10074 the work.
10075
a1d9bd0c
DM
10076 * config/sparc/sparc.md (DFA schedulers): Split out...
10077 * config/sparc/cypress.md, config/sparc/hypersparc.md,
10078 config/sparc/sparclet.md, config/sparc/supersparc.md,
10079 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
10080
e87bb82e
DM
10081 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
10082 checks on it, always defined for Sparc.
10083
af54350e
DM
10084 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
10085 Tweak, and add more detailed comments.
10086
935bfb44
ZW
100872002-05-03 Zack Weinberg <zack@codesourcery.com>
10088
10089 * Re-apply patch accidentally reverted with
10090 DFA scheduler merge: remove all rules and variables to slurp
10091 source files out of libiberty and rebuild them with HOST_CC.
10092 ($(HOST_PREFIX_1)varray.o): New rule.
10093 (genattrtab rule): Word wrap.
10094
fa7a0712
JT
100952002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10096
10097 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
10098 (CPP_SUBTARGET_SPEC): Define.
10099 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
10100 cpp_subtarget specs.
10101 (CPP_SPEC): Redefine to include %(cpp_subtarget).
10102
14c93978
DM
101032002-05-03 David S. Miller <davem@redhat.com>
10104
10105 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
10106 * target.h (struct gcc_target): Delete cycle_display member.
10107
14d118d6
DM
10108 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
10109 (rtx_needs_barrier): Delete reference to cycle_display unspec.
10110 (ia64_sched_reorder2): Mention need for cycle display handling
10111 once such notes exist.
935bfb44 10112
b3ae1ccd
RH
101132002-05-03 Richard Henderson <rth@redhat.com>
10114
10115 * real.c (etoasc): Strip most trailing zeros for clarity.
10116 * sched-vis.c: Include real.h.
10117 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
10118 * Makefile.in (sched-vis.o): Add real.h.
10119
8f39865a
DM
101202002-05-03 David S. Miller <davem@redhat.com>
10121
10122 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
10123 no longer needed.
10124
b44140e7
AH
101252002-05-03 Aldy Hernandez <aldyh@redhat.com>
10126
935bfb44
ZW
10127 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
10128 when we get an out of range literal.
10129 (altivec_expand_ternop_builtin): Same.
10130 (altivec_expand_unop_builtin): Same.
10131 (altivec_expand_builtin): Same, for dss.
10132 (altivec_expand_builtin): Use trees instead of rtl when
10133 determining literal argument validity.
b44140e7 10134
aaaed752
DM
101352002-05-03 David S. Miller <davem@redhat.com>
10136
10137 Delete cycle display scheduling hook.
10138 * config/ia64/ia64.c (ia64_cycle_display,
10139 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
10140 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
10141 and use emit_insn_before instead of ia64_emit_insn_before.
10142 * config/ia64/ia64.md (unspec usage): Delete cycle display.
10143 (cycle_display): Delete insn pattern.
10144 * config/sparc/sparc.md (unspec usage): Delete cycle display.
10145 (cycle_display): Delete insn pattern.
10146 * config/sparc/sparc.c (sparc_cycle_display,
10147 TARGET_SCHED_CYCLE_DISPLAY): Delete.
10148 * doc/md.texi (cycle_display): Don't mention.
10149 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
935bfb44 10150
b37c2614
RH
101512002-05-03 Richard Henderson <rth@redhat.com>
10152
10153 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
10154 * recog.h: Declare them.
10155
10156 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
10157 * config/sparc/sparc.md: Use store_data_bypass_p instead.
10158 * config/sparc/sparc-protos.h: Update.
935bfb44 10159
e1c1132e
JT
101602002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10161
10162 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
10163 -D__arch64__. Add -D_LP64.
10164 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
10165 from sparc.h.
10166 (CPP_ARCH64_SPEC): Likewise.
10167 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
10168 (NO_BUILTIN_SIZE_TYPE): Undef.
10169
0b2fb0d7
VM
101702002-05-03 Vladimir Makarov <vmakarov@redhat.com>
10171
10172 * genautomata.c (min_issue_delay_pass_states): Change return type
10173 in the prototype.
10174 (min_issue_delay_pass_states): Change the algorithm.
10175 (min_issue_delay): Set up min_insn_issue_delay for the state.
10176 (output_min_issue_delay_table): Interchange the nested loops and
10177 and initiate min_insn_issue_delay for states.
935bfb44 10178
3d4ce12a
JH
10179Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
10180
10181 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
10182 jump is simplejump.
10183
10184Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
37ad04a5
JH
10185
10186 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
10187 sequence.
10188
b5482208
RH
101892002-05-03 Richard Henderson <rth@redhat.com>
10190
10191 PR opt/6534
10192 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
10193 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
10194 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
10195 code before JUMP, not EARLIEST.
10196
5a3085c5
JM
101972002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
10198
10199 * c-format.c (check_format_info_main): Don't check for presence of
10200 parameter for * width until after operand number has been read,
10201 and only check for it if format parameters are available.
10202 Fixes PR c/6547.
10203
40039424
JT
102042002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10205
10206 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
10207 (LINK_SPEC): Undef before defining.
10208
8157303b
JJ
102092002-05-03 Jakub Jelinek <jakub@redhat.com>
10210
10211 PR preprocessor/6489
10212 * tradcpp.c (fixup_newlines): New.
10213 (main, finclude): Use it.
10214
66319f5c
RS
102152002-05-03 Richard Sandiford <rsandifo@redhat.com>
10216
10217 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
10218 * config/mips/mips.c (mips_unique_section): Strip encoding from
10219 decl name.
10220
ce8076ad
JJ
102212002-05-03 Jakub Jelinek <jakub@redhat.com>
10222
10223 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
10224 mode.
10225
975c6e4e
RO
102262002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10227
10228 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
10229 (Specific): Removed buildstats references.
10230 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
10231 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
10232 Accomodate Solaris versions beyond 8.
10233 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
10234 (Specific, *-*-solaris2.8): Removed, obsolete.
10235
d70e94ec
JJ
102362002-05-03 Jakub Jelinek <jakub@redhat.com>
10237
10238 PR target/6542
10239 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
10240 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
10241 fill leaf_reg_remap with identity.
10242 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
10243
6b148bd9
KH
102442002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10245
10246 * config/h8300/crti.asm: Remove trailing spaces.
10247 * config/h8300/h8300.c: Likewise.
10248 * config/h8300/lib1funcs.asm: Likewise.
10249
609688f3
JM
102502002-05-02 Jason Merrill <jason@redhat.com>
10251
10252 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
10253 * c-decl.c (c_init_decl_processing): Use it.
10254 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
10255 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
10256 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
10257
3b03c671
KH
102582002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10259
10260 * regrename.c: Fix formatting.
10261 * tree.c: Likewise.
10262
3b4961bd
JH
10263Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
10264
10265 * i386.md (attribute memory): Handle compares properly.
10266
19cba4a0
JH
10267Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
10268
3b4961bd 10269 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
19cba4a0
JH
10270 to none.
10271
797a6ac1
KH
102722002-05-02 Kazu Hirata <kazu@cs.umass.edu>
10273
10274 * function.c: Fix formatting.
10275
6d0de005
JH
102762002-05-02 Jan Hubicka <jh@suse.cz>
10277
10278 * haifa-sched.c (schedule_insn): Print table of instructions and
10279 reservations.
10280 (sched_block): Do not print ready list at verbosity level 1.
10281 * sched-vis.c (print_insn): Make global.
10282 * sched-ebb.c (ebb_print_insn): Rename from...
10283 (print_insn): ... this one.
10284 * sched-int.h (print_insn): Declare
10285
0bfb9a69
RH
102862002-05-02 Richard Henderson <rth@redhat.com>
10287
10288 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
10289 emitted by cycle_display.
10290
6b976d99
LR
102912002-05-02 Loren J. Rittle <ljrittle@acm.org>
10292
10293 * doc/install.texi (*-*-freebsd*): Update to latest status.
10294
0a295052
JJ
102952002-05-02 Jakub Jelinek <jakub@redhat.com>
10296
10297 PR target/6540
10298 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
10299 * config/float-sparc.h: Assume 128-bit long double if
10300 __LONG_DOUBLE_128__ is defined.
10301
842d5d6c
VM
103022002-05-02 Vladimir Makarov <vmakarov@redhat.com>
10303
10304 * genattrtab.c (write_function_unit_info): Add a dummy element
10305 when num_units == 0.
10306
3d7a6309
HB
103072002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10308
10309 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
10310 TYPE_MODE (double_type_node) instead of DFmode.
10311
1b6763cf
JH
10312Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
10313
10314 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
10315 jumps post reload.
10316 * toplev.c (rest_of_compilation): Revert Richard's patch.
10317
b303008e
JDA
103182001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10319
10320 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
10321
6ed7412a
CM
103222002-05-02 Catherine Moore <clm@redhat.com>
10323
10324 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
10325
e0a2f705
KH
103262002-05-02 Kazu Hirata <kazu@hxi.com>
10327
b32d6163 10328 * combine.c: Fix comment typos.
e0a2f705
KH
10329 * expr.c: Likewise.
10330 * genautomata.c: Likewise.
10331 * stmt.c: Likewise.
10332 * tree.h: Likewise.
10333
38e23049
JM
103342002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
10335
10336 * doc/install.texi: State GNAT version requirements.
10337
40f4a97d
NC
103382002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
10339
10340 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
10341 of the frame pointer or arg pointer register which strict register
10342 checking is not enabled.
10343
0d6d6892
AH
103442002-05-02 Aldy Hernandez <aldyh@redhat.com>
10345
b5482208 10346 * gcc.dg/altivec-8.c: New.
0d6d6892 10347
b5482208
RH
10348 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
10349 PRE_INC and PRE_DEC for altivec modes.
0d6d6892 10350
abaa8559
BK
103512002-05-01 Bruce Korb <bkorb@gnu.org>
10352
10353 * fixinc/check.tpl(set-writable): make sure the function exists first
10354 * fixinc/inclhack.def(alpha_assert): fix test_text
10355 * fixinc/tests/base/assert.h: add in missing result
10356
ecab2143
JL
103572002-05-01 Jeff Law <law@redhat.com>
10358
10359 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
10360 'T' constraint.
10361
ea619b46
JB
103622002-05-01 Joel Brobecker <brobecker@gnat.com>
10363
10364 * dbxout.c (dbxout_type): Emit size information for range types,
10365 as well, but only when using GDB extensions.
10366
c72931a6
RH
103672002-05-01 Richard Henderson <rth@redhat.com>
10368
10369 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
10370 target-independent gnu binutils date test.
10371
2150ad33
RH
103722002-05-01 Richard Henderson <rth@redhat.com>
10373
10374 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
10375 info before expunging the block.
10376
1651cc96
JJ
103772002-05-01 Jakub Jelinek <jakub@redhat.com>
10378
10379 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
10380 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
10381 -M -or -MM is in effect.
10382
8998d5bf
ZW
103832002-05-01 Zack Weinberg <zack@codesourcery.com>
10384
10385 * config.gcc: Correct test of --enable-obsolete. Obsolete all
10386 A29k configurations.
10387 * doc/install.texi: Update to match.
10388
a81eed10
FS
103892002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10390
10391 PR bootstrap/6514
10392 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
10393 for duplicates. Always loop over whole list.
10394
8d53318f
RK
10395Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10396
10397 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
10398
4109b118
JS
103992002-05-01 Joel Sherrill <joel@OARcorp.com>
10400
10401 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
10402 support routines.
10403
c4a9c570
JS
104042002-05-01 Joel Sherrill <joel@OARcorp.com>
10405
10406 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
10407
ea112fc4
DE
104082002-05-01 David Edelsohn <edelsohn@gnu.org>
10409
10410 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
10411 (nabs_nopower): Same.
10412 (floatdisf2): New pattern.
10413 (absdi2): Convert to define_insn_and_split.
10414 (nabsdi2): Same.
10415 (trunctfsf2): Same.
10416 (floatditf2): Same.
10417 (floatsitf2): Same.
10418 (fix_trunctfdi2): Same.
10419 (fix_trunctfsi2): Same.
10420
dda78254
JM
104212002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
10422
10423 * doc/install.texi: Update Texinfo version requirement
10424 documentation.
10425
26aeede4
JJ
104262002-05-01 Jakub Jelinek <jakub@redhat.com>
10427
10428 PR target/6512, PR target/5628
10429 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
10430 when memory is not aligned.
10431 (movdf_insn_v9only_vis): Likewise.
10432 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
10433 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
10434 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
10435
9b7bc465
AH
104362002-05-01 Aldy Hernandez <aldyh@redhat.com>
10437
8998d5bf 10438 * gcc.dg/altivec-7.c: New.
9b7bc465 10439
8998d5bf 10440 * config/rs6000/altivec.h: Cleanup.
9b7bc465 10441
08b57fb3
AH
104422002-04-30 Aldy Hernandez <aldyh@redhat.com>
10443
8998d5bf
ZW
10444 * doc/invoke.texi (Option Summary): Add -mvrsave=.
10445 (RS/6000 and PowerPC Options): Document -mvrsave=.
08b57fb3 10446
8998d5bf
ZW
10447 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
10448 (rs6000_altivec_vrsave_string): Same.
10449 (rs6000_override_options): Call rs6000_parse_vrsave_option.
10450 (rs6000_parse_vrsave_option): New.
10451 (rs6000_stack_info): Only generate vrsave instructions when
10452 TARGET_ALTIVEC_VRSAVE.
08b57fb3 10453
8998d5bf
ZW
10454 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
10455 (rs6000_altivec_vrsave_string): Define extern.
10456 (rs6000_altivec_vrsave): Same.
10457 (TARGET_ALTIVEC_VRSAVE): New.
08b57fb3 10458
8e8c38cd
RH
104592002-04-30 Richard Henderson <rth@redhat.com>
10460
10461 PR opt/6516
10462 * toplev.c (rest_of_compilation): Don't run cross-jump before
10463 bb-reorder.
10464
4be9e9cb
TR
104652002-04-30 Tom Rix <trix@redhat.com>
10466
8998d5bf 10467 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4be9e9cb
TR
10468 check which_alternative.
10469
1eeeb6a4
KH
104702002-04-30 Kazu Hirata <kazu@hxi.com>
10471
10472 * cpplex.c: Fix comment formatting.
10473 * function.c: Likewise.
10474 * integrate.c: Likewise.
10475 * regrename.c: Likewise.
10476 * sibcall.c: Likewise.
10477 * simplify-rtx.c: Likewise.
10478 * tree-inline.c: Likewise.
10479
ed9d6ff9
JDA
104802002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
10481
10482 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
10483 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
10484 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
10485 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
10486 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
10487 * pa/x-ada: New file. Define ADA_CFLAGS.
10488
1f2641b6
HPN
104892002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
10490
10491 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
10492 from MMIX_LAST_REGISTER_FILE_REGNUM.
10493 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
10494 (struct machine_function): New member highest_saved_stack_register
10495 previously static variable in mmix.c.
10496 (MACHINE_DEPENDENT_REORG): Define.
10497 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
10498 (MMIX_OUTPUT_REGNO): New.
10499 (mmix_target_asm_function_prologue): Move calculation of last used
10500 saved-stack-register into...
10501 (mmix_machine_dependent_reorg): New function. Update to also handle
10502 !TARGET_ABI_GNU.
10503 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
10504 register names, simplify somewhat by new variable regno.
10505 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
10506 register.
10507 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
10508 emitting register names.
10509 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
10510 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
10511 Remove fixed FIXME.
10512 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
10513 Declare.
10514
10515 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
10516
73985940
RH
105172002-04-30 Richard Henderson <rth@redhat.com>
10518
10519 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
10520 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
10521 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
10522 emit_tfmode_cvt): New.
10523 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
10524 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
10525 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
10526 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
10527 * config/sparc/sparc-protos.h: Update.
10528
2b46bc67
JJ
105292002-04-30 Janis Johnson <janis187@us.ibm.com>
10530
10531 * install.texi (Final install): Add to the list of info to include
10532 in a report of a successful bootstrap, and add link to 3.1 list.
10533
3d34cd91
JH
10534Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
10535
10536 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
10537 (mode): Add vector modes
10538 (i387): Kill attribute.
10539 (unit): New attribute.
10540 (length_immediate): Grok new types.
10541 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
10542 (modrm): Use "unit".
10543 (memory): Handle MMX/SSE properly.
10544 (scheduling descriptions): Kill uses of fop1.
10545 (sse, mmx, fp patterns): Set type and mode properly.
10546
243e5500 10547Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
3193c415 10548
30482eb0
JL
10549 * pa.c (override_options): Default to PA8000 scheduling.
10550 * doc/invoke.texi (HP-PA options): Mention newly added 7300
10551 scheduling parameter.
10552
3193c415
JL
10553 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
10554 handling of double precision multiplies.
10555
10556 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
10557 fpdiv and fpsqrt instructions.
10558 (7200 & 7300 scheduling): Fix typo in handling of
10559 store-load and store-store penalties.
10560
c0a34cb7
GP
105612002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10562
10563 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
10564 mips. Add two missing commas.
10565
8bce0628
PC
105662002-04-30 Paolo Carlini <pcarlini@unitus.it>
10567
10568 * doc/contrib.texi (Contributors): Update Paolo Carlini's
10569 and Benjamin Kosnik's entries.
10570
84643cbf
DM
105712002-04-29 David S. Miller <davem@redhat.com>
10572
10573 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
10574 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
10575 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
10576 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
10577
da6886f6
FS
105782002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10579
10580 * combine.c (find_split_point): Use gen_int_mode.
10581
fae15c93
VM
105822002-04-29 Vladimir Makarov <vmakarov@redhat.com>
10583
10584 Merging code from dfa-branch:
8998d5bf 10585
fae15c93
VM
10586 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
10587
10588 * genautomata.c (output_reserv_sets): Fix typo.
10589
10590 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
10591
10592 * genautomata.c (output_reserv_sets): Remove
10593 next_cycle_output_flag.
10594
10595 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
10596
8998d5bf
ZW
10597 * sched-rgn.c (init_ready_list): Make the DFA code handle
10598 USE/CLOBBER insns in the same way as the traditional
10599 scheduler.
10600 (new_ready): Similarly..
fae15c93
VM
10601
10602 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
10603
10604 * haifa-sched.c (schedule_block): Change the DFA state only after
10605 issuing insn.
10606
10607 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
10608
10609 * pa.c (hppa_use_dfa_pipeline_interface): New function.
10610 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
10611 (override_options): Add PA7300 scheduling support.
10612 (pa_adjust_cost): Update various comments. Properly
10613 handle anti and output dependencies when using the
10614 DFA scheduler.
10615 (pa_issue_rate): Add PA7300 scheduling support.
10616 (pa_can_combine_p): Call extract_insn before calling
10617 constrain_operands (taken from mainline tree).
10618 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
10619 * pa.md (cpu attr): Add 7300. Rewrite pipeline
10620 descriptions using DFA descriptions. Add PA7300
10621 scheduling support.
10622
10623 2002-03-30 David S. Miller <davem@redhat.com>
10624
10625 Add UltraSPARC-III DFA scheduling support.
10626 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
10627 Update FP conditional move on register insn patterns to use it, as
10628 appropriate.
10629 (define_attr cpu): Add ultrasparc3.
10630 (define_attr us3load_type): New, update integer load patterns to
10631 set it, as appropriate.
10632 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
10633 (rest): Add UltraSPARC3 scheduling description.
10634 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
10635 (PROCESSOR_ULTRASPARC3): New.
10636 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
10637 ({ASM,CPP}_CPU_SPEC): Likewise.
10638 (REGISTER_MOVE_COST): Likewise.
10639 (RTX_COSTS): Likewise.
10640 * config/sparc/sparc.c (sparc_override_options,
10641 sparc_initialize_trampoline, sparc64_initialize_trampoline,
10642 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10643 sparc_issue_rate): Likewise.
10644 * config/sparc/sol2.h: Likewise.
10645 * config/sparc/sol2-sld-64.h: Likewise.
10646 * config/sparc/linux64.h: Likewise.
8998d5bf 10647
fae15c93
VM
10648 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
10649
10650 * doc/md.texi: Add comments about usage the latency time for the
10651 different dependencies and about case when two or more conditions
10652 in different define_insn_reservations returns TRUE for an insn.
10653
10654 * doc/md.texi: Add reference for automaton based pipeline
10655 description.
8998d5bf 10656
fae15c93
VM
10657 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
10658
10659 * doc/passes.texi: Add missed information about genattrtab.
10660
10661 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
10662
10663 * genautomata.c (output_automata_list_transition_code): Check
10664 automata_list on NULL.
10665
10666 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
10667
10668 * genautomata.c (output_insn_code_cases,
10669 output_automata_list_min_issue_delay_code,
10670 output_automata_list_transition_code,
10671 output_automata_list_state_alts_code): Comment the functions.
10672
10673 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
10674
10675 * genautomata.c (automata_list_el_t): New typedef.
10676 (get_free_automata_list_el,free_automata_list_el,
10677 free_automata_list, automata_list_hash, automata_list_eq_p,
10678 initiate_automata_lists, automata_list_start, automata_list_add,
10679 automata_list_finish, finish_automata_lists,
10680 output_insn_code_cases, output_automata_list_min_issue_delay_code,
10681 output_automata_list_transition_code,
10682 output_automata_list_state_alts_code, add_automaton_state,
10683 form_important_insn_automata_lists): New functions and prototypes.
10684 (insn_reserv_decl): Add members important_automata_list and
10685 processed_p.
10686 (ainsn): Add members important_p.
10687 (automata_list_el): New structure.
10688 (first_free_automata_list_el, current_automata_list,
10689 automata_list_table): New global variables.
10690 (create_ainsns): Initiate member important_p.
10691 (output_internal_min_issue_delay_func): Generate the switch and
10692 call output_insn_code_cases.
10693 (output_internal_trans_func, output_internal_state_alts_func):
10694 Ditto.
10695 (generate): Call initiate_automata_lists.
10696 (automaton_states): New global variable.
10697 (expand_automata): Call form_important_insn_automata_lists.
10698 (write_automata): Call finish_automata_lists.
8998d5bf 10699
fae15c93
VM
10700 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
10701
10702 * genautomata.c (add_excls, add_presence_absence): Check that
8998d5bf 10703 cpu units in the sets belong the same automaton.
fae15c93
VM
10704
10705 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
10706 about that cpu units in the sets belong the same automaton.
10707
10708 * doc/md.texi: Ditto.
8998d5bf 10709
2799d721
VM
10710 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
10711 Nitin Gupta <niting@noida.hcltech.com>
8998d5bf 10712
fae15c93
VM
10713 * config/sh/sh.c (sh_use_dfa_interface): New function.
10714
10715 (sh_issue_rate): New Function.
10716 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
10717 TARGET_SCHED_ISSUE_RATE: define.
10718
10719 * config/sh/sh.md: Add DFA based pipeline description for SH4.
10720
8998d5bf
ZW
10721 (define_attr insn_class): New attribute used for DFA
10722 scheduling.
fae15c93
VM
10723 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
10724 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
10725 cmpeqdi_t): Likewise.
10726
10727 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8998d5bf 10728 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
fae15c93
VM
10729 ex_group.
10730 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8998d5bf 10731
fae15c93
VM
10732 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
10733
10734 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
10735 break.
10736
10737 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
10738
10739 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
10740 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
10741 necessary.
10742 (output_dfa_start_func): Initiate new variable insn_codes_length,
10743 (write_automata): Output definition of the new variable.
8998d5bf 10744
fae15c93
VM
10745 2001-10-02 David S. Miller <davem@redhat.com>
10746
10747 * haifa-sched.c (advance_one_cycle): New function.
10748 (schedule_block): Use it.
10749 (queue_to_ready): Use it, and also make sure to advance the DFA
10750 state on all stall cycles, not just those where insn_queue links
10751 are found.
10752
10753 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
10754
10755 * haifa-sched.c (max_issue): Remove last_p argument. Only return
10756 non-zero if the highest-priority instruction could be scheduled.
10757 (choose_ready): Remove last argument from max_issue call.
10758
10759 2001-09-28 David S. Miller <davem@redhat.com>
10760
10761 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
10762 ultrasparc and 3 for other multi-issue sparcs.
10763
10764 2001-09-27 David S. Miller <davem@redhat.com>
10765
10766 * config/sparc/sparc.md (cycle_display): New pattern.
10767 * config/sparc/sparc.c (sparc_cycle_display): New.
10768 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
10769
10770 2001-09-25 David S. Miller <davem@redhat.com>
10771
10772 Convert all of Sparc scheduling to DFA
10773 * config/sparc/sparc.md: Kill all define_function_unit
10774 directives and replace with DFA equivalent.
10775 * config/sparc/sparc.c (ultrasparc_adjust_cost,
10776 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
10777 ultra_fpmode_conflict_exists, ultra_find_type,
10778 ultra_build_types_avail, ultra_flush_pipeline,
10779 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
10780 ultrasparc_variable_issue, ultrasparc_sched_init,
10781 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
10782 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
10783 ultra_cur_hist, ultra_cycles_elapsed): Kill.
10784 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10785 ultrasparc_store_bypass_p): New.
10786 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
10787 Declare.
10788
10789 2001-09-24 David S. Miller <davem@redhat.com>
10790
10791 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
10792 ready->vec[foo] not ready[foo].
10793
10794 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
10795
10796 * doc/md.texi: Correct examples for define_insn_reservations
10797 `mult' and `div'.
10798
10799 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
10800
10801 * genautomata.c (create_automata): Print message about creation of
10802 each automaton.
10803 (generate): Remove printing meease about creation of
10804 automata.
10805
10806 2001-09-05 David S. Miller <davem@redhat.com>
10807
10808 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
10809 * config/sparc/linux64.h: Likewise.
10810
10811 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
10812
10813 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
10814 schedule_block, sched_init, sched_finish): Add missed calls of
10815 use_dfa_pipeline_interface.
10816
10817 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
10818 Ditto.
10819
10820 * sched-vis.c (get_visual_tbl_length): Ditto.
8998d5bf 10821
fae15c93
VM
10822 2001-08-27 Richard Henderson <rth@redhat.com>
10823
10824 * genattr.c (main): Emit state_t even when not doing scheduling.
10825
10826 2001-08-27 Richard Henderson <rth@redhat.com>
10827
10828 * genautomata.c (expand_automata): Always create a description.
10829
10830 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
10831
8998d5bf 10832 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
fae15c93
VM
10833 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
10834 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
10835 RTL constructions.
10836
10837 * genattr.c (main): New variable num_insn_reservations. Increase
10838 it if there is DEFINE_INSN_RESERVATION. Output automaton based
10839 pipeline hazard recognizer interface.
10840
10841 * genattrtab.h: New file.
10842
10843 * genattrtab.c: Include genattrtab.h.
10844 (attr_printf, check_attr_test, make_internal_attr,
10845 make_numeric_value): Move protypes into genattrtab.h. Define them
10846 as external.
10847 (num_dfa_decls): New global variable.
10848 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
10849 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
10850 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
10851 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
10852
10853 * genautomata.c: New file.
10854
10855 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
10856
8998d5bf 10857 * sched-int.h: (curr_state): Add the external definition for
fae15c93
VM
10858 automaton pipeline interface.
10859 (haifa_insn_data): Add comments for members blockage and units.
10860
10861 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10862 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10863 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10864 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10865 TARGET_SCHED_DFA_POST_CYCLE_INSN,
10866 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10867 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
10868 macros.
10869 (TARGET_SCHED): Use the new macros.
10870
10871 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
10872 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
10873 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
10874 dfa_bubble): New members in gcc_target.sched.
10875
8998d5bf 10876 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
fae15c93
VM
10877 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
10878 (insn_queue): Redefine it as pointer to array.
10879 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
10880 INSN_QUEUE_SIZE.
10881 (max_insn_queue_index_macro_value): New variable.
10882 (curr_state, dfa_state_size, ready_try): New varaibles for
10883 automaton interface.
10884 (ready_element, ready_remove, max_issue): New function prototypes
10885 for automaton interface.
10886 (choose_ready): New function prototype.
10887 (insn_unit, blockage_range): Add comments.
10888 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
10889 FUNCTION_UNITS_SIZE == 0.
10890 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
10891 actual_hazard, potential_hazard): Add comments.
10892 (insn_cost): Use cost -1 as undefined value. Remove
10893 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
10894 pipeline interface.
10895 (ready_element, ready_remove): New functions for automaton
10896 interface.
10897 (schedule_insn): Add new code for automaton pipeline interface.
10898 (queue_to_ready): Add new code for automaton pipeline interface.
10899 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
10900 (debug_ready_list): Print newline when the queue is empty.
10901 (max_issue): New function for automaton pipeline interface.
10902 (choose_ready): New function.
10903 (schedule_block): Add new code for automaton pipeline interface.
10904 Print ready list before scheduling each insn.
10905 (sched_init): Add new code for automaton pipeline interface.
10906 Initiate insn cost by -1.
10907 (sched_finish): Free the current automaton state and finalize
10908 automaton pipeline interface.
10909
10910 * sched-rgn.c: Include target.h.
10911 (init_ready_list, new_ready, debug_dependencies): Add new code for
10912 automaton pipeline interface.
10913
10914 * sched-vis.c: Include target.h.
10915 (get_visual_tbl_length): Add code for automaton interface.
10916 (target_units, print_block_visualization): Add comments.
10917
8998d5bf 10918 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
fae15c93
VM
10919 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
10920 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
10921 (getruntime.o, genautomata.o): New entries.
10922 (genattrtab.o): Add new dependency file genattrtab.h.
10923 (genattrtab): Add new dependencies. Link it with `libm.a'.
10924 (getruntime.o, hashtab.o): New entries for canadian cross.
10925
10926 * doc/md.texi: Description of automaton based model.
10927
10928 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
10929 Add comments.
10930 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10931 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10932 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10933 TARGET_SCHED_DFA_POST_CYCLE_INSN,
10934 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10935 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10936 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
10937 hook descriptions.
10938 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
10939 MAX_DFA_ISSUE_RATE): New macro descriptions.
10940
10941 * doc/contrib.texi: Add dfa based scheduler contribution.
10942
10943 * doc/gcc.texi: Add more information about genattrtab.
10944
a2ff290c
RK
10945Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10946
10947 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
10948 adjust_address_nv call.
10949
f97903cc
JJ
109502002-04-29 Janis Johnson <janis187@us.ibm.com>
10951
10952 * doc/install.texi (Testing): Provide additional information, and
10953 a stronger encouragement, for running the testsuites.
10954
f41a6bf1
DD
109552002-04-29 DJ Delorie <dj@redhat.com>
10956
10957 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
10958 given in upper case.
10959
d8af0868
RO
109602002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10961
10962 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
10963 Solaris 2 <widec.h> if missing.
10964 * fixinc/fixincl.x: Regenerate.
10965 * fixinc/tests/base/widec.h: New file.
10966
1034407f
NC
109672002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
10968
10969 * toplev.c (f_options): Add "profile" switch so that
10970 -fno-profile can be used to disable -p.
10971
fbe5eb6d
BS
109722002-04-29 Bernd Schmidt <bernds@redhat.com>
10973
10974 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
10975 UV2DImode.
10976 * tree.c (build_common_tree_nodes_2): Likewise.
10977 * tree.h (enum tree_index): Likewise.
10978 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
10979
10980 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
10981 entries.
10982 (init_mmx_sse_builtins): Initialize SSE2 builtins.
10983 (ix86_expand_builtin): Add support for SSE2 builtins.
10984 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
10985 (VALID_SSE_REG_MODE): Use it.
10986 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
10987 (enum ix86_builtins): Add SSE2 builtins.
10988 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
10989 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
10990 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
10991 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
10992 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
10993 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
10994 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
10995 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
10996 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
10997 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
10998 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
10999 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
11000 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
11001 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
11002 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
11003 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
11004 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
11005 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
11006 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
11007 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
11008 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
11009 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
11010 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
11011 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
11012 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
11013 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
11014 lfence_insn): New patterns.
11015 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
11016 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
11017
44aefada
JH
11018Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
11019
11020 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
11021
d5482cdc
GP
110222002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11023
11024 * doc/contrib.texi (Contributors): Add Paolo Carlini and
11025 Janis Johnson.
11026 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
11027 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
11028 and CPU instead of cpu.
11029
2c4b77f3
JH
11030Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
11031
11032 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
11033 variables.
11034 (lang_independent_options): Add -fif-conversion, -fif-conversion2
11035 (rest_of_compilation): Do if conversion only when asked for.
11036 (parse_options_and_default_flags): Set new variables to 1 for -O1
11037 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
11038
3de72741
JH
11039Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
11040
11041 * i386.c (dbx64_register_map): Fix typo.
11042
8aa18a7d
JH
11043Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
11044
11045 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
11046 real_one_half, real_bb_freq_max): New static variables.
11047 (debug_profile_bbauxs): Kill.
11048 (process_note_predictions): Kill unused variable.
11049 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
11050 volatile double.
11051 (propagate_freq): Use REAL_ARITHMETICS.
11052 (estimate_bb_frequencies): Likevise; init new static variables.
11053 * Makefile.in (predict.o): Add dependency on real.h
11054
1bbad4c6
DM
110552002-04-28 David S. Miller <davem@redhat.com>
11056
11057 PR target/6500
11058 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
11059 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
11060 several {reads,writes} instead.
11061 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
11062 Define.
11063
3ef3f384
DM
110642002-04-27 David S. Miller <davem@redhat.com>
11065
11066 PR target/6494
11067 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
11068 of the stack bias.
11069
11070 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
11071 including signal.h and sys/ucontext.h, not needed.
11072
ec493bcb
HPN
110732002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
11074
11075 * varasm.c (output_constant_def): Correct test for not calling
11076 ENCODE_SECTION_INFO for INTEGER_CST.
11077
60284a59
NB
110782002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
11079
11080 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
11081 keep most cases as function eval_token.
11082 (eval_token): New function.
11083 (_cpp_parse_expr): Read token here for improved diagnostics.
11084 Don't use op_as_text. Detect bad ':' here.
11085 (reduce): Don't detect bad ':' here.
11086 (op_as_text): Remove.
11087 * cpphash.h (_cpp_test_assertion): Change prototype.
11088 * cpplib.c (_cpp_test_assertion): Change prototype.
11089
349a4b40
RH
110902002-04-28 Richard Henderson <rth@redhat.com>
11091
11092 PR c/5154
8998d5bf 11093 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
349a4b40
RH
11094 (ggc_mark_rtx_children): New.
11095
7a03f82f
JJ
110962002-04-28 Jakub Jelinek <jakub@redhat.com>
11097
11098 PR target/6496
11099 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
11100 after call peepholes for UltraSPARC.
11101 (call + jump 64-bit peepholes): Remove.
11102
80103f96
FS
111032002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11104
11105 PR c/6497
11106 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
11107 result as temporary value.
11108
06990986
JJ
111092002-04-28 Jakub Jelinek <jakub@redhat.com>
11110
11111 PR c++/6396
11112 * toplev.c (rest_of_compilation): Only run regrename and copy
11113 propagation if optimizing.
11114
a20fd5ac
JJ
111152002-04-28 Jakub Jelinek <jakub@redhat.com>
11116
11117 PR optimization/6475
11118 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
11119 register of REGNO_DECL (i).
11120 * Makefile.in (reload1.o): Add $(TREE_H).
11121
87ed109f
NB
111222002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
11123
11124 * cppexp.c (lex): Update to use state.skip_eval.
11125 (struct op): Remove prio and flags members.
11126 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
11127 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
11128 (LEFT_ASSOC): New macro.
11129 (optab): New table of operator priorities and flags.
11130 (SHIFT): Update.
11131 (_cpp_parse_expr): Clean up logic. Return bool. Use a
11132 malloc-ed parser stack.
11133 (reduce): New; reduce the operator stack.
11134 (_cpp_expand_op_stack): Expand the operator stack as necessary.
11135 * cpphash.h (struct op): Predeclare.
11136 (struct cpp_reader): New members op_stack, op_limit.
11137 (struct lexer_state): New member skip_eval.
11138 (_cpp_parse_expr): Update.
11139 (_cpp_expand_op_stack): New.
11140 * cpplib.c (do_if): Update.
11141 * cppinit.c (cpp_create_reader): Create op stack.
11142 (cpp_destroy): And destroy it.
11143 * cpplib.h (CPP_LAST_CPP_OP): Correct.
11144 (TTYPE_TABLE): Correct.
11145
45806a3f
FS
111462002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11147
11148 PR c/6343
11149 * c-decl.c (duplicate_decls): Call merge_weak.
11150 * c-pragma.c (apply_pragma_weak): Warn about misuse.
11151 * output.h (merge_weak): Prototype merge_weak.
11152 * varasm.c (merge_weak): New function.
11153 (declare_weak): Make sure we don't give an error on VAR_DECLs.
11154 Mark RTL with SYMBOL_REF_WEAK.
11155
a6227154
KG
111562002-04-27 Kurt Garloff <garloff@suse.de>
11157
11158 * tree-inline.c (inlinable_function_p): Improve heuristics
11159 by using a smoother function to cut down allowable inlinable size.
11160 * param.def: Add parameters max-inline-insns-single,
11161 max-inline-slope, min-inline-insns that determine the exact
11162 shape of the above function.
11163 * param.h: Likewise.
11164
94a50397
RH
111652002-04-26 Richard Henderson <rth@redhat.com>
11166
11167 * c-parse.in (malloced_yyss, malloced_yyvs): New.
11168 (yyoverflow): Re-add. Set them.
11169 (free_parser_stacks): New.
11170 * c-common.h: Declare it.
11171 * c-lex.c (c_common_parse_file): Call it.
11172
9c0a0632
RH
111732002-04-26 Richard Henderson <rth@redhat.com>
11174
11175 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
11176 for fallthru search.
11177
b875d2ee
EC
111782002-04-26 Eric Christopher <echristo@redhat.com>
11179
11180 PR optimization/3700
11181 * config/mips/mips.c (mips_issue_rate): Define. New function.
11182 (TARGET_SCHED_ISSUE_RATE): Use.
11183
1db828df
DM
111842002-04-25 David S. Miller <davem@redhat.com>
11185
11186 PR target/6422
11187 * reorg.c (optimize_skip): Do not allow exception causing
11188 instructions to be considered for delay slots.
11189 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
11190 (relax_delay_slots): Do not try to consider exception causing
11191 instructions as redundant.
11192
ae5d234e
RH
111932002-04-26 Richard Henderson <rth@redhat.com>
11194
11195 PR c/5225
11196 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
11197
7d793e9b
MM
111982002-04-26 Mark Mitchell <mark@codesourcery.com>
11199
11200 PR bootstrap/6445
11201 * config/i386/i386.md (untyped_call): Return the value in a float
11202 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
11203 TARGET_80387.
11204
b13ab42c
AO
112052002-04-26 Alexandre Oliva <aoliva@redhat.com>
11206
11207 * tree.c (tree_int_cst_lt): Compare constants whose types differ
11208 in unsigned-ness correctly.
11209
5e56f909
JDA
112102002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11211
11212 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
11213 portable runtime model.
11214
bde3c0c0
RH
112152002-04-26 Richard Henderson <rth@redhat.com>
11216
a6227154 11217 * c-parse.in (yyoverflow): Revert.
bde3c0c0 11218
5276df18
DE
112192002-04-26 David Edelsohn <edelsohn@gnu.org>
11220 Richard Henderson <rth@redhat.com>
11221
11222 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
11223 result as temporary value.
11224
b84a3874
RH
112252002-04-26 Richard Henderson <rth@redhat.com>
11226
11227 PR c/3581
11228 * c-common.c (fix_string_type): Split out of ...
11229 (combine_strings): ... here. Take a varray, not a tree list.
11230 (c_expand_builtin_printf): Use fix_string_type.
11231 * c-common.h: Update decls.
11232 * c-parse.in (string): Remove. Update all uses to use STRING
11233 instead, and not call combine_strings.
11234 (yylexstring): New.
11235 (_yylex): Use it.
11236 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
11237 (build_asm_stmt): Likewise.
11238 * objc/objc-act.c (my_build_string): Use fix_string_type.
11239 (build_objc_string_object): Build varray for combine_strings.
11240
d8ae8cd4
BT
112412002-04-26 Bo Thorsen <bo@suse.co.uk>
11242
11243 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
11244 x86-64.
11245
f8b954fc
NB
112462002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
11247
11248 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
11249 (HAVE_NO_R_OPERAND): Remove.
11250 (HAVE_VALUE): Remove.
11251 (op_to_prio): Update.
11252 (UNARY): Don't alter flags.
11253 (_cpp_parse_expr): want_value used to indicate whether
11254 a number or unary operator is expected next. Distinguish
11255 unary and binary +/-.
11256 (op_as_text): Update for unary operators.
11257
6052bef0
RH
112582002-04-25 Richard Henderson <rth@redhat.com>
11259
11260 PR c/2161
11261 * c-parse.in (yyoverflow): New.
11262
5c5b2283
RH
112632002-04-25 Richard Henderson <rth@redhat.com>
11264
11265 PR c/2098
11266 * c-common.c (shorten_compare): Simplfy conditions leading to
11267 the generation of a warning.
11268
28ce94d4
RH
112692002-04-25 Richard Henderson <rth@redhat.com>
11270
11271 PR c/2035
11272 * expmed.c (extract_bit_field): Fall through to generic code rather
11273 than aborting on subreg special case.
11274
6bfd0c63
DM
112752002-04-25 David S. Miller <davem@redhat.com>
11276
11277 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
11278 for DECL being NULL.
11279
7a430e3b
SC
112802002-04-25 Steve Christiansen <smc@us.ibm.com>
11281
11282 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
11283
45c42d7d
EB
112842002-04-25 Eric Botcazou <ebotcazou@multimania.com>
11285
11286 * c-decl.c (grokdeclarator): Remove outdated ??? note
11287 on invalid declaration of flexible array members.
11288
eb7715a4
RH
112892002-04-25 Richard Henderson <rth@redhat.com>
11290
11291 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
11292
cf5ee720
UW
112932002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
11294
11295 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
11296 needed by the compiler, even if they are used as global regs.
11297
d604bca3
MH
112982002-04-25 Matt Hiller <hiller@redhat.com>
11299
11300 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
11301 functions.
11302 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
11303 of the corresponding functions.
11304 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
11305 New prototypes.
b875d2ee 11306
d604bca3
MH
113072002-04-25 Matt Hiller <hiller@redhat.com>
11308
11309 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
11310
11311 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
11312 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
11313 registers, adjust comment accordingly.
11314 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
11315 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
11316 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
11317 for coprocessor registers.
11318 (ADDITIONAL_REGISTER_NAMES): Include
11319 ALL_COP_ADDITIONAL_REGISTER_NAMES.
b875d2ee 11320
d604bca3
MH
11321 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
11322 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
11323 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
11324 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
11325 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
11326
11327 (mips_char_to_class): Adjust comment to include coprocessor
11328 constraint letters.
11329
11330 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
11331 New functions.
11332 (mips_reg_names, mips_regno_to_class): Include coprocessor
11333 information.
11334 (mips_sw_reg_names): Ditto, make non-static.
11335 (mips_move_1word): Handle moves to and from coprocessor registers.
11336 (mips_move_2words): Handle moves to and from coprocessor
11337 registers.
11338 (mips_class_max_nregs, mips_register_move_cost): Handle
11339 coprocessor register classes.
11340 (override_options): Initialize mips_char_to_class and
11341 mips_hard_regno_mode_ok properly for coprocessor registers.
11342
11343 * config/mips/mips.md (movdi_internal, movdi_internal2,
11344 movsi_internal1, movsi_internal2): Add constraint-sets for
11345 coprocessor registers.
11346 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
11347 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
11348 isn't mips.
11349 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
11350 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
11351 isn't mips.
11352 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
11353 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
11354 isn't mips.
11355 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
11356 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
11357 isn't mips.
b875d2ee 11358
d604bca3
MH
11359 * doc/tm.texi: Document feature.
11360
b9a26d09
NB
113612002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11362
11363 * integrate.c (function_attribute_inlinable_p): Simplify.
11364 Check the table pointer is not NULL.
11365
ab5973b7
SB
113662002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
11367
11368 * doc/c-tree.texi: Fix typo in introduction.
11369
ff45c01e
NB
113702002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11371
11372 * c-common.h (c_common_parse_file): Update.
11373 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11374 * c-lex.c (YYDEBUG): Get from c-lex.h.
11375 (c_common_parse_file): Update.
11376 * c-lex.h (YYDEBUG, yydebug): New.
11377 * c-parse.in (YYDEBUG): Get from c-lex.h.
11378 (c_set_yydebug): Remove.
11379 * c-tree.h (c_set_yydebug): Remove.
11380 * langhooks-def.h (lhd_do_nothing_i): New.
11381 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
11382 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
11383 * langhooks.c (lhd_do_nothing_i): New.
11384 (lhd_set_yydebug): Remove.
11385 * langhooks.h (struct lang_hooks): Update.
11386 * toplev.c (set_yydebug): New.
11387 (compile_file): Update call to parse_file hook.
11388 (decode_d_option): Update.
11389objc:
11390 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11391
fcae219a
R
11392Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
11393
11394 * loop.c (load_mems): Don't change the interface of called functions.
11395
11396 * calls.c (expand_call): Take current_function_pretend_args_size
11397 into account when setting argblock for sibcalls.
11398
d0fea45a
MH
113992002-04-24 Matt Hiller <hiller@redhat.com>
11400
11401 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
11402 * c-lex.c: Ditto.
11403
11404 * cpplex.c (skip_line_comment): Process comment one multibyte
11405 character at a time rather than one char at a time, if
11406 appropriate.
11407 (parse_string): Process string one multibyte character at a time
11408 rather than one char at a time, if appropriate.
11409 * c-lex.c (lex_string): Lex and copy multibyte strings
11410 appropriately.
11411 * cpplib.h (cppchar_t): Change to unsigned.
11412
2d1b5436
RH
114132002-04-24 Richard Henderson <rth@redhat.com>
11414
11415 PR c/3467
11416 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
11417 for c99.
11418
5e039e6b
R
11419Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
11420
11421 * sh.c (sh_va_arg): If argument was passed by reference,
11422 dereference the pointer.
309d8365
R
11423
11424 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
51214775
R
11425
11426 * sh.md (divsi3_i4_media): Use match_operand for input values
11427 rather than hard registers.
11428 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
11429 unnecessarily through hard registers. Keep copies of pseudo
11430 registers outside of the libcall sequence.
11431
11432 * sh.md (casesi_shift_media): Add modes.
b700634a
R
11433
11434 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
11435 values in memory.
11436
349ae713
NB
114372002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
11438
11439 * attribs.c (c_common_attribute_table): Move table and handlers
11440 to c-common.c.
11441 (format_attribute_table, lang_attribute_table,
11442 lang_attribute_common): Remove.
11443 (init_attributes): Replace NULL pointers with pointers to the
11444 empty table.
11445 (handle_packed_attribute, handle_nocommon_attribute,
11446 handle_common_attribute, handle_noreturn_attribute,
11447 handle_noinline_attribute, handle_always_inline_attribute,
11448 handle_used_attribute, handle_unused_attribute,
11449 handle_const_attribute, handle_transparent_union_attribute,
11450 handle_constructor_attribute, handle_destructor_attribute,
11451 handle_mode_attribute, handle_section_attribute,
11452 handle_aligned_attribute, handle_weak_attribute,
11453 handle_alias_attribute, handle_visibility_attribute,
11454 handle_no_instrument_function_attribute, handle_malloc_attribute,
11455 handle_no_limit_stack_attribute, handle_pure_attribute,
11456 handle_deprecated_attribute, handle_vector_size_attribute,
11457 vector_size_helper): Move to c-common.c.
11458 * c-common.c (c_common_attribute_table,
11459 handle_packed_attribute, handle_nocommon_attribute,
11460 handle_common_attribute, handle_noreturn_attribute,
11461 handle_noinline_attribute, handle_always_inline_attribute,
11462 handle_used_attribute, handle_unused_attribute,
11463 handle_const_attribute, handle_transparent_union_attribute,
11464 handle_constructor_attribute, handle_destructor_attribute,
11465 handle_mode_attribute, handle_section_attribute,
11466 handle_aligned_attribute, handle_weak_attribute,
11467 handle_alias_attribute, handle_visibility_attribute,
11468 handle_no_instrument_function_attribute, handle_malloc_attribute,
11469 handle_no_limit_stack_attribute, handle_pure_attribute,
11470 handle_deprecated_attribute, handle_vector_size_attribute,
11471 vector_size_helper): Move from attribs.c.
11472 * c-common.h (c_common_attribute_table,
11473 c_common_format_attribute_table): New.
11474 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11475 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11476 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
11477 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
11478 (LANG_HOOKS_INITIALIZER): Update.
11479 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
11480 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
11481 * target.h: Update comment.
11482 * tree.c (default_target_attribute_table): Remove.
11483 * tree.h (default_target_attribute_table, format_attribute_table,
11484 lang_attribute_table, lang_attribute_common): Remove.
11485objc:
11486 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11487 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11488
84f0ace0
JM
114892002-04-24 Jason Merrill <jason@redhat.com>
11490
11491 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
11492 * dwarf2out.c (dwarf_attr_name): Support it.
11493 (gen_array_type_die): Emit it.
11494 (lookup_type_die): No special handling for VECTOR_TYPE.
11495 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
11496
120eaf28
RH
114972002-04-24 Richard Henderson <rth@redhat.com>
11498
11499 * config/mips/mips.md (movdi_usd): Renumber.
11500
e732178c
DM
115012002-04-24 David S. Miller <davem@redhat.com>
11502
11503 PR target/6420
11504 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
11505 32-bit Sparc and current_function_returns_struct is true.
11506
e879eb2f
JH
11507Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
11508
11509 * loop.c (canonicalize_condition): Use gen_int_mode.
11510
4287a893
AH
115112002-04-24 Aldy Hernandez <aldyh@redhat.com>
11512
11513 * config/rs6000/altivec.h: Cleanup file. Add non individual
11514 variants.
11515 (vec_vaddubm): New.
11516 (vec_vadduhm): New.
11517 (vec_vadduwm): New.
11518 (vec_vaddfp): New.
11519 (vec_vaddcuw): New.
11520 (vec_vaddubs): New.
11521 (vec_vaddsbs): New.
11522 (vec_vadduhs): New.
11523 (vec_vadduws): New.
11524 (vec_vaddsws): New.
11525 (vec_vand): New.
11526 (vec_vandc): New.
11527 (vec_vavgub): New.
11528 (vec_vavgsb): New.
11529 (vec_vavguh): New.
11530 (vec_vavgsh): New.
11531 (vec_vavguw): New.
11532 (vec_vavgsw): New.
11533 (vec_vrfip): New.
11534 (vec_vcmpbfp): New.
11535 (vec_vcmpequb): New.
11536 (vec_vcmpequh): New.
11537 (vec_vcmpequw): New.
11538 (vec_vcmpeqfp): New.
11539 (vec_vcmpgefp): New.
11540 (vec_vcmpgtub): New.
11541 (vec_vcmpgtsb): New.
11542 (vec_vcmpgtuh): New.
11543 (vec_vcmpgtsh): New.
11544 (vec_vcmpgtuw): New.
11545 (vec_vcmpgtsw): New.
11546 (vec_vcmpgtfp): New.
11547 (vec_vcmpgefp): New.
11548 (vec_vcfux): New.
11549 (vec_vcfsx): New.
11550 (vec_vctsxs): New.
11551 (vec_vctuxs): New.
11552 (vec_vexptefp): New.
11553 (vec_vrfim): New.
11554 (vec_lvx): New.
11555 (vec_lvebx): New.
11556 (vec_lvehx): New.
11557 (vec_lde): Add vector float variant.
11558 (vec_lvewx): New.
11559 (vec_lvxl): New.
11560 (vec_vlogefp): New.
11561 (vec_vmaddfp): New.
11562 (vec_vmhaddshs): New.
11563 (vec_vmaxub): New.
11564 (vec_vmaxsb): New.
11565 (vec_vmaxuh): New.
11566 (vec_vmaxsh): New.
11567 (vec_vmaxuw): New.
11568 (vec_vmaxsw): New.
11569 (vec_vmaxsw): New.
11570 (vec_vmaxfp): New.
11571 (vec_vmrghb): New.
11572 (vec_vmrghh): New.
11573 (vec_vmrghw): New.
11574 (vec_vmrglb): New.
11575 (vec_vmrglh): New.
11576 (vec_vmrglw): New.
11577 (vec_vminub): New.
11578 (vec_vminsb): New.
11579 (vec_vminuh): New.
11580 (vec_vminsh): New.
11581 (vec_vminuw): New.
11582 (vec_vminsw): New.
11583 (vec_vminfp): New.
11584 (vec_vmladduhm): New.
11585 (vec_vmhraddshs): New.
11586 (vec_msumubm): New.
11587 (vec_vmsummbm): New.
11588 (vec_vmsumuhm): New.
11589 (vec_vmsumshm): New.
11590 (vec_vmsumuhs): New.
11591 (vec_vmsumshs): New.
11592 (vec_vmuleub): New.
11593 (vec_vmulesb): New.
11594 (vec_vmuleuh): New.
11595 (vec_vmulesh): New.
11596 (vec_vmuloub): New.
11597 (vec_mulosb): New.
11598 (vec_vmulouh): New.
11599 (vec_vmulosh): New.
11600 (vec_vnmsubfp): New.
11601 (vec_vnor): New.
11602 (vec_vor): New.
11603 (vec_vpkuhum): New.
11604 (vec_vpkuwum): New.
11605 (vec_vpkpx): New.
11606 (vec_vpkuhus): New.
11607 (vec_vpkshss): New.
11608 (vec_vpkuwus): New.
11609 (vec_vpkswss): New.
11610 (vec_vpkshus): New.
11611 (vec_vpkswus): New.
11612 (vec_vperm): New.
11613 (vec_vrefp): New.
11614 (vec_vrlb): New.
11615 (vec_vrlh): New.
11616 (vec_vrlw): New.
11617 (vec_vrfin): New.
11618 (vec_vrsqrtefp): New.
11619 (vec_vsel): New.
11620 (vec_vslb): New.
11621 (vec_vslh): New.
11622 (vec_vslw): New.
11623 (vec_vsldoi): New.
11624 (vec_vsl): New.
11625 (vec_vslo): New.
11626 (vec_vspltb): New.
11627 (vec_vsplth): New.
11628 (vec_vspltw): New.
11629 (vec_vspltisb): New.
11630 (vec_vspltish): New.
11631 (vec_vspltisw): New.
11632 (vec_vsrb): New.
11633 (vec_vsrh): New.
11634 (vec_vsrw): New.
11635 (vec_vsrab): New.
11636 (vec_vsrah): New.
11637 (vec_vsraw): New.
11638 (vec_vsr): New.
11639 (vec_vsro): New.
11640 (vec_stvx): New.
11641 (vec_stvebx): New.
11642 (vec_stvehx): New.
11643 (vec_stvewx): New.
11644 (vec_stvxl): New.
11645 (vec_vsububm): New.
11646 (vec_vsubuhm): New.
11647 (vec_vsubuwm): New.
11648 (vec_vsubfp): New.
11649 (vec_vsubcuw): New.
11650 (vec_vsububs): New.
11651 (vec_vsubsbs): New.
11652 (vec_vsubuhs): New.
11653 (vec_vsubshs): New.
11654 (vec_vsubuws): New.
11655 (vec_vsubsws): New.
11656 (vec_vsum4ubs): New.
11657 (vec_vsum4sbs): New.
11658 (vec_vsum4shs): New.
11659 (vec_vsum2sws): New.
11660 (vec_vsumsws): New.
11661 (vec_vrfiz): New.
11662 (vec_vupkhsb): New.
11663 (vec_vupkhpx): New.
11664 (vec_vupkhsh): New.
11665 (vec_vupklsb): New.
11666 (vec_vupklpx): New.
11667 (vec_vupklsh): New.
11668 (vec_vxor): New.
11669
cff27795
EB
116702002-04-23 Eric Botcazou <ebotcazou@multimania.com>
11671
11672 PR c/5430
11673 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
11674 added literals from substracted literals.
11675 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
11676 (fold) [associate]: Preserve MINUS_EXPR if needed.
11677
952bca84
ZW
116782002-04-23 Zack Weinberg <zack@codesourcery.com>
11679
11680 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
11681 are obsoleted.
11682
50cb2154
TT
116832002-04-23 Tom Tromey <tromey@redhat.com>
11684
11685 * gcc.c: Added --resource. For PR java/6314.
11686
271f61fb
DB
116872002-04-23 David O'Brien <obrien@FreeBSD.org>
11688
9566d1e9 11689 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
271f61fb
DB
11690 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
11691 these libraries.
11692
bdabbc80
DB
116932002-04-23 David O'Brien <obrien@FreeBSD.org>
11694
11695 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
11696
74411039
JH
11697Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
11698
11699 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
11700 workaround.
11701 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
11702 (ix86_expand_clrstr): Fix typo.
11703 * loop.c (gen_load_of_final_value): New.
11704 (loop_givs_rescan, strength_reduce, check_dbra_loop):
11705 Use it.
11706
1a887f86
RS
117072002-04-23 Roger Sayle <roger@eyesopen.com>
11708
11709 * builtins.c (builtin_memset_gen_str): New function.
11710 (expand_builtin_memset): Optimize the case of constant length, but
11711 unknown value.
11712
8d3441e0
AH
117132002-04-23 Aldy Hernandez <aldyh@redhat.com>
11714
cff27795
EB
11715 * config/rs6000/altivec.h (vec_step): Remove extraneous
11716 parentheses.
11717 (vec_ctu): Cast return.
8d3441e0 11718
f6f315fe
AM
117192002-04-23 Alan Modra <amodra@bigpond.net.au>
11720
11721 PR target/6413
11722 * function.h: (struct function): Add profile_label_no field.
11723 (current_function_profile_label_no): Define.
11724 * function.c: (profile_label_no): New static var.
11725 (expand_function_start): Increment it, and copy to
11726 current_function_profile_label_no.
11727 * output.h (profile_label_no): Delete.
11728 * final.c (profile_label_no): Delete.
11729 (profile_function): Use current_function_profile_label_no.
11730 (final_end_function): Don't increment profile_label_no here.
11731 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
11732 profile_label_no with current_function_profile_label_no.
11733 * config/pa/pa.c (current_function_number): Delete.
11734 (pa_output_function_prologue): Don't output profile label here.
11735 (hppa_profile_hook): Use label_no param rather than
11736 current_function_number.
11737 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
11738 * config/pa/pa.h: .. here.
11739 (FUNCTION_PROFILER): Output profile label here.
11740
d239cdc0
EC
117412002-04-22 Eric Christopher <echristo@redhat.com>
11742
11743 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
11744 patch of 2002-04-09 due to binutils issues.
11745 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
11746
04428ad4
AH
117472002-04-22 Aldy Hernandez <aldyh@redhat.com>
11748
cff27795
EB
11749 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
11750 constraint to 'o' for m=r and r=m alternatives.
11751 ("*movv8hi_internal1"): Same.
11752 ("*movv16qi_internal1"): Same.
11753 ("*movv4sf_internal1"): Same.
04428ad4 11754
2adc7f12
JJ
117552002-04-22 Janis Johnson <janis187@us.ibm.com>
11756
11757 * rtl.h (RTX_FLAG): New macro.
11758 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
11759 * final.c (alter_subreg): Use macro to access rtx flag.
11760 * integrate.c (copy_rtx_and_substitute): Use new access macro.
11761 * print-rtl.c (print_rtx): Use new access macro.
11762
11763 * cse.c (insert): Check rtx code before accessing flag.
11764
11765 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
11766 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
11767 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
11768 convert_const_symbol_ref, make_canonical, make_alternative_compare,
11769 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
11770 simplify_test_exp, optimize_attrs, simplify_by_exploding,
11771 find_and_mark_used_attributes, unmark_used_attributes,
11772 add_values_to_cover, simplify_with_current_value,
11773 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
11774 copy_rtx_unchanging, main): Use new access macros.
11775
b7c89afe
TR
117762002-04-22 Tom Rix <trix@redhat.com>
11777
11778 * expmed.c (init_expmed): Generate shifted constant once.
11779
9340544b
ZW
117802002-04-22 Zack Weinberg <zack@codesourcery.com>
11781
11782 * c-lex.c (lex_charconst): Call convert to get constant in
11783 proper type; don't just smash the type field.
11784 Fixes PR c/6300.
11785
11786 * config.gcc: Add list of obsolete configurations. Disallow
11787 building these without --enable-obsolete.
11788 * doc/install.texi: Document --enable-obsolete and obsoletion
11789 policy. Mention obsoletion of individual targets in
11790 appropriate places.
11791
f942d7a5
RH
117922002-04-22 Richard Henderson <rth@redhat.com>
11793
11794 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
11795
117962002-04-22 Mark Mitchell <mark@codesourcery.com>
8ed8f731
MM
11797
11798 PR f/6138.
11799 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
11800 (walk_fixup_memory_subreg): Likewise.
11801 (fixup_var_refs_insn): Adjust accordingly.
11802 (fixup_var_refs_1): Likewise.
11803
232b0b45
UW
118042002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
11805
11806 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
11807 LIBPATH_ARCH64_SPEC): Define.
11808 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
11809 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
11810 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
11811 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
11812
1b61552b
JS
118132002-04-22 Joel Sherrill <joel@OARcorp.com>
11814
11815 * gthr-rtems.h: Correct prototypes to remove warnings.
11816
0fe854a7
RH
118172002-04-22 Richard Henderson <rth@redhat.com>
11818
11819 PR c/6344
11820 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
11821
11822 * gcse.c (free_insn_expr_list_list): New.
11823 (clear_modify_mem_tables): Use it. Fix bit set usage.
11824 (canon_list_insert): Use EXPR_LISTs for expressions.
11825 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
11826
af0d16cd
NB
118272002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
11828
11829 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
11830 file change and include code to _cpp_pop_buffer.
11831 * cpphash.h (struct pending_option): Predeclare.
11832 (struct cpp_reader): New member next_include_file.
11833 (_cpp_pop_file_buffer): Update.
11834 (_cpp_push_next_buffer): Update, rename.
11835 * cppinit.c (cpp_destroy): Free include chain and pending here.
11836 (cpp_finish_options): Simplify.
11837 (_cpp_push_next_buffer): Rename and clean up.
11838 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
11839 Clarify.
11840 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
11841
0d918572
AH
118422002-04-22 Aldy Hernandez <aldyh@redhat.com>
11843
0fe854a7
RH
11844 * config/rs6000/altivec.h (vec_xor): Add variant for both args
11845 being vector signed int.
11846 (vec_andc): Same.
11847 (vec_xor): Add variant for both args being vector signed char.
11848 Remove redundant variant.
11849 (vec_andc): Same.
0d918572 11850
77e2c290
DM
118512002-04-21 David S. Miller <davem@redhat.com>
11852
11853 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
11854 compare mode in output RTL.
11855
ee2ca2a2
DE
118562002-04-22 David Edelsohn <edelsohn@gnu.org>
11857
11858 * config/rs6000/rs6000.c (rs6000_override_options): Correct
11859 style and formatting of previous patch.
11860
894bdff6
AM
118612002-04-22 Alan Modra <amodra@bigpond.net.au>
11862
11863 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
11864 flag_pic for ABI_AIX.
11865
562a5c27
NB
118662002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
11867
11868 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
11869 * cppfiles.c (read_include_file): Similarly.
11870 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
11871 uxstrdup ustrchr, ufputs): Similarly.
11872 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
11873 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
11874 cpp_ideq, parse_identifier, parse_number): Similarly.
11875 * cpplib.c (struct directive, dequote_string, D, run_directive,
11876 cpp_push_buffer): Similarly.
11877 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
11878 _cpp_create_definition, check_trad_stringification,
11879 cpp_macro_definition): Similarly.
11880
9ac3b1be
NB
118812002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
11882
11883 * cppmacro.c (funlike_invocation_p): Don't step back
11884 over CPP_EOF.
11885
9dda4cc8
DE
118862002-04-21 David Edelsohn <edelsohn@gnu.org>
11887
11888 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
11889 labelno.
11890
20764052
JM
118912002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
11892
11893 * doc/invoke.texi: Remove Chill references.
11894 * doc/gcc.texi: Update last modified date.
11895
26b29884
KH
118962002-04-20 Kazu Hirata <kazu@hxi.com>
11897
11898 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
11899 push and pop. Replace add.l with add.w.
11900
59184677
TM
119012002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
11902
11903 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
11904 multiply instructions for H8/300H case.
11905
b1113e0a
TM
119062002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
11907
11908 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
11909 Bum three instructions from each routine.
11910
b03e38e1
NB
119112002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
11912
11913 * Makefile.in: Update.
11914 * decl.c (push_c_function_context, pop_c_function_context,
11915 mark_c_function_context): Rename for consistency.
11916 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
11917 * c-tree.h (push_c_function_context, pop_c_function_context,
11918 mark_c_function_context): Rename for consistency.
11919 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11920 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
11921 * function.c (init_lang_status, save_lang_status,
11922 restore_lang_status, mark_lang_status, free_lang_status):
11923 Move to langhooks.h.
11924 (push_function_context_to, pop_function_context_from,
11925 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
11926 Update.
11927 * function.h (init_lang_status, save_lang_status,
11928 restore_lang_status, mark_lang_status, free_lang_status):
11929 Move to langhooks.h.
11930 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
11931 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
11932 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
11933 LANG_HOOKS_FUNCTION_INITIALIZER): New.
11934 (LANG_HOOKS_INITIALIZER): Update.
11935 (lhd_do_nothing_f): New.
11936 * langhooks.h (struct lang_hooks_for_functions): New.
11937 (struct lang_hooks): New hooks.
11938 * langhooks.c (lhd_do_nothing_f): New.
11939objc:
11940 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11941 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
11942
db430d26
DM
119432002-04-19 David S. Miller <davem@redhat.com>
11944
11945 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
11946 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
11947
0f2a3457
JJ
119482002-04-19 Jakub Jelinek <jakub@redhat.com>
11949
11950 PR optimization/3756
11951 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
11952 x = ((int) y < 0) ? cst1 : cst2.
11953
ce5e43d0
JJ
119542002-04-19 Jakub Jelinek <jakub@redhat.com>
11955
11956 PR c/6358
11957 * function.c: Reapply patch for c/6358.
11958 (expand_function_end): Copy decl_rtl's mode, not
11959 current_function_return_rtx mode.
11960
119612002-04-19 Joel Sherrill <joel@OARcorp.com>
9eb83f6c
JS
11962
11963 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
11964 targets.
11965
40e7f8ea
TT
119662002-04-19 Tom Tromey <tromey@redhat.com>
11967
11968 * doc/install.texi (Specific): Update status of Solaris 2.8.
11969 For PR libgcj/6158.
11970
62a12b27
AS
119712002-04-19 Andreas Schwab <schwab@suse.de>
11972
11973 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
11974 (PUT_REAL): Restore old definition.
11975
1405141b
DN
119762002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
11977 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11978
11979 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
11980 binutils 2.11.2 and higher generate smaller binaries than Sun's
11981 native tools.
11982
303a3927
MM
119832002-04-19 Mark Mitchell <mark@codesourcery.com>
11984
11985 PR c++/6352
11986 * toplev.c (rest_of_compilation): Do not defer functions for which
11987 TREE_SYMBOL_REFERENCED has already been set.
11988
de80110b
JH
11989Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
11990
11991 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
11992 alternative.
11993
ab393bf1
NB
119942002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
11995
11996 * builtins.c: Include langhooks.h.
11997 (lang_type_promotes_to): Remove.
11998 (expand_builtin_va_arg): Use new hook.
11999 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
12000 (simple_type_promotes_to): Move to c-typeck.c.
12001 * c-common.h (simple_type_promotes_to): Remove.
12002 * c-decl.c (duplicate_decls, grokdeclarator): Update.
12003 * c-format.c: Include langhooks.h.
12004 (check_format_types): Update.
12005 * c-tree.h (c_type_promotes_to): New.
12006 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
12007 (type_lists_compatible_p): Update.
12008 * langhooks-def.h (lhd_type_promotes_to): New.
12009 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
12010 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12011 * langhooks.c (lhd_type_promotes_to): New.
12012 * langhooks.h (struct lang_hooks_for_types): New hook.
12013 * tree.h (lang_type_promotes_to): Remove.
12014objc:
12015 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
12016
0cd3301b
RH
120172002-04-18 Richard Henderson <rth@redhat.com>
12018
58533fa2 12019 * function.c: Revert patch for c/6358.
0cd3301b
RH
12020
120212002-04-18 Richard Henderson <rth@redhat.com>
12022
58533fa2
RH
12023 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
12024 blocks. Handle multiple references to the TRAP block. Handle
12025 non-adjacent THEN and OTHER blocks.
0cd3301b 12026
58533fa2
RH
120272002-04-18 Richard Henderson <rth@redhat.com>
12028
12029 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
12030 crash with no type for by-mode libcalls.
12031
12032 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
0cd3301b 12033
57174693
BW
120342002-04-18 Bob Wilson <bob.wilson@acm.org>
12035
12036 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
12037 __xtensa_nonlocal_goto): Use a syscall instructions to flush
12038 the register windows.
12039
46468cd9
ZW
120402002-04-18 Zack Weinberg <zack@codesourcery.com>
12041
12042 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
12043 appropriate. Document need for extended precision even when
12044 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
12045 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
12046 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
12047 instead of relying on later syntax error when REAL_WIDTH > 5.
12048 * real.c: Define NE based only on whether or not we have a
12049 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
12050 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
12051 define GET_REAL and PUT_REAL as simple memcpy operations; no
12052 need to byteswap or round.
12053 Use #error instead of #ifdef-ing out the entire file, for
12054 prompt error detection.
12055
12056 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
12057
2f82dbf8
DM
120582002-04-18 David S. Miller <davem@redhat.com>
12059
12060 * config/sparc/sparc.h (BRANCH_COST): Define.
12061
12062 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
12063 does it.
12064
566576e7
HPN
120652002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
12066
12067 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
12068 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
12069 propagate_block calls after relaxation loop using new variable
12070 stabilized_prop_flags.
12071
51dcde6f
RH
120722002-04-18 Richard Henderson <rth@redhat.com>
12073
12074 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
12075 (ia64_va_arg): Expect variable sized types by reference.
12076 * config/ia64/ia64-protos.h: Update.
46468cd9 12077 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
51dcde6f
RH
12078 ia64_function_arg_pass_by_reference.
12079
26406018
RH
120802002-04-18 Richard Henderson <rth@redhat.com>
12081
46468cd9
ZW
12082 * ifcvt.c: Include except.h.
12083 (block_has_only_trap): Break out from find_cond_trap.
12084 (find_cond_trap): Use it. Always delete the trap block.
12085 (merge_if_block): Allow then block null. Be less simplistic about
12086 what insns can end a block.
12087 * Makefile.in (ifcvt.o): Depend on except.h.
96b453dc 12088
26406018
RH
12089 * config/ia64/ia64.md (trap, conditional_trap): New.
12090
a3acf46d
JJ
120912002-04-18 Jakub Jelinek <jakub@redhat.com>
12092
12093 PR c/6358
12094 * function.c (assign_parms): Assign hard current_function_return_rtx
12095 register here...
12096 (expand_function_end): ...not here.
12097
7a228918
NB
120982002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
12099
12100 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12101 * c-tree.h (c_incomplete_type_error): New.
12102 * c-typeck.c (require_complete_type, build_component_ref): Update.
12103 (incomplete_type_error): Rename.
12104 * langhooks-def.h (lhd_incomplete_type_error): New.
12105 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
12106 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12107 * langhooks.c (lhd_incomplete_type_error): New.
12108 * langhooks.h (struct lang_hooks_for_types): New hook.
12109 * tree.c (size_in_bytes): Use new hook.
12110 * tree.h (incomplete_type_error): Remove.
12111objc:
12112 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12113
f18664c1
ZW
121142002-04-18 Zack Weinberg <zack@codesourcery.com>
12115
12116 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
12117 TARGET_FLOAT_FORMAT blocks.
12118
8ecab453
GP
121192002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12120
12121 * doc/install.texi (Downloading the source): Do not mention Chill
12122 any longer, but mention Ada.
12123 (Configuration): Do not mention Chill any longer.
12124
528d8489
HPN
121252002-04-18 Hans-Peter Nilsson <hp@axis.com>
12126
12127 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
12128
91da27c5
JH
12129Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
12130
12131 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
12132 in last patch.
12133
a32db605
JJ
121342002-04-18 Jakub Jelinek <jakub@redhat.com>
12135
12136 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
12137 instead of unsigned_type.
12138
5a28d8cc
JH
12139Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
12140
12141 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
12142 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
12143 later.
12144
3d980b9f
BS
121452002-04-18 Bernd Schmidt <bernds@redhat.com>
12146
12147 * attribs.c (vector_type_node_list): New static variable.
12148 (handle_vector_size_attribute): Use it to avoid generating a
12149 new type node each time we are called.
12150
2e676d78
BS
12151 * combine.c (subst): Avoid trying to make a vector mode subreg of
12152 an integer constant.
12153 (gen_lowpart_for_combine): Likewise.
46468cd9 12154
58c2956c
RS
121552002-04-18 Roger Sayle <roger@eyesopen.com>
12156 Jakub Jelinek <jakub@redhat.com>
12157
12158 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
12159 for integer constant c (if x has unsigned type or sign bit is not
12160 set in c). This folds the zero/sign extension into the bit-wise and
12161 operation.
12162
692efa8e
JJ
121632002-04-18 Jakub Jelinek <jakub@redhat.com>
12164
12165 PR middle-end/6205
12166 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
12167 otherwise xorps.
12168
1372d4ce
NY
121692002-04-17 NIIBE Yutaka <gniibe@m17n.org>
12170
12171 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
12172
169ce44d
NC
121732002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
12174
12175 * gcc.c (read_specs): Detect and fail if an attempt is made to
12176 rename a spec string to an already existing string.
12177
b30d2115
UW
121782002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12179
12180 * config/s390/s390.c (legitimize_pic_address): Do not generate
12181 illegal address constant without CONST.
12182
d6964c30
KG
121832002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12184
12185 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
12186 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12187
7c82a1ed
UW
121882002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12189
12190 PR optimization/6305
12191 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
12192 to make sure previous reloads are taken into account. Generate
12193 better code if one operand is an in-range immediate constant.
12194
58db9d1a
AH
121952002-04-16 Andrew Haley <aph@cambridge.redhat.com>
12196
12197 * doc/install.texi (Building): libgcj requires GNU make.
12198
2a732575
JJ
121992002-04-17 Jakub Jelinek <jakub@redhat.com>
12200
12201 PR bootstrap/6315
12202 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
12203 even if hard quad and register is not floating.
12204 (movtf reg<-mem split): Disallow splitting if hard quad and
12205 register is floating.
12206 (movtf mem<-reg split): Likewise.
12207 * config/sparc/sparc.c (fp_register_operand): New predicate.
12208 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
12209
75a65e46
ZW
122102002-04-17 Zack Weinberg <zack@codesourcery.com>
12211
12212 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
12213 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
12214 (unprotoize.o): Ditto. Build from protoize.c. Define
12215 UNPROTOIZE on command line.
12216 * protoize.c: Include cppdefault.h. Delete include_defaults.
12217 (in_system_include_dir): Use cpp_include_defaults (defined in
12218 cppdefault.o).
12219 * unprotoize.c: Delete file.
12220
650f0e97
AH
122212002-04-17 Aldy Hernandez <aldyh@redhat.com>
12222
46468cd9
ZW
12223 * config/rs6000/altivec.h (vec_ld): Add array variants.
12224 (vec_lde): Same.
12225 (vec_ldl): Same.
650f0e97 12226
71a0ab0c 122272002-04-17 Alan Matsuoka <alanm@redhat.com>
46468cd9 12228 Aldy Hernandez <aldyh@redhat.com>
71a0ab0c 12229
46468cd9
ZW
12230 * config/rs6000/altivec.h: Define __ALTIVEC__.
12231 (bool): New.
12232 (__pixel): New.
12233 (pixel): New.
12234 (vec_cfux): New.
12235 (vec_vmaddfp): New.
12236 (vec_vsldoi): New.
12237 Add parentheses to all macro arguments.
71a0ab0c 12238
ff2c46ac
RH
122392002-04-16 Richard Henderson <rth@redhat.com>
12240
12241 PR c++/6320
12242 * except.c (remove_eh_handler): Insert inner regions at beginning
12243 of sibling chain. Refactor expressions.
12244
f1ba94dd
RH
122452002-04-16 Richard Henderson <rth@redhat.com>
12246
f0871dfe
RH
12247 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
12248 * config/sparc/sol2-gas-bi.h: New file.
12249 * config.gcc (sparc*-solaris): Add it as needed.
12250 * configure.in (AS_SPARC64_FLAG): Remove check.
12251 * config.in, configure: Regenerate.
12252
12253 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
12254
122552002-04-16 Richard Henderson <rth@redhat.com>
12256
12257 * config/mips/mips.c (override_options): Don't override N32 for
12258 a 64-bit ISA.
409d3c60 12259
f1ba94dd
RH
12260 PR 6202
12261 * config/mips/mips.md (can_delay): Split out of existing define_delays.
12262 (HILO_delay): Set can_delay false.
12263
178c3eff
DJ
122642002-04-16 Dale Johannesen <dalej@apple.com>
12265
12266 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
12267 instruction addresses.
12268 (rs6000_output_function_epilogue): Likewise.
12269
7d6f6369
PC
122702002-04-16 Paolo Carlini <pcarlini@unitus.it>
12271
12272 * c-parse.in (poplevel, compstmt_start,
12273 compstmt_primary_start): Add ending ';', in accordance
12274 with POSIX.
12275
8947df0c
RH
122762002-04-16 Richard Henderson <rth@redhat.com>
12277
12278 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
12279 Adjust tm_file order to get TARGET_DEFAULT set properly.
12280 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
12281 * doc/install.texi (sparc-solaris): Update.
12282
3148ad6d
DJ
122832002-04-16 Dale Johannesen <dalej@apple.com>
12284
12285 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
12286 comparison operands do not match each other or if modes of
12287 conditions do not match result.
12288
014cb9b6 122892002-04-16 Hartmut Penner <hpenner@de.ibm.com>
562a69be 12290
014cb9b6
HP
12291 PR target/6305
12292 * config/s390/s390.md (mulsidi3): Set both subregs of the
46468cd9 12293 multiword register.
562a69be 12294
014cb9b6 122952002-04-16 Aldy Hernandez <aldyh@redhat.com>
4c8c0dec 12296
8947df0c 12297 * config/rs6000/altivec.h (vec_addc): Type check.
4c8c0dec 12298
a9772b60
JJ
122992002-04-16 Jakub Jelinek <jakub@redhat.com>
12300
12301 PR middle-end/6279
12302 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
12303
12304 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
12305
861829ed
RH
123062002-04-15 Richard Henderson <rth@redhat.com>
12307
12308 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
12309 call_really_used_regs too.
12310
bcf2fe9c
RH
123112002-04-15 Richard Henderson <rth@redhat.com>
12312
12313 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
12314
629111c7
DM
123152002-04-15 David S. Miller <davem@redhat.com>
12316
12317 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
12318 as being CLOBBERed.
12319
98ef3137
JJ
123202002-04-16 Jakub Jelinek <jakub@redhat.com>
12321
12322 PR c/6290
12323 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
12324 CONST_VECTOR is { 0, ... 0 }.
12325
0aa911c5
LR
123262002-04-15 Loren J. Rittle <ljrittle@acm.org>
12327
12328 * doc/install.texi (Installing GCC: Configuration): Clarify
12329 the only supported ways to configure gcc.
12330
83248d49 123312002-04-15 Roland McGrath <roland@frob.com>
46468cd9 12332
83248d49
RM
12333 * config.gcc (alpha*-*-gnu*): New target configuration.
12334 * config/alpha/gnu.h: New file for it.
12335 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
12336
b2123dc0
MM
123372002-04-16 Mark Mitchell <mark@codesourcery.com>
12338
12339 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
12340 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
12341 * tree.h (expand_start_stmt_expr): Update prototype.
12342 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
12343 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
12344 on the STMT_EXPR created for the inline function.
46468cd9 12345
8fe2d853
RH
123462002-04-15 Richard Henderson <rth@redhat.com>
12347
12348 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
12349 config/i386/linux-aout.h, config/i386/linux-oldld.h,
12350 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
12351 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
12352 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
12353 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
12354 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
12355 Define __gnu_linux__, not gnu_linux.
12356 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
12357
07cdae91
MM
123582002-04-15 Mark Mitchell <mark@codesourcery.com>
12359
12360 Remove Chill front end.
12361 * gcc.c (default_compilers): Remove Chill entries.
12362 * ch: Remove directory.
12363 * doc/frontends.texi: Remove information about Chill.
12364 * doc/sourcebuild.texi: Likewise.
12365 * doc/standards.texi: Likewise.
12366
41823c5e
DR
123672002-04-15 Douglas B Rupp <rupp@gnat.com>
12368
12369 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
12370 (LONGLONG_STANDALONE): Define.
12371
eb29ddb6
DM
123722002-04-15 David S. Miller <davem@redhat.com>
12373
12374 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
12375 Call emit_library_call with LCT_NORMAL.
12376 (sparc_initialize_trampoline): Use LCT_foo instead of
12377 magic constant in emit_library_call invocations.
12378 (sparc64_initialize_trampoline): Likewise.
12379 (sparc_profile_hook): Likewise.
12380 * config/sparc/sparc.md: Likewise.
12381
12382 * config/sparc/sparc.c (sparc_extra_constraint_check):
12383 Fix type of argument 'c'.
12384 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
12385 Likewise.
12386
bd6bec6b
GDR
123872002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
12388
12389 * diagnostic.h (output_buffer_state): Redefine.
12390 (output_format_decoder): New macro.
12391 (output_prefixing_rule): Likewise.
12392 (output_line_cutoff): Likewise.
12393 (diagnostic_format_decoder): Adjust.
12394 (diagnostic_prefixing_rule): Likewise.
12395 (diagnostic_line_cutoff): Likewise.
12396 (diagnostic_state): Likewise.
12397 (diagnostic_kind_count): Likewise.
12398 (diagnostic_buffer): Now a macro.
12399
12400 * diagnostic.c (diagnostic_buffer): Remove definition.
12401 (output_is_line_wrapping): Adjust.
12402 (set_real_maximum_length): Likewise.
12403 (output_set_maximum_length): Likewise.
12404 (init_output_buffer): Likewise.
12405 (lhd_print_error_function): Likewise.
12406 (output_do_verbatim): Likewise.
12407
ebef4e8c
NB
124082002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
12409
12410 * cpperror.c (print_location): Don't print include chain
12411 if line == 0.
12412 (cpp_begin_message): Update to use DL_ macros.
12413 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12414 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12415 cpp_notice, cpp_notice_from_errno): Remove.
12416 (cpp_error, cpp_error_with_line): Update to take a diagnostic
12417 level.
12418 (cpp_errno): New.
12419 * cppexp.c (CPP_ICE): Remove.
12420 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
12421 lex, integer_overflow, _cpp_parse_expr): Update.
12422 * cppfiles.c (read_include_file, find_include_file,
12423 handle_missing_header, _cpp_read_file, remap_filename): Update.
12424 * cpphash.h (enum error_type): Remove.
12425 (_cpp_begin_message): Update.
12426 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
12427 cpp_handle_option, cpp_post_options): Update.
12428 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
12429 skip_whitespace, parse_identifier, parse_slow, parse_string,
12430 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
12431 cpp_interpret_charconst): Update.
12432 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
12433 lex_macro_node, do_undef, glue_header_name, parse_include,
12434 do_include_common, read_flag, do_line, do_linemarker, do_ident,
12435 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
12436 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
12437 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
12438 _cpp_pop_buffer, do_diagnostic): Update.
12439 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
12440 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
12441 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12442 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12443 cpp_notice, cpp_notice_from_errno): Remove.
12444 (cpp_error, cpp_error_with_line): Update to take a diagnostic
12445 level.
12446 (cpp_errno): New.
12447 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
12448 collect_args, enter_macro_context, save_parameter, parse_params,
12449 _cpp_create_definition, check_trad_stringification,
12450 cpp_macro_definition): Update.
12451 * cppmain.c (cpp_preprocess_file): Update.
12452 * fix-header.c (read_scan_file): Update.
12453
c19a3859
AS
124542002-04-14 Andreas Schwab <schwab@suse.de>
12455
12456 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
12457
10fdbed6
JD
124582002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
12459
12460 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
12461
77660a9a
MM
124622002-04-13 Mark Mitchell <mark@codesourcery.com>
12463
12464 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
12465 not gnu_hurd.
12466
e0ff1ded
HPN
124672002-04-13 Hans-Peter Nilsson <hp@axis.com>
12468
12469 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
12470
2341c7ea
JS
124712002-04-13 Joel Sherrill <joel@OARcorp.com>
12472
12473 * config/sparc/t-elf: Enable v8 multilibs. Impacts
12474 sparc-elf and sparc-rtems targets.
12475
d29350c0
MM
124762002-04-13 Mark Mitchell <mark@codesourcery.com>
12477
12478 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
12479 defined, and __gnu_hurd__ wherever __GNU__ is defined.
12480 * arm/linux-elf.h: Likewise.
12481 * cris/aout.h: Likewise.
12482 * cris/linux.h: Likewise.
12483 * i370/linux.h: Likewise.
12484 * i386/gnu.h: Likewise.
12485 * i386/linux-aout.h: Likewise.
12486 * i386/linux-oldld.h: Likewise.
12487 * i386/linux.h: Likewise.
12488 * i386/linux64.h: Likewise.
12489 * ia64/linux.h: Likewise.
12490 * m68k/linux-aout.h: Likewise.
12491 * m68k/linux.h: Likewise.
12492 * mips/linux.h: Likewise.
12493 * pa/pa-linux.h: Likewise.
12494 * pj/linux.h: Likewise.
12495 * rs6000/sysv4.h: Likewise.
12496 * s390/linux.h: Likewise.
12497 * sh/linux.h: Likewise.
12498 * sparc/linux-aout.h: Likewise.
12499 * sparc/linux.h: Likewise.
12500 * sparc/linux64.h: Likewise.
12501 * xtensa/linux.h: Likewise.
12502
fc552851
RS
125032002-04-13 Richard Sandiford <rsandifo@redhat.com>
12504
12505 * stmt.c (check_unique_operand_names): Expect operand names to
12506 be strings rather than identifiers. Use simple_cst_equal to
12507 compare them.
12508 (resolve_operand_name_1): Make same identifier to string change here.
12509 * c-parse.in (asm_operand): Convert a named operand into a string.
12510 * cp/parse.y (asm_operand): Likewise.
12511
1d405c5e
AS
125122002-04-13 Andreas Schwab <schwab@suse.de>
12513
12514 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
12515
c740732f
MM
125162002-04-12 Mark Mitchell <mark@codesourcery.com>
12517
12518 Revert these changes:
12519
12520 2002-04-06 Mark Mitchell <mark@codesourcery.com>
12521
12522 PR c++/5571
12523 * stor-layout.c (layout_decl): Reset the RTL for the decl.
12524
3fc602a0
RH
125252002-04-12 Richard Henderson <rth@redhat.com>
12526
12527 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
12528 (sparc*-*-solaris): Clean up header files.
12529 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
12530 and plan on generating 64-bit code.
12531 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
12532 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
12533 * config/sparc/sol2-sld-64.h: Rename ...
12534 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
12535 for AS_SPARC64_FLAG not defined.
12536 * config/sparc/sol2-gld-bi.h: New.
12537 * config/sparc/sol2-sld.h: Remove.
12538 * config/sparc/sol26-sld.h: New.
12539 * config/sparc/sol2.h: Tidy comments.
12540 * doc/install.texi: Document sparc-solaris configury changes.
12541
2f15e255
RH
125422002-04-12 Richard Henderson <rth@redhat.com>
12543
12544 * recog.c (offsettable_address_p): Match the logic in adjust_address.
12545
12546 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
12547 in 64-bit mode only. Use only for 32-bit or MEDLOW.
12548
cc8475cb
RO
125492002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12550
12551 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
12552
6f133a4a
JL
12553Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
12554
ef1b8858 12555 * pa.c (pa_can_combine_p): Call extract_insn before calling
6f133a4a
JL
12556 constrain_operands.
12557
1329e600
DR
125582002-04-12 Douglas B Rupp <rupp@gnat.com>
12559
12560 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
12561 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
12562 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2d424b9f 12563 (CPP_PREDEFINES): Handle __declspec.
1329e600
DR
12564 * config/i386/t-interix (USER_H): Remove.
12565
0339d239
DD
125662002-04-12 DJ Delorie <dj@redhat.com>
12567
12568 * integrate.c (compare_blocks): Make comparisons safe for when
12569 sizeof(int) < sizeof(char *).
12570 (find_block): Likewise.
12571
cc4d5fec
JH
125722002-04-12 Jan Hubicka <jh@suse.cz>
12573 David Edelsohn <edelsohn@gnu.org>
12574
12575 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
12576 registers.
12577 (symbol_ref_operand): New.
12578 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
12579 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
12580
93215a1b
AS
125812002-04-12 Andreas Schwab <schwab@suse.de>
12582
12583 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
12584 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
12585 overrides the definition in config/svr4.h.
46468cd9 12586
1d80248e
EN
125872002-04-12 Eric Norum <eric.norum@usask.ca>
12588
12589 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
12590 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
12591 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
12592 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
12593 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
12594 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
12595 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
12596 definitions to config/rtems.h and make the targets more similar.
12597
fa1591cb
RK
12598Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12599
fa06ab5c
RK
12600 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
12601 POINTERS_EXTEND_UNSIGNED.
12602 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
12603 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
12604
fa1591cb
RK
12605 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
12606 not specified.
12607
12e85a0e
R
12608Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
12609
12610 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
12611 depends on TARGET_SHMEDIA, not TARGET_SH5.
12612
1ab3e58a
HPN
126132002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
12614
12615 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
12616 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
12617
18778292
R
12618Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
12619
12620 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
12621 no r0 clobber.
12622
9002507c
AS
126232002-04-12 Andreas Schwab <schwab@suse.de>
12624
12625 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
12626
9be40833
RH
126272002-04-12 Richard Henderson <rth@redhat.com>
12628
12629 PR bootstrap/4191
12630 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
12631
12632 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
12633 modes spanning multiple hard regs.
46468cd9 12634
9be40833
RH
12635 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
12636
3d9268b6
JDA
126372002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12638
12639 * pa.c (pa_output_function_prologue): Don't accumulate the total
12640 number of code bytes when using TARGET_64BIT, or gas, SOM and not
12641 the portable runtime.
12642 (output_deferred_plabels): Handle 64bit plabels.
12643 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
12644 generating pic code using the GAS assembler for object formats that
12645 are not SOM (ie., ELF32 and ELF64).
12646 (output_millicode_call): Check attribute type if attribute length is 28.
12647 Likewise use $PIC_pcrel$0. Only call get_attr_length and
12648 dbr_sequence_length once.
12649 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
12650 dbr_sequence_length once.
12651 * pa.h (TARGET_SOM): Define if not defined.
12652 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
12653 with GAS and not SOM.
12654 (jump, call_internal_reg, call_value_internal_reg): Likewise.
12655 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
12656
d360fd18
DB
126572002-04-11 David O'Brien <obrien@FreeBSD.org>
12658
12659 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
12660 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
12661 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
12662 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
12663 elfos.h and dbxelf.h values are fine now.
12664 * config/i386/freebsd.h, config/alpha/freebsd.h
12665 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
12666
5b8fcab6
DB
126672002-04-11 David O'Brien <obrien@FreeBSD.org>
12668
12669 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
12670 or set Acpu or Amachine. Reformat.
12671 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12672 define.
12673 (LINK_SPEC): Do not need to undef.
12674 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
12675 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
12676 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12677 define.
12678 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
12679 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
12680 (LINK_SPEC): Do not need to undef.
12681 (DONT_USE_BUILTIN_SETJMP): Do not define.
12682 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
12683 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
12684 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
12685 Remove trailing spaces.
12686 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
12687 __ELF__, or set Acpu or Amachine. Reformat.
12688 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12689 define.
12690
fee42cc1
DB
126912002-04-11 David O'Brien <obrien@FreeBSD.org>
12692
12693 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
12694 all other *-*-freebsd* targets.
12695
77a403e4
RH
126962002-04-11 Richard Henderson <rth@redhat.com>
12697
12698 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
12699
cf0005c6
DB
127002002-04-11 David O'Brien <obrien@FreeBSD.org>
12701
12702 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
12703 Include {cpu}/{cpu}.h thru tm_file.
12704 (alpha*-*-linux*ecoff): Remove target.
12705 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
12706 (LINK_SPEC): Remove, is not OS independent.
12707 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
12708 (LINK_SPEC): Do not need to #undef any longer.
12709 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
12710 any longer.
12711 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
12712 __ELF__.
12713 (LINK_SPEC): Moved here from alpha/elf.h.
12714 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
12715 SUB_CPP_PREDEFINES.
12716 * config/alpha/linux-ecoff.h: Remove.
12717 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
12718 (CPP_SPEC): Define _POSIX_SOURCE as needed.
12719 (CPP_SUBTARGET_SPEC): Do not define.
12720 (LINK_SPEC): Do not need to #undef any longer.
12721 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
12722 * config/alpha/vms.h: Likewise.
12723
9be40833 127242002-04-11 Richard Sandiford <rsandifo@redhat.com>
7825d1cf
RS
12725
12726 * doc/extend.texi: Remove old claim that typedefs cannot have
12727 an alignment attribute.
12728
010f87c4
JJ
127292002-04-11 Jakub Jelinek <jakub@redhat.com>
12730
12731 PR optimization/6177
12732 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
12733 bitpos is 0 and bitsize CONCAT size.
12734
578fc63d
JJ
127352002-04-11 Jakub Jelinek <jakub@redhat.com>
12736
12737 PR c/6223
12738 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
12739
bf9b85ce
DB
127402002-04-10 David O'Brien <obrien@FreeBSD.org>
12741
12742 * config/alpha/freebsd.h: Minor reformatting.
12743 (CPP_SPEC): Define ELF and add cpp_subtarget.
12744 (ASM_SPEC): No longer needed.
12745
7425707d
RH
127462002-04-11 Richard Henderson <rth@redhat.com>
12747
12748 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
12749 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
12750 (dimode mem/zero splitter): New.
12751
1a05e874
HPN
127522002-04-11 Hans-Peter Nilsson <hp@axis.com>
12753
12754 * config/cris/cris.c (cris_override_options): Tweak error message
12755 for PIC not implemented.
12756
12757 * config/cris/cris.h: Tweak comments related to parameter-passing.
12758
12759 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
12760
6f3d0447
RH
127612002-04-10 Richard Henderson <rth@redhat.com>
12762
12763 * except.c (add_ehl_entry): Allow duplicates after landing pad
12764 creation.
12765
174bf2b1
DE
127662002-04-10 David Edelsohn <edelsohn@gnu.org>
12767
12768 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
12769
03f10472
TM
127702002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
12771
12772 * c-decl.c (c_init_decl_processing): Move generation of
12773 decls for g77_integer_type_node and friends from here ...
12774 * c-common.c (c_common_nodes_and_builtins): ... to here.
12775
2f460a0a
UW
127762002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
12777
12778 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
12779 is only used as frame pointer when frame_pointer_needed is true.
12780
0be5cf85
RE
127812002-04-10 Richard Earnshaw <rearnsha@arm.com>
12782
12783 PR target/817
12784 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
12785 for the fact that the pool entry uses two words.
12786 (movdf_hard_insn): Similarly. Also, ADR instruction can span
12787 1k bytes.
12788 (movdf_soft_insn): Similarly.
12789 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
12790 for the fact that the pool entry uses three words.
12791
bf6d4777
RS
127922002-04-10 Richard Sandiford <rsandifo@redhat.com>
12793
12794 * config/mips/mips.c (mips_va_arg): When using the struct version
12795 of the EABI va_list, allow arguments in the register save area to
12796 take up less room than a stack argument.
12797
c2e9dc85
RH
127982002-04-10 Richard Henderson <rth@redhat.com>
12799
12800 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
12801 if EXPAND_INITIALIZER.
12802
bc8e8e97
RH
128032002-04-09 Richard Henderson <rth@redhat.com>
12804
12805 * config/alpha/alpha.md (movdi_er_maybe_g): New.
12806 * config/alpha/alpha.c (alpha_expand_mov): Use it.
12807
a6a063b8
AM
128082002-04-10 Alan Modra <amodra@bigpond.net.au>
12809
12810 PR optimization/6233
12811 * rtlanal.c (pure_call_p): New function.
12812 * rtl.h (pure_call_p): Declare.
12813 * loop.c (prescan_loop): Use it to set has_nonconst_call.
12814 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
12815
7b2e1077
EC
128162002-04-09 Eric Christopher <echristo@redhat.com>
12817
12818 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
12819 information to .comm directive.
12820
d8a50944
RH
128212002-04-09 Richard Henderson <rth@redhat.com>
12822
12823 PR c/5078
12824 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
12825
6a58eee9
RH
128262002-04-09 Richard Henderson <rth@redhat.com>
12827
12828 * basic-block.h (flow_delete_block_noexpunge): Declare.
12829 (expunge_block_nocompact): Declare.
12830 * cfg.c (expunge_block_nocompact): Split out from ...
12831 (expunge_block): ... here.
12832 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
12833 (flow_delete_block_noexpunge): Split out from ...
12834 (flow_delete_block): ... here.
12835 * cfgcleanup.c (delete_unreachable_blocks): Compact while
12836 removing dead blocks.
12837 * except.c (exception_handler_labels): Remove.
12838 (exception_handler_label_map): New.
12839 (struct eh_region): Add aka member.
12840 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
12841 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
12842 (for_each_eh_label, for_each_eh_label_1): New.
12843 (init_eh): Register exception_handler_label_map.
12844 (free_eh_status): Use free_region.
12845 (find_exception_handler_labels): Use the map, not the list.
12846 (remove_exception_handler_label): Likewise.
12847 (maybe_remove_eh_handler): Likewise.
12848 (remove_eh_handler): Use the region aka bitmap.
12849 * except.h (exception_handler_labels): Remove.
12850 (for_each_eh_label): Declare.
12851 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
12852 * loop.c (invalidate_loops_containing_label): New.
12853 (find_and_verify_loops): Use it. Use for_each_eh_label.
12854 * sched-rgn.c (is_cfg_nonregular): Use
12855 current_function_has_exception_handlers.
12856
b47374fa
RH
128572002-04-09 Richard Henderson <rth@redhat.com>
12858
12859 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
12860 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
12861 Do not return changed status.
12862 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
12863 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
12864 New functions that do return changed status.
12865 * sbitmap.h: Update decls.
12866 * gcse.c, lcm.c: Use _cg functions as needed.
12867
1951818c
R
12868Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
12869
12870 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
12871 (sh64-*-elf*, sh-*-rtemself*): Likewise.
12872 * config/sh/embed_bb.c: New file.
12873 * config/sh/embed-elf.h: New file.
12874 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
12875 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
12876 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
12877 __PTRDIFF_TYPE__ .
12878 (SUBTARGET_CPP_PTR_SPEC): Don't define.
12879 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
12880 Add subtarget_asm_endian_spec.
12881 (ASM_SPEC): Use subtarget_asm_endian_spec.
12882 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
12883 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
12884 (WCHAR_UNSIGNED): Define.
12885 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
12886 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
12887 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
12888 Fix value.
12889 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
12890 (sh_adjust_cost): Likewise.
12891 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
12892 __PTRDIFF_TYPE__ .
12893 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
12894 (WCHAR_TYPE_SIZE): Likewise.
12895 (ASM_SPEC): Use subtarget_asm_endian_spec.
12896 (SH_ELF_WCHAR_TYPE): #undef/ #define.
12897 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
12898 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
12899 (MAX_WCHAR_TYPE_SIZE): Don't #define .
12900 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
12901 (USER_LABEL_PREFIX): Don't #undef /#define .
12902 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
12903 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
12904 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
12905 (ASM_SPEC): Likewise.
12906 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
12907 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
12908 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
12909 (LIB2FUNCS_EXTRA): Define.
12910 * t-sh64 (LIB2FUNCS_EXTRA): Define.
12911 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
12912 (LIB1ASMFUNCS_CACHE): Define.
12913 (LIB2FUNCS_EXTRA): Redefine empty.
12914
34295799
RH
129152002-04-08 Richard Henderson <rth@redhat.com>
12916
12917 * reorg.c (get_branch_condition): Use reversed_comparison_code.
12918
e8766a39
SC
129192002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12920
12921 * config/m68hc11/larith.asm (__map_data_section): Fix condition
12922 and optimize for size.
12923 (__do_global_ctors): Fix pointer comparison.
12924 (__do_global_dtors): Likewise.
12925
f451b552
DM
129262002-04-09 David S. Miller <davem@redhat.com>
12927
12928 * config/sparc/sparc.c (sparc_extra_constraint_check): New
12929 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
12930 allow reloading pseudos.
12931 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
12932 * config/sparc/sparc-protos.h: Declare it.
12933
12934 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
12935 unsigned comparison warning.
12936 (output_restore_regs): Mark leaf_function as unused.
12937
1ce7f3c2
RK
12938Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12939
12940 * expr.c (is_aligning_offset): New function.
12941 (expand_expr, case COMPONENT_EXPR): Call it.
12942
7a31a340
DM
129432002-04-08 David S. Miller <davem@redhat.com>
12944
12945 PR target/6082
12946 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
12947
12948 Make init_priority work on Sparc when using GNU ld.
12949 * config/sparc/linux.h, config/sparc/linux64.h,
12950 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
12951 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
12952 * config/sparc/sol2-gld.h: New file to do the same.
12953 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
12954 sparc/sol2-gld.h to tm_file.
12955
12956 PR optimization/4328
12957 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
12958 * doc/md.texi: Document it.
12959 * config/sparc/sparc.md (movdi_insn_sp64_novis,
12960 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
12961 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
12962 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
12963 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
12964
11579f33
AJ
129652002-04-08 Andreas Jaeger <aj@suse.de>
12966
12967 * stmt.c (expand_asm_operands): Revert last patch from Richard
12968 Henderson.
12969
b57215d9
GP
129702002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12971
12972 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
12973 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
12974
129752002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12976
12977 * doc/contrib.texi (Contributors): Add David O'Brien.
12978
534d0cc0
AM
129792002-04-08 Alan Modra <amodra@bigpond.net.au>
12980
12981 * configure.in (auto-build.h): Use target_alias and build_alias
12982 when running configure.
12983 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
12984 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
12985 * configure: Regenerate.
12986
19fe522a
DM
129872002-04-07 David S. Miller <davem@redhat.com>
12988
12989 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
12990
bf2d0b8e
JDA
129912002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
12992
12993 PR 5933
12994 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
12995 generating 32-bit pic code.
12996
477cdac7
JT
129972002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
12998
12999 * cppinit.c (cpp_create_reader): Initialize
13000 discard_comments_in_macro_exp.
13001 (COMMAND_LINE_OPTIONS): Add "-CC" option.
13002 (cpp_handle_option): Handle "-CC" option.
13003 * cpplex.c (save_comment): If saving a C++ comment in
13004 a directive, convert it to a C comment.
13005 (_cpp_lex_direct): Pass second comment start character to
13006 save_comment to indicate comment type.
13007 * cpplib.c (_cpp_handle_directive): If processing
13008 a "#define" directive and discard_comments_in_macro_exp
13009 is false, re-enable saving of comments.
13010 (lex_macro_node): If discard_comments_in_macro_exp is false,
13011 discard any comments before the macro identifier.
13012 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
13013 member.
13014 * cppmacro.c (cpp_get_token): If expanding a macro while
13015 processing a directive, discard any comments we might encounter.
13016 (parse_params): If discard_comments_in_macro_exp is false,
13017 ignore comments in the macro parameter list.
13018 * gcc.c (cpp_unique_options): Add "-CC" option.
13019 (option_map): Map "--comments-in-macros" to "-CC".
13020 * doc/cppopts.texi: Document "-CC" option.
13021 * f/lang-specs.h: Add "-CC" option.
13022 * testsuite/gcc.dg/cpp/maccom1.c: New test.
13023 * testsuite/gcc.dg/cpp/maccom2.c: New test.
13024 * testsuite/gcc.dg/cpp/maccom3.c: New test.
13025 * testsuite/gcc.dg/cpp/maccom4.c: New test.
13026 * testsuite/gcc.dg/cpp/maccom5.c: New test.
13027 * testsuite/gcc.dg/cpp/maccom6.c: New test.
13028
f1526122
JDA
130292002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
13030
13031 PR middle-end/6180
13032 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
13033
b1896e61
MM
130342002-04-06 Mark Mitchell <mark@codesourcery.com>
13035
0154eaa8
MM
13036 PR c++/5571
13037 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13038
b1896e61
MM
13039 PR opt/5120
13040 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
13041 RTX_UNCHANGING_P for the functions arguments when a tail call
13042 is made.
13043
b0148884
JM
130442002-04-06 Jason Merrill <jason@redhat.com>
13045
13046 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
13047 (parse_options_and_default_flags): Set them appropriately.
13048 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
13049
392fc5b0
HPN
130502002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
13051
13052 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
13053 here.
13054
13055 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
13056 semicolon.
13057
13058 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
13059 types come in by-reference. Fix typo in comment.
13060
2d69e3cb
DM
130612002-04-05 David S. Miller <davem@redhat.com>
13062
13063 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
13064 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
13065 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
13066 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
13067
130682002-04-05 David S. Miller <davem@redhat.com>
13069
13070 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
13071 are not going to emit return instructions, emit at least a nop
13072 for the sake of sane backtraces.
13073
5f9fb0e3
RH
130742002-04-05 Richard Henderson <rth@redhat.com>
13075
13076 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
13077
49f37a0d
JJ
130782002-04-05 Jakub Jeilnek <jakub@redhat.com>
13079
13080 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
13081
974a3101
AO
130822002-04-05 Alexandre Oliva <aoliva@redhat.com>
13083
13084 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
13085 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
13086 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
13087
2e04a694
AS
130882002-04-05 Andreas Schwab <schwab@suse.de>
13089
a40179bd 13090 * c-convert.c: Include c-common.h.
2e04a694
AS
13091 * Makefile.in (c-convert.o): Updated.
13092
1f785b7c
JJ
130932002-04-05 Jakub Jelinek <jakub@redhat.com>
13094
13095 * mklibgcc.in: Use separate libgcc.map for each multilib.
13096 * Makefile.in (distclean): Don't remove libgcc.map here.
13097
4d2fb38b
JJ
130982002-04-05 Jakub Jelinek <jakub@redhat.com>
13099
13100 * Makefile.in (s-mlib): Handle --disable-multilib by separate
13101 genmultilib invocation.
13102
bb63e5a0
RS
131032002-04-04 Richard Sandiford <rsandifo@redhat.com>
13104
13105 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
13106 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
13107 to num_gprs for symmetry.
13108 * config/mips/mips.c: Adjust accordingly.
13109
8ab80eaa
NB
131102002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
13111
13112 * c-common.c (truthvalue_conversion): Rename, update.
13113 * c-common.h (c_common_truthvalue_conversion): New.
13114 * c-convert.c (convert): Update.
13115 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13116 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
13117 * c-typeck.c (build_binary_op, build_unary_op,
13118 build_conditional_expr): Update.
13119 * fold-const.c (constant_boolean_node, fold): Use langhook.
13120 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
13121 * langhooks.h (struct lang_hooks): New hook.
13122 * stmt.c (expand_decl_cleanup): Use langhook.
13123 * tree.h (truthvalue_conversion): Remove.
13124objc:
13125 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13126
a2e9374a
AM
131272002-04-05 Alan Modra <amodra@bigpond.net.au>
13128
13129 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
13130 Add rules to make null object file.
13131
64d08263
JB
131322002-04-04 Jim Blandy <jimb@redhat.com>
13133
13134 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
13135 macro formal parameter names.
13136
aa7634dd
DM
131372002-04-04 David S. Miller <davem@redhat.com>
13138
13139 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
13140
ecc114f7
RH
131412002-04-04 Richard Henderson <rth@redhat.com>
13142
13143 PR middle-end/5099
13144 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
13145 Support copies into and out of memory. Don't accept allows_reg
13146 and allows_mem as gospel.
13147
c4484b8f
RH
131482002-04-04 Richard Henderson <rth@redhat.com>
13149
13150 PR opt/6165
13151 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
13152 (write_dependence_p): Likewise.
13153
39002160
RH
131542002-04-04 Richard Henderson <rth@redhat.com>
13155
13156 * predict.c (estimate_bb_frequencies): Do frequency calculation
13157 with a volatile temporary.
13158
f53ebe71
UW
131592002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
13160
13161 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
13162
15e0ecab
JJ
131632002-04-04 Jakub Jelinek <jakub@redhat.com>
13164
13165 PR c++/6119
13166 * final.c (final_start_function): Don't bump profile_label_no here...
13167 (final_end_function): ...but here.
13168
ffd386b0
JJ
131692002-04-04 Jakub Jelinek <jakub@redhat.com>
13170
13171 * config/sparc/sparc.md (pic): New attribute.
13172 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
13173 into stack slots.
13174 (split after do_builtin_setjmp_setup): New.
13175
8b156b3e
JJ
131762002-04-04 Jakub Jelinek <jakub@redhat.com>
13177
13178 PR fortran/6106
13179 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
13180 change.
13181
014c0998
JJ
131822002-04-04 Jakub Jelinek <jakub@redhat.com>
13183
13184 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
13185 UNITS_PER_WORD for zero sized aggregates.
13186
4d8611d9
DM
131872002-04-03 David S. Miller <davem@redhat.com>
13188
13189 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
13190 one-character spec for this, just use %(link_gcc_c_sequence).
13191
b03ad99d
DM
131922002-04-03 David S. Miller <davem@redhat.com>
13193
13194 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
13195 handling.
13196
823fbbce
JDA
131972002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13198
13199 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
13200 (DWARF_FRAME_RETURN_COLUMN): Move.
13201 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13202 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
13203 * pa.c (except.h, predict.h): Include.
13204 (FRP): Delete.
13205 (store_reg_modify, set_reg_plus_d): Revise prototypes.
13206 (output_ascii): Add cast.
13207 (store_reg_modify): Revise to add frame notes.
13208 (set_reg_plus_d): Likewise.
13209 (compute_frame_size): Include space for eh data registers in frame if
13210 the current function calls eh_return.
13211 (hppa_expand_prologue): Ensure register %r2 is saved if the current
13212 function calls eh_return. Save eh data registers if the current
13213 function calls eh_return. Fix code to add frame notes. Emit
13214 blockage to prevent insns with frame notes being scheduled in the
13215 delay slot of calls.
13216 (hppa_expand_epilogue): Restore eh data registers and do final stack
13217 adjustment if the current function calls eh_return. Don't add frame
13218 notes.
13219 (output_call): Revise for change in length of call insn. Don't do
13220 return pointer adjustment for an unconditional jump in the delay slot
13221 of a call when using frame notes.
13222 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
13223 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
13224 (ARG_POINTER_CFA_OFFSET): Define.
13225 * pa.md (return_external_pic): New pattern.
13226 (prologue): Correct formatting. Use return_external_pic if current
13227 function calls eh_return.
13228 (call_internal_symref, call_value_internal_symref,
13229 sibcall_internal_symref, sibcall_value_internal_symref): Change default
13230 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
13231 respectively.
13232 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
13233
13234 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
13235 list of targets to check using "nop" insn.
13236 * configure: Rebuilt.
13237
4078e224
AM
132382002-04-04 Alan Modra <amodra@bigpond.net.au>
13239
13240 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
13241
bbd7687d
DM
132422002-04-03 David S. Miller <davem@redhat.com>
13243
13244 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
13245 library sequence passed to the linker.
13246 (LINK_COMMAND_SPEC): Use it.
13247 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
13248 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
13249 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13250
659e5a7a
JM
132512002-04-03 Jason Merrill <jason@redhat.com>
13252
13253 * except.c (struct eh_status): Remove protect_list.
13254 (begin_protect_partials, end_protect_partials): Remove.
13255 (add_partial_entry): Remove.
13256 * except.h: Remove prototypes.
13257
13258 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
13259 expand_decl_cleanup_eh.
13260
13261 PR c++/5636
13262 * tree.h (CLEANUP_EH_ONLY): New macro.
13263 * stmt.c (expand_decl_cleanup_eh): New fn.
13264 (expand_cleanups): Check CLEANUP_EH_ONLY.
13265 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
13266 Use expand_decl_cleanup_eh.
13267 (expand_stmt): Adjust.
13268 * c-common.h: Adjust prototype.
13269
053d3344
HPN
132702002-04-04 Hans-Peter Nilsson <hp@axis.com>
13271
13272 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
13273 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
13274 (cris_target_asm_function_epilogue): Ditto.
13275 (cris_initial_frame_pointer_offset): Ditto.
13276 (cris_simple_epilogue): Ditto.
13277 (cris_expand_builtin_va_arg): Variable-size types come in
13278 by-reference.
13279
61ab5260
DM
132802002-04-03 David S. Miller <davem@redhat.com>
13281
13282 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
13283 little-endian.
13284 (set_fast_math): Correct 'fsr' type.
13285
ef4f94ac
RH
132862002-04-03 Richard Henderson <rth@redhat.com>
13287
36c2272c 13288 PR opt/3569
ef4f94ac
RH
13289 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
13290 * toplev.c (check_global_declarations): Use it.
13291 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
13292 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13293 (LANG_HOOKS_DECLS): Add it.
13294 * langhooks.c (lhd_warn_unused_global_decl): New.
13295 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13296 * c-objc-common.c (c_warn_unused_global_decl): New.
13297 * c-tree.h (c_warn_unused_global_decl): Declare.
13298 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13299
599bba86
NB
133002002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
13301
13302 * langhooks-def.h (lhd_set_decl_assembler_name,
13303 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
13304 (LANG_HOOKS_INITIALIZER): Update.
13305 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
13306 * langhooks.h (struct lang_hooks): New hook.
13307 * tree.c (set_decl_assembler_name): Move to langhooks.c.
13308 (lang_set_decl_assembler_name): Remove.
13309 (init_obstacks): Don't set hook.
13310 (decl_assembler_name): New function.
13311 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
13312 (decl_assembler_name): New.
13313 (lang_set_decl_assembler_name): Remove.
13314
cf7b8b0d
JJ
133152002-04-03 Jakub Jelinek <jakub@redhat.com>
13316
13317 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
13318 works properly with .hidden symbols.
13319 * configure: Rebuilt.
13320 * config.in: Rebuilt.
13321 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13322 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
13323 properly with .hidden symbols.
13324
faf6db38
JJ
133252002-04-03 Jakub Jelinek <jakub@redhat.com>
13326
13327 PR middle-end/6102
13328 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
13329 USE argument.
13330
68c17f30
RH
133312002-04-03 Richard Henderson <rth@redhat.com>
13332
13333 PR opt/4120
13334 * sched-rgn.c (sets_likely_spilled): New.
13335 (sets_likely_spilled_1): New.
13336 (add_branch_dependences): Use it.
13337
6584b4aa
RH
133382002-04-02 Richard Henderson <rth@redhat.com>
13339
13340 PR opt/4311
13341 * loop.h (LOOP_FIRST_PASS): New.
13342 * loop.c (strength_reduce): Mind it when deciding to unroll.
13343 * toplev.c (rest_of_compilation): Set it.
13344
0acf409f
DM
133452002-04-02 David S. Miller <davem@redhat.com>
13346
13347 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
13348 mems_ok_for_ldd_peep when the order of the loads being examined
13349 is reversed.
13350 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
13351 existing comment to increase comprehension of this situation.
13352
85654444
ZW
133532002-04-02 Zack Weinberg <zack@codesourcery.com>
13354
13355 * config/sh/sh.md: Don't use union real_extract.
13356
543828ca
RH
133572002-04-02 Richard Henderson <rth@redhat.com>
13358
13359 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
13360
39ed301b
DB
133612002-04-02 David O'Brien <obrien@FreeBSD.org>
13362
13363 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
13364 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
13365 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
13366 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
13367 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
13368 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
13369 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
13370 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
13371 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
13372 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
13373 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
13374 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
13375 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
13376 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
13377 Include as many configury headers via tm_file as possible. This
13378 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
13379 * config/openbsd-oldgas.h: New file.
13380 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
13381 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
13382 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
13383 config/i386/i386-coff.h, config/i386/i386-interix.h,
13384 config/i386/iscdbx.h, config/i386/linux-aout.h,
13385 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
13386 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
13387 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
13388 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
13389 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
13390 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
13391 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
13392 config/i386/vxi386.h: Do not directly include configury headers.
13393 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
13394 Directly include configury headers that are no longer automatically
13395 included by the above headers.
13396 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
13397 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
13398 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
13399 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
13400 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
13401 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
13402 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
13403 (TARGET_VERSION): Define.
13404 * config/i386/beos-elf.h, config/i386/freebsd.h,
13405 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
13406 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
13407 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
13408 config/i386/sco5.h, config/i386/sysv4.h
13409 (TARGET_VERSION): Do not need to protect.
13410 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
13411 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
13412 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
13413 config/i386/i386-interix.h, config/i386/linux-aout.h,
13414 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
13415 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
13416 (YES_UNDERSCORES): Do not define - not needed.
13417 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
13418 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13419 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
13420 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
13421 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13422 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
13423 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
13424 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
13425
9432c136
EB
134262002-04-02 Eric Botcazou <ebotcazou@multimania.com>
13427 Richard Henderson <rth@redhat.com>
13428
13429 PR c/5484
13430 * function.c (assign_temp): Accept either type or decl argument.
13431 Detect variables whose size is too large to fit into an integer.
13432 * stmt.c (expand_decl): Pass the decl, not the type.
13433
058b1275
DB
134342002-04-02 David O'Brien <obrien@FreeBSD.org>
13435
13436 * protoize.c: Match include directory usage with cppdefault.c.
13437
5add6d1a 134382002-04-03 Jeffrey A Law (law@redhat.com)
9be40833 13439 Hans-Peter Nilsson <hp@bitrange.com>
5add6d1a
JL
13440
13441 * combine.c (simplify_comparison): Avoid narrowing a comparison
13442 with a paradoxical subreg when doing so would drop signficant bits.
13443
1e533e4b
SE
134442002-04-02 Steve Ellcey <sje@cup.hp.com>
13445
13446 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
13447 if POINTERS_EXTEND_UNSIGNED is defined.
13448
7a145e92
RH
134492002-04-02 Richard Henderson <rth@redhat.com>
13450
13451 PR opt/3967
13452 * local-alloc.c (contains_replace_regs): LO_SUM may contain
13453 replace regs.
13454
3a079822
RH
134552002-04-02 Richard Henderson <rth@redhat.com>
13456
13457 * doc/standards.texi: Document required freestanding libc entry points.
13458
c94ccb87
AM
134592002-04-02 Alan Modra <amodra@bigpond.net.au>
13460
13461 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
13462 associated splitter. Remove MQ constraint.
13463 (ctrdi_internal4): Correct CCmode clobber.
13464
fe660a1a
JDA
134652002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
13466
13467 * milli64.S ($$dyncall): New function.
13468 * t-linux (LIB1ASMFUNCS): Revise module list.
13469 (LIB1ASMSRC): Use pa/milli64.S.
13470
eadc0202
RH
134712002-04-02 Richard Henderson <rth@redhat.com>
13472
13473 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
13474 rename solaris_sys_varargs_h.
13475
a1471322
RK
13476Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13477
13478 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
13479 the same mode as its component.
13480
c8b94768
RH
134812002-04-02 Richard Henderson <rth@redhat.com>
13482
13483 PR opt/190
13484 * final.c (this_is_asm_operands): Export.
13485 * output.h (this_is_asm_operands): Declare.
13486 * config/i386/i386.c (print_operand): Error odd asm operands.
13487
161eb4fc
RH
134882002-04-02 Richard Henderson <rth@redhat.com>
13489
13490 PR opt/420
13491 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
13492
b88a94c6
RH
134932002-04-01 Richard Henderson <rth@redhat.com>
13494
13495 PR target/1538
13496 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
13497 * fixinc/fixincl.x: Rebuild.
13498
72e32876
RH
134992002-04-01 Richard Henderson <rth@redhat.com>
13500
13501 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
13502 (atomic_alloc, atomic_free): New.
13503 (SIZE, MASK_FOR, PTR_IN): New.
13504 (emergency_reg_state, emergency_reg_state_free): New.
13505 (emergency_labeled_state, emergency_labeled_state_free): New.
13506 (reg_state_alloced, labeled_state_alloced): New.
13507 (alloc_reg_state, free_reg_state): New.
13508 (alloc_label_state, free_label_state, free_label_states): New.
13509 (push, pop, dup_state_stack, free_state_stack): Use them.
13510 (desc_label_state): Likewise.
13511 (uw_frame_state_for): Free label states and state stack.
13512 (uw_update_reg_address): Eliminate warnings.
13513
84d76074
VM
135142002-04-01 Vladimir Makarov <vmakarov@redhat.com>
13515
13516 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9be40833 13517 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
84d76074 13518
dffd7eb6
NB
135192002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13520
13521 * c-decl.c (grokdeclarator): Update.
13522 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13523 * c-tree.h (c_mark_addressable): New.
13524 * c-typeck.c (default_function_array_conversion, build_unary_op,
13525 build_array_ref, convert_for_assignment): Update.
13526 (mark_addressable): Rename.
13527 * calls.c (try_to_integrate, expand_call): Use langhook.
13528 * expr.c (expand_expr): Use langhook.
13529 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
13530 * langhooks.h (struct lang_hooks): New hook.
13531 * stmt.c (expand_asm_operands): Use langhook.
13532 * tree.h (mark_addressable): Remove.
13533objc:
13534 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13535
544ef5b5
BW
135362002-04-01 Bob Wilson <bob.wilson@acm.org>
13537
9be40833
RH
13538 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
13539 in previous change.
544ef5b5 13540
bcf88f9b
BW
135412002-04-01 Bob Wilson <bob.wilson@acm.org>
13542
13543 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
13544 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
13545
ceef8ce4
NB
135462002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13547
13548 * c-common.c (unsigned_conversion_warning, convert_and_check,
13549 unsigned_type, signed_type, shorten_compare,
13550 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
13551 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
13552 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
13553 New.
13554 * c-decl.c (grokdeclarator): Update.
13555 * c-format.c (check_format_types): Update.
13556 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13557 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13558 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
13559 * convert.c (convert_to_integer): Use new hooks.
13560 * expmed.c (make_tree): Use new hooks.
13561 * expr.c (store_expr): Use new hooks.
13562 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
13563 all_ones_mask_p, unextend, fold): Use new hooks.
13564 * langhooks.h (struct lang_hooks_for_types): New hooks.
13565 * tree.h (signed_or_unsigned_type, signed_type,
13566 unsigned_type): Remove.
13567objc:
13568 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13569 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13570
1d9ad0e0
RH
135712002-03-31 Richard Henderson <rth@redhat.com>
13572
13573 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
13574 (desc_frgr_mem): Fix reference to f16-f31.
13575
d544bc39
KG
135762002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13577
13578 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
13579 RTVEC_ELT): Const-ify.
d8750784
KG
13580 * varray.h (VARRAY_CHECK): Const-ify.
13581 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
13582 ggc_mark_rtvec, ggc_mark): Const-ify.
d544bc39 13583
b18101c7
NB
135842002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13585
13586 * diagnostic.c: Include langhooks-def.h.
13587 * Makefile.in (diagnostic.o): Update.
13588
48a7a235
NB
135892002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
13590
13591 * c-common.c (c_unsafe_for_reeval): Rename.
13592 * c-common.h (c_unsafe_for_reeval): Rename.
13593 * c-decl.c (finish_incomplete_decl): Rename.
13594 (c_init_decl_processing): Don't set langhook.
13595 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13596 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13597 * c-objc-common.c (c_objc_common_init): Don't set langhook.
13598 * c-tree.h (finish_incomplete_decl): Rename.
13599 * langhooks-def.h (lhd_unsafe_for_reeval): New.
13600 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
13601 (LANG_HOOKS_INITIALIZER): Update.
13602 * langhooks.c (lhd_unsafe_For_reeval): New.
13603 * langhooks.h (struct langhooks): New hooks.
13604 * toplev.c (incomplete_decl_finalize_hook): Remove.
13605 (wrapup_global_declarations): Update.
13606 * tree.c (lang_unsafe_for_reeval): Remove.
13607 (unsafe_for_reeval): Update.
13608 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
13609 Remove.
13610objc:
13611 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13612 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13613
7cb32822
NB
136142002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
13615
13616 * diagnostic.c (print_error_function): Remove.
13617 (default_print_error_function): Rename.
13618 (report_error_function): Update.
13619 * diagnostic.h (print_error_function): Remove.
13620 (default_print_error_function): Remove.
13621 * langhooks-def.h (struct diagnostic_context): Predeclare.
13622 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
13623 (LANG_HOOKS_INITIALIZER): Update.
13624 * langhooks.h (struct diagnostic context): Predeclare.
13625 (struct lang_hooks): New hook.
13626
1db02437
FS
136272002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13628
13629 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
13630 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
13631 !flag_pic.
13632 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
13633 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
13634 of PIC_OFFSET_TABLE_REGNUM thruout.
13635 * config/rs6000/rs6000.md: Likewise.
13636 * config/rs6000/darwin.h: Likewise.
13637
3bf1e984
RK
13638Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13639
13640 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
13641 unsigned HOST_WIDE_INT, not unsigned int.
13642
0864c526
JJ
136432002-03-31 Jakub Jelinek <jakub@redhat.com>
13644
13645 PR middle-end/6096, middle-end/6098, middle-end/6099
13646 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
13647 CODE_LABELs.
13648 (fill_slots_from_thread): Likewise.
13649
105b2084
JJ
136502002-03-31 Jakub Jelinek <jakub@redhat.com>
13651
13652 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
13653 floating fields in float regs.
13654 (function_arg_record_value_2): Likewise.
13655
db08fddf
HPN
136562002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
13657
13658 * config/mmix/mmix.md (define_constants): Remove misleading
13659 FIXME. Add MMIX_fp_rO_OFFSET.
13660 ("nonlocal_goto_receiver"): Don't have stack-frame address of
13661 saved rO as part of the pattern. Remove FIXME.
13662 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
13663 here, at output-time.
13664
4f31cce8
JJ
136652002-03-31 Jakub Jelinek <jakub@redhat.com>
13666
13667 PR middle-end/6100
13668 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
13669 REG_BR_PRED.
13670 (output_v9branch): Likewise.
13671
ba2b7435
AO
136722002-03-31 Alexandre Oliva <aoliva@redhat.com>
13673
13674 * gcc.c: Revert previous patch for now.
13675 * config/i386/djgpp.h: Likewise.
13676
aa66aa5f 136772002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8f840f57
HPN
13678
13679 * config/mmix/crti.asm (_init): Register _fini with atexit.
13680 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
13681
41ba8a20
RH
136822002-03-31 Richard Henderson <rth@redhat.com>
13683
13684 PR target/3997
13685 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
13686 (ASM_OUTPUT_DEF_FROM_DECLS): New.
13687
adc186ef
RH
136882002-03-31 Richard Henderson <rth@redhat.com>
13689
13690 * libgcc2.c (__bb_exit_func): Make static.
13691
9be40833 13692 * config/alpha/alpha.md (trap): New.
a7648399 13693
9602f5a0
RH
136942002-03-31 Richard Henderson <rth@redhat.com>
13695
13696 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
13697 promoted argument types; build trap.
13698 (expand_builtin_trap): New.
13699 (expand_builtin): Use it.
13700 * stmt.c (expand_nl_goto_receivers): Likewise.
13701 * expr.h (expand_builtin_trap): Declare.
13702 * libfuncs.h (LTI_abort, abort_libfunc): New.
13703 * optabs.c (init_optabs): Init abort_libfunc.
13704
1a0a7539
AO
137052002-03-31 Alexandre Oliva <aoliva@redhat.com>
13706
13707 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
13708 (LINK_COMMAND_SPEC): ... from here.
7b2e1077 13709 (init_gcc_specs): Duplicate it here too, omitting
1a0a7539
AO
13710 shared_name in the second copy.
13711 (init_spec): Test for duplicate
13712 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
13713
b5de1a27
DM
137142002-03-30 David S. Miller <davem@redhat.com>
13715
13716 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13717 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
13718
78414d74 137192002-03-30 Roger Sayle <roger@eyesopen.com>
9be40833 13720 Richard Henderson <rth@redhat.com>
78414d74 13721
9be40833
RH
13722 * regmove.c (combine_stack_adjustments_for_block): Avoid
13723 emitting a stack adjustment of zero bytes. Let delete_insn
13724 update bb->head.
78414d74 13725
33074e5f
RH
137262002-03-30 Richard Henderson <rth@redhat.com>
13727
13728 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
13729 (sparc_emitting_epilogue): New.
13730 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
13731 * config/sparc/sparc-protos.h: Update.
13732 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
13733 (TARGET_SWITCHES): Update.
13734 * config/sparc/sparc.md (return): Remove.
13735 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
13736 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
13737 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
13738 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13739 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
13740 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
13741 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
13742 Remove MASK_EPILOGUE.
13743 * doc/invoke.texi: Update.
13744
606cc056
DB
137452002-03-30 Daniel Berlin <dan@dberlin.org>
13746
13747 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
13748 CPP will start the file for us.
7b2e1077 13749
bdbe5b8d
RH
137502002-03-30 Richard Henderson <rth@redhat.com>
13751
13752 PR target/5446
13753 * config/ia64/ia64.c (group_barrier_needed_p): Special case
13754 prologue_allocate_stack.
13755 (ia64_single_set): Use insn codes for recognition of special
13756 cases, not rtl matching.
13757 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
13758
4ab95d82
JH
13759Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
13760
13761 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
13762
89a8b315
RH
137632002-03-30 Richard Henderson <rth@redhat.com>
13764
13765 PR target/6032
13766 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
13767 or -fomit-frame-pointer with profiling.
13768 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13769 (FUNCTION_PROFILER): Do nothing.
13770 (PROFILE_HOOK): New.
13771 * config/sparc/sparc.c (sparc_override_options): Don't check
13772 code models for profiling.
13773 (sparc_function_profiler): Remove.
13774 (sparc_profile_hook): New.
13775 * config/sparc/sparc-protos.h: Update.
13776
30984c57
JJ
137772002-03-30 Jakub Jelinek <jakub@redhat.com>
13778
13779 PR optimization/6086
13780 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
13781 of SUBREG of volatile MEM or because the MEM was mode dependent,
13782 return CLOBBER instead of unmodified SUBREG.
13783
1540f9eb
JH
13784Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
13785
89a8b315
RH
13786 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
13787 when not optimizing.
1540f9eb
JH
13788
13789 * toplev.c (rest_of_compilation): Cann mark_constant_function
13790 only when optimizing.
13791
89a8b315
RH
13792 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
13793 are NULL.
1540f9eb
JH
13794
13795 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
13796 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
13797 (try_optimize_cfg): clear all AUX fields.
13798
13799 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
13800 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
13801 (ix86_address_cost): Be prepared for SUBREGed registers.
13802 (legitimate_address_p): Accept SUBREGed registers.
13803
70d95bac
RH
138042002-03-29 Richard Henderson <rth@redhat.com>
13805
13806 PR target/5672
13807 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
13808
d3294cd9
FS
138092002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13810
13811 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
13812 for aggregate and TFmode types.
13813
a106c875
HPN
138142002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
13815
13816 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
13817
7d7a5d6f
RH
138182002-03-29 Richard Henderson <rth@redhat.com>
13819
6e2d670b 13820 PR target/5886
7d7a5d6f
RH
13821 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
13822 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
13823
30c99a84
RH
138242002-03-29 Richard Henderson <rth@redhat.com>
13825
6e2d670b 13826 PR target/6041
30c99a84
RH
13827 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
13828 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
13829 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
13830 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
13831 conditional.
13832 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
13833
02a566dc
DJ
138342002-03-29 Dale Johannesen <dalej@apple.com>
13835
13836 * loop.c (combine_movables): Do allow combination of pseudos.
13837
bc3a44db
LR
138382002-03-29 Loren J. Rittle <ljrittle@acm.org>
13839
13840 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
13841 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
13842 No functional change except ...
13843 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
13844 * doc/install.texi (*-*-freebsd*): Document port configuration.
13845
b0c48229
NB
138462002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
13847
13848 * Makefile.in (convert.o, calls.o, expmed.o): Update.
13849 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
13850 Use new hooks.
13851 * builtin-types.def (BT_PTRMODE): Update.
13852 * c-common.c (type_for_size): Rename c_common_type_for_size.
13853 (type_for_mode): Similarly.
13854 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
13855 Use new hook.
13856 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
13857 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
13858 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
13859 Redefine.
13860 * c-typeck.c (common_type, comptypes, default_conversion):
13861 Use new hooks.
13862 * calls.c: Include langhooks.h.
13863 (emit_library_call_value_1): Use new hooks. Avoid redundant
13864 calls.
13865 * convert.c: Include langhooks.h
13866 (convert_to_pointer, convert_to_integer): Use new hooks.
13867 * except.c (init_eh): Similarly.
13868 * expmed.c: Include langhooks.h.
13869 (expand_mult_add): Use new hooks.
13870 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
13871 try_casesi): Similarly.
13872 * fold-const.c (optimize_bit_field_compare, make_range,
13873 decode_field_reference, fold_truthop, fold): Similarly.
13874 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
13875 put_var_into_stack): Similarly.
13876 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
13877 LANG_HOOKS_TYPE_FOR_SIZE): New.
13878 (LANG_HOOKS_TYPES_INITIALIZER): Update.
13879 * langhooks.h (lang_hooks_for_types): New hooks.
13880 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
13881 * tree.c (get_unwidened, get_narrower): Similarly.
13882 * tree.h (type_for_mode, type_for_size): Remove.
13883 * varasm.c (force_const_mem): Use new hooks.
13884 * utils2.c (nonbinary_modular_operation): Update.
13885objc:
13886 * objc-act.c (handle_impent): Update.
13887 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
13888 Redefine.
13889
e206a74f
SE
138902002-03-29 Steve Ellcey <sje@cup.hp.com>
13891
13892 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
13893 * config/ia64/ia64.c (basereg_operand): New.
13894 * config/ia64/ia64-protos.h (basereg_operand): Declare.
13895 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
13896
7d9b6378
HPN
138972002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
13898
13899 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
13900 unwind information when frame_pointer_needed.
13901 (mmix_assemble_integer): Tweak wording in comment.
13902
f1e639b1
NB
139032002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
13904
13905 * Makefile.in (except.o): Update.
13906 * except.c: Include langhooks.h.
13907 (init_eh): Use langhook.
13908 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
13909 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
13910 (LANG_HOOKS_INITIALIZER): Update.
13911 * langhooks.h (lang_hooks_for_types): New.
13912 (struct lang_hooks): Add it.
13913 * tree.c (make_lang_type_fn, make_lang_type): Remove.
13914 * tree.h (make_lang_type_fn, make_lang_type): Remove.
13915config:
13916 * alpha/alpha.c: Include langhooks.h.
13917 (alpha_build_va_list): Use langhook.
13918 * d30v/d30v.c: Include langhooks.h.
13919 (d30v_build_va_list): Use langhook.
13920 * i386/i386.c: Include langhooks.h.
13921 (ix86_build_va_list): Use langhook.
13922 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
13923 * s390/s390.c: Include langhooks.h.
13924 (s390_build_va_list): Use langhook.
13925 * stormy16/stormy16.c: Include langhooks.h.
13926 (stormy16_build_va_list): Use langhook.
13927
f17f9332
JJ
139282002-03-29 Jakub Jelinek <jakub@redhat.com>
13929
13930 PR c++/5964
13931 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
13932 attributes.
13933 (length): Compute variable length for branches/calls/jumps here.
13934 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
13935 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
13936 define branch_type attribute.
13937 (divsi3_sp32): Maximum length is 6 not 7.
13938 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
13939 call_address_untyped_struct_value_sp32,
13940 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
13941 * config/sparc/sparc.c (empty_delay_slot): New function.
13942 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
13943 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
13944
0a0440c9
JJ
139452002-03-29 Jakub Jelinek <jakub@redhat.com>
13946
13947 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
13948 nonzero_bits if not needed.
13949 (nonzero_bits) [XOR]: Likewise.
13950 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
13951 reg_last_set_mode and mode are both MODE_INT, but not equal.
13952 (record_value_for_reg): Compute reg_last_set_nonzero_bits
13953 in nonzero_bits_mode for MODE_INT modes.
13954
c9045f47
RH
139552002-03-28 Richard Henderson <rth@redhat.com>
13956
13957 PR target/5715
13958 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
13959 to GAS. Correct drift between alternatives.
13960
f8ed1958
RH
139612002-03-28 Richard Henderson <rth@redhat.com>
13962
13963 PR target/6087
13964 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
13965
54e20385
LR
139662002-03-28 Alexandre Oliva <aoliva@redhat.com>
13967
13968 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
13969 emulation to the linker.
13970
139712002-03-28 Loren J. Rittle <ljrittle@acm.org>
13972
13973 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
13974 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
13975
8bc52806
JL
13976Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
13977
13978 * combine.c (simplify_and_const_int): Make sure to apply mask
13979 when force_to_mode returns a constant integer. PR3311.
13980
279dccc5
JDA
139812002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
13982
13983 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
13984
62aaa62c
GP
139852002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13986
13987 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
13988 and Objective-C Dialect Options.
13989
b8de5050
RH
139902002-03-28 Richard Henderson <rth@redhat.com>
13991
13992 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
13993 comparison should be done vs !=0 not >0 return code. Tidy cases.
13994
619708cc
RH
139952002-03-28 Richard Henderson <rth@redhat.com>
13996
13997 * c-decl.c (finish_function): New arg can_defer_p. Pass it
13998 on to c_expand_body.
13999 * c-tree.h (finish_function): Update decl.
14000 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
14001
b1d874d7
JH
14002Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
14003
14004 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
14005
f5eb5fd0
JH
14006Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
14007
14008 * rtlanal.c: Include flags.h
14009 (may_trap_p): Do not mark FP operations if trapping
14010 if !flag_trapping_math
14011 * Makefile.in (rtlanal.o): Add dependency on flag.h
14012 * ifcvt.c (noce_operand_ok): Avoid the lameness.
14013
81b4c798
ZW
140142002-03-27 Zack Weinberg <zack@codesourcery.com>
14015
14016 * mips.md: Use dconst1, not 1.0, as first argument of
14017 REAL_VALUE_LDEXP. Don't use union real_extract.
14018
55a2ea2a
AM
140192002-03-28 Alan Modra <amodra@bigpond.net.au>
14020
14021 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
14022 rather than $target. Heed program_prefix and
14023 program_transform_name. Search for gas in cross-compiler case too.
14024 "test -x" rather than "test -f".
14025 (gcc_cv_ld): Likewise.
14026 (gcc_cv_nm): Heed program_prefix and program_transform_name.
14027 (gcc_cv_objdump): Likewise.
14028 * configure: Regenerate.
14029
7ffb4fd2
NB
140302002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14031
14032 * Makefile.in (attribs.o): Update.
14033 * attribs.c: Include langhooks.h.
14034 (decl_attributes): Use langhook.
14035 * c-decl.c (insert_default_attributes): Rename.
14036 * c-tree.h (c_insert_default_attributes): New.
14037 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
14038 (LANG_HOOKS_INITIALIZER): Update.
14039 * langhooks.h (struct lang_hooks): New hook.
14040 * tree.h (insert_default_attributes): Remove.
14041objc:
14042 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
14043
e4dbaed5
AS
140442002-03-27 Andreas Schwab <schwab@suse.de>
14045
14046 * config/i386/i386.c (classify_argument): Also check for
14047 QUAL_UNION_TYPE.
14048
18b467f1
RO
140492002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14050
14051 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
14052 any more.
14053
d337d653
JH
14054Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
14055
14056 * i960.md (ret): Set PC.
14057 (nonlocal_goto): Fix expander.
14058 * builtins.c (epxand_builin_longjmp): Check that we've emitted
14059 some jump or call.
14060
218aa620
JH
14061Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
14062
14063 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
14064 of libcall regions.
14065
e27a4eaf
ZD
14066Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14067
14068 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
14069 assigning to BLOCK_FOR_INSN directly.
14070
8a12f34c
JH
14071Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
14072
14073 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
14074
c9d892a8
NB
140752002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14076
14077 * c-common.c (c_expand_expr): Fix prototype.
14078 * c-common.h (c_expand_expr): Always declare, update.
14079 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14080 * c-objc-common.c (c_objc_common_init): No global hook.
14081 * expr.c (expand_expr): Use langhook.
14082 * expr.h (enum expand_modifier): Conditionally declare.
14083 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
14084 (LANG_HOOKS_INITIALIZER): Update.
14085 * langhooks.c (lhd_expand_expr): New.
14086 * langhooks.h (struct lang_hooks): New hook.
14087 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
14088 (lang_independent_init): Don't default hook.
14089objc:
14090 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14091
6dad5a56
RH
140922002-03-27 Richard Henderson <rth@redhat.com>
14093
14094 PR target/6054
14095 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
14096 TARGET_CONST_GP. Simplify conditions.
14097
59f96879
RH
140982002-03-27 Richard Henderson <rth@redhat.com>
14099
14100 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14101 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
14102 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
14103
f3f1190d
DS
141042002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
14105
14106 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
14107 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
14108 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
14109 Remove unnecessary masks.
14110 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
14111 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
14112 -mwindows, -mdll switches and their negations.
14113
31c816cf
NB
141142002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14115
14116 * gcc-common.c (lang_mark_false_label_stack): Remove.
14117 * ggc.h (lang_mark_false_label_stack): Similarly.
14118
7b2e1077 141192002-03-26 Vladimir Makarov <vmakarov@redhat.com>
aee8f532
VM
14120
14121 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
14122
14123 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
14124 or __rtems_ is defined.
14125
1ef9531b
RH
141262002-03-26 Richard Henderson <rth@redhat.com>
14127
14128 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
14129 if a non-trivial load was emitted.
14130 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
14131 in high+extra+low case.
14132
300d4093
RH
141332002-03-26 Richard Henderson <rth@redhat.com>
14134
14135 * config.gcc (sparc*-solaris): Use float_format=sparc.
14136
b3689904
RH
141372002-03-26 Richard Henderson <rth@redhat.com>
14138
14139 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14140 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
14141 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
14142 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
14143 (WINT_TYPE_SIZE): Fix at 32.
14144
1eefb6c1
RH
141452002-03-26 Richard Henderson <rth@redhat.com>
14146
14147 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
14148 until after eh landing pad generation.
14149 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
14150 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
14151
361ea006
RH
141522002-03-26 Richard Henderson <rth@redhat.com>
14153
14154 * expr.h (ADD_PARM_SIZE): One more convert for INC.
14155
1de38a88
PE
141562002-03-26 Phil Edwards <pme@gcc.gnu.org>
14157
14158 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
14159 and warning switches.
14160 (cc1_options): Likewise.
14161
d7e60e95 141622002-03-26 Hans Boehm <Hans_Boehm@hp.com>
361ea006 14163
d7e60e95
HB
14164 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
14165 Restore more of the signal context. Set no_reg_stack_frame.
14166 * config/ia64/unwind-ia64.c (unw_state_record):
14167 Add no_reg_stack_frame, comments.
14168 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
14169 (uw_update_context): Adjust bsp when unwinding from leaf,
14170 but not signal frame.
14171
7032923b
DE
141722002-03-26 David Edelsohn <edelsohn@gnu.org>
14173
14174 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
14175
8be56275
BW
141762002-03-26 Bob Wilson <bob.wilson@acm.org>
14177
14178 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
14179
56fbb855
RE
141802002-03-26 Richard Earnshaw <rearnsha@arm.com>
14181
14182 PR target/5621
14183 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
14184 "Add a pool_range attribute", which was lost during the ARM/Thumb
14185 merge.
14186
3437320b
BW
141872002-03-26 Bob Wilson <bob.wilson@acm.org>
14188
14189 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
14190 a register into the MAC16 accumulator.
14191
173028e5
AC
141922002-03-26 Andrew Cagney <ac131313@redhat.com>
14193
14194 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
14195 (Warning Options): Document -Wswitch-enum.
14196 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
14197 -Wswitch.
14198 (warn_switch_enum): Define variables.
14199 * flags.h (warn_switch_enum): Declare variables.
14200 * stmt.c (expand_end_case_type): When warn_switch_enum /
14201 -Wswitch-enum, perform switch checks.
14202 Fix PR c/5044.
7b2e1077 14203
e14365a7
RE
142042002-03-26 Richard Earnshaw <rearnsha@arm.com>
14205
14206 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
14207 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
14208 (reload_muladdsi_compare0_scratch): Delete.
14209
46fc709d
LR
142102002-03-26 Loren J. Rittle <ljrittle@acm.org>
14211
14212 * doc/install.texi (*-*-freebsd*): Update.
14213
f36dea3c
RH
142142002-03-26 Richard Henderson <rth@redhat.com>
14215
8e5fe23f
RH
14216 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
14217 (SUB_PARM_SIZE): Cast DEC to ssizetype.
14218
14219 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
14220 types from the normal argument frame.
14221
f36dea3c
RH
14222 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
14223 variable sized objects by reference.
14224 (sparc_va_arg): Receive them by reference too.
14225
1447dc69
HP
142262002-03-26 Hartmut Penner <hpenner@de.ibm.com>
14227
14228 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7b2e1077 14229 code to not restoring global registers.
1447dc69 14230
4f0ade92
NB
142312002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
14232
14233 * Makefile.in (ggc-common.o): Update.
14234 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
14235 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14236 * c-tree.h (c_mark_tree): New.
14237 * ggc-common.c: Include langhooks.h.
14238 (gcc_mark_trees): Use new langhook.
14239 * ggc-callbacks.c: Delete file.
14240 * ggc.h (lang_mark_tree): Remove.
14241 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
14242 (LANG_HOOKS_INITIALIZER): Update.
14243 * langhooks.h (struct lang_hooks): New hook.
14244objc:
14245 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14246
caba570b
ZW
142472002-03-25 Zack Weinberg <zack@codesourcery.com>
14248
14249 * doc/cpp.texi: Exclude entire Top node from printed manual.
14250 Move option index after directive index. Insert page breaks
14251 before GFDL and concept index. Index environment variables
14252 with command line options.
14253 * doc/cppenv.texi: Use @vtable for environment variable list.
14254 Add paragraph explaining semantics of empty elements in path
14255 variables. Exclude a cross-reference to Fishkill from the
14256 manpage. Remove an unnecessary cross-reference of the entry
14257 right above the referer. Don't use @anchor in text that goes
14258 into manpage.
14259 * doc/cppopts.texi: Cross-reference the environment variables
14260 section, not the specific environment variable, for consistency.
14261
6b2e80b7
RH
142622002-03-25 Richard Henderson <rth@redhat.com>
14263
14264 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
14265 anywhere in the block. Don't refer to insns that have been
14266 removed from the chain. Iterate backward through the new insns.
14267 Don't refer to edges that have been removed.
14268
67e469d7
AM
142692002-03-26 Alan Modra <amodra@bigpond.net.au>
14270
14271 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
14272 test for overflow of constant.
14273
f2356393
RE
142742002-03-25 Richard Earnshaw <rearnsha@arm.com>
14275
14276 PR target/2623
14277 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
14278 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
14279 these patterns on arm_archv4.
14280
355426ab
DS
142812002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
14282
14283 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
14284 int".
14285
15e5ad76
ZW
142862002-03-25 Zack Weinberg <zack@codesourcery.com>
14287
14288 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
14289 float_handled, float_handler, float_signal, set_float_handler,
14290 and do_float_handler. Set handler for SIGFPE to crash_signal.
14291 * toplev.h: Don't prototype do_float_handler.
14292
14293 * c-lex.c: Fold parse_float into lex_number. Make warning
14294 about portability of hex float constants more informative, and
14295 don't issue it on top of a syntax error.
14296 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
14297 their callers.
14298 * real.h: Define REAL_VALUE_ABS here...
14299 * simplify-rtx.c: ... not here. Fold check_fold_consts,
14300 simplify_unary_real, simplify_binary_real, and
14301 simplify_binary_is2orm1 into their callers.
14302 * tree.c: Fold build_real_from_int_cst_1 into caller.
14303
14304 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
14305
14306 * tsystem.h: Include float.h here...
14307 * libgcc2.c: ... not here.
14308
56ae9405
NC
143092002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
14310
14311 Fixes for: PR bootstrap/3591, target/5676
14312 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
14313 defined. Do not disable exceptions or rtti.
14314 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
14315 mcore.h. Disable exceptions and rtti, since they are not
14316 supported by EPOC.
14317
c88770e9
NB
143182002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
14319
14320 * c-decl.c (maybe_build_cleanup): Remove.
14321 * expr.c (expand_expr): Use langhook.
14322 * langhooks-def.h (lhd_return_null_tree,
14323 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
14324 (LANGHOOKS_INITIALIZER): Update.
14325 * langhooks.c (lhd_return_null_tree): New.
14326 * langhooks.h (struct lang_hooks): New hook.
14327 * tree-inline.c (initialize_inlined_parameters): Use langhook.
14328 * tree.h (maybe_build_cleanup): Remove.
14329
2ed1f154
JJ
143302002-03-25 Jakub Jelinek <jakub@redhat.com>
14331
14332 * regrename.c (build_def_use): Move recog_memoized
14333 before extract_insn.
14334
6ddae612
JJ
143352002-03-25 Jakub Jelinek <jakub@redhat.com>
14336
14337 PR target/6043
14338 * expr.c (emit_group_store): Handle storing into CONCAT.
14339
ea475b23
JJ
143402002-03-25 Jakub Jelinek <jakub@redhat.com>
14341
14342 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
14343 corresponding MATCH_DUP.
14344
e7d482b9
RH
143452002-03-24 Richard Henderson <rth@redhat.com>
14346
cd39fc13
RH
14347 * unroll.c (unroll_loop): Zero label_map.
14348
e7d482b9
RH
14349 * gcse.c: Include except.h.
14350 * Makefile.in (gcse.o): Update.
14351
1bd6476f
RH
143522002-03-24 Richard Henderson <rth@redhat.com>
14353
14354 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
14355 Do resolve_unique_section before shared data clause.
14356
2e6c150a
RH
143572002-03-24 Richard Henderson <rth@redhat.com>
14358
14359 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
14360
b29afcf8
RH
143612002-03-24 Richard Henderson <rth@redhat.com>
14362
15e5ad76 14363 * recog.c (peephole2_optimize): Split blocks when EH insns are
b29afcf8
RH
14364 generated in the middle of a block. Do global life update if
14365 zapped EH edges.
14366
05ed1296
RH
143672002-03-24 Richard Henderson <rth@redhat.com>
14368
14369 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
14370
3ddbb8a9
NB
143712002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14372
14373 preprocessor/3951
15e5ad76 14374 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3ddbb8a9
NB
14375 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
14376 (init_dependency_output): Don't make no_output decision here.
14377
740b77b6
AC
143782002-03-24 Andrew Cagney <ac131313@redhat.com>
14379
14380 * stmt.c (check_for_full_enumeration_handling): Remove tests of
14381 warn_switch. Update description.
14382 (expand_end_case_type): Call check_for_full_enumeration_handling
14383 when warn_switch.
14384
7590cfd0
SC
143852002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14386
14387 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
14388 (m68hc11_split_move): Call it to see if the source and destination
14389 operands use the same direction auto inc/dec mode, otherwise make the
c61f581f 14390 source an offsetable memory operand and generate an add.
7590cfd0 14391
2e3d3481
SC
143922002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14393
14394 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
14395 register for operand 2.
14396 ("*subsi3_zero_extendqi"): Likewise.
14397 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
14398 bits so that it is compatible with a pop.
14399 ("*andhi3_gen"): Likewise.
14400 ("xorhi3"): Likewise.
14401
2784528c
NB
144022002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14403
14404 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
14405 -pedantic here...
14406 (cpp_post_options): ... not here.
14407
aaf93206
NB
144082002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14409 Aldy Hernandez <aldyh@redhat.com>
14410
14411 Removal of separate preprocessor cpp0.
14412
14413 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
14414 cpp0, install-common): Update.
14415 * c-common.c (flag_preprocess_only): New.
14416 (c_common_init): Preprocess for -E.
14417 * c-common.h (flag_preprocess_only): New.
14418 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
14419 * c-objc-common.c (c_init_decl_processing): Exit quickly
14420 for NULL return from c_common_init.
14421 * cpplib.h (cpp_preprocess_file): New.
14422 * cppmain.c (main, general_init, pfile, progname): Remove.
14423 (do_preprocessing): Rename cpp_preprocess_file, don't call
14424 cpp_finish. Don't close stdout here.
14425 (setup_callbacks): Update prototype.
14426 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
14427 Update.
14428 * tradcpp.c (main): Ignore -quiet.
14429objc:
14430 * lang-specs.h (default_compilers): Preprocess with cc1obj.
14431
c6e6f5c1
RH
144322002-03-24 Richard Henderson <rth@redhat.com>
14433
14434 PR optimization/5742
14435 * machmode.def: Add inner mode field to complex modes.
14436 * config/mips/mips.c (mips_function_value): Always define. Add
14437 new argument to handle libcalls.
14438 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
14439 (FUNCTION_VALUE): Likewise.
14440 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
14441 * config/mips/mips-protos.h: Update.
14442
d88e57d1
RH
144432002-03-23 Richard Henderson <rth@redhat.com>
14444
14445 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
14446 * config/sparc/sparc-protos.h: Update.
14447 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
14448
6dfaf9ba
RH
144492002-03-23 Richard Henderson <rth@redhat.com>
14450
14451 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
14452 _start or _init begins the text segment.
14453
0c769cf8
DE
144542002-03-23 David Edelsohn <edelsohn@gnu.org>
14455
14456 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
14457 not HOST_WIDEST_INT.
14458 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
14459
64e92a26
RE
144602002-03-23 Richard Earnshaw <rearnsha@arm.com>
14461
14462 PR java/5489
14463 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
14464 operand argument to output_return_instruction.
15e5ad76 14465 * arm.c (arm_print_operand, case 'd'): If the operand is
64e92a26
RE
14466 const_true_rtx then just return.
14467 (arm_print_operand, case 'D'): If the operand is const_true_rtx
14468 then abort.
14469
d6961341
AC
144702002-03-23 Andrew Cagney <ac131313@redhat.com>
14471
14472 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
14473 (Warning Options): Document -Wswitch-default.
14474 * toplev.c (W_options): Add -Wswitch-default. Update comment on
14475 -Wswitch.
14476 (warn_switch_default): Define variable.
14477 (warn_switch): Update comment.
14478 * flags.h (warn_switch_default): Declare variable.
14479 (warn_switch): Update comment.
14480 * stmt.c (expand_end_case): Check for and, when
14481 warn_switch_no_default, warn of a missing default case.
15e5ad76 14482
d4c5ac1f
AM
144832002-03-23 Alan Modra <amodra@bigpond.net.au>
14484
bbaa9790
AM
14485 * real.h (N): Special case 128 bit doubles.
14486
d4c5ac1f
AM
14487 * combine.c (simplify_comparison): When widening modes, ignore
14488 sign extension on CONST_INTs.
14489
84bf8c2c
BW
144902002-03-22 Bob Wilson <bob.wilson@acm.org>
14491
14492 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
14493 passed to adjust_address. Fix comment formatting.
14494
14495
b216cd4a
ZW
144962002-03-22 Zack Weinberg <zack@codesourcery.com>
14497
14498 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
14499 Always make REAL_VALUE_TYPE a struct containing an array of
14500 HOST_WIDE_INT, not a double. Tidy up the code deciding how
14501 big it is. Don't declare or use union real_extract.
14502
14503 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
14504 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
14505 (print_operand), config/arm/arm.c (output_move_double),
14506 config/arm/arm.md (consttable_4, consttable_8),
14507 config/romp/romp.c (output_fpops), config/s390/s390.h
14508 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
14509 (xtensa_output_literal): Don't use union real_extract.
14510
14511 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
14512 (sfmode_constant_to_ulong), config/ns32k/merlin.h
14513 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
14514 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
14515 (PRINT_OPERAND): Don't use local version of union
14516 real_extract.
14517
14518 * config/convex/convex.c (check_float_value), config/vax/vax.c
14519 (vax_float_literal), config/m88k/m88k.md (divdf3),
14520 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
14521 config/pdp11/pdp11.c (output_move_quad): Don't do host
14522 arithmetic on target floating point quantities.
14523
14524 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
14525 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
14526
14527 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
14528 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
14529
14530 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
14531 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
14532 INFINITY.
14533 * print-rtl.c (print_rtx): Disable code which needs
14534 floating-point emulator.
14535 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
14536 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
14537 depending on HOST_FLOAT_FORMAT to be defined properly.
14538
14539 * config/1750a/1750a.c (get_double, float_label): Delete.
14540 (print_operand): Delete huge commented-out chunk. Use
14541 REAL_VALUE_TO_DECIMAL.
14542 * config/1750a/1750a-protos.h: Delete prototypes of deleted
14543 functions.
14544 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
14545 IEEE_FLOAT_FORMAT.
14546 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
14547 Use REAL_VALUE_TO_DECIMAL as ELF version does.
14548 * config/m88k/m88k.c (real_power_of_2_operand,
14549 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
14550 real_extract out of the union; run the input through
14551 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
14552 from that into the union.
14553 * config/pdp11/pdp11.c (output_move_double): Rearrange
14554 parentheses to make automatic indenter happy.
14555
14556 * doc/tm.texi (Cross-compilation): Rename node to "Floating
14557 Point" and rewrite to describe current situation. Also adjust
14558 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
14559 match code.
14560 * doc/rtl.texi: Adjust cross reference.
14561
a8cacfd2
BW
145622002-03-22 Bob Wilson <bob.wilson@acm.org>
14563
14564 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
14565 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
14566 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
14567 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
14568 prevent use of sp as a reload register.
14569 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
14570 non_acc_reg_operand.
14571 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
14572 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
14573 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
14574 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
14575
d4e6133f
NB
145762002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
14577
b216cd4a
ZW
14578 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
14579 * cpplex.c (unterminated): Delete.
14580 (parse_string): No string literal may extend over multiple
14581 lines. Suppress the error when preprocessing assembly.
d4e6133f
NB
14582 * cppmain.c (scan_translation_unit): Strings are single-line.
14583
b216cd4a 14584 * doc/cpp.texi: Update to match.
d4e6133f 14585
65e6c005
JJ
145862002-03-22 Jakub Jelinek <jakub@redhat.com>
14587
14588 PR optimization/5854
14589 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
14590 Shut up warnings.
14591 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
14592 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
14593 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
14594 const0 if scratch register was not allocated.
14595 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
14596 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
14597 with GEN_INT (...).
14598 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
14599 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
14600 with GEN_INT (...) everywhere. Remove constraints in define_split
14601 patterns.
14602 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
14603 require scratch register for setting 0 into regs/non-pushable memory.
14604
7f48c9e1
AO
146052002-03-22 Alexandre Oliva <aoliva@redhat.com>
14606
14607 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
14608 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
14609
909de5da
PE
146102002-03-22 Phil Edwards <pme@gcc.gnu.org>
14611
14612 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
14613 * cppinit.c (cpp_create_reader): On by default.
14614 (cpp_handle_option): Handle -W[no-]endif-labels.
14615 (cpp_post_options): Also enable if -pedantic.
14616 * cpplib.c (do_else): Use it.
14617 (do_endif): Likewise.
14618 * doc/cppopts.texi: Document new option.
14619 * doc/invoke.texi: Document new option.
14620
d8bf17f9
LB
146212002-03-22 Lars Brinkhoff <lars@nocrew.org>
14622
14623 * config/i386/i386.c, config/i386/i386.md: Change all occurences
14624 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
14625
70e0ccd0
AO
146262002-03-22 Alexandre Oliva <aoliva@redhat.com>
14627
14628 * flow.c (calculate_global_regs_live): Clear aux fields of
14629 ENTRY and EXIT.
14630
68882f0f
JJ
146312002-03-22 Jakub Jelinek <jakub@redhat.com>
14632
14633 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
14634 REG or MEM subregs, pass rtx * instead of rtx to it.
14635 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
14636 rtx * instead of rtx to alter_subreg.
14637 * config/m32r/m32r.c (gen_split_move_double): Likewise.
14638 * config/pj/pj.c (pj_output_rval): Likewise.
14639
648fe28b
RH
146402002-03-22 Richard Henderson <rth@redhat.com>
14641
14642 PR target/3177
14643 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
14644 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
14645 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
14646 (ia64_expand_prologue): Look at int_regs, not words, for number
14647 of incomming int regs.
14648
e8dcd824
AM
146492002-03-22 Andrew MacLeod <amacleod@redhat.com>
14650
14651 * expr.c (expand_expr): A RESULT_DECL is part of a call.
14652
96327cdc
JH
14653Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
14654
14655 * toplev.c (flag_loop_optimize, flag_crossjumping):
14656 New static variables.
14657 (rest_of_compilation): Conditionalize crossjumping and
14658 loop optimizer.
14659 (parse_options_and_default_flags): Default loop_optimize and
14660 crossjumping.
14661 (lang_independent_options): Add -fcrossjumping and -floop-optimize
14662 * invoke.texi (crossjumping, loop-optimize): Document.
14663
bc185257
RS
146642002-03-22 Richard Sandiford <rsandifo@redhat.com>
14665
14666 * real.c (eiisneg): Move outside #ifdef NANS.
14667
0a2ed1f1
JH
14668Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
14669
14670 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
14671 frequencies match; avoid match on different loop depths.
14672 (try_crossjump_to_bb): Kill tests that no longer brings time
14673 savings.
14674 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
14675 updating code.
14676 (split_edge): Likewise.
14677
14678 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
14679 variable.
14680
14681 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
14682 * cfgrtl.c: Include insn-config.h
14683 (split_block) Dirtify block in presence of conditional execution
14684
4d72536e
RS
146852002-03-22 Richard Sandiford <rsandifo@redhat.com>
14686
14687 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
14688 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
14689 (function_arg): Constify CUMULATIVE_ARGS.
14690 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
14691 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
14692 (UNITS_PER_DOUBLE): New macro.
14693 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
14694 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
14695 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
14696 fp_regs and stack_words.
14697 (EABI_FLOAT_VARARGS_P): New macro.
14698 * config/mips/mips.c (struct mips_arg_info): New.
14699 (mips_arg_info): New function.
14700 (function_arg_advance): Use it. Add adjustment instructions here
14701 rather than in function_arg.
14702 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
14703 for VOIDmode at the beginning of the function.
14704 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
14705 (function_arg_pass_by_reference): Likewise.
14706 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
14707 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
14708 (mips_va_start): Likewise. Use the new stack_words field of
14709 CUMULATIVE_ARGS to set up overflow area. Reformat.
14710 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
14711 doubles and other types, aligning the overflow pointer for non-doubles
14712 too. Remove some code duplication. Replace hard-coded constants.
14713
e6f884cd
RS
147142002-03-22 Richard Sandiford <rsandifo@redhat.com>
14715
14716 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
14717 (CLASS_UNITS): Undefine.
14718 (CLASS_MAX_NREGS): Use FP_INC.
14719 * config/mips/mips.c (compute_frame_size): Likewise.
14720 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
14721
10cf9bde
NB
147222002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
14723
14724 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
14725 prototype, and handle lexing numbers and identifiers.
14726 (parse_identifier): Update to new form of parse_slow.
14727 (parse_number): Fast path only, use parse_slow otherwise.
14728 (_cpp_lex_direct): Update calls to parse_number.
14729
fbc2782e
DD
147302002-03-21 DJ Delorie <dj@redhat.com>
14731
14732 * bb-reorder.c (make_reorder_chain_1): Protect against
14733 when redundant edges are omitted.
14734 * predict.c (dump_prediction): Likewise.
14735
fba39eaf
RH
147362002-03-21 Richard Henderson <rth@redhat.com>
14737
14738 PR target/5996
14739 * fixinc/inclhack.def (solaris_stdio_tag): New.
14740 * fixinc/fixincl.x: Regenerate.
14741
eba80994
EB
147422002-03-21 Eric Botcazou <ebotcazou@multimania.com>
14743
14744 PR c/5597
14745 * c-typeck.c (process_init_element): Flag non-static
14746 initialization of a flexible array member as illegal.
14747
2a78758b
AM
147482002-03-22 Alan Modra <amodra@bigpond.net.au>
14749
14750 * config/rs6000/t-linux64: New.
14751 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
14752 t-ppccomm. Use t-rs6000 and t-linux64.
14753 (powerpc64-*-gnu* <tmake_file>): Likewise.
bac015e7
AM
14754 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
14755 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
14756 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2a78758b 14757
2cb921f4
AH
147582002-03-21 Aldy Hernandez <aldyh@redhat.com>
14759
eba80994
EB
14760 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
14761 flag_really_no_inline instead of optimize == 0.
2cb921f4 14762
eba80994 14763 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2cb921f4 14764
eba80994 14765 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2cb921f4 14766
eba80994 14767 * flags.h (flag_really_no_inline): New.
2cb921f4 14768
659e5a7a 14769 * c-common.c (c_common_post_options): Initialize
eba80994 14770 flag_really_no_inline.
2cb921f4 14771
eba80994 14772 * toplev.c (flag_really_no_inline): New.
2cb921f4 14773
239b8b9d
JJ
147742002-03-21 Jakub Jelinek <jakub@redhat.com>
14775
14776 * config/avr/avr.md (length): Fix length computation for
14777 conditional branches.
14778
43577e6b
NB
147792002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
14780
14781 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
14782 sdbout.o, profile.o): Update.
14783 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
14784 langhook.
14785 * c-common.h (gettags): Move here from tree.h.
14786 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
14787 insert_block, getdecls, kept_level_p, global_bindings_p): New.
14788 * dbxout.c (dbxout_init): Use getdecls langhook.
14789 * expr.c (expand_expr): Use insert_block langhook.
14790 * fold-const.c: Include langhooks.h.
14791 (fold_range_test, fold_binary_op_with_conditional_arg,
14792 fold): Use global_bindings_p langhook.
14793 * integrate.c (expand_inline_function): Use insert_block langhook.
14794 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
14795 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
14796 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
14797 LANG_HOOKS_GETDECLS): New.
14798 (LANG_HOOKS_INITIALIZER): Update.
14799 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
14800 langhook.
14801 * langhooks.h (struct lang_hooks_for_decls): New.
14802 (struct lang_hooks): Update.
14803 * profile.c: Include langhooks.h.
14804 (output_func_start_profiler): Use new langhooks.
14805 * sdbout.c: Include langhooks.h.
14806 (sdbout_init, sdbout_finish): Use getdecls langhook.
14807 * stmt.c: Include langhooks.h.
14808 (expand_fixup, fixup_gotos): Use new langhooks.
14809 * stor-layout.c: Include langhooks.h.
14810 (variable_size): Use global_bindings_p langhook.
14811 * toplev.c (compile_file): Use getdecls langhook.
14812 * tree-inline.c (remap_block): Use insert_block langhook.
14813 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
14814 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
14815
5b19b10c
RH
148162002-03-21 Richard Henderson <rth@redhat.com>
14817
14818 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
14819 constants in .data when -fpic.
14820
e05af335
GP
148212002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14822
14823 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
14824 where appropriate.
14825
60ffc997
TT
148262002-03-21 Tom Tromey <tromey@redhat.com>
14827
14828 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
14829
75897075
RK
14830Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14831
a73afd69 14832 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
46399021 14833
75897075
RK
14834 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
14835
312687cf
EB
148362002-03-21 Eric Botcazou <ebotcazou@multimania.com>
14837 Richard Henderson <rth@redhat.com>
14838
14839 PR c/5354
14840 * c-common.c (c_expand_expr): Preserve result of a statement
14841 expression if needed.
14842
f0e1f482
JJ
148432002-03-21 Jakub Jelinek <jakub@redhat.com>
14844
14845 PR bootstrap/4195
14846 * genrecog.c (maybe_both_true_mode): Remove.
14847 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
14848 * machmode.def (Pmode): Likewise.
14849
c14b9960
JW
14850Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
14851
14852 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
14853 (nonlocal_mentioned_p_1): New function.
14854 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
14855 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
14856 (mark_constant_function): Recognize pure functions.
14857 * rtl.h (global_reg_mentioned_p): New prototype.
14858 * rtlanal.c (global_reg_mentioned_p,
14859 global_reg_mentioned_p_1): New function.
14860
aaa4d130
RO
148612002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14862
14863 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
14864 UNIX assert.h.
14865 * fixinc/fixincl.x: Regenerate.
14866
e5c4bd1b
JM
148672002-03-20 Jason Merrill <jason@redhat.com>
14868
14869 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
14870
852b81bb
MM
148712002-03-20 Michael Meissner <meissner@redhat.com>
14872
14873 * doc/invoke.texi (Optimize Options): Document that -O2 sets
14874 -fstrict-aliasing.
14875
86d8c251
BW
148762002-03-20 Bob Wilson <bob.wilson@acm.org>
14877
14878 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
14879 ".literal_position" directive before the constant pool.
14880
0a39c350
GP
148812002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14882
14883 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
14884 Add Craig Rodrigues.
14885 Add Brad Lucier to testers.
14886
71a83373
JJ
148872002-03-20 Jakub Jelinek <jakub@redhat.com>
14888
14889 PR target/4792
14890 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
14891 to if_then_else.
14892 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
14893 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
14894 instead of insn_extract.
14895
a29b099d
JJ
148962002-03-20 Jakub Jelinek <jakub@redhat.com>
14897
14898 PR bootstrap/4192
71a83373 14899 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
a29b099d
JJ
14900
14901 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
14902 stmt if some case has been output.
14903
048b1c95
JJ
149042002-03-20 Jakub Jelinek <jakub@redhat.com>
14905
14906 PR c/5972
14907 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
14908 movsfcc_1, movdfcc_1): Add %O2.
14909 * config/i386/i386.c (print_operand): Handle %ON.
14910 Print . before float condition codes in Sun as cmov syntax.
14911 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
14912 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
14913 no longer true.
14914
f4864588
PB
149152002-03-20 Philip Blundell <pb@nexus.co.uk>
14916
14917 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
14918 return instruction if PC was popped.
14919
3a307de4
BW
149202002-03-20 Bob Wilson <bob.wilson@acm.org>
14921
14922 * config/xtensa/xtensa.md: Remove unused type attributes.
14923 (adddi_carry, subddi_carry): Change type attribute to "multi".
14924
048b1c95 149252002-03-19 Dale Johannesen <dalej@apple.com>
ed7d44bc
DJ
14926
14927 PR optimization/5999, middle-end/5731
14928 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
14929 multiplications by reciprocals.
14930
7afff7cf
NB
149312002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
14932
14933 * Makefile.in: Update.
14934 * c-common.c: Include langhooks.h.
14935 (inline_forbidden_p): Use new hook.
14936 * diagnostic.c: Include langhooks.h.
14937 (format_with_decl, announce_function,
14938 default_print_error_function): Use new hook.
14939 * dwarf2out.c (dwarf2_name): Use new hook.
14940 * function.c: Include langhooks.h.
14941 (init_function_start): Use new hook.
14942 * langhooks-def.h (lhd_decl_printable_name): New.
14943 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
14944 (LANGHOOKS_INITIALIZER): Update.
14945 * langhooks.c (lhd_decl_printable_name): New.
14946 * langhooks.h (struct lang_hooks): New hook.
14947 * toplev.c (decl_name, decl_printable_name): Remove.
14948 (open_dump_file): Use new hook.
14949 (process_options): Remove old hook.
14950 * tree.h (decl_printable_name): Remove.
14951objc:
14952 * objc-act.c (objc_init): Remove old hook.
14953 (objc_printable_name): Export.
14954 * objc-act.h (objc_printable_name): New.
14955 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
14956
f78ce0b7
JB
149572002-03-19 Jim Blandy <jimb@redhat.com>
14958
14959 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
14960 the start_source_file debug hook, not the current line number.
14961
15b5aef3
RH
149622002-03-19 Richard Henderson <rth@redhat.com>
14963
14964 * flow.c (EH_USES): Provide default.
14965 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
14966 * doc/tm.texi (EH_USES): New.
14967
14968 * config/ia64/ia64.c (ia64_eh_uses): New.
14969 * config/ia64/ia64-protos.h: Update.
14970 * config/ia64/ia64.h (EH_USES): New.
14971
02a7a3fd
RH
149722002-03-19 Richard Henderson <rth@redhat.com>
14973
14974 * varasm.c (output_constant_def): Fix stupid typo.
14975
93f82d60
RH
149762002-03-19 Richard Henderson <rth@redhat.com>
14977
2842be05 14978 PR 5879
93f82d60
RH
14979 * except.c (current_function_has_exception_handlers): New.
14980 * except.h: Declare it.
14981 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
14982 Combine tests that disable all sibcalls for the function.
14983
ed4fbfa0
OH
149842002-03-19 Olivier Hainque <hainque@act-europe.fr>
14985
14986 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
14987 for INTEGER_CST.
14988
ebf0e888
RH
149892002-03-19 Richard Henderson <rth@redhat.com>
14990
1e82682b 14991 PR 5977, 5991
ebf0e888
RH
14992 * config/ia64/ia64.c: Revert 2002-03-01 patch.
14993 * config/ia64/ia64.h (INIT_EXPANDERS): New.
14994
e37b38d7
JB
149952002-03-19 Jim Blandy <jimb@redhat.com>
14996
14997 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
14998 name, even if the replacement list contains no tokens, as required
14999 by Dwarf.
15000
2a4ea326
JM
150012002-03-19 Jason Merrill <jason@redhat.com>
15002
f9d09ae5
JM
15003 * varasm.c (globalize_decl): Get the name from the RTL, not
15004 DECL_ASSEMBLER_NAME.
15005
2a4ea326
JM
15006 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
15007
99b96edb
BW
150082002-03-19 Bob Wilson <bob.wilson@acm.org>
15009
15010 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
15011 subdi_carry): Define.
15012
3774b567
DE
150132002-03-19 David Edelsohn <edelsohn@gnu.org>
15014
15015 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
15016 about -fpic/-fPIC if extra_warnings set.
15017
21ef78aa
DE
150182002-03-19 David Edelsohn <edelsohn@gnu.org>
15019
15020 * expr.c (expand_expr): Sign-extend CONST_INT generated from
15021 TREE_STRING_POINTER.
0c2fdcdf 15022 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21ef78aa 15023
91d4b3fd
RK
15024Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15025
15026 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
15027 in favor of SP if FRAME_POINTER_REQUIRED is false.
15028
2496c7bd
LB
150292002-03-19 Lars Brinkhoff <lars@nocrew.org>
15030
15031 * emit-rtl.c (gen_int_mode): New function.
15032 * rtl.h: Prototype for it.
15033 * combine.c (make_extraction, simplify_comparison), expmed.c
15034 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
15035 (convert_modes, store_field), optabs.c (expand_fix),
15036 simplify-rtx.c (neg_const_int, simplify_unary_real),
15037
15038 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
15039 Use it instead of GEN_INT (trunc_int_for_mode (...)).
15040
f735a153
JJ
150412002-03-19 Jakub Jelinek <jakub@redhat.com>
15042
15043 PR c/5656
15044 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
15045 convert_parm_for_inlining.
15046 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
15047 Define.
15048 * langhooks-def.h: Likewise.
15049 * objc/objc-lang.c: Likewise.
15050 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
15051 function.
15052 * tree-inline.c (initialize_inlined_parameters):
15053 Call convert_parm_for_inlining lang hook if needed.
15054 * c-typeck.c (c_convert_parm_for_inlining): New function.
15055 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
15056
1929c971
MM
150572002-03-18 Mark Mitchell <mark@codesourcery.com>
15058
b216cd4a 15059 * calls.c (precompute_arguments): Do not assume that temporaries
1929c971
MM
15060 can be destroyed after expanding the argument.
15061 (expand_call): Likewise.
15062
c79ca0ac
EC
150632002-03-15 Eric Christopher <echristo@redhat.com>
15064
15065 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
15066 Fix register preference on last change.
15067 * config/mips/mips.c (mips_return_in_memory): New function.
15068 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
15069 * config/mips/mips-protos.h: Declare.
15070 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
15071 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
15072
07e2e444
AO
150732002-03-18 Alexandre Oliva <aoliva@redhat.com>
15074
1bfbbbcf
AO
15075 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
15076 a register too.
15077 (anddi3, iorsi3): Likewise.
15078
c066429e
AO
15079 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
15080 use %gprel for symbols that are going to be placed in linkonce
15081 sections.
15082
07e2e444
AO
15083 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
15084 RETURN_ADDRESS_POINTER_REGNUM to $ra.
15085 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
15086 not needed. Disregard leaf_function_p().
15087 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
15088 mips16 frame pointer.
15089 * config/mips/mips.md (store ra): Only to small SP offsets.
15090 2001-08-22 Graham Stott <grahams@redhat.com>
15091 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
15092 return a REG rtx for the return address register.
15093
eb8e00ea
BW
150942002-03-18 Bob Wilson <bob.wilson@acm.org>
15095
15096 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
15097 constant-pool addresses as "mode-dependent".
15098 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
15099
cbb92744
JJ
151002002-03-18 Jakub Jelinek <jakub@redhat.com>
15101
15102 PR target/5740
15103 * expr.c (emit_group_load): Use extract_bit_field if
15104 needed for CONCAT arguments.
15105
657d9449
RE
151062002-03-18 Richard Earnshaw <rearnsha@arm.com>
15107
91f3a802 15108 PR target/4863
657d9449
RE
15109 * arm.md (tablejump): Make this a define_expand. For PIC add the
15110 offset to the base of the table.
15111 (thumb_tablejump): Matcher for Thumb tablejump insn.
15112 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
15113 as the difference of two labels.
15114 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15115 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
15116 tables in the code.
15117 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15118 * arm.c (get_jump_table_size): If the table is not in the text
15119 section, return zero.
c79ca0ac 15120
5d5603e2
BS
151212002-03-18 Bernd Schmidt <bernds@redhat.com>
15122
15123 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
15124 of gen_rtx_SUBREG.
15125 (arm_reload_out_hi): Use gen_lowpart instead of
15126 gen_rtx_SUBREG to access QImode components.
15127 * config/arm/arm.md: Disable zero_extend split for QImode
15128 subregs in BIG_ENDIAN mode.
15129 (storehi_bigend): Match use of least significant byte.
15130 (storeinthi): Remove extraneous SUBREG.
66c17b64 15131 Add missing construction of operands[2].
5d5603e2
BS
15132 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
15133 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
15134 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
15135
df15fbc7
AH
151362002-03-18 Aldy Hernandez <aldyh@redhat.com>
15137
2496c7bd
LB
15138 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
15139 any_operand.
df15fbc7 15140
b83b7fa3
RH
151412002-03-17 Richard Henderson <rth@redhat.com>
15142
15143 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
15144 explicitly.
15145
6f7c00fe
HPN
151462002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15147
15148 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
15149 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
15150
155038f2
KG
151512002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15152
720d42fa
KG
15153 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
15154
155038f2
KG
15155 * predict.c (estimate_bb_frequencies): Delete unused variables.
15156
e6542f4e
RH
151572002-03-17 Richard Henderson <rth@redhat.com>
15158
15159 * config/ia64/ia64.c (ia64_attribute_table): Move before
15160 targetm definition. Make static.
15161
52dabb6c
NB
151622002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
15163
15164 * c-common.h (yyparse, c_common_parse_file): New.
15165 * c-lang.c: Include c-common.h.
15166 (LANG_HOOKS_PARSE_FILE): Redefine.
15167 * c-lex.c: Include c-common.h.
15168 (yyparse): Rename c_common_parse_file. Call yyparse.
15169 * c-parse.in (yyparse): Remove macro.
15170 * c-tree.h (yyparse_1): Remove.
15171 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
15172 (LANG_HOOKS_INITIALIZER): Update.
15173 * langhooks.h (struct lang_hoooks): New hook parse_file.
15174 * toplev.c (compile_file): Use parse_file hook.
15175 * tree.h (yyparse): Remove.
e6542f4e 15176 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
52dabb6c 15177
b5ffe606
HPN
151782002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15179
ba82f58b
HPN
15180 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
15181 float_truncate, not fix.
15182 ("*truncdfsf2_real"): Ditto.
15183 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
15184
b5ffe606
HPN
15185 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
15186
c8d1b2b7
AO
151872002-03-16 Alexandre Oliva <aoliva@redhat.com>
15188
cfb773f9
AO
15189 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
15190 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
15191 where appropriate. Make the second reference to
15192 leaf_function_p a function call, as intended. Reindented.
15193
4dffef52
AO
15194 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
15195 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
15196
4f5bd6d7
AO
15197 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
15198 add register to non-constant into sp.
15199
c8d1b2b7
AO
15200 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
15201 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
15202 (mips16_gp_pseudo_rtx): Lose.
15203 (INIT_EXPANDERS): Deleted.
15204 * config/mips/mips.c (mips_init_machine_status): New.
15205 (mips_free_machine_status): New.
15206 (mips_mark_machine_status): New.
15207 (override_options): Set them.
15208 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
15209 (struct machine_function): ... new. Replaced all references.
15210 (mips_add_gc_roots): Don't mark them.
15211 (embedded_pic_fnaddr_reg): New, extracted from...
15212 (embedded_pic_offset): ... here.
15213 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
15214 (movsi): Likewise.
15215
b3124fac
NB
152162002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15217
15218 * cppinit.c: Revert -MD removal.
15219
121449b6
SC
152202002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15221
15222 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
15223 soft registers by default for 68HC12.
15224 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
15225 when compiling with -fomit-frame-pointer.
15226 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
15227 (expand_epilogue): Likewise.
15228 (m68hc11_gen_rotate): Use exg when rotating by 8.
15229
840e2ff1
SC
152302002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15231
15232 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
15233 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
15234 (splits): Remove unused add splits.
15235 ("*addhi3_68hc12"): Tune constraints.
15236 ("addhi_sp"): Try to use X instead of Y in all cases and if the
15237 constant fits in 8-bits and D is dead use abx/aby instructions.
15238 ("*addhi3"): Remove extern declaration of ix_reg.
15239 ("*subsi3"): Optimize and provide new split.
15240 ("subhi3"): Cleanup.
15241 ("*subhi3_sp"): Avoid saving X if we know it is dead.
15242 (arith splits): For 68hc12 save the address register on the stack
15243 and do the arithmetic operation with a pop.
15244
3c9a5efe
SC
152452002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15246
15247 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
15248 allocating QImode in address registers.
15249 ("*movqi_m68hc11"): Likewise.
15250
e41f3392
JH
15251Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
15252
15253 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
15254
576786b0
NB
152552002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15256
15257 * cppinit.c (print_help): Display -MD and -MMD.
15258 Don't display usage string. Update assertion syntax and
15259 typo.
15260 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
15261 (cpp_handle_option): Update.
15262
1ac458d4
CD
152632002-03-15 Chris Demetriou <cgd@broadcom.com>
15264
15265 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
15266 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
15267 and define it so that regardless of target CPU size,
15268 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
15269 of "int" rather than "long."
15270
1fcd592b
RH
152712002-03-15 Richard Henderson <rth@redhat.com>
15272
15273 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
15274 size as a tree.
15275
a0df6910
SC
152762002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15277
15278 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
15279 ("tstqi" split): Avoid using memory for tstqi on address register.
15280 (splits): Remove constraints.
15281 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
15282 ("cmpdf", "cmpsf"): Remove since not used.
15283 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
15284 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
15285
015a2e59
SC
152862002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15287
15288 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
15289 ("neghi2"): Tighten constraints.
15290 ("one_cmplsi2"): Optimize and simplify split.
15291 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
15292
cd28557c
SC
152932002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15294
15295 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
15296 and split of AND operation to clear the upper bits.
15297 ("*logicalsi3_zextqi"): Likewise.
15298 ("*logicallhi3_zexthi_ashift8"): Likewise.
15299 ("*logicalsi3_silshr16"): Likewise.
15300 ("logicalsi3_silshl16"): Likewise.
15301 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
15302
932657df
SC
153032002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15304
15305 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
15306 (m68hc11_indirect_p): New function.
15307 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
15308 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
15309 TARGET_M6812.
15310 (asm_print_register): Likewise.
15311 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
15312 (m68hc11_indirect_p): Declare.
15313 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
15314 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
15315 (TARGET_SWITCHES): New option -mrelax.
15316 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
15317 destination.
15318 ("iorsi3", "xorsi3"): Likewise.
15319 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
15320 ("*andhi3_mem"): New to handle destination in memory with bclr
15321 and a scratch register.
15322 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
15323 ("*andhi3_const"): New when operand2 is constant.
15324 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
15325 ("*andhi3_gen"): Cleanup of the old "andhi3".
15326 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
15327 ("xorqi3"): Update constraints.
15328
fdffea1a
SC
153292002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15330
15331 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
15332 for reg_equiv_memory_loc when the operand is a register that does
15333 not get a hard register (stack location).
15334 (tst_operand): After reload, accept all memory operand.
15335 (symbolic_memory_operand): Fix detection of symbolic references.
15336 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
15337 accept symbols and any constant.
15338
6272bc68
SC
153392002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15340
15341 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
15342 note on the insn that sets the soft frame register.
15343 (must_parenthesize): ix and iy are also reserved names.
15344 (print_operand_address): One more place where parenthesis are required
15345 to avoid confusion with register names.
15346 (m68hc11_gen_movhi): Allow push of stack pointer.
15347 (m68hc11_check_z_replacement): Fix handling of parallel with a
15348 clobber.
15349 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
15350 the replacement register is.
15351 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
15352 and D8_REGS classes.
15353 (MODES_TIEABLE_P): All modes are tieable except QImode.
15354
1d2d9def
SC
153552002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15356
15357 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
15358 (___subdi3): Likewise.
15359 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
15360 (__map_data_section): Optimize 68hc11 case.
15361
a0ccf503
SC
153622002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15363
15364 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
15365 than a shift to avoid adding a register with itself.
15366 (m68hc11_memory_move_cost): Take into account NO_REGS.
15367 (m68hc11_register_move_cost): Update and use memory move cost
15368 for soft registers.
15369 (m68hc11_address_cost): Make cost of valid offset not 0 so that
15370 it gives more opportunities to cse to optimize.
15371 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
15372 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
15373
6e4ae815
MM
153742002-03-15 Mark Mitchell <mark@codesourcery.com>
15375
15376 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
15377 * c-common.def (CLEANUP_STMT): New tree node.
15378 * c-common.h (CLEANUP_DECL): New macro.
15379 (CLEANUP_EXPR): Likewise.
15380 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
15381 * expr.c (expand_expr): Tidy.
15382 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
15383 * tree-inline.c (initialize_inlined_parameters): Clean up
15384 new local variables.
15385
a42519be
JJ
153862002-03-15 Jakub Jelinek <jakub@redhat.com>
15387
15388 PR bootstrap/4128
15389 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
15390 before movrXX only, use reg_overlap_mentioned_p.
15391 Only special case NE if just one insn can be generated.
15392
15409448
JM
153932002-03-15 Jason Merrill <jason@redhat.com>
15394
15395 * varasm.c (assemble_variable): Call resolve_unique_section before
15396 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
15397 of error_mark_node.
15398
3a4edb44
RE
153992002-03-15 Richard Earnshaw <rearnsha@arm.com>
15400
15401 PR target/5170
15402 * arm.md (split pattern for thumb shiftable immediates): Add comment
15403 explaining non-obvious test.
15404
32defa36
RE
154052002-03-15 Richard Earnshaw <rearnsha@arm.com>
15406
15407 PR target/5712
15408 * arm.md (movaddr, movaddr_insn): Delete.
15409
5cc90635
JM
154102002-03-15 Jason Merrill <jason@redhat.com>
15411
15412 * toplev.c (wrapup_global_declarations): Clarify variable handling.
15413 -fkeep-static-consts doesn't apply to comdats.
15414
ecb0eece
RH
154152002-03-14 Richard Henderson <rth@redhat.com>
15416
15417 * c-decl.c: Include c-pragma.h.
15418 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
15419 (finish_function): Tidy.
15420 * c-pragma.c: Include c-common.h.
15421 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
15422 (handle_pragma_weak): Use them.
15423 (init_pragma): Register pending_weaks.
15424 * c-pragma.h (maybe_apply_pragma_weak): Declare.
15425 * print-tree.c (print_node): Print DECL_WEAK.
15426 * varasm.c (mark_weak_decls): Remove.
15427 (remove_from_pending_weak_list): Remove.
15428 (add_weak): Remove.
15429 (asm_emit_uninitialised): Call globalize_decl for weak commons.
15430 (weak_decls): Make a tree_list.
15431 (declare_weak): Cons weak_decls directly.
15432 (globalize_decl): Remove weak_decls elements directly.
15433 (weak_finish): Simplify weak_decls walk. Don't weaken unused
15434 symbols. Don't pretend to handle aliases.
15435 (init_varasm_once): Update weak_decls registry.
15436 * Makefile.in: Update dependencies.
15437
98d2b17e
RH
154382002-03-14 Richard Henderson <rth@redhat.com>
15439
15440 PR target/5312
15441 * config/ia64/ia64.c: Include tm_p.h last.
15442 (gen_nop_type): Remove duplicate definition.
15443 (cycle_end_fill_slots): Set sched_data for second L slot.
15444 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
15445 (nop_cycles_until): Fix typos.
15446
f2f4927e
JJ
154472002-03-15 Jakub Jelinek <jakub@redhat.com>
15448
15449 PR optimization/5891
15450 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
15451
5025a549
DM
154522002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
15453
15454 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
15455 descriptors correctly.
15456
03e9dbc9
MM
154572002-03-14 Michael Meissner <meissner@redhat.com>
15458
15459 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
15460 100, allowing MAX_UNROLLED_INSNS to be overridden.
15461
15462 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
15463 --param.
15464
15465 * unroll.c (params.h): Include.
15466 (MAX_UNROLLED_INSNS): Delete, now in params.h.
15467
15468 * doc/invoke.texi (--param max-unroll-insns): Document.
15469
15470 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
15471
12249385
RE
154722002-03-14 Richard Earnshaw <rearnsha@arm.com>
15473
15474 * arm.md: Fix warnings about constraints in peepholes and splits.
15475
f0cce04a
ZW
154762002-03-14 Zack Weinberg <zack@codesourcery.com>
15477
15478 * cpphash.h (struct lexer_state): Remove line_extension member.
15479 * cpplib.c (dequote_string, do_linemarker): New functions.
15480 (linemarker_dir): New data object.
15481 (DIRECTIVE_TABLE): No longer need to interpret #line in
15482 preprocessed source. Delete obsolete comment about return
15483 values of handlers.
15484 (end_directive, directive_diagnostics, _cpp_handle_directive):
15485 Don't muck with line_extension.
15486 (directive_diagnostics): No need to issue warnings for
15487 linemarkers here.
15488 (_cpp_handle_directive): Issue warnings for linemarkers here,
15489 when appropriate. Dispatch linemarkers to do_linemarker, not
15490 do_line.
15491 (do_line): Code to handle linemarkers split out to do_linemarker.
15492 Convert escape sequences in filename argument, both places.
15493
15494 * cppmacro.c (quote_string): Rename cpp_quote_string and
15495 export. All callers changed.
15496 * cpplib.h (cpp_quote_string): Prototype.
15497 * cppmain.c (print_line): Call cpp_quote_string on to_file
15498 before printing it.
15499
15500 * doc/cpp.texi: Document that escapes are now interpreted in
15501 #line and in linemarkers, and that non-printing characters are
15502 converted to octal escapes when linemarkers are generated.
15503
15504Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
83a49407
JH
15505
15506 * emit-rtl.c (try_split): Use delete_insns.
15507 * recog.c (split_all_insns): Fix terminating condition.
15508
c882c7ac
RE
155092002-03-14 Richard Earnshaw <rearnsha@arm.com>
15510 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
15511
15512 PR target/5828
15513 * arm.c (arm_output_epilogue): Fix floating-point register save
15514 adjustment when using a frame pointer.
15515
3f26edaa
RS
155162002-03-14 Richard Sandiford <rsandifo@redhat.com>
15517
15518 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
15519 * config/mips/mips.c (compute_frame_size): Retrofit them here.
15520 (save_restore_insns, mips_expand_epilogue): And here.
15521 (build_mips16_call_stub): And here.
15522 (mips_function_value): Use the new macros to decide whether a single
15523 or complex float can be returned in floating-point registers. Return
15524 a parallel rtx in the complex case.
15525
1e3881c2
JH
15526Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
15527
15528 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
15529 call after liveness analysis.
15530
15531 * recog.c (split_insn): Use delete_insn_and_edges.
15532
15533 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
15534 instructions to have branch prediction notes.
15535 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
15536
200ef634
GK
155372002-03-14 Geoffrey Keating <geoffk@redhat.com>
15538
15539 * configure.in: Don't pass -Wno-long-long to a ADA compiler
15540 that doesn't support it.
15541 * configure: Regenerate.
15542
0b82d204
JJ
155432002-03-13 Jakub Jelinek <jakub@redhat.com>
15544
15545 PR target/5626
15546 * config/sparc/sparc.md (normal_branch, inverted_branch,
15547 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
15548 inverted_fp_branch): Adjust calls to output_cbranch.
15549 Set length attribute.
15550 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
15551 output_v9branch. Set length attribute.
15552 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
15553 predicates.
15554 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
15555 (output_cbranch): Likewise. Handle far branches.
15556 (output_v9branch): Handle far branches.
15557 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
15558 Adjust prototypes.
15559 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
15560 noov_compare64_op predicates.
15561
7a8de19b
JM
155622002-03-13 Jason Merrill <jason@redhat.com>
15563
15564 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
15565 into the function and constify it.
15566 * gthr-dce.h, gthr-solaris.h: Likewise.
15567
2a55fd42
DE
155682002-03-13 David Edelsohn <edelsohn@gnu.org>
15569
15570 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
15571 * config/rs6000/rs6000.c (rs6000_va_arg): Use
15572 std_expand_builtin_va_arg if not ABI_V4.
15573
19c5b1cf
JM
155742002-03-13 Jason Merrill <jason@redhat.com>
15575
15576 * varasm.c (globalize_decl): New fn.
15577 (assemble_start_function): Use it.
15578 (asm_emit_uninitialized): Use it.
15579 (assemble_alias): Use it.
15580 (assemble_variable): Use it.
15581
2a15f5e1
HPN
155822002-03-13 Hans-Peter Nilsson <hp@axis.com>
15583
15584 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
f0cce04a 15585 2002-03-12 internal visibility change.
2a15f5e1
HPN
15586 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
15587 visibility into SYMBOL_REF_FLAG.
15588
c0a3eeac
UW
155892002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
15590
15591 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
15592 VOIDmode operand. Add compile-time optimization for constant results.
15593
a1652cee
JM
155942002-03-12 Jason Merrill <jason@redhat.com>
15595
15596 * c-typeck.c (convert_for_assignment): Don't allow conversions
15597 between pointers and references. Only allow lvalues to convert to
15598 reference.
15599
c52a375d
HP
156002002-03-13 Hartmut Penner <hpenner@de.ibm.com>
15601
f0cce04a
ZW
15602 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
15603 before prologue, to avoid scheduling problems.
c52a375d 15604
e387e99b
JJ
156052002-03-13 Jakub Jelinek <jakub@redhat.com>
15606
15607 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
15608 (ELIMINABLE_REGS): Add sfp->sp.
15609 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
15610
156112002-03-13 Jakub Jelinek <jakub@redhat.com>
09948ece
JJ
15612
15613 PR optimization/5892
15614 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
15615
4061c1a3
JJ
156162002-03-13 Jakub Jelinek <jakub@redhat.com>
15617
15618 * loop.c (basic_induction_var): Don't call convert_modes if mode
15619 classes are different.
15620
5b43fed1
RH
156212002-03-12 Richard Henderson <rth@redhat.com>
15622
9f53e965
RH
15623 PR optimization/5901
15624 * function.c (reposition_prologue_and_epilogue_notes): Position
15625 the markers after/before the last/first insn not deleted.
15626
156272002-03-12 Richard Henderson <rth@redhat.com>
15628
15629 PR optimization/5878
5b43fed1
RH
15630 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
15631 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
15632 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
15633
15634 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
15635 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
15636 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
15637
15638 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
15639 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
15640 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
15641 also. Don't set it if not flag_pic.
15642 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
15643 to be INVALID_REGNUM when not used.
15644
4e9bb42b
AH
156452002-03-13 Aldy Hernandez <aldyh@redhat.com>
15646
5b43fed1
RH
15647 * expmed.c (store_bit_field): Reset alias set for memory.
15648 (extract_bit_field): Same.
4e9bb42b 15649
2f9834e8
KG
156502002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15651
15652 * c-common.c (c_tree_code_type, c_tree_code_length,
15653 c_tree_code_name, add_c_tree_codes): Delete.
15654 * c-common.h (add_c_tree_codes): Delete.
15655 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
15656 Define.
15657 * c-objc-common.c (c_objc_common_init): Don't call
15658 add_c_tree_codes, instead set lang_unsafe_for_reeval.
15659 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
15660 objc_tree_code_name, add_objc_tree_codes): Delete.
15661 (objc_init): Don't call add_objc_tree_codes.
15662 * objc/objc-lang.c (tree_code_type, tree_code_length,
15663 tree_code_name): Define.
15664 * toplev.c (lang_independent_init): Don't set
15665 tree_code_length[IDENTIFIER_NODE].
15666 * tree.c (tree_code_type, tree_code_length, tree_code_name):
15667 Delete definitions, moved to language front-ends.
15668 * tree.def (IDENTIFIER_NODE): Hardwire the length.
15669 * tree.h (tree_code_type, tree_code_length, tree_code_name):
15670 Const-ify.
15671 (tree_code_length): Change type to unsigned char.
15672
36ad2436
RH
156732002-03-12 Richard Henderson <rth@redhat.com>
15674
15675 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
15676 internal visibility change.
15677
0ae02efa
BW
156782002-03-12 Bob Wilson <bob.wilson@acm.org>
15679
15680 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
15681 validize_mem() instead of change_address to avoid clobbering
15682 memory attributes.
15683
35bb2bee
NB
156842002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
15685
15686 * c-lex.h (position_after_whitespace): Remove.
15687
62ae2529
JJ
156882002-03-12 Jakub Jelinek <jakub@redhat.com>
15689
15690 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
15691 (lex_string): Use unsigned char pointers.
15692
6a45951f
UW
156932002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
15694
15695 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
15696 is not a valid memory_operand.
15697
e2fb85da
BW
156982002-03-12 Bob Wilson <bob.wilson@acm.org>
15699
15700 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
15701 * config/xtensa/lib1funcs.asm: Fix copyright to include
15702 special case for libgcc files.
15703 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
15704 (__divsi3): Likewise.
15705 (__umodsi3): Likewise.
15706 (__modsi3): Likewise.
15707 * config/xtensa/lib2funcs.S: Fix copyright to include
15708 special case for libgcc files.
15709
5b8619f8
TR
157102002-03-12 Tom Rix <trix@redhat.com>
15711
15712 * collect2.c (resolve_lib_name): Move outside of
f0cce04a 15713 OBJECT_FORMAT_COFF ifdef.
5b8619f8
TR
15714 (ignore_library): Same.
15715
089c8f97
BW
157162002-03-12 Bob Wilson <bob.wilson@acm.org>
15717
15718 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
15719
958c70ff
BW
157202002-03-12 Bob Wilson <bob.wilson@acm.org>
15721
15722 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
15723 to function_section before writing out the constant pool.
15724
a65c591c
DE
157252002-03-12 David Edelsohn <edelsohn@gnu.org>
15726
15727 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
15728 zero_constant.
15729 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
15730
157312002-03-12 Alan Modra <amodra@bigpond.net.au>
15732
15733 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
15734 (adddi3): Likewise.
15735 (movdf): Likewise.
15736 (movdi): Likewise.
15737 (cmpsi splitter): Likewise.
15738 (modsi3): Fail if <= 0.
15739 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
15740 redundant test when HOST_BITS_PER_WIDE_INT != 32.
15741 (reg_or_sub_cint64_operand): Likewise.
15742 (num_insns_constant_wide): Optimize sign extension.
15743 (rs6000_legitimize_address): Likewise.
15744
17720332
AM
157452002-03-12 Andrew MacLeod <amacleod@redhat.com>
15746
15747 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15748 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15749
cd49f073
AM
157502002-03-12 Andrew MacLeod <amacleod@redhat.com>
15751
15752 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
15753 address calculation.
15754
6a4e49c1
UW
157552002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
15756
15757 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
15758 scratch register to DImode / TImode.
15759 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
15760 register used does not overlap the target.
15761
54b6670a
KG
157622002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15763
15764 * Makefile.in (debug.o): Depend on debug.h.
15765 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
15766 * debug.c (do_nothing_debug_hooks): Likewise.
15767 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
15768 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
15769 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
15770 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
15771 * dwarfout.c (dwarf_debug_hooks): Likewise.
15772 * integrate.c (output_inline_function): Likewise.
15773 * objc/objc-act.c (synth_module_prologue): Likewise.
15774 * sdbout.c (sdb_debug_hooks): Likewise.
15775 * toplev.c (debug_hooks): Likewise.
15776 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15777
2465bf76
KG
157782002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15779
15780 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
15781 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
15782 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
15783 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
15784 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
15785 * defaults.h (POINTER_SIZE): Define.
15786 * doc/tm.texi (POINTER_SIZE): Document default.
15787
53f3e9ca
KG
157882002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15789
15790 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
15791
44d3eb5b
RH
157922002-03-11 Richard Henderson <rth@redhat.com>
15793
15794 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
15795 if rebuild_label_notes_after_reload.
15796
4a085d2e
HPN
157972002-03-12 Hans-Peter Nilsson <hp@axis.com>
15798
15799 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
15800 emit pic register load if "internal" visibility.
15801 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
15802 (cris_expand_builtin_va_arg): Do all computations on trees.
15803
bc204393
RH
158042002-03-11 Richard Henderson <rth@redhat.com>
15805
15806 * rtlanal.c: Include recog.h.
15807 (keep_with_call_p): Fix thinko.
15808 * Makefile.in (rtlanal.o): Update dependencies.
15809
6b8b9d7b
CM
158102002-03-11 Chris Meyer <cmeyer@gatan.com>
15811
15812 * genflags.c (gen_insn): Use IS_VSPACE.
15813 * genoutput.c (output_insn_data): Likewise.
15814 (process_template): Likewise.
15815
6c40858f
RH
158162002-03-11 Richard Henderson <rth@redhat.com>
15817
15818 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
15819
40adaa27
NB
158202002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
15821
15822 * Makefile.in: Update.
6c40858f 15823 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
40adaa27 15824 Update documentation.
6c40858f
RH
15825 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
15826 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
40adaa27 15827
049b03f4
ZW
158282002-03-11 Zack Weinberg <zack@codesourcery.com>
15829
15830 * Makefile.in: Give texi2pod its input file as a command line
15831 argument, not on stdin.
15832
61eece67
DN
158332002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
15834 Daniel Berlin <dan@dberlin.org>
15835
15836 C++ alias analysis improvement.
f0cce04a 15837 * alias.c (record_component_aliases): Record aliases for base
61eece67
DN
15838 classes too.
15839
a65c591c
DE
158402002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
15841
ff080aba
UW
15842 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
15843
1682dbb1
DR
158442002-03-11 Douglas B Rupp <rupp@gnat.com>
15845
fa2d765a
DR
15846 * toplev.c (vms_fopen): Remove, not needed.
15847
6f1fd286
DR
15848 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
15849
b230e057
DR
15850 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
15851
cb9a8e97
DR
15852 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
15853 for FP, already done later.
15854
1682dbb1
DR
15855 * toplev.c (debug_args): Add entry for VMS_DEBUG.
15856 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
15857
3fcaac1d
RS
158582002-03-11 Richard Sandiford <rsandifo@redhat.com>
15859
15860 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
15861 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
15862 LARGEST_EXPONENT_IS_NORMAL for the given mode.
15863 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
15864 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
15865 (ediv, emul, eldexp, esqrt): Likewise.
15866 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
15867 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
15868 (saturate): New function.
15869 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
15870 (make_nan): Use a saturation value instead of a NaN if
15871 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
15872 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
15873 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
15874 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
15875 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
15876 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
15877 !ROUND_TOWARDS_ZERO.
15878 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
15879 (ROUND_TOWARDS_ZERO): Document.
15880
d25558be
AJ
158812002-03-11 Andreas Jaeger <aj@suse.de>
15882
15883 * cfg.c (dump_flow_info): Remove unused variable.
15884
c71f9ae7
HPN
158852002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
15886
15887 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
15888 computations on trees.
15889
561c9153
RH
158902002-03-10 Richard Henderson <rth@redhat.com>
15891
932b4e3e 15892 PR 5693:
561c9153
RH
15893 * reload.c (copy_replacements_1): New.
15894 (copy_replacements): Use it to recurse through the rtx.
15895
26b738be
RH
158962002-03-10 Richard Henderson <rth@redhat.com>
15897
15898 * loop.c (strength_reduce): Compute number of iterations as
15899 unsigned HOST_WIDE_INT.
15900
8d8a083e
RH
159012002-03-10 Richard Henderson <rth@redhat.com>
15902
15903 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
15904 to move away from the end of the block.
15905
32810ba3
NB
159062002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
15907
15908 PR preprocessor/5899
15909 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
d25558be 15910
2b03d201
KG
159112002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15912
f90c544c
KG
15913 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
15914
2b03d201
KG
15915 * attribs.c (decl_attributes): Fix signed/unsigned warning.
15916
3ec1b4cb
HPN
159172002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
15918
15919 * config/mmix/mmix.c: Improve comments.
15920 (mmix_target_asm_function_prologue): Drop variable
15921 empty_stack_frame. Don't allocate unused slot above fp.
15922 (mmix_target_asm_function_epilogue): Mirror prologue changes.
15923 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
15924 brace in first column.
15925 (enum reg_class): Ditto.
15926 (FIRST_PARM_OFFSET): Now 0.
15927 (USER_LABEL_PREFIX): Remove #if 0:d definition.
15928
27e486c5
KG
159292002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15930
15931 * combine.c (make_extraction): Fix error in last change.
15932
0139adca
KG
159332002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15934
15935 * c4x.c (c4x_fp_reglist): Const-ify.
15936 * cris.c (cris_print_operand): Likewise.
15937 * i386.c (ix86_va_arg): Likewise.
15938 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
15939 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
15940 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
15941 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
15942 * mcore.h (regno_reg_class): Likewise.
15943 * mips.c (gen_int_relational): Likewise.
15944 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
15945 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
a4334c36 15946 * pdp11.c (move_costs): Likewise.
0139adca
KG
15947 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
15948 * s390.c (s390_branch_condition_mnemonic, regclass_map):
15949 Likewise.
15950 * s390.h (regclass_map): Likewise.
15951 * sh.c (shift_amounts): Likewise.
a4334c36 15952 * sh.md (rotlsi3): Likewise.
0139adca 15953
889b90a1
GK
159542002-03-09 Geoffrey Keating <geoffk@redhat.com>
15955
15956 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
15957 (ne0+5): Use new clobber to generate proper shift pattern.
15958 Patch by Michael Matz <matz@kde.org>.
15959
2877e0ae
AS
159602002-03-09 Andreas Schwab <schwab@suse.de>
15961
15962 * gcc.c (validate_all_switches): Also handle `%W{...}'.
15963
79b51cd7
GK
159642002-03-09 Geoffrey Keating <geoffk@redhat.com>
15965
15966 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
15967
e0f1be5c
JJ
159682002-03-09 Jakub Jelinek <jakub@redhat.com>
15969
15970 PR middle-end/5877
15971 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
15972 even for non-representable constants.
15973
0a7ec763
RK
15974Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15975
93fe8e92
RK
15976 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
15977 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
15978 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
15979 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
15980 (pop_function_context): Compute MAY_SHARE parameter for
15981 fixup_var_refs.
15982 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
15983 (gen_mem_addressof): Call fixup_var_refs with new parm.
15984
0a7ec763
RK
15985 * combine.c (make_extraction): Don't make extension of CONST_INT.
15986
a85cd407
AO
159872002-03-09 Alexandre Oliva <aoliva@redhat.com>
15988
9445b814
AO
15989 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
15990 in o32 and o64 ABIs.
15991 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
15992 but getting fixed-size structs passed in registers regardless of
15993 padding in o32 and o64 ABIs.
15994
a85cd407
AO
15995 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
15996 offset before loading address of argument passed by transparent
15997 reference.
15998
c51fbe40
JDA
159992002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
16000
16001 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
16002
918e70dd
AO
160032002-03-09 Alexandre Oliva <aoliva@redhat.com>
16004
16005 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
16006 marker such that registers after it are saved.
16007
3070dd00
KG
160082002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16009
16010 * sparc.c (arith_4096_operand): Fix error in last change.
16011
e25d11b0
AO
160122002-03-08 Alexandre Oliva <aoliva@redhat.com>
16013
16014 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
16015 defaults for MEABI.
16016
41daaf0e
AH
160172002-03-08 Aldy Hernandez <aldyh@redhat.com>
16018
5b43fed1
RH
16019 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
16020 vectors.
41daaf0e 16021
fa139b00
AH
160222002-03-08 Aldy Hernandez <aldyh@redhat.com>
16023
5b43fed1 16024 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
fa139b00 16025
c51d95ec
JH
16026Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
16027
16028 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
16029 removed; fix return value.
16030 * combine.c (combine_instructions): Dirtify blocks where we failed to
16031 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
16032 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
16033
3b25fbfe
KG
160342002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16035
16036 * gcse.c (insert_insn_end_bb): Fix typo in last change.
16037
189ae0f4
JH
16038Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
16039
16040 * recog.c (peephole2_optimize): Re-distribute EH edges.
16041
24965e7a
NB
160422002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
16043
16044 * expr.c (expand_expr): Use unsave lang hook.
16045 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
16046 (LANG_HOOKS_INITIALIZER): Update.
16047 * langhooks.h (struct lang_hooks): New hook unsave.
16048 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
16049 (unsave_expr_1): Remove unused lang_unsave_expr_now.
16050 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
16051 (unsave_expr_now): Remove.
16052 * tree.h (unsave_expr_now, lang_unsave,
16053 lang_unsave_expr_now): Remove.
16054 (lhd_unsave): New.
16055
1e4e95d6
AJ
160562002-03-08 Andreas Jaeger <aj@suse.de>
16057
16058 * flow.c (propagate_block_delete_insn): Remove unused variable.
16059
054ef905
KH
160602002-03-08 Kazu Hirata <kazu@hxi.com>
16061
16062 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
16063 insn length for memory load/store.
16064
5304400d 160652002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1e4e95d6 16066
5304400d
CR
16067 * doc/install.texi (--with-libiconv-prefix): Document.
16068
81034129
MB
160692002-03-08 Michael Y. Brukman <myb2@cornell.edu>
16070
16071 * doc/sourcebuild.texi: Fix typo.
16072
71db7d03
JJ
160732002-03-08 Jakub Jelinek <jakub@redhat.com>
16074
16075 PR c/3711
16076 * builtins.c (std_expand_builtin_va_arg): Do all computations on
16077 trees.
16078
127c1ba5
RK
16079Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16080
16081 * rtl.c (copy_most_rtx): Move from here ...
16082 * emit-rtl.c (copy_most_rtx): ... to here.
16083
8a13c092
AO
160842002-03-08 Alexandre Oliva <aoliva@redhat.com>
16085
5faae4f7
AO
16086 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
16087 SUBTARGET_CPP_SIZE_SPEC.
16088 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
16089
8a13c092
AO
16090 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
16091
4ec59de2
MH
160922002-03-07 Matt Hiller <hiller@redhat.com>
16093
16094 * gensupport.c (first_dir_md_include): Renamed from include;
16095 change all references.
16096 (last_dir_md_include): Renamed from last_include; change all
16097 references.
16098 (init_md_reader): Unconditionally initialize base_dir whether or
16099 not filename is a relative path.
16100
12f61e77
AO
161012002-03-07 Alexandre Oliva <aoliva@redhat.com>
16102
95356058
AO
16103 * config/fp-bit.c (_unord_f2): Compile it in even if
16104 US_SOFTWARE_GOFAST is enabled.
16105
12f61e77
AO
16106 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
16107 NULL_RTX. Set all HFmode operations as NULL_RTX.
16108 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
16109 NULL_RTX, try reversing the comparison and the operands.
16110
6d7a1c4c
UW
161112002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16112
16113 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
16114 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
16115 and MATCH_OP_DUP.
16116
66d54344
JH
16117Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
16118
16119 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
16120
068473ec
JH
16121Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16122
16123 * basic-block.h (fixup_abnormal_edges): Declare.
16124 * reload1.c (fixup_abnormal_edges): New function.
16125 * reg-stack.c (convert_regs): Use it.
16126
16127 * gcse.c (insert_insn_end_bb): Handle trapping insns.
16128
16129 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
16130
71925bc0
RS
161312002-03-07 Richard Sandiford <rsandifo@redhat.com>
16132
16133 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
16134 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
16135 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
16136 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
16137 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
16138 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
16139 unless x and y could be infinite.
16140 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
16141 Check that the common type of both arguments is a real, even for
16142 targets without unordered comparisons. Allow an integer argument
16143 to be compared against a real.
16144 (expand_tree_builtin): Use expand_unordered_cmp.
16145 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
16146 * cse.c (fold_rtx): Likewise. Fix indentation.
16147 * fold-const.c (fold_real_zero_addition_p): New.
16148 (fold): Use it, and the new HONOR_... macros.
16149 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
16150 * jump.c (reversed_comparison_code_parts): After searching for
16151 the true comparison mode, use HONOR_NANS to decide whether it
16152 can be safely reversed.
16153 (reverse_condition_maybe_unordered): Remove IEEE check.
16154 * simplify-rtx.c (simplify_binary_operation): Use the new macros
16155 to decide which simplifications are valid. Allow the following
16156 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
16157 and (a - -b) to (a + b).
16158 (simplify_relational_operation): Use HONOR_NANS.
16159 * doc/tm.texi: Document the MODE_HAS_... macros.
16160
145d3bf2
RE
161612002-03-07 Richard Earnshaw <rearnsha@arm.com>
16162
16163 * combine.c (simplify_comparison): If simplifying a logical shift
16164 right and compare with constant, force the comparison to unsigned.
16165
76a773f3
AH
161662002-03-07 Aldy Hernandez <aldyh@redhat.com>
16167
5b43fed1 16168 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
76a773f3 16169
5b43fed1
RH
16170 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
16171 -mabi=no-altivec
16172 (alt_reg_names): Remove % for vrsave.
76a773f3 16173
ab55f58c
RH
161742002-03-06 Richard Henderson <rth@redhat.com>
16175
5ddec02e 16176 PR optimization/5844
ab55f58c
RH
16177 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
16178 if used indicates we've already emitted one copy of an operand.
16179 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
16180 (gen_split): Supply a non-null used.
16181
e16e3291
UW
161822002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16183
5b43fed1 16184 * reload1.c (reload): Unshare all rtl after reload is done.
e16e3291 16185
1e4e95d6 16186 * simplify-rtx.c (simplify_plus_minus): Do not abort,
e16e3291
UW
16187 but simply fail if the expression is too complex to simplify.
16188 (simplify_gen_binary): Handle simplify_plus_minus failures.
16189
2ca6672b
JH
16190Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
16191
16192 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
16193 consistently call delete_trivially_dead_insns after CSE and GCSE;
16194 fix DFI_life dumping; do jump threading after liveness; do crossjumping
16195 after liveness2; update comment in last crossjumping.
16196 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
16197
31d0dd4f
JL
16198Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
16199
d094b0b3
JL
16200 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
16201 after completing fast dead code elimination.
16202
31d0dd4f
JL
16203 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
16204 COMPARE operator.
1e4e95d6 16205
f2b958b1
PE
162062002-03-06 Phil Edwards <pme@gcc.gnu.org>
16207
16208 * version.c: Fix misplaced leading blanks on first line.
16209
a2877a09
JH
16210Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
16211
16212 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
16213
fe477d8b
JH
16214Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
16215
16216 * cfgcleanup.c (mentions_nonequal_regs): New function.
16217 (thread_jump): Use it.
16218 * toplev.c (rest_of_compilation): Run jump threading after
16219 liveness.
16220
2041cde4
JJ
162212002-03-06 Jakub Jelinek <jakub@redhat.com>
16222
16223 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
16224 patch.
16225
82d68d46
JH
16226Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
16227
16228 * predict.c (estimate_bb_frequencies): Do not reload the
16229 frequencies from notes.
16230
3dec4024
JH
16231Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
16232
16233 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
16234 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
16235
16236 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
16237 delete_noop_moves): Return indeger.
16238 * flow.c (ndead): New variable.
16239 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
16240 BB argument; update callers.
16241 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
16242 (life_analysis): Do not call purge_all_dead_edges.
16243 (update_life_info): Return number of deleted insns; print statistics.
16244 (update_life_info_in_dirty_blocks): likewise.
16245 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
16246 return number of insns deleted.
16247
16248 * cse.c: Include timevar.h
16249 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
16250 iterate until stabilizes; print statistics; return number of killed
16251 insns.
16252 * Makefile.in: (cse.o): Add timevar.h dependency
16253 * rtl.h (delete_trivially_dead_insns): New.
16254 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
16255 * toplev.c (rest_of_compilation): Update callers.
16256
16257 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
16258 (try_optimize_cfg): Do not update liveness.
16259 (cleanup-cfg): Loop until try_optimize_cfg and dead code
16260 removal stabilizes; use delete_trivially_dead_insns.
16261
16262 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
16263
c7544dd8
ZW
162642002-03-05 Zack Weinberg <zack@codesourcery.com>
16265
16266 * cppmain.c (setup_callbacks): Disable #pragma and #ident
16267 callbacks when processing assembly language.
16268
50b424a9
JDA
162692002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
16270
16271 * pa.h (ASM_FILE_END): Define.
16272 * som.h (ASM_FILE_END): Delete.
16273
16274 * pa.c (function_arg): Don't pass floats in general registers in
16275 indirect calls if TARGET_ELF32.
16276
6185f217
RH
162772002-03-05 Richard Henderson <rth@redhat.com>
16278
16279 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
16280
3020a4b2
DS
162812002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
16282
16283 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
16284
65649daa
JJ
162852002-03-05 Jakub Jelinek <jakub@redhat.com>
16286
16287 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
16288 -r command line. Don't hide any symbols if not building
16289 shared libgcc.
16290
5a1a3e5e
JH
16291Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
16292
16293 * cfg.c (dump_flow_info): Warn about profile mismatches.
16294 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
16295 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
16296
170c56da
JJ
162972002-03-05 Jakub Jelinek <jakub@redhat.com>
16298
16299 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
16300 wide volatile memory by parts.
16301
6d051694
JJ
163022002-03-05 Jakub Jelinek <jakub@redhat.com>
16303
16304 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
16305 is NULL.
16306
28bcfd4d
RH
163072002-03-05 Richard Henderson <rth@redhat.com>
16308
5b43fed1 16309 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
28bcfd4d 16310
75227a33
GK
163112002-03-04 Geoffrey Keating <geoffk@redhat.com>
16312
16313 * toplev.c (documented_lang_options): Document more
16314 language-specific options.
16315 * doc/invoke.texi (Warning Options): Correct documentation for
16316 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
16317 * c-decl.c (c_decode_option): Use a table to handle warning options.
16318
4f1aac42
HPN
163192002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
16320
16321 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
16322 parameter to mmix_encode_section_info.
16323 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
16324 relocatably. Always produce ELF, not mmo if linking relocatably.
16325 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
16326 first is non-zero, don't add symbol prefix.
16327 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
16328 prototype accordingly.
16329
12345543
KW
163302002-03-04 Krister Walfridsson <cato@df.lth.se>
16331
16332 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
16333
8e97db8f
JM
163342002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
16335
16336 * configure.in: Increase required makeinfo version to 4.1.
16337 * configure: Regenerate.
16338
06487868
GK
163392002-03-04 Geoffrey Keating <geoffk@redhat.com>
16340
16341 * .cvsignore: Remove *.info* and genrtl*; these files are generated
16342 elsewhere now.
16343
cff42170
JM
163442002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
16345
16346 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
16347 * doc/invoke.texi: Fix @math uses.
16348
974a7f56
JH
16349Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16350
16351 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
16352 removal
16353
3b7d0e98
AH
163542002-03-03 Aldy Hernandez <aldyh@redhat.com>
16355
5b43fed1
RH
16356 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
16357 (powerpc-*-eabisimaltivec*): Same.
3b7d0e98 16358
5b43fed1 16359 * config/rs6000/t-ppcendian: New.
3b7d0e98 16360
65f2f288
HB
163612002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16362
16363 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
16364 nonimmediate_src_operand and nonimmediate_lsrc_operand to
16365 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
16366
8ce0a8a5
RH
163672002-03-03 Richard Henderson <rth@redhat.com>
16368
16369 * toplev.c (rest_of_decl_compilation): Revert last two changes.
16370
ba31d94e
ZW
163712002-03-03 Zack Weinberg <zack@codesourcery.com>
16372
16373 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
16374 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
16375 tree.c, config/m68k/m68k.c:
16376 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
16377 REAL_ARITHMETIC blocks unconditional. Delete some further
16378 #ifdef blocks predicated on REAL_ARITHMETIC.
16379 * flags.h, toplev.c: Delete remaining references to
16380 flag_pretend_float.
16381
16382 * doc/invoke.texi: Remove documentation of -fpretend-float.
16383 * doc/tm.texi: Describe the various REAL_* macros as provided by
16384 real.h, not by the target configuration files.
16385
16386 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
16387 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
16388 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
16389 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
16390 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
16391 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
16392 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
16393 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
16394 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16395 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
16396 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16397 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
16398 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
16399 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
16400 config/xtensa/xtensa.h:
16401 Do not define, undefine, or mention in comments any of
16402 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
16403 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
16404 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
16405 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
16406 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
16407 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
16408 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
16409 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
16410 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
16411
9a571cfd
KG
164122002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16413
e81dd381
KG
16414 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
16415 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
16416 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
16417 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
16418 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
16419 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
16420 Delete.
16421 * defaults.h (BITS_PER_WORD): Define.
ba31d94e 16422 * doc/tm.texi (BITS_PER_WORD): Document default value.
e81dd381 16423
9a571cfd
KG
16424 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
16425 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
16426 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
16427
ca7558fc
KG
164282002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16429
16430 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
16431 lieu of explicit sizeof/sizeof.
16432 * i386.c (override_options, ix86_init_mmx_sse_builtins,
16433 ix86_expand_builtin): Likewise.
16434 * mips.c (mips_add_gc_roots): Likewise.
16435 * mmix.c (mmix_output_condition): Likewise.
16436 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
16437 altivec_init_builtins): Likewise.
16438 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
16439 * cppexp.c (Nsuff, parse_number): Likewise.
16440 * cppinit.c (builtin_array_end): Likewise.
16441 * gcc.c (n_default_compilers, process_command): Likewise.
16442 * genpreds.c (output_predicate_decls): Likewise.
16443 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
16444 * lcm.c (N_ENTITIES): Likewise.
16445 * stor-layout.c (set_sizetype): Likewise.
ba31d94e 16446
41c78c88
RH
164472002-03-03 Richard Henderson <rth@redhat.com>
16448
16449 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
16450 for types or labels.
16451
9e9b71e6
RH
164522002-03-03 Richard Henderson <rth@redhat.com>
16453
16454 * c-decl.c (start_decl): Initialized variables are not common.
16455
c26a6db8
PB
164562002-03-02 Per Bothner <per@bothner.com>
16457
16458 * gcc.c (option_map): Suport new --bootclasspath option.
16459 --CLASSPATH is now just an alias for --classpath.
16460
9e8aab55
RH
164612002-03-02 Richard Henderson <rth@redhat.com>
16462
16463 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
16464 load if "internal" visibility.
16465 * doc/extend.texi: Document visibility meanings.
16466
b3bbd220
RH
164672002-03-02 Richard Henderson <rth@redhat.com>
16468
16469 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
16470 to functions as well.
16471
b14707c3
RH
164722002-03-02 Richard Henderson <rth@redhat.com>
16473
16474 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
16475 (handle_visibility_attribute): Don't call assemble_visibility.
16476 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
16477 without asmspec. Invoke assemble_alias when needed.
16478 * varasm.c (maybe_assemble_visibility): New.
16479 (assemble_start_function, assemble_variable, assemble_alias): Use it.
16480
b2003250
RH
164812002-03-02 Richard Henderson <rth@redhat.com>
16482
16483 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
16484 invoke ENCODE_SECTION_INFO with first call flag.
16485
16486 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
16487 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
ba31d94e 16488 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
b2003250
RH
16489 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
16490 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
16491 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
16492 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
16493 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
16494 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
16495 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
16496 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
16497 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
ba31d94e
ZW
16498 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
16499 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
b2003250
RH
16500 config/mcore/mcore-protos.h, config/mcore/mcore.c,
16501 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
16502 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
ba31d94e 16503 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
b2003250
RH
16504 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
16505 config/sh/sh.h, config/sparc/sparc.h,
16506 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
16507 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
16508 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
16509 FIRST argument. As needed, examine it and do nothing.
16510
ba31d94e 16511 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
b2003250
RH
16512 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
16513 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
16514
16515 * config/arm/t-pe (pe.o): Add dependencies.
16516
5c60f03d
KG
165172002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16518
16519 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
16520 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
16521 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
16522 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
16523 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
16524 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
16525 * defaults.h (BITS_PER_UNIT): Define.
16526 * doc/tm.texi (BITS_PER_UNIT): Document default value.
16527
86855e8c
KH
165282002-03-02 Kazu Hirata <kazu@hxi.com>
16529
16530 * config/h8300/h8300-protos.h: Add a prototype for
16531 compute_a_shift_length.
16532 * config/h8300/h8300.c (h8300_asm_insn_count): New.
16533 (compute_a_shift_length): Likewise.
16534 (h8300_adjust_insn_length): Do not adjust insn length of shift
16535 insns.
16536 * config/h8300/h8300.md (anonymous shift patterns): Use
16537 compute_a_shift_length.
16538
f6041ed8
RK
16539Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16540
35aa3c1c
RK
16541 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
16542 trunc_int_for_mode.
16543
f6041ed8
RK
16544 * emit-rtl.c (offset_address): Call update_temp_slot_address.
16545
27b41650
KG
165462002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16547
16548 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
16549 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
16550 * flags.h (flag_zero_initialized_in_bss): Declare.
16551 * toplev.c (flag_zero_initialized_in_bss): New flag.
16552 (lang_independent_options): Add flag_zero_initialized_in_bss.
16553 * tree.c (initializer_zerop): New function.
16554 * tree.h (initializer_zerop): Declare.
16555 * varasm.c (assemble_variable): If we can emit bss, put zero
16556 initializers in the bss section.
16557
ca734b39
AM
165582002-03-02 Alan Modra <amodra@bigpond.net.au>
16559
16560 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
16561 like more than one symbol per .weak directive.
16562
49b72306
RH
165632002-03-01 Richard Henderson <rth@redhat.com>
16564
16565 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
16566 adjust argument_pointer by pretend_args_size.
16567 (ia64_va_start): Adjust va_start address by -pretend_args_size.
16568
fbf0fe41
KH
165692002-03-01 Kazu Hirata <kazu@hxi.com>
16570
16571 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
16572
0010687d
JH
16573Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
16574
16575 * toplev.c (rest_of_compilation): Delete dead jumptables before
16576 loop.
16577 * flow.c (delete_dead_jumptables): Make global.
16578 * rtl.h (delete_dead_jumptables): Declare.
16579
9429c84c
DE
165802002-03-01 David Edelsohn <edelsohn@gnu.org>
16581
16582 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
16583 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
0c2fdcdf 16584 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9429c84c 16585
f0b6f9a6
KH
165862002-03-01 Kazu Hirata <kazu@hxi.com>
16587
16588 * config/h8300/h8300-protos.h: Fix formatting.
16589 * config/h8300/h8300.c: Likewise.
16590 * config/h8300/h8300.h: Likewise.
16591
bc8db8a1
KH
165922002-03-01 Kazu Hirata <kazu@hxi.com>
16593
16594 * config/h8300/h8300.c (print_operand): Support 16-bit
16595 constant addresses.
16596 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
16597
32b069d3
RH
165982002-02-28 Richard Henderson <rth@redhat.com>
16599
16600 * expmed.c (store_bit_field): Prevent generation of CONCATs;
16601 pun complex values as integers; use gen_lowpart instead of
16602 gen_rtx_SUBREG.
16603 (extract_bit_field): Likewise.
16604
79c4e63f
AM
166052002-03-01 Alan Modra <amodra@bigpond.net.au>
16606 David Edelsohn <edelsohn@gnu.org>
16607
16608 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
16609 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
16610 (SUPPORTS_WEAK): Likewise.
16611 * output.h (add_weak): Add tree param.
16612 * varasm.c (add_weak): Likewise. Save decl.
16613 (struct weak_syms): Add decl field.
16614 (mark_weak_decls): New function.
16615 (init_varasm_once): ggc_add_root mark_weak_decls.
16616 (assemble_start_function): Use ASM_WEAKEN_DECL.
16617 (assemble_variable): Likewise.
16618 (assemble_alias): Likewise.
16619 (declare_weak): Pass decl to add_weak.
16620 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
16621 (remove_from_pending_weak_list): Declare and define for
16622 ASM_WEAKEN_DECL.
16623 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
16624 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
16625 * defaults.h (SUPPORTS_WEAK): Likewise.
16626 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16627 .weak for code sym. Do emit .size for descriptor sym.
16628 (ASM_DECLARE_FUNCTION_SIZE): Define.
16629 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
16630 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
16631 .lglobl unless TARGET_XCOFF. Formatting fixes.
16632 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16633 .weak for code sym.
16634 (HANDLE_PRAGMA_WEAK): Remove.
16635 (ASM_WEAKEN_LABEL): Remove.
16636 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
16637
6f30f1f1
JM
166382002-03-01 Jason Merrill <jason@redhat.com>
16639
16640 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
16641 (TARGET_EXPR_CLEANUP): New macro.
16642
7879b81e
SE
166432002-02-28 Steve Ellcey <sje@cup.hp.com>
16644
16645 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
16646 to take ptr_extend into account as third type of extension.
16647 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
16648 fields used by SUBREG_PROMOTED_UNSIGNED_P.
16649 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
16650 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
16651 * calls.c (precompute_arguments): Use new macro.
16652 (expand_call): Ditto.
16653 * combine.c (nonzero_bits): Ditto.
16654 (record_promoted_value): Ditto.
16655 * expr.c (store_expr): Ditto.
16656 (expand_expr): Ditto.
16657 * function.c (assign_parms): Ditto.
16658
42d579d8
AO
166592002-02-28 Alexandre Oliva <aoliva@redhat.com>
16660
16661 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
16662 override -shared and -shared-libgcc.
16663
e0054185
DB
166642002-02-28 David O'Brien <obrien@FreeBSD.org>
16665
16666 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
16667 of "ultrasparc".
16668 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
16669 to be broken.
16670
abda4f1c
RH
166712002-02-28 Richard Henderson <rth@redhat.com>
16672
16673 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
16674 4 cycle latency from MM producers.
16675 (ia64_internal_sched_reorder): Likewise with pipeline flush.
16676
c0f08649
JJ
166772002-02-28 Jakub Jelinek <jakub@redhat.com>
16678
16679 * mklibgcc.in: Don't use GNU make extension.
16680
f79f2651
NB
166812002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
16682
16683 * c-parse.in (STATIC): New terminal.
16684 (scspec): New non-terminal. Update productions accordingly.
16685 (program): Remove bogus ifc / end ifc.
16686 (array_declarator): Simplify production using STATIC.
16687
001e3fee
JM
166882002-02-28 Jim Meyering <meyering@lucent.com>
16689
16690 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
16691 \a still means TARGET_BELL.
16692
89076bb3
RH
166932002-02-28 Richard Henderson <rth@redhat.com>
16694
16695 * haifa-sched.c (sched_emit_insn): New.
16696 (schedule_block): Use last_scheduled_insn to track last insn.
16697 * sched-int.h (sched_emit_insn): Prototype.
16698 * config/ia64/ia64.c (last_issued): Remove.
16699 (ia64_variable_issue): Don't set it.
16700 (nop_cycles_until): Use sched_emit_insn.
16701
e3aaacf4
AM
167022002-02-28 Andrew MacLeod <amacleod@redhat.com>
16703
16704 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
16705 extended constants.
16706
7f473594
KH
167072002-02-28 Kazu Hirata <kazu@hxi.com>
16708
16709 * config/h8300/h8300.c: Fix formatting.
16710 * config/h8300/h8300.h: Likewise.
16711
b96c434c
MM
167122002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
16713
16714 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
16715 which may overwrite the high byte of the frame pointer.
16716
9b420a6a
BT
167172002-02-28 Bo Thorsen <bo@suse.de>
16718
16719 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
16720 (STARTFILE_SPEC): Add 64 bit files.
16721 (ENDFILE_SPEC): Likewise.
16722
6f30f1f1 167232002-02-28 Jason Merrill <jason@redhat.com>
46cfb101
JM
16724
16725 * c-decl.c (finish_function): Only warn about missing return
16726 statement with -Wreturn-type.
16727
70da1d03
JH
16728Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
16729
16730 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
16731
16732 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
16733 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
16734
38c1593d
JH
16735Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
16736
16737 * basic-block.h (BB_REACHABLE): Renumber.
16738 (BB_DIRTY, BB_NEW): New flags.
16739 (clear_bb_flags): Declare.
16740 (update_life_info_in_dirty_blocks): Declare.
16741 * cfg.c (clear_bb_flags): New function.
16742 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
16743 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
16744 reorder_insns, emit_insn_after): Mark block as dirty.
16745 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
16746 (update_life_info_in_dirty_blocks): New function.
16747 * recog.c (apply_change_group): Dirtify block.
16748
16749 * cse.c (cse_insn): Reorder emitting of jump insn to keep
16750 cfg consistent.
16751 * gcse.c (delete_null_pointer_checks): Likewise.
16752
16753 * toplev.c (dump_file_index): Move cse2 after bp,
16754 add DFI_null
16755 (dump_file_info): Similary.
16756 (rest_of_compilation): Avoid most of CFG rebuilds;
16757 do first if converision after null pointer checks, do cse2
16758 after branch prediction; avoid full liveness rebuild after
16759 initializing subregs.
16760 * invoke.texi (-d options): Document -du, renumber.
16761
16762 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
16763 (notice_new_block): Do not set BB_UPDATE_LIFE.
16764 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
16765 merge_blocks_move_successor_nojumps, merge_blocks,
16766 try_crossjump_to_edge): Likewise.
16767 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
16768 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
16769 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
16770 (merge_of_block): Do not use life_data_ok.
16771 (find_if_case_1): Do not use SET_UPDATE_LIFE.
16772 (if_convert): Use BB_DIRTY mechanizm to update life.
16773 * lcm.c (optimize_mode_switching): Update
16774 update_life_info_in_dirty_blocks
16775
63e1b1c4
NB
167762002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
16777
16778 * Makefile.in (integrate.o): Update.
16779 * c-decl.c (copy_lang_decl): Rename.
16780 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
16781 * integrate.c: Include langhooks.h.
16782 (copy_decl_for_inlining): Update to use langhook.
16783 * langhooks-def.h (lhd_do_nothing_t,
16784 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
16785 (LANG_HOOKS_INITIALIZER): Update.
16786 * langhooks.c (lhd_do_nothing_t): New.
16787 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
16788 * tree.h (copy_lang_decl): Remove.
16789objc:
16790 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
16791
f472fa29
AM
167922002-02-27 Andrew MacLeod <amacleod@redhat.com>
16793
ba31d94e 16794 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
f472fa29
AM
16795 POST_DEC, and POST_MODIFY.
16796
273cf2e4
ZW
167972002-02-27 Zack Weinberg <zack@codesourcery.com>
16798
16799 * c-typeck.c (digest_init): Remove unused parameter; all
16800 callers changed.
16801
4e07d762
GK
168022002-02-27 Geoffrey Keating <geoffk@redhat.com>
16803
16804 * expmed.c (expand_shift): Correctly test for low part of a
16805 subreg.
16806
6bc627b3
UW
168072002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16808
16809 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
16810 insn UIDs with insn addresses.
16811
f458d1d5
ZW
168122002-02-27 Zack Weinberg <zack@codesourcery.com>
16813
16814 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
16815 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
16816 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
16817 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
16818 gcc.c, toplev.c: Delete code implementing -traditional mode.
16819
16820 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
16821 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
16822 Document removal of -traditional mode for compilation, and
16823 remove documentation only relevant to that mode.
16824
16825 * config/nextstep.h, config/ptx4.h, config/svr4.h,
16826 config/convex/convex.h, config/d30v/d30v.h,
16827 config/i386/dgux.h, config/i386/osf1elf.h,
16828 config/i386/osfelf.h, config/i386/osfrose.h,
16829 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
16830 config/m68k/hp310.h, config/m88k/dgux.h,
16831 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
16832 config/m88k/m88k.h, config/m88k/openbsd.h,
16833 config/mips/abi64.h, config/mips/osfrose.h,
16834 config/mips/svr4-5.h, config/mips/svr4-t.h,
16835 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
16836 config/stormy16/stormy16.h: Remove all references to
16837 -traditional from target specs. Delete all mention of the
16838 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
16839 delete a couple of commented-out definitions of
16840 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
16841 to -traditional.
16842
16843 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
16844 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
16845
e0b3a8ff
ZW
168462002-02-27 Zack Weinberg <zack@codesourcery.com>
16847
16848 * mklibgcc.in: Don't use \n in a line subject to
16849 interpretation by echo.
16850
5c6a85b7
GS
168512002-02-27 Graham Stott <grahams@redhat.com>
16852
72b05af1
GS
16853 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
16854 Constify NAME.
16855
7d104885
GS
16856 * loop.c (prescan_loop): Handle PARALLEL.
16857
8ed805d2
GS
16858 * unroll.c (loop_iterations): Return 0 if the add_val for
16859 a BIV is REG.
16860
fd478a0a
GS
16861 * final.c (output_operand_lossage): Constify PFX_STR.
16862
5c6a85b7
GS
16863 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
16864
cd98ad03
JH
16865Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
16866
16867 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
16868 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
16869
639ae55b
JH
16870Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
16871
16872 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16873
e808ec9c
NB
168742002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
16875
16876 * cpplex.c (_cpp_lex_token): Handle directives in macro
16877 arguments.
16878 * cpplib.c (_cpp_handle_directive): Save and restore state
16879 if parsing macro args when entering a directive.
16880 * cppmacro.c (collect_args): No need to handle directives
16881 in macro arguments.
16882 (enter_macro_context, replace_args): Use the original macro
16883 definition in case it was redefined whilst collecting arguments.
16884doc:
16885 * cpp.texi: Update.
16886
f585a356
DE
168872002-02-26 David Edelsohn <edelsohn@gnu.org>
16888
16889 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
16890 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
16891 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
16892 method on AIX.
16893 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
16894 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
16895 (load_toc_v4_PIC_2): Same.
16896
168972002-02-26 Alan Modra <amodra@bigpond.net.au>
16898
16899 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
16900
d699058e
RH
169012002-02-26 Richard Henderson <rth@redhat.com>
16902
16903 * config/alpha/alpha.md (ashldi_se): Re-enable.
16904
eadccfbb
RH
169052002-02-26 Richard Henderson <rth@redhat.com>
16906
16907 * config/alpha/alpha.c (alpha_encode_section_info): Examine
16908 MODULE_LOCAL_P; improve commentary.
16909
7080ada1
ZW
169102002-02-26 Zack Weinberg <zack@codesourcery.com>
16911
16912 * doc/cpp.texi: Clarify documentation of relationship between
16913 #line and #include.
16914
b42cff6b
KH
169152002-02-26 Kazu Hirata <kazu@hxi.com>
16916
16917 * config/h8300/h8300-protos.h: Update the prototype for
16918 compute_logical_op_length. Add the prototype for
16919 compute_logical_op_cc.
16920 * config/h8300/h8300.c (compute_logical_op_length): Figure out
16921 code from operands.
16922 (compute_logical_op_cc): New.
16923 * config/h8300/h8300.md: Combine all the logical op patterns
16924 in HImode and SImode. Use compute_logical_op_cc.
16925
831c4e87
KC
169262002-02-26 Kelley Cook <kelleycook@comcast.net>
16927
16928 * config/i386/i386.c (print_operand): Don't append ATT-style
16929 length suffixs to x87 opcodes when in Intel mode.
16930
ff88fe10
RS
169312002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
16932
16933 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
16934 (init_emit_once): Update calls.
16935 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
16936 (init_syntax_once): Prototype.
16937
d4108589
JDA
169382002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
16939
16940 * pa-linux.h (LIB_SPEC): Update definition.
16941 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16942
e013f3c7
RH
169432002-02-26 Richard Henderson <rth@redhat.com>
16944
16945 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
16946 if we emitted a stop bit.
16947
9e944a16
JJ
169482002-02-26 Jakub Jelinek <jakub@redhat.com>
16949
16950 * configure.in (libgcc_visibility): Substitute.
16951 * configure: Rebuilt.
16952 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
16953 defined symbols .hidden.
16954
47bd70b5
JJ
169552002-02-26 Jakub Jelinek <jakub@redhat.com>
16956
16957 * attribs.c (c_common_attribute_table): Add visibility.
16958 (handle_visibility_attribute): New function.
16959 * varasm.c (assemble_visibility): New function.
16960 * output.h (assemble_visibility): Add prototype.
16961 * tree.h (MODULE_LOCAL_P): Define.
16962 * crtstuff.c (__dso_handle): Use visibility attribute.
16963 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
16964 for MODULE_LOCAL_P symbols too.
16965 * config/ia64/ia64.c (ia64_encode_section_info): Handle
16966 MODULE_LOCAL_P symbols the same way as local symbols.
16967 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
16968 into .sdata/.sbss by the user.
16969 * doc/extend.texi (Function Attributes): Document visibility
16970 attribute.
16971
6d73371a
JJ
169722002-02-26 Jakub Jelinek <jakub@redhat.com>
16973
16974 PR debug/5770
16975 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
16976 STRING_CST initializer spanning the whole variable without
16977 embedded zeros.
16978 If expand_expr returned MEM, don't use it.
16979
06e224f7
AO
169802002-02-26 Alexandre Oliva <aoliva@redhat.com>
16981
16982 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
16983 generate a die for the lexical block.
16984
40367e2d
KH
169852002-02-26 Kazu Hirata <kazu@hxi.com>
16986
16987 * config/h8300/h8300-protos.h: Add a prototype for
16988 compute_logical_op_length.
16989 * config/h8300/h8300.c (compute_logical_op_length): New.
16990 * config/h8300/h8300.md (anonymous logical patterns): Use
16991 compute_logical_op_length for length.
16992
0e98f924
AH
169932002-02-26 Aldy Hernandez <aldyh@redhat.com>
16994
831c4e87
KC
16995 * dwarf2out.c (modified_type_die): Do not call type_main_variant
16996 for vectors.
16997 (gen_type_die): Same.
0e98f924 16998
831c4e87 16999 * attribs.c (handle_vector_size_attribute): Set debug information.
0e98f924 17000
a50cfd52
DE
170012002-02-26 Daniel Egger <degger@fhm.edu>
17002
831c4e87
KC
17003 * config/rs6000/rs6000.md: Swap define_insn attributes to
17004 fix incorrect generation of merge high instructions instead
17005 of merge low.
a50cfd52 17006
b7997284
AH
170072002-02-26 Aldy Hernandez <aldyh@redhat.com>
17008
831c4e87
KC
17009 * c-typeck.c (really_start_incremental_init): Use
17010 bitsize_zero_node for vectors.
b7997284 17011
376aec5d
AH
170122002-02-26 Aldy Hernandez <aldyh@redhat.com>
17013
831c4e87
KC
17014 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
17015 ("*set_vrsave_internal"): Same.
376aec5d 17016
3b40e71b
RH
170172002-02-25 Richard Henderson <rth@redhat.com>
17018
17019 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
17020 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
17021
232b8f52
JJ
170222002-02-25 Jakub Jelinek <jakub@redhat.com>
17023
17024 PR target/5755
17025 * config/i386/i386.c (ix86_return_pops_args): Only pop
17026 fake structure return argument if it was passed on the stack.
17027
67282790
JM
170282002-02-25 Jason Merrill <jason@redhat.com>
17029
17030 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
17031 RESULT_DECL.
17032
5c181756
AO
170332002-02-25 Alexandre Oliva <aoliva@redhat.com>
17034
17035 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
17036 link with shared_name only.
17037 * doc/invoke.texi (Link Options): Document new behavior.
17038
6786d201
AH
170392002-02-25 Aldy Hernandez <aldyh@redhat.com>
17040
831c4e87 17041 * c-typeck.c (push_init_level): Handle vectors.
6786d201 17042
7d6040e8
AO
170432002-02-25 Alexandre Oliva <aoliva@redhat.com>
17044
17045 * config/sparc/sparc.c (const64_high_operand): Zero-extend
17046 operands of SPARC_SETHI_P.
17047 (input_operand): Likewise.
17048 (sparc_emit_set_const32): Likewise.
17049 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
17050 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
17051 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
17052 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
17053 (movdi_insn_sp64_vis): Likewise.
17054 (movdi split, movdf split): Use SETHI32.
17055 * doc/md.texi: Document SPARC constraints L, M and N.
17056
b188f760
AH
170572002-02-25 Aldy Hernandez <aldyh@redhat.com>
17058
831c4e87
KC
17059 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
17060 ("*set_vrsave_internal"): use mfspr for Darwin.
b188f760 17061
831c4e87
KC
17062 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
17063 gen_get_vrsave_internal.
b188f760 17064
8041889f
RK
17065Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17066
17067 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
17068
a47ed310
NB
170692002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
17070
17071 * cpplex.c (cpp_interpret_charconst): Get signedness or
17072 otherwise of wide character constants correct.
17073 * cppexp.c (lex): Get signedness of wide charconsts correct.
17074
cb8f73be
RK
17075Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17076
17077 * optabs.c (widen_operand): Only call convert_modes for
17078 promoted SUBREG if signedness matches.
17079 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
17080
2450e0b8
NB
170812002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17082
17083 * cpplib.c (glue_header_name): Use local buffer to build up
17084 header name.
17085
70b6aaed
NB
170862002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17087
17088 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
17089
6be580c7
KH
170902002-02-23 Kazu Hirata <kazu@hxi.com>
17091
17092 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
17093 H8/300[HS] separately.
17094 * config/h8300/h8300.md: Remove the early clobber constraint
17095 from bit field patterns.
17096
35dad9f1
KH
170972002-02-23 Kazu Hirata <kazu@hxi.com>
17098
17099 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
17100 register_operand.
17101 (mulhisi3): Likewise.
17102 (umulqisi3): Likewise.
17103 (umulhisi3): Likewise.
17104
ab8e2228
NB
171052002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17106
17107 * cppinit.c (output_deps): Correct test for stdout output.
17108 (init_dependency_output): Cure warning.
17109
ac6f8a15
RK
17110Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17111
17112 * expr.c (store_expr): When converting expression to promoted
17113 equivalent type, allow using SUBREG_REG of TARGET as the target
17114 of the expansion of EXP.
17115 * loop.c (basic_induction_var, case SUBREG): Always look inside.
17116 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
17117 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
17118 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
17119 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
17120
f282ffb3
JM
171212002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
17122
17123 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
17124 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
17125 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
17126
44c5edc0
JJ
171272002-02-23 Jakub Jelinek <jakub@redhat.com>
17128
17129 PR optimization/5747
17130 * loop.c (scan_loop): Update reg info if move_movables created new
17131 pseudos.
17132
f98e43c0
DE
171332002-02-23 David Edelsohn <edelsohn@gnu.org>
17134
17135 * gcc.c (init_gcc_spec): Revert last change.
17136
e72247f4
DE
171372002-02-23 David Edelsohn <edelsohn@gnu.org>
17138
17139 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
17140 gpc_reg_operand constraint.
17141
171422002-02-23 Alan Modra <amodra@bigpond.net.au>
17143
17144 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
17145 Simplify comparison of `low'.
17146 (add_operand): Fix formatting.
17147 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
57deb3a1 17148 (mask_operand): Disallow mask to wrap in 64-bit mode.
e72247f4
DE
17149 (rs6000_stack_info): Remove redundant test setting push_p.
17150 (output_toc): Fix formatting.
17151 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
17152 cc_reg_not_cr0_operand constraint.
17153 (booldi3, boolcdi3 splitters): Same.
17154
a5c30531
AH
171552002-02-23 Aldy Hernandez <aldyh@redhat.com>
17156
831c4e87 17157 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
a5c30531 17158
43710f9f
DE
171592002-02-22 David Edelsohn <edelsohn@gnu.org>
17160
17161 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
17162 gcc invoked with -shared-libgcc.
17163
3256b817
JJ
171642002-02-22 Jakub Jelinek <jakub@redhat.com>
17165
17166 PR c++/5748
17167 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
17168 decl if any of elements was TREE_USED.
17169
9e0625a3
AO
171702002-02-22 Alexandre Oliva <aoliva@redhat.com>
17171
17172 * config/sparc/sol2.h: Don't include sys/mman.h.
17173 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
17174 (arith_4096_operand): Don't throw high bits away.
17175 (const64_operand): Take sign extension of CONST_INTs into account.
17176 (const64_high_operand, sparc_emit_set_const32): Likewise.
17177 (GEN_HIGHINT64): Likewise.
17178 (sparc_emit_set_const64_quick1): Likewise.
17179 (const64_is_2insns): Likewise.
17180 (print_operand): Use trunc_int_for_mode for sign extension.
17181 * config/sparc/sparc.h (SMALL_INT32): Likewise.
17182 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
17183 chars. Assume CONST_INT is already properly sign-extended.
17184 (movdi split): Sign-extend each SImode part.
17185 (andsi3 split): Don't mask high bits off, so that result
17186 remains properly sign-extend.
17187 (iorsi3 split): Likewise.
17188 (xorsi3 split): Likewise.
17189
54fec3d5
RS
171902002-02-22 Richard Sandiford <rsandifo@redhat.com>
17191
17192 * fold-const.c (fold): Fix typo in comments.
17193
667ada9b
DN
171942002-02-21 Diego Novillo <dnovillo@redhat.com>
17195
17196 * Makefile.in (langhooks.o): Update dependencies.
17197
29ac78d5
DN
171982002-02-21 Diego Novillo <dnovillo@redhat.com>
17199
17200 * langhooks.c: Include flags.h.
17201
6aa77e6c
AH
172022002-02-21 Aldy Hernandez <aldyh@redhat.com>
17203
17204 * testsuite/gcc.dg/attr-alwaysinline.c: New.
17205
17206 * c-common.c (c_common_post_options): Set inline trees by
17207 default.
17208
17209 * doc/extend.texi (Function Attributes): Document always_inline
17210 attribute.
17211 Update documentation about inlining when not optimizing.
17212
17213 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
17214
17215 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
17216 unless DECL_ALWAYS_INLINE.
17217
17218 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
17219 unless DECL_ALWAYS_INLINE.
17220 (c_disregard_inline_limits): Disregard if always_inline set.
17221
17222 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
17223 Disregard if always_inline set.
17224 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
17225 unless DECL_ALWAYS_INLINE.
17226
17227 * attribs.c (handle_always_inline_attribute): New.
17228 (c_common_attribute_table): Add always_inline.
17229
17230 * config/rs6000/altivec.h: Add prototypes for builtins
17231 requiring the always_inline attribute.
17232
c410d49e
EC
172332002-02-21 Eric Christopher <echristo@redhat.com>
17234
17235 * expmed.c (store_bit_field): Try to simplify the subreg
17236 before generating a new one when when the mode size of
17237 value is less than maxmode.
17238
e3c8ea67
RH
172392002-02-21 Richard Henderson <rth@redhat.com>
17240
17241 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
17242 than gen_rtx_PLUS to form the sum.
17243 * explow.c (force_reg): Rearrange to not allocate new pseudo
17244 when force_operand returns a register.
17245 * expr.c (expand_assignment): Allow offset_rtx expansion to
17246 return a sum. Do not force addresses into registers.
17247 (expand_expr): Likewise.
17248 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
17249 to canonicalize arithmetic that didn't simpify.
17250 (simplify_plus_minus): New argument force; update
17251 all callers. Don't split CONST unless we can do something with it,
17252 and wouldn't lose the constness of the operands.
17253
17254 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
17255 that we generated earlier.
17256
c1a046e5
TT
172572002-02-21 Tom Tromey <tromey@redhat.com>
17258
17259 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17260 (output_line_info): Use constant `1', with a long explanatory
17261 comment.
17262 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
17263
31fbaad4
R
17264Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
17265
17266 * jump.c (redirect_jump): If old label has no UID, don't try to
17267 delete it.
17268
a7f52356
R
17269Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
17270
17271 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
17272 If input is constant, do shifts at compile time.
17273
924fcc4e
JM
172742002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
17275
17276 * doc/extend.texi: Fix some more overfull hboxes.
17277
e5a20888
JJ
172782002-02-21 Jakub Jelinek <jakub@redhat.com>
17279
17280 PR optimization/4994
17281 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
17282 register moves.
17283
172842002-02-21 Jakub Jelinek <jakub@redhat.com>
22273300
JJ
17285
17286 PR c++/4574
17287 * expr.h (expand_and): Add mode argument.
17288 * expmed.c (expand_and): Add mode argument.
17289 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
17290 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
17291 * except.c (expand_builtin_extract_return_addr): Likewise.
17292 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17293 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
17294 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
17295 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
17296 * config/c4x/c4x.md: Use GEN_INT (x) instead of
17297 gen_rtx (CONST_INT, VOIDmode, x).
17298
7133e992
JJ
172992002-02-21 Jakub Jelinek <jakub@redhat.com>
17300
17301 PR c/4697:
17302 * stmt.c (warn_if_unused_value): Move side effects test once more.
17303
e2ec05a6
TG
173042002-02-20 Torbjorn Granlund <tege@swox.com>
17305
17306 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
831c4e87 17307 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
e2ec05a6 17308
9dd791c8
AO
17309Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
17310
17311 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
17312 SUBREG or ZERO_EXTEND.
17313
7ab56274
R
17314Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
17315
17316 * sh.h (current_function_anonymous_args): Remove.
17317 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
17318 of current_function_varargs and current_function_stdarg is set.
17319 * sh.c (sh_expand_prologue): Check current_function_varargs /
17320 current_function_stdarg / TARGET_SH5 instead of
17321 current_function_anonymous_args.
17322
17323 * sh64.h (TARGET_VERSION): Define.
17324
b1765bde
DE
173252002-02-20 David Edelsohn <edelsohn@gnu.org>
17326
17327 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
17328 VRSAVE_REGNO on TARGET_ALTIVEC.
17329
173302002-02-20 Alan Modra <amodra@bigpond.net.au>
17331
17332 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
17333 bits of SImode const_int.
17334 (includes_rshift_p): Likewise.
17335 (print_operand): Call mask_operand and mask64_operand with correct
c410d49e 17336 mode.
b1765bde
DE
17337 (rs6000_output_function_epilogue): Pad traceback table to word.
17338 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
17339 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
17340 mask64_operand with correct mode.
b1765bde
DE
17341 (FUNCTION_ARG_REGNO_P): Correct parentheses.
17342
149d6f9e
JJ
173432002-02-20 Jakub Jelinek <jakub@redhat.com>
17344
17345 PR debug/4461
17346 * varasm.c (get_pool_constant_mark): New.
17347 * rtl.h (get_pool_constant_mark): Add prototype.
17348 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
17349 be represented if it has not been output.
17350
4161da12
AO
173512002-02-20 Alexandre Oliva <aoliva@redhat.com>
17352
17353 * combine.c (do_SUBST): Sanity check substitutions of
17354 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
17355 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
17356 CONST_INT into its operand.
17357 (known_cond): Likewise, for ZERO_EXTEND.
17358 * simplify-rtx.c (simplify_unary_operation): Fix condition to
17359 allow for simplification of wide modes. Reject CONST_INTs in
17360 ZERO_EXTEND when their actual mode is not given.
17361
3704ef74
AO
173622002-02-20 Alexandre Oliva <aoliva@redhat.com>
17363
17364 * c-decl.c (pushdecl): If no global declaration is found for an
17365 extern declaration in block scope, try a limbo one.
17366
7552da58
JJ
173672002-02-20 Jakub Jelinek <jakub@redhat.com>
17368
17369 PR c++/4401
17370 * c-common.c (pointer_int_sum): Moved from...
17371 * c-typeck.c (pointer_int_sum): ...here.
17372 * c-common.h (pointer_int_sum): Add prototype.
17373
00fae85d
JJ
173742002-02-20 Jakub Jelinek <jakub@redhat.com>
17375
17376 PR c++/5713
17377 * c-decl.c (duplicate_decls): Return 0 if issued error about
17378 redeclaration.
17379
4636c87e
JJ
173802002-02-20 Roger Sayle <roger@eyesopen.com>
17381 Jakub Jelinek <jakub@redhat.com>
17382
17383 PR c/4389
17384 * tree.c (host_integerp): Ensure that the constant integer is
17385 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
17386 when pos is zero or non-zero respectively. Clarify comment.
17387 * c-format.c (check_format_info_recurse): Fix host_integerp
17388 usage; the pos argument should be zero when assigning to a
17389 signed HOST_WIDE_INT.
17390
59bef189
RH
173912002-02-20 Richard Henderson <rth@redhat.com>
17392
17393 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
17394 of the operand, rather than assuming TImode.
17395 (ix86_expand_binop_builtin): Cope with commutative patterns
17396 using nonimmediate_operand for both operands.
17397 (ix86_expand_timode_binop_builtin): Likewise.
17398 (ix86_expand_store_builtin): Validate operand 1.
17399 (ix86_expand_unop1_builtin): Likewise.
17400
9338ffe6 174012002-02-20 Philip Blundell <philb@gnu.org>
c410d49e 17402
9338ffe6
PB
17403 PR 5705
17404 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
17405
f322b423
RH
174062002-02-20 Richard Henderson <rth@redhat.com>
17407
17408 PR c/5615
17409 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
17410
d94084f7
TT
174112002-02-20 Tom Tromey <tromey@redhat.com>
17412
17413 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17414 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17415 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17416 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17417 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
17418 unconditionally.
17419
37fa124a
AM
17420Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
17421
17422 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
17423 for (const_int 0) in X not just INTVAL.
17424
6e5bb5ad
JM
174252002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
17426
17427 * doc/extend.texi: Avoid or reduce overfull hboxes.
17428
420e7dfa
DN
174292002-02-20 Diego Novillo <dnovillo@redhat.com>
17430
17431 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
17432 operations if the field does not start at a mode boundary.
17433
1b7a2af6
JS
174342001-02-20 Joel Sherrill <joel@OARcorp.com>
17435
17436 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
17437 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
17438 Also done for -Acpu and -Amachine.
17439
56cd5b95
NB
174402002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
17441
17442 * cppinit.c (init_dependency_output): Take deps output file
17443 from -o if none given with -MF. Suppress normal output.
c410d49e 17444 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
56cd5b95
NB
17445 * doc/cpp.texi, doc/invoke.texi: Update.
17446
042cdf71
ZW
174472002-02-19 Zack Weinberg <zack@codesourcery.com>
17448
17449 * toplev.c (output_quoted_string): Write unprintable
17450 characters with octal escapes.
17451
c1f11548
DE
174522002-02-19 David Edelsohn <edelsohn@gnu.org>
17453
17454 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
17455 really_call_used[VRSAVE_REGNO] if not Altivec.
17456
174572002-02-19 Alan Modra <amodra@bigpond.net.au>
c410d49e 17458
c1f11548
DE
17459 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
17460 MODE_MASK.
17461 (constant_pool_expr_1): Fix formatting.
17462 (rs6000_legitimize_reload_address): Likewise.
17463
c964d90e
RK
17464Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17465
17466 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
17467 now that we have one.
17468
ae34ac46
ZW
174692002-02-19 Zack Weinberg <zack@codesourcery.com>
17470
17471 * tree.h (struct tree_common): Remove aux. Add unused_0 at
17472 end of first block of bitfields (which was only seven bits);
17473 rename dummy to unused_1; remove comment which is no longer true.
17474
293c28ee
GS
174752002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
17476
17477 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
17478
7b8781c8
PB
174792002-02-19 Philip Blundell <pb@nexus.co.uk>
17480
0cb6c58d 17481 PR 5399
7b8781c8
PB
17482 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
17483 if generating PIC.
17484
17485 PR 5054
17486 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
17487 arm_is_longcall_p rather than inspecting call-type cookie
17488 directly.
17489 (call_value_insn) [TARGET_THUMB]: Likewise.
17490
5c464583
GS
174912002-02-19 Graham Stott <grahams@redhat.com>
17492
17493 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
17494
71c061e6
DE
174952002-02-19 David Edelsohn <edelsohn@gnu.org>
17496
17497 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
17498 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6d1def5c 17499 (FP_SAVE_INLINE): Delete.
71c061e6
DE
17500
17501 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
17502 * config/rs6000/eabi.asm: Remove ABI save restore routines.
17503 * config/rs6000/t-ppccomm: Build crtsavres.o.
17504 * config/rs6000/crtsavres.asm: New file.
17505
3a7731fd
PB
175062002-02-19 Philip Blundell <philb@gnu.org>
17507
17508 * config/arm/arm.c (use_return_insn): Don't reject interrupt
17509 functions.
17510 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
17511 (output_return_instruction): Allow interrupt functions to return with
17512 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
17513 (arm_expand_prologue): Subtract 4 before stacking LR in an
17514 interrupt function.
17515
14f583b8
PB
175162002-02-19 Philip Blundell <pb@nexus.co.uk>
17517
17518 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
17519 decl, not just FUNCTION_DECL.
17520 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
17521 (arm_assemble_integer): Likewise.
17522 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
17523 marked local.
c410d49e 17524
4cb7482c
MG
175252002-02-19 matthew green <mrg@eterna.com.au>
17526
17527 * config.gcc (sparc-*-netbsdelf*): Enable target.
17528 (sparc64-*-netbsd*): New target.
17529 * config/sparc/netbsd-elf.h: New file.
17530 * config/sparc/t-netbsd64: New file.
17531
2df3a718
GS
175322002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
17533
17534 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
17535
77f6c1eb
RS
175362002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
17537
17538 * doc/invoke.texi: explicitly list the style guidelines that
17539 -Weffc++ checks for.
17540
fd973d56
JH
17541Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
17542
17543 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
17544
30518e45
NB
175452002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
17546
17547 PR other/5718
17548 * gcc.c (cpp_unique_options): Treat -o as indicating object file
17549 only if not -E. If -E, pass -o through to the preprocessor.
17550
39ea5704
KH
175512002-02-19 Kazu Hirata <kazu@hxi.com>
17552
17553 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
17554 register number with an appropriate macro.
17555
7355dba7
BM
175562002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
17557
17558 * doc/rtl.texi (Constants): Close @code tag.
17559
91c8aa9e
AH
175602002-02-19 Aldy Hernandez <aldyh@redhat.com>
17561
17562 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
17563 ("mmx_uavgv4hi3"): Same.
17564 ("pmulhrwv4hi3"): Same.
17565
17566 * tree-inline.c (walk_tree): Handle vectors.
17567
17568 * c-common.c (constant_expression_warning): Handle vectors.
17569 (overflow_warning): Same.
17570
17571 * sched-deps.c (sched_analyze_2): Handle vectors.
17572
17573 * rtlanal.c (rtx_unstable_p): Handle vectors.
17574 (rtx_varies_p): Same.
17575 (count_occurrences): Same.
17576 (regs_set_between_p): Same.
17577 (modified_between_p): Same.
17578 (modified_in_p): Same.
17579 (volatile_insn_p): Same.
17580 (volatile_refs_p): Same.
17581 (side_effects_p): Same.
17582 (may_trap_p): Same.
17583 (inequality_comparisons_p): Same.
17584 (replace_regs): Same.
17585 (computed_jump_p_1): Same.
17586
17587 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
17588 argument.
17589 (inner_mode_array): New.
17590 (copy_rtx): Handle vectors.
17591 (copy_most_rtx): Same.
17592 (rtx_equal_p): Same.
17593 (get_mode_alignment): Adjust for vectors.
17594
17595 * resource.c (mark_referenced_resources): Handle vectors.
17596 (mark_set_resources): Same.
17597
17598 * reload1.c (eliminate_regs): Handle vectors.
17599 (elimination_effects): Same.
17600 (scan_paradoxical_subregs): Same.
17601
17602 * reload.c (subst_reg_equivs): Handle vectors.
17603
17604 * regrename.c (scan_rtx): Handle vectors.
17605
17606 * regclass.c (reg_scan_mark_refs): Handle vectors.
17607
17608 * recog.c (find_single_use_1): Handle vectors.
17609
17610 * local-alloc.c (equiv_init_varies_p): Handle vectors.
17611 (contains_replace_regs): Same.
17612 (memref_referenced_p): Same.
17613
17614 * integrate.c (copy_rtx_and_substitute): Handle vectors.
17615 (subst_constants): Same.
17616
17617 * genattrtab.c (attr_copy_rtx): Handle vectors.
17618 (encode_units_mask): Same.
17619 (clear_struct_flag): Same.
17620 (count_sub_rtxs): Same.
17621
17622 * gcse.c (want_to_gcse_p): Handle vectors.
17623 (oprs_unchanged_p): Same.
17624 (hash_expr_1): Same.
17625 (oprs_not_set_p): Same.
17626 (expr_killed_p): Same.
17627 (compute_transp): Same.
17628 (store_ops_ok): Same.
17629
17630 * function.c (purge_addressof_1): Do not allow paradoxical subregs
17631 of vectors.
17632 (fixup_var_refs_1): Same.
17633 (instantiate_virtual_regs_1): Same.
17634
17635 * fold-const.c (operand_equal_p): Handle vectors.
17636 (fold): Same.
17637 (rtl_expr_nonnegative_p): Same.
17638
17639 * flow.c (mark_used_regs): Handle vectors.
17640
17641 * df.c (df_uses_record): Handle vectors.
17642
17643 * cselib.c (cselib_subst_to_values): Handle vectors.
17644 (cselib_mem_conflict_p): Same.
17645 (hash_rtx): Same.
17646
17647 * cse.c (canon_reg): Handle vectors.
17648 (fold_rt): Same.
17649 (cse_process_notes): Same.
17650 (count_reg_usage): Same.
17651 (canon_hash): Same.
17652
17653 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
17654
17655 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
17656
17657 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
17658 (gen_rtx): Handle CONST_VECTOR.
17659 (gen_const_vector_0): New.
17660 (copy_rtx_if_shared): CONST_VECTORs can be shared.
17661 (reset_used_flags): Same.
17662 (copy_insn_1): Same.
17663 (initializer_constant_valid_p): Handle VECTOR_CST.
17664
17665 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
17666
17667 * doc/rtl.texi (Constants): Document const_vector.
17668 (CONST0_RTX): Update for vectors.
17669 (RTL sharing): Same.
17670
17671 * print-tree.c (print_node): Add case for VECTOR_CST.
17672
17673 * tree.h (TREE_VECTOR_CST_ELTS): New.
17674 (struct tree_vector): New.
17675 (union tree_node): Add vector node.
17676 (build_vector): Add prototype.
17677
17678 * tree.def (VECTOR_CST): New.
17679
17680 * tree.c (build_vector): New.
17681
17682 * expmed.c (make_tree): Handle CONST_VECTOR.
17683
17684 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
17685 (CONST_VECTOR_ELT): New.
17686 (CONST_VECTOR_NUNITS): New.
17687
17688 * machmode.h (GET_MODE_INNER): New.
17689 (DEF_MACHMODE): Accept 8th arg.
17690
17691 * machmode.def: Add 8th argument for vector inner mode.
17692 Add inner vector modes for vectors.
17693
17694 * rtl.def (VEC_CONST): Remove.
17695 (CONST_VECTOR): New.
17696
17697 * expr.c (clear_storage): Allow vectors.
17698 (is_zeros_p): Handle VECTOR_CST.
17699
17700 * varasm.c (output_constant_pool): Handle vectors.
17701 (rtx_const): Add veclo and vechi fields.
17702 (kind): Add RTX_VECTOR.
17703 (decode_rtx_const): Add case for vector.
17704
17705 * config/rs6000/rs6000-protos.h: Add zero_constant.
c410d49e 17706
91c8aa9e
AH
17707 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
17708 constants. Force easy vector constants into memory.
17709 (easy_vector_constant): New.
17710 (emit_easy_vector_constant): New.
17711 (rs6000_legitimize_reload_address): Do not generate bad reloads on
17712 darwin.
17713
17714 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
17715 instruction does.
17716 ("altivec_lvxl"): Same.
17717 (altivec_lvebx): Same.
17718 (altivec_lvehx): Same.
17719 (altivec_lvewx): Same.
17720 ("*movv4si_const0"): New.
17721 ("*movv4sf_const0"): New.
17722 ("*movv8hi_const0"): New.
17723 ("*movv16qi_const0"): New.
17724
d4d6d0ce
KH
177252002-02-18 Kazu Hirata <kazu@hxi.com>
17726
17727 * config/h8300/h8300.c (notice_update_cc): Use
17728 cc_status.value2.
17729
4915d3aa
KH
177302002-02-18 Kazu Hirata <kazu@hxi.com>
17731
17732 * config/h8300/h8300.md (divmod patterns): Change the
17733 constraints for operands[1] to register_operand.
17734
82be00ee
KH
177352002-02-18 Kazu Hirata <kazu@hxi.com>
17736
17737 * config/h8300/h8300-protos.h: Remove the prototype for
17738 p_operand.
17739 * config/h8300/h8300.c (p_operand): Remove.
17740 * config/h8300/h8300.md: Replace p_operand with
17741 const_int_operand.
17742
1768c26f
PB
177432002-02-18 Philip Blundell <pb@nexus.co.uk>
17744
17745 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
17746 comment.
17747 (output_return_instruction): Allow use of LDR to unstack
17748 return addresss even for interrupt handlers or when
17749 interworking. If compiling for ARMv5, use interworking-safe
17750 return instructions by default. Remove duplicated code and
17751 lengthy "strcat" sequences.
17752
ccd84f51
FS
177532002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17754
17755 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
17756 (LINK_EH_SPEC): Define.
17757 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
17758
2c153108
UW
177592002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
17760
17761 * config/s390/s390.c (s390_emit_prologue): Do not set the
17762 frame_related flag for call-clobbered registers.
17763
e95d6b23
JH
17764Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
17765
17766 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
17767 (construct_container): Fix handling of SSE operands.
17768 (ix86_expand_builtin): Fix handling of 64bit pointers.
17769 (mmx_maskmovq_rex): New pattern.
17770
c43a12b5
JH
17771Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
17772
17773 * regrename.c (kill_set_value): Handle subregs properly.
17774
aeb85a15
DB
177752002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
17776
17777 * objc/objc-act.c (handle_impent): Remove leading '*'
c410d49e 17778 from objc_class_name.
aeb85a15 17779
a615ca3e
RH
177802002-02-17 Richard Henderson <rth@redhat.com>
17781
17782 * config/alpha/alpha.c (some_small_symbolic_operand,
17783 some_small_symbolic_operand_1, split_small_symbolic_operand,
17784 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
17785 Handle small SYMBOL_REFs anywhere, not just inside memories.
17786 * config/alpha/alpha-protos.h: Update.
17787 * config/alpha/alpha.h (PREDICATE_CODES): Update.
17788 * config/alpha/alpha.md (small symbolic operand splitter): Update.
17789
ddb28441
RM
177902002-02-17 Roland McGrath <roland@frob.com>
17791
17792 * config.gcc (powerpc-*-gnu-gnualtivec*,
17793 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
17794 * config/rs6000/gnu.h: New file.
17795 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
17796 Grok "gnu" in rs6000_abi_name.
17797 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
17798 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
17799 Grok -mcall-gnu analogous to -mcall-linux et al.
17800 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
17801 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
17802 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
17803
f6f8ada3
JJ
178042002-02-17 Jakub Jelinek <jakub@redhat.com>
17805
17806 PR c/3444:
17807 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
17808 shortening.
17809
e16b32fc
PT
178102002-02-17 Philipp Thomas <pthomas@suse.de>
17811
17812 * config/cris/cris.h: Undefine STARTFILE_SPEC and
17813 ENDFILE_SPEC before (re)defining them.
17814
f9477efd
KH
178152002-02-17 Kazu Hirata <kazu@hxi.com>
17816
17817 * config/h8300/h8300.c: Fix formatting.
17818 * config/h8300/h8300.h: Likewise.
17819
404ae494
PT
178202002-02-17 Philipp Thomas <pthomas@suse.de>
17821
17822 * doc/tm.texi: Explain why empty strings should not be
17823 marked for translation.
17824
a52453cc
PT
178252002-02-17 Philipp Thomas <pthomas@suse.de>
17826
17827 * final.c (output_operand_lossage): Changed to accept
17828 printf style arguments. Change calls where necessary.
17829 * output.h (output_operand_lossage): Change declaration
17830 accordingly. Update copyright.
17831 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
17832 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
17833 Update copyright date where necessary.
c410d49e 17834
a52453cc
PT
17835 * config/i386/i386.c (print_operand): Likewise. Remove use of
17836 sprintf.
17837
17838 * config/cris/cris.c (cris_operand_lossage): Likewise.
17839 Rename parameter so that exgettext recognizes it as
17840 translatable message.
17841 (LOSE_AND_RETURN): Rename parameter to msgid.
17842
1c11abc4
KH
178432002-02-17 Kazu Hirata <kazu@hxi.com>
17844
17845 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
17846 hard coded register number with an appropriate macro.
17847 (HARD_REGNO_MODE_OK): Likewise.
17848 (ARG_POINTER_REGNUM): Likewise.
17849 (STATIC_CHAIN_REGNUM): Likewise.
17850 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
17851 * config/h8300/h8300.md (define_constants): Define more
17852 register numbers.
17853
a5d17ff3
PT
178542002-02-17 Philipp Thomas <pthomas@suse.de>
17855
17856 * config/i386/i386.h: Don't mark empty strings for translation.
17857
1a7289c4
L
178582002-02-16 H.J. Lu <hjl@gnu.org>
17859
17860 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
17861
afb58288
ZW
178622002-02-16 Zack Weinberg <zack@codesourcery.com>
17863
17864 * cppinit.c (merge_include_chains): Check for brack being
17865 NULL before attempting to merge it with qtail.
17866
d2af4dbd
AC
178672002-02-16 Andrew Cagney <ac131313@redhat.com>
17868
17869 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
17870 DBX_DEBUG.
17871
2e1ed1e3
JDA
178722002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
17873
17874 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
17875
604c75b2
JDA
178762002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
17877
17878 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
17879 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
17880 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
17881
1a42b072
RK
17882Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17883
7303604f 17884 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1a42b072
RK
17885 now only if !TARGET_FIX.
17886 (*movsi_nt_vms_fix): New pattern.
17887
c2ea1ac6
DR
178882002-02-16 Douglas B Rupp <rupp@gnat.com>
17889
17890 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
17891 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
17892 (alpha_sa_mask, alpha_sa_size): Reflect above change.
17893 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
17894 (alpha_start_function, alpha_expand_epilogue): Likewise.
17895 (unicosmk_gen_dsib): Likewise.
17896
725e58b1
RK
17897Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17898
17899 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
17900
13e58269
UW
179012002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
17902
c410d49e 17903 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
13e58269
UW
17904 check_and_change_labels, s390_final_chunkify): Delete.
17905 (s390_split_branches, s390_chunkify_pool): New functions.
17906 (s390_function_prologue): Call them.
c410d49e 17907
13e58269
UW
17908 * config/s390/s390.h (S390_REL_MAX): Delete.
17909 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
17910
c410d49e 17911 * config/s390/s390.md (cjump, icjump, jump): Fix length
13e58269
UW
17912 attribute calculation.
17913
17914
34d1b01d
DE
179152002-02-15 David Edelsohn <edelsohn@gnu.org>
17916
17917 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
17918 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
17919
be5cc51a
JDA
179202002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
17921
17922 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
17923 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
17924 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
17925
ee96ce90
RS
179262002-02-15 Richard Sandiford <rsandifo@redhat.com>
17927
17928 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
17929
05fa709d
RS
179302002-02-15 Richard Sandiford <rsandifo@redhat.com>
17931
17932 * reload.c (find_dummy_reload): Check that an output register
17933 is valid for its mode.
17934
4606272b
AO
179352002-02-14 Alexandre Oliva <aoliva@redhat.com>
17936
9a360704
AO
17937 * combine.c (known_cond): After replacing the REG of a SUBREG, try
17938 to simplify it.
17939
4606272b
AO
17940 * function.c (assign_parms): Demote promoted argument passed by
17941 transparent reference.
17942
e62d89a1
JS
179432001-02-14 Joel Sherrill <joel@OARcorp.com>
17944
17945 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
17946 -Acpu() and -Amachine() to eliminate warnings.
17947
6c4cf695
UW
179482002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
17949
17950 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
17951
037f11ef
KH
179522002-02-14 Kazu Hirata <kazu@hxi.com>
17953
17954 * config/h8300/h8300-protos.h: Update the prototype for
17955 const_costs.
17956 * config/h8300/h8300.c (const_costs): Treat SET as a little
17957 more expensive operation.
17958 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
17959 reference to const_costs.
17960
fdc76b09
HPN
179612002-02-14 Hans-Peter Nilsson <hp@axis.com>
17962
17963 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
17964
d76e6800
JJ
179652002-02-14 Jakub Jelinek <jakub@redhat.com>
17966
17967 PR c/5503:
17968 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
17969 use arguments from newtype.
17970
5ae590d7
EC
179712002-02-13 Eric Christopher <echristo@redhat.com>
17972
17973 * config/mips/mips.c (override_options): Add check for march/mipsX
17974 on the same command line. Fix error message in cpu processing.
17975 Remove architecture and ISA checks.
17976
b8513691
AH
179772002-02-14 Aldy Hernandez <aldyh@redhat.com>
17978
831c4e87 17979 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
b8513691 17980
831c4e87 17981 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
b8513691 17982
78c875e8
AH
179832002-02-14 Aldy Hernandez <aldyh@redhat.com>
17984
831c4e87
KC
17985 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
17986 alternatives.
17987 ("*movv8hi_internal1"): Same.
17988 ("*movv16qi_internal1"): Same.
17989 ("*movv4sf_internal1"): Same.
78c875e8 17990
831c4e87
KC
17991 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
17992 not push_reload for altivec modes.
78c875e8 17993
d76e6800 179942002-02-13 Joel Sherrill <joel@OARcorp.com>
f22b4bc4
JS
17995
17996 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
17997 all RTEMS targets including removal of #includes from config/*/rtems*.h
17998 file and adding them to tm_file setting. Added xm_defines=POSIX to
17999 many targets.
18000 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
18001 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
18002 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
18003 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
18004 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
18005 config/m68k/rtemself.h: Ditto.
18006 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
18007 config/mips/rtems64.h: Ditto.
18008 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
18009 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
18010 Ditto.
18011 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
18012 config/sparc/rtemself.h: Ditto.
18013 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
18014 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
18015 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
18016 more like arm-elf.
18017 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
18018 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
18019 target made more similar to i386-elf.
18020 * config/i386/t-rtems-i386: Added soft float support and multilibs.
18021 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
18022 be similar to config/m68k/t-m68kelf.
18023 * gthr-rtems.h: Encapsulate with extern "C" for C++.
18024
8686336f
JH
18025Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
18026
18027 * regmove.c (kill_value): Handle subregs.
18028
558740bf
JH
18029Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
18030
18031 * i386.md (mul patterns): Allow memory operand to be first;
18032 add expanders where needed; fix constraints.
18033 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
18034 Allow memory operand to be the first.
18035
18036 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
18037 operands.
18038
21117a17
JJ
180392002-02-13 Jakub Jelinek <jakub@redhat.com>
18040
18041 PR c/5681:
18042 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
18043 GET_MODE (x).
18044
ec65b2e3
JJ
180452002-02-13 Jakub Jelinek <jakub@redhat.com>
18046
18047 PR optimization/5547:
18048 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
18049 all valid IA-32 address modes involving non-scaled %ebx and
18050 GOT/GOTOFF as displacement.
18051
ce50cae8
UW
180522002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
18053
18054 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
18055 after emitting ltorg insns.
18056
18057 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
18058 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
18059 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
18060 *abssf2): Fix "op_type" attribute.
18061
09eb789b
DR
180622002-02-13 Douglas B Rupp <rupp@gnat.com>
18063
2dbe67bb
DR
18064 * mkconfig.sh: Avoid using a subshell redirect.
18065 ($output.T): Change to $(output)T.
18066 (ENABLE_NLS): Remove unneeded undef.
18067
ea5b9a1f
DR
18068 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
18069 * config/alpha/x-vms (libsubdir): Define.
18070
3deb00ce
DR
18071 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
18072 register frame procedures. Optimize retrieving context.
18073
09eb789b
DR
18074 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
18075 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
18076 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
18077
1abade85
RK
18078Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18079
18080 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
18081 Make same change as for find_base_value.
18082
c283e63f
KH
180832002-02-13 Kazu Hirata <kazu@hxi.com>
18084
18085 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
18086 of QImode and SImode.
18087
86039100
KH
180882002-02-13 Kazu Hirata <kazu@hxi.com>
18089
18090 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
18091 length computation of movsi.
18092 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
18093
e1429da0
KH
180942002-02-13 Kazu Hirata <kazu@hxi.com>
18095
18096 * config/h8300/h8300.md (subqi3): Tighten the predicate for
18097 operands[2] to register_operand.
18098
aebfea10
JH
18099Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
18100
18101 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
18102
0ec4e2a8
AH
181032002-02-12 Aldy Hernandez <aldyh@redhat.com>
18104
831c4e87
KC
18105 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
18106 for altivec_lvx* and altivec_stvx*.
18107 ("*movv4si_internal"): Add constraint for loading from GPRs.
18108 ("*movv8hi_internal1"): Same.
18109 ("*movv16qi_internal1"): Same.
18110 ("*movv4sf_internal1"): Same.
0ec4e2a8 18111
831c4e87 18112 * config/rs6000/rs6000.c (altivec_register_operand): New.
0ec4e2a8 18113
831c4e87
KC
18114 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18115 altivec_register_operand.
0ec4e2a8 18116
b007569d
HPN
181172002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
18118
18119 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
18120 handle SYMBOL_REF.
18121
e6834654
SS
181222002-02-13 Stan Shebs <shebs@apple.com>
18123
831c4e87
KC
18124 * c-typeck.c (digest_init): Handle vectors.
18125 (really_start_incremental_init): Same.
18126 (pop_init_level): Same.
18127 (process_init_element): Same.
e6834654 18128
831c4e87 18129 * varasm.c (output_constant): Same.
e6834654 18130
831c4e87
KC
18131 * expr.c (clear_storage): Same.
18132 (store_constructor): Same.
e6834654 18133
d9b3eb63
EC
181342002-02-12 Eric Christopher <echristo@redhat.com>
18135
18136 * explow.c (hard_function_value): Add comment explaining
18137 signed/unsigned comparison.
18138
56d44285
JJ
181392002-02-12 Jakub Jelinek <jakub@redhat.com>
18140
18141 * jump.c (never_reached_warning): Add finish argument.
18142 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
18143 real insn after end.
18144 * rtl.h (never_reached_warning): Adjust prototype.
18145 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
18146 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
18147 never_reached_warning.
18148
fc209487
GS
181492002-02-12 Graham Stott <grahams@redhat.com>
18150
18151 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
18152
1e41e866
KH
181532002-02-12 Kazu Hirata <kazu@hxi.com>
18154
18155 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
18156 logical shifts on H8/300.
18157 (shift_alg_si): Improve several shifts on H8/300.
18158 (get_shift_alg): Likewise.
18159
a36a47ad
GS
181602002-02-12 Graham Stott <grahams@redhat.com>
18161
18162 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
18163
0aacc8ed
RK
18164Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18165
18166 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
18167 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
18168
a02ac966
HPN
181692002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
18170
18171 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
18172 non-CONST_INT through default_assemble_integer.
18173 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
18174 <case 8>: Abort for CONST_DOUBLE.
18175
d6e06ddc
JDA
181762002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
18177
18178 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
18179 is specified.
18180 * config/pa/pa-linux.h (LIB_SPEC): Delete.
18181 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18182
515342a8
AH
181832002-02-11 Andrew Haley <aph@cambridge.redhat.com>
18184
18185 * config/stormy16/stormy16.md (zero_extendqihi2): New.
18186
cddd8b72
AO
181872002-02-11 Alexandre Oliva <aoliva@redhat.com>
18188
66df7a98
AO
18189 * regrename.c (regrename_optimize): Don't accept a
18190 part-clobbered register if the replaced register is not part
18191 clobbered.
18192
841404cd
AO
18193 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
18194 take padding into account when computing the argument value.
18195
1d1ade42
AO
18196 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
18197
cddd8b72
AO
18198 * combine.c (try_combine): Apply substitutions in
18199 CALL_INSN_FUNCTION_USAGE too.
18200
5c665b88
AH
182012002-02-11 Aldy Hernandez <aldyh@redhat.com>
18202
77f6c1eb
RS
18203 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
18204 __builtin_altivec_abs*.
18205 (bdesc_abs): New.
5c665b88 18206
77f6c1eb
RS
18207 * config/rs6000/rs6000.h (rs6000_builtins): Add
18208 ALTIVEC_BUILTIN_ABS*.
5c665b88 18209
77f6c1eb
RS
18210 * config/rs6000/altivec.h: Use const char for builtins expecting
18211 literals.
18212 (vec_abs): New versions for C and C++.
18213 (vec_abss): Same.
5c665b88 18214
3494f1b4
KH
182152002-02-10 Kazu Hirata <kazu@hxi.com>
18216
18217 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
18218 using Pmode.
18219
72431aef
KH
182202002-02-10 Kazu Hirata <kazu@hxi.com>
18221
18222 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
18223 constant definition from h8300.md.
18224 (FRAME_POINTER_REGNUM): Likewise.
18225 * config/h8300/h8300.md (define_constants): Add FP_REG.
18226
87e4ee91
KH
182272002-02-10 Kazu Hirata <kazu@hxi.com>
18228
18229 * config/h8300/h8300.c (print_operand): Remove redundant code.
18230
9c188705
KH
182312002-02-10 Kazu Hirata <kazu@hxi.com>
18232
18233 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
18234 * config/h8300/h8300.c (byte_reg): Make it static.
18235
fba78abb
RH
182362002-02-10 Richard Henderson <rth@redhat.com>
18237
18238 PR c/5623
18239 * c-typeck.c (incomplete_type_error): Handle flexible array members.
18240
65739e62
RH
182412002-02-10 Richard Henderson <rth@redhat.com>
18242
18243 PR c++/5624
18244 * tree.c (append_random_chars): Don't abort if main_input_filename
18245 does not exist.
18246
247cb9df
HPN
182472002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
18248
18249 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
18250
232bd029
KH
182512002-02-10 Kazu Hirata <kazu@hxi.com>
18252
65739e62 18253 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
232bd029
KH
18254 (pushhi1): Likewise.
18255
276ef573
JDA
182562002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
18257
18258 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
18259 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
18260
617e9ee5
DB
182612002-02-09 David O'Brien <obrien@FreeBSD.org>
18262
18263 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
18264 remove MASK_VIS.
18265 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
18266
6dfa4005
KH
182672002-02-09 Kazu Hirata <kazu@hxi.com>
18268
18269 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
18270 a half of an SImode register on H8/300.
18271
749e7b80
JH
18272Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
18273
18274 * i386.md (movdi_2): Add missing '!'.
18275
ca77d87c
KH
182762002-02-09 Kazu Hirata <kazu@hxi.com>
18277
18278 * config/h8300/h8300.h: Fix formatting. Remove commented-out
18279 definitions.
18280
16c96304
KH
182812002-02-09 Kazu Hirata <kazu@hxi.com>
18282
18283 * config/h8300/h8300.md (length): Correct the distance valid
18284 for the short branch.
18285
a364bc90
KH
182862002-02-09 Kazu Hirata <kazu@hxi.com>
18287
18288 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
18289
e4ec2cac
AO
182902002-02-09 Alexandre Oliva <aoliva@redhat.com>
18291
a138247b
AO
18292 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
18293 registers in SImode.
18294 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
18295 part-clobbered.
18296
2b1fd83f
AO
18297 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
18298 patch.
d9b3eb63 18299
fa5322fa
AO
18300 Contribute sh64-elf.
18301 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
18302 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
18303 (sh_cannot_modify_jumps_p): New function.
18304 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
18305 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
18306 (sh_ms_bitfield_layout_p): New function.
18307 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
18308 Zack Weinberg <zack@codesourcery.com>
18309 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
18310 expand_simple_binop instead of expand_binop.
18311 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
18312 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
18313 use of .quad and .uaquad.
18314 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
18315 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
18316 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18317 * config/sh/sh.md (movdi_const, movdi_const_32bit,
18318 movdi_const_16bit): Make sure all CONSTs have modes.
18319 (sym2PIC): Ditto, but by adjusting all callers.
18320 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
18321 if the prologue calls the SHmedia argument decoder or register
18322 saver.
18323 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18324 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
18325 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
18326 (sh_expand_epilogue): Don't emit USE of return target register.
18327 (prepare_move_operands): Legitimize DImode PIC addresses.
18328 (sh_media_register_for_return): Skip tr0, used to initialize the
18329 PIC register.
18330 (sh_expand_prologue): Remove explicit USE of return register.
18331 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
18332 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
18333 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
18334 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
18335 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
18336 EXTRA_CONSTRAINT_T.
18337 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
18338 (MOVI_SHORI_BASE_OPERAND_P): New.
18339 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
18340 (EXTRA_CONSTRAINT_T): Define in terms of them.
18341 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
18342 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
18343 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
18344 alternatives supporting TARGET_REGS.
18345 (UNSPEC_GOTPLT): New constant.
18346 (movdi split): Move incrementing of LABEL_NUSES...
18347 (movdi_const, movdi_const_32bit): Here. Use
18348 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
18349 (movdi_const_16bit): New.
18350 (call, call_value) [flag_pic]: Use GOTPLT.
18351 (call_pop, call_value_pop): New expands.
18352 (call_pop_compact, call_pop_rettramp): New insns.
18353 (call_value_pop_compact, call_value_pop_rettramp): New insns.
18354 (sibcall) [flag_pic]: Use GOT.
18355 (builtint_setjmp_receiver): Remove bogus, unused expand.
18356 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
18357 (*pt, *ptb, ptrel): New insns.
18358 (sym2GOT): Handle DImode GOT.
18359 (sym2GOTPLT, symGOTPLT2reg): New expands.
18360 (sym2PIC): New expand.
18361 (shcompact_return_tramp): Use GOTPLT to return trampoline.
18362 (shcompact_return_tramp_i): Use return register explicitly.
18363 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
18364 disable flag_reorder_blocks.
18365 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
18366 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
18367 clobbers, for clarity.
18368 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
18369 restoring of r0 in macl as MAYBE_DEAD.
18370 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
18371 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
18372 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
18373 alter_subreg all over.
18374 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
18375 reload, instead of emitting instructions that would require
18376 reloading.
18377 (casesi_load_media): Add missing modes.
18378 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
18379 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
18380 as used if the argument decoder is called.
18381 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18382 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
18383 Pmode, then extend it to DImode if necessary.
18384 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18385 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
18386 constants in FPU-enabled SHmedia, let them be loaded from memory.
18387 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18388 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
18389 Adjust whitespace in assembly output templates.
18390 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18391 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
18392 mode of if_then_else.
18393 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
18394 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
18395 sh.h.
18396 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
18397 Joern Rennecke <amylaar@redhat.com>
18398 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
18399 (SUBTARGET_CPP_PTR_SPEC): New.
18400 (SUBTARGET_CPP_SPEC): Remove.
18401 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18402 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18403 Fix typo in previous checkin.
18404 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
18405 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
18406 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
18407 Alexandre Oliva <aoliva@redhat.com>
18408 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
18409 what single FP register can hold for SHmedia target.
18410 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18411 Alexandre Oliva <aoliva@redhat.com>
18412 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18413 Do not split into SUBREG.
18414 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
18415 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
18416 and added new functions as specified in SH5 ABI r9.
18417 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
18418 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
18419 8-byte boundary.
18420 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
18421 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
18422 gen_consttable_4 and gen_consttable_8. Emit multiple labels
18423 and consttable_window_ends.
18424 2001-06-03 Graham Stott <grahams@redhat,com>
18425 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
18426 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
18427 * config/sh/sh.c (print_operand): Handle floating-point pair,
18428 vector and matrix registers.
18429 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
18430 vector modes into account.
18431 * config/sh/sh.md (movv2sf): Split move between registers into
18432 movdf.
18433 (movv4sf, movv16sf): Introduce insns that get split only after
18434 reload.
18435 * config/sh/shmedia.h: Fix Copyright dates.
18436 * config/sh/ushmedia.h: Likewise. Move loop counter
18437 declarations into conditionals that uses them.
18438 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
18439 loop boundary.
18440 * config/sh/sshmedia.h: Fix Copyright dates.
18441 (sh_media_PUTCFG): Fix constraints.
18442 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
18443 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
18444 ptrmemfunc_vbit_in_delta for SH5.
18445 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
18446 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
18447 * invoke.texi: Likewise.
18448 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
18449 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
18450 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
18451 GCC_pop_shmedia_regs_nofpu): New global symbols.
18452 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
18453 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
18454 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
18455 compact function with nonlocal labels.
18456 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
18457 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
18458 (initial_elimination_offset): Account for their stack space.
18459 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
18460 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
18461 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
18462 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
18463 least one of the operands to be a register.
18464 (movv2sf): Likewise. Renamed to movv2sf_i.
18465 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
18466 prepare_move_operands() before emitting SHmedia insns.
18467 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
18468 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
18469 Don't save nor initialize r12. Don't mis-align the stack.
18470 Pad the code with a nop.
18471 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
18472 stack.
18473 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
18474 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
18475 [__SHMEDIA__]: Implement.
18476 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
18477 * config/sh/sh.md: Set latency of `pt' closer to reality.
18478 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
18479 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
18480 Set move, load and store type attributes.
18481 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
18482 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
18483 profiling.
18484 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
18485 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
18486 * config/sh/sh.c (sh_media_register_for_return): New function.
18487 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
18488 branch-target register.
18489 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
18490 * config/sh/sh.md (return_media_i): Use any call-clobbered
18491 branch-target register.
18492 (return_media): If r18 wasn't copied in the prologue, copy it
18493 here.
18494 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
18495 Clear class FP0_REGS.
18496 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
18497 from elf.h.
18498 2001-03-08 DJ Delorie <dj@redhat.com>
18499 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
18500 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
18501 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
18502 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
18503 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
18504 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
18505 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
18506 return value correctly for call_cookie.
18507 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
18508 * config/sh/crt1.asm (start): Modified so as to call
18509 ___setup_argv_and_call_main.
18510 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
18511 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
18512 SHmedia mode.
18513 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
18514 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
18515 (STRIP_NAME_ENCODING): Use it.
18516 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
18517 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
18518 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
18519 prepare_scc_operands().
18520 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
18521 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
18522 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
18523 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
18524 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
18525 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
18526 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
18527 used in shcompact_incoming_args.
18528 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
18529 change.
18530 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
18531 mode.
18532 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
18533 Adjust accordingly.
18534 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
18535 Simplify. Adjust. Add sanity check.
18536 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
18537 FPU_SINGLE_BIT.
18538 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
18539 TARGET_SHCOMPACT.
18540 (udivsi3, divsi3): Use them.
18541 (force_mode_for_call): New insn.
18542 (call, call_value, sibcall_value): Emit it before SHcompact
18543 calls.
18544 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
18545 * config/sh/sh.md (call, call_value, sibcall): Make sure the
18546 call cookie is non-NULL before taking its value.
18547 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
18548 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
18549 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
18550 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
18551 block.
18552 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
18553 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
18554 temporary for stack adjusts. Use MACL and MACH to pass
18555 arguments to shcompact_incoming_args.
18556 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
18557 clobber r1.
18558 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
18559 (nested_trampoline): Load static chain address into r1.
18560 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
18561 2001-01-07 Alexandre Oliva <aoliva@redhat.com
18562 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
18563 fp_arith_reg_operand().
18564 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
18565 * config/sh/sh.md (casesi): Sign-extend the first two operands,
18566 and use signed compares for them.
18567 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
18568 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
18569 ones properly aligned.
18570 (find_barrier): Account for extra alignment needed for 8-byte wide
18571 constants.
18572 (machine_dependent_reorg): Require a label for the second 4-byte
18573 constant after an 8-byte one.
18574 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
18575 change.
18576 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
18577 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
18578 last_float when switching float modes.
18579 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
18580 auto-increment for general-purpose registers.
18581 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
18582 result.
18583 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
18584 for stack adjust.
18585 * config/sh/sh.c (sh_builtin_saveregs): Support using all
18586 registers for varargs.
18587 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
18588 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
18589 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
18590 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
18591 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
18592 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
18593 call_cookie accordingly.
18594 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
18595 (SHCOMPACT_BYREF): Likewise.
18596 (SHCOMPACT_FORCE_ON_STACK): New macro.
18597 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
18598 (sh_builtin_saveregs): Likewise.
18599 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18600 shcompact_incoming_args): Use new shift values. Support
18601 sequences of consecutive and non-consecutive pushes/pops.
18602 * config/sh/sh.md (return): Don't explicitly use PR_REG.
18603 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
18604 * config/sh/sh.h (TEXT_SECTION): Define.
18605 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
18606 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
18607 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
18608 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
18609 return values on FPU-enabled SHmedia.
18610 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
18611 FPU-enabled SHmedia.
18612 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
18613 value is returned in a non-FP reg and is not returned by
18614 reference.
18615 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
18616 jump_ind.
18617 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
18618 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
18619 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
18620 quad-aligned to be passed by callee-copy reference.
18621 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
18622 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
18623 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
18624 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
18625 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
18626 copying low-numbered FP regs to r7 and r8.
18627 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
18628 FP regs to general-purpose regs only if the copy was passed on the
18629 stack.
18630 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
18631 copying FP reg to r9.
18632 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
18633 copy FP regs to general-purpose regs only in outgoing calls.
18634 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1e4e95d6 18635 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
fa5322fa
AO
18636 HOST_WIDE_INT.
18637 * config/sh/sh.h (struct sh_args): Document all fields.
18638 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
18639 passed partially on the stack should not consider making
18640 sibcalls.
18641 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
18642 stack_regs only for incoming calls. When passing FP args,
18643 make sure there are FP regs available before modifying
18644 call_cookie.
18645 (SHCOMPACT_BYREF): Pass double args in general-purpose
18646 registers by reference.
18647 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
18648 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
18649 attempt to generate sibcalls if the caller got any arguments
18650 by reference.
18651 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
18652 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
18653 to 8-byte boundaries.
18654 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
18655 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
18656 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
18657 stored in the stack.
18658 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
18659 for the offsets to have the ISA bit set.
18660 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
18661 invocation. Use beq instead of bgt to mark end of sequence of
18662 loads.
18663 (shcompact_incoming_args): Fix store of r2. Use beq instead of
18664 bgt to mark end of sequence of stores.
18665 * config/sh/sh.c (arith_operand): Don't check whether
18666 CONST_OK_FOR_J for now.
18667 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
18668 instead of long for conversion.
18669 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
18670 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
18671 before passing it to fprintf.
18672 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
18673 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
18674 Call set_fpscr before reading/writing SR.
18675 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
18676 Call set_fpscr.
18677 * config/sh/lib1funcs.asm: Add `.align 2' directives before
18678 SHmedia code.
18679 (FMOVD_WORKS): Define on SH5 with FPU.
18680 (set_fpscr): Define on SH5. Remove separate _fpscr_values
18681 setting.
18682 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
18683 _fpscr_values.
18684 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
18685 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
18686 address.
18687 (ia_main_table): Ditto.
18688 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
18689 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
18690 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
18691 the definitions from sh.h.
18692 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
18693 TARGET_SH5.
18694 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
18695 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
18696 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18697 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
18698 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
18699 Increment LABEL_NUSES.
d9b3eb63 18700
fa5322fa
AO
18701 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
18702 TARGET_SH5.
18703 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
18704 defined.
18705 * config/sh/elf.h (SIZE_TYPE): Likewise.
18706 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18707 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18708 shcompact_incoming_args): Load switch table addresses using
18709 datalabel.
18710 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18711 (NO_BUILTIN_SIZE_TYPE): Define.
18712 (SIZE_TYPE): Don't define.
18713 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18714 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
18715 definition of __SH5__=32 for -m5-compact-nofpu.
18716 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
18717 ADDR_DIFF_VEC.
18718 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
18719 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
18720 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
18721 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
18722 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
18723 (INSN_LENGTH_ALIGNMENT): Likewise.
18724 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
18725 * config/sh/sh.md (call, call_value, sibcall): Simplify
18726 copying of non-branch-target register.
18727 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1e4e95d6 18728 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
fa5322fa
AO
18729 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
18730 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
18731 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
18732 floating-point values as structs.
18733 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
18734 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
18735 general-purpose register.
18736 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
18737 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
18738 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
18739 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
18740 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
18741 (ENCODE_SECTION_INFO): Enclose variables and constants in
18742 DATALABEL unspecs.
18743 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
18744 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
18745 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
18746 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
18747 only for LABEL_REFs. For SYMBOL_REFs, prepend
18748 SH_DATALABEL_ENCODING to the symbol name.
18749 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
18750 convert_mode().
18751 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
18752 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
18753 UNSPEC_DATALABEL.
18754 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
18755 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
18756 (DATALABEL_REF_P): Don't require CONST.
18757 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
18758 REL label.
18759 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
18760 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
18761 right.
18762 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
18763 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
18764 Use shallow_copy_rtx and PUT_MODE to change the mode of
18765 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
18766 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
18767 on SHmedia using GENERAL_REGs.
18768 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
18769 bltu_media_i): Fix reversion of conditions.
18770 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
18771 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
18772 * config/sh/sh.c (output_far_jump): Save r13 in macl.
18773 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
18774 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
18775 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
18776 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
18777 (GCC_nested_trampoline): Likewise.
18778 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
18779 * config/sh/sh.c (gen_datalabel_ref): Define.
18780 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
18781 (INITIALIZE_TRAMPOLINE): Likewise.
18782 (TRAMPOLINE_ADJUST_ADDRESS): Define.
18783 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
18784 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
18785 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
18786 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
18787 (ic_invalidate): Adjust for SH5.
18788 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
18789 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
18790 _nested_trampoline.
18791 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
18792 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
18793 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
18794 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
18795 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
18796 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
18797 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
18798 * config/sh/sh.c (target_reg_operand): Match only target-branch
18799 registers and pseudos that aren't virtual registers.
18800 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
18801 Copy operands that don't match target_reg_operand to pseudos.
18802 (call_media, call_value_media, sibcall_media): Use
18803 target_reg_operand instead of target_operand.
18804 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
d9b3eb63 18805 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
fa5322fa
AO
18806 * config/sh/sh.c (target_reg_operand): Match hardware registers
18807 other than branch-target registers.
18808 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
18809 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
18810 (fpscr_values) [SH5 == 32]: Define.
18811 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
18812 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
18813 Handle function addresses coming in SUBREGs.
18814 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
18815 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18816 shcompact_return_trampoline): Use datalabel where appropriate.
18817 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
18818 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
18819 general-purpose register to copy one branch-target register to
18820 another.
18821 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
18822 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
18823 SYMBOL_REFs with VOIDmode.
18824 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
18825 bltu_media_i): New insns.
18826 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
18827 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
18828 (INIT_CUMULATIVE_ARGS): Likewise.
18829 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
18830 * machmode.def (V16SFmode): New mode.
18831 * c-common.c (type_for_mode): Support V2SF and V16SF.
18832 * tree.c (build_common_tree_nodes_2): Likewise.
18833 * tree.h (tree_index): Likewise.
18834 * calls.c (emit_call_1): Take args_so_far. Adjust all
18835 callers. Introduce CALL_POPS_ARGS.
18836 * tm.texi (CALL_POPS_ARGS): Document.
18837 * config/sh/crt1.asm: Implement in SHmedia mode.
18838 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
18839 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
18840 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
18841 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
18842 Implement divsi and udivsi in SHmedia mode. Introduce
18843 SHcompact trampolines.
18844 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
18845 only in SHmedia64.
18846 (regno_reg_class): Rewrite.
18847 (fp_reg_names): Remove.
18848 (sh_register_names, sh_additional_register_names): New.
18849 (print_operand): Added `u'. Support SUBREGs in addresses.
18850 Add parentheses around shifted CONSTs.
18851 (output_file_start): Output .mode and .abi directives.
18852 (shiftcosts, addsubcosts, multcosts): Adjust.
18853 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
18854 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
18855 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
18856 bytes, not registers. Take into account the need for the
18857 SHcompact incoming args trampoline. Adjust all callers.
18858 (sh_expand_prologue): Take stack_regs into account. Call
18859 incoming args trampoline. Keep stack aligned as per SH5 ABI.
18860 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
18861 stack aligned as per SH5 ABI.
18862 (sh_builtin_saveregs): Support SH5 ABI.
18863 (sh_build_va_list, sh_va_start): Likewise.
18864 (initial_elimination_offset): Take alignment into account.
18865 Compute location of PR according to the SH5 stack frame.
18866 (arith_reg_operand): Reject branch-target registers.
18867 (shmedia_6bit_operand): New.
18868 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
18869 (target_reg_operand): Match DImode only. Accept SUBREGs.
18870 (target_operand): New.
18871 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
18872 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
18873 SIBCALL_REGS for SHmedia.
18874 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
18875 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
18876 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
18877 (TARGET_SWITCHES): New SH5 flags.
18878 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
18879 VALID_REGISTER_P to disable unsupported registers.
18880 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
18881 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
18882 (FUNCTION_ARG_PADDING): Define.
18883 (FASTEST_ALIGNMENT): Adjust.
18884 (SH_REGISTER_NAMES_INITIALIZER): New.
18885 (sh_register_names): Declare.
18886 (DEBUG_REGISTER_NAMES): Define.
18887 (REGISTER_NAMES): Define based on sh_register_names.
18888 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
18889 (sh_additional_register_names): Declare.
18890 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
18891 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
18892 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
18893 (REGISTER_NATURAL_MODE): Define.
18894 (FIRST_PSEUDO_REGISTER): Adjust.
18895 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
18896 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
18897 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
18898 (VECTOR_MODE_SUPPORTED_P): Define.
18899 (REG_CLASS_CONTENTS): Adjust.
18900 (SMALL_REGISTER_CLASSES): Adjust.
18901 (REG_ALLOC_ORDER): Adjust.
18902 (INDEX_REG_CLASS): Adjust.
18903 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
18904 (CONST_OK_FOR_LETTER_P): Adjust.
18905 (PREFERRED_RELOAD_CLASS): Adjust.
18906 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
18907 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
18908 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
18909 (FIRST_FP_PARM_REG): Adjust.
18910 (CALL_POPS_ARGS): Define.
18911 (FUNCTION_ARG_REGNO_P): Adjust.
18912 (struct sh_args): New fields.
18913 (GET_SH_ARG_CLASS): Adjust.
18914 (INIT_CUMULATIVE_ARGS): Adjust.
18915 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
18916 (FUNCTION_ARG_ADVANCE): Adjust.
18917 (FUNCTION_ARG): Adjust.
18918 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
18919 (FUNCTION_ARG_CALLEE_COPIES): Define.
18920 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
18921 (STRICT_ARGUMENT_NAMING): Define.
18922 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
18923 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
18924 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
18925 (SETUP_INCOMING_VARARGS): Adjust.
18926 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
18927 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
18928 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
18929 (SUBREG_OK_FOR_INDEX_P): Adjust.
18930 (EXTRA_CONSTRAINT_S): Update.
18931 (EXTRA_CONSTRAINT_T): New.
18932 (EXTRA_CONSTRAINT): Adjust.
18933 (GO_IF_LEGITIMATE_INDEX): Adjust.
18934 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
18935 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
18936 (MOVE_MAX): Adjust.
18937 (MAX_MOVE_MAX): Define.
18938 (Pmode): Adjust.
18939 (CONST_COSTS): Adjust.
18940 (REGISTER_MOVE_COST): Adjust.
18941 (BRANCH_COST): Adjust.
18942 (TEXT_SECTION_ASM_OP): Adjust.
18943 (DBX_REGISTER_NUMBER): Adjust.
18944 (ASM_OUTPUT_DOUBLE_INT): New.
18945 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
18946 (PREDICATE_CODES): Adjust.
18947 (PROMOTE_MODE): Adjust.
18948 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
18949 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
18950 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
18951 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
18952 (DR0_REG, DR2_REG, DR4_REG): Renumber.
18953 (TR0_REG, TR1_REG, TR2_REG): New.
18954 (XD0_REG): Renumber.
18955 (UNSPEC_COMPACT_ARGS): New.
18956 (type): Added pt and ptabs.
18957 (length): Default to 4 on SHmedia. Default pt length to 12
1e4e95d6 18958 and 20 on SHmedia32 and SHmedia64, respectively.
fa5322fa
AO
18959 (pt): New function unit.
18960 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
18961 Add whitespace between operands of SHmedia instructions.
18962 (movdicc): Fix.
18963 (adddi3_media, addsi3_media): Adjust constraints.
18964 (subsi3) [SHmedia]: Force operand 1 into a register.
18965 (udivsi3_i1_media, udivsi3_i4_media): New.
18966 (udivsi3): Support SHmedia.
18967 (divsi3_i1_media, divsi3_i4_media): New.
18968 (divsi3): Support SHmedia.
18969 (anddi3, iordi3, xordi3): Adjust constraints.
18970 (zero_extendhidi2, zero_extendqidi2): New.
18971 (extendsidi2, extendhidi2, extendqidi2): New.
18972 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
18973 (pop_e, pop_fpul, pop_4): Likewise.
18974 (movsi_media): Support FP and BT registers.
18975 (movsi_media_nofpu): New. Adjust splits to DImode.
18976 (lduw, ldub): Renamed to zero_extend* above.
18977 (movqi_media): Fix typo.
18978 (movdi_media): Support FP and BT registers.
18979 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
18980 (movdi_const_32bit): New.
18981 (shori_media): Require immediate operand. Use `u' for output.
18982 (movdf_media, movsf_media): Simplified.
18983 (movdf_media_nofpu, movsf_media_nofpu): New.
18984 (movdf, movsf): Adjust
18985 (movv2sf, movv2sf, movv16sf): New.
18986 (beq_media, beq_media_i): Adjust constraints. Don't use
18987 scratch BT register.
18988 (bne_media, bne_media_i): Likewise.
18989 (bgt_media, bgt_media_i): Likewise.
18990 (bge_media, bge_media_i): Likewise.
18991 (bgtu_media, bgtu_media_i): Likewise.
18992 (bgeu_media, bgeu_media_i): Likewise.
18993 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
18994 bunordered): Emit jump insn. Force operands to registers when
18995 needed.
18996 (jump_media, jump): Simplify.
18997 (call_compact, call_compact_rettramp): New.
18998 (call_value_compact, call_value_compact_rettramp): New.
18999 (call_media, call_value_media): Simplify.
19000 (sibcall_compact, sibcall_media): New.
19001 (call, call_value): Adjust for SHmedia and SHcompact.
19002 (sibcall, sibcall_value, untyped_call): Likewise.
19003 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
19004 (indirect_jump): Adjust for SHmedia.
19005 (casesi_jump_media): New.
19006 (nop): Re-enable for SHmedia.
19007 (call_site): Restrict to SH1.
19008 (casesi): Adjust for SHmedia.
19009 (casesi_shift_media, casesi_load_media): New.
19010 (return): Explicitly use PR register. Call return trampoline
19011 on SHcompact.
19012 (return_i): Explicitly use PR register.
19013 (shcompact_return_tramp, shcompact_return_tramp_i): New.
19014 (return_media): Adjust.
19015 (shcompact_incoming_args): New.
19016 (epilogue): Adjust.
19017 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19018 (movstrsi): Disable on SH5.
19019 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
19020 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
19021 (subsf3, subsf3_media): Likewise.
19022 (mulsf3, mulsf3_media, mac_media): Likewise.
19023 (divsf3, divsf3_media): Likewise.
19024 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
19025 (floatsisf2, fux_truncsfsi2): Likewise.
19026 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
19027 constraints.
19028 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
19029 (cmpunsf_media, cmpsf): Likewise.
19030 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
19031 (abssf2, abssf2_media): Likewise.
19032 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
19033 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
19034 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
19035 (floatsidf2, fix_truncdfsi2): Likewise.
19036 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
19037 constraints.
19038 (cmpeqdf_media, cmpgtdf_media): Likewise.
19039 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
19040 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
19041 (absdf2, absdf2_media): Likewise.
19042 (extendsfdf2, extendsfdf2_media): Likewise.
19043 (truncsfdf2, truncsfdf2_media): Likewise.
19044 * config/sh/sh64.h: New file.
19045 * config/sh/t-sh64: New file.
19046 * config/sh/shmedia.h: New file.
19047 * config/sh/ushmedia.h: New file.
19048 * config/sh/sshmedia.h: New file.
19049 * configure.in: Added sh64-*-elf.
19050 * configure: Rebuilt.
19051 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
19052 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
19053 (reg_class_from_letter): Use `b' for TARGET_REGS.
19054 (print_operand): Support `%M', `%m', `AND' and
19055 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
19056 (andcosts): Adjust for SHmedia.
19057 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
19058 Likewise.
19059 (target_reg_operand): New function.
19060 * config/sh/sh-protos.h (target_reg_operand): Declare.
19061 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
19062 FP registers on SH5.
19063 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
19064 on SH4.
19065 (TARGET_REGISTER_P): New macro.
19066 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
19067 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
19068 (EXTRA_CONSTRAINT_S): New macro.
19069 (EXTRA_CONSTRAINT): Adjust.
19070 (FLOAT_TYPE_SIZE): Define to 32.
19071 (Pmode): DImode on SHmedia.
19072 (CONST_COSTS): Adjust for SHmedia literals.
19073 (PREDICATE_CODES): Added target_reg_operand.
19074 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
19075 * config/sh/sh.md: Remove all attrs from SHmedia insns.
19076 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
19077 (cmpdi): Accept SHmedia.
19078 (movdicc_false, movdicc_true): New insns.
19079 (movdicc): New expand.
19080 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
19081 no_new_pseudos.
19082 (addsi3_media): Match `S' constraint.
19083 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
19084 (negdi2): Expand for SHmedia.
19085 (one_cmpldi2): New expand.
19086 (zero_extendsidi2): Change from expand to insn.
19087 (extendsidi2): Add constraints.
19088 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
19089 LD/ST address. Fix SI immediate loading split.
19090 (movhi_media, movqi_media, lduw, ldub): New insns.
19091 (movhi, movqi): Accept SHmedia.
19092 (shori_media, movdi_media): Relax input constraints. Split
19093 symbolic constants.
19094 (movdf_media, movsf_media): New insn. New split to movdi.
19095 (movdf, movsf): Match on SHmedia.
19096 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
19097 bgeu_media): New insns and splits. New insns with `_i' suffix.
19098 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
19099 (bunordered): New expand.
19100 (jump_compact): Renamed from `jump'.
19101 (jump_media): New insn.
19102 (jump): New expand.
19103 (call_media, call_value_media): New insns.
19104 (call, call_value): Adjust.
19105 (indirect_jump_compact): Renamed from `indirect_jump'.
19106 (indirect_jump_media): New insn.
19107 (indirect_jump): New expand.
19108 (untyped_call, return): Accept SHmedia.
19109 (return_media): New insn.
19110 (prologue, epilogue, blockage): Accept SHmedia.
19111 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19112 (sunordered): New expand.
19113 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
19114 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
19115 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
19116 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
19117 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
19118 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
19119 abssf2_media): New insns.
19120 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
19121 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
19122 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
19123 floatdidf2, floatsidf2_media, fix_truncdfdi2,
19124 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
19125 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
19126 absdf2_media): New insns.
19127 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
19128 (extendsfdf2_media, truncdfsf2_media): New insns.
19129 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
19130 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
19131 * config/sh/sh.h (CONST_OK_FOR_J): Document.
19132 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
19133 * config/sh/sh.md (adddi3): New expand.
19134 (adddi3_media, adddi3z_media): New insns.
19135 (adddi3_compact): Renamed from adddi3.
19136 (addsi3_media): Use add.l r63 to add constant zero.
19137 (subdi3): New expand.
19138 (subdi3_media): New insn.
19139 (subdi3_compact): Renamed from subdi3.
19140 (mulsidi3): New expand.
19141 (mulsidi3_media): New insn.
19142 (mulsidi3_compact): Renamed from mulsidi3.
19143 (umulsidi3): New expand.
19144 (umulsidi3_media): New insn.
19145 (umulsidi3_compact): Renamed from umulsidi3.
19146 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
19147 (ashlsi3, ashrsi3, lshrsi3): Use them.
19148 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
19149 (ashldi3, ashrdi3, lshrdi3): Use them.
19150 (zero_extendsidi2): New expand.
19151 (extendsidi2): New insn.
19152 (movsi_media): New insn. Split to movdi to load constants.
19153 (movsi): Enable for shmedia.
19154 (movdi_media): New insn. Use shori_media to load wide constants.
19155 (short_media): New insn.
19156 (movdi): Enable for shmedia.
19157 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
19158 * config/sh/sh.h (CPP_SPEC): Added `m5'.
19159 (SUBTARGET_CPP_SPEC): Added `!m5'.
19160 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
19161 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
19162 to all other SH variants.
19163 (TARGET_DEFAULT): Set to SH1_BIT.
19164 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
19165 (BITS_PER_WORD): Raise to 64 on shmedia.
19166 (MAX_BITS_PER_WORD): Change to 64.
19167 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
19168 (INT_TYPE_SIZE): Keep as 32.
19169 (UNITS_PER_WORD): Raise to 8 on shmedia.
19170 (MIN_UNITS_PER_WORD): Keep as 4.
19171 (POINTER_SIZE): Raise to 64 on shmedia.
19172 (CONST_OK_FOR_J): New macro.
19173 (CONST_OK_FOR_LETTER_P): Use it.
19174 (processor_type): Add PROCESSOR_SH5.
19175 * config/sh/sh.md: Conditionalize all expands, insns and
19176 splits to TARGET_SH1.
19177 (cpu): Added sh5.
19178 (addsi3_compact): Renamed from...
19179 (addsi3): Now an expand.
19180 (addsi3_media, subsi3_media): New insns.
19181 (subsi3): Don't negate constants with SHmedia.
19182
e4ec2cac
AO
19183 * hooks.c: New file.
19184 * hooks.h: New file.
19185 * Makefile.in (HOOKS_H): New.
19186 (TARGET_DEF_H): Added $(HOOKS_H).
19187 (OBJS): Added hooks.o.
19188 (cfgcleanup.o, bb-reorder.o): Added target.h.
19189 (hooks.o): Added dependencies.
19190 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
19191 (TARGET_INITIALIZER): this.
19192 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
19193 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
19194 * bb-reorder.c: Include target.h.
19195 (reorder_basic_blocks): Skip if cannot modify jumps.
19196 * cfgcleanup.c: Include target.h.
19197 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
19198
246a46e0
CD
191992002-02-08 Chris Demetriou <cgd@broadcom.com>
19200
831c4e87
KC
19201 * config/mips/mips.md (casesi_internal, casesi_internal_di):
19202 Protect jump delay slot instructions with .set noreorder and
19203 .set nomacro.
246a46e0
CD
19204
192052002-02-08 Chris Demetriou <cgd@broadcom.com>
6a5ea3f4
CD
19206
19207 * config/mips/mips.md (casesi_internal_di): Calculate
19208 the index into the target offset table correctly.
19209
fdf473ae
RH
192102002-02-08 Richard Henderson <rth@redhat.com>
19211
19212 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
19213 * final.c (output_addr_const): Accept and discard SUBREG.
19214 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
19215 mark them unknown instead.
19216 (simplify_subtraction): Handle RTX_UNKNOWN.
19217 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
19218
c50503ac
DE
192192002-02-08 David Edelsohn <edelsohn@gnu.org>
19220
19221 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
19222
3660d217
RH
192232002-02-08 Richard Henderson <rth@redhat.com>
19224
19225 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
19226
56547299
AJ
192272002-02-08 Andreas Jaeger <aj@suse.de>
19228
19229 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
19230 * config/i386/t-linux64: New file.
19231
1cf537c5
JJ
192322002-02-08 Jakub Jelinek <jakub@redhat.com>
19233
19234 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
19235 * c-parse.in (compstmt): Clear last_expr_type.
19236
5c7f5a5f
RH
192372002-02-07 Richard Henderson <rth@redhat.com>
19238
19239 * loop.c (strength_reduce): Sink final_value when not
19240 eliminating a biv.
19241
b1138bf3
DB
192422002-02-07 David O'Brien <obrien@FreeBSD.org>
19243
19244 * config/sparc/freebsd.h: Fix mismatched spec {.
19245
b6878a45
RH
192462002-02-07 Richard Henderson <rth@redhat.com>
19247
19248 * cfgrtl.c: Include recog.h and insn-config.h.
19249 (keep_with_call_p): Fix general_operand invocation.
19250 * Makefile.in (cfgrtl.o): Update dependencies.
19251
ae19f5ef
KH
192522002-02-07 Kazu Hirata <kazu@hxi.com>
19253
19254 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
19255 comment. Accept HImode only if TARGET_H8300.
19256
b137f9fc
EC
192572002-02-07 Eric Christopher <echristo@redhat.com>
19258
19259 * config/mips/crtn.asm: Cleanup #ifdefs.
19260
192612002-02-07 Eric Christopher <echristo@redhat.com>
19262
19263 * config/mips/crti.asm: Add changes for mips16. mips16 uses
19264 register 7 as RA instead of $31.
19265 * config/mips/crtn.asm: Ditto.
19266 * config/mips/mips.c (mips_move_2words): Add case for
19267 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
19268 (compute_frame_size): Fix typo.
19269 (save_restore_insns): Ditto. Make documentation about using
19270 register $7 as return register more precise.
19271 (mips_expand_epilogue): Fix comment. Add code to work around not
19272 being able to add to the stack pointer directly.
19273 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
19274 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
19275 epilogue.
19276
768070a0
TR
192772002-02-07 Tom Rix <trix@redhat.com>
19278
b137f9fc 19279 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
768070a0
TR
19280 immediates in ldu and stdu DS opcode field.
19281 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
19282 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
19283 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
19284
225909c3
JS
192852002-02-07 Jeff Sturm <jsturm@one-point.com>
19286
19287 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
19288 offset for stack bias.
19289
15fae023
L
192902002-02-07 H.J. Lu <hjl@gnu.org>
19291
19292 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
19293
fde5badd
UW
192942002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
19295
19296 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
19297
162f023b
JH
19298Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
19299
19300 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
19301 * i386.c (x86_order_regs_for_local_alloc): New global function.
19302 * i386.h (REG_ALLOC_ORDER): CLeanup.
19303 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
19304
9b462c42
RH
193052002-02-07 Richard Henderson <rth@redhat.com>
19306
85aa876c 19307 PR optimization/2463
9b462c42
RH
19308 * alias.c (find_base_value): Recall base values for fixed hard regs.
19309 * loop.c (loop_regs_update): Don't use single_set on non-insns.
19310
06e455a9
AO
193112002-02-07 Alexandre Oliva <aoliva@redhat.com>
19312
19313 * config/mips/mips.md (define_delay) [mips16]: Adjust required
19314 length.
19315
edd1967d
RH
193162002-02-06 Richard Henderson <rth@redhat.com>
19317
19318 PR c/5609
19319 * stmt.c (resolve_operand_name_1): Take more care with mixed
19320 named and unnamed operands.
19321
a2cd028f
JJ
193222002-02-06 Janis Johnson <janis187@us.ibm.com>
19323 Jan Hubicka <jh@suse.cz>
19324
19325 * loop.c (remove_constant_addition): Avoid clobbering a shared
19326 CONST expression.
19327
e8487c04
UW
193282002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19329
19330 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
19331 * config/s390/t-linux64: New file.
19332 * config/s390/libgcc-glibc.ver: New file.
19333
58d10f89
UW
193342002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19335
19336 * config/s390/linux64.h: Delete file.
19337 * config/s390/s390x.h: New file.
19338 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
19339 as target header file.
19340 * config/s390/linux.h (TARGET_VERSION): Define depending on
19341 DEFAULT_TARGET_64BIT.
19342 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
19343 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
19344 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
19345 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
19346 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
19347 (EXTRA_SPEC): New define.
19348 * config/s390/s390.h (TARGET_VERSION): Define depending on
19349 DEFAULT_TARGET_64BIT.
19350 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
19351
5ce89b2e
JM
193522002-02-06 Jason Merrill <jason@redhat.com>
19353
19354 * c-decl.c (finish_function): Warn about a non-void function with
19355 no return statement and no abnormal exit.
19356 (current_function_returns_abnormally): New variable.
19357 (start_function): Clear it.
19358 (struct c_language_function): Add returns_abnormally.
19359 (push_c_function_context): Save it.
19360 (pop_c_function_context): Restore it.
19361 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
19362 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
19363 an explicit return type.
19364 * c-tree.h: Declare current_function_returns_abnormally.
19365 (C_FUNCTION_IMPLICIT_INT): New macro.
19366 * c-typeck.c (build_function_call): Set it.
19367 (c_expand_return): Set current_function_returns_value even if the
19368 value is erroneous.
19369
caaf2272
JJ
193702002-02-06 Jakub Jelinek <jakub@redhat.com>
19371
19372 PR c/5420:
19373 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
19374 unsafe for reevaluation.
19375
d5129288
JJ
193762002-02-06 Jakub Jelinek <jakub@redhat.com>
19377
19378 PR c/5482:
19379 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
19380 EXPR_STMT, but COMPOUND_STMT, recurse into it.
19381
7fb75099
RH
193822002-02-06 Richard Henderson <rth@redhat.com>
19383
19384 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
19385 be a general_operand. Dest for function value must be a pseudo.
19386
d3a8b6a6
NC
193872002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
19388
19389 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
19390 as SYMBOL_REFs from the constant pool.
19391
3c1299c5
AO
193922002-02-06 Alexandre Oliva <aoliva@redhat.com>
19393
19394 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
19395 passed by invisible reference.
19396
c2c9f6c9
RH
193972002-02-05 Richard Henderson <rth@redhat.com>
19398
19399 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
19400
a824924d
HPN
194012002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
19402
19403 Implement using "base addresses" in insn operands as default.
19404 * config/mmix/mmix.c (mmix_conditional_register_usage): if
19405 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
19406 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
19407 used to read the rtx value.
19408 (mmix_target_asm_function_epilogue): Fix spacing.
19409 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
19410 (mmix_legitimate_address): Ditto.
19411 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
19412 should be loaded with a GETA insn. Don't allocate needless extra
19413 char for nul termination and fix misleading comment.
19414 (mmix_print_operand_address): Handle constants if
19415 TARGET_BASE_ADDRESSES.
19416 (mmix_output_register_setting): Use base addressing if
19417 TARGET_BASE_ADDRESSES and the number of insns is 3.
19418 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
19419 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
19420 to use R as constraint, add LDA to match s.
19421 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
19422 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
19423 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
19424 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
19425 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
19426 order with other fixed registers.
19427 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
19428 other parameter/call-clobbered registers.
19429 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
19430 -mbase-addresses, -mno-base-addresses.
19431 (MMIX Options): Ditto.
19432
73c342b9
JDA
194332002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
19434
19435 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
19436
ef238c58
AH
194372002-02-06 Aldy Hernandez <aldyh@redhat.com>
19438
831c4e87 19439 * config/rs6000/altivec.h: Change elem to _S_elem.
ef238c58 19440
ad08e60e
JT
194412002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
19442
19443 * config/netbsd.h (WCHAR_TYPE): Define.
19444 (WCHAR_TYPE_SIZE): Ditto.
19445 (WINT_TYPE): Ditto.
19446 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
19447 (WCHAR_UNSIGNED): Ditto.
19448 (WCHAR_TYPE_SIZE): Ditto.
19449 (WINT_TYPE): Ditto.
19450 * config/arm/netbsd.h: Likewise.
19451 * config/i386/netbsd-elf.h: Likewise.
19452 * config/i386/netbsd.h: Likewise.
19453 * config/m68k/netbsd-elf.h: Likewise.
19454 * config/m68k/netbsd.h: Likewise.
19455 * config/ns32k/netbsd.h: Likewise.
19456 * config/sparc/netbsd.h: Likewise.
19457 * config/vax/netbsd.: Likewise.
19458
f913c102
AO
194592002-02-05 Alexandre Oliva <aoliva@redhat.com>
19460
19461 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
19462 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
19463 (TARGET_INITIALIZER): this.
19464 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
19465 (BITFIELD_NBYTES_LIMITED): Markup fix.
19466 * tree.h (default_ms_bitfield_layout_p): Declare.
19467 (record_layout_info): Added prev_field.
19468 * tree.c (default_ms_bitfield_layout_p): New fn.
19469 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
19470 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
19471 * stor-layout.c: Include target.h.
19472 (start_record_layout): Initialize prev_field.
19473 (place_field): Handle MS bit-field layout, and disregard
19474 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
19475 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
19476 * Makefile.in (stor-layout.o): Adjust dependencies.
19477
c13db5d1
JM
194782002-02-05 Jason Merrill <jason@redhat.com>
19479
c13db5d1
JM
19480 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
19481
4505024e
AJ
194822002-02-05 Andreas Jaeger <aj@suse.de>
19483
19484 * crtstuff.c: Fix comments.
19485
794ad79d
RH
194862002-02-05 Richard Henderson <rth@redhat.com>
19487
2e279a9b
RH
19488 PR fortran/3393
19489 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
19490 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
19491
794ad79d
RH
19492 PR fortran/3392
19493 * config/mips/mips.c (function_arg): Handle TImode.
19494 (function_arg_advance): Likewise.
19495
8f909017
AH
194962002-02-05 Aldy Hernandez <aldyh@redhat.com>
19497
c13db5d1
JM
19498 * config/rs6000/altivec.h (vec_step_help): Rename to
19499 __vec_step_help.
8f909017 19500
66daa9e3
AH
195012002-02-05 Aldy Hernandez <aldyh@redhat.com>
19502
c13db5d1 19503 * config/rs6000/altivec.h: Fix typos.
66daa9e3 19504
2696e97b
JT
195052002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
19506
19507 * config/arm/netbsd.h: Correct a comment.
19508
3deb2758
AH
195092002-02-05 Aldy Hernandez <aldyh@redhat.com>
19510
c13db5d1
JM
19511 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
19512 building void typed builtins.
3deb2758 19513
c13db5d1
JM
19514 * config/rs6000/altivec.h (vec_ld*): Fix typos.
19515 (vec_step): Implement for C++.
3deb2758 19516
c13db5d1 19517Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2c79137a
RK
19518
19519 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
19520
ebbb0a63
RH
195212002-02-04 Richard Henderson <rth@redhat.com>
19522
19523 * combine.c (nonzero_bits): Re-introduce special case for
19524 sp/fp/ap wrt REGNO_POINTER_ALIGN.
19525
ae4b4a02
AH
195262002-02-05 Aldy Hernandez <aldyh@redhat.com>
19527
c13db5d1
JM
19528 * doc/extend.texi: Warn about unsupported usage of altivec
19529 builtins.
ae4b4a02 19530
c13db5d1
JM
19531 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
19532 (altivec_predicate_*): New.
ae4b4a02 19533
c13db5d1
JM
19534 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
19535 Add C++ version of vec_*() functions.
ae4b4a02 19536
c13db5d1
JM
19537 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
19538 (bdesc_2arg): Remove altivec predicates.
19539 (altivec_expand_builtin): Handle predicates.
19540 (altivec_init_builtins): Handle predicates.
19541 (altivec_expand_predicate_builtin): New.
ae4b4a02 19542
f6bcf44c
JDA
195432002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19544
19545 * pa.c (DO_FRAME_NOTES): Move forward.
19546 (store_reg): Revise handling of frame notes.
19547 (load_reg): Likewise.
19548 (set_reg_plus_d): Likewise.
19549 (hppa_expand_prologue): Likewise.
19550 (hppa_expand_epilogue): Likewise.
b137f9fc 19551
703b0080
JDA
195522002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19553
19554 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
19555
6f9fdf4d
JJ
195562002-02-04 Jakub Jelinek <jakub@redhat.com>
19557
19558 PR c/4475, c++/3780:
19559 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
19560 * c-common.h (SWITCH_TYPE): Define.
19561 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
19562 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
19563 Rename spareness variable to sparseness.
19564 (expand_end_case_type): Renamed from expand_end_case, use orig_type
19565 if non-NULL instead of TREE_TYPE (orig_index).
19566 * tree.h (expand_end_case_type): Renamed from expand_end_case.
19567 (expand_end_case): Define using expand_end_case_type.
19568 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
19569 to expand_end_case_type.
19570 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
19571
79109502
JDA
195722002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19573
19574 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
19575 (BIGGEST_ALIGNMENT): Change to 128.
19576
e62a5987
JDA
195772002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19578
19579 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
19580
219f24a4
JDA
195812002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19582
19583 * pa.md (call_internal_reg_64bit): Remove unused variable.
19584
3cb66fd7
NC
195852002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
19586
19587 * config/arm/arm.h (machine_function): Add uses_anonymous_args
19588 field.
831c4e87 19589 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3cb66fd7 19590 * config/arm/arm.c (current_function_anonymous_args): Delete,
831c4e87
KC
19591 replace uses with cfun->machine->uses_anonymous_args.
19592 (arm_reorg): Do not reset uses_anonymous_args.
3cb66fd7
NC
19593
19594 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
19595 any geenral register.
b137f9fc 19596
5d5603e2 195972001-02-04 Bernd Schmidt <bernds@redhat.com>s
24c545ff
BS
19598
19599 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
19600 the entry block.
19601
563c12b0
RH
196022002-02-04 Richard Henderson <rth@redhat.com>
19603
19604 * combine.c (force_to_mode): Remove STACK_BIAS code.
19605 (nonzero_bits): Likewise. Replace sp/fp special case with
19606 REGNO_POINTER_ALIGN.
19607
19608 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
19609 (HARD_FRAME_POINTER_REGNUM): New.
19610 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
19611 (FIXED_REGS, CALL_USED_REGS): Update.
19612 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
19613 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
19614 (HARD_REGNO_NREGS): Update for SFP.
19615 (STACK_POINTER_OFFSET): Include bias here ...
19616 (FIRST_PARM_OFFSET): ... not here.
19617 (STACK_BIAS): Remove.
19618 (INIT_EXPANDERS): New.
19619 (STARTING_FRAME_OFFSET): Do not include bias.
19620 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
19621 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
19622 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
19623 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
19624 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
19625 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
19626 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
19627 (MUST_SAVE_REGISTER): Likewise.
19628 (sparc_flat_function_prologue): Likewise.
19629 (sparc_flat_function_epilogue): Likewise.
19630 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
19631 (sparc_init_modes): SFP is GENERAL_REGS.
19632 (sparc_builtin_saveregs): SFP does not have bias applied.
19633
14691f8d
RH
196342002-02-04 Richard Henderson <rth@redhat.com>
19635
19636 * config/alpha/alpha.c (current_function_is_thunk): Don't check
19637 current_function_is_thunk.
19638 (alpha_sa_mask): Distinguish between current_function_is_thunk
19639 called from ASM_OUTPUT_MI_THUNK and not.
19640 (alpha_does_function_need_gp): Thunks always need gp.
19641 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
19642 (alpha_output_mi_thunk_osf): New.
19643 * config/alpha/alpha-protos.h: Update.
19644 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
19645
af702de8
RS
196462002-02-04 Richard Sandiford <rsandifo@redhat.com>
19647
19648 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
19649 function types, not when they're taken away.
19650
5b1cacd8
JL
19651Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
19652
19653 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
19654 CODE_LABEL and jump table when replacing a table jump with a
19655 simple jump.
19656
f3e9edff
UW
196572002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
19658
19659 * config/s390/s390-protos.h (legitimize_la_operand,
19660 s390_secondary_input_reload_class, s390_plus_operand,
19661 s390_expand_plus_operand): Add prototypes.
19662
19663 config/s390/s390.c (s390_secondary_input_reload_class,
19664 s390_plus_operand, s390_expand_plus_operand): New functions.
19665
19666 (struct s390_address): New member 'pointer'.
19667 (s390_decompose_address): Compute it.
19668 (legitimate_la_operand_p): Use it.
19669 (legitimize_la_operand): New function.
19670 (movti, movdi, movdf splitters): Call it.
19671
19672 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
19673 (PREDICATE_CODES): Add s390_plus_operand.
19674
19675 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
19676 (la_ccclobber): Allow GENERAL_REGS as output operand.
19677
19678 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
19679 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
19680 (*la_64, *la_31, reload_indi, reload_insi): ... these.
19681
3c9a08ec
UW
196822002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
19683
19684 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
19685 register names for regular asm () construct.
19686
ac300a45
JJ
196872002-02-04 Jakub Jelinek <jakub@redhat.com>
19688
19689 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
19690 registers.
19691
fa852403
JJ
196922002-02-04 Jakub Jelinek <jakub@redhat.com>
19693
19694 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
19695 pat for recog.
19696
fecaac37
HP
196972002-02-04 Hartmut Penner <hpenner@de.ibm.com>
19698
831c4e87
KC
19699 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
19700 constant pool to be identical by string address and index.
fecaac37 19701
10c45943
AG
197022002-02-04 Anthony Green <green@redhat.com>
19703
19704 * output.h (SECTION_OVERRIDE): Define.
19705 * varasm.c (named_section): Obey SECTION_OVERRIDE.
19706
69474c3c
JT
197072002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
19708
19709 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
19710 by existing arm*-*-netbsd* (a.out) target.
19711 (ns32k-*-netbsdelf*): Likewise.
19712 (sparc-*-netbsdelf*): Likewise.
19713 (vax-*-netbsdelf*): Likewise.
19714
939a46f6 197152002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3b56934f
CF
19716
19717 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
19718 headers and libobjc headers.
19719
197202002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
19721
19722 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
19723 (_mingw.h): Remove duplicate include.
19724
2fd95d71
JT
197252002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
19726
19727 * config.gcc: Set cpu_type to m68k for 68010, as well.
19728 (m68010-*-netbsdelf*): New...
19729 (m68k*-*-netbsdelf*): ...targets.
19730 * config/m68k/netbsd-elf.h: New file.
19731
0ea6f6a0
KH
197322002-02-02 Kazu Hirata <kazu@hxi.com>
19733
19734 * config/h8300/h8300.c (hand_list): Move inside function_arg.
19735
cbf1b2da
KH
197362002-02-02 Kazu Hirata <kazu@hxi.com>
19737
19738 * config/h8300/h8300.c (h8_push_ops): Move inside
19739 h8300_init_once.
19740 (h8_pop_ops): Likewise.
19741 (h8_move_ops): Likewise.
19742
0869f126
KH
197432002-02-02 Kazu Hirata <kazu@hxi.com>
19744
19745 * config/h8300/h8300.c (os_task): Make it static.
19746 (monitor): Likewise.
19747 (pragma_saveall): Likewise.
19748
90e65b70
AO
197492002-02-02 Alexandre Oliva <aoliva@redhat.com>
19750
19751 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
19752 constant is a valid sign-extension for Pmode.
19753
9cbcd983
KH
197542002-02-02 Kazu Hirata <kazu@hxi.com>
19755
19756 * config/h8300/h8300.c: Fix formatting.
19757
7a27efc4
KH
197582002-02-02 Kazu Hirata <kazu@hxi.com>
19759
19760 * config/h8300/h8300.md: Fix formatting.
19761
54175a44
KH
197622002-02-02 Kazu Hirata <kazu@hxi.com>
19763
19764 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
19765 predicates of operands[1]. Split the patterns for each
19766 processor variant.
19767
eceb1755
KH
197682002-02-02 Kazu Hirata <kazu@hxi.com>
19769
19770 * config/h8300/h8300.md (xor patterns): Tighten the predicates
19771 of operands[1] to register_operand.
19772
0fef3fd0
NB
197732002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
19774
19775 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
19776 * cpphash.c (_cpp_init_hashtable): Similarly.
19777 * cppinit.c (cpp_create_reader): Default the signed_char flag.
19778 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
19779 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
19780 (cpp_handle_option): Handle the new options.
19781 * cpplex.c (cpp_interpret_charconst): Use new flag.
19782 * cpplib.h (struct cpp_options): New member signed_char.
19783 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
19784 (cpp_options): Handle -fsigned-char and -funsigned-char.
19785 (static_specs): Remove signed_char_spec.
19786 (do_spec1): Don't handle %c.
19787 * system.h: Poison SIGNED_CHAR_SPEC.
19788 * tradcif.y (yylex): Use flag_signed_char.
19789 * tradcpp.h (flag_signed_char): New.
19790 * tradcpp.c (flag_signed_char): New.
19791 (main): Handle new command-line options.
19792 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
19793config:
19794 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
19795 * avr/avr.h: Remove old comments.
19796 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
19797 (CC1_SPEC): Pass -fsigned-char if -mic*.
19798 (SIGNED_CHAR_SPEC): Remove.
19799doc:
19800 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
19801
0617ed52
EC
198022002-02-01 Eric Christopher <echristo@redhat.com>
19803
19804 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
19805 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
19806 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
19807 (ASM_OUTPUT_REG_POP): Ditto.
19808
dfd48d76
NB
198092002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
19810
19811 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
19812 patch.
19813
4a23409e
JJ
198142002-02-02 Jakub Jelinek <jakub@redhat.com>
19815
19816 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
19817
d3c52658
JJ
198182002-02-02 Jakub Jelinek <jakub@redhat.com>
19819
19820 PR c/5304:
19821 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
19822 unconditionally.
19823
02c5a3bd
JJ
198242002-02-01 Janis Johnson <janis187@us.ibm.com>
19825
19826 * cfganal.c: Include tm_p.h.
19827 (keep_with_call_p): Fix the test that determines if a register holds
19828 the return value of a call.
19829
3968de80
DD
198302002-02-01 DJ Delorie <dj@redhat.com>
19831
19832 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
19833 we are given conflicting registers, switch to the other one we
19834 had allocated for us.
19835 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
19836 as TImode so we know when the "other" register is available.
19837
1338ea6c
DB
198382002-02-01 David O'Brien <obrien@FreeBSD.org>
19839
19840 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
19841 sparc/sparc_bi.h.
19842
f015be23
JJ
198432002-02-01 Janis Johnson <janis187@us.ibm.com>
19844
19845 * cfganal.c (keep_with_call_p): New function.
19846 (flow_call_edges_add): Prevent splitting a block between a call and
19847 a single-set instruction that should be kept in the same block.
19848
63708ffc
CR
198492002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
19850
19851 * doc/install.texi (avr): Update outdated URL.
19852
5ee4950e
AH
198532002-01-30 Andrew Haley <aph@cambridge.redhat.com>
19854
831c4e87
KC
19855 * config/stormy16/stormy16.md (pushqi): New.
19856 (popqi): New.
19857 (pushhi): New.
19858 (pophi): New.
19859 (movhi): Remove stack operands.
19860 (movqi): Likewise.
19861 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
19862 nonimmediate_nonstack_operand.
19863 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
19864 New.
19865 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
19866 New.
5ee4950e 19867
b88c0704
JM
198682002-01-31 Jason Merrill <jason@redhat.com>
19869
19870 * Makefile.in (c-parse.c): Handle .output file.
19871 * objc/Make-lang.in (objc-parse.c): Likewise.
19872
ac282977
AO
198732002-02-01 Alexandre Oliva <aoliva@redhat.com>
19874
19875 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
19876 the -me[lb] option is given. Don't output the default flag
19877 twice.
19878
bebc7e8b
ZW
198792002-01-31 Zack Weinberg <zack@codesourcery.com>
19880
19881 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
19882 the primary source file; this has not been done yet.
19883 * c-decl.c (c_expand_body): Reset input_filename from
19884 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
19885
5809eb5f
KH
198862002-01-31 Kazu Hirata <kazu@hxi.com>
19887
19888 * rtlanal.c (subreg_regno_offset): Do not use
19889 SUBREG_REGNO_OFFSET.
19890 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
19891 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
19892
8512bbd7
JM
198932002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
19894
19895 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
19896 version rather than GNATS version in --version output.
19897
74cb3cc8
RS
198982002-01-31 Richard Sandiford <rsandifo@redhat.com>
19899
19900 * ifcvt.c (noce_process_if_block): Make a copy of the destination
19901 when copying back from a temporary.
19902
874b5b14
RH
199032002-01-30 Richard Henderson <rth@redhat.com>
19904
19905 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
19906 and new_dest are the same.
19907
e803a64b
RH
199082002-01-30 Richard Henderson <rth@redhat.com>
19909
89cf7be5 19910 PR opt/5076
e803a64b
RH
19911 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
19912 * rtl.c (note_insn_name): Update.
19913 * emit-rtl.c (remove_unnecessary_notes): Kill it.
19914 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
19915 to perform loop rotation.
19916 (expand_exit_loop_top_cond): New.
19917 * tree.h (expand_exit_loop_top_cond): Declare it.
19918 * c-semantics.c (genrtl_while_stmt): Use it.
19919 (genrtl_for_stmt): Likewise.
19920
0b51254d
AO
199212002-01-30 Alexandre Oliva <aoliva@redhat.com>
19922
19923 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
19924 arguments to 64-bit boundaries on 64-bit ABIs.
19925
71cef493
SE
199262002-01-30 Steve Ellcey <sje@cup.hp.com>
19927
19928 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
19929
6169e5fd
JM
199302002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
19931
19932 * c-decl.c (grokdeclarator): Handle type being a typedef for an
19933 invalid type.
19934
86f808dc
DB
199352002-01-30 David O'Brien <obrien@FreeBSD.org>
19936
19937 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
19938 * config/sparc/sparc_bi.h: Remove file.
19939 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
19940
5748ebeb
RH
199412002-01-30 Richard Henderson <rth@redhat.com>
19942
19943 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
19944
20d32cc2
ZW
199452002-01-30 Zack Weinberg <zack@codesourcery.com>
19946
19947 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
19948
b88c0704 199492002-01-30 Jason Merrill <jason@redhat.com>
6bb28965
JM
19950
19951 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
19952 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
19953 (reg_save): Use DW_CFA_offset_extended_sf instead.
19954
19955 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
19956
37060e78
JJ
199572002-01-29 Jakub Jelinek <jakub@redhat.com>
19958
19959 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
19960 in cselib_lookup.
19961
d18dba68
AH
199622002-01-29 Aldy Hernandez <aldyh@redhat.com>
19963
bebc7e8b
ZW
19964 * rs6000.md ("*call_value_local32"): Remove constraints.
19965 ("*call_value_local64"): Same.
19966 ("*call_value_indirect_nonlocal_aix32"): Same.
19967 ("*call_value_nonlocal_aix32"): Same.
19968 ("*call_value_indirect_nonlocal_aix64"): Same.
19969 ("*call_value_nonlocal_aix64"): Same.
19970 ("*call_value_nonlocal_sysv"): Same.
d18dba68 19971
80a8aac6
RH
199722002-01-29 Richard Henderson <rth@redhat.com>
19973
19974 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
19975
12beba6f
RH
199762002-01-29 Richard Henderson <rth@redhat.com>
19977
19978 * expr.c (force_operand): Ignore flag_pic for detecting pic
19979 address loads.
19980 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
19981 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
19982 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
19983 instead of open-coded loop.
19984 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
19985 be fixed when in use.
19986
2583081e
RH
199872002-01-29 Richard Henderson <rth@redhat.com>
19988
19989 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
19990 * sched-rgn.c (propagate_deps): Update them.
19991 * sched-deps.c (sched_analyze_insn): Update them. Flush the
19992 clobbers list when either gets too long.
19993
3b8d200e
JJ
199942002-01-29 Jakub Jelinek <jakub@redhat.com>
19995
19996 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
19997 and INDEX_REGS the same as GENERAL_REGS.
19998 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
19999
2d3115eb
NB
200002002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20001
bebc7e8b 20002 * tree.c (build_nonstandard_integer_type): Correct prototype.
2d3115eb 20003
ecbe845e
UW
200042002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
20005
bebc7e8b 20006 * config/s390/s390.md (movstrsico, movstrdix_64,
ecbe845e 20007 movstrsix_31): Remove, replace by ...
bebc7e8b 20008 (movstrdi_short, movstrsi_short, movstrdi_long,
ecbe845e
UW
20009 movstrsi_long): ... these. New.
20010 (movstrdi, movstrsi): Adapt.
20011
20012 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
bebc7e8b 20013 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
ecbe845e
UW
20014 Remove unnecessary CC clobber.
20015 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
20016 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
20017
20018 (divmoddi4): Don't partially initialize TImode register.
20019
0b32fca5
GK
200202002-01-29 Geoffrey Keating <geoffk@redhat.com>
20021
20022 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
20023
08ef5437
RH
200242002-01-29 Richard Henderson <rth@redhat.com>
20025
20026 * flow.c (print_rtl_and_abort): Remove.
20027 (print_rtl_and_abort_fcn): Remove.
20028 (verify_local_live_at_start): Use dump_bb instead.
20029 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
20030 (verify_wide_reg_1): Return 2 on mode test failure.
20031
8469e54e
NB
200322002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
20033
20034 PR c/3325, c/3326, c/2511, c/3347
20035 * c-decl.c (enum_decl_context): Remove BITFIELD.
20036 (grokdeclarator): Take bitfield width as an input.
20037 Ensure bitfields are given the correct type. Perform
20038 bitfield width validation with build_bitfield_integer_type
20039 rather than waiting for finish_struct.
20040 (grok_typename, grok_typename_in_parm_context, start_decl,
20041 push_parmdecl, grokfield, start_function): Update calls to
20042 grokdeclarator.
20043 (build_bitfield_integer_type): New function.
20044 (finish_struct): Move bitfield validation to grokdeclarator
bebc7e8b 20045 and build_bitfield_integer_type.
8469e54e
NB
20046 * tree.c (build_nonstandard_integer_type): New function.
20047 * tree.h (build_nonstandard_integer_type): New prototype.
20048objc:
20049 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
20050
ffdeea47
JJ
200512002-01-29 Jakub Jelinek <jakub@redhat.com>
20052
20053 PR other/1502:
20054 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
20055 don't ignore unrecognized -W* options.
20056 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
20057 * cpplib.h (cpp_handle_option): Adjust prototype.
20058 * c-decl.c (c_decode_options): Pass 0 as last argument to
20059 cpp_handle_option.
20060
20061 PR c/2896:
20062 * gcc.c (cpp_unique_options): Split from cpp_options.
20063 (cpp_options): Source cpp_unique_options.
20064 (default_compilers): Use cpp_unique_options instead of cpp_options
20065 when used together with cc1_options.
20066 (static_specs): Add cpp_unique_options.
20067 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
20068 when used together with cc1_options.
20069
1a275226
KH
200702002-01-29 Kazu Hirata <kazu@hxi.com>
20071
20072 * config/h8300/h8300-protos.h: Update the prototype of
20073 output_a_shift.
20074 * config/h8300/h8300.c (output_a_shift): Remove an unused
20075 argument 'insn'. Remove redundant code.
20076 * config/h8300/h8300.md: Adust to the new prototype of
20077 output_a_shift.
20078
a11d9dfc
KH
200792002-01-29 Kazu Hirata <kazu@hxi.com>
20080
20081 * config/h8300/h8300-protos.h: Update the prototypes of
20082 emit_a_rotate and expand_a_rotate.
20083 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
20084 first argument to 'enum rtx_code'.
20085 (expand_a_rotate): Likewise.
20086
871f73e3
KH
200872002-01-28 Kazu Hirata <kazu@hxi.com>
20088
20089 * config/h8300/h8300-protos.h: Update the prototype of
20090 output_simode_bld.
20091 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
20092 'log2'.
20093 * config/h8300/h8300.md: Adjust to the new prototype.
20094
5fc4b751
KH
200952002-01-28 Kazu Hirata <kazu@hxi.com>
20096
20097 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
20098 redundant code.
20099
2d67bd7b
JDA
201002002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
20101
20102 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
20103 is a fixed register before returning pic_offset_table_rtx.
20104 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
20105 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
20106
5a852b3e
JM
201072002-01-28 Jason Merrill <jason@redhat.com>
20108
6bb28965 20109 * dwarf2.h: Sync with src version.
5a852b3e 20110
3bca17dd
PK
201112002-01-28 Paul Koning <pkoning@equallogic.com>
20112
20113 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
20114 BT_FN_VOID_PTR_VAR.
20115 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
20116 * doc/extend.texi (__builtin_prefetch): Update documentation:
20117 first argument is now const void ptr.
20118
7dc3f8c0
KH
201192002-01-28 Kazu Hirata <kazu@hxi.com>
20120
20121 * config/h8300/h8300-protos.h: Remove an unused prototype.
20122
e83cb5f0
RZ
201232002-01-28 Roman Zippel <zippel@linux-m68k.org>
20124
20125 * toplev.c (lang_independent_init): Round up identifier size.
20126
5721cd84
RE
201272002-01-28 Richard Earnshaw <rearnsha@arm.com>
20128
20129 * config.gcc: Revert previous change.
20130
d534119e
AP
201312002-01-28 Andris Pavenis <pavenis@latnet.lv>
20132
20133 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
20134
5a721dab
RE
201352002-01-28 Richard Earnshaw <rearnsha@arm.com>
20136
20137 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
20138 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
20139 other non-elf netbsd config frags.
20140 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
20141 collect2 will does that.
20142 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
20143 shared-lib frobbing will work.
20144
da1775d6
KH
201452002-01-28 Kazu Hirata <kazu@hxi.com>
20146
20147 * config/h8300/h8300.h: Fix formatting.
20148 * config/h8300/h8300.md: Likewise.
20149
8f2e963b
LR
201502002-01-28 Loren J. Rittle <ljrittle@acm.org>
20151
20152 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
20153 the old, removed AAA_standards fix.
20154 * fixinc/fixincl.x: Rebuilt.
20155
fdae5767
HPN
201562002-01-28 Hans-Peter Nilsson <hp@axis.com>
20157
20158 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
20159 atexit call in crtbegin, hooked in after call to frame_dummy;
20160 register EH before registering __fini__start.
20161
2a2ecb63
AH
201622002-01-28 Aldy Hernandez <aldyh@redhat.com>
20163
20164 * config/rs6000/altivec.h: Remove spurious semicolons.
20165
8ed43adf
KH
201662002-01-27 Kazu Hirata <kazu@hxi.com>
20167
20168 * config/h8300/h8300.md: Replace dead bit extraction patterns
20169 with ones that work.
20170
917afb0c
RK
20171Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20172
20173 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
20174 if not STRICT_ALIGNMENT.
20175 * rtl.h (MEM_ALIGN): Likewise.
20176
f70a54cb
CR
201772002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
20178
20179 * doc/invoke.texi (-fdump-translation-unit): Revert this
20180 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
20181
d8fd4914
KH
201822002-01-27 Kazu Hirata <kazu@hxi.com>
20183
20184 * config/h8300/h8300.md (define_constants): New.
20185 (anonymous patterns) Use defined constants appropriately.
20186
15e0e275
KH
201872002-01-27 Kazu Hirata <kazu@hxi.com>
20188
20189 * config/h8300/h8300.c (function_arg): Remove redundant code.
20190
37a0f8a5
RH
201912002-01-26 Richard Henderson <rth@redhat.com>
20192
20193 * sched-deps.c (reg_pending_uses_head): New.
20194 (reg_pending_barrier): Rename from reg_pending_sets_all.
20195 (find_insn_list): Don't mark inline.
20196 (find_insn_mem_list): Remove.
20197 (add_dependence_list, add_dependence_list_and_free): New.
20198 (flush_pending_lists): Replace only_write param with separate
20199 for_read and for_write parameters. Update all callers. Use
20200 add_dependence_list_and_free.
20201 (sched_analyze_1): Do not add reg dependencies here; just set
20202 the pending bits. Use add_dependence_list.
20203 (sched_analyze_2): Likewise.
20204 (sched_analyze_insn): Replace schedule_barrier_found with
20205 reg_pending_barrier. Add all dependencies for pending reg
20206 uses, sets, and clobbers.
20207 (sched_analyze): Don't add reg dependencies for calls, just
20208 set pending bits. Use regs_invalidated_by_call. Treat
20209 sched_before_next_call as a normal list, not a fake insn.
20210 (init_deps): No funny init for sched_before_next_call.
20211 (free_deps): Free pending mems lists. Don't zero reg_last.
20212 (init_deps_global): Init reg_pending_uses.
20213 (finish_deps_global): Free it.
20214 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
20215 (find_insn_mem_list): Remove.
20216 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
20217 (propagate_deps): Use them. Zero temp mem lists.
20218
cea3bd3e
RH
202192002-01-26 Richard Henderson <rth@redhat.com>
20220
20221 * Makefile.in (CRTSTUFF_CFLAGS): New.
20222 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
20223 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
20224 crtstuff.c instead of alpha assembly version.
20225 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
20226 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
20227 not FORCE_{INIT,FINI}_SECTION_ALIGN.
20228 (__do_global_dtors_aux): Mark used.
20229 (frame_dummy, __do_global_ctors_aux): Mark used.
20230 (fini_dummy, init_dummy): Remove.
20231
20232 * config/alpha/crtbegin.asm: Remove file.
20233 * config/alpha/crtend.asm: Remove file.
20234 * config/alpha/t-crtbe: Remove file.
20235 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
20236 (LINK_EH_SPEC): New.
20237
20238 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
20239 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
20240 calling constructors.
20241 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
20242
20243 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
20244 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
20245 CRT_END_INIT_DUMMY hack.
20246 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
20247 FORCE_{INIT,FINI}_SECTION_ALIGN.
20248
20249 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
20250 FORCE_{INIT,FINI}_SECTION_ALIGN.
20251
20252 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
20253 invocation sequence.
20254 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
20255
20256 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
20257 (FORCE_CODE_SECTION_ALIGN): New.
20258
60ffa0e5
RH
202592002-01-26 Richard Henderson <rth@redhat.com>
20260
20261 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
20262
61334ebe
RH
202632002-01-26 Richard Henderson <rth@redhat.com>
20264
20265 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
20266 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
20267
1d788fb6
KH
202682002-01-26 Kazu Hirata <kazu@hxi.com>
20269
20270 * config/h8300/h8300.md: Remove bit extraction patterns that
20271 cannot be triggered.
20272 Restrict each bit extraction pattern to a variant on which the
20273 pattern is tested.
20274
87611f88
JM
202752002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
20276
20277 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
20278
cd74ec59
KH
202792002-01-26 Kazu Hirata <kazu@hxi.com>
20280
20281 * config/h8300/h8300.md: Remove bit test patterns that cannot
20282 be triggered.
20283 Restrict each bit test pattern to a variant on which the
20284 pattern is tested.
20285
93051e0f
KG
202862002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20287
20288 * builtins.c (expand_builtin_strncat): Remove redundant check for
20289 INTEGER_CST.
20290
216c995f
DB
202912002-01-25 David O'Brien <obrien@FreeBSD.org>
20292
20293 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
20294 default setting.
20295 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
20296 existing setting.
20297
33c7f925
GK
202982002-01-25 Geoffrey Keating <geoffk@redhat.com>
20299
20300 * dbxout.c (dbxout_init): Use assemble_name rather than just
20301 stripping off the first character.
20302 (dbxout_source_file): Likewise.
20303
6cd444b4
DD
203042002-01-25 DJ Delorie <dj@redhat.com>
20305
20306 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
20307 using rtx_equal_p, not by comparing pointers.
20308
751551d5
SE
203092002-01-25 Steve Ellcey <sje@cup.hp.com>
20310
20311 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
20312 for PIC_OFFSET_TABLE_REGNUM.
20313 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
20314
e564e618
DB
203152002-01-25 David O'Brien <obrien@FreeBSD.org>
20316
20317 * config.gcc (x86_64-*-freebsd*): New target.
20318 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
20319 value.
20320 (i[34567]86-*-freebsd*): Don't include svr4.h.
20321 * config/i386/freebsd64.h: New file.
20322
ff3aaf17
DR
203232002-01-25 Douglas B Rupp <rupp@gnat.com>
20324
4857d29d
DR
20325 * config/alpha/x-vms (version): Make static.
20326
20327 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
20328 in previous checkin.
20329
ff3aaf17
DR
20330 * Makefile.in (install-headers-cp): New target.
20331 * config.gcc (alpha-dec-*vms*): Install headers with
20332 install-headers-cp
20333
48d79c43
JH
20334Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
20335
20336 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
20337 avoid it's copies.
20338
995b5904
RK
20339Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20340
20341 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
20342 of compare_tree_int.
20343 (expand_builtin_strncat): Likewise.
20344 * c-decl.c (finish_struct): Use tree_low_cst.
20345 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
20346 * tree.c (compare_tree_int): Likewise.
20347
75eefe3f
UW
203482002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
20349
20350 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
20351 adjustments even if they are implemented by more than two insns.
20352
5a133afd
JH
20353Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
20354
995b5904 20355 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5a133afd
JH
20356 * df.h (struct ref): Kill B.
20357 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
20358
20359 * basic-block.h (PROP_EQUAL_NOTES): New flag.
20360 * flow.c (propagate_one_insn): Use it.
20361 (mark_used_regs): Handle NIL.
20362
ead39bdf 203632002-01-25 Geoffrey Keating <geoffk@redhat.com>
3d8dd3c0
GK
20364
20365 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
20366 to help folding.
20367
01a2ccd0
DE
203682002-01-25 David Edelsohn <edelsohn@gnu.org>
20369
20370 * rs6000.md (prefetch): Make address V4SI mode so that the address
20371 is restricted to legitimate form for instruction.
20372
fd29f6ea
BW
203732002-01-25 Bob Wilson <bob.wilson@acm.org>
20374
20375 * doc/install.texi (xtensa-*-elf): New target.
20376 (xtensa-*-linux*): New target.
20377 * doc/contrib.texi: Add myself.
20378
55492b32
NC
203792002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
20380
20381 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
20382 purpose register to hold an SImode (or smaller) value.
20383
72c7c913
JJ
203842002-01-25 Jakub Jelinek <jakub@redhat.com>
20385
20386 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
20387 registry only.
20388 * crtstuff.c: Likewise.
20389
c4df4ceb
KH
203902002-01-25 Kazu Hirata <kazu@hxi.com>
20391
20392 * config/h8300/h8300.md (negation patterns): Tighten
20393 predicates to register_operand.
20394
70e531f5
AH
203952002-01-24 Aldy Hernandez <aldyh@redhat.com>
20396
3bca17dd
PK
20397 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
20398 mode, not Pmode.
70e531f5 20399
3bca17dd 20400 * builtins.c (expand_builtin_prefetch): Same.
70e531f5 20401
a4f76ef9
AO
204022002-01-24 Alexandre Oliva <aoliva@redhat.com>
20403
20404 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
20405 modes.
20406
9bf25b09
KH
204072002-01-24 Kazu Hirata <kazu@hxi.com>
20408
20409 * config/h8300/h8300.c (print_operand): Remove support for
20410 operand character 'A'.
20411 * config/h8300/h8300.md (three anonymous patterns): Replace
20412 operand character 'A' with either 'T' or 'S'.
20413
974af6a5
KH
204142002-01-24 Kazu Hirata <kazu@hxi.com>
20415
20416 * config/h8300/h8300.c (print_operand): Remove support for
20417 operand character 'U'.
20418
7a5bb7b8
AP
204192002-01-24 Andris Pavenis <pavenis@latnet.lv>
20420
3bca17dd 20421 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7a5bb7b8 20422
92a4639e
NC
204232002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
20424
20425 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
20426 values to be assigned to the stack pointer.
20427
467cb2da
HP
204282002-01-14 Hartmut Penner <hpenner@de.ibm.com>
20429
bebc7e8b 20430 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
467cb2da
HP
20431 to const_double needs to be done right for big-endian systems.
20432
3b6cb920
JM
204332002-01-24 Jason Merrill <jason@redhat.com>
20434
b08dd119 20435 PR c++/2432
3b6cb920
JM
20436 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
20437 to can_throw_internal.
20438
f3077311
RH
204392002-01-23 Richard Henderson <rth@redhat.com>
20440
20441 * fold-const.c (fold): Change UINT_MAX test to check vs precision
20442 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
20443
e1d71275
AO
204442002-01-24 Alexandre Oliva <aoliva@redhat.com>
20445
20446 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
20447 (symGOT2reg): Use them, then set as GOT value as unchanging.
20448 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
20449 as a temporary, if possible.
20450 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
20451 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
20452
dc271dbe
KH
204532002-01-23 Kazu Hirata <kazu@hxi.com>
20454
20455 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
20456 accept to accept 0x80 as operands[2].
20457
1a9017f9
AO
204582002-01-24 Alexandre Oliva <aoliva@redhat.com>
20459
20460 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
20461
6932f033
RH
204622002-01-23 Richard Henderson <rth@redhat.com>
20463
20464 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
20465
709619d9
AH
204662002-01-23 Aldy Hernandez <aldyh@redhat.com>
20467
3bca17dd
PK
20468 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
20469 (parmlist_or_identifiers_1): Verify that only a parmlist follows
20470 an attribute.
709619d9 20471
3d709fd3
RH
204722002-01-23 Richard Henderson <rth@redhat.com>
20473
20474 * expr.c (move_by_pieces_1): Extend size before negation.
20475
88a446c0
RH
20476 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
20477 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
20478 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
20479 * config/m68k/t-m68kelf: Likewise.
20480
03984308
BW
204812002-01-23 Bob Wilson <bob.wilson@acm.org>
20482
20483 * config/xtensa/elf.h: New file.
20484 * config/xtensa/lib1funcs.asm: New file.
20485 * config/xtensa/lib2funcs.S: New file.
20486 * config/xtensa/linux.h: New file.
20487 * config/xtensa/t-xtensa: New file.
20488 * config/xtensa/xtensa-config.h: New file.
20489 * config/xtensa/xtensa-protos.h: New file.
20490 * config/xtensa/xtensa.c: New file.
20491 * config/xtensa/xtensa.h: New file.
20492 * config/xtensa/xtensa.md: New file.
20493 * config.gcc (xtensa-*-elf*): New target.
20494 (xtensa-*-linux*): New target.
20495 * cse.c (canon_hash): Compare rtx pointers instead of register
20496 numbers. This is required for the Xtensa port.
20497 * integrate.c (copy_insn_list): Handle case where the static
20498 chain is in memory and the memory address has to be copied to
20499 a register.
20500 * doc/invoke.texi (Option Summary): Add Xtensa options.
20501 (Xtensa Options): New node.
20502 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
20503
c3d5c3fa
ZW
205042002-01-23 Zack Weinberg <zack@codesourcery.com>
20505
a63bea75
ZW
20506 * diagnostic.c (internal_error): Do ICE suppression only
20507 when ENABLE_CHECKING is not defined.
20508
c3d5c3fa
ZW
20509 * c-typeck.c (require_complete_type): Return error_mark_node
20510 if type is error_mark_node.
20511
1398974c
JJ
205122002-01-23 Janis Johnson <janis187@us.ibm.com>
20513
20514 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
20515 -Os and issue a warning.
20516
807633e5
ZW
205172002-01-23 Zack Weinberg <zack@codesourcery.com>
20518
20519 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
20520 current (lack of) need for host configuration by hand.
20521
20522 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
20523 references. Documentation of some target macros moved from
20524 hostconfig.texi to tm.texi.
20525
cf8002d0
WC
205262002-01-23 Will Cohen <wcohen@redhat.com>
20527
20528 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
20529 defined.
20530
d1e76310
KH
205312002-01-23 Kazu Hirata <kazu@hxi.com>
20532
20533 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
20534 operand[3].
20535
b2115575
JM
205362002-01-23 Jason Merrill <jason@redhat.com>
20537
f893c16e
JM
20538 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
20539
b2115575
JM
20540 * function.c (assign_parms): Don't put args of inline functions
20541 into registers when not optimizing.
20542
6bacc7b0
NC
205432002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
20544
20545 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
20546 (prologue_use): New pattern.
20547 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
20548 preference to gen_rtx_USE.
20549 (thumb_expand_prologue): Use gen_prologue_use in preference to
20550 gen_rtx_USE.
20551 (thumb_expand_epilogue): Use gen_prologue_use in preference to
20552 gen_rtx_USE.
20553
a415f7bc
HPN
205542002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
20555
20556 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
20557
5372b3fb
NB
205582002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
20559
20560 PR c/3504
20561 * doc/extend.texi: Correct documentation of __alignof__.
20562
bd571ffc
ZW
205632002-01-22 Zack Weinberg <zack@codesourcery.com>
20564
20565 * params.h: Rename arguments of DEFPARAM so that it will be
20566 recognized as a translation keyword.
20567
333c8841
AH
205682002-01-22 Aldy Hernandez <aldyh@redhat.com>
20569
bd571ffc
ZW
20570 * extend.texi: Document altivec functions.
20571 Fix N-bit adjectives in X86 builtin documentation.
333c8841 20572
38979c65
AO
205732002-01-22 Alexandre Oliva <aoliva@redhat.com>
20574
20575 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
20576 auto_inc_dec values.
20577
7458a9f0
RE
205782002-01-22 Richard Earnshaw <rearnsha@arm.com>
20579
20580 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
20581 after backslash.
20582 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
20583
129bd0c4
AO
205842002-01-22 Alexandre Oliva <aoliva@redhat.com>
20585
20586 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
20587
8b9b74a9
RH
205882002-01-22 Richard Henderson <rth@redhat.com>
20589
20590 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
20591 copy_insn not copy_rtx.
20592
d0c9db30
AM
205932002-01-23 Alan Modra <amodra@bigpond.net.au>
20594
20595 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
20596 "nonzero" as that might add "1" bits. Ensure "constop" is
20597 properly sign extened.
20598 (force_to_mode): Tweak for sign extended constop.
20599
1e7e480e
RH
206002002-01-22 Richard Henderson <rth@redhat.com>
20601
20602 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
20603 for_each_rtx instead of assuming we're already looking at the MEM.
20604 (split_small_symbolic_mem_operand): Likewise.
20605 * config/alpha/alpha.h (PREDICATE_CODES): Update.
20606 * config/alpha/alpha.md (small symbolic memory splitters): Update.
20607
206082002-01-22 Richard Henderson <rth@redhat.com>
2e271932
RH
20609
20610 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
20611 sequence number for the literal.
20612 (divmoddi_internal_er): Likewise.
20613
b7f2fb96
CR
206142002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
20615
20616 PR java/4972
20617 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
20618 in LIBICONV variable.
20619 * configure: Regenerated.
20620
f66a0046
KW
206212002-01-22 Krister Walfridsson <cato@df.lth.se>
20622
20623 * dependence.c (build_def_use): Remove array_idx.
20624
e3b0efd1
KW
20625 * dwarfout.c (last_filename): Remove.
20626 (output_compile_unit_die): Remove last_filename.
20627
d8086cbb
RS
206282002-01-22 Roger Sayle <roger@eyesopen.com>
20629 Richard Henderson <rth@redhat.com>
20630
20631 PR opt/3640
20632 * fold-const.c (fold): Optimize unsigned comparisons against
20633 UINT_MAX (and similar unsigned constants).
20634
e8d52ba0
JJ
206352002-01-22 Janis Johnson <janis187@us.ibm.com>
20636
d8086cbb 20637 * Makefile.in (loop.o): Depend on OPTABS_H.
1398974c 20638 * loop.c (emit_prefetch_instructions): Check the prefetch operand
d8086cbb 20639 against the predicate.
11303d15 20640
e8d52ba0
JJ
20641 PR target/5379
20642 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
20643 for the address operand.
20644
cc7b420e
RH
206452002-01-22 Richard Henderson <rth@redhat.com>
20646
20647 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
20648
816e265a
CR
206492002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
20650
20651 PR other/5450
cc7b420e
RH
20652 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
20653 preprocessor flags.
816e265a 20654
7c884404
JT
206552002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
20656
20657 * config.gcc (x86_64-*-netbsd*): New target.
20658 * config/i386/netbsd64.h: New file.
20659
2b672c08
AH
206602002-01-22 Aldy Hernandez <aldyh@redhat.com>
20661
d8086cbb 20662 * regrename.c (kill_value): Fix typo.
2b672c08
AH
20663
206642002-01-22 Aldy Hernandez <aldyh@redhat.com>
20665
d8086cbb 20666 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2b672c08 20667
d8086cbb 20668 * config/rs6000/rs6000.h: Same.
2b672c08 20669
d8086cbb
RS
20670 * function.c (instantiate_virtual_regs): Remove
20671 STARTING_FRAME_PHASE.
20672 (assign_stack_local_1): Same.
20673 Calculate frame phase.
2b672c08 20674
4b02997f
NC
206752002-01-22 Nick Clifton <nickc@redhat.com>
20676
20677 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
20678 variable declaration to outer scope in order to simplify
20679 future extensions.
20680 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
20681 arm_hard_regno_mode_ok.
20682 * config/arm/arm-protos.h: Add a prototype for
20683 arm_hard_regno_mode_ok.
20684 * config/arm/arm.c (soft_df_operand): Remove now redundant
20685 check for DImode values using IP_REGNUM.
20686 (nonimmediate_soft_df_operand): Remove now redundant check for
20687 DImode values using IP_REGNUM.
20688 (arm_hard_regno_mode_ok): New function. New check: make sure
20689 that DImode values are not stored in IP_REGNUM.
c14a3a45
NC
20690
20691 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
20692 note with a USE.
20693 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
20694
8a827ab2
JM
206952002-01-22 Jason Merrill <jason@redhat.com>
20696
20697 * c-semantics.c (genrtl_compound_stmt): Only check nesting
20698 consistency if this COMPOUND_STMT is scoped.
20699
cf403648
KH
207002002-01-22 Kazu Hirata <kazu@hxi.com>
20701
20702 * predict.c: Fix formatting.
20703 * print-tree.c: Likewise.
20704 * protoize.c: Likewise.
20705 * real.h: Likewise.
20706 * rtl.h: Likewise.
20707 * sbitmap.h: Likewise.
20708 * scan.c: Likewise.
20709 * sched-deps.c: Likewise.
20710 * sched-vis.c: Likewise.
20711 * sdbout.c: Likewise.
20712 * sibcall.c: Likewise.
20713 * ssa.c: Likewise.
20714 * ssa-ccp.c: Likewise.
20715 * ssa-dce.c: Likewise.
20716 * stmt.c: Likewise.
20717 * stor-layout.c: Likewise.
20718 * system.h: Likewise.
20719
aea9695c
RK
20720Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20721
a8765ae7
RK
20722 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
20723 if fits in bounds of base type.
20724
aea9695c
RK
20725 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
20726 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
20727 (add_bound_info, default): If can't find a context, make a
20728 SAVE_EXPR.
20729 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
20730
58bf601b
HPN
207312002-01-22 Hans-Peter Nilsson <hp@axis.com>
20732
20733 * c-typeck.c (parser_build_binary_op): If result from
20734 build_binary_op is ERROR_MARK just return error_mark_node without
20735 further processing.
20736
f982f805
JT
207372002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
20738
20739 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
20740 Split a.out-specific bits into...
20741 * config/netbsd-aout.h: ...this.
20742 * config/netbsd-elf.h: New file.
20743 * config/alpha/netbsd-elf.h: Remove.
20744 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
20745 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
bd571ffc 20746 (STARTFILE_SPEC): Remove redundant definition.
f982f805
JT
20747 (ENDFILE_SPEC): Likewise.
20748 (LINK_SPEC): Likewise.
20749 (CPP_SPEC): Likewise.
20750 (ASM_SPEC): Likewise.
20751 (LIB_SPEC): Likewise.
20752 (SWITCH_TAKES_ARG): Likewise.
20753 (TARGET_MEM_FUNCTIONS): Likewise.
20754 (CPP_PREDEFINES): Redefine.
20755 (ASM_FINAL_SPEC): Remove redefinition.
20756 (ASM_COMMENT_START): Redefine.
20757 (FUNCTION_PROFILER): Define.
20758 (TARGET_VERSION): Redefine.
20759 Comment and formatting cleanup.
20760 * config/i386/netbsd.h: Include <netbsd-aout.h>.
20761 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
20762 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
20763 big- or little-endian.
20764 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
20765 * config.gcc (*-*-netbsd*): Add definitions common to all
20766 NetBSD configs.
20767 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
20768 gnu_ld definitions. Add netbsd-elf.h to and remove
20769 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
20770 tmake_file, and don't lose previous tmake_file contents.
20771 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
20772 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
20773 gnu_ld definitions. Add netbsd-elf.h to tm_file.
20774 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
20775 (mipsel-*-netbsd*): Rename this to...
20776 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
20777 mips/little.h to tm_file for mips*el-*.
20778 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
20779 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
20780 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
20781
2e396476
JDA
207822002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
20783
20784 * pa-protos.h (reg_before_reload_operand): New function prototype.
20785 * pa.c (reg_before_reload_operand): New function implementation.
20786 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
20787 contraints to "*m".
20788
3b5708e7
FS
207892002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20790
20791 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
20792
85e79f96
JDA
207932002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
20794
20795 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
20796 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
20797 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
20798 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
20799 (ENDFILE_SPEC): Undefine.
20800 (STARTFILE_SPEC): Redefine for PA.
20801
38abadee
FS
208022002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20803
20804 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
20805
94f1d97c
DJ
208062002-01-21 Daniel Jacobowitz <drow@mvista.com>
20807
20808 * config.gcc: Add entries to supported PowerPC --with-cpu
20809 types.
20810
0333394e
JJ
208112002-01-21 Jakub Jelinek <jakub@redhat.com>
20812
20813 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
20814 true for 64-bit mode only SSE registers in 32-bit mode.
20815
e9d1b155
KH
208162002-01-21 Kazu Hirata <kazu@hxi.com>
20817
20818 * unwind-dw2.c: Fix formatting.
20819 * unwind-dw2-fde.c: Likewise.
20820 * unwind-dw2-fde.h: Likewise.
20821 * unwind-pe.h: Likewise.
20822 * varasm.c: Likewise.
20823 * varray.h: Likewise.
20824
07338cf8
HPN
208252002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
20826
20827 Remove workaround for register stack overwrite bug in mmix.
20828 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
20829 support for TARGET_REG_STACK_FILL_BUG.
20830 * config/mmix/mmix.h: Remove member has_call_without_parameters.
20831 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
20832 Delete.
20833 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
20834 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
20835 -mno-reg-stack-fill-bug-workaround.
20836 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
20837 machine member has_call_without_parameters.
20838 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
20839 -mreg-stack-fill-bug-workaround and
20840 -mno-reg-stack-fill-bug-workaround.
20841 (MMIX Options): Ditto.
20842
7192cbf1
KH
208432002-01-21 Kazu Hirata <kazu@hxi.com>
20844
20845 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
20846 as appropriate.
20847 Remove redundant code.
20848
d1552d7b
JM
208492002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
20850
20851 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
20852 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
20853 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
20854 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
20855 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
20856 out target macro definitions and non-target-specific comments
20857 mostly taken from old versions of the manual.
20858
ed168e45
KH
208592002-01-20 Kazu Hirata <kazu@hxi.com>
20860
20861 * config/h8300/h8300.h: Fix comment formatting.
20862 * config/ia64/aix.h: Likewise.
20863 * config/ia64/ia64-protos.h: Likewise.
20864 * config/ia64/ia64.c: Likewise.
20865 * config/ia64/ia64.h: Likewise.
20866 * config/ia64/ia64intrin.h: Likewise.
20867 * config/ia64/linux.h: Likewise.
20868 * config/ia64/unwind-aix.c: Likewise.
20869 * config/ia64/unwind-ia64.c: Likewise.
20870
005e3e05
KH
208712002-01-20 Kazu Hirata <kazu@hxi.com>
20872
20873 * config/h8300/h8300.c: Revise comments about shift code.
20874
64bead4c
KH
208752002-01-20 Kazu Hirata <kazu@hxi.com>
20876
20877 * config/h8300/h8300.c (function_arg): Update a comment.
20878
ed863595
KH
208792002-01-20 Kazu Hirata <kazu@hxi.com>
20880
20881 * config/h8300/h8300.md: Update the comments at the beginning
20882 of the file.
20883
5904dc87
KH
208842002-01-20 Kazu Hirata <kazu@hxi.com>
20885
20886 * config/i370/i370.c: Fix comment formatting.
20887 * config/i370/i370.h: Likewise.
20888 * config/i370/i370.md: Likewise.
20889 * config/i370/linux.h: Likewise.
20890
9702143f
RK
20891Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20892
cbafacd1
RK
20893 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
20894
9702143f
RK
20895 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
20896 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
20897 in incomplete case.
20898
6b6996b8
GS
208992002-01-20 Graham Stott <grahams@redhat.com>
20900
20901 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
20902
eab854f6
JDA
209032002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
20904
20905 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
20906
5b029315
TR
209072002-01-19 Tom Rix <trix@redhat.com>
20908
20909 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
20910
1d690052
AH
209112002-01-18 Aldy Hernandez <aldyh@redhat.com>
20912
d8086cbb 20913 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
1d690052 20914
d8086cbb
RS
20915 * function.c (assign_stack_local_1): Adjust x_frame_offset with
20916 STARTING_FRAME_PHASE.
20917 (STARTING_FRAME_PHASE): New.
20918 (instantiate_virtual_regs): Check saneness of
20919 STARTING_FRAME_PHASE.
1d690052 20920
d8086cbb 20921 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
1d690052 20922
4dd8c093
AO
209232002-01-19 Alexandre Oliva <aoliva@redhat.com>
20924
20925 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
20926
6f2a28d7
CR
209272002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
20928
20929 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
20930 be used for bootstrapping GCC 3.0.
20931
8763a465
KH
209322002-01-18 Kazu Hirata <kazu@hxi.com>
20933
20934 * config/h8300/h8300.md: Fix an insn length.
20935
3ef42a0c
KH
209362002-01-18 Kazu Hirata <kazu@hxi.com>
20937
20938 * bitmap.h: Fix comment formatting.
20939 * combine.c: Likewise.
20940 * cppfiles.c: Likewise.
20941 * c-pragma.h: Likewise.
20942 * c-typeck.c: Likewise.
20943 * df.c: Likewise.
20944 * dwarf2out.c: Likewise.
20945 * function.c: Likewise.
20946 * gcc.c: Likewise.
20947 * genattrtab.c: Likewise.
20948 * gthr-win32.h: Likewise.
20949 * haifa-sched.c: Likewise.
20950 * predict.c: Likewise.
20951 * rtlanal.c: Likewise.
20952 * rtl.h: Likewise.
20953 * unwind-dw2-fde.h: Likewise.
20954 * unwind-pe.h: Likewise.
20955 * vmsdbgout.c: Likewise.
20956
dd4dc3cd
RK
20957Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20958
20959 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
20960 if type_required and passed decl.
20961
5fb4cf24
AH
209622002-01-17 Aldy Hernandez <aldyh@redhat.com>
20963
d8086cbb
RS
20964 * config.gcc (cpu_type): Include altivec.h in powerpc
20965 extra_headers.
20966 Same for darwin.
5fb4cf24 20967
d8086cbb 20968 * config/rs6000/altivec.h: New.
5fb4cf24 20969
2705baf5
DE
209702002-01-17 David Edelsohn <edelsohn@gnu.org>
20971
20972 * doc/install.texi (*-ibm-aix*): Update assembler and exception
20973 handling information.
20974 * doc/trouble.texi (Interoperation): Add libstdc++ information
20975 for AIX.
20976 (Misunderstandings): Add template instantiation and static template
20977 member information for AIX.
20978
dbd680e1
JM
209792002-01-17 Jason Merrill <jason@redhat.com>
20980
821adc5e
JM
20981 * dbxout.c (dbxout_type): Support const and volatile.
20982
dbd680e1
JM
20983 * except.c (add_partial_entry): Remove backwards compatibility code.
20984 (end_protect_partials): Likewise.
20985
d0e82870
JJ
209862002-01-17 Jakub Jelinek <jakub@redhat.com>
20987
20988 * config/ia64/ia64.md (prologue_use): New.
20989 * config/ia64/ia64.c (ia64_expand_prologue): Use
20990 gen_prologue_use instead of gen_rtx_USE.
20991 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
20992 as CODE_FOR_pred_rel_mutex.
20993 (ia64_sched_reorder2): Likewise.
20994
f9f45c65
EC
209952002-01-16 Eric Christopher <echristo@redhat.com>
20996
20997 * config/mips/r3900.h: Reformat.
20998 (SUBTARGET_CPP_SIZE_SPEC): Remove.
20999 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
21000 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
21001 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
21002 * config/mips/t-elf: Remove mips3 multilib.
21003
c66c8b0e
L
210042002-01-16 H.J. Lu <hjl@gnu.org>
21005
21006 * config/mips/linux.h: Include "mips/abi64.h".
21007
5f083b72
L
210082002-01-16 H.J. Lu <hjl@gnu.org>
21009
21010 * config/mips/t-linux: New.
21011
21012 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
21013
21014 * config/mips/linux.h: Don't include "gofast.h".
21015 (INIT_SUBTARGET_OPTABS): Removed.
21016
af3c90a6
KH
210172002-01-16 Kazu Hirata <kazu@hxi.com>
21018
21019 * config/h8300/h8300-protos.h: Replace emit_a_shift with
21020 output_a_shift.
21021 * config/h8300/h8300.c: Likewise.
21022 * config/h8300/h8300.md: Likewise.
21023
a1bf0a16
KH
210242002-01-16 Kazu Hirata <kazu@hxi.com>
21025
21026 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
21027 spaces after an opcode name.
21028 (pushqi1_h8300hs): Likewise.
21029 (pushhi1_h8300hs): Likewise.
21030
88ab0d1c
KH
210312002-01-16 Kazu Hirata <kazu@hxi.com>
21032
21033 * doc/extend.texi: Replace "option" with "attribute"
21034 appropriately.
21035
51c561e3
JJ
210362002-01-16 Jakub Jelinek <jakub@redhat.com>
21037
21038 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
21039 (and:DI () (const_int -8)).
21040 (split_small_symbolic_mem_operand): Split
21041 (mem (and:DI () (const_int -8)).
21042
b8c1a6b8
JJ
210432002-01-16 Jakub Jelinek <jakub@redhat.com>
21044
21045 PR target/5309:
d8086cbb 21046 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
b8c1a6b8
JJ
21047 same way as TYPE_IMUL.
21048 (ultrasparc_sched_reorder): Likewise.
21049 * config/sparc/sparc.md (type): Add comment to update
21050 ultrasparc_sched_reorder when making changes.
21051
1e4e4df2
KH
210522002-01-16 Kazu Hirata <kazu@hxi.com>
21053
21054 * doc/invoke.texi: Change the dump file name of block
21055 reordering pass from 28.bbro to 29.bbro.
21056 Mention -dk option.
21057
14d920c0
JH
21058Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
21059
21060 * i386.md (minsf splitter): Fix pasto.
21061
2e99323f
NC
210622002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21063
21064 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
21065 to frame pointer initialisation instruction.
21066 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
21067 initialisation instruction.
ab8081c1
NC
21068 (soft_df_operand): Do not accept the IP register.
21069 (nonimmediate_soft_df_operand): Do not accept the IP register.
2e99323f 21070
c4031a04
JJ
210712002-01-16 Jakub Jelinek <jakub@redhat.com>
21072
21073 PR target/5357:
21074 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
21075 MASK_V8 being both set.
21076
44b8152b
UW
210772002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
21078
21079 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
21080 insn for GOT register; add REG_MAYBE_DEAD notes instead.
21081 config/s390/s390.md (call, call_value): Add GOT register to
21082 CALL_INSN_FUNCTION_USAGE where needed.
21083 (call_exp, call_value_exp): New.
21084
1d6e90ac
NC
210852002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21086
21087 * config/arm/arm.c: General formatting tidy up.
21088
210892002-01-16 Graham Stott <grahams@redhat.com>
60e8b9f0
GS
21090
21091 * calls.c (try_to_integrate): Use "(size_t)" intermediate
21092 cast and when casting an integer literal to "rtx" pointer.
21093 (expand_call): Likewise.
21094 * flow.c (try_pre_increment): Likewise.
21095 (find_use_as_address): Likewise.
21096 * integrate.c (expand_iline_function): Likewise.
21097 * regmove.c (try_auto_increment): Likewise.
21098
1d6e90ac 210992002-01-16 Graham Stott <grahams@redhat.com>
7b25b076
GS
21100
21101 * sched-rgn.c (passed): Use sbitmap_free.
21102 (header): Likewise.
21103 (inner): Likewise.
21104 (in_queue): Likewise.
21105 (in_stack): Likewise.
21106
31fce3c4
EC
211072002-01-15 Eric Christopher <echristo@redhat.com>
21108
21109 * flow.c (propagate_one_insn): Change to use fatal_insn.
21110
c99d986a
KH
211112002-01-15 Kazu Hirata <kazu@hxi.com>
21112
21113 * expmed.c (extract_fixed_bit_field): Remove unused code.
21114 * system.h: Poison SLOW_ZERO_EXTEND.
21115 * doc/tm.texi: Remove.
21116 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
21117 * config/arm/arm.h: Likewise.
21118 * config/avr/avr.h: Likewise.
21119 * config/clipper/clipper.h: Likewise.
21120 * config/convex/convex.h: Likewise.
21121 * config/d30v/d30v.h: Likewise.
21122 * config/dsp16xx/dsp16xx.h: Likewise.
21123 * config/elxsi/elxsi.h: Likewise.
21124 * config/fr30/fr30.h: Likewise.
21125 * config/h8300/h8300.h: Likewise.
21126 * config/i370/i370.h: Likewise.
21127 * config/i386/i386.h: Likewise.
21128 * config/m68k/m68k.h: Likewise.
21129 * config/mips/mips.h: Likewise.
21130 * config/ns32k/ns32k.h: Likewise.
21131 * config/pdp11/pdp11.h: Likewise.
21132 * config/pj/pj.h: Likewise.
21133 * config/s390/s390.h: Likewise.
21134 * config/sh/sh.h: Likewise.
21135 * config/stormy16/stormy16.h: Likewise.
21136 * config/v850/v850.h: Likewise.
21137 * config/vax/vax.h: Likewise.
21138 * config/we32k/we32k.h: Likewise.
21139
acfab996
AH
211402002-01-15 Aldy Hernandez <aldyh@redhat.com>
21141
d8086cbb
RS
21142 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
21143 (altivec_lvsl): Change constraint to b.
21144 (altivec_lvsr): Same.
21145 (altivec_lvebx): Same.
21146 (altivec_lvehx): Same.
21147 (altivec_lvewx): Same.
21148 (altivec_lvxl): Same.
21149 (altivec_lvx): Same.
21150 (altivec_stvx): Add parallel.
21151 (altivec_stvxl): Same.
21152 (altivec_stvehx): Same.
21153 (altivec_stvebx): Same.
21154 (altivec_stvebx): Same.
acfab996 21155
5e505bc9
AH
211562002-01-15 Aldy Hernandez <aldyh@redhat.com>
21157
d8086cbb 21158 * config.gcc: Change altivec.h to altivec-defs.h.
5e505bc9 21159
d8086cbb 21160 * config/rs6000/altivec.h: Delete.
5e505bc9 21161
d8086cbb 21162 * config/rs6000/altivec-defs.h: Add.
5e505bc9 21163
5c41fdfb
JDA
211642002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
21165
21166 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
21167 and UMOD modes.
21168
21169 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
21170 less than or equal to eight bytes.
21171
21172 * vax.md (andsi3): Remove constraints and change SET destination
21173 operand type to nonimmediate_operand.
21174 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
21175 when it is a CONST_INT.
21176
de097a2d
JM
211772002-01-15 Jason Merrill <jason@redhat.com>
21178
21179 * c-common.def (FILE_STMT): New code.
21180 * c-common.c (statement_code_p): It's a statement.
21181 * c-common.h (stmt_tree_s): Add x_last_filename.
21182 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
21183 (last_expr_filename): New macro.
21184 * c-semantics.c (begin_stmt_tree): Initialize it.
21185 (add_stmt): If the filename changed, also insert a
21186 FILE_STMT.
21187 (expand_stmt): Handle seeing one.
21188
4a913dd6
EC
211892002-01-15 Eric Christopher <echristo@redhat.com>
21190
21191 * flow.c (propagate_one_insn): Add error message and print out
21192 insn for debugging.
21193
006946e4
JM
211942002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21195
21196 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
21197 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
21198 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
21199 TRAMPOLINE_ALIGNMENT.
21200 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
21201 to be in bits.
21202 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
21203 PCC_BITFIELD_TYPE_MATTERS.
21204 * config/interix.h (STDC_VALUE): Remove. Use
21205 STDC_0_IN_SYSTEM_HEADERS.
21206 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
21207 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
21208 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
21209
751a1458
CR
212102002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
21211
21212 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
21213 not work on this platform currently.
21214
57771fe8
JM
212152002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21216
21217 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
21218 readonly_warning in _().
21219
0e83ceb1 212202002-01-15 Douglas B Rupp <rupp@gnat.com>
9a52433e 21221
0e83ceb1 21222 * gcc.c (delete_if_ordinary): Backout previous change.
9a52433e 21223
8e2e89f7
KH
212242002-01-15 Kazu Hirata <kazu@hxi.com>
21225
0e83ceb1
DR
21226 * config/h8300/h8300.c (print_operand): Remove support for
21227 unused operand characters.
21228
8e2e89f7
KH
21229 * read-rtl.c: Fix formatting.
21230 * real.c: Likewise.
21231 * recog.c: Likewise.
21232 * regclass.c: Likewise.
21233 * regmove.c: Likewise.
21234 * reg-stack.c: Likewise.
21235 * reload1.c: Likewise.
21236 * rtlanal.c: Likewise.
21237
b531087a
KH
212382002-01-15 Kazu Hirata <kazu@hxi.com>
21239
21240 * config/i386/i386.c: Fix formatting.
21241
7c94ce7f
JJ
212422002-01-15 Jakub Jelinek <jakub@redhat.com>
21243
21244 * c-typeck.c (process_init_element): Don't save_expr
21245 COMPOUND_LITERAL_EXPR if just its initializer will be used.
21246
6041bf2f
DE
212472002-01-15 David Edelsohn <edelsohn@gnu.org>
21248
21249 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
21250 emit optional traceback table if optimize_size or TARGET_ELF.
21251 * config/rs6000/rs6000.md (prefetch): New.
21252
8559c8c0
AJ
212532002-01-15 Andreas Jaeger <aj@suse.de>
21254
21255 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
21256
70f122f2
KH
212572002-01-15 Kazu Hirata <kazu@hxi.com>
21258
21259 * mips-tfile.c: Fix formatting.
21260
6a7b4ca6
JH
21261Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
21262
21263 * unroll.c (final_reg_note_copy): Fix previous commit.
21264
e7afe229
KH
212652002-01-14 Kazu Hirata <kazu@hxi.com>
21266
21267 * config/h8300/h8300-protos.h: Remove the prototype for
21268 eq_operator.
21269 * config/h8300/h8300.c (eq_operator): Remove.
21270
7d378549
RH
212712002-01-14 Richard Henderson <rth@redhat.com>
21272
21273 * config/i386/i386.md (prefetch): Tidy.
21274 (prefetch_3dnow): Fix locality operand.
21275
ab093b81
RH
212762002-01-14 Richard Henderson <rth@redhat.com>
21277
21278 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
21279 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
21280
d300f51f
HPN
212812002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
21282
21283 * reload1.c (reload_combine): Pass reg_sum replacement through
21284 copy_rtx in loop performing multiple changes.
21285
655dd289
JJ
212862002-01-14 Jakub Jelinek <jakub@redhat.com>
21287
21288 * except.c (remove_unreachable_regions): New.
21289 (free_eh_status): Clear exception_handler_labels.
21290 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
21291 (find_exception_handler_labels): Don't add the same label more than
21292 once.
21293 (remove_exception_handler_label): Don't die if
21294 find_exception_handler_labels hasn't been called for the current
21295 function yet.
21296
1fba46a7
JH
21297Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
21298
21299 * toplev.c (rest_of_compilation): Rebuild jump labels after
21300 gcse.
21301
0975678f
JM
213022002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
21303
21304 * doc/extend.texi: Move documentation of X86 built-in functions
21305 here.
21306 * doc/invoke.texi: From here.
21307 * doc/sourcebuild.texi: Document location of documentation for
21308 machine built-in functions.
21309
969815c7
CF
213102002-01-13 Christopher Faylor <cgf@redhat.com>
21311
21312 * cppfiles.c (TEST_THRESHOLD): New macro.
21313 (SHOULD_MMAP): Ditto.
21314 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
21315 be used.
21316
494c950b
JH
21317Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
21318
21319 * unroll.c (final_reg_note_copy): Properly handle
21320 REG_LABEL
21321 (unroll_loops): Fix LOOP_CONDITION heuristics.
21322
69a0611f
GK
213232002-01-14 Geoffrey Keating <geoffk@redhat.com>
21324
21325 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
21326 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
21327
b90e45ae
JH
21328Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
21329
21330 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
21331 threaded loop.
21332
8377288b
TR
213332002-01-14 Tom Rix <trix@redhat.com>
21334
21335 * config/rs6000/rs6000.md: Fix typo with sradi.
21336
9f37ccb1
UW
213372002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
21338
21339 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
21340 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
21341 (clrstrdi, clrstrsi): Adapt callers.
21342
21343 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
21344
8559c8c0 21345 (movti splitter): Never use register 0 as base register.
9f37ccb1 21346
6c2d03d0
HP
213472002-01-14 Hartmut Penner <hpenner@de.ibm.com>
21348
8559c8c0
AJ
21349 * combine.c (simplify_shift_const): Always generate new rtx
21350 for shift expression instead of reusing given expression.
6c2d03d0 21351
d3e98208
RK
21352Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21353
21354 * config/alpha/alpha.c (alpha_expand_mov): Don't call
21355 alpha_legitimize_address unless mode is Pmode.
21356
9f339dde
GK
213572002-01-13 Geoffrey Keating <geoffk@redhat.com>
21358
21359 * doc/md.texi (Modifiers): Document the '*' constraint for the
21360 user.
21361
21362 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
21363 * doc/extend.texi (Function Attributes): 'interrupt' is valid
21364 for xstormy16 too.
21365
02a10130
RH
213662002-01-13 Richard Henderson <rth@redhat.com>
21367
21368 * reload.c (find_reloads): Use a hard reg destination as reload reg
21369 for an input reload of the source.
21370
61d47787
GP
213712002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21372
21373 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
21374 more generic.
21375
f0df8029
DR
21376Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
21377
21378 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21379 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21380
d2a37256
DR
21381 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
21382
a9e8a5ee
RK
21383Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21384
21385 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
21386
bc06712d
TR
213872002-01-12 Tom Rix <trix@redhat.com>
21388
8559c8c0 21389 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
bc06712d
TR
21390 TARGET_POWERPC64.
21391
7cbe9bb7
RH
213922002-01-12 Richard Henderson <rth@redhat.com>
21393
38b29e64
RH
21394 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
21395
58605ba0
RH
21396 * doc/invoke.texi: Update Alpha options.
21397
7cbe9bb7
RH
21398 * doc/invoke.texi: Update i386 built-in function lists.
21399
9d560860
JH
21400Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
21401
21402 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
21403 referencing outside.
21404
bb93b973
RK
21405Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21406
21407 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
21408 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
21409 offsets, and change line folding.
21410 * optabs.c (expand_binop): Remove warnings.
21411 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8559c8c0 21412
f9f6b7df
GS
214132002-01-12 Graham Stott <grahams@redhat.com>
21414
21415 * attribs.c (handle_deprecated_attribute): constify WHAT.
21416 * diagnostic.c (warn_deprecated_use): Add braces, fixes
21417 dangling else warning and constify WHAT.
21418 * except.h (struct function, struct inline_remap): Move
21419 struct tag forward defs before all prototypes.
21420 (duplicate_eh_regions): Whitespace.
21421
4a692617
NC
214222002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
21423
21424 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21425 MODE_BASE_REG_CLASS.
21426 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
21427
e37af218
RH
214282002-01-12 Richard Henderson <rth@redhat.com>
21429
21430 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
21431 (ix86_expand_vector_move): New.
21432 (bdesc_2arg): Remove andps, andnps, orps, xorps.
21433 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
21434 Remove old prefetch builtins. Special case the logicals removed above.
21435 (ix86_expand_builtin): Likewise.
21436 (safe_vector_operand): Use V4SFmode, not TImode.
21437 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
21438 (ix86_expand_timode_binop_builtin): New.
21439 * config/i386/i386-protos.h: Update.
21440 * config/i386/i386.h (enum ix86_builtins): Update.
21441 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
21442 Use ix86_expand_vector_move in vector move expanders.
21443 (movti_internal, movti_rex64): Add xorps alternative.
21444 (sse_clrv4sf): Rename and adjust from sse_clrti.
21445 (prefetch): Don't work so hard.
21446 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
21447 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
21448 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
21449
6f1a6c5b
RH
214502002-01-11 Richard Henderson <rth@redhat.com>
21451
21452 * config/i386/mmintrin.h: New file.
21453 * config/i386/xmmintrin.h: New file.
21454 * config.gcc (i?86-*-*): Add extra_headers.
21455 * simplify-rtx.c (simplify_unary_operation): Handle saturating
21456 truncation codes.
21457 (simplify_binary_operation): Handle saturating arithmetic codes.
21458 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
21459 not the lowpart subreg.
21460 (ix86_expand_builtin): Return a TImode dummy register instead of 0
21461 on error.
21462 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
21463
cdb574d3
MH
214642002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21465
21466 * conflict.c (conflict_graph_compute): Free regsets when finished.
21467 * ssa.c (compute_coalesced_reg_partition): Likewise.
8559c8c0 21468
cf11ac55
HB
214692002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21470
21471 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
21472 every where we allocate a register.
21473
76ac938b
MH
214742002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21475
21476 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
21477 * lcm.c (compute_earliest, compute_farthest): Likewise.
21478
a84b4898
JJ
214792002-01-11 Janis Johnson <janis187@us.ibm.com>
21480
21481 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
21482
aaef1c12
JJ
214832002-01-11 Janis Johnson <janis187@us.ibm.com>
21484
21485 * doc/rtl.texi (Insns): Fix 2 typos.
21486
5d22c1a5
JM
214872002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
21488
21489 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
21490 options. Use @table @gcctabopt for MMIX options. Add index
21491 entries for MMIX options. Start new paragraph with first
21492 heading of the machine-dependent options.
21493
3e92902c
CR
214942002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
21495
21496 PR other/5299
21497 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
21498 * combine.c (force_to_mode): Same.
21499 * reload1.c (clear_reload_reg_in_use): Same.
21500
96ae8197
NC
215012002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
21502
21503 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
21504 and 'subtargets'.
21505
9b780582
AJ
215062002-01-11 Andreas Jaeger <aj@suse.de>,
21507 Brad Lucier <lucier@math.purdue.edu>
21508
21509 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
21510 mcpu.
21511
12300dad
DR
21512Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
21513
21514 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
21515 Protect with IN_LIBGCC.
21516 (LINK_EH_SPEC): Add required trailing space.
21517
27511a9a
NP
21518Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
21519
9b780582 21520 * c-tree.h: Move function declarations so that they are listed
27511a9a
NP
21521 under the filename which contains them.
21522 (check_identifier, finish_decl_top_level,
21523 lookup_name_current_level_global, shadow_record_fields): Remove.
21524
4daeab16
AJ
215252002-01-11 Andreas Jaeger <aj@suse.de>
21526
21527 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
21528 march.
21529
40571d67
RH
215302002-01-10 Richard Henderson <rth@redhat.com>
21531
21532 * config/alpha/alpha.c (print_operand): Add 'J'.
21533 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
21534 new operand with the sequence number for the lituse. When splitting
21535 the insns, use gen_movdi_er_high_g and generate a sequence number.
21536 (gen_movdi_er_high_g): Print the sequence number if non-zero.
21537
6525c0e7
AH
215382002-01-10 Aldy Hernandez <aldyh@redhat.com>
21539
d8086cbb
RS
21540 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
21541 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
21542 stvxl.
21543 (altivec_expand_builtin): Same.
21544 (altivec_expand_stv_builtin): New.
21545
21546 * config/rs6000/rs6000.h (rs6000_builtins): Same.
21547
21548 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
21549 ("altivec_lvehx"): New.
21550 ("altivec_lvewx"): New.
21551 ("altivec_lvxl"): New.
21552 ("altivec_lvx"): New.
21553 ("altivec_stvx"): New.
21554 ("altivec_stvebx"): New.
21555 ("altivec_stvehx"): New.
21556 ("altivec_stvewx"): New.
21557 ("altivec_stvxl"): New.
6525c0e7 21558
cda94cbb
RH
215592002-01-10 Richard Henderson <rth@redhat.com>
21560
21561 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
21562 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
21563 care not to delete instructions twice.
21564
df2c9a44
ZW
215652002-01-10 Zack Weinberg <zack@codesourcery.com>
21566
21567 * toplev.c: Don't declare environ (it's not used anywhere).
21568 * configure.in: Don't check for declaration of environ.
21569 * config/i386/xm-mingw32.h: Don't #define environ.
21570 * config.in, configure: Regenerate.
21571
5dd8a9b1
ZW
215722002-01-10 Zack Weinberg <zack@codesourcery.com>
21573
21574 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
21575 * configure: Regenerate.
21576
21577 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
21578 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
21579 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
21580 alpha/xm-vms.h.
21581 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
21582 LIMITS_H_TEST here, not in m68k/x-next.
21583 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
21584 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
21585
21586 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
21587 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
21588 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
21589
21590 * config/i386/x-djgpp: Renamed i386/t-djgpp.
21591 * config/m88k/x-dolph: Renamed m88k/t-dolph.
21592 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
21593 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
21594 replacement of quadlib.asm with quadlib.c.
21595
21596 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
21597 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
21598 config/rs6000/xm-beos.h: Delete file.
21599
21600 * config.gcc: Update to match above changes.
21601
d10dd44c
KH
216022002-01-10 Kazu Hirata <kazu@hxi.com>
21603
21604 * config/h8300/h8300.h: Fix comment typos.
21605 * config/h8300/h8300.md: Likewise.
21606 * config/h8300/lib1funcs.asm: Likewise.
21607
04894c5a
DJ
216082002-01-10 Dale Johannesen <dalej@apple.com>
21609
21610 PR optimization/5269
21611 * unroll.c (precondition_loop_p): Make *increment be the correct
21612 sign when n_iterations known, to avoid confusing caller.
21613
adc9fe67
KH
216142002-01-10 Kazu Hirata <kazu@hxi.com>
21615
21616 * doc/extend.texi (deprecated): Fix a typo.
21617
b446e5a2
JH
21618Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
21619
21620 * basic-block.h (update_br_prob_note): Declare.
21621 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
21622 (try_forward_edges): Care negative frequencies and update note.
21623 (outgoing_edges_match): Tweek conditional merging heuristics.
21624 (try_crossjump_to_edge): use update_br_prob_note.
21625 * cfglayout.c (fixup_reorder_chain): Likewise.
21626 * cfrtl.c (update_br_prob_note): New.
21627 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
21628
21629 * i386.c (ix86_decompose_address): Return -1 if address contains
21630 shift.
21631 (legitimate_address_p): Require ix86_decompose_address to return 1.
21632
21633 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
21634 (cprop_insn): Likewise.
21635
a01da83b
KH
216362002-01-10 Kazu Hirata <kazu@hxi.com>
21637
21638 * toplev.c: Fix formatting.
21639 * tree.c: Likewise.
21640 * tree-dump.c: Likewise.
21641 * unroll.c: Likewise.
21642 * unwind-dw2.c: Likewise.
21643 * unwind-dw2-fde.c: Likewise.
21644 * unwind-dw2-fde-glibc.c: Likewise.
21645 * unwind-sjlj.c: Likewise.
21646
9f85bca7
JM
216472002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
21648
21649 * doc/invoke.texi: Document PDP-11 options.
21650
f48f56b1
KH
216512002-01-10 Kazu Hirata <kazu@hxi.com>
21652
21653 * config/h8300/h8300.h: Fix formatting.
21654
ead39bdf 216552002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
21656
21657 Add __attribute__ ((deprecated)).
21658 * extend.texi: Document __attribute__ ((deprecated)).
21659 * invoke.texi: Document -Wno-deprecated-declarations.
21660 * testsuite/g++.dg/other/deprecated.C: New C++ test.
21661 * testsuite/gcc.dg/deprecated.c: New C test.
21662 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
21663 (c_common_attribute_table): Add "deprecated" entry.
21664 (handle_deprecated_attribute): New function.
21665 * c-decl.c (deprecated_states): New enum.
21666 deprecated_state: State of "deprecated" handling.
21667 (start_decl): Set deprecated_state based on attributes.
21668 (grokdeclarator): Test for deprecated uses, propagate attribute.
21669 * c-typeck.c (build_component_ref): Test for deprecated fields.
21670 (build_external_ref): Test for deprecated primaries.
21671 * diagnostic.c (warn_deprecated_use) New function to issue
21672 warnings about __attribute__ ((depricated)) references.
21673 * flags.h (warn_deprecated_decl): Extern declared for
21674 -W[no-]deprecated-declarations option.
21675 * print-tree.c (print_node): Show deprecated flag status.
21676 * toplev.c (warn_deprecated_decl): Defined.
21677 (W_options): Added "deprecated-declaration".
21678 * toplev.h (warn_deprecated_use): Extern declared.
21679 * tree.h (struct tree_common): Define deprecated_flag.
21680 (TREE_DEPRECATED): New macro to access flag.
21681 * cp/call.c (build_call): Test for deprecated calls.
21682 * cp/class.c (add_implicitly_declared_members): Set global
21683 flag to tell grokdeclarator to not issue deprecated warnings.
21684 * cp/cp-tree.h: Add extern for adding_implicit_members.
21685 * cp/decl.c (deprecated_states): New enum.
21686 (start_decl): Set deprecated_state based on attributes.
21687 (grokdeclarator): Test for deprecated uses, propagate attribute.
21688 * cp/lex.c (do_identifier): Test for deprecated primaries.
21689 * cp/typeck.c (build_component_ref): Test for deprecated fields.
21690
ead39bdf 216912002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
21692
21693 Fix to assign attributes to inline member functions.
21694 * cp/decl.c (start_method): Handle attrlist.
21695
47073a38
KH
216962002-01-10 Kazu Hirata <kazu@hxi.com>
21697
21698 * combine.c (expand_field_assignment): Use subreg_lsb().
21699
d288e53d
DE
217002002-01-10 David Edelsohn <edelsohn@gnu.org>
21701
21702 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
21703 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
21704 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
21705 Recurse for any operand of AND as long as constant is non-zero.
21706
08a02ffa
KH
217072002-01-10 Kazu Hirata <kazu@hxi.com>
21708
21709 * config/h8300/h8300.md: Remove constraints from expanders.
21710
c203e7fe
KH
217112002-01-10 Kazu Hirata <kazu@hxi.com>
21712
21713 * varasm.c: Fix formatting.
21714 * varray.c: Likewise.
21715 * vmsdbgout.c: Likewise.
21716 * xcoffout.c: Likewise.
21717
bcb3bc6d
JH
21718Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
21719
21720 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
cda94cbb 21721 update edge probabilities to match.
bcb3bc6d 21722
0a553c7e
JM
217232002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
21724
21725 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
21726 dependencies.
21727 * doc/languages.texi, doc/sourcebuild.texi: New files.
21728 * doc/configfiles.texi: Make a subsubsection. Update.
21729 * doc/configterms.texi: Add @node. Remove warning that this isn't
21730 instructions for building GCC.
21731 * doc/makefile.texi: Make a subsection.
21732 * doc/gccint.texi: Update.
21733
adc7fcb8
JH
21734Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
21735
21736 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
21737
5a4dd0b3
NP
21738Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
21739
21740 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
21741
3987b9db
JH
21742Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
21743
21744 * optabs.c (expand_fix): Look for wider integer modes first.
21745
21746 * i386.md (mov?f): Avoid the fake const double trick for medium
21747 memory model.
21748 (min?f*/max?f*): Prohibit memory operands for i387 variant.
21749 (fop_df_4): Disable for SSE compilation.
21750
ceb15948 217512002-01-10 Graham Stott <grahams@redhat.com>
117f9d28
GS
21752
21753 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
cda94cbb 21754 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
117f9d28 21755
e1623399
RH
217562002-01-10 Richard Henderson <rth@redhat.com>
21757
21758 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
21759
c4abb293
RH
217602002-01-10 Richard Henderson <rth@redhat.com>
21761
21762 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
21763 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
21764
d2604ae9
KH
217652002-01-10 Kazu Hirata <kazu@hxi.com>
21766
21767 * combine.c (can_combine_p): Fix a comment typo.
21768
766c7ad1
ZW
217692002-01-09 Zack Weinberg <zack@codesourcery.com>
21770
21771 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
21772 empty list correctly. Change loop index $t to $f for
21773 consistency with rest of Makefile.
21774
95385cbb
AH
217752002-01-08 Aldy Hernandez <aldyh@redhat.com>
21776
21777 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
21778 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
21779
21780 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
21781 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
21782 (altivec_init_builtins): Same.
21783 (altivec_expand_unop_builtin): Return NULL_RTX on error.
21784 (altivec_expand_binop_builtin): Same.
21785 (altivec_expand_ternop_builtin): Same.
21786 (bdesc_dst): New.
21787
21788 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
21789 ("altivec_vctuxs"): Fix typo.
21790 ("altivec_vnmsubfp"): Same.
21791 ("altivec_dssall"): New.
21792 ("altivec_mfvscr"): New.
21793 ("altivec_dss"): New.
21794 ("altivec_lvsl"): New.
21795 ("altivec_lvsr"): New.
21796 ("altivec_dstt"): New.
21797 ("altivec_dstst"): New.
21798 ("altivec_dststt"): New.
21799 ("altivec_dst"): New.
21800
21801 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
21802 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
21803
e4ac76b4
RH
218042002-01-09 Richard Henderson <rth@redhat.com>
21805
21806 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
21807
c893e4a4
HPN
218082002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
21809
21810 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
21811 function.
21812 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
21813 prototype.
7387c700 21814 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
c893e4a4 21815
f4f4d0f8
KH
218162002-01-09 Kazu Hirata <kazu@hxi.com>
21817
21818 * read-rtl.c: Fix formatting.
21819 * real.c: Likewise.
21820 * regclass.c: Likewise.
21821 * regrename.c: Likewise.
21822 * reg-stack.c: Likewise.
21823 * reload1.c: Likewise.
21824 * reload.c: Likewise.
21825 * rtl.c: Likewise.
21826
cc863bea
KH
218272002-01-09 Kazu Hirata <kazu@hxi.com>
21828
21829 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
21830 to extract items in the expr_list chain.
21831
7b4dfe3d
RH
218322002-01-09 Richard Henderson <rth@redhat.com>
21833
21834 * config/vax/vax.c (vax_rtx_cost): Never abort.
21835
1d969638
RH
21836 * config/vax/vax.h (REAL_ARITHMETIC): Define.
21837
7d5ab30e
JH
218382002-01-09 Jan Hubicka <jh@suse.cz>
21839
21840 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
21841
9503f3d1
RH
218422002-01-09 Richard Henderson <rth@redhat.com>
21843
21844 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
21845 Unify code from various alternatives.
21846
42bd17b7
RH
218472002-01-09 Richard Henderson <rth@redhat.com>
21848
21849 * regrename.c (copy_value): Ignore the copy if the source register
21850 is present in the value chain with a narrower mode.
21851
bdca3c33
HB
218522002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21853
cda94cbb
RH
21854 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
21855 for the c4x target. Also improve layout.
bdca3c33 21856
c73a5e94
RH
218572002-01-09 Richard Henderson <rth@redhat.com>
21858
21859 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
21860 * config/m32r/m32r.md (and ior xor splitters): Swap operands
21861 to match insn patterns.
21862
dd0a18c0
RH
218632002-01-09 Richard Henderson <rth@redhat.com>
21864
21865 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
21866 (copyprop_hardreg_forward_1): Likewise.
21867
1fd9ac1e
JDA
218682002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
21869
21870 * pa.md (decrement_and_branch_until_zero): Change predicate for
21871 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
21872
5cb265ec
BM
218732002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
21874
21875 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
21876 gets undefined. For Darwin.
21877
fcd8fa8b
HB
218782002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21879
21880 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
21881
bd3ab23a
MH
218822002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21883
21884 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
21885
21e16bd6
RH
218862002-01-08 Richard Henderson <rth@redhat.com>
21887
21888 * regrename.c (copy_value): Ignore overlapping copies.
21889
a5376276
RH
218902002-01-08 Richard Henderson <rth@redhat.com>
21891
21892 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
21893 as needed to avoid shared structure.
21894
18cf8dda
KH
218952002-01-08 Kazu Hirata <kazu@hxi.com>
21896
21897 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
21898 H8/300H and H8/S.
21899
16c484c7
JM
219002002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
21901
21902 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
21903 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
21904 documentation of obsolete macros.
21905 * system.h: Poison these macros.
21906 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
21907 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
21908 config/c4x/c4x.h, config/clipper/clipper.h,
21909 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
21910 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
21911 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
21912 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
21913 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
21914 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
21915 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
21916 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
21917 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
21918 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
21919 config/sparc/sparc.h, config/stormy16/stormy16.h,
21920 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
21921 definitions and commented out definitions of obsolete macros.
21922 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
21923 of MAX_INT_TYPE_SIZE.
21924
14b3e8ef
UW
219252002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
21926
21927 * config/s390/s390.c (s390_preferred_reload_class): Never
21928 return ADDR_REGS if it isn't a subset of the given class.
21929 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
21930 FP_REGS, but all superclasses as well.
21931
21932 * config/s390/s390.c (s390_function_profiler): Fix thinko.
21933
21934 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
21935 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
21936 must not be a const_int.
21937
a693284d
RH
219382002-01-08 Richard Henderson <rth@redhat.com>
21939
21940 * Makefile.in (toplev.o): Depend on options.h.
21941 (gcc.o): Depend on specs.h.
21942
b3ca30df
JJ
219432002-01-08 Jakub Jelinek <jakub@redhat.com>
21944
21945 * expr.c (store_expr): Convert VOIDmode constants back to target's
21946 mode.
21947
24dbb440
GP
219482002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21949
21950 * doc/invoke.texi: Markup gcc as @command. Refer to
21951 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
21952 of http://gcc.gnu.org/thanks.html.
21953
234e114c
DJ
219542002-01-08 Dale Johannesen <dalej@apple.com>
21955
21956 * config/rs6000/rs6000.md: Add missing int register
21957 target case to movdf_low.
21958
0d24f4d1
ZW
219592002-01-08 Zack Weinberg <zack@codesourcery.com>
21960
21961 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
21962 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
21963 (cppinit.o): Depend on except.h.
21964 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
21965 s-specs): New rules.
21966
21967 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
21968 Don't create specs.h/options.h/gencheck.h here. Remove
21969 unnecessary variable settings from last argument of AC_OUTPUT.
21970 * config.in, configure: Regenerate.
21971 * intl.c: Hardcode package name as "gcc".
21972
21973 * cppinit.c: Include except.h.
21974 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
21975 appropriate.
21976 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
21977 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
21978 (!)USING_SJLJ_EXCEPTIONS.
21979 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
21980
ed722f66
JM
219812002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
21982
21983 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
21984 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
21985 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
21986 documentation of obsolete macros.
21987 * system.h: Poison these macros.
21988 * config/d30v/d30v.h, config/ns32k/encore.h,
21989 config/stormy16/stormy16.h: Remove definitions and commented out
21990 definitions of obsolete macros.
21991
31e5e29a
NP
21992Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
21993
21994 * objc/objc-act.c (handle_class_ref): Mark the declaration of
21995 %sobjc_class_ref_%s as used - to prevent unwanted compiler
21996 warnings.
21997
bc1fa59c
UW
219982002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
21999
22000 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
22001 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
22002 to insn adjusting stack/frame pointer.
0d24f4d1 22003 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
bc1fa59c
UW
22004 accept operands that cause the insn to be non-splittable.
22005
a8086abf
GS
220062002-01-08 Graham Stott <grahams@redhat.com>
22007
22008 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
22009 (C_TYPE_FIELDS_VOLATILE): Likewise.
22010 (C_TYPE_BEING_DEFINED): Likewise.
22011 (C_IS_RESERVED_WORD): Likewise.
22012 (C_TYPE_VARIABLE_SIZE): Likewise.
22013 (C_DECL_VARIABLE_SIZE): Likewise.
22014 (C_MISSING_PROTOTYPE_WARNED): Likewise.
22015 (C_SET_EXP_ORIGINAL_CODE): Likewise.
22016 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
22017 parenthesis.
22018 (C_DECL_ANTICIPATED): Likewise.
22019 (c_build_type_variant): Add parenthesis.
22020
3f595aa1
JM
220212002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
22022
22023 * gcc.c (option_map): Remove --version.
22024 (process_command): Handle -fversion following the GNU Coding
22025 Standards. Partially addresses PR other/704.
22026
5bc5a8f9
GS
220272002-01-08 Graham Stott <grahams@redhat.com>
22028
22029 * combine.c (combine_instructions): Fix typo.
22030
16ec4ebf
GS
220312002-01-08 Graham Stott <grahams@redhat.com>
22032
22033 * debug.h: Use "tree" and "rtx" throughout.
22034
22035 * debug.c: Likewise.
22036
4b69f385
NC
220372002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
22038
22039 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
22040 constant pool, use the pool's version of the symbol instead.
22041
57d1019b
RH
220422002-01-07 Richard Henderson <rth@redhat.com>
22043
22044 * regrename.c (find_oldest_value_reg): Ignore the value chain if
22045 the original register was copied in a mode with a fewer number of
22046 hard registers than the desired mode.
22047 (copyprop_hardreg_forward_1): Likewise.
22048 (debug_value_data): Fix loop test.
22049 * toplev.c (parse_options_and_default_flags): Reenable
22050 -fcprop-registers at -O1.
22051
220522002-01-07 Aldy Hernandez <aldyh@redhat.com>
fa066a23 22053
0d24f4d1
ZW
22054 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
22055 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
fa066a23 22056
0d24f4d1
ZW
22057 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
22058 predicates.
fa066a23 22059
0d24f4d1 22060 * config/rs6000/rs6000.md: Add altivec predicate patterns.
fa066a23 22061
8f949e7e
JDA
220622002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
22063
22064 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
22065 (pa_output_function_prologue): Output local label at the beginning of
22066 the prologue when profiling.
22067 (hppa_profile_hook): Use the local label rather than the function label.
22068 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
22069
c62f2db5
AH
220702002-01-07 Aldy Hernandez <aldyh@redhat.com>
22071
0d24f4d1
ZW
22072 * config/rs6000/rs6000.c (print_operand): Remove extra space.
22073 (altivec_expand_unop_builtin): Fix thinko.
22074 (altivec_expand_binop_builtin): Same.
22075 (altivec_expand_ternop_builtin): Same.
22076 (altivec_expand_builtin): Same.
c62f2db5 22077
b5235ba7
RH
220782002-01-07 Richard Henderson <rth@redhat.com>
22079
22080 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
22081
7d8ac293
JM
220822002-01-07 Jason Merrill <jason@redhat.com>
22083
22084 * unwind-dw2.c (execute_cfa_program): Use < again.
22085
571a03b8
JJ
220862002-01-07 Jakub Jelinek <jakub@redhat.com>
22087
22088 * predict.c (combine_predictions_for_insn): Avoid division by zero.
22089
2e951384
JJ
220902002-01-07 Jakub Jelinek <jakub@redhat.com>
22091
22092 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
22093 Don't allow -1 - x -> ~x simplifications in the first pass.
22094
20e26713
AH
220952002-01-07 Aldy Hernandez <aldyh@redhat.com>
22096
0d24f4d1
ZW
22097 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
22098 arguments.
22099 (altivec_expand_binop_builtin): Same.
22100 (altivec_expand_unop_builtin): Same.
22101 (print_operand): Fix typo.
22102 (bdesc_1arg): Add vupk* variants.
20e26713 22103
0d24f4d1 22104 * rs6000.h (rs6000_builtins): Add vupk* enums.
20e26713 22105
0d24f4d1 22106 * rs6000.md: Add altivec_vupk* variants.
20e26713 22107
4dd57c18
JM
221082002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
22109
22110 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
22111 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
22112 and last update dates.
22113
0341c5d2
JJ
221142002-01-07 Janis Johnson <janis187@us.ibm.com>
22115
22116 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
22117
c7f3e0b0
MM
221182002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
22119
22120 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
22121 * config/avr/avr.h (CPP_SPEC): Likewise.
22122 (LINK_SPEC): Likewise.
22123 (CRT_BINUTILS_SPECS): Likewise.
22124 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
22125 * doc/invoke.texi (AVR Options): Document them.
22126
6ba4d630
JH
22127Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
22128
22129 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
22130 LABEL_NUSES.
22131
6253d571
GS
221322002-01-07 Graham Stott <grahams@redhat.com>
22133
0d24f4d1
ZW
22134 * config/i386/i386.h: Update copyright date.
22135 (HALF_PIC_PTR): Add parenthesis.
22136 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
22137 (CONSTANT_ALIGNMENT): Add parenthesis.
22138 (DATA_ALIGNMENT): Likewise.
22139 (LOCAL_ALIGNMENT): Likewise.
22140 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
22141 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
22142 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
22143 (HARD_REGNO_NREGS): Add paranethesis.
22144 (VALID_SSE_REG_MODE): Whitespace.
22145 (VALID_MMX_REG_MODE): Whitespace.
22146 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
22147 (ix86_hard_regno_mode_ok): Add parenthesis.
22148 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
22149 (RETURN_IN_MEMORY): Whitespace.
22150 (N_REG_CLASSES): Add parenthesis.
22151 (INTEGER_CLASS_P): Add parenthesis and wrap.
22152 (FLOAT_CLASS_P): Likewise.
22153 (SSE_CLASS_P): Likewise.
22154 (MMX_CLASS_P): Likewise.
22155 (MAYBE_INTEGER_CLASS_P): Likewise.
22156 (MAYBE_FLOAT_CLASS_P): Likewise.
22157 (MAYBE_SSE_CLASS_P): Likewise.
22158 (MAYBE_MMX_CLASS_P): Likewise.
22159 (Q_CLASS_P): Likewise.
22160 (GENERAL_REGNO_P): Uppercase macro parameter.
22161 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
22162 (FP_REGNO_P): Likewise.
22163 (ANY_FP_REGNO_P): Uppercase macro parameter.
22164 (SSE_REGNO_P): Likewise.
22165 (SSE_REGNO): Likewise.
22166 (SSE_REG_P): Likewise.
22167 (SSE_FLOAT_MODE_P): Likewise.
22168 (MMX_REGNO_P): Likewise.
22169 (MMX_REG_P):Likewise.
22170 (STACK_REG_P): Likewise.
22171 (NON_STACK_REG_P): Likewise.
22172 (STACK_TOP_P): Likewise.
22173 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
22174 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
22175 (SECONDARY_MEMORY_NEEDED): Likewise.
22176 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
22177 (MD_ASM_CLOBBERS): Whitespace and wrap.
22178 (MUST_PASS_IN_STACK): Whitespace and wrap.
22179 (RETURN_POPS_ARGS): Add parenthesis.
22180 (INIT_CUMULATIVE_ARGS): Likewise.
22181 (FUNCTION_ARG): Likewise.
22182 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
22183 (SETUP_INCOMING_VARARGS): Likewise.
22184 (BUILD_VA_LIST_TYPE): Add parenthesis.
22185 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
22186 parenthsis.
22187 (EXPAND_BUILTIN_VA_ARG): Likewise.
22188 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
22189 (INITIALIZE_TRAMPOLINE): Add parenthesis.
22190 (INITIAL_ELIMINATION_OFFSET): Likewise.
22191 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
22192 (REGNO_OK_FOR_BASE_P): Likewise.
22193 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
22194 (REGNO_OK_FOR_DIREG_P): Likewise.
22195 (REG_OK_FOR_INDEX_P): Whitespace.
22196 (REG_OK_FOR_BASE_P): Whitespace.
22197 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
22198 parenthesis.
22199 (FIND_BASE_TERM): Fix typo.
22200 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
22201 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
22202 (SYMBOLIC_CONST; Whitespace.
22203 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
22204 (ENCODE_SECTION_INFO): Whitespace.
22205 (FINALIZE_PIC): Remove do { ... } while (0).
22206 (PROMOTE_MODE): Wrap in do { ... } while (0).
22207 (CONST_COSTS): Whitespace.
22208 (RTX_COSTS): Add paramethesis, whitespace and wrap.
22209 (REGISTER_MOVE_COST): Add parenthesis.
22210 (MEMORY_MOVE_COST): Likewise.
22211 (EXTRA_CC_MODES): Whitespace.
22212 (SELECT_CC_MODE): Add parenthesis and whitespace.
22213 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
22214 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
22215 (ASM_OUTPUT_LABEL): Add paramethesis.
22216 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
22217 (ASM_OUTPUT_REG_POP): Likewise.
22218 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
22219 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
d9a5f180 22220
07933f72
GS
22221 * config/i386/i386.c: Update copyright.
22222 (CHECK_STACK_LIMIT): Add parenthesis.
22223 (AT_BP): Uppercase macro parameter.
22224 (x86_64_int_parameter_registers): Constify.
22225 (x86_64_int_return_registers): Likewise.
22226 (ix86_compare_op0): Use rtx.
22227 (construct_container): Constify INTREG parameter.
22228 (function_arg): Use rtx.
22229
0b4d32c9
GS
22230 * diagnostic.h: Update copyright date.
22231 (output_buffer_state): Add parenthesis.
22232 (output_buffer_format_args): Likewise.
22233
6253d571
GS
22234 * combine.c (combine_instructions): Replace XEXP (links, 0)
22235 with link.
22236
68f3f6f1
L
222372002-01-06 H.J. Lu <hjl@gnu.org>
22238
22239 * cfgcleanup.c (thread_jump): Fix 2 typos.
22240
222412002-01-06 Aldy Hernandez <aldyh@redhat.com>
480f7f3a 22242
0d24f4d1 22243 * config.gcc: Add support for --enable-altivec.
480f7f3a 22244
13b8c631
CR
222452002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22246
22247 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
22248
58ad89b1
JJ
222492002-01-06 Jakub Jelinek <jakub@redhat.com>
22250
22251 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
22252 __objc_class_name_*.
22253
e403b4bc
CR
222542002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22255
22256 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
22257
e41c7831
RH
222582002-01-06 Richard Henderson <rth@redhat.com>
22259
22260 * reorg.c (emit_delay_sequence): Remove death notes, not merely
22261 nop them out. Increment label reference count for REG_LABEL.
22262 (fill_slots_from_thread): Frob label reference count around
22263 delete_related_insns.
22264
3b3b1e32
RH
222652002-01-05 Richard Henderson <rth@redhat.com>
22266
22267 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
22268 jump threading.
22269
c28abdf0
RH
222702002-01-05 Richard Henderson <rth@redhat.com>
22271
22272 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
22273 * integrate.c (output_inline_function): Likewise.
22274 * toplev.c (rest_of_compilation): Do it here instead. Move call
22275 to remove_unnecessary_notes after emitting abstract instance.
22276 Force an emitted nested function to have its parent emited as well.
22277 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
22278 for null.
22279 (rtl_for_decl_location): Do not look at reload data structures
22280 before reload has run.
22281
c4f2c499
KH
222822002-01-05 Kazu Hirata <kazu@hxi.com>
22283
22284 * cse.c: Fix formatting.
22285 * dwarf2asm.c: Likewise.
22286 * dwarf2out.c: Likewise.
22287 * explow.c: Likewise.
22288 * expmed.c: Likewise.
22289 * function.c: Likewise.
22290 * gcov.c: Likewise.
22291 * gencheck.c: Likewise.
22292 * genrecog.c: Likewise.
22293 * ggc-common.c: Likewise.
22294 * ggc-page.c: Likewise.
22295 * global.c: Likewise.
22296
cf0d9408
KH
222972002-01-05 Kazu Hirata <kazu@hxi.com>
22298
22299 * combine.c: Fix formatting.
22300
bedca03a
CR
223012002-01-05 Craig Rodrigues <crodrigu@bbn.com>
22302
22303 PR middle-end/1557
22304 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
22305
0134bf2d
DE
223062002-01-05 David Edelsohn <edelsohn@gnu.org>
22307
22308 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
22309 as 1 for __powerpc64__ as well.
22310
22311 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
22312
22313 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
22314 return it.
22315
9ca88d5a
DB
223162002-01-05 Daniel Berlin <dan@dberlin.org>
22317
22318 * lcm.c: Revert change, due to performance regression it causes on
22319 SPEC because it's slightly more conservative (sigh, I hate
22320 edge-based LCM).
0d24f4d1 22321
1c570418
JH
22322Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
22323
22324 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
22325
d83bb9f7
NB
223262002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
22327
22328 * doc/cppinternals.texi: Update.
22329
3e0f61ac
HPN
223302002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
22331
22332 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
22333 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
22334 negatives.
22335 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
22336 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
22337 kludge for pre-october-14th mmix versions to handle new-found bug
22338 with PUSHJ/PUSHGO and the register stack.
22339 * config/mmix/mmix.h (struct machine_function): Rename member
22340 has_call_value_without_parameters to has_call_without_parameters.
22341 All referers changed.
22342 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
22343 TARGET_MASK_BRANCH_PREDICT): New macros.
22344 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
22345 -mno-reg-stack-fill-bug-workaround.
22346 * config/mmix/mmix.md ("call"): Set struct machine member
22347 has_call_without_parameters.
22348
4deaa2f8
JH
22349Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
22350
22351 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
22352
9f16e871
JH
22353Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
22354
22355 * cfgcleanup.c: Include tm_p.h
22356 (mark_effect): Fix handling of hard register; fix handling of SET
22357
96eb1157
KH
223582002-01-04 Kazu Hirata <kazu@hxi.com>
22359
22360 * config/h8300/h8300.md (anonymous patterns): Check that
22361 operands are registers before using REGNO on them.
22362
48180d68
RM
223632002-01-03 Roland McGrath <roland@frob.com>
22364
22365 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
22366
b0832fe1
JJ
223672002-01-04 Jakub Jelinek <jakub@redhat.com>
22368
22369 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
22370 * c-common.h (genrtl_expr_stmt_value): Likewise.
22371 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
22372 (expand_expr_stmt_value): Add maybe_last argument.
22373 Don't warn about statement with no effect if it is the last statement
22374 in expression statement.
22375 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
22376 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
22377 expand_expr_stmt_value.
22378 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
22379 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
22380 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
22381 as maybe_last to expand_expr_stmt_value.
22382
c1e14513
JL
22383Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
22384
0d24f4d1
ZW
22385 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
22386 be passed in, do not build it.
22387 (c_begin_if_stmt): New function.
22388 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22389 * c-common.h (c_expand_start_cond): Update prototype.
22390 (c_begin_if_stmt): Prototype new function.
22391 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22392 * c-parse.in (if_prefix): Use c_begin_if_stmt,
22393 c_begin_while_stmt and c_finish_while_stmt_cond.
c1e14513 22394
b6ec437a
WC
223952002-01-04 William Cohen <wcohen@redhat.com>
22396
22397 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
22398 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22399 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22400 * config/pa/som.h (ASM_FILE_START): Likewise.
22401
ead39bdf 224022002-01-04 Daniel Berlin <dan@cgsoftware.com>
517b711f
DB
22403
22404 * lcm.c: Include df.h.
22405 Add available_transfer_function prototype.
22406 (compute_available): Rework to use iterative dataflow framework.
22407 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
22408 with bb_info in df.h
22409 (available_transfer_function): New function.
22410
22411 * Makefile.in (lcm.o): add df.h to dependencies.
22412
551cc6fd
RH
224132002-01-04 Richard Henderson <rth@redhat.com>
22414
22415 * config/alpha/alpha.c (some_operand): Accept HIGH.
22416 (input_operand): Likewise; accept simple references to globals.
22417 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
22418 (alpha_const_double_ok_for_letter_p): Likewise.
22419 (alpha_extra_constraint): Likewise.
22420 (alpha_preferred_reload_class): Likewise. Do not force
22421 symbolic constants to memory.
22422 (alpha_legitimate_address_p): Accept simple references
22423 to small_symbolic_operand.
22424 (alpha_legitimize_address): New arg scratch. Be prepared to be
22425 called when no_new_pseudos. Emit simple symbolic references.
22426 Split integers into low, high, and rest.
22427 (alpha_expand_mov): Use alpha_legitimize_address.
22428 (some_small_symbolic_mem_operand): New.
22429 (split_small_symbolic_mem_operand): New.
22430 * config/alpha/alpha-protos.h: Update.
22431 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
22432 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
22433 (EXTRA_CONSTRAINT): Likewise.
22434 (PREFERRED_RELOAD_CLASS): Likewise.
22435 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
22436 (PREDICATE_CODES): Update.
22437 * config/alpha/alpha.md: New post-reload splitters to convert
22438 simplfied symbolic operands to the form that references $29.
22439 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
22440 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
22441
1eaea054
RH
224422002-01-03 Richard Henderson <rth@redhat.com>
22443
22444 * local-alloc.c (function_invariant_p): Update commentary.
22445
c4cc12b7
L
224462002-01-04 H.J. Lu <hjl@gnu.org>
22447
22448 * toplev.c (rest_of_compilation): Fix a typo when calling
22449 cleanup_cfg.
22450
173bf5be
KH
224512002-01-03 Kazu Hirata <kazu@hxi.com>
22452
22453 * c-common.c: Fix formatting.
22454 * diagnostic.c: Likewise.
22455 * doloop.c: Likewise.
22456 * dwarf2out.c: Likewise.
22457
187462ac
KH
224582002-01-03 Kazu Hirata <kazu@hxi.com>
22459
22460 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
22461 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
22462
5d8ebbd8
NB
224632002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
22464
22465 * cpperror.c: Update comments and copyright.
22466 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
22467 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
22468
518c1311
JDA
224692002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
22470
22471 * collect2.c (main): Use strcmp when testing for "-shared".
22472
d15a58c0
NB
224732002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
22474
22475 * cppmacro.c: Don't include intl.h. Update comments.
22476 (new_number_token): Allocate enough buffer for 64-bit unsigned
22477 integers; update prototype.
22478 * cppmain.c: Update comments.
22479
70f4f91c
WC
224802002-01-03 William Cohen <wcohen@redhat.com>
22481
22482 * function.h (struct function): Add profile.
22483 (current_function_profile): New.
22484 doc/extend.texi: Update documentation.
22485 * final.c (final_start_function): Use current_function_profile
22486 instead of profile_flag.
22487 (profile_after_prologue): Likewise.
22488 * function.c (expand_function_start): Likewise.
22489 (expand_function_start): Likewise.
c4cc12b7 22490 * config/alpha/alpha.c (direct_call_operand):
70f4f91c
WC
22491 (alpha_does_function_need_gp): Likewise.
22492 (alpha_expand_prologue): Likewise.
22493 * config/arm/arm.c (arm_expand_prologue): Likewise.
22494 thumb_expand_prologue: Likewise.
22495 * config/d30v/d30v.c (d30v_stack_info): Likewise.
22496 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
22497 (fr30_expand_prologue): Likewise.
22498 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
22499 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
22500 * config/i386/i386.h (FINALIZE_PIC): Likewise.
22501 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
22502 * config/i960/i960.c (i960_output_function_prologue): Likewise.
22503 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
22504 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
22505 (m32r_expand_prologue): Likewise.
22506 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
22507 (m88k_expand_prologue): Likewise.
22508 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
22509 * config/mips/mips.c (compute_frame_size): Likewise.
22510 (mips_expand_prologue): Likewise.
22511 (mips_can_use_return_insn): Likewise.
22512 * config/pa/elf.h (ASM_FILE_START): Likewise.
22513 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22514 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22515 * config/pa/som.h (ASM_FILE_START): Likewise.
22516 * config/romp/romp.c (romp_using_r14): Likewise.
22517 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
22518 (rs6000_stack_info): Likewise.
22519 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2fd17409 22520 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
70f4f91c
WC
22521 * config/v850/v850.c (compute_register_save_size): Likewise.
22522
cb1ac742
JJ
225232002-01-03 Jakub Jelinek <jakub@redhat.com>
22524
22525 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
22526 gen_lowpart_common fails, use gen_lowpart_SUBREG.
22527
61d951df 225282002-01-03 Turly O'Connor <turly@apple.com>
cb1ac742 22529
61d951df
TC
22530 * darwin.c (machopic_output_possible_stub_label): Don't generate
22531 stub routines for pseudo-stubs which we've just defined.
22532
505ddab6
KH
225332002-01-03 Kazu Hirata <kazu@hxi.com>
22534
22535 * builtins.c: Fix formatting.
22536 * c-typeck.c: Likewise.
22537 * combine.c: Likewise.
22538 * expr.c: Likewise.
22539 * loop.c: Likewise.
22540
b7e30d8a
AS
225412002-01-03 Andreas Schwab <schwab@suse.de>
22542
22543 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
22544 and return true if _cpp_push_next_buffer pushed a new include
22545 file.
22546 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
22547 _cpp_pop_file_buffer did not push a new file.
22548 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
22549
ff81832f
EC
225502002-01-02 Eric Christopher <echristo@redhat.com>
22551
22552 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
22553 FIND_REG_INC_NOTE call. Update copyright.
22554 * loop.c (canonicalize_condition): Ditto.
22555 * reorg.c (delete_scheduled_jump): Ditto.
22556
8e42ace1
KH
225572002-01-03 Kazu Hirata <kazu@hxi.com>
22558
22559 * gcse.c: Fix formatting.
22560
fb2bf631
GS
225612002-01-03 Graham Stott <grahams@redhat.com>
22562
22563 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
22564 forward defs for struct tags rtx_def, union_tree, rtvec_def
6253d571 22565 also output corresponding typedefs for rtx, tree, and rtvec.
fb2bf631
GS
22566
22567 * system.h: Move forward defs for struct tags rtx_def, union_tree,
22568 rtvec_def along with corresponding typedefs for rtx, tree, and
6253d571 22569 rtvec to config.h, hconfig.h, tconfig.h.
fb2bf631
GS
22570
225712002-01-03 Graham Stott <grahams@redhat.com>
b9daac31
GS
22572
22573 * tree.h: Update copyright date.
22574 (IS_EXPR_CODE_CLASS): Add parenthesis.
22575 (TREE_SET_CODE): Add whitespace.
22576 (TREE_CHECK): Add parenthesis.
22577 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
22578 (CST_OR_CONSTRUCTOR_CHECK):
22579 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
22580 (TREE_SYMBOL_REFERENCED): Whitespace.
22581 (INT_CST_LT): Likewise.
22582 (INT_CST_LT_UNSIGNED): Likewise.
22583 (tree_real_cst): Unwrap comment.
22584 (tree_string): Likewise.
22585 (tree_complex): Likewise.
22586 (IDENTIFIER_POINTER): correct cast.
22587 (SAVE_EXPR_CONTEXT): Whitespace.
22588 (EXPR_WFL_FILENAME_NODE): Likewise.
22589 (EXPR_WFL_FILENAME): Remove parenthesis.
22590 (DECL_ORIGIN): Add parenthesis.
22591 (DECL_FROM_INLINE): Use NULL_TREE.
22592 (build_int_2): Whitespace.
22593 (build_type_variant): Add parenthesis.
22594
22595 * gcc/jcf-parse.c: Update copyright date.
22596 (yyparse): Constify resource_filename.
22597
f52eda29
GS
225982002-01-03 Graham Stott <grahams@redhat.com>
22599
22600 * rtl.h: Update copyright date.
22601 (RTL_CHECK1): Wrap long line.
22602 (RTL_CHECK2): Likewise.
22603 (RTL_CHECKC1): Wrap long line and whitespace.
22604 (RTL_CHECKC2): Likewise.
22605 (XWINT): Whitespace.
22606 (XINT): Likewise.
22607 (XSTR): Likewise.
22608 (XEXP): Likewise.
22609 (XVEC): Likewise.
22610 (XMODE): Likewise.
22611 (XBITMAP): Likewise.
22612 (XTREE): Likewise.
22613 (XBBDEF): Likewise.
22614 (XTMPL): Likewise.
22615 (X0WINT): Likewise.
22616 (X0INT):Likewise.
22617 (X0UINT): Likewise.
22618 (X0STR): Likewise.
22619 (X0EXP): Likewise.
22620 (X0VEC): Likewise.
22621 (X0MODE): Likewise.
22622 (X0BITMAP): Likewise.
22623 (X0TREE): Likewise.
22624 (X0BBDEF): Likewise.
22625 (X0ADVFLAGS): Likewise.
22626 (X0CSELIB): Likewise.
22627 (X0MEMATTR): Likewise.
22628 (XCWINT): Likewise.
22629 (XCINT): Likewise.
22630 (XCUINT): Likewise.
22631 (XCSTR): Likewise.
22632 (XCEXP): Likewise.
22633 (XCVEC): Likewise.
22634 (XCMODE): Likewise.
22635 (XCBITMAP): Likewise.
22636 (XCTREE): Likewise.
22637 (XCBBDEF): Likewise.
22638 (XCADVFLAGS): Likewise.
22639 (XCCSELIB): Likewise.
22640 (XC2EXP): Likewise.
22641 (INSN_UID): Likewise.
22642 (PREV_INSN): Likewise.
22643 (PATTERN): Likewise.
22644 (INSN_CODE): Likewise.
22645 (PUT_REG_NOTE_KIND): Likewise.
22646 (CODE_LABEL_NUMBER): Likewise.
22647 (NOTE_SOURCE_FILE): Likewise.
22648 (NOTE_BLOCK): Likewise.
22649 (NOTE_EH_HANDLER): Likewise.
22650 (NOTE_RANGE_INFO): Likewise.
22651 (NOTE_LIVE_INFO): Likewise.
22652 (NOTE_BASIC_BLOCK): Likewise.
22653 (NOTE_EXPECTED_VALUE): Likewise.
22654 (NOTE_LINE_NUMBER): Likewise.
22655 (LABEL_NAME): Likewise.
22656 (LABEL_NUSES): Likewise.
22657 (LABEL_ALTERNATE_NAME): Likewise.
22658 (ADDRESSOF_DECL): Likewise.
22659 (JUMP_LABEL): Likewise.
22660 (LABEL_NEXTREF): Likewise.
22661 (REGNO): Likewise.
22662 (ORIGINAL_REGNO: Likewise.
22663 (HARD_REGISTER_NUM_P): Add parenthesis.
22664 (SUBREG_REG): Whitespace.
22665 (SUBREG_BYTE): Likewise.
22666 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
22667 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
22668 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
22669 (ASM_OPERANDS_INPUT_VEC): Likewise.
22670 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
22671 (ASM_OPERANDS_INPUT): Likewise.
22672 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
22673 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
22674 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
22675 (ASM_OPERANDS_INPUT_MODE): Likewise.
22676 (ASM_OPERANDS_SOURCE_FILE): Likewise.
22677 (ASM_OPERANDS_SOURCE_LINE): Likewise.
22678 (MEM_SET_IN_STRUCT_P): Minor reformat.
22679 (TRAP_CONDITION): Whitespace.
22680 (TRAP_CODE): Likewise.
22681 (COND_EXEC_TEST): Likewise.
22682 (COND_EXEC_CODE): Likewise.
22683 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
22684 (PHI_NODE_P): Add parenthesis.
22685 (plus_constant): Whitespace and add parenthesis.
22686
e03f5d43
KH
226872002-01-03 Kazu Hirata <kazu@hxi.com>
22688
22689 * config/avr/avr.c: Fix comment typos.
22690 * config/c4x/c4x.md: Likewise.
22691 * config/dsp16xx/dsp16xx.h: Likewise.
22692 * config/dsp16xx/dsp16xx.md: Likewise.
22693 * config/i386/i386.md: Likewise.
22694 * config/ia64/ia64.c: Likewise.
22695 * config/m32r/m32r.h: Likewise.
22696 * config/m68hc11/m68hc11.md: Likewise.
22697 * config/mmix/mmix.c: Likewise.
22698 * config/mn10200/mn10200.c: Likewise.
22699 * config/romp/romp.c: Likewise.
22700 * config/sh/sh.c: Likewise.
22701 * config/stormy16/stormy16.c: Likewise.
22702 * config/stormy16/stormy16.h: Likewise.
22703 * config/stormy16/stormy16.md: Likewise.
22704
97e300e9
GS
227052002-01-03 Graham Stott <grahams@redhat.com>
22706
22707 * loop.h: Update copyright date.
0d24f4d1
ZW
22708 (LOOP_MOVABLES): Fix typo.
22709 (LOOP_REGS): Likewise.
22710 (LOOP_IVS): Likewise.
ff81832f 22711
745b26b3
GS
227122002-01-03 Graham Stott <grahams@redhat.com>
22713
22714 * cppinit.c: Update copyright date.
22715 Don't include output.h
22716 * Makefile.in: Update copyright date.
22717 Update dependency.
22718
0a379b7a
CR
227192002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
22720
22721 PR c/5226
22722 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
22723 (-pthread) Add to RS/6000 options.
22724
a8154559
KH
227252002-01-02 Kazu Hirata <kazu@hxi.com>
22726
22727 * except.c: Fix comment typos.
22728 * loop.c: Likewise.
22729 * varasm.c: Likewise.
22730 * doc/tm.texi: Fix a typo.
22731
e6ecc89b
JJ
227322002-01-02 Jakub Jelinek <jakub@redhat.com>
22733
22734 * c-typeck.c (output_init_element): Allow initializing static storage
22735 duration objects with compound literals.
22736
d1094b40
RH
227372002-01-02 Richard Henderson <rth@redhat.com>
22738
22739 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
22740 after abusing it.
22741
0c5d8c82
KG
227422002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22743
5e65297b
KG
22744 * gcc.c (default_compilers): Const-ify.
22745 * mips-tdump.c (stab_names): Likewise.
22746 * mips-tfile.c (map_coff_types, map_coff_storage,
22747 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
22748 pseudo_ops_t, pseudo_ops): Likewise.
22749 * protoize.c (default_include): Likewise
22750
0c5d8c82
KG
22751 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
22752 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
22753 Add array size in declaration.
22754 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
22755 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
22756 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
22757 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
22758 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
22759 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
22760 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
22761 emtens, make_nan): Const-ify.
22762 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
22763 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
22764
817e13c4
JM
227652002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
22766
22767 * config.gcc (ia64-*-*): Set extra_headers.
22768 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
22769 * config/alpha/t-osf: Remove.
22770 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
22771
98095e2b
DE
227722002-01-02 David Edelsohn <edelsohn@gnu.org>
22773
22774 * config/rs6000/t-aix43: Revert previous change.
22775
a4200657
JM
227762002-01-02 Jason Merrill <jason@redhat.com>
22777
22778 * c-decl.c (c_expand_body): Call outlining_inline_function when
22779 emitting an inline function out of line.
22780
54ba1f0d
RH
227812002-01-02 Richard Henderson <rth@redhat.com>
22782
22783 * dwarf2out.c (limbo_die_node): Add created_for member.
22784 (new_die): New argument created_for. Update all callers.
22785 (mark_limbo_die_list): New.
22786 (dwarf2out_init): Register limbo_die_list as a root.
22787 (dwarf2out_finish): Force insert limbo dies into their function
22788 context.
22789
323728aa
NS
227902002-01-02 Nathan Sidwell <nathan@codesourcery.com>
22791
22792 PR c++/5089
22793 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
22794
aefc5826
KH
227952002-01-02 Kazu Hirata <kazu@hxi.com>
22796
22797 * config/h8300/fixunssfsi.c: Update copyright.
22798 Fix comment typos.
22799 Fix formatting.
22800 * config/h8300/h8300.c: Update copyright.
22801 Eliminate warnings.
22802
b1c9bc51
KH
228032002-01-02 Kazu Hirata <kazu@hxi.com>
22804
22805 * config/romp/romp.c: Fix comment formatting.
22806 * config/romp/romp.h: Likewise.
22807 * config/romp/romp.md: Likewise.
22808 * config/s390/s390.c: Likewise.
22809 * config/stormy16/stormy16.c: Likewise.
22810 * config/stormy16/stormy16.h: Likewise.
22811
1574ef13
AO
228122002-01-02 Alexandre Oliva <aoliva@redhat.com>
22813
22814 * c-common.h (genrtl_expr_stmt_value): Declare.
22815 * c-semantics.c (genrtl_goto_stmt): Redirect to...
22816 (genrtl_goto_stmt_value): ... this new function. Pass new
22817 argument down to expand_expr_stmt_value, taking
22818 TREE_ADDRESSABLE into account.
22819 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
22820 STMT_EXPR as addressable, i.e., one whose result we want.
22821 * expr.c (expand_expr): Don't save expression statement value
22822 of labeled_blocks or loop_exprs.
22823 * stmt.c (expand_expr_stmt): Redirect to...
22824 (expand_expr_stmt_value): ... this new function. Use new
22825 argument to tell whether to save expression value.
22826 (expand_end_stmt_expr): Reset last_expr_type and
22827 last_expr_value if we don't have either.
22828 * tree-inline.c (declare_return_variable): Mark its use
22829 statement as addressable.
22830 * tree.h: Document new use of TREE_ADDRESSABLE.
22831 (expand_expr_stmt_value): Declare.
22832
252b88f7
TR
228332002-01-01 Tom Rix <trix@redhat.com>
22834
22835 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
22836 rs6000_emit_allocate_stack.
22837
29f7a208
JM
228382002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
22839
22840 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
22841 ${srcdir}/ginclude/ to every entry in extra_headers.
22842 * configure: Regenerate.
22843 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
22844 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
22845 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
22846 * ginclude/proto.h: Rename to config/convex/proto.h.
22847
2cc2d4bb
RK
22848Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22849
22850 * attribs.c (handle_vector_size_attribute): Use host_integerp
22851 and tree_int_cst; remove warnings.
22852 * caller-save.c (insert_restore): Add cast to get rid of warning.
22853 (insert_save): Likewise.
22854 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
22855 * regmove.c (find_matches): Add temporary var to kill a warning.
22856
f01c9bcd
DR
228572002-01-01 Douglas B Rupp <rupp@gnat.com>
22858
16b61764
DR
22859 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
22860 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
22861 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
22862 (vms-dwarf2eh.o): Add Makefile rule.
22863 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
22864 * config/alpha/vms-dwarf2eh.asm: New file.
22865
f01c9bcd
DR
22866 * gcc.c (delete_if_ordinary): Delete all versions.
22867
91312b81
HPN
228682002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
22869
22870 * config/mmix/mmix.md: Update FIXME to not mention
22871 define_constants.
22872 (MMIX_rJ_REGNUM): New define_constants constant.
22873 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
22874 "*movdicc_real"): Adjust contraints formatting.
22875 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
22876 for branch prediction.
22877 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
22878 output template.
22879 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
22880 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
22881 number. Delete related FIXMEs.
22882 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
22883 from number to MMIX_rJ_REGNUM.
22884 (TARGET_MASK_BRANCH_PREDICT): New.
22885 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
22886 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
22887 value. Add -mbranch-predict and -mno-branch-predict.
22888 (TARGET_VERSION): Drop date.
22889 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
22890 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
22891 for finding out global symbols.
22892 (mmix_asm_output_labelref): Revert condition for global symbol.
22893 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
22894 (mmix_print_operand_punct_valid_p): A '+' is valid.
22895
619acae7 22896See ChangeLog.6 for earlier changes.
This page took 2.876387 seconds and 5 git commands to generate.